From 77ee7d8b8b4697c0eb6662bae62259d1d948071d Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 26 Nov 2026 13:34:50 -0800 Subject: [PATCH 1/2] fix(sim-cli): point the workflow primer's table scope at commands every agent can run --- packages/sim-cli/src/commands/protocol/source-primer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sim-cli/src/commands/protocol/source-primer.ts b/packages/sim-cli/src/commands/protocol/source-primer.ts index f70c7639558..9b422b399ba 100644 --- a/packages/sim-cli/src/commands/protocol/source-primer.ts +++ b/packages/sim-cli/src/commands/protocol/source-primer.ts @@ -60,7 +60,7 @@ const WORKFLOW_PRIMER = `# Sim workflow source: primer **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 && sim workflows run --dry --input '{…}'\`. \`check\` also type-checks (no \`tsc\`). Apply re-checks (\`apply --dry\` only plans) and rewrites \`${SOURCE_ENTRY_FILE}\`: reread it before the next edit. -- **Scope**: the workflow alone. A table's columns and rows: \`sim workspaces source get --dir \`. +- **Scope**: the workflow alone. A table's columns and rows: \`sim tables columns update \`, \`sim tables rows update
\`. - **Deletes**: removing a block or variable needs \`apply --allow-delete\`. - **Deploy**: \`apply --deploy\`, or later \`sim workflows deploy \`. ${sharedRules('sim workflows source')} From c458409131ac5c062a2462989c1e72913f79a969 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 26 Nov 2026 14:06:16 -0800 Subject: [PATCH 2/2] fix(sim-cli): give the table scope commands their required arguments --- packages/sim-cli/src/commands/protocol/source-primer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sim-cli/src/commands/protocol/source-primer.ts b/packages/sim-cli/src/commands/protocol/source-primer.ts index 9b422b399ba..145388cf03e 100644 --- a/packages/sim-cli/src/commands/protocol/source-primer.ts +++ b/packages/sim-cli/src/commands/protocol/source-primer.ts @@ -60,7 +60,7 @@ const WORKFLOW_PRIMER = `# Sim workflow source: primer **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 && sim workflows run --dry --input '{…}'\`. \`check\` also type-checks (no \`tsc\`). Apply re-checks (\`apply --dry\` only plans) and rewrites \`${SOURCE_ENTRY_FILE}\`: reread it before the next edit. -- **Scope**: the workflow alone. A table's columns and rows: \`sim tables columns update
\`, \`sim tables rows update
\`. +- **Scope**: the workflow alone. A table's columns and rows: \`sim tables columns update
--column-name --updates '{…}'\`, \`sim tables rows update
--data '{…}'\`. - **Deletes**: removing a block or variable needs \`apply --allow-delete\`. - **Deploy**: \`apply --deploy\`, or later \`sim workflows deploy \`. ${sharedRules('sim workflows source')}