You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 05c8216
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/docs/content/docs/cli/reference.mdx
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8622,6 +8622,7 @@ sim workflows source get <workflowId> [options]
8622
8622
|`--function-code <value>`| No | Where function-block code goes: `files` (default) writes it to `functions/*` files referenced with `codeFile()`; `inline` prints it in tagged templates. Accepted values: `inline`, `files`. |
8623
8623
|`--dir <dir>`| No | Write the source, its lock and SDK type declarations into this directory instead of printing them. |
8624
8624
|`--force`| No | With --dir: replace another workflow's source or edits no apply has saved. |
8625
+
|`--primer`| No | Also print the primer written atop .sim/AGENTS.md (a `primer` field in JSON). |
|`--dir <dir>`| No | Source directory whose catalog to read. Defaults to `.`. |
8813
+
|`--full`| No | Print every param with its type, enum, default and doc, not the brief form. |
8812
8814
8813
8815
</CommandTable>
8814
8816
8815
-
Prints a builder's params (required first, with enums and defaults), the gate field that picks which others apply, and its outputs, from the block catalog the last get, create or check cached. No request is made. <builder> is the dotted builder path as source writes it: table.upsertRow, agent, trigger.schedule, slack.sendMessage (slack.tool.sendMessage names the same builder). A namespace (gmail, trigger.gmail) lists its builders; a block type prints the builder written for it (function is fn) or lists them (table_v2); a construct core.d.ts declares (loop, parallel, t, env) prints its declaration. Run it from a workflow or workspace source directory, or pass --dir.
8817
+
Prints a builder in brief (an example call, the required params with types, the optional ones by name, the gate field that picks which others apply, and the outputs), from the block catalog the last get, create or check cached. --full prints every param with its type, enum, default and doc. A legacy builder names the one that replaces it. No request is made. <builder> is the dotted builder path as source writes it: table.upsertRow, agent, trigger.schedule, slack.sendMessage (slack.tool.sendMessage names the same builder). A namespace (gmail, trigger.gmail) lists its builders; a block type prints the builder written for it (function is fn) or lists them (table_v2); a construct core.d.ts declares (loop, parallel, t, env) prints its declaration. Run it from a workflow or workspace source directory, or pass --dir.
8816
8818
8817
8819
Exit codes: 0 printed; 1 no builder or namespace of that name (the closest one is named), or no cached catalog (run a get once).
8818
8820
@@ -10035,6 +10037,7 @@ sim workspaces source get [options]
10035
10037
10036
10038
| Option | Required | Description |
10037
10039
| --- | --- | --- |
10040
+
|`--primer`| No | Also print the primer written atop .sim/AGENTS.md (a `primer` field in JSON). |
10038
10041
|`--dir <dir>`| Yes | Directory to write the workspace source into. |
10039
10042
|`--only <kinds>`| No | Read only these kinds (comma-separated folders: secrets.ts, credentials.ts, tools, skills, mcp, tables, knowledge, files, workflows, deployments). |
10040
10043
|`--force`| No | Replace files with edits no apply has saved. |
Copy file name to clipboardExpand all lines: apps/docs/content/docs/cli/workflows.mdx
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1379,6 +1379,7 @@ sim workflows source get <workflowId> [options]
1379
1379
|`--function-code <value>`| No | Where function-block code goes: `files` (default) writes it to `functions/*` files referenced with `codeFile()`; `inline` prints it in tagged templates. Accepted values: `inline`, `files`. |
1380
1380
|`--dir <dir>`| No | Write the source, its lock and SDK type declarations into this directory instead of printing them. |
1381
1381
|`--force`| No | With --dir: replace another workflow's source or edits no apply has saved. |
1382
+
|`--primer`| No | Also print the primer written atop .sim/AGENTS.md (a `primer` field in JSON). |
|`--dir <dir>`| No | Source directory whose catalog to read. Defaults to `.`. |
1578
+
|`--full`| No | Print every param with its type, enum, default and doc, not the brief form. |
1577
1579
1578
1580
</CommandTable>
1579
1581
1580
-
Prints a builder's params (required first, with enums and defaults), the gate field that picks which others apply, and its outputs, from the block catalog the last get, create or check cached. No request is made. <builder> is the dotted builder path as source writes it: table.upsertRow, agent, trigger.schedule, slack.sendMessage (slack.tool.sendMessage names the same builder). A namespace (gmail, trigger.gmail) lists its builders; a block type prints the builder written for it (function is fn) or lists them (table_v2); a construct core.d.ts declares (loop, parallel, t, env) prints its declaration. Run it from a workflow or workspace source directory, or pass --dir.
1582
+
Prints a builder in brief (an example call, the required params with types, the optional ones by name, the gate field that picks which others apply, and the outputs), from the block catalog the last get, create or check cached. --full prints every param with its type, enum, default and doc. A legacy builder names the one that replaces it. No request is made. <builder> is the dotted builder path as source writes it: table.upsertRow, agent, trigger.schedule, slack.sendMessage (slack.tool.sendMessage names the same builder). A namespace (gmail, trigger.gmail) lists its builders; a block type prints the builder written for it (function is fn) or lists them (table_v2); a construct core.d.ts declares (loop, parallel, t, env) prints its declaration. Run it from a workflow or workspace source directory, or pass --dir.
1581
1583
1582
1584
Exit codes: 0 printed; 1 no builder or namespace of that name (the closest one is named), or no cached catalog (run a get once).
Copy file name to clipboardExpand all lines: apps/docs/content/docs/workflows/code/coding-agents.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Claude Code, Cursor, Codex and other coding agents work from a directory that `g
7
7
8
8
## What get gives an agent
9
9
10
-
- A **primer**: `get` prints it (in JSON output, its `primer` field), and it opens `.sim/AGENTS.md`. It covers the edit loop, how block identity, references and renames work, failures and retries, test runs, deletes, deploy, exit codes, and the params of each builder the workflow already uses.
10
+
- A **primer**, which opens `.sim/AGENTS.md`. `get` prints a short summary instead (the files written, the guide, and the `editLoop` commands to run); `get --primer` also prints the primer (in JSON output, its `primer` field). It covers the edit loop, how block identity, references and renames work, failures and retries, test runs, deletes, deploy, exit codes, and the params of each builder the workflow already uses.
11
11
-**`.sim/AGENTS.md`**: the primer followed by a reference, by task. A workspace directory also gets `.sim/GUIDE-advanced.md`.
12
12
-**`.sim/examples/`**: one correct example of each common block to copy from.
13
13
-**`.sim/sdk/`**: the type declarations, with `.sim/sdk/INDEX.md` listing the builders.
@@ -26,7 +26,7 @@ For a whole workspace, use `sim workspaces source` with the same steps; see [Man
26
26
27
27
## Look things up
28
28
29
-
-`sim workflows source params <builder>` prints a builder's params and outputs from the cached block catalog without a request. A namespace such as `gmail` lists its builders.
29
+
-`sim workflows source params <builder>` prints a builder in brief (an example call, the required params with types, the optional ones by name and the outputs) from the cached block catalog without a request. `--full` prints every param with its type, options, default and doc. A legacy builder names the one that replaces it, and a namespace such as `gmail` lists its builders.
30
30
-`sim workflows source resources` lists the tables, knowledge bases, credentials, workflows, skills, custom tools, MCP servers and environment variable names the file can name.
31
31
-`sim workflows source catalog` shows the block catalog the source is checked against.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/workflows/code/directory.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ description: Every file a workflow directory and a workspace directory holds, wh
18
18
|`.sim/written.json`| A digest of each file as the CLI last wrote it, so `status` and `get` tell your edits from the CLI's | Commit |
19
19
|`.sim/stored-edges.json`| The connections the stored workflow held when it was printed, so an offline `check` tells them from connections you added. The CLI's own record, never sent | Commit |
20
20
|`.sim/starter.json`| The workspace a starter was written for, before `create`| Not kept: removed once the workflow exists |
21
-
|`.sim/AGENTS.md`| The guide for coding agents: the primer`get` prints, then a reference | Optional, written again by `get`|
21
+
|`.sim/AGENTS.md`| The guide for coding agents: the primer, then a reference | Optional, written again by `get`|
22
22
|`.sim/examples/`| Example workflows to copy from | Optional, written again by `get`|
23
23
|`.sim/sdk/`| Type declarations for the blocks the workflow uses, and your workspace's tables, credentials, knowledge bases and environment variable names. `.sim/sdk/INDEX.md` lists the builders | Optional, written again by `get` and `check`|
24
24
|`tsconfig.json`| Resolves the declarations and type-checks the blocks the workflow uses. Left as it is if you already have one | Commit |
Copy file name to clipboardExpand all lines: apps/docs/content/docs/workflows/code/edit.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ This writes `workflow.ts`, any function code under `functions/`, type declaratio
19
19
20
20
`get` into a directory that already holds source refuses to overwrite edits you have not applied, and refuses a directory that holds a different workflow. Pass `--force` to replace them. A workspace directory is always refused, `--force` included.
21
21
22
-
To write a block the workflow does not use yet, `sim workflows source params <builder>` (for example `table.upsertRow` or `trigger.schedule`) prints its params, required ones first with their options and defaults, and its outputs, from the cached block catalog without a request. A namespace such as `gmail` lists its builders.
22
+
To write a block the workflow does not use yet, `sim workflows source params <builder>` (for example `table.upsertRow` or `trigger.schedule`) prints an example call, its required params with their types, its optional params by name and its outputs, from the cached block catalog without a request (`--full` adds every param's options, default and doc). A namespace such as `gmail` lists its builders.
Claude Code, Cursor, Codex and other coding agents work from a directory that `get` writes. `get` prints a primer and writes the full guide to `.sim/AGENTS.md`. See [Use with coding agents](/workflows/code/coding-agents).
47
+
Claude Code, Cursor, Codex and other coding agents work from a directory that `get` writes. `get` prints a summary with the edit loop and writes the primer and full guide to `.sim/AGENTS.md`. See [Use with coding agents](/workflows/code/coding-agents).
Copy file name to clipboardExpand all lines: apps/docs/content/docs/workflows/code/syntax.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -196,7 +196,7 @@ A secret is never printed. A literal value in a password field prints as `stored
196
196
197
197
### JSON fields
198
198
199
-
A field that holds JSON text, such as `responseFormat`, a table row's `data` or a response body, takes an object or array literal and stores it as formatted JSON. Each bare reference inside is quoted when the output is a string and left bare otherwise, because the run splices a string raw and any other value as JSON. A reference no output type is known for is stored bare with `W_JSON_REF_UNTYPED`. A template is a JSON string, which is how a value becomes text on purpose. A resource helper inside the literal is `E_UNSUPPORTED_SYNTAX`.
199
+
A field that holds JSON text, such as `responseFormat`, a table row's `data` or a response body, takes an object or array literal and stores it as formatted JSON. Each bare reference inside is quoted when the output is a string and left bare otherwise, because the run splices a string raw and any other value as JSON. A field of a Function's `result` has the type its JavaScript certainly returns there (a string literal, `String(…)`, `.toISOString().slice(…)` and the like are text; arithmetic, comparisons and literals are not). A reference no output type is known for is stored bare with `W_JSON_REF_UNTYPED`. A template is a JSON string, which is how a value becomes text on purpose. A resource helper inside the literal is `E_UNSUPPORTED_SYNTAX`.
`get`prints a short primer for coding agents (in JSON output, its `primer` field) and writes it atop `.sim/AGENTS.md`, the guide, with deletes in depth, Git and CI, and promoting to another workspace in `.sim/GUIDE-advanced.md`. It also writes `.sim/examples/workspace/`, a complete example of every kind and the workflow that uses them.
35
+
`get`writes a short primer for coding agents atop `.sim/AGENTS.md` (`get --primer` also prints it, in JSON output as its `primer` field), the guide, with deletes in depth, Git and CI, and promoting to another workspace in `.sim/GUIDE-advanced.md`. It also writes `.sim/examples/workspace/`, a complete example of every kind and the workflow that uses them.
0 commit comments