Skip to content

Commit a5c89cf

Browse files
authored
fix(sim-cli): keep the workflow primer within its byte budget (#10448)
* fix(sim-cli): keep the workflow primer within its byte budget #10440 and #10444 each fit the 4096-byte budget, but together the workflow primer reached 4127 bytes and the primer budget test failed on staging. Tighten two sentences (88 bytes of headroom) without dropping any rule. * fix(sim-cli): keep the primer's note that --run tests the draft
1 parent 23a4c2d commit a5c89cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/sim-cli/src/commands/protocol/source-primer.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ ${PATTERNS_HEADING} (\`.sim/examples/\`, indexed atop \`cookbook.ts\`; any build
5656

5757
const WORKFLOW_PRIMER = `# Sim workflow source: primer
5858
59-
\`${SOURCE_ENTRY_FILE}\` is a Sim workflow as TypeScript; the server compiles it statically and nothing in it runs. Commands here (table ones too) act on the workflow \`${SOURCE_BASE_FILE}\` names and its workspace (a starter's \`${SOURCE_STARTER_FILE}\` names the workspace, and its loop runs \`create\` where the loop below runs \`apply\`: no workflow exists until then).
59+
\`${SOURCE_ENTRY_FILE}\` is a Sim workflow as TypeScript; the server compiles it statically and nothing in it runs. Commands here (table ones too) act on the workflow \`${SOURCE_BASE_FILE}\` names and its workspace (a starter's \`${SOURCE_STARTER_FILE}\` names the workspace, and its loop runs \`create\` in place of \`apply\`: no workflow exists yet).
6060
61-
**Edit loop**: write every file, then run one chained command; fix what it reports: \`sim workflows source check --dir . && sim workflows source apply --dir . --yes --run '{…}' --deploy\` applies, dry-runs that input on the draft, and deploys only if the run completed (no \`--deploy\`: stays a draft). \`check\` also type-checks (no \`tsc\`). Apply re-checks (\`apply --dry\` only plans) and rewrites \`${SOURCE_ENTRY_FILE}\`: reread it before the next edit.
61+
**Edit loop**: write every file, then run one chained command; fix what it reports: \`sim workflows source check --dir . && sim workflows source apply --dir . --yes --run '{…}' --deploy\` applies, dry-runs that input on the draft, and deploys only if it completed (no \`--deploy\`: stays a draft). \`check\` also type-checks (no \`tsc\`). Apply re-checks (\`apply --dry\` only plans) and rewrites \`${SOURCE_ENTRY_FILE}\`: reread it before editing.
6262
63-
- **Scope**: the workflow alone. A table's columns and rows: \`sim tables columns update <table> --column-name <column> --updates '{…}'\`, \`sim tables rows update <table> <row> --data '{…}'\`.
63+
- **Scope**: the workflow alone. Table columns and rows: \`sim tables columns update <table> --column-name <column> --updates '{…}'\`, \`sim tables rows update <table> <row> --data '{…}'\`.
6464
- **Deletes**: removing a block or variable needs \`apply --allow-delete\`.
6565
${sharedRules('sim workflows source')}
6666
`

0 commit comments

Comments
 (0)