sim 2.1.5-dev.76.1 → 2.1.5-dev.77.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15789,14 +15789,11 @@ var AGENT_STREAM_PROTOCOL_HEADER = "x-sim-stream-protocol";
15789
15789
  var AGENT_STREAM_PROTOCOL_V1 = "agent-events-v1";
15790
15790
  var DONE_SENTINEL = "[DONE]";
15791
15791
  function resolveWorkflowRunSelection(flags) {
15792
- const manual = flags.manual === true;
15793
15792
  const trigger = typeof flags.trigger === "string" ? flags.trigger : undefined;
15794
15793
  const useMockPayload = flags.mockPayload === true;
15794
+ const manual = flags.manual === true || trigger !== undefined || useMockPayload;
15795
15795
  const fromBlock = typeof flags.fromBlock === "string" ? flags.fromBlock : undefined;
15796
15796
  const sourceRun = typeof flags.sourceRun === "string" ? flags.sourceRun : undefined;
15797
- if ((trigger || useMockPayload) && !manual) {
15798
- throw new SimApiError("--trigger and --mock-payload require --manual", 0);
15799
- }
15800
15797
  if (fromBlock && (trigger || useMockPayload)) {
15801
15798
  throw new SimApiError("--from-block cannot be combined with --trigger or --mock-payload", 0);
15802
15799
  }
@@ -16026,7 +16023,7 @@ function attachWorkflowRunFollow(workflows) {
16026
16023
  }
16027
16024
  const held = run._actionHandler;
16028
16025
  const previous = typeof held === "function" ? held : null;
16029
- run.option("--manual", "Run the current saved workflow state instead of the active deployment").option("--trigger <blockId>", "Enter a manual run through this runnable trigger (requires --manual)").option("--mock-payload", "Use the selected trigger's server-derived mock payload (requires --manual)").option("--from-block <blockId>", "Run manually from this saved workflow block").option("--source-run <runId>", "Prior run whose persisted state supplies upstream outputs (requires --from-block)").option("--follow", "Stream the run as it happens; progress on stderr, result on stdout. The stream reports only success and output, so the result omits the run id and timings a non-streaming run returns").option("--include-thinking", "Show model reasoning while following (requires --follow)").option("--include-tool-calls", "Show tool calls while following (requires --follow)").action(followOrDelegate(previous));
16026
+ run.option("--manual", "Run the current saved workflow state instead of the active deployment").option("--trigger <blockId>", "Enter the run through this runnable trigger; runs the current saved workflow state (implies --manual)").option("--mock-payload", "Use the selected trigger's server-derived mock payload; runs the current saved workflow state (implies --manual)").option("--from-block <blockId>", "Run manually from this saved workflow block").option("--source-run <runId>", "Prior run whose persisted state supplies upstream outputs (requires --from-block)").option("--follow", "Stream the run as it happens; progress on stderr, result on stdout. The stream reports only success and output, so the result omits the run id and timings a non-streaming run returns").option("--include-thinking", "Show model reasoning while following (requires --follow)").option("--include-tool-calls", "Show tool calls while following (requires --follow)").action(followOrDelegate(previous));
16030
16027
  }
16031
16028
 
16032
16029
  // src/commands/protocol/workflow-run-wait.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.1.5-dev.76.1",
3
+ "version": "2.1.5-dev.77.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "bin": {