sim 2.1.4-dev.58.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.
- package/dist/index.js +16 -4
- 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
|
|
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
|
|
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 },
|
|
@@ -13284,6 +13289,13 @@ function readArgumentSource(raw, flagName) {
|
|
|
13284
13289
|
return { text: raw.slice(1), from: "" };
|
|
13285
13290
|
if (!raw.startsWith("@"))
|
|
13286
13291
|
return { text: raw, from: "" };
|
|
13292
|
+
const embedded = embedStore.getStore();
|
|
13293
|
+
if (embedded) {
|
|
13294
|
+
const preloaded = embedded.fileArguments?.[raw.slice(1)];
|
|
13295
|
+
if (preloaded !== undefined)
|
|
13296
|
+
return { text: preloaded, from: " (read from your machine)" };
|
|
13297
|
+
throw new SimApiError(`--${flagName}: no file "${raw.slice(1)}" on this machine — write it first (run_code), or pass the value inline`, 0);
|
|
13298
|
+
}
|
|
13287
13299
|
const path = raw.slice(1);
|
|
13288
13300
|
if (path === "-") {
|
|
13289
13301
|
if (process.stdin.isTTY) {
|
|
@@ -15953,8 +15965,8 @@ function followOrDelegate(previous) {
|
|
|
15953
15965
|
command.setOptionValue("run", selection);
|
|
15954
15966
|
const flags = command.optsWithGlobals();
|
|
15955
15967
|
if (flags.follow !== true) {
|
|
15956
|
-
if (Array.isArray(flags.selectOutput) && flags.selectOutput.length > 0) {
|
|
15957
|
-
throw new SimApiError(
|
|
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);
|
|
15958
15970
|
}
|
|
15959
15971
|
if (flags.includeThinking === true || flags.includeToolCalls === true) {
|
|
15960
15972
|
throw new SimApiError("--include-thinking and --include-tool-calls describe a stream; add --follow", 0);
|