sim 2.1.4-dev.62.1 → 2.1.4-dev.64.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 +9 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6995,6 +6995,11 @@ var V2_OPERATIONS = {
6995
6995
  conversationId: {
6996
6996
  kind: "string",
6997
6997
  describe: "Conversation to continue; a new one starts when omitted."
6998
+ },
6999
+ effort: {
7000
+ kind: "enum",
7001
+ values: ["low", "medium", "high", "xhigh", "max"],
7002
+ describe: "Model effort for this turn; defaults to the deployment default (high)."
6998
7003
  }
6999
7004
  }
7000
7005
  },
@@ -8323,7 +8328,7 @@ var V2_OPERATIONS = {
8323
8328
  },
8324
8329
  selectedOutputs: {
8325
8330
  kind: "array",
8326
- describe: "Block output references to include in a streamed response, as `blockId`, `blockId.path`, or `BlockName.path` (resolved against the live workflow). Requires `stream: true` — it shapes the streamed envelope only, so it is rejected on a sync request and when `async` is true. To narrow a finished run, pass `selectedOutputs` to the run resource instead."
8331
+ describe: "Block output references to include in the response, as `blockId`, `blockId.path`, or `BlockName.path` (resolved against the workflow state being run). On a sync request the named outputs come back in `blockOutputs`, keyed by these selector strings; on a stream they shape the streamed envelope. Selectors that resolve to no block or no value are omitted. Rejected when `async` is true — a queued run has produced nothing to select; narrow the finished run via the run resource instead."
8327
8332
  },
8328
8333
  includeThinking: {
8329
8334
  kind: "boolean",
@@ -13066,7 +13071,7 @@ var CLI_CONTRACT = {
13066
13071
  selectedOutputs: {
13067
13072
  name: "select-output",
13068
13073
  list: true,
13069
- describe: "Return blockName.field values from the streamed result (e.g. agent_1.content), requires --follow; missing fields are omitted"
13074
+ describe: "Return blockName.field values (e.g. agent_1.content) — in blockOutputs on a sync run, or from the streamed result with --follow; missing fields are omitted. Not available with --async"
13070
13075
  },
13071
13076
  stream: { omit: true },
13072
13077
  includeThinking: { omit: true },
@@ -15960,8 +15965,8 @@ function followOrDelegate(previous) {
15960
15965
  command.setOptionValue("run", selection);
15961
15966
  const flags = command.optsWithGlobals();
15962
15967
  if (flags.follow !== true) {
15963
- if (Array.isArray(flags.selectOutput) && flags.selectOutput.length > 0) {
15964
- throw new SimApiError(flags.async === true ? "--select-output shapes a streamed result, and --async returns as soon as the run is queued, so there is no stream to shape. Drop one of them, or read the finished run with: sim workflows runs get <runId> --workflow <workflowId> --select-output <blockId>[.path] — that resource matches block ids, not the block names --select-output takes here." : "--select-output shapes a streamed result; add --follow. To narrow a run that has already finished: sim workflows runs get <runId> --workflow <workflowId> --select-output <blockId>[.path] — that resource matches block ids, not the block names --select-output takes here.", 0);
15968
+ if (Array.isArray(flags.selectOutput) && flags.selectOutput.length > 0 && flags.async === true) {
15969
+ throw new SimApiError("--select-output names outputs of a completed run, and --async returns as soon as the run is queued. Drop one of them, or read the finished run with: sim workflows runs get <runId> --workflow <workflowId> --select-output <blockId>[.path] — that resource matches block ids, not the block names --select-output takes here.", 0);
15965
15970
  }
15966
15971
  if (flags.includeThinking === true || flags.includeToolCalls === true) {
15967
15972
  throw new SimApiError("--include-thinking and --include-tool-calls describe a stream; add --follow", 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.1.4-dev.62.1",
3
+ "version": "2.1.4-dev.64.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "bin": {