sim 2.1.5-dev.74.1 → 2.1.5-dev.76.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 +10 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6666,8 +6666,8 @@ var V2_OPERATIONS = {
6666
6666
  },
6667
6667
  outputColumns: {
6668
6668
  kind: "array",
6669
- required: true,
6670
- describe: "Columns created for producer outputs."
6669
+ default: [],
6670
+ describe: "Columns to create for producer outputs. An entry naming a column the table already has attaches that column to the group instead of creating it (its `type` must match), and an output whose column already exists may omit its entry entirely — so `[]` attaches existing columns only."
6671
6671
  },
6672
6672
  autoRun: {
6673
6673
  kind: "boolean",
@@ -9915,7 +9915,7 @@ var V2_OPERATIONS = {
9915
9915
  pathParams: ["tableId"],
9916
9916
  pathParamDocs: { tableId: "Unique table identifier." },
9917
9917
  responseMode: "json",
9918
- summary: "List Active Run Dispatches",
9918
+ summary: "List Run Dispatches",
9919
9919
  query: {
9920
9920
  workspaceId: { kind: "string", required: true, describe: "Workspace that owns the table." }
9921
9921
  }
@@ -12356,7 +12356,7 @@ var CLI_CONTRACT = {
12356
12356
  },
12357
12357
  applyWorkflowOperations: {
12358
12358
  command: "workflows operations apply",
12359
- confirm: "This edits the draft graph, and a delete operation removes blocks and their edges.",
12359
+ confirm: "This edits the draft graph: the batch adds, edits, or deletes blocks and their edges as written.",
12360
12360
  flags: {
12361
12361
  operations: { json: true, describe: WORKFLOW_OPERATIONS_HELP },
12362
12362
  setBlockEnabled: { json: true, describe: WORKFLOW_SET_BLOCK_ENABLED_HELP }
@@ -13958,7 +13958,7 @@ function renderResult(operation, format, raw, spec, options = {}, envelope) {
13958
13958
  printDocument(format, raw);
13959
13959
  return;
13960
13960
  }
13961
- const data = unwrapResource(raw);
13961
+ const data = format === "json" || format === "yaml" ? raw : unwrapResource(raw);
13962
13962
  if (spec.itemsPath) {
13963
13963
  const items = at(data, spec.itemsPath);
13964
13964
  if (!Array.isArray(items)) {
@@ -16049,6 +16049,9 @@ function isRecord2(value) {
16049
16049
  function optionalString(value) {
16050
16050
  return typeof value === "string" && value !== "" ? value : null;
16051
16051
  }
16052
+ function runData(raw) {
16053
+ return isRecord2(raw) && isRecord2(raw.data) ? raw.data : raw;
16054
+ }
16052
16055
  function readRun(raw) {
16053
16056
  const run = isRecord2(raw) && isRecord2(raw.data) ? raw.data : raw;
16054
16057
  if (!isRecord2(run) || typeof run.status !== "string") {
@@ -16123,7 +16126,7 @@ function attachWorkflowRunWait(runs) {
16123
16126
  const outcome = classify(snapshot);
16124
16127
  if (outcome) {
16125
16128
  progress.finish();
16126
- renderResult("getWorkflowRun", profile.output, raw, runSpec());
16129
+ renderResult("getWorkflowRun", profile.output, runData(raw), runSpec());
16127
16130
  const message = explain(outcome, runId, options.workflow, snapshot);
16128
16131
  if (message)
16129
16132
  console.error(source_default.red(message));
@@ -16133,7 +16136,7 @@ function attachWorkflowRunWait(runs) {
16133
16136
  const remainingMs = deadline - Date.now();
16134
16137
  if (remainingMs <= 0) {
16135
16138
  progress.finish();
16136
- renderResult("getWorkflowRun", profile.output, raw, runSpec());
16139
+ renderResult("getWorkflowRun", profile.output, runData(raw), runSpec());
16137
16140
  console.error(source_default.red(`Timed out after ${timeoutSeconds}s waiting for run ${runId} (status: ${snapshot.status}${snapshot.resumeAt ? `, resuming at ${snapshot.resumeAt}` : ""}). Raise ${WAIT_TIMEOUT_FLAG}, or set it to 0 to wait indefinitely.`));
16138
16141
  setSoftExitCode(WAIT_EXIT_CODES.timeout);
16139
16142
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.1.5-dev.74.1",
3
+ "version": "2.1.5-dev.76.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "bin": {