deepline 0.1.113 → 0.1.114
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/cli/index.js +78 -39
- package/dist/cli/index.mjs +78 -39
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/repo/sdk/src/release.ts +2 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -403,10 +403,10 @@ var SDK_RELEASE = {
|
|
|
403
403
|
// skill on the sdk sync surface, and the people-search-to-email prebuilt.
|
|
404
404
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
405
405
|
// the SDK enrich generator's one-second stale policy.
|
|
406
|
-
version: "0.1.
|
|
406
|
+
version: "0.1.114",
|
|
407
407
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
408
408
|
supportPolicy: {
|
|
409
|
-
latest: "0.1.
|
|
409
|
+
latest: "0.1.114",
|
|
410
410
|
minimumSupported: "0.1.53",
|
|
411
411
|
deprecatedBelow: "0.1.53",
|
|
412
412
|
commandMinimumSupported: [
|
|
@@ -16031,6 +16031,8 @@ ${indent(renderJavascriptBody(command.run_if_js), 6)}
|
|
|
16031
16031
|
force: true` : "";
|
|
16032
16032
|
const legacyEnvelope = options.legacyEnvelope ? `,
|
|
16033
16033
|
legacyEnvelope: true` : "";
|
|
16034
|
+
const waterfallSoftFail = options.waterfallSoftFail ? `,
|
|
16035
|
+
waterfallSoftFail: true` : "";
|
|
16034
16036
|
return [
|
|
16035
16037
|
`async (row, stepCtx) => {`,
|
|
16036
16038
|
...options.precheck ? [` if (${options.precheck}) return null;`] : [],
|
|
@@ -16042,7 +16044,7 @@ ${indent(renderJavascriptBody(command.run_if_js), 6)}
|
|
|
16042
16044
|
` extract: ${extractJs},`,
|
|
16043
16045
|
` runIf: ${runIfJs},`,
|
|
16044
16046
|
` row,`,
|
|
16045
|
-
` stepCtx${description}${force}${legacyEnvelope}`,
|
|
16047
|
+
` stepCtx${description}${force}${legacyEnvelope}${waterfallSoftFail}`,
|
|
16046
16048
|
` });`,
|
|
16047
16049
|
`}`
|
|
16048
16050
|
].join("\n");
|
|
@@ -16066,34 +16068,22 @@ function renderIdiomaticExecuteStep(command, options) {
|
|
|
16066
16068
|
`async (row, ctx) => {`,
|
|
16067
16069
|
...options.precheck ? [` if (${options.precheck}) return null;`] : [],
|
|
16068
16070
|
...runIfLines,
|
|
16069
|
-
`
|
|
16070
|
-
`
|
|
16071
|
-
`
|
|
16072
|
-
`
|
|
16073
|
-
`
|
|
16074
|
-
|
|
16075
|
-
`
|
|
16071
|
+
` let result: any;`,
|
|
16072
|
+
` try {`,
|
|
16073
|
+
` result = await ctx.tools.execute({`,
|
|
16074
|
+
` id: ${callId},`,
|
|
16075
|
+
` tool: ${tool},`,
|
|
16076
|
+
` input: ${input2} as any,`,
|
|
16077
|
+
` description: ${stringLiteral((command.description ?? "").trim() || `Run ${command.alias} via ${command.tool}.`)},`,
|
|
16078
|
+
...options.force ? [` force: true,`] : [],
|
|
16079
|
+
` });`,
|
|
16080
|
+
` } catch (error) {`,
|
|
16081
|
+
...options.waterfallSoftFail ? [` return __dlWaterfallToolFailure(error);`] : [` throw error;`],
|
|
16082
|
+
` }`,
|
|
16076
16083
|
` return ${extraction};`,
|
|
16077
16084
|
`}`
|
|
16078
16085
|
].join("\n");
|
|
16079
16086
|
}
|
|
16080
|
-
function renderInlineJavascriptStep(command, options) {
|
|
16081
|
-
const code = typeof command.payload?.code === "string" ? command.payload.code : "return null;";
|
|
16082
|
-
const runIfLines = command.run_if_js ? [
|
|
16083
|
-
` if (!((row: Record<string, any>) => { const input = row; const context = row;`,
|
|
16084
|
-
indent(renderJavascriptBody(command.run_if_js), 4),
|
|
16085
|
-
` })(row as Record<string, any>)) return null;`
|
|
16086
|
-
] : [];
|
|
16087
|
-
return [
|
|
16088
|
-
`async (row) => {`,
|
|
16089
|
-
...options.precheck ? [` if (${options.precheck}) return null;`] : [],
|
|
16090
|
-
...runIfLines,
|
|
16091
|
-
` return ((row: Record<string, any>, input: Record<string, any>, context: Record<string, any>) => {`,
|
|
16092
|
-
indent(renderJavascriptBody(code), 4),
|
|
16093
|
-
` })(row as Record<string, any>, row as Record<string, any>, row as Record<string, any>);`,
|
|
16094
|
-
`}`
|
|
16095
|
-
].join("\n");
|
|
16096
|
-
}
|
|
16097
16087
|
function renderPlayStep(command, options) {
|
|
16098
16088
|
const alias = stringLiteral(command.alias);
|
|
16099
16089
|
const callId = stringLiteral(commandCallId(command));
|
|
@@ -16112,13 +16102,35 @@ ${indent(renderJavascriptBody(command.run_if_js), 6)}
|
|
|
16112
16102
|
` const templateRow = __dlPrepareEnrichRow(row, [${alias}]);`,
|
|
16113
16103
|
...runIfLines,
|
|
16114
16104
|
` const payload = __dlTemplate(${payload}, templateRow) as Record<string, unknown>;`,
|
|
16115
|
-
`
|
|
16116
|
-
`
|
|
16117
|
-
`
|
|
16105
|
+
` let result: unknown;`,
|
|
16106
|
+
` try {`,
|
|
16107
|
+
` result = await stepCtx.runPlay(${callId}, ${playRef}, payload, {`,
|
|
16108
|
+
` description: ${stringLiteral(command.description ?? command.alias)}`,
|
|
16109
|
+
` });`,
|
|
16110
|
+
` } catch (error) {`,
|
|
16111
|
+
...options.waterfallSoftFail ? [` return __dlWaterfallToolFailure(error);`] : [` throw error;`],
|
|
16112
|
+
` }`,
|
|
16118
16113
|
` return __dlPlayResultValue(${alias}, result);`,
|
|
16119
16114
|
`}`
|
|
16120
16115
|
].join("\n");
|
|
16121
16116
|
}
|
|
16117
|
+
function renderInlineJavascriptStep(command, options) {
|
|
16118
|
+
const code = typeof command.payload?.code === "string" ? command.payload.code : "return null;";
|
|
16119
|
+
const runIfLines = command.run_if_js ? [
|
|
16120
|
+
` if (!((row: Record<string, any>) => { const input = row; const context = row;`,
|
|
16121
|
+
indent(renderJavascriptBody(command.run_if_js), 4),
|
|
16122
|
+
` })(row as Record<string, any>)) return null;`
|
|
16123
|
+
] : [];
|
|
16124
|
+
return [
|
|
16125
|
+
`async (row) => {`,
|
|
16126
|
+
...options.precheck ? [` if (${options.precheck}) return null;`] : [],
|
|
16127
|
+
...runIfLines,
|
|
16128
|
+
` return ((row: Record<string, any>, input: Record<string, any>, context: Record<string, any>) => {`,
|
|
16129
|
+
indent(renderJavascriptBody(code), 4),
|
|
16130
|
+
` })(row as Record<string, any>, row as Record<string, any>, row as Record<string, any>);`,
|
|
16131
|
+
`}`
|
|
16132
|
+
].join("\n");
|
|
16133
|
+
}
|
|
16122
16134
|
function renderJavascriptBody(source) {
|
|
16123
16135
|
assertUserCodeIsSafe(source, "play step code");
|
|
16124
16136
|
const trimmed = source.trim();
|
|
@@ -16245,7 +16257,8 @@ function renderWaterfallColumns(command, forceAliases, inlineRunJavascript, idio
|
|
|
16245
16257
|
precheck: priorAliases.length > 0 ? `__dlWaterfallSatisfied(row, ${stableJson(priorAliases)}, ${minResults})` : void 0,
|
|
16246
16258
|
legacyEnvelope: Boolean(nested.extract_js),
|
|
16247
16259
|
inlineRunJavascript,
|
|
16248
|
-
idiomaticGetters
|
|
16260
|
+
idiomaticGetters,
|
|
16261
|
+
waterfallSoftFail: true
|
|
16249
16262
|
}),
|
|
16250
16263
|
{ recompute: force, recomputeOnError: true }
|
|
16251
16264
|
);
|
|
@@ -16900,6 +16913,26 @@ function helperSource() {
|
|
|
16900
16913
|
` return 'Extractor failed';`,
|
|
16901
16914
|
`}`,
|
|
16902
16915
|
``,
|
|
16916
|
+
`function __dlErrorDetail(error: unknown): string {`,
|
|
16917
|
+
` const message = __dlErrorMessage(error);`,
|
|
16918
|
+
` if (!__dlRecord(error)) return message;`,
|
|
16919
|
+
` try {`,
|
|
16920
|
+
` return message + ' ' + JSON.stringify(error);`,
|
|
16921
|
+
` } catch {`,
|
|
16922
|
+
` return message;`,
|
|
16923
|
+
` }`,
|
|
16924
|
+
`}`,
|
|
16925
|
+
``,
|
|
16926
|
+
`function __dlRecoverableWaterfallToolError(error: unknown): boolean {`,
|
|
16927
|
+
` const detail = __dlErrorDetail(error).toLowerCase();`,
|
|
16928
|
+
` return /\\b5\\d\\d\\b/.test(detail) || detail.includes('upstream_failure') || detail.includes('"error_category":"upstream"') || (detail.includes('"failure_origin":"provider"') && detail.includes('"status":5')) || detail.includes('bad gateway') || detail.includes('gateway time-out') || detail.includes('gateway timeout') || detail.includes('service unavailable');`,
|
|
16929
|
+
`}`,
|
|
16930
|
+
``,
|
|
16931
|
+
`function __dlWaterfallToolFailure(error: unknown): unknown {`,
|
|
16932
|
+
` if (__dlRecoverableWaterfallToolError(error)) return __dlExtractorFailure(error);`,
|
|
16933
|
+
` throw error;`,
|
|
16934
|
+
`}`,
|
|
16935
|
+
``,
|
|
16903
16936
|
`function __dlExtractorFailure(error: unknown): unknown {`,
|
|
16904
16937
|
` const message = __dlErrorMessage(error);`,
|
|
16905
16938
|
` return { matched_result: null, result: { error: message, message } };`,
|
|
@@ -16996,19 +17029,25 @@ function helperSource() {
|
|
|
16996
17029
|
` return result;`,
|
|
16997
17030
|
`}`,
|
|
16998
17031
|
``,
|
|
16999
|
-
`async function __dlRunCommand(input: { alias: string; callId: string; tool: string; payload: Record<string, unknown>; extract: ((args: __DlExtractorHelpers) => unknown) | null; runIf: ((row: Record<string, unknown>) => unknown) | null; row: Record<string, unknown>; stepCtx: { tools: { execute: (request: Record<string, unknown>) => Promise<unknown> } }; description?: string; force?: boolean; legacyEnvelope?: boolean }): Promise<unknown> {`,
|
|
17032
|
+
`async function __dlRunCommand(input: { alias: string; callId: string; tool: string; payload: Record<string, unknown>; extract: ((args: __DlExtractorHelpers) => unknown) | null; runIf: ((row: Record<string, unknown>) => unknown) | null; row: Record<string, unknown>; stepCtx: { tools: { execute: (request: Record<string, unknown>) => Promise<unknown> } }; description?: string; force?: boolean; legacyEnvelope?: boolean; waterfallSoftFail?: boolean }): Promise<unknown> {`,
|
|
17000
17033
|
` if (input.runIf) {`,
|
|
17001
17034
|
` const shouldRun = input.runIf(input.row);`,
|
|
17002
17035
|
` if (!shouldRun) return null;`,
|
|
17003
17036
|
` }`,
|
|
17004
17037
|
` const payload = __dlRuntimePayload(input.tool, __dlTemplate(input.payload, input.row) as Record<string, unknown>, input.row);`,
|
|
17005
|
-
`
|
|
17006
|
-
`
|
|
17007
|
-
`
|
|
17008
|
-
`
|
|
17009
|
-
`
|
|
17010
|
-
`
|
|
17011
|
-
`
|
|
17038
|
+
` let result: unknown;`,
|
|
17039
|
+
` try {`,
|
|
17040
|
+
` result = await input.stepCtx.tools.execute({`,
|
|
17041
|
+
` id: input.callId,`,
|
|
17042
|
+
` tool: input.tool,`,
|
|
17043
|
+
` input: payload,`,
|
|
17044
|
+
` ...(input.description ? { description: input.description } : {}),`,
|
|
17045
|
+
` ...(input.force ? { force: true } : {}),`,
|
|
17046
|
+
` });`,
|
|
17047
|
+
` } catch (error) {`,
|
|
17048
|
+
` if (input.waterfallSoftFail) return __dlWaterfallToolFailure(error);`,
|
|
17049
|
+
` throw error;`,
|
|
17050
|
+
` }`,
|
|
17012
17051
|
` return __dlExtract(input.alias, result, input.row, input.extract, Boolean(input.legacyEnvelope));`,
|
|
17013
17052
|
`}`
|
|
17014
17053
|
].join("\n");
|
package/dist/cli/index.mjs
CHANGED
|
@@ -380,10 +380,10 @@ var SDK_RELEASE = {
|
|
|
380
380
|
// skill on the sdk sync surface, and the people-search-to-email prebuilt.
|
|
381
381
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
382
382
|
// the SDK enrich generator's one-second stale policy.
|
|
383
|
-
version: "0.1.
|
|
383
|
+
version: "0.1.114",
|
|
384
384
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
385
385
|
supportPolicy: {
|
|
386
|
-
latest: "0.1.
|
|
386
|
+
latest: "0.1.114",
|
|
387
387
|
minimumSupported: "0.1.53",
|
|
388
388
|
deprecatedBelow: "0.1.53",
|
|
389
389
|
commandMinimumSupported: [
|
|
@@ -16049,6 +16049,8 @@ ${indent(renderJavascriptBody(command.run_if_js), 6)}
|
|
|
16049
16049
|
force: true` : "";
|
|
16050
16050
|
const legacyEnvelope = options.legacyEnvelope ? `,
|
|
16051
16051
|
legacyEnvelope: true` : "";
|
|
16052
|
+
const waterfallSoftFail = options.waterfallSoftFail ? `,
|
|
16053
|
+
waterfallSoftFail: true` : "";
|
|
16052
16054
|
return [
|
|
16053
16055
|
`async (row, stepCtx) => {`,
|
|
16054
16056
|
...options.precheck ? [` if (${options.precheck}) return null;`] : [],
|
|
@@ -16060,7 +16062,7 @@ ${indent(renderJavascriptBody(command.run_if_js), 6)}
|
|
|
16060
16062
|
` extract: ${extractJs},`,
|
|
16061
16063
|
` runIf: ${runIfJs},`,
|
|
16062
16064
|
` row,`,
|
|
16063
|
-
` stepCtx${description}${force}${legacyEnvelope}`,
|
|
16065
|
+
` stepCtx${description}${force}${legacyEnvelope}${waterfallSoftFail}`,
|
|
16064
16066
|
` });`,
|
|
16065
16067
|
`}`
|
|
16066
16068
|
].join("\n");
|
|
@@ -16084,34 +16086,22 @@ function renderIdiomaticExecuteStep(command, options) {
|
|
|
16084
16086
|
`async (row, ctx) => {`,
|
|
16085
16087
|
...options.precheck ? [` if (${options.precheck}) return null;`] : [],
|
|
16086
16088
|
...runIfLines,
|
|
16087
|
-
`
|
|
16088
|
-
`
|
|
16089
|
-
`
|
|
16090
|
-
`
|
|
16091
|
-
`
|
|
16092
|
-
|
|
16093
|
-
`
|
|
16089
|
+
` let result: any;`,
|
|
16090
|
+
` try {`,
|
|
16091
|
+
` result = await ctx.tools.execute({`,
|
|
16092
|
+
` id: ${callId},`,
|
|
16093
|
+
` tool: ${tool},`,
|
|
16094
|
+
` input: ${input2} as any,`,
|
|
16095
|
+
` description: ${stringLiteral((command.description ?? "").trim() || `Run ${command.alias} via ${command.tool}.`)},`,
|
|
16096
|
+
...options.force ? [` force: true,`] : [],
|
|
16097
|
+
` });`,
|
|
16098
|
+
` } catch (error) {`,
|
|
16099
|
+
...options.waterfallSoftFail ? [` return __dlWaterfallToolFailure(error);`] : [` throw error;`],
|
|
16100
|
+
` }`,
|
|
16094
16101
|
` return ${extraction};`,
|
|
16095
16102
|
`}`
|
|
16096
16103
|
].join("\n");
|
|
16097
16104
|
}
|
|
16098
|
-
function renderInlineJavascriptStep(command, options) {
|
|
16099
|
-
const code = typeof command.payload?.code === "string" ? command.payload.code : "return null;";
|
|
16100
|
-
const runIfLines = command.run_if_js ? [
|
|
16101
|
-
` if (!((row: Record<string, any>) => { const input = row; const context = row;`,
|
|
16102
|
-
indent(renderJavascriptBody(command.run_if_js), 4),
|
|
16103
|
-
` })(row as Record<string, any>)) return null;`
|
|
16104
|
-
] : [];
|
|
16105
|
-
return [
|
|
16106
|
-
`async (row) => {`,
|
|
16107
|
-
...options.precheck ? [` if (${options.precheck}) return null;`] : [],
|
|
16108
|
-
...runIfLines,
|
|
16109
|
-
` return ((row: Record<string, any>, input: Record<string, any>, context: Record<string, any>) => {`,
|
|
16110
|
-
indent(renderJavascriptBody(code), 4),
|
|
16111
|
-
` })(row as Record<string, any>, row as Record<string, any>, row as Record<string, any>);`,
|
|
16112
|
-
`}`
|
|
16113
|
-
].join("\n");
|
|
16114
|
-
}
|
|
16115
16105
|
function renderPlayStep(command, options) {
|
|
16116
16106
|
const alias = stringLiteral(command.alias);
|
|
16117
16107
|
const callId = stringLiteral(commandCallId(command));
|
|
@@ -16130,13 +16120,35 @@ ${indent(renderJavascriptBody(command.run_if_js), 6)}
|
|
|
16130
16120
|
` const templateRow = __dlPrepareEnrichRow(row, [${alias}]);`,
|
|
16131
16121
|
...runIfLines,
|
|
16132
16122
|
` const payload = __dlTemplate(${payload}, templateRow) as Record<string, unknown>;`,
|
|
16133
|
-
`
|
|
16134
|
-
`
|
|
16135
|
-
`
|
|
16123
|
+
` let result: unknown;`,
|
|
16124
|
+
` try {`,
|
|
16125
|
+
` result = await stepCtx.runPlay(${callId}, ${playRef}, payload, {`,
|
|
16126
|
+
` description: ${stringLiteral(command.description ?? command.alias)}`,
|
|
16127
|
+
` });`,
|
|
16128
|
+
` } catch (error) {`,
|
|
16129
|
+
...options.waterfallSoftFail ? [` return __dlWaterfallToolFailure(error);`] : [` throw error;`],
|
|
16130
|
+
` }`,
|
|
16136
16131
|
` return __dlPlayResultValue(${alias}, result);`,
|
|
16137
16132
|
`}`
|
|
16138
16133
|
].join("\n");
|
|
16139
16134
|
}
|
|
16135
|
+
function renderInlineJavascriptStep(command, options) {
|
|
16136
|
+
const code = typeof command.payload?.code === "string" ? command.payload.code : "return null;";
|
|
16137
|
+
const runIfLines = command.run_if_js ? [
|
|
16138
|
+
` if (!((row: Record<string, any>) => { const input = row; const context = row;`,
|
|
16139
|
+
indent(renderJavascriptBody(command.run_if_js), 4),
|
|
16140
|
+
` })(row as Record<string, any>)) return null;`
|
|
16141
|
+
] : [];
|
|
16142
|
+
return [
|
|
16143
|
+
`async (row) => {`,
|
|
16144
|
+
...options.precheck ? [` if (${options.precheck}) return null;`] : [],
|
|
16145
|
+
...runIfLines,
|
|
16146
|
+
` return ((row: Record<string, any>, input: Record<string, any>, context: Record<string, any>) => {`,
|
|
16147
|
+
indent(renderJavascriptBody(code), 4),
|
|
16148
|
+
` })(row as Record<string, any>, row as Record<string, any>, row as Record<string, any>);`,
|
|
16149
|
+
`}`
|
|
16150
|
+
].join("\n");
|
|
16151
|
+
}
|
|
16140
16152
|
function renderJavascriptBody(source) {
|
|
16141
16153
|
assertUserCodeIsSafe(source, "play step code");
|
|
16142
16154
|
const trimmed = source.trim();
|
|
@@ -16263,7 +16275,8 @@ function renderWaterfallColumns(command, forceAliases, inlineRunJavascript, idio
|
|
|
16263
16275
|
precheck: priorAliases.length > 0 ? `__dlWaterfallSatisfied(row, ${stableJson(priorAliases)}, ${minResults})` : void 0,
|
|
16264
16276
|
legacyEnvelope: Boolean(nested.extract_js),
|
|
16265
16277
|
inlineRunJavascript,
|
|
16266
|
-
idiomaticGetters
|
|
16278
|
+
idiomaticGetters,
|
|
16279
|
+
waterfallSoftFail: true
|
|
16267
16280
|
}),
|
|
16268
16281
|
{ recompute: force, recomputeOnError: true }
|
|
16269
16282
|
);
|
|
@@ -16918,6 +16931,26 @@ function helperSource() {
|
|
|
16918
16931
|
` return 'Extractor failed';`,
|
|
16919
16932
|
`}`,
|
|
16920
16933
|
``,
|
|
16934
|
+
`function __dlErrorDetail(error: unknown): string {`,
|
|
16935
|
+
` const message = __dlErrorMessage(error);`,
|
|
16936
|
+
` if (!__dlRecord(error)) return message;`,
|
|
16937
|
+
` try {`,
|
|
16938
|
+
` return message + ' ' + JSON.stringify(error);`,
|
|
16939
|
+
` } catch {`,
|
|
16940
|
+
` return message;`,
|
|
16941
|
+
` }`,
|
|
16942
|
+
`}`,
|
|
16943
|
+
``,
|
|
16944
|
+
`function __dlRecoverableWaterfallToolError(error: unknown): boolean {`,
|
|
16945
|
+
` const detail = __dlErrorDetail(error).toLowerCase();`,
|
|
16946
|
+
` return /\\b5\\d\\d\\b/.test(detail) || detail.includes('upstream_failure') || detail.includes('"error_category":"upstream"') || (detail.includes('"failure_origin":"provider"') && detail.includes('"status":5')) || detail.includes('bad gateway') || detail.includes('gateway time-out') || detail.includes('gateway timeout') || detail.includes('service unavailable');`,
|
|
16947
|
+
`}`,
|
|
16948
|
+
``,
|
|
16949
|
+
`function __dlWaterfallToolFailure(error: unknown): unknown {`,
|
|
16950
|
+
` if (__dlRecoverableWaterfallToolError(error)) return __dlExtractorFailure(error);`,
|
|
16951
|
+
` throw error;`,
|
|
16952
|
+
`}`,
|
|
16953
|
+
``,
|
|
16921
16954
|
`function __dlExtractorFailure(error: unknown): unknown {`,
|
|
16922
16955
|
` const message = __dlErrorMessage(error);`,
|
|
16923
16956
|
` return { matched_result: null, result: { error: message, message } };`,
|
|
@@ -17014,19 +17047,25 @@ function helperSource() {
|
|
|
17014
17047
|
` return result;`,
|
|
17015
17048
|
`}`,
|
|
17016
17049
|
``,
|
|
17017
|
-
`async function __dlRunCommand(input: { alias: string; callId: string; tool: string; payload: Record<string, unknown>; extract: ((args: __DlExtractorHelpers) => unknown) | null; runIf: ((row: Record<string, unknown>) => unknown) | null; row: Record<string, unknown>; stepCtx: { tools: { execute: (request: Record<string, unknown>) => Promise<unknown> } }; description?: string; force?: boolean; legacyEnvelope?: boolean }): Promise<unknown> {`,
|
|
17050
|
+
`async function __dlRunCommand(input: { alias: string; callId: string; tool: string; payload: Record<string, unknown>; extract: ((args: __DlExtractorHelpers) => unknown) | null; runIf: ((row: Record<string, unknown>) => unknown) | null; row: Record<string, unknown>; stepCtx: { tools: { execute: (request: Record<string, unknown>) => Promise<unknown> } }; description?: string; force?: boolean; legacyEnvelope?: boolean; waterfallSoftFail?: boolean }): Promise<unknown> {`,
|
|
17018
17051
|
` if (input.runIf) {`,
|
|
17019
17052
|
` const shouldRun = input.runIf(input.row);`,
|
|
17020
17053
|
` if (!shouldRun) return null;`,
|
|
17021
17054
|
` }`,
|
|
17022
17055
|
` const payload = __dlRuntimePayload(input.tool, __dlTemplate(input.payload, input.row) as Record<string, unknown>, input.row);`,
|
|
17023
|
-
`
|
|
17024
|
-
`
|
|
17025
|
-
`
|
|
17026
|
-
`
|
|
17027
|
-
`
|
|
17028
|
-
`
|
|
17029
|
-
`
|
|
17056
|
+
` let result: unknown;`,
|
|
17057
|
+
` try {`,
|
|
17058
|
+
` result = await input.stepCtx.tools.execute({`,
|
|
17059
|
+
` id: input.callId,`,
|
|
17060
|
+
` tool: input.tool,`,
|
|
17061
|
+
` input: payload,`,
|
|
17062
|
+
` ...(input.description ? { description: input.description } : {}),`,
|
|
17063
|
+
` ...(input.force ? { force: true } : {}),`,
|
|
17064
|
+
` });`,
|
|
17065
|
+
` } catch (error) {`,
|
|
17066
|
+
` if (input.waterfallSoftFail) return __dlWaterfallToolFailure(error);`,
|
|
17067
|
+
` throw error;`,
|
|
17068
|
+
` }`,
|
|
17030
17069
|
` return __dlExtract(input.alias, result, input.row, input.extract, Boolean(input.legacyEnvelope));`,
|
|
17031
17070
|
`}`
|
|
17032
17071
|
].join("\n");
|
package/dist/index.js
CHANGED
|
@@ -274,10 +274,10 @@ var SDK_RELEASE = {
|
|
|
274
274
|
// skill on the sdk sync surface, and the people-search-to-email prebuilt.
|
|
275
275
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
276
276
|
// the SDK enrich generator's one-second stale policy.
|
|
277
|
-
version: "0.1.
|
|
277
|
+
version: "0.1.114",
|
|
278
278
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
279
279
|
supportPolicy: {
|
|
280
|
-
latest: "0.1.
|
|
280
|
+
latest: "0.1.114",
|
|
281
281
|
minimumSupported: "0.1.53",
|
|
282
282
|
deprecatedBelow: "0.1.53",
|
|
283
283
|
commandMinimumSupported: [
|
package/dist/index.mjs
CHANGED
|
@@ -196,10 +196,10 @@ var SDK_RELEASE = {
|
|
|
196
196
|
// skill on the sdk sync surface, and the people-search-to-email prebuilt.
|
|
197
197
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
198
198
|
// the SDK enrich generator's one-second stale policy.
|
|
199
|
-
version: "0.1.
|
|
199
|
+
version: "0.1.114",
|
|
200
200
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
201
201
|
supportPolicy: {
|
|
202
|
-
latest: "0.1.
|
|
202
|
+
latest: "0.1.114",
|
|
203
203
|
minimumSupported: "0.1.53",
|
|
204
204
|
deprecatedBelow: "0.1.53",
|
|
205
205
|
commandMinimumSupported: [
|
|
@@ -99,10 +99,10 @@ export const SDK_RELEASE = {
|
|
|
99
99
|
// skill on the sdk sync surface, and the people-search-to-email prebuilt.
|
|
100
100
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
101
101
|
// the SDK enrich generator's one-second stale policy.
|
|
102
|
-
version: '0.1.
|
|
102
|
+
version: '0.1.114',
|
|
103
103
|
apiContract: '2026-06-dataset-column-cell-stale-hard-cutover',
|
|
104
104
|
supportPolicy: {
|
|
105
|
-
latest: '0.1.
|
|
105
|
+
latest: '0.1.114',
|
|
106
106
|
minimumSupported: '0.1.53',
|
|
107
107
|
deprecatedBelow: '0.1.53',
|
|
108
108
|
commandMinimumSupported: [
|