deepline 0.1.140 → 0.1.142
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/apps/play-runner-workers/src/coordinator-entry.ts +54 -15
- package/dist/bundling-sources/apps/play-runner-workers/src/durable-object-deploy-handoff.ts +24 -0
- package/dist/bundling-sources/apps/play-runner-workers/src/entry.ts +46 -22
- package/dist/bundling-sources/apps/play-runner-workers/src/runtime/live-progress.ts +4 -0
- package/dist/bundling-sources/apps/play-runner-workers/src/runtime/tool-http-errors.ts +7 -262
- package/dist/bundling-sources/sdk/src/client.ts +24 -0
- package/dist/bundling-sources/sdk/src/release.ts +2 -2
- package/dist/bundling-sources/sdk/src/types.ts +32 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +54 -34
- package/dist/bundling-sources/shared_libs/play-runtime/live-events.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/live-state-contract.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +32 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +248 -0
- package/dist/bundling-sources/shared_libs/play-runtime/worker-api-types.ts +4 -0
- package/dist/cli/index.js +165 -42
- package/dist/cli/index.mjs +165 -42
- package/dist/index.d.mts +44 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +36 -2
- package/dist/index.mjs +36 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -206,10 +206,10 @@ var SDK_RELEASE = {
|
|
|
206
206
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
207
207
|
// the SDK enrich generator's one-second stale policy.
|
|
208
208
|
// 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
|
|
209
|
-
version: "0.1.
|
|
209
|
+
version: "0.1.142",
|
|
210
210
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
211
211
|
supportPolicy: {
|
|
212
|
-
latest: "0.1.
|
|
212
|
+
latest: "0.1.142",
|
|
213
213
|
minimumSupported: "0.1.53",
|
|
214
214
|
deprecatedBelow: "0.1.53",
|
|
215
215
|
commandMinimumSupported: [
|
|
@@ -970,6 +970,10 @@ function normalizeStepProgress(value) {
|
|
|
970
970
|
...optionalFiniteNumber(value.completed) !== void 0 ? { completed: optionalFiniteNumber(value.completed) } : {},
|
|
971
971
|
...optionalFiniteNumber(value.total) !== void 0 ? { total: optionalFiniteNumber(value.total) } : {},
|
|
972
972
|
...optionalFiniteNumber(value.failed) !== void 0 ? { failed: optionalFiniteNumber(value.failed) } : {},
|
|
973
|
+
...optionalFiniteNumber(value.startedRows) !== void 0 ? { startedRows: optionalFiniteNumber(value.startedRows) } : {},
|
|
974
|
+
...optionalFiniteNumber(value.activeRows) !== void 0 ? { activeRows: optionalFiniteNumber(value.activeRows) } : {},
|
|
975
|
+
...optionalFiniteNumber(value.waitingRows) !== void 0 ? { waitingRows: optionalFiniteNumber(value.waitingRows) } : {},
|
|
976
|
+
...optionalFiniteNumber(value.completedRows) !== void 0 ? { completedRows: optionalFiniteNumber(value.completedRows) } : {},
|
|
973
977
|
...optionalString(value.message) ? { message: optionalString(value.message) } : {},
|
|
974
978
|
...optionalNullableString(value.artifactTableNamespace) !== void 0 ? {
|
|
975
979
|
artifactTableNamespace: optionalNullableString(
|
|
@@ -1052,6 +1056,10 @@ function buildSnapshotFromLedger(snapshot) {
|
|
|
1052
1056
|
completed: step.progress.completed,
|
|
1053
1057
|
total: step.progress.total,
|
|
1054
1058
|
failed: step.progress.failed,
|
|
1059
|
+
startedRows: step.progress.startedRows,
|
|
1060
|
+
activeRows: step.progress.activeRows,
|
|
1061
|
+
waitingRows: step.progress.waitingRows,
|
|
1062
|
+
completedRows: step.progress.completedRows,
|
|
1055
1063
|
message: step.progress.message,
|
|
1056
1064
|
artifactTableNamespace: step.progress.artifactTableNamespace ?? step.artifactTableNamespace ?? null,
|
|
1057
1065
|
startedAt: step.startedAt ?? null,
|
|
@@ -1248,6 +1256,10 @@ function diffPlayRunStreamEvents(input) {
|
|
|
1248
1256
|
completed: state.progress.completed,
|
|
1249
1257
|
total: state.progress.total,
|
|
1250
1258
|
failed: state.progress.failed,
|
|
1259
|
+
startedRows: state.progress.startedRows,
|
|
1260
|
+
activeRows: state.progress.activeRows,
|
|
1261
|
+
waitingRows: state.progress.waitingRows,
|
|
1262
|
+
completedRows: state.progress.completedRows,
|
|
1251
1263
|
message: state.progress.message,
|
|
1252
1264
|
artifactTableNamespace: state.progress.artifactTableNamespace ?? state.artifactTableNamespace ?? null,
|
|
1253
1265
|
...resolveTimingWindow({
|
|
@@ -2085,6 +2097,28 @@ var DeeplineClient = class {
|
|
|
2085
2097
|
}
|
|
2086
2098
|
);
|
|
2087
2099
|
}
|
|
2100
|
+
/**
|
|
2101
|
+
* Describe a Deepline Agent model and its provider-specific option surface.
|
|
2102
|
+
*
|
|
2103
|
+
* Combines live AI Gateway model metadata with Deepline's generated AI SDK
|
|
2104
|
+
* provider option registry so agents can construct `providerOptions`
|
|
2105
|
+
* payloads before executing `deeplineagent`.
|
|
2106
|
+
*
|
|
2107
|
+
* The returned option schemas describe accepted provider option shapes, not
|
|
2108
|
+
* guaranteed support for every model. Runtime AI SDK/Gateway errors remain
|
|
2109
|
+
* authoritative for model-gated values.
|
|
2110
|
+
*
|
|
2111
|
+
* @param model - Gateway model id such as `"openai/gpt-5.5"`
|
|
2112
|
+
* @returns Model metadata, provider option shapes, and runnable examples
|
|
2113
|
+
*/
|
|
2114
|
+
async describeModel(model) {
|
|
2115
|
+
return this.http.request(
|
|
2116
|
+
`/api/v2/models/describe?model=${encodeURIComponent(model)}`,
|
|
2117
|
+
{
|
|
2118
|
+
method: "GET"
|
|
2119
|
+
}
|
|
2120
|
+
);
|
|
2121
|
+
}
|
|
2088
2122
|
/**
|
|
2089
2123
|
* Execute a tool and return the standard execution envelope.
|
|
2090
2124
|
*
|