deepline 0.1.252 → 0.1.253

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 (23) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/types.ts +2 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +79 -64
  4. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +37 -35
  5. package/dist/bundling-sources/shared_libs/play-runtime/ledger-safe-payload.ts +20 -5
  6. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +462 -29
  7. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +16 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +11 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +44 -1
  10. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +7 -4
  11. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +98 -13
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +117 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +19 -3
  14. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +1 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +13 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-contract.ts +22 -0
  17. package/dist/cli/index.js +26 -7
  18. package/dist/cli/index.mjs +26 -7
  19. package/dist/index.d.mts +2 -0
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.js +6 -4
  22. package/dist/index.mjs +6 -4
  23. package/package.json +1 -1
@@ -620,7 +620,7 @@ var SDK_RELEASE = {
620
620
  // 0.1.252 hard-cuts the customer Monitor catalog to the two launched
621
621
  // Deepline-native radars. Older clients must update before discovering,
622
622
  // checking, or deploying an unlaunched monitor integration.
623
- version: "0.1.252",
623
+ version: "0.1.253",
624
624
  apiContract: "2026-07-native-monitor-launch-hard-cutover",
625
625
  supportPolicy: {
626
626
  minimumSupported: "0.1.53",
@@ -1467,12 +1467,14 @@ function createSecretRedactionContext(initialValues = []) {
1467
1467
  }
1468
1468
 
1469
1469
  // ../shared_libs/play-runtime/output-size-limits.ts
1470
- var encoder = typeof TextEncoder === "undefined" ? null : new TextEncoder();
1470
+ var TERMINAL_RUN_RESULT_MAX_BYTES = 6 * 1024 * 1024;
1471
1471
  var LEDGER_TERMINAL_RESULT_MAX_BYTES = 256 * 1024;
1472
- var CUSTOMER_OUTPUT_VALUE_MAX_BYTES = 1 * 1024 * 1024;
1473
- var CUSTOMER_OUTPUT_TOTAL_MAX_BYTES = 2 * 1024 * 1024;
1472
+ var CUSTOMER_OUTPUT_VALUE_MAX_BYTES = 5 * 1024 * 1024;
1473
+ var CUSTOMER_OUTPUT_TOTAL_MAX_BYTES = 5 * 1024 * 1024;
1474
1474
  var RUNTIME_RECEIPT_OUTPUT_MAX_BYTES = 10 * 1024 * 1024;
1475
1475
  var RUNTIME_RECEIPT_COMPLETION_BUFFER_MAX_BYTES = 32 * 1024 * 1024;
1476
+ var RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES = 16 * 1024 * 1024;
1477
+ var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
1476
1478
 
1477
1479
  // ../shared_libs/play-runtime/ledger-safe-payload.ts
1478
1480
  var ledgerIngressRedactor = createSecretRedactionContext();
@@ -13359,15 +13361,24 @@ function collectDatasetHandleLines(value, path = "result") {
13359
13361
  return lines;
13360
13362
  }
13361
13363
  function buildRunWarnings(status, rowsInfo) {
13364
+ const result = readRecord(status.result);
13365
+ const metadata = readRecord(result?._metadata);
13366
+ const outputWarnings = Array.isArray(metadata?.outputWarnings) ? metadata.outputWarnings.map((warning) => readRecord(warning)).filter((warning) => {
13367
+ if (!warning) return false;
13368
+ return !(rowsInfo && !rowsInfo.complete && warning.reason === "array_preview_limit" && warning.originalItems === rowsInfo.totalRows && warning.retainedItems === rowsInfo.rows.length);
13369
+ }).map((warning) => warning?.message).filter(
13370
+ (message) => typeof message === "string" && message.trim().length > 0
13371
+ ).slice(0, 16) : [];
13362
13372
  if (status.status === "completed" && rowsInfo?.totalRows === 0) {
13363
- return ["Run completed with 0 output rows."];
13373
+ return ["Run completed with 0 output rows.", ...outputWarnings];
13364
13374
  }
13365
13375
  if (rowsInfo && !rowsInfo.complete) {
13366
13376
  return [
13367
- `Run output is partial: showing ${rowsInfo.rows.length} preview row(s) of ${rowsInfo.totalRows}.`
13377
+ `Run output is partial: showing ${rowsInfo.rows.length} preview row(s) of ${rowsInfo.totalRows}.`,
13378
+ ...outputWarnings
13368
13379
  ];
13369
13380
  }
13370
- return [];
13381
+ return outputWarnings;
13371
13382
  }
13372
13383
  function buildRunNextCommands(status) {
13373
13384
  const runId = status.runId?.trim();
@@ -14093,6 +14104,14 @@ function buildRunPackageTextLines(packaged) {
14093
14104
  if (failedLogWarning) {
14094
14105
  lines.push(` warning: ${failedLogWarning}`);
14095
14106
  }
14107
+ const packageWarnings = Array.isArray(packaged.warnings) ? Array.from(
14108
+ new Set(
14109
+ packaged.warnings.filter(
14110
+ (warning) => typeof warning === "string" && warning.trim().length > 0
14111
+ )
14112
+ )
14113
+ ).slice(0, 16) : [];
14114
+ lines.push(...packageWarnings.map((warning) => ` warning: ${warning}`));
14096
14115
  const failedLogNext = readRecord(failedLogs?.next);
14097
14116
  if (failedLogWarning && typeof failedLogNext?.logs === "string") {
14098
14117
  lines.push(
package/dist/index.d.mts CHANGED
@@ -546,6 +546,8 @@ interface PlayRunPackage {
546
546
  durationMs?: number | null;
547
547
  error?: string;
548
548
  };
549
+ /** Bounded customer-safe warnings about output projection or availability. */
550
+ warnings?: string[];
549
551
  /** Step-level summaries emitted by the runtime. */
550
552
  steps: Array<Record<string, unknown>>;
551
553
  /** Named output summaries, including dataset handles and scalar outputs. */
package/dist/index.d.ts CHANGED
@@ -546,6 +546,8 @@ interface PlayRunPackage {
546
546
  durationMs?: number | null;
547
547
  error?: string;
548
548
  };
549
+ /** Bounded customer-safe warnings about output projection or availability. */
550
+ warnings?: string[];
549
551
  /** Step-level summaries emitted by the runtime. */
550
552
  steps: Array<Record<string, unknown>>;
551
553
  /** Named output summaries, including dataset handles and scalar outputs. */
package/dist/index.js CHANGED
@@ -434,7 +434,7 @@ var SDK_RELEASE = {
434
434
  // 0.1.252 hard-cuts the customer Monitor catalog to the two launched
435
435
  // Deepline-native radars. Older clients must update before discovering,
436
436
  // checking, or deploying an unlaunched monitor integration.
437
- version: "0.1.252",
437
+ version: "0.1.253",
438
438
  apiContract: "2026-07-native-monitor-launch-hard-cutover",
439
439
  supportPolicy: {
440
440
  minimumSupported: "0.1.53",
@@ -1281,12 +1281,14 @@ function createSecretRedactionContext(initialValues = []) {
1281
1281
  }
1282
1282
 
1283
1283
  // ../shared_libs/play-runtime/output-size-limits.ts
1284
- var encoder = typeof TextEncoder === "undefined" ? null : new TextEncoder();
1284
+ var TERMINAL_RUN_RESULT_MAX_BYTES = 6 * 1024 * 1024;
1285
1285
  var LEDGER_TERMINAL_RESULT_MAX_BYTES = 256 * 1024;
1286
- var CUSTOMER_OUTPUT_VALUE_MAX_BYTES = 1 * 1024 * 1024;
1287
- var CUSTOMER_OUTPUT_TOTAL_MAX_BYTES = 2 * 1024 * 1024;
1286
+ var CUSTOMER_OUTPUT_VALUE_MAX_BYTES = 5 * 1024 * 1024;
1287
+ var CUSTOMER_OUTPUT_TOTAL_MAX_BYTES = 5 * 1024 * 1024;
1288
1288
  var RUNTIME_RECEIPT_OUTPUT_MAX_BYTES = 10 * 1024 * 1024;
1289
1289
  var RUNTIME_RECEIPT_COMPLETION_BUFFER_MAX_BYTES = 32 * 1024 * 1024;
1290
+ var RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES = 16 * 1024 * 1024;
1291
+ var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
1290
1292
 
1291
1293
  // ../shared_libs/play-runtime/ledger-safe-payload.ts
1292
1294
  var ledgerIngressRedactor = createSecretRedactionContext();
package/dist/index.mjs CHANGED
@@ -364,7 +364,7 @@ var SDK_RELEASE = {
364
364
  // 0.1.252 hard-cuts the customer Monitor catalog to the two launched
365
365
  // Deepline-native radars. Older clients must update before discovering,
366
366
  // checking, or deploying an unlaunched monitor integration.
367
- version: "0.1.252",
367
+ version: "0.1.253",
368
368
  apiContract: "2026-07-native-monitor-launch-hard-cutover",
369
369
  supportPolicy: {
370
370
  minimumSupported: "0.1.53",
@@ -1211,12 +1211,14 @@ function createSecretRedactionContext(initialValues = []) {
1211
1211
  }
1212
1212
 
1213
1213
  // ../shared_libs/play-runtime/output-size-limits.ts
1214
- var encoder = typeof TextEncoder === "undefined" ? null : new TextEncoder();
1214
+ var TERMINAL_RUN_RESULT_MAX_BYTES = 6 * 1024 * 1024;
1215
1215
  var LEDGER_TERMINAL_RESULT_MAX_BYTES = 256 * 1024;
1216
- var CUSTOMER_OUTPUT_VALUE_MAX_BYTES = 1 * 1024 * 1024;
1217
- var CUSTOMER_OUTPUT_TOTAL_MAX_BYTES = 2 * 1024 * 1024;
1216
+ var CUSTOMER_OUTPUT_VALUE_MAX_BYTES = 5 * 1024 * 1024;
1217
+ var CUSTOMER_OUTPUT_TOTAL_MAX_BYTES = 5 * 1024 * 1024;
1218
1218
  var RUNTIME_RECEIPT_OUTPUT_MAX_BYTES = 10 * 1024 * 1024;
1219
1219
  var RUNTIME_RECEIPT_COMPLETION_BUFFER_MAX_BYTES = 32 * 1024 * 1024;
1220
+ var RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES = 16 * 1024 * 1024;
1221
+ var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
1220
1222
 
1221
1223
  // ../shared_libs/play-runtime/ledger-safe-payload.ts
1222
1224
  var ledgerIngressRedactor = createSecretRedactionContext();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.1.252",
3
+ "version": "0.1.253",
4
4
  "description": "Deepline SDK + CLI — B2B data enrichment powered by durable cloud execution",
5
5
  "license": "MIT",
6
6
  "repository": {