deepline 0.3.383 → 0.3.385

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 (90) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/{auth-DHCQUXEG.mjs → auth-4D4IBZZN.mjs} +4 -4
  3. package/dist/cli/auth-A4UKONKC.js +39 -0
  4. package/dist/cli/{billing-LRF2NACZ.mjs → billing-4RSI4634.mjs} +4 -4
  5. package/dist/cli/{billing-44WIXRTK.js → billing-6LXNCN5G.js} +73 -73
  6. package/dist/cli/{chunk-LOWL2IEA.js → chunk-2IXAMP5J.js} +2 -2
  7. package/dist/cli/{chunk-3Z4P6FTT.js → chunk-3PGTFASB.js} +4 -4
  8. package/dist/cli/{chunk-A7HIN77W.js → chunk-CJVB4RVY.js} +64 -61
  9. package/dist/cli/{chunk-AFCHR4YF.js → chunk-CMIRZZT4.js} +6 -6
  10. package/dist/cli/{chunk-PLOQ3BBM.mjs → chunk-DIZYEI6O.mjs} +5 -5
  11. package/dist/cli/{chunk-ZAF746ZB.mjs → chunk-EGMLX2NR.mjs} +2 -2
  12. package/dist/cli/{chunk-26QUYLQT.mjs → chunk-F44OPZOG.mjs} +2 -2
  13. package/dist/cli/{chunk-MCRIYPOO.js → chunk-IFKSXI4W.js} +1 -1
  14. package/dist/cli/{chunk-SWYXUHCV.js → chunk-JFYOV3HL.js} +15 -15
  15. package/dist/cli/{chunk-YK6RRPOH.mjs → chunk-K5JZ3JMP.mjs} +4 -4
  16. package/dist/cli/{chunk-KB455XET.mjs → chunk-KIZ7QHY5.mjs} +1 -1
  17. package/dist/cli/{chunk-6BGD3GOJ.mjs → chunk-KKKKBDVM.mjs} +6 -6
  18. package/dist/cli/{chunk-BICTEMZN.js → chunk-LEDRQPBQ.js} +50 -50
  19. package/dist/cli/{chunk-GMVSUWPP.js → chunk-MW6IPE3M.js} +9 -9
  20. package/dist/cli/{chunk-4LE4OXXN.mjs → chunk-NV5VCWNJ.mjs} +1 -1
  21. package/dist/cli/{chunk-P2W372EW.js → chunk-POQ7QWVA.js} +48 -48
  22. package/dist/cli/{chunk-NTBOTP6U.mjs → chunk-Q2NRMSOJ.mjs} +1 -1
  23. package/dist/cli/{chunk-JF3R6BNL.mjs → chunk-RST4XEI7.mjs} +3 -3
  24. package/dist/cli/{chunk-TG6SWI26.mjs → chunk-SC2MM6IY.mjs} +2 -2
  25. package/dist/cli/{chunk-NGDV6VG6.mjs → chunk-TIBMH2VI.mjs} +1 -1
  26. package/dist/cli/{chunk-C4Q5JWU3.mjs → chunk-TTIISDJB.mjs} +1 -1
  27. package/dist/cli/{chunk-LRIXR5QU.js → chunk-VCW425WW.js} +26 -26
  28. package/dist/cli/{chunk-NGHN37LZ.mjs → chunk-VUEQBNG7.mjs} +5 -2
  29. package/dist/cli/{chunk-5UFGNQPB.js → chunk-WGPPCGGS.js} +8 -8
  30. package/dist/cli/{chunk-USVQU4FG.js → chunk-XFS5MNSM.js} +226 -226
  31. package/dist/cli/{chunk-XHP2OVMG.js → chunk-YHSAUVJ3.js} +8 -8
  32. package/dist/cli/{csv-JCT62ZYQ.js → csv-DZY7OAFK.js} +12 -12
  33. package/dist/cli/{csv-VRCG5NTO.mjs → csv-Q7XLUTXX.mjs} +3 -3
  34. package/dist/cli/{db-TXPBHVLO.mjs → db-5CLCESHQ.mjs} +4 -4
  35. package/dist/cli/{db-C2FWHDSR.js → db-FRJFSTIF.js} +29 -29
  36. package/dist/cli/{describe-BTXARLAZ.mjs → describe-QDIM53RP.mjs} +8 -8
  37. package/dist/cli/{describe-R5MCMIU3.js → describe-Y7E6FPUC.js} +18 -18
  38. package/dist/cli/{executions-OJYCYPK2.mjs → executions-M2QRHUDM.mjs} +4 -4
  39. package/dist/cli/{executions-Q5ZK7H6L.js → executions-YISFXRPZ.js} +6 -6
  40. package/dist/cli/{feedback-XIWI37PD.mjs → feedback-FICCIDJQ.mjs} +3 -3
  41. package/dist/cli/{feedback-X6Q3ABCY.js → feedback-HNJVF6AQ.js} +7 -7
  42. package/dist/cli/git-RBHELB5Y.js +23 -0
  43. package/dist/cli/{git-HW5SQRNJ.mjs → git-WRTQIX6R.mjs} +4 -4
  44. package/dist/cli/index.js +172 -153
  45. package/dist/cli/index.mjs +121 -102
  46. package/dist/cli/{legacy-noops-EBRICEDC.mjs → legacy-noops-6HJZDXLH.mjs} +4 -4
  47. package/dist/cli/{legacy-noops-2WHVV6XA.js → legacy-noops-E2R3P424.js} +7 -7
  48. package/dist/cli/{monitors-VNDYLLIX.js → monitors-DRWEUXDG.js} +85 -85
  49. package/dist/cli/{monitors-5CYSLU3P.mjs → monitors-HGIB7TPZ.mjs} +4 -4
  50. package/dist/cli/{org-3ESTK25P.js → org-467XUTRD.js} +64 -64
  51. package/dist/cli/{org-WV6GOBNV.mjs → org-NHILTL3P.mjs} +4 -4
  52. package/dist/cli/{play-AA2FORIH.mjs → play-JEI3F2M4.mjs} +7 -7
  53. package/dist/cli/play-Y66Z4I7K.js +157 -0
  54. package/dist/cli/{providers-H47XKFEX.mjs → providers-6INAFXGV.mjs} +4 -4
  55. package/dist/cli/{providers-F2V2QI5Z.js → providers-KOKGN5YP.js} +7 -7
  56. package/dist/cli/{quickstart-E3VQKDMU.js → quickstart-ELSP2FZI.js} +5 -5
  57. package/dist/cli/{quickstart-YIIXVX6Z.mjs → quickstart-QMRYNXDM.mjs} +3 -3
  58. package/dist/cli/{search-MI7OUPQS.mjs → search-HFUSEL3S.mjs} +5 -5
  59. package/dist/cli/search-P5HU6U6X.js +26 -0
  60. package/dist/cli/{secrets-HBNK3VCN.js → secrets-6OUGIWPM.js} +13 -13
  61. package/dist/cli/{secrets-B4A5SZR7.mjs → secrets-TSFBMX65.mjs} +4 -4
  62. package/dist/cli/{sessions-7L56I743.js → sessions-6VJUWBCJ.js} +5 -5
  63. package/dist/cli/{sessions-6CPUREXX.mjs → sessions-GE3GEQY3.mjs} +4 -4
  64. package/dist/cli/{settings-LVW2YBSI.js → settings-633RRITH.js} +74 -74
  65. package/dist/cli/{settings-GTABNW5O.mjs → settings-G5FDUOZJ.mjs} +7 -7
  66. package/dist/cli/{setup-WBWOV3LQ.mjs → setup-WOMOSJWB.mjs} +6 -6
  67. package/dist/cli/{setup-7I5ROB6J.js → setup-X2U5RX5R.js} +41 -41
  68. package/dist/cli/skills-BZCMRUZZ.js +28 -0
  69. package/dist/cli/{skills-HTJERGGP.mjs → skills-NDHK6HRC.mjs} +4 -4
  70. package/dist/cli/{tools-EHPNO6JC.mjs → tools-GILOEDEQ.mjs} +6 -6
  71. package/dist/cli/tools-Y6BDEUS3.js +40 -0
  72. package/dist/cli/{update-EEXWKAD2.mjs → update-H6APTLX7.mjs} +6 -6
  73. package/dist/cli/update-RQWIZOBF.js +28 -0
  74. package/dist/cli/{workflow-FWYWFUCN.mjs → workflow-MLYJQCP3.mjs} +5 -5
  75. package/dist/cli/{workflow-UBZDFKTY.js → workflow-TC72DBUF.js} +15 -15
  76. package/dist/index.js +6 -6
  77. package/dist/index.mjs +3 -3
  78. package/dist/install-integrity.json +72 -72
  79. package/dist/release.d.mts +1 -1
  80. package/dist/release.d.ts +1 -1
  81. package/dist/release.js +2 -2
  82. package/dist/release.mjs +1 -1
  83. package/package.json +1 -1
  84. package/dist/cli/auth-2JOTPVMO.js +0 -39
  85. package/dist/cli/git-HFO5FYKX.js +0 -23
  86. package/dist/cli/play-NT6RJ6QD.js +0 -157
  87. package/dist/cli/search-EDN57JRG.js +0 -26
  88. package/dist/cli/skills-NFWV6IDQ.js +0 -28
  89. package/dist/cli/tools-SUWHHSVG.js +0 -40
  90. package/dist/cli/update-7OBAHXYB.js +0 -28
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-KB455XET.mjs";
4
+ } from "./chunk-KIZ7QHY5.mjs";
5
5
  import {
6
6
  resolveShellSpawn,
7
7
  runSkillsCommand
8
- } from "./chunk-NGHN37LZ.mjs";
8
+ } from "./chunk-VUEQBNG7.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-NGDV6VG6.mjs";
11
+ } from "./chunk-TIBMH2VI.mjs";
12
12
  import {
13
13
  autoDetectBaseUrl
14
- } from "./chunk-4LE4OXXN.mjs";
14
+ } from "./chunk-NV5VCWNJ.mjs";
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  import { spawn, spawnSync } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-NGHN37LZ.mjs";
3
+ } from "./chunk-VUEQBNG7.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -19,11 +19,11 @@ import {
19
19
  } from "./chunk-EDWJY6T4.mjs";
20
20
  import {
21
21
  registerDeprecatedSearchCommand
22
- } from "./chunk-JF3R6BNL.mjs";
22
+ } from "./chunk-RST4XEI7.mjs";
23
23
  import {
24
24
  handleDeploymentGet,
25
25
  handleDeploymentsList
26
- } from "./chunk-ZAF746ZB.mjs";
26
+ } from "./chunk-EGMLX2NR.mjs";
27
27
  import {
28
28
  pinLocalPlayImports,
29
29
  planLocalPlayExecution
@@ -42,7 +42,7 @@ import {
42
42
  normalizeRunEventOperationRequest,
43
43
  parseLogLevel,
44
44
  playInputExampleArgs
45
- } from "./chunk-NTBOTP6U.mjs";
45
+ } from "./chunk-Q2NRMSOJ.mjs";
46
46
  import {
47
47
  CSV_DATA_INPUT_KEY,
48
48
  buildNamedPlayRunRequest,
@@ -75,10 +75,10 @@ import {
75
75
  printJsonError,
76
76
  renderCommandEnvelopeText,
77
77
  shouldEmitJson
78
- } from "./chunk-NGDV6VG6.mjs";
78
+ } from "./chunk-TIBMH2VI.mjs";
79
79
  import {
80
80
  fetchWithDeploymentProtection
81
- } from "./chunk-4LE4OXXN.mjs";
81
+ } from "./chunk-NV5VCWNJ.mjs";
82
82
  import {
83
83
  DeeplineError
84
84
  } from "./chunk-NXGCO4JB.mjs";
@@ -16546,7 +16546,7 @@ Examples:
16546
16546
  process.exitCode = await ownView();
16547
16547
  return;
16548
16548
  }
16549
- const { describeAnything } = await import("./describe-BTXARLAZ.mjs");
16549
+ const { describeAnything } = await import("./describe-QDIM53RP.mjs");
16550
16550
  process.exitCode = await describeAnything(
16551
16551
  name,
16552
16552
  {
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkAFCHR4YFjs = require('./chunk-AFCHR4YF.js');
5
+ var _chunkCMIRZZT4js = require('./chunk-CMIRZZT4.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunkAFCHR4YFjs = require('./chunk-AFCHR4YF.js');
25
25
 
26
26
 
27
27
 
28
- var _chunk3Z4P6FTTjs = require('./chunk-3Z4P6FTT.js');
28
+ var _chunk3PGTFASBjs = require('./chunk-3PGTFASB.js');
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
 
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
52
52
  return `Service notice: ${banner.message}`;
53
53
  }
54
54
  function envFilePath(baseUrl) {
55
- return _chunk3Z4P6FTTjs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunk3PGTFASBjs.hostEnvFilePath.call(void 0, baseUrl);
56
56
  }
57
57
  function normalizeAuthScope(value) {
58
58
  if (!value || value === "global") return "global";
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
65
65
  }
66
66
  function pendingClaimPath(baseUrl, scope) {
67
67
  if (scope === "folder") {
68
- const target = _chunk3Z4P6FTTjs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunk3PGTFASBjs.resolveProjectPinTarget.call(void 0, );
69
69
  if (!target.ok) {
70
70
  throw new Error(
71
71
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
75
75
  }
76
76
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
77
77
  }
78
- return `${_chunk3Z4P6FTTjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunk3PGTFASBjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunk3Z4P6FTTjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunk3PGTFASBjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
82
82
  }
83
83
  function savePendingClaim(baseUrl, claim) {
84
84
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
180
180
  function shouldWaitForRegisterClaim(mode) {
181
181
  if (mode === "yes") return true;
182
182
  if (mode === "no") return false;
183
- return _chunk3Z4P6FTTjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunk3PGTFASBjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunk3Z4P6FTTjs.HOST_URL_ENV] ? { [_chunk3Z4P6FTTjs.HOST_URL_ENV]: values[_chunk3Z4P6FTTjs.HOST_URL_ENV] } : {},
188
- ...values[_chunk3Z4P6FTTjs.API_KEY_ENV] ? { [_chunk3Z4P6FTTjs.API_KEY_ENV]: values[_chunk3Z4P6FTTjs.API_KEY_ENV] } : {},
189
- ...values[_chunk3Z4P6FTTjs.ACTIVE_ORG_ID_ENV] ? { [_chunk3Z4P6FTTjs.ACTIVE_ORG_ID_ENV]: values[_chunk3Z4P6FTTjs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunk3Z4P6FTTjs.ACTIVE_ORG_NAME_ENV) ? { [_chunk3Z4P6FTTjs.ACTIVE_ORG_NAME_ENV]: values[_chunk3Z4P6FTTjs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunk3PGTFASBjs.HOST_URL_ENV] ? { [_chunk3PGTFASBjs.HOST_URL_ENV]: values[_chunk3PGTFASBjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunk3PGTFASBjs.API_KEY_ENV] ? { [_chunk3PGTFASBjs.API_KEY_ENV]: values[_chunk3PGTFASBjs.API_KEY_ENV] } : {},
189
+ ...values[_chunk3PGTFASBjs.ACTIVE_ORG_ID_ENV] ? { [_chunk3PGTFASBjs.ACTIVE_ORG_ID_ENV]: values[_chunk3PGTFASBjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunk3PGTFASBjs.ACTIVE_ORG_NAME_ENV) ? { [_chunk3PGTFASBjs.ACTIVE_ORG_NAME_ENV]: values[_chunk3PGTFASBjs.ACTIVE_ORG_NAME_ENV] } : {},
191
191
  // An explicit empty list must reach the store: it clears a stale line.
192
- ...Object.prototype.hasOwnProperty.call(values, _chunk3Z4P6FTTjs.FEATURES_ENV) ? { [_chunk3Z4P6FTTjs.FEATURES_ENV]: values[_chunk3Z4P6FTTjs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunk3PGTFASBjs.FEATURES_ENV) ? { [_chunk3PGTFASBjs.FEATURES_ENV]: values[_chunk3PGTFASBjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunk3Z4P6FTTjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunk3PGTFASBjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunk3Z4P6FTTjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunk3PGTFASBjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
198
198
  }
199
199
  }
200
200
  function activeOrgEnvValues(data) {
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
202
202
  if (!orgId) return {};
203
203
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
204
204
  return {
205
- [_chunk3Z4P6FTTjs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunk3Z4P6FTTjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunk3Z4P6FTTjs.featureEnvValues.call(void 0, data)
205
+ [_chunk3PGTFASBjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunk3PGTFASBjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunk3PGTFASBjs.featureEnvValues.call(void 0, data)
208
208
  };
209
209
  }
210
210
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
211
211
  const headers = {
212
212
  "Content-Type": "application/json",
213
- "User-Agent": `deepline-ts-sdk/${_chunk3Z4P6FTTjs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunk3PGTFASBjs.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunk3Z4P6FTTjs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunk3Z4P6FTTjs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunk3Z4P6FTTjs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunk3Z4P6FTTjs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunk3PGTFASBjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunk3PGTFASBjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunk3PGTFASBjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunk3PGTFASBjs.SDK_API_CONTRACT
220
220
  };
221
221
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
222
222
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -262,7 +262,7 @@ async function readStatusBanner(baseUrl) {
262
262
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
263
263
  }
264
264
  async function reportSetupCompleted(input) {
265
- const apiKey = input.authScope === "folder" ? _chunk3Z4P6FTTjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk3Z4P6FTTjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
265
+ const apiKey = input.authScope === "folder" ? _chunk3PGTFASBjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk3PGTFASBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
266
266
  if (!apiKey) return;
267
267
  try {
268
268
  await httpJson(
@@ -359,7 +359,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
359
359
  }
360
360
  }
361
361
  async function handleRegister(args) {
362
- const baseUrl = _chunk3Z4P6FTTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
362
+ const baseUrl = _chunk3PGTFASBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
363
363
  let orgName = "";
364
364
  let orgId = "";
365
365
  let agentName = "";
@@ -414,19 +414,19 @@ async function handleRegister(args) {
414
414
  });
415
415
  saveEnvValues(
416
416
  {
417
- [_chunk3Z4P6FTTjs.HOST_URL_ENV]: baseUrl
417
+ [_chunk3PGTFASBjs.HOST_URL_ENV]: baseUrl
418
418
  },
419
419
  baseUrl,
420
420
  authScope
421
421
  );
422
422
  }
423
423
  if (claimUrl) {
424
- const shouldOpen = waitMode !== "no" && _chunk3Z4P6FTTjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
424
+ const shouldOpen = waitMode !== "no" && _chunk3PGTFASBjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
425
425
  console.log(
426
426
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
427
427
  );
428
428
  console.log(` ${claimUrl}`);
429
- if (shouldOpen) _chunkAFCHR4YFjs.openInBrowser.call(void 0, claimUrl);
429
+ if (shouldOpen) _chunkCMIRZZT4js.openInBrowser.call(void 0, claimUrl);
430
430
  }
431
431
  if (data.cli_message) {
432
432
  console.log(String(data.cli_message));
@@ -469,8 +469,8 @@ async function handleRegister(args) {
469
469
  if (apiKey) {
470
470
  saveEnvValues(
471
471
  {
472
- [_chunk3Z4P6FTTjs.HOST_URL_ENV]: baseUrl,
473
- [_chunk3Z4P6FTTjs.API_KEY_ENV]: apiKey,
472
+ [_chunk3PGTFASBjs.HOST_URL_ENV]: baseUrl,
473
+ [_chunk3PGTFASBjs.API_KEY_ENV]: apiKey,
474
474
  ...activeOrgEnvValues(statusData)
475
475
  },
476
476
  baseUrl,
@@ -492,7 +492,7 @@ async function handleRegister(args) {
492
492
  }
493
493
  }
494
494
  async function handleWait(args) {
495
- const baseUrl = _chunk3Z4P6FTTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
495
+ const baseUrl = _chunk3PGTFASBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
496
496
  let timeoutSeconds = 300;
497
497
  let requestedScope;
498
498
  if (args.includes("--auth-scope")) {
@@ -516,7 +516,7 @@ async function handleWait(args) {
516
516
  const authScope = resumed.scope;
517
517
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _12 => _12.claimToken]), () => ( ""));
518
518
  if (!pendingClaim) {
519
- const scopedApiKey = authScope === "folder" ? _chunk3Z4P6FTTjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk3Z4P6FTTjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
519
+ const scopedApiKey = authScope === "folder" ? _chunk3PGTFASBjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk3PGTFASBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
520
520
  if (scopedApiKey) {
521
521
  console.log("Already connected.");
522
522
  return EXIT_OK;
@@ -559,8 +559,8 @@ async function handleWait(args) {
559
559
  if (apiKey) {
560
560
  saveEnvValues(
561
561
  {
562
- [_chunk3Z4P6FTTjs.HOST_URL_ENV]: baseUrl,
563
- [_chunk3Z4P6FTTjs.API_KEY_ENV]: apiKey,
562
+ [_chunk3PGTFASBjs.HOST_URL_ENV]: baseUrl,
563
+ [_chunk3PGTFASBjs.API_KEY_ENV]: apiKey,
564
564
  ...activeOrgEnvValues(data)
565
565
  },
566
566
  baseUrl,
@@ -584,8 +584,8 @@ async function handleWait(args) {
584
584
  return EXIT_AUTH;
585
585
  }
586
586
  async function authStatusLine(timeoutMs = 3e3) {
587
- const baseUrl = _chunk3Z4P6FTTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
588
- const apiKey = _chunk3Z4P6FTTjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
587
+ const baseUrl = _chunk3PGTFASBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
588
+ const apiKey = _chunk3PGTFASBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
589
589
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
590
590
  try {
591
591
  const { status, data } = await httpJson(
@@ -608,9 +608,9 @@ async function authStatusLine(timeoutMs = 3e3) {
608
608
  }
609
609
  }
610
610
  async function handleStatus(args) {
611
- const baseUrl = _chunk3Z4P6FTTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
611
+ const baseUrl = _chunk3PGTFASBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
612
612
  const reveal = args.includes("--reveal");
613
- const jsonOutput = _chunkAFCHR4YFjs.argsWantJson.call(void 0, args);
613
+ const jsonOutput = _chunkCMIRZZT4js.argsWantJson.call(void 0, args);
614
614
  const hasExplicitAuthScope = args.includes("--auth-scope");
615
615
  let authScope = null;
616
616
  if (hasExplicitAuthScope) {
@@ -651,14 +651,14 @@ async function handleStatus(args) {
651
651
  };
652
652
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
653
653
  }
654
- const apiKey = authScope === "folder" ? _chunk3Z4P6FTTjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk3Z4P6FTTjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk3Z4P6FTTjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
654
+ const apiKey = authScope === "folder" ? _chunk3PGTFASBjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk3PGTFASBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk3PGTFASBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
655
655
  if (!apiKey) {
656
656
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
657
657
  baseUrl,
658
658
  _nullishCoalesce(authScope, () => ( void 0))
659
659
  );
660
660
  if (pendingClaim) {
661
- _chunkAFCHR4YFjs.printCommandEnvelope.call(void 0,
661
+ _chunkCMIRZZT4js.printCommandEnvelope.call(void 0,
662
662
  {
663
663
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
664
664
  status: "pending",
@@ -679,7 +679,7 @@ async function handleStatus(args) {
679
679
  );
680
680
  return EXIT_OK;
681
681
  }
682
- _chunkAFCHR4YFjs.printCommandEnvelope.call(void 0,
682
+ _chunkCMIRZZT4js.printCommandEnvelope.call(void 0,
683
683
  {
684
684
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
685
685
  status: "not connected",
@@ -712,7 +712,7 @@ async function handleStatus(args) {
712
712
  }
713
713
  );
714
714
  if (status === 401 || status === 403) {
715
- _chunkAFCHR4YFjs.printCommandEnvelope.call(void 0,
715
+ _chunkCMIRZZT4js.printCommandEnvelope.call(void 0,
716
716
  {
717
717
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
718
718
  status: "unauthorized",
@@ -739,7 +739,7 @@ async function handleStatus(args) {
739
739
  console.error(`Auth status error (status ${status}).`);
740
740
  return EXIT_SERVER;
741
741
  }
742
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunk3Z4P6FTTjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
742
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunk3PGTFASBjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
743
743
  clearSatisfiedPendingClaim(
744
744
  baseUrl,
745
745
  resolvedAuthScope,
@@ -767,28 +767,28 @@ async function handleStatus(args) {
767
767
  if (apiKeyResp) {
768
768
  saveEnvValues(
769
769
  {
770
- [_chunk3Z4P6FTTjs.HOST_URL_ENV]: baseUrl,
771
- [_chunk3Z4P6FTTjs.API_KEY_ENV]: apiKeyResp,
770
+ [_chunk3PGTFASBjs.HOST_URL_ENV]: baseUrl,
771
+ [_chunk3PGTFASBjs.API_KEY_ENV]: apiKeyResp,
772
772
  ...activeOrgEnvValues(data)
773
773
  },
774
774
  baseUrl,
775
775
  resolvedAuthScope
776
776
  );
777
777
  if (resolvedAuthScope === "folder") {
778
- const target = _chunk3Z4P6FTTjs.resolveProjectPinTarget.call(void 0, );
778
+ const target = _chunk3PGTFASBjs.resolveProjectPinTarget.call(void 0, );
779
779
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
780
780
  } else {
781
781
  savedApiKeyPath = envFilePath(baseUrl);
782
782
  }
783
783
  }
784
- } else if (resolvedAuthScope === "folder" || _chunk3Z4P6FTTjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
785
- saveEnvValues(_chunk3Z4P6FTTjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
784
+ } else if (resolvedAuthScope === "folder" || _chunk3PGTFASBjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
785
+ saveEnvValues(_chunk3PGTFASBjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
786
786
  }
787
- _chunkAFCHR4YFjs.printCommandEnvelope.call(void 0,
787
+ _chunkCMIRZZT4js.printCommandEnvelope.call(void 0,
788
788
  {
789
789
  ...payload,
790
- ..._chunk3Z4P6FTTjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
791
- command_context: _chunk3Z4P6FTTjs.resolveCliCommandContext.call(void 0,
790
+ ..._chunk3PGTFASBjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
791
+ command_context: _chunk3PGTFASBjs.resolveCliCommandContext.call(void 0,
792
792
  { baseUrl, apiKey },
793
793
  resolvedAuthScope
794
794
  )
@@ -21,7 +21,7 @@ var _chunkPAIMOGCMjs = require('./chunk-PAIMOGCM.js');
21
21
 
22
22
 
23
23
 
24
- var _chunk3Z4P6FTTjs = require('./chunk-3Z4P6FTT.js');
24
+ var _chunk3PGTFASBjs = require('./chunk-3PGTFASB.js');
25
25
 
26
26
 
27
27
 
@@ -137,7 +137,7 @@ async function queryCustomerDatabase(http, input) {
137
137
  if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _ => _.code, 'optionalAccess', _2 => _2.startsWith, 'call', _3 => _3("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
138
138
  // lost connections and explicitly unknown transaction resolution.
139
139
  /^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
140
- throw new (0, _chunk3Z4P6FTTjs.CustomerDbQueryOutcomeUnknownError)(
140
+ throw new (0, _chunk3PGTFASBjs.CustomerDbQueryOutcomeUnknownError)(
141
141
  error,
142
142
  plan.request.body.operation_key
143
143
  );
@@ -145,7 +145,7 @@ async function queryCustomerDatabase(http, input) {
145
145
  throw error;
146
146
  }
147
147
  if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
148
- throw new (0, _chunk3Z4P6FTTjs.CustomerDbQueryOutcomeUnknownError)(
148
+ throw new (0, _chunk3PGTFASBjs.CustomerDbQueryOutcomeUnknownError)(
149
149
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
150
150
  "The SQL response did not contain a valid result.",
151
151
  200,
@@ -156,7 +156,7 @@ async function queryCustomerDatabase(http, input) {
156
156
  }
157
157
  const operation = result.operation;
158
158
  if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
159
- throw new (0, _chunk3Z4P6FTTjs.CustomerDbQueryOutcomeUnknownError)(
159
+ throw new (0, _chunk3PGTFASBjs.CustomerDbQueryOutcomeUnknownError)(
160
160
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
161
161
  "The server did not confirm the original atomic SQL operation.",
162
162
  200,
@@ -2910,8 +2910,8 @@ function runtimeSelectionHeaders(runtime) {
2910
2910
  }
2911
2911
  const receivers = _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
2912
2912
  return {
2913
- [_chunk3Z4P6FTTjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
- ...receivers ? { [_chunk3Z4P6FTTjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2913
+ [_chunk3PGTFASBjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
+ ...receivers ? { [_chunk3PGTFASBjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2915
2915
  };
2916
2916
  }
2917
2917
  function isolatedCiRuntimeEventReadHeaders() {
@@ -2927,7 +2927,7 @@ function isolatedCiRuntimeEventReadHeaders() {
2927
2927
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2928
2928
  );
2929
2929
  }
2930
- return { [_chunk3Z4P6FTTjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2930
+ return { [_chunk3PGTFASBjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2931
2931
  }
2932
2932
  function normalizeTestPolicyOverrides(value, source) {
2933
2933
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3217,8 +3217,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
3217
3217
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3218
3218
  */
3219
3219
  constructor(options) {
3220
- this.config = _chunk3Z4P6FTTjs.resolveConfig.call(void 0, options);
3221
- this.http = new (0, _chunk3Z4P6FTTjs.HttpClient)(this.config);
3220
+ this.config = _chunk3PGTFASBjs.resolveConfig.call(void 0, options);
3221
+ this.http = new (0, _chunk3PGTFASBjs.HttpClient)(this.config);
3222
3222
  this.toolCalls = new ToolCalls(
3223
3223
  this.http,
3224
3224
  this.config.timeout,
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-NXGCO4JB.mjs";
15
15
  import {
16
16
  SDK_RELEASE
17
- } from "./chunk-C4Q5JWU3.mjs";
17
+ } from "./chunk-TTIISDJB.mjs";
18
18
 
19
19
  // src/errors.ts
20
20
  var CustomerDbQueryOutcomeUnknownError = class extends DeeplineError {