deepline 0.3.145 → 0.3.146
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/bundling-sources/sdk/src/client.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +40 -4
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +259 -7
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +58 -19
- package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +17 -11
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +57 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +73 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +57 -3
- package/dist/bundling-sources/shared_libs/play-runtime/step-progress.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/worker-api-types.ts +1 -0
- package/dist/cli/index.js +57 -17
- package/dist/cli/index.mjs +57 -17
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +25 -9
- package/dist/index.mjs +25 -9
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4501,7 +4501,7 @@ declare class DeeplineClient {
|
|
|
4501
4501
|
* guaranteed support for every model. Runtime AI SDK/Gateway errors remain
|
|
4502
4502
|
* authoritative for model-gated values.
|
|
4503
4503
|
*
|
|
4504
|
-
* @param model - Gateway model id such as `"openai/gpt-5.
|
|
4504
|
+
* @param model - Exact-case Gateway model id such as `"openai/gpt-5.6-luna"`
|
|
4505
4505
|
* @returns Model metadata, provider option shapes, and runnable examples
|
|
4506
4506
|
*/
|
|
4507
4507
|
describeModel(model: string): Promise<DeeplineAgentModelDescription>;
|
package/dist/index.d.ts
CHANGED
|
@@ -4501,7 +4501,7 @@ declare class DeeplineClient {
|
|
|
4501
4501
|
* guaranteed support for every model. Runtime AI SDK/Gateway errors remain
|
|
4502
4502
|
* authoritative for model-gated values.
|
|
4503
4503
|
*
|
|
4504
|
-
* @param model - Gateway model id such as `"openai/gpt-5.
|
|
4504
|
+
* @param model - Exact-case Gateway model id such as `"openai/gpt-5.6-luna"`
|
|
4505
4505
|
* @returns Model metadata, provider option shapes, and runnable examples
|
|
4506
4506
|
*/
|
|
4507
4507
|
describeModel(model: string): Promise<DeeplineAgentModelDescription>;
|
package/dist/index.js
CHANGED
|
@@ -864,7 +864,7 @@ var SDK_RELEASE = {
|
|
|
864
864
|
// getters keep their established compatibility behavior.
|
|
865
865
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
866
866
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
867
|
-
version: "0.3.
|
|
867
|
+
version: "0.3.146",
|
|
868
868
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
869
869
|
packageCapabilities: {
|
|
870
870
|
updatePreferences: 1
|
|
@@ -3066,19 +3066,32 @@ function summarizeRunRowOutcomes(snapshot) {
|
|
|
3066
3066
|
let completedRows = 0;
|
|
3067
3067
|
let failedRows = 0;
|
|
3068
3068
|
let totalRows = 0;
|
|
3069
|
+
let supersededRows = 0;
|
|
3069
3070
|
for (const step of Object.values(snapshot.stepsById)) {
|
|
3070
3071
|
const progress = step.progress;
|
|
3071
3072
|
if (!progress) continue;
|
|
3072
3073
|
completedRows += Math.max(0, finiteNumber(progress.completed) ?? 0);
|
|
3073
3074
|
failedRows += Math.max(0, finiteNumber(progress.failed) ?? 0);
|
|
3075
|
+
supersededRows += Math.max(0, finiteNumber(progress.supersededRows) ?? 0);
|
|
3074
3076
|
const stepTotal = finiteNumber(progress.total);
|
|
3075
|
-
totalRows += stepTotal !== null && stepTotal >= 0 ? stepTotal : Math.max(0, finiteNumber(progress.completed) ?? 0) + Math.max(0, finiteNumber(progress.failed) ?? 0);
|
|
3076
|
-
}
|
|
3077
|
+
totalRows += stepTotal !== null && stepTotal >= 0 ? stepTotal : Math.max(0, finiteNumber(progress.completed) ?? 0) + Math.max(0, finiteNumber(progress.failed) ?? 0) + Math.max(0, finiteNumber(progress.supersededRows) ?? 0);
|
|
3078
|
+
}
|
|
3079
|
+
const resultSummary = isRecord5(snapshot.resultSummary) ? snapshot.resultSummary : null;
|
|
3080
|
+
const resultRowOutcomes = isRecord5(resultSummary?.rowOutcomes) ? resultSummary.rowOutcomes : null;
|
|
3081
|
+
const terminalCompletedRows = finiteNumber(resultRowOutcomes?.completedRows);
|
|
3082
|
+
const terminalFailedRows = finiteNumber(resultRowOutcomes?.failedRows);
|
|
3083
|
+
const terminalTotalRows = finiteNumber(resultRowOutcomes?.totalRows);
|
|
3084
|
+
const terminalSupersededRows = finiteNumber(
|
|
3085
|
+
resultRowOutcomes?.supersededRows
|
|
3086
|
+
);
|
|
3087
|
+
const settledCompletedRows = terminalCompletedRows ?? completedRows;
|
|
3088
|
+
const settledFailedRows = terminalFailedRows ?? failedRows;
|
|
3077
3089
|
return {
|
|
3078
|
-
completedRows,
|
|
3079
|
-
failedRows,
|
|
3080
|
-
totalRows,
|
|
3081
|
-
hasRowFailures:
|
|
3090
|
+
completedRows: settledCompletedRows,
|
|
3091
|
+
failedRows: settledFailedRows,
|
|
3092
|
+
totalRows: terminalTotalRows ?? totalRows,
|
|
3093
|
+
hasRowFailures: settledFailedRows > 0,
|
|
3094
|
+
...(terminalSupersededRows ?? supersededRows) > 0 ? { supersededRows: terminalSupersededRows ?? supersededRows } : {}
|
|
3082
3095
|
};
|
|
3083
3096
|
}
|
|
3084
3097
|
function createEmptyPlayRunLedgerSnapshot(input) {
|
|
@@ -3236,6 +3249,7 @@ function normalizeStepProgress(value) {
|
|
|
3236
3249
|
...optionalFiniteNumber(value.activeRows) !== void 0 ? { activeRows: optionalFiniteNumber(value.activeRows) } : {},
|
|
3237
3250
|
...optionalFiniteNumber(value.waitingRows) !== void 0 ? { waitingRows: optionalFiniteNumber(value.waitingRows) } : {},
|
|
3238
3251
|
...optionalFiniteNumber(value.completedRows) !== void 0 ? { completedRows: optionalFiniteNumber(value.completedRows) } : {},
|
|
3252
|
+
...optionalFiniteNumber(value.supersededRows) !== void 0 ? { supersededRows: optionalFiniteNumber(value.supersededRows) } : {},
|
|
3239
3253
|
...optionalString(value.message) ? { message: optionalString(value.message) } : {},
|
|
3240
3254
|
...optionalNullableString(value.artifactTableNamespace) !== void 0 ? {
|
|
3241
3255
|
artifactTableNamespace: optionalNullableString(
|
|
@@ -3387,6 +3401,7 @@ function buildSnapshotFromLedger(snapshot) {
|
|
|
3387
3401
|
activeRows: step.progress.activeRows,
|
|
3388
3402
|
waitingRows: step.progress.waitingRows,
|
|
3389
3403
|
completedRows: step.progress.completedRows,
|
|
3404
|
+
supersededRows: step.progress.supersededRows,
|
|
3390
3405
|
message: step.progress.message,
|
|
3391
3406
|
artifactTableNamespace: step.progress.artifactTableNamespace ?? step.artifactTableNamespace ?? null,
|
|
3392
3407
|
startedAt: step.startedAt ?? null,
|
|
@@ -3400,7 +3415,8 @@ function buildSnapshotFromLedger(snapshot) {
|
|
|
3400
3415
|
...step.progress?.nodeIo ? { nodeIo: step.progress.nodeIo } : {}
|
|
3401
3416
|
}));
|
|
3402
3417
|
const liveStatus = normalizePlayRunLiveStatus(snapshot.status);
|
|
3403
|
-
const
|
|
3418
|
+
const terminalRowOutcomes = isTerminalPlayRunLiveStatus(liveStatus) ? summarizeRunRowOutcomes(snapshot) : null;
|
|
3419
|
+
const rowOutcomes = terminalRowOutcomes && (Object.keys(snapshot.stepsById).length > 0 || terminalRowOutcomes.totalRows > 0 || (terminalRowOutcomes.supersededRows ?? 0) > 0) ? terminalRowOutcomes : null;
|
|
3404
3420
|
return {
|
|
3405
3421
|
runId: snapshot.runId,
|
|
3406
3422
|
status: liveStatus,
|
|
@@ -5109,7 +5125,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5109
5125
|
* guaranteed support for every model. Runtime AI SDK/Gateway errors remain
|
|
5110
5126
|
* authoritative for model-gated values.
|
|
5111
5127
|
*
|
|
5112
|
-
* @param model - Gateway model id such as `"openai/gpt-5.
|
|
5128
|
+
* @param model - Exact-case Gateway model id such as `"openai/gpt-5.6-luna"`
|
|
5113
5129
|
* @returns Model metadata, provider option shapes, and runnable examples
|
|
5114
5130
|
*/
|
|
5115
5131
|
async describeModel(model) {
|
package/dist/index.mjs
CHANGED
|
@@ -768,7 +768,7 @@ var SDK_RELEASE = {
|
|
|
768
768
|
// getters keep their established compatibility behavior.
|
|
769
769
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
770
770
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
771
|
-
version: "0.3.
|
|
771
|
+
version: "0.3.146",
|
|
772
772
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
773
773
|
packageCapabilities: {
|
|
774
774
|
updatePreferences: 1
|
|
@@ -2970,19 +2970,32 @@ function summarizeRunRowOutcomes(snapshot) {
|
|
|
2970
2970
|
let completedRows = 0;
|
|
2971
2971
|
let failedRows = 0;
|
|
2972
2972
|
let totalRows = 0;
|
|
2973
|
+
let supersededRows = 0;
|
|
2973
2974
|
for (const step of Object.values(snapshot.stepsById)) {
|
|
2974
2975
|
const progress = step.progress;
|
|
2975
2976
|
if (!progress) continue;
|
|
2976
2977
|
completedRows += Math.max(0, finiteNumber(progress.completed) ?? 0);
|
|
2977
2978
|
failedRows += Math.max(0, finiteNumber(progress.failed) ?? 0);
|
|
2979
|
+
supersededRows += Math.max(0, finiteNumber(progress.supersededRows) ?? 0);
|
|
2978
2980
|
const stepTotal = finiteNumber(progress.total);
|
|
2979
|
-
totalRows += stepTotal !== null && stepTotal >= 0 ? stepTotal : Math.max(0, finiteNumber(progress.completed) ?? 0) + Math.max(0, finiteNumber(progress.failed) ?? 0);
|
|
2980
|
-
}
|
|
2981
|
+
totalRows += stepTotal !== null && stepTotal >= 0 ? stepTotal : Math.max(0, finiteNumber(progress.completed) ?? 0) + Math.max(0, finiteNumber(progress.failed) ?? 0) + Math.max(0, finiteNumber(progress.supersededRows) ?? 0);
|
|
2982
|
+
}
|
|
2983
|
+
const resultSummary = isRecord5(snapshot.resultSummary) ? snapshot.resultSummary : null;
|
|
2984
|
+
const resultRowOutcomes = isRecord5(resultSummary?.rowOutcomes) ? resultSummary.rowOutcomes : null;
|
|
2985
|
+
const terminalCompletedRows = finiteNumber(resultRowOutcomes?.completedRows);
|
|
2986
|
+
const terminalFailedRows = finiteNumber(resultRowOutcomes?.failedRows);
|
|
2987
|
+
const terminalTotalRows = finiteNumber(resultRowOutcomes?.totalRows);
|
|
2988
|
+
const terminalSupersededRows = finiteNumber(
|
|
2989
|
+
resultRowOutcomes?.supersededRows
|
|
2990
|
+
);
|
|
2991
|
+
const settledCompletedRows = terminalCompletedRows ?? completedRows;
|
|
2992
|
+
const settledFailedRows = terminalFailedRows ?? failedRows;
|
|
2981
2993
|
return {
|
|
2982
|
-
completedRows,
|
|
2983
|
-
failedRows,
|
|
2984
|
-
totalRows,
|
|
2985
|
-
hasRowFailures:
|
|
2994
|
+
completedRows: settledCompletedRows,
|
|
2995
|
+
failedRows: settledFailedRows,
|
|
2996
|
+
totalRows: terminalTotalRows ?? totalRows,
|
|
2997
|
+
hasRowFailures: settledFailedRows > 0,
|
|
2998
|
+
...(terminalSupersededRows ?? supersededRows) > 0 ? { supersededRows: terminalSupersededRows ?? supersededRows } : {}
|
|
2986
2999
|
};
|
|
2987
3000
|
}
|
|
2988
3001
|
function createEmptyPlayRunLedgerSnapshot(input) {
|
|
@@ -3140,6 +3153,7 @@ function normalizeStepProgress(value) {
|
|
|
3140
3153
|
...optionalFiniteNumber(value.activeRows) !== void 0 ? { activeRows: optionalFiniteNumber(value.activeRows) } : {},
|
|
3141
3154
|
...optionalFiniteNumber(value.waitingRows) !== void 0 ? { waitingRows: optionalFiniteNumber(value.waitingRows) } : {},
|
|
3142
3155
|
...optionalFiniteNumber(value.completedRows) !== void 0 ? { completedRows: optionalFiniteNumber(value.completedRows) } : {},
|
|
3156
|
+
...optionalFiniteNumber(value.supersededRows) !== void 0 ? { supersededRows: optionalFiniteNumber(value.supersededRows) } : {},
|
|
3143
3157
|
...optionalString(value.message) ? { message: optionalString(value.message) } : {},
|
|
3144
3158
|
...optionalNullableString(value.artifactTableNamespace) !== void 0 ? {
|
|
3145
3159
|
artifactTableNamespace: optionalNullableString(
|
|
@@ -3291,6 +3305,7 @@ function buildSnapshotFromLedger(snapshot) {
|
|
|
3291
3305
|
activeRows: step.progress.activeRows,
|
|
3292
3306
|
waitingRows: step.progress.waitingRows,
|
|
3293
3307
|
completedRows: step.progress.completedRows,
|
|
3308
|
+
supersededRows: step.progress.supersededRows,
|
|
3294
3309
|
message: step.progress.message,
|
|
3295
3310
|
artifactTableNamespace: step.progress.artifactTableNamespace ?? step.artifactTableNamespace ?? null,
|
|
3296
3311
|
startedAt: step.startedAt ?? null,
|
|
@@ -3304,7 +3319,8 @@ function buildSnapshotFromLedger(snapshot) {
|
|
|
3304
3319
|
...step.progress?.nodeIo ? { nodeIo: step.progress.nodeIo } : {}
|
|
3305
3320
|
}));
|
|
3306
3321
|
const liveStatus = normalizePlayRunLiveStatus(snapshot.status);
|
|
3307
|
-
const
|
|
3322
|
+
const terminalRowOutcomes = isTerminalPlayRunLiveStatus(liveStatus) ? summarizeRunRowOutcomes(snapshot) : null;
|
|
3323
|
+
const rowOutcomes = terminalRowOutcomes && (Object.keys(snapshot.stepsById).length > 0 || terminalRowOutcomes.totalRows > 0 || (terminalRowOutcomes.supersededRows ?? 0) > 0) ? terminalRowOutcomes : null;
|
|
3308
3324
|
return {
|
|
3309
3325
|
runId: snapshot.runId,
|
|
3310
3326
|
status: liveStatus,
|
|
@@ -5013,7 +5029,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5013
5029
|
* guaranteed support for every model. Runtime AI SDK/Gateway errors remain
|
|
5014
5030
|
* authoritative for model-gated values.
|
|
5015
5031
|
*
|
|
5016
|
-
* @param model - Gateway model id such as `"openai/gpt-5.
|
|
5032
|
+
* @param model - Exact-case Gateway model id such as `"openai/gpt-5.6-luna"`
|
|
5017
5033
|
* @returns Model metadata, provider option shapes, and runnable examples
|
|
5018
5034
|
*/
|
|
5019
5035
|
async describeModel(model) {
|
package/dist/release.d.mts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.146";
|
|
153
153
|
readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
|
|
154
154
|
readonly packageCapabilities: {
|
|
155
155
|
readonly updatePreferences: 1;
|
package/dist/release.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.146";
|
|
153
153
|
readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
|
|
154
154
|
readonly packageCapabilities: {
|
|
155
155
|
readonly updatePreferences: 1;
|
package/dist/release.js
CHANGED
|
@@ -74,7 +74,7 @@ var SDK_RELEASE = {
|
|
|
74
74
|
// getters keep their established compatibility behavior.
|
|
75
75
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
76
76
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
77
|
-
version: "0.3.
|
|
77
|
+
version: "0.3.146",
|
|
78
78
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
79
79
|
packageCapabilities: {
|
|
80
80
|
updatePreferences: 1
|
package/dist/release.mjs
CHANGED
|
@@ -48,7 +48,7 @@ var SDK_RELEASE = {
|
|
|
48
48
|
// getters keep their established compatibility behavior.
|
|
49
49
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
50
50
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
51
|
-
version: "0.3.
|
|
51
|
+
version: "0.3.146",
|
|
52
52
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
53
53
|
packageCapabilities: {
|
|
54
54
|
updatePreferences: 1
|