deepline 0.3.21 → 0.3.22

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.
@@ -192,7 +192,7 @@ export const SDK_RELEASE = {
192
192
  // 0.3.0 introduces raw-v2: complete scrubbed provider responses are
193
193
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
194
194
  // getters keep their established compatibility behavior.
195
- version: '0.3.21',
195
+ version: '0.3.22',
196
196
  updateSummary:
197
197
  'New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.',
198
198
  contracts: {
package/dist/cli/index.js CHANGED
@@ -196,11 +196,11 @@ var import_node_os = require("os");
196
196
  var import_node_path = require("path");
197
197
 
198
198
  // ../shared_libs/tool-execution-error.ts
199
- var DEEPLINE_ERROR_BRAND = /* @__PURE__ */ Symbol.for("deepline.error.v1");
200
- var TOOL_EXECUTION_ERROR_BRAND = /* @__PURE__ */ Symbol.for(
199
+ var DEEPLINE_ERROR_BRAND = Symbol.for("deepline.error.v1");
200
+ var TOOL_EXECUTION_ERROR_BRAND = Symbol.for(
201
201
  "deepline.tool-execution-error.v1"
202
202
  );
203
- var PROVIDER_TRANSIENT_ERROR_BRAND = /* @__PURE__ */ Symbol.for(
203
+ var PROVIDER_TRANSIENT_ERROR_BRAND = Symbol.for(
204
204
  "deepline.provider-transient-error.v1"
205
205
  );
206
206
  var LEGACY_TOOL_EXECUTION_ERROR_SCHEMA_VERSION = 0;
@@ -1047,7 +1047,7 @@ var SDK_RELEASE = {
1047
1047
  // 0.3.0 introduces raw-v2: complete scrubbed provider responses are
1048
1048
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
1049
1049
  // getters keep their established compatibility behavior.
1050
- version: "0.3.21",
1050
+ version: "0.3.22",
1051
1051
  updateSummary: "New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.",
1052
1052
  contracts: {
1053
1053
  api: {
@@ -1503,8 +1503,8 @@ var MAX_RUNTIME_TEST_POLICY_MS = 10 * 6e4;
1503
1503
  // src/http.ts
1504
1504
  var MAX_DIAGNOSTIC_HEADER_LENGTH = 120;
1505
1505
  var COWORK_NETWORK_HINT = "Claude Cowork appears to be running Deepline in a network-restricted sandbox. In Claude Desktop, open Settings > Capabilities, turn on Allow network egress, and set Domain allowlist to All domains for the Cowork session.";
1506
- var REQUEST_TIMEOUT_MARKER = /* @__PURE__ */ Symbol("deeplineRequestTimeout");
1507
- var REQUEST_ABORT_MARKER = /* @__PURE__ */ Symbol("deeplineRequestAbort");
1506
+ var REQUEST_TIMEOUT_MARKER = Symbol("deeplineRequestTimeout");
1507
+ var REQUEST_ABORT_MARKER = Symbol("deeplineRequestAbort");
1508
1508
  function normalizeRequestAbortError(error, input2) {
1509
1509
  const normalized = error instanceof Error ? error : new Error(String(error));
1510
1510
  const tagged = normalized;
@@ -1562,7 +1562,6 @@ var HttpClient = class {
1562
1562
  constructor(config) {
1563
1563
  this.config = config;
1564
1564
  }
1565
- config;
1566
1565
  cleanDiagnosticHeader(value) {
1567
1566
  const normalized = String(value ?? "").replace(/[\u0000-\u001f\u007f]/g, " ").trim().slice(0, MAX_DIAGNOSTIC_HEADER_LENGTH);
1568
1567
  return normalized || null;
@@ -2394,6 +2393,7 @@ var RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES = 16 * 1024 * 1024;
2394
2393
  var RUNTIME_RECEIPT_GATEWAY_BATCH_MAX_BYTES = 12 * 1024 * 1024;
2395
2394
  var RUNTIME_RECEIPT_WRITER_TARGET_BATCH_BYTES = 4 * 1024 * 1024;
2396
2395
  var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
2396
+ var JSON_SIZE_LIMIT_REACHED = Symbol("JSON_SIZE_LIMIT_REACHED");
2397
2397
 
2398
2398
  // ../shared_libs/play-runtime/ledger-safe-payload.ts
2399
2399
  var ledgerIngressRedactor = createSecretRedactionContext();
@@ -2409,7 +2409,7 @@ var DOCFLOW_NODE_IO_LIMITS = {
2409
2409
  maxErrorBytes: 512
2410
2410
  };
2411
2411
  var utf8Encoder = new TextEncoder();
2412
- var PLAY_DATASET_BRAND = /* @__PURE__ */ Symbol.for("deepline.play.dataset");
2412
+ var PLAY_DATASET_BRAND = Symbol.for("deepline.play.dataset");
2413
2413
  function ledgerSafeDocflowPreviewKey(key) {
2414
2414
  if (!key.startsWith("$")) return key;
2415
2415
  const stripped = key.replace(/^\$+/, "");
@@ -3668,7 +3668,6 @@ var RunObserveTransportUnavailableError = class extends Error {
3668
3668
  this.reason = reason;
3669
3669
  this.name = "RunObserveTransportUnavailableError";
3670
3670
  }
3671
- reason;
3672
3671
  };
3673
3672
  var OBSERVE_BOOTSTRAP_TIMEOUT_MS = 1e4;
3674
3673
  var OBSERVE_RECONNECT_NOTICE_MS = 1e4;
@@ -11493,7 +11492,6 @@ var PlayBootstrapError = class extends Error {
11493
11492
  super(message);
11494
11493
  this.exitCode = exitCode;
11495
11494
  }
11496
- exitCode;
11497
11495
  };
11498
11496
  var PlayBootstrapUsageError = class extends PlayBootstrapError {
11499
11497
  constructor(message) {
@@ -13335,11 +13333,11 @@ var TypeBoxError = class extends Error {
13335
13333
  };
13336
13334
 
13337
13335
  // ../node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs
13338
- var TransformKind = /* @__PURE__ */ Symbol.for("TypeBox.Transform");
13339
- var ReadonlyKind = /* @__PURE__ */ Symbol.for("TypeBox.Readonly");
13340
- var OptionalKind = /* @__PURE__ */ Symbol.for("TypeBox.Optional");
13341
- var Hint = /* @__PURE__ */ Symbol.for("TypeBox.Hint");
13342
- var Kind = /* @__PURE__ */ Symbol.for("TypeBox.Kind");
13336
+ var TransformKind = Symbol.for("TypeBox.Transform");
13337
+ var ReadonlyKind = Symbol.for("TypeBox.Readonly");
13338
+ var OptionalKind = Symbol.for("TypeBox.Optional");
13339
+ var Hint = Symbol.for("TypeBox.Hint");
13340
+ var Kind = Symbol.for("TypeBox.Kind");
13343
13341
 
13344
13342
  // ../node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs
13345
13343
  function IsReadonly(value) {
@@ -18004,7 +18002,6 @@ var CliProgress = class {
18004
18002
  constructor(enabled) {
18005
18003
  this.enabled = enabled;
18006
18004
  }
18007
- enabled;
18008
18005
  lastMessage = null;
18009
18006
  interactive = Boolean(process.stderr.isTTY);
18010
18007
  grey = "\x1B[90m";
@@ -42397,6 +42394,9 @@ async function main() {
42397
42394
  program.name("deepline").description(
42398
42395
  "Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
42399
42396
  ).version(SDK_VERSION, "-v, --version", "Show version").exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
42397
+ "beforeAll",
42398
+ "for agents: ensure you are using the /deepline-gtm skill\n"
42399
+ ).addHelpText(
42400
42400
  "after",
42401
42401
  `
42402
42402
  Common commands:
@@ -182,11 +182,11 @@ import { homedir } from "os";
182
182
  import { dirname, isAbsolute, join, resolve } from "path";
183
183
 
184
184
  // ../shared_libs/tool-execution-error.ts
185
- var DEEPLINE_ERROR_BRAND = /* @__PURE__ */ Symbol.for("deepline.error.v1");
186
- var TOOL_EXECUTION_ERROR_BRAND = /* @__PURE__ */ Symbol.for(
185
+ var DEEPLINE_ERROR_BRAND = Symbol.for("deepline.error.v1");
186
+ var TOOL_EXECUTION_ERROR_BRAND = Symbol.for(
187
187
  "deepline.tool-execution-error.v1"
188
188
  );
189
- var PROVIDER_TRANSIENT_ERROR_BRAND = /* @__PURE__ */ Symbol.for(
189
+ var PROVIDER_TRANSIENT_ERROR_BRAND = Symbol.for(
190
190
  "deepline.provider-transient-error.v1"
191
191
  );
192
192
  var LEGACY_TOOL_EXECUTION_ERROR_SCHEMA_VERSION = 0;
@@ -1033,7 +1033,7 @@ var SDK_RELEASE = {
1033
1033
  // 0.3.0 introduces raw-v2: complete scrubbed provider responses are
1034
1034
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
1035
1035
  // getters keep their established compatibility behavior.
1036
- version: "0.3.21",
1036
+ version: "0.3.22",
1037
1037
  updateSummary: "New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.",
1038
1038
  contracts: {
1039
1039
  api: {
@@ -1489,8 +1489,8 @@ var MAX_RUNTIME_TEST_POLICY_MS = 10 * 6e4;
1489
1489
  // src/http.ts
1490
1490
  var MAX_DIAGNOSTIC_HEADER_LENGTH = 120;
1491
1491
  var COWORK_NETWORK_HINT = "Claude Cowork appears to be running Deepline in a network-restricted sandbox. In Claude Desktop, open Settings > Capabilities, turn on Allow network egress, and set Domain allowlist to All domains for the Cowork session.";
1492
- var REQUEST_TIMEOUT_MARKER = /* @__PURE__ */ Symbol("deeplineRequestTimeout");
1493
- var REQUEST_ABORT_MARKER = /* @__PURE__ */ Symbol("deeplineRequestAbort");
1492
+ var REQUEST_TIMEOUT_MARKER = Symbol("deeplineRequestTimeout");
1493
+ var REQUEST_ABORT_MARKER = Symbol("deeplineRequestAbort");
1494
1494
  function normalizeRequestAbortError(error, input2) {
1495
1495
  const normalized = error instanceof Error ? error : new Error(String(error));
1496
1496
  const tagged = normalized;
@@ -1548,7 +1548,6 @@ var HttpClient = class {
1548
1548
  constructor(config) {
1549
1549
  this.config = config;
1550
1550
  }
1551
- config;
1552
1551
  cleanDiagnosticHeader(value) {
1553
1552
  const normalized = String(value ?? "").replace(/[\u0000-\u001f\u007f]/g, " ").trim().slice(0, MAX_DIAGNOSTIC_HEADER_LENGTH);
1554
1553
  return normalized || null;
@@ -2380,6 +2379,7 @@ var RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES = 16 * 1024 * 1024;
2380
2379
  var RUNTIME_RECEIPT_GATEWAY_BATCH_MAX_BYTES = 12 * 1024 * 1024;
2381
2380
  var RUNTIME_RECEIPT_WRITER_TARGET_BATCH_BYTES = 4 * 1024 * 1024;
2382
2381
  var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
2382
+ var JSON_SIZE_LIMIT_REACHED = Symbol("JSON_SIZE_LIMIT_REACHED");
2383
2383
 
2384
2384
  // ../shared_libs/play-runtime/ledger-safe-payload.ts
2385
2385
  var ledgerIngressRedactor = createSecretRedactionContext();
@@ -2395,7 +2395,7 @@ var DOCFLOW_NODE_IO_LIMITS = {
2395
2395
  maxErrorBytes: 512
2396
2396
  };
2397
2397
  var utf8Encoder = new TextEncoder();
2398
- var PLAY_DATASET_BRAND = /* @__PURE__ */ Symbol.for("deepline.play.dataset");
2398
+ var PLAY_DATASET_BRAND = Symbol.for("deepline.play.dataset");
2399
2399
  function ledgerSafeDocflowPreviewKey(key) {
2400
2400
  if (!key.startsWith("$")) return key;
2401
2401
  const stripped = key.replace(/^\$+/, "");
@@ -3654,7 +3654,6 @@ var RunObserveTransportUnavailableError = class extends Error {
3654
3654
  this.reason = reason;
3655
3655
  this.name = "RunObserveTransportUnavailableError";
3656
3656
  }
3657
- reason;
3658
3657
  };
3659
3658
  var OBSERVE_BOOTSTRAP_TIMEOUT_MS = 1e4;
3660
3659
  var OBSERVE_RECONNECT_NOTICE_MS = 1e4;
@@ -11537,7 +11536,6 @@ var PlayBootstrapError = class extends Error {
11537
11536
  super(message);
11538
11537
  this.exitCode = exitCode;
11539
11538
  }
11540
- exitCode;
11541
11539
  };
11542
11540
  var PlayBootstrapUsageError = class extends PlayBootstrapError {
11543
11541
  constructor(message) {
@@ -13391,11 +13389,11 @@ var TypeBoxError = class extends Error {
13391
13389
  };
13392
13390
 
13393
13391
  // ../node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs
13394
- var TransformKind = /* @__PURE__ */ Symbol.for("TypeBox.Transform");
13395
- var ReadonlyKind = /* @__PURE__ */ Symbol.for("TypeBox.Readonly");
13396
- var OptionalKind = /* @__PURE__ */ Symbol.for("TypeBox.Optional");
13397
- var Hint = /* @__PURE__ */ Symbol.for("TypeBox.Hint");
13398
- var Kind = /* @__PURE__ */ Symbol.for("TypeBox.Kind");
13392
+ var TransformKind = Symbol.for("TypeBox.Transform");
13393
+ var ReadonlyKind = Symbol.for("TypeBox.Readonly");
13394
+ var OptionalKind = Symbol.for("TypeBox.Optional");
13395
+ var Hint = Symbol.for("TypeBox.Hint");
13396
+ var Kind = Symbol.for("TypeBox.Kind");
13399
13397
 
13400
13398
  // ../node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs
13401
13399
  function IsReadonly(value) {
@@ -18067,7 +18065,6 @@ var CliProgress = class {
18067
18065
  constructor(enabled) {
18068
18066
  this.enabled = enabled;
18069
18067
  }
18070
- enabled;
18071
18068
  lastMessage = null;
18072
18069
  interactive = Boolean(process.stderr.isTTY);
18073
18070
  grey = "\x1B[90m";
@@ -42502,6 +42499,9 @@ async function main() {
42502
42499
  program.name("deepline").description(
42503
42500
  "Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
42504
42501
  ).version(SDK_VERSION, "-v, --version", "Show version").exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
42502
+ "beforeAll",
42503
+ "for agents: ensure you are using the /deepline-gtm skill\n"
42504
+ ).addHelpText(
42505
42505
  "after",
42506
42506
  `
42507
42507
  Common commands:
package/dist/index.js CHANGED
@@ -89,11 +89,11 @@ var import_node_os = require("os");
89
89
  var import_node_path = require("path");
90
90
 
91
91
  // ../shared_libs/tool-execution-error.ts
92
- var DEEPLINE_ERROR_BRAND = /* @__PURE__ */ Symbol.for("deepline.error.v1");
93
- var TOOL_EXECUTION_ERROR_BRAND = /* @__PURE__ */ Symbol.for(
92
+ var DEEPLINE_ERROR_BRAND = Symbol.for("deepline.error.v1");
93
+ var TOOL_EXECUTION_ERROR_BRAND = Symbol.for(
94
94
  "deepline.tool-execution-error.v1"
95
95
  );
96
- var PROVIDER_TRANSIENT_ERROR_BRAND = /* @__PURE__ */ Symbol.for(
96
+ var PROVIDER_TRANSIENT_ERROR_BRAND = Symbol.for(
97
97
  "deepline.provider-transient-error.v1"
98
98
  );
99
99
  var LEGACY_TOOL_EXECUTION_ERROR_SCHEMA_VERSION = 0;
@@ -783,7 +783,7 @@ var SDK_RELEASE = {
783
783
  // 0.3.0 introduces raw-v2: complete scrubbed provider responses are
784
784
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
785
785
  // getters keep their established compatibility behavior.
786
- version: "0.3.21",
786
+ version: "0.3.22",
787
787
  updateSummary: "New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.",
788
788
  contracts: {
789
789
  api: {
@@ -1239,8 +1239,8 @@ var MAX_RUNTIME_TEST_POLICY_MS = 10 * 6e4;
1239
1239
  // src/http.ts
1240
1240
  var MAX_DIAGNOSTIC_HEADER_LENGTH = 120;
1241
1241
  var COWORK_NETWORK_HINT = "Claude Cowork appears to be running Deepline in a network-restricted sandbox. In Claude Desktop, open Settings > Capabilities, turn on Allow network egress, and set Domain allowlist to All domains for the Cowork session.";
1242
- var REQUEST_TIMEOUT_MARKER = /* @__PURE__ */ Symbol("deeplineRequestTimeout");
1243
- var REQUEST_ABORT_MARKER = /* @__PURE__ */ Symbol("deeplineRequestAbort");
1242
+ var REQUEST_TIMEOUT_MARKER = Symbol("deeplineRequestTimeout");
1243
+ var REQUEST_ABORT_MARKER = Symbol("deeplineRequestAbort");
1244
1244
  function normalizeRequestAbortError(error, input) {
1245
1245
  const normalized = error instanceof Error ? error : new Error(String(error));
1246
1246
  const tagged = normalized;
@@ -1298,7 +1298,6 @@ var HttpClient = class {
1298
1298
  constructor(config) {
1299
1299
  this.config = config;
1300
1300
  }
1301
- config;
1302
1301
  cleanDiagnosticHeader(value) {
1303
1302
  const normalized = String(value ?? "").replace(/[\u0000-\u001f\u007f]/g, " ").trim().slice(0, MAX_DIAGNOSTIC_HEADER_LENGTH);
1304
1303
  return normalized || null;
@@ -2105,6 +2104,7 @@ var RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES = 16 * 1024 * 1024;
2105
2104
  var RUNTIME_RECEIPT_GATEWAY_BATCH_MAX_BYTES = 12 * 1024 * 1024;
2106
2105
  var RUNTIME_RECEIPT_WRITER_TARGET_BATCH_BYTES = 4 * 1024 * 1024;
2107
2106
  var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
2107
+ var JSON_SIZE_LIMIT_REACHED = Symbol("JSON_SIZE_LIMIT_REACHED");
2108
2108
 
2109
2109
  // ../shared_libs/play-runtime/ledger-safe-payload.ts
2110
2110
  var ledgerIngressRedactor = createSecretRedactionContext();
@@ -2120,7 +2120,7 @@ var DOCFLOW_NODE_IO_LIMITS = {
2120
2120
  maxErrorBytes: 512
2121
2121
  };
2122
2122
  var utf8Encoder = new TextEncoder();
2123
- var PLAY_DATASET_BRAND = /* @__PURE__ */ Symbol.for("deepline.play.dataset");
2123
+ var PLAY_DATASET_BRAND = Symbol.for("deepline.play.dataset");
2124
2124
  function ledgerSafeDocflowPreviewKey(key) {
2125
2125
  if (!key.startsWith("$")) return key;
2126
2126
  const stripped = key.replace(/^\$+/, "");
@@ -3379,7 +3379,6 @@ var RunObserveTransportUnavailableError = class extends Error {
3379
3379
  this.reason = reason;
3380
3380
  this.name = "RunObserveTransportUnavailableError";
3381
3381
  }
3382
- reason;
3383
3382
  };
3384
3383
  var OBSERVE_BOOTSTRAP_TIMEOUT_MS = 1e4;
3385
3384
  var OBSERVE_RECONNECT_NOTICE_MS = 1e4;
@@ -6964,8 +6963,8 @@ function isDeeplineExtractorTarget(value) {
6964
6963
  }
6965
6964
 
6966
6965
  // ../shared_libs/plays/dataset.ts
6967
- var PLAY_DATASET_BRAND2 = /* @__PURE__ */ Symbol.for("deepline.play.dataset");
6968
- var NODE_INSPECT_CUSTOM = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
6966
+ var PLAY_DATASET_BRAND2 = Symbol.for("deepline.play.dataset");
6967
+ var NODE_INSPECT_CUSTOM = Symbol.for("nodejs.util.inspect.custom");
6969
6968
  var residentRowsByDataset = /* @__PURE__ */ new WeakMap();
6970
6969
  var DEFAULT_MATERIALIZE_LIMIT = 1e4;
6971
6970
  var PLAY_DATASET_EXECUTION_PAGE_BYTES = 64 * 1024 * 1024;
@@ -7490,6 +7489,7 @@ function listNameFromDeclaredPath(path) {
7490
7489
  }
7491
7490
 
7492
7491
  // ../shared_libs/play-runtime/tool-result.ts
7492
+ var SERIALIZED_TOOL_LIST_ROWS = Symbol("deepline.serialized_tool_list_rows");
7493
7493
  var DESCRIPTOR_SUFFIX = /_(status|type|score|count|id|verified|valid|confidence|quality|source)$/i;
7494
7494
  var COMPANY_SCOPED = /company/i;
7495
7495
  var TARGET_FALLBACK_KEYS = {
@@ -8284,9 +8284,6 @@ var DeeplineConditionalStepResolver = class _DeeplineConditionalStepResolver {
8284
8284
  this.run = run;
8285
8285
  this.elseValue = elseValue;
8286
8286
  }
8287
- when;
8288
- run;
8289
- elseValue;
8290
8287
  kind = "conditional";
8291
8288
  else(value) {
8292
8289
  return new _DeeplineConditionalStepResolver(this.when, this.run, value);
@@ -8298,9 +8295,6 @@ var DeeplineStepProgram = class _DeeplineStepProgram {
8298
8295
  this.returnResolver = returnResolver;
8299
8296
  this.continueOnProviderUnavailable = continueOnProviderUnavailable;
8300
8297
  }
8301
- steps;
8302
- returnResolver;
8303
- continueOnProviderUnavailable;
8304
8298
  kind = "steps";
8305
8299
  step(name, resolver, options) {
8306
8300
  if (!name.trim()) {
@@ -8349,13 +8343,12 @@ function steps(options = {}) {
8349
8343
  function runIf(predicate, resolver) {
8350
8344
  return new DeeplineConditionalStepResolver(predicate, resolver, null);
8351
8345
  }
8352
- var PLAY_METADATA_SYMBOL = /* @__PURE__ */ Symbol.for("deepline.play.metadata");
8346
+ var PLAY_METADATA_SYMBOL = Symbol.for("deepline.play.metadata");
8353
8347
  var DeeplinePlayJobImpl = class {
8354
8348
  constructor(client, runId) {
8355
8349
  this.client = client;
8356
8350
  this.id = runId;
8357
8351
  }
8358
- client;
8359
8352
  id;
8360
8353
  async status() {
8361
8354
  return this.client.getPlayStatus(this.id);
package/dist/index.mjs CHANGED
@@ -12,11 +12,11 @@ import { homedir } from "os";
12
12
  import { dirname, isAbsolute, join, resolve } from "path";
13
13
 
14
14
  // ../shared_libs/tool-execution-error.ts
15
- var DEEPLINE_ERROR_BRAND = /* @__PURE__ */ Symbol.for("deepline.error.v1");
16
- var TOOL_EXECUTION_ERROR_BRAND = /* @__PURE__ */ Symbol.for(
15
+ var DEEPLINE_ERROR_BRAND = Symbol.for("deepline.error.v1");
16
+ var TOOL_EXECUTION_ERROR_BRAND = Symbol.for(
17
17
  "deepline.tool-execution-error.v1"
18
18
  );
19
- var PROVIDER_TRANSIENT_ERROR_BRAND = /* @__PURE__ */ Symbol.for(
19
+ var PROVIDER_TRANSIENT_ERROR_BRAND = Symbol.for(
20
20
  "deepline.provider-transient-error.v1"
21
21
  );
22
22
  var LEGACY_TOOL_EXECUTION_ERROR_SCHEMA_VERSION = 0;
@@ -706,7 +706,7 @@ var SDK_RELEASE = {
706
706
  // 0.3.0 introduces raw-v2: complete scrubbed provider responses are
707
707
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
708
708
  // getters keep their established compatibility behavior.
709
- version: "0.3.21",
709
+ version: "0.3.22",
710
710
  updateSummary: "New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.",
711
711
  contracts: {
712
712
  api: {
@@ -1162,8 +1162,8 @@ var MAX_RUNTIME_TEST_POLICY_MS = 10 * 6e4;
1162
1162
  // src/http.ts
1163
1163
  var MAX_DIAGNOSTIC_HEADER_LENGTH = 120;
1164
1164
  var COWORK_NETWORK_HINT = "Claude Cowork appears to be running Deepline in a network-restricted sandbox. In Claude Desktop, open Settings > Capabilities, turn on Allow network egress, and set Domain allowlist to All domains for the Cowork session.";
1165
- var REQUEST_TIMEOUT_MARKER = /* @__PURE__ */ Symbol("deeplineRequestTimeout");
1166
- var REQUEST_ABORT_MARKER = /* @__PURE__ */ Symbol("deeplineRequestAbort");
1165
+ var REQUEST_TIMEOUT_MARKER = Symbol("deeplineRequestTimeout");
1166
+ var REQUEST_ABORT_MARKER = Symbol("deeplineRequestAbort");
1167
1167
  function normalizeRequestAbortError(error, input) {
1168
1168
  const normalized = error instanceof Error ? error : new Error(String(error));
1169
1169
  const tagged = normalized;
@@ -1221,7 +1221,6 @@ var HttpClient = class {
1221
1221
  constructor(config) {
1222
1222
  this.config = config;
1223
1223
  }
1224
- config;
1225
1224
  cleanDiagnosticHeader(value) {
1226
1225
  const normalized = String(value ?? "").replace(/[\u0000-\u001f\u007f]/g, " ").trim().slice(0, MAX_DIAGNOSTIC_HEADER_LENGTH);
1227
1226
  return normalized || null;
@@ -2028,6 +2027,7 @@ var RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES = 16 * 1024 * 1024;
2028
2027
  var RUNTIME_RECEIPT_GATEWAY_BATCH_MAX_BYTES = 12 * 1024 * 1024;
2029
2028
  var RUNTIME_RECEIPT_WRITER_TARGET_BATCH_BYTES = 4 * 1024 * 1024;
2030
2029
  var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
2030
+ var JSON_SIZE_LIMIT_REACHED = Symbol("JSON_SIZE_LIMIT_REACHED");
2031
2031
 
2032
2032
  // ../shared_libs/play-runtime/ledger-safe-payload.ts
2033
2033
  var ledgerIngressRedactor = createSecretRedactionContext();
@@ -2043,7 +2043,7 @@ var DOCFLOW_NODE_IO_LIMITS = {
2043
2043
  maxErrorBytes: 512
2044
2044
  };
2045
2045
  var utf8Encoder = new TextEncoder();
2046
- var PLAY_DATASET_BRAND = /* @__PURE__ */ Symbol.for("deepline.play.dataset");
2046
+ var PLAY_DATASET_BRAND = Symbol.for("deepline.play.dataset");
2047
2047
  function ledgerSafeDocflowPreviewKey(key) {
2048
2048
  if (!key.startsWith("$")) return key;
2049
2049
  const stripped = key.replace(/^\$+/, "");
@@ -3302,7 +3302,6 @@ var RunObserveTransportUnavailableError = class extends Error {
3302
3302
  this.reason = reason;
3303
3303
  this.name = "RunObserveTransportUnavailableError";
3304
3304
  }
3305
- reason;
3306
3305
  };
3307
3306
  var OBSERVE_BOOTSTRAP_TIMEOUT_MS = 1e4;
3308
3307
  var OBSERVE_RECONNECT_NOTICE_MS = 1e4;
@@ -6887,8 +6886,8 @@ function isDeeplineExtractorTarget(value) {
6887
6886
  }
6888
6887
 
6889
6888
  // ../shared_libs/plays/dataset.ts
6890
- var PLAY_DATASET_BRAND2 = /* @__PURE__ */ Symbol.for("deepline.play.dataset");
6891
- var NODE_INSPECT_CUSTOM = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
6889
+ var PLAY_DATASET_BRAND2 = Symbol.for("deepline.play.dataset");
6890
+ var NODE_INSPECT_CUSTOM = Symbol.for("nodejs.util.inspect.custom");
6892
6891
  var residentRowsByDataset = /* @__PURE__ */ new WeakMap();
6893
6892
  var DEFAULT_MATERIALIZE_LIMIT = 1e4;
6894
6893
  var PLAY_DATASET_EXECUTION_PAGE_BYTES = 64 * 1024 * 1024;
@@ -7413,6 +7412,7 @@ function listNameFromDeclaredPath(path) {
7413
7412
  }
7414
7413
 
7415
7414
  // ../shared_libs/play-runtime/tool-result.ts
7415
+ var SERIALIZED_TOOL_LIST_ROWS = Symbol("deepline.serialized_tool_list_rows");
7416
7416
  var DESCRIPTOR_SUFFIX = /_(status|type|score|count|id|verified|valid|confidence|quality|source)$/i;
7417
7417
  var COMPANY_SCOPED = /company/i;
7418
7418
  var TARGET_FALLBACK_KEYS = {
@@ -8207,9 +8207,6 @@ var DeeplineConditionalStepResolver = class _DeeplineConditionalStepResolver {
8207
8207
  this.run = run;
8208
8208
  this.elseValue = elseValue;
8209
8209
  }
8210
- when;
8211
- run;
8212
- elseValue;
8213
8210
  kind = "conditional";
8214
8211
  else(value) {
8215
8212
  return new _DeeplineConditionalStepResolver(this.when, this.run, value);
@@ -8221,9 +8218,6 @@ var DeeplineStepProgram = class _DeeplineStepProgram {
8221
8218
  this.returnResolver = returnResolver;
8222
8219
  this.continueOnProviderUnavailable = continueOnProviderUnavailable;
8223
8220
  }
8224
- steps;
8225
- returnResolver;
8226
- continueOnProviderUnavailable;
8227
8221
  kind = "steps";
8228
8222
  step(name, resolver, options) {
8229
8223
  if (!name.trim()) {
@@ -8272,13 +8266,12 @@ function steps(options = {}) {
8272
8266
  function runIf(predicate, resolver) {
8273
8267
  return new DeeplineConditionalStepResolver(predicate, resolver, null);
8274
8268
  }
8275
- var PLAY_METADATA_SYMBOL = /* @__PURE__ */ Symbol.for("deepline.play.metadata");
8269
+ var PLAY_METADATA_SYMBOL = Symbol.for("deepline.play.metadata");
8276
8270
  var DeeplinePlayJobImpl = class {
8277
8271
  constructor(client, runId) {
8278
8272
  this.client = client;
8279
8273
  this.id = runId;
8280
8274
  }
8281
- client;
8282
8275
  id;
8283
8276
  async status() {
8284
8277
  return this.client.getPlayStatus(this.id);
@@ -61,6 +61,13 @@ var PLAY_BACKEND_DESCRIPTORS = {
61
61
  };
62
62
 
63
63
  // ../shared_libs/tool-execution-error.ts
64
+ var DEEPLINE_ERROR_BRAND = Symbol.for("deepline.error.v1");
65
+ var TOOL_EXECUTION_ERROR_BRAND = Symbol.for(
66
+ "deepline.tool-execution-error.v1"
67
+ );
68
+ var PROVIDER_TRANSIENT_ERROR_BRAND = Symbol.for(
69
+ "deepline.provider-transient-error.v1"
70
+ );
64
71
  var TOOL_EXECUTION_ERROR_SCHEMA_VERSION = 1;
65
72
 
66
73
  // ../shared_libs/plays/artifact-contract-version.ts
@@ -264,11 +271,11 @@ var TypeBoxError = class extends Error {
264
271
  };
265
272
 
266
273
  // ../node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs
267
- var TransformKind = /* @__PURE__ */ Symbol.for("TypeBox.Transform");
268
- var ReadonlyKind = /* @__PURE__ */ Symbol.for("TypeBox.Readonly");
269
- var OptionalKind = /* @__PURE__ */ Symbol.for("TypeBox.Optional");
270
- var Hint = /* @__PURE__ */ Symbol.for("TypeBox.Hint");
271
- var Kind = /* @__PURE__ */ Symbol.for("TypeBox.Kind");
274
+ var TransformKind = Symbol.for("TypeBox.Transform");
275
+ var ReadonlyKind = Symbol.for("TypeBox.Readonly");
276
+ var OptionalKind = Symbol.for("TypeBox.Optional");
277
+ var Hint = Symbol.for("TypeBox.Hint");
278
+ var Kind = Symbol.for("TypeBox.Kind");
272
279
 
273
280
  // ../node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs
274
281
  function IsReadonly(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",