sim 2.1.5-dev.73.1 → 2.1.5-dev.75.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 +9 -6
- 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
|
-
|
|
6670
|
-
describe: "Columns
|
|
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
|
|
9918
|
+
summary: "List Run Dispatches",
|
|
9919
9919
|
query: {
|
|
9920
9920
|
workspaceId: { kind: "string", required: true, describe: "Workspace that owns the table." }
|
|
9921
9921
|
}
|
|
@@ -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;
|