deepline 0.3.329 → 0.3.331

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 (96) hide show
  1. package/dist/bundling-sources/sdk/src/billing-idempotency.ts +24 -0
  2. package/dist/bundling-sources/sdk/src/client.ts +22 -22
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/shared_libs/security/safe-outbound-fetch.ts +10 -1
  5. package/dist/cli/{auth-MFFVOITR.mjs → auth-TVTO43JD.mjs} +4 -4
  6. package/dist/cli/auth-YYTF3NO4.js +31 -0
  7. package/dist/cli/{billing-LRBHWLIQ.mjs → billing-FBZ5CCU7.mjs} +36 -14
  8. package/dist/cli/{billing-V4Y4OVQ7.js → billing-Y4EX5FFA.js} +101 -79
  9. package/dist/cli/{chunk-VDIHLKGG.js → chunk-3AQ3L2NX.js} +4 -4
  10. package/dist/cli/{chunk-HVPRQGF4.mjs → chunk-4JYLNJMD.mjs} +1 -1
  11. package/dist/cli/{chunk-SJV5MTOJ.mjs → chunk-BXZN544J.mjs} +1 -1
  12. package/dist/cli/{chunk-MFQQINUY.mjs → chunk-CKAZY2JT.mjs} +2 -2
  13. package/dist/cli/{chunk-EROOAI5G.mjs → chunk-DU72PAVF.mjs} +1 -1
  14. package/dist/cli/{chunk-3RZJ3GEG.mjs → chunk-EGRTGSNS.mjs} +3 -3
  15. package/dist/cli/{chunk-XRYKLK56.js → chunk-ELDOV5XG.js} +45 -45
  16. package/dist/cli/{chunk-7T6DX5RK.mjs → chunk-HG5NWSN2.mjs} +62 -61
  17. package/dist/cli/{chunk-J2E5R2VH.js → chunk-KGZPY524.js} +60 -60
  18. package/dist/cli/{chunk-OUTIWGKY.js → chunk-KXWOO3GI.js} +26 -26
  19. package/dist/cli/{chunk-4FLEXYUC.js → chunk-L4CJXV7D.js} +8 -8
  20. package/dist/cli/{chunk-AD23W4S5.js → chunk-LFV2A7GB.js} +1 -1
  21. package/dist/cli/{chunk-U4CTHVN7.js → chunk-MDQOGPQY.js} +533 -532
  22. package/dist/cli/{chunk-75ZOTF3K.js → chunk-NHR3O4OV.js} +15 -15
  23. package/dist/cli/{chunk-MO2XSC5I.mjs → chunk-O52SKQQT.mjs} +4 -4
  24. package/dist/cli/{chunk-HI7TAWFS.mjs → chunk-PS5BFY2W.mjs} +5 -5
  25. package/dist/cli/{chunk-OZGU7P2S.mjs → chunk-QEI6SNAT.mjs} +38 -22
  26. package/dist/cli/{chunk-GCNER3HV.mjs → chunk-RI57LHLC.mjs} +1 -1
  27. package/dist/cli/{chunk-YNSCELIJ.mjs → chunk-RRJ6AA5L.mjs} +2 -2
  28. package/dist/cli/{chunk-ZXGUYTIT.js → chunk-RX2WWVZ7.js} +6 -6
  29. package/dist/cli/{chunk-VLDLJZ75.js → chunk-T7E5KIPE.js} +48 -48
  30. package/dist/cli/{chunk-FK7PW6BP.mjs → chunk-VEP3POWB.mjs} +1 -1
  31. package/dist/cli/{chunk-U2N4CYT7.js → chunk-XZG75ELG.js} +6 -6
  32. package/dist/cli/{chunk-KHZQFFOQ.js → chunk-YCYWPBRV.js} +2 -2
  33. package/dist/cli/{chunk-ERU2OR6F.mjs → chunk-YIYK57LW.mjs} +2 -2
  34. package/dist/cli/{chunk-GY2EEO2Y.js → chunk-ZGWURYZK.js} +51 -35
  35. package/dist/cli/client-46KHPTTQ.js +20 -0
  36. package/dist/cli/{client-BNLD775D.mjs → client-Q7J5R5PT.mjs} +3 -3
  37. package/dist/cli/{csv-7MVQECWG.mjs → csv-RVG3V4YX.mjs} +3 -3
  38. package/dist/cli/{csv-ZT6ZRQ3Z.js → csv-WBEF4KIZ.js} +12 -12
  39. package/dist/cli/{db-C4BMZXJK.js → db-4SPPGSEV.js} +29 -29
  40. package/dist/cli/{db-ABLWLMX5.mjs → db-AVIQ5WHJ.mjs} +4 -4
  41. package/dist/cli/{describe-XWOWAR32.mjs → describe-4UA6N4YX.mjs} +8 -8
  42. package/dist/cli/{describe-YALVN4WH.js → describe-IQ3FOLGV.js} +15 -15
  43. package/dist/cli/{executions-U4TNRP26.js → executions-3ZUK3YJB.js} +6 -6
  44. package/dist/cli/{executions-7IZVKQ3O.mjs → executions-VCULCPYR.mjs} +4 -4
  45. package/dist/cli/{feedback-NWMRT5W4.js → feedback-7YKDOMWW.js} +6 -6
  46. package/dist/cli/{feedback-GO5XPEKY.mjs → feedback-SZLTZXWC.mjs} +3 -3
  47. package/dist/cli/git-DCZP3E3P.js +23 -0
  48. package/dist/cli/{git-R53WS4WA.mjs → git-H4YS7TQW.mjs} +4 -4
  49. package/dist/cli/index.js +79 -79
  50. package/dist/cli/index.mjs +31 -31
  51. package/dist/cli/{legacy-noops-NJWM53DE.js → legacy-noops-GU7X3U2Y.js} +7 -7
  52. package/dist/cli/{legacy-noops-6QAZW7WJ.mjs → legacy-noops-K6U4YL3K.mjs} +4 -4
  53. package/dist/cli/{monitors-2N4BRU5M.mjs → monitors-2HHSSSDD.mjs} +4 -4
  54. package/dist/cli/{monitors-2I2MYAPS.js → monitors-IUEWN2VX.js} +85 -85
  55. package/dist/cli/{org-D3RHK2Q7.mjs → org-6NBBO7G3.mjs} +4 -4
  56. package/dist/cli/{org-XVNAE2JV.js → org-E5TYEFPX.js} +60 -60
  57. package/dist/cli/{play-L7MYJZ65.mjs → play-C2BQ4MJG.mjs} +7 -7
  58. package/dist/cli/play-MPDZPEYN.js +153 -0
  59. package/dist/cli/{providers-5BTDAZHN.js → providers-FM6LWHA4.js} +7 -7
  60. package/dist/cli/{providers-YM4E7WZD.mjs → providers-N2LG7Y3E.mjs} +4 -4
  61. package/dist/cli/{quickstart-ARPLJOLH.mjs → quickstart-GQQ6ODNU.mjs} +3 -3
  62. package/dist/cli/{quickstart-5A3FHAH3.js → quickstart-I4K6ZDU6.js} +5 -5
  63. package/dist/cli/search-6G6FUVTJ.js +26 -0
  64. package/dist/cli/{search-KKJEVV27.mjs → search-NKDQSOQ5.mjs} +5 -5
  65. package/dist/cli/{secrets-DVPVCSZD.js → secrets-BBI5NYLT.js} +13 -13
  66. package/dist/cli/{secrets-DGRJ4DO5.mjs → secrets-FGKGASDL.mjs} +4 -4
  67. package/dist/cli/{sessions-56EHXLZD.mjs → sessions-7MWWKIUT.mjs} +4 -4
  68. package/dist/cli/{sessions-VG4ATQ5Y.js → sessions-YUTDWUVR.js} +5 -5
  69. package/dist/cli/{settings-4U5XG7QI.mjs → settings-JGJWBESE.mjs} +7 -7
  70. package/dist/cli/{settings-BLOTIW2G.js → settings-U55P74SS.js} +74 -74
  71. package/dist/cli/{setup-RHJAHPOR.mjs → setup-7D577YQO.mjs} +6 -6
  72. package/dist/cli/{setup-L7AMAXCH.js → setup-XYIDQ46U.js} +41 -41
  73. package/dist/cli/skills-PXHET5MG.js +28 -0
  74. package/dist/cli/{skills-VU55YFCI.mjs → skills-Y6WBNBPF.mjs} +4 -4
  75. package/dist/cli/tools-BCSXPN5X.js +40 -0
  76. package/dist/cli/{tools-JS3YIDOH.mjs → tools-OPTIBRZP.mjs} +6 -6
  77. package/dist/cli/update-2NXG3NKT.js +28 -0
  78. package/dist/cli/{update-EHI5QUXM.mjs → update-HKJQ762M.mjs} +6 -6
  79. package/dist/cli/{workflow-BITLTLRF.mjs → workflow-2ZOG35IA.mjs} +5 -5
  80. package/dist/cli/{workflow-NE4SYRAT.js → workflow-EBIKBXXC.js} +15 -15
  81. package/dist/index.js +6 -6
  82. package/dist/index.mjs +3 -3
  83. package/dist/install-integrity.json +75 -74
  84. package/dist/release.d.mts +1 -1
  85. package/dist/release.d.ts +1 -1
  86. package/dist/release.js +2 -2
  87. package/dist/release.mjs +1 -1
  88. package/package.json +1 -1
  89. package/dist/cli/auth-W2MQM6GQ.js +0 -31
  90. package/dist/cli/client-5AIFBLKQ.js +0 -20
  91. package/dist/cli/git-YWRLAOBY.js +0 -23
  92. package/dist/cli/play-OYRHI7G3.js +0 -153
  93. package/dist/cli/search-VE3O3ZEM.js +0 -26
  94. package/dist/cli/skills-QB4OQGGP.js +0 -28
  95. package/dist/cli/tools-2CPFYNK7.js +0 -40
  96. package/dist/cli/update-WXP24GU5.js +0 -28
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkU2N4CYT7js = require('./chunk-U2N4CYT7.js');
5
+ var _chunkXZG75ELGjs = require('./chunk-XZG75ELG.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunkU2N4CYT7js = require('./chunk-U2N4CYT7.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkVDIHLKGGjs = require('./chunk-VDIHLKGG.js');
28
+ var _chunk3AQ3L2NXjs = require('./chunk-3AQ3L2NX.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 _chunkVDIHLKGGjs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunk3AQ3L2NXjs.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 = _chunkVDIHLKGGjs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunk3AQ3L2NXjs.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 `${_chunkVDIHLKGGjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunk3AQ3L2NXjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkVDIHLKGGjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunk3AQ3L2NXjs.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 _chunkVDIHLKGGjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunk3AQ3L2NXjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkVDIHLKGGjs.HOST_URL_ENV] ? { [_chunkVDIHLKGGjs.HOST_URL_ENV]: values[_chunkVDIHLKGGjs.HOST_URL_ENV] } : {},
188
- ...values[_chunkVDIHLKGGjs.API_KEY_ENV] ? { [_chunkVDIHLKGGjs.API_KEY_ENV]: values[_chunkVDIHLKGGjs.API_KEY_ENV] } : {},
189
- ...values[_chunkVDIHLKGGjs.ACTIVE_ORG_ID_ENV] ? { [_chunkVDIHLKGGjs.ACTIVE_ORG_ID_ENV]: values[_chunkVDIHLKGGjs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkVDIHLKGGjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkVDIHLKGGjs.ACTIVE_ORG_NAME_ENV]: values[_chunkVDIHLKGGjs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunk3AQ3L2NXjs.HOST_URL_ENV] ? { [_chunk3AQ3L2NXjs.HOST_URL_ENV]: values[_chunk3AQ3L2NXjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunk3AQ3L2NXjs.API_KEY_ENV] ? { [_chunk3AQ3L2NXjs.API_KEY_ENV]: values[_chunk3AQ3L2NXjs.API_KEY_ENV] } : {},
189
+ ...values[_chunk3AQ3L2NXjs.ACTIVE_ORG_ID_ENV] ? { [_chunk3AQ3L2NXjs.ACTIVE_ORG_ID_ENV]: values[_chunk3AQ3L2NXjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunk3AQ3L2NXjs.ACTIVE_ORG_NAME_ENV) ? { [_chunk3AQ3L2NXjs.ACTIVE_ORG_NAME_ENV]: values[_chunk3AQ3L2NXjs.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, _chunkVDIHLKGGjs.FEATURES_ENV) ? { [_chunkVDIHLKGGjs.FEATURES_ENV]: values[_chunkVDIHLKGGjs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunk3AQ3L2NXjs.FEATURES_ENV) ? { [_chunk3AQ3L2NXjs.FEATURES_ENV]: values[_chunk3AQ3L2NXjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkVDIHLKGGjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunk3AQ3L2NXjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkVDIHLKGGjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunk3AQ3L2NXjs.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
- [_chunkVDIHLKGGjs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkVDIHLKGGjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkVDIHLKGGjs.featureEnvValues.call(void 0, data)
205
+ [_chunk3AQ3L2NXjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunk3AQ3L2NXjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunk3AQ3L2NXjs.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/${_chunkVDIHLKGGjs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunk3AQ3L2NXjs.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkVDIHLKGGjs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkVDIHLKGGjs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkVDIHLKGGjs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkVDIHLKGGjs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunk3AQ3L2NXjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunk3AQ3L2NXjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunk3AQ3L2NXjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunk3AQ3L2NXjs.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()]);
@@ -254,7 +254,7 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
254
254
  throw lastError instanceof Error ? lastError : new Error(String(lastError));
255
255
  }
256
256
  async function reportSetupCompleted(input) {
257
- const apiKey = input.authScope === "folder" ? _chunkVDIHLKGGjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkVDIHLKGGjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
257
+ const apiKey = input.authScope === "folder" ? _chunk3AQ3L2NXjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk3AQ3L2NXjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
258
258
  if (!apiKey) return;
259
259
  try {
260
260
  await httpJson(
@@ -351,7 +351,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
351
351
  }
352
352
  }
353
353
  async function handleRegister(args) {
354
- const baseUrl = _chunkVDIHLKGGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
354
+ const baseUrl = _chunk3AQ3L2NXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
355
355
  let orgName = "";
356
356
  let orgId = "";
357
357
  let agentName = "";
@@ -406,19 +406,19 @@ async function handleRegister(args) {
406
406
  });
407
407
  saveEnvValues(
408
408
  {
409
- [_chunkVDIHLKGGjs.HOST_URL_ENV]: baseUrl
409
+ [_chunk3AQ3L2NXjs.HOST_URL_ENV]: baseUrl
410
410
  },
411
411
  baseUrl,
412
412
  authScope
413
413
  );
414
414
  }
415
415
  if (claimUrl) {
416
- const shouldOpen = waitMode !== "no" && _chunkVDIHLKGGjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
416
+ const shouldOpen = waitMode !== "no" && _chunk3AQ3L2NXjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
417
417
  console.log(
418
418
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
419
419
  );
420
420
  console.log(` ${claimUrl}`);
421
- if (shouldOpen) _chunkU2N4CYT7js.openInBrowser.call(void 0, claimUrl);
421
+ if (shouldOpen) _chunkXZG75ELGjs.openInBrowser.call(void 0, claimUrl);
422
422
  }
423
423
  if (data.cli_message) {
424
424
  console.log(String(data.cli_message));
@@ -461,8 +461,8 @@ async function handleRegister(args) {
461
461
  if (apiKey) {
462
462
  saveEnvValues(
463
463
  {
464
- [_chunkVDIHLKGGjs.HOST_URL_ENV]: baseUrl,
465
- [_chunkVDIHLKGGjs.API_KEY_ENV]: apiKey,
464
+ [_chunk3AQ3L2NXjs.HOST_URL_ENV]: baseUrl,
465
+ [_chunk3AQ3L2NXjs.API_KEY_ENV]: apiKey,
466
466
  ...activeOrgEnvValues(statusData)
467
467
  },
468
468
  baseUrl,
@@ -484,7 +484,7 @@ async function handleRegister(args) {
484
484
  }
485
485
  }
486
486
  async function handleWait(args) {
487
- const baseUrl = _chunkVDIHLKGGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
487
+ const baseUrl = _chunk3AQ3L2NXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
488
488
  let timeoutSeconds = 300;
489
489
  let requestedScope;
490
490
  if (args.includes("--auth-scope")) {
@@ -508,7 +508,7 @@ async function handleWait(args) {
508
508
  const authScope = resumed.scope;
509
509
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _11 => _11.claimToken]), () => ( ""));
510
510
  if (!pendingClaim) {
511
- const scopedApiKey = authScope === "folder" ? _chunkVDIHLKGGjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkVDIHLKGGjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
511
+ const scopedApiKey = authScope === "folder" ? _chunk3AQ3L2NXjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk3AQ3L2NXjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
512
512
  if (scopedApiKey) {
513
513
  console.log("Already connected.");
514
514
  return EXIT_OK;
@@ -551,8 +551,8 @@ async function handleWait(args) {
551
551
  if (apiKey) {
552
552
  saveEnvValues(
553
553
  {
554
- [_chunkVDIHLKGGjs.HOST_URL_ENV]: baseUrl,
555
- [_chunkVDIHLKGGjs.API_KEY_ENV]: apiKey,
554
+ [_chunk3AQ3L2NXjs.HOST_URL_ENV]: baseUrl,
555
+ [_chunk3AQ3L2NXjs.API_KEY_ENV]: apiKey,
556
556
  ...activeOrgEnvValues(data)
557
557
  },
558
558
  baseUrl,
@@ -576,9 +576,9 @@ async function handleWait(args) {
576
576
  return EXIT_AUTH;
577
577
  }
578
578
  async function handleStatus(args) {
579
- const baseUrl = _chunkVDIHLKGGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
579
+ const baseUrl = _chunk3AQ3L2NXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
580
  const reveal = args.includes("--reveal");
581
- const jsonOutput = _chunkU2N4CYT7js.argsWantJson.call(void 0, args);
581
+ const jsonOutput = _chunkXZG75ELGjs.argsWantJson.call(void 0, args);
582
582
  const hasExplicitAuthScope = args.includes("--auth-scope");
583
583
  let authScope = null;
584
584
  if (hasExplicitAuthScope) {
@@ -618,14 +618,14 @@ async function handleStatus(args) {
618
618
  };
619
619
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
620
620
  }
621
- const apiKey = authScope === "folder" ? _chunkVDIHLKGGjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkVDIHLKGGjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkVDIHLKGGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
621
+ const apiKey = authScope === "folder" ? _chunk3AQ3L2NXjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk3AQ3L2NXjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk3AQ3L2NXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
622
622
  if (!apiKey) {
623
623
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
624
624
  baseUrl,
625
625
  _nullishCoalesce(authScope, () => ( void 0))
626
626
  );
627
627
  if (pendingClaim) {
628
- _chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
628
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
629
629
  {
630
630
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
631
631
  status: "pending",
@@ -646,7 +646,7 @@ async function handleStatus(args) {
646
646
  );
647
647
  return EXIT_OK;
648
648
  }
649
- _chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
649
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
650
650
  {
651
651
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
652
652
  status: "not connected",
@@ -682,7 +682,7 @@ async function handleStatus(args) {
682
682
  }
683
683
  );
684
684
  if (status === 401 || status === 403) {
685
- _chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
685
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
686
686
  {
687
687
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
688
688
  status: "unauthorized",
@@ -712,7 +712,7 @@ async function handleStatus(args) {
712
712
  console.error(`Auth status error (status ${status}).`);
713
713
  return EXIT_SERVER;
714
714
  }
715
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkVDIHLKGGjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
715
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunk3AQ3L2NXjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
716
716
  clearSatisfiedPendingClaim(
717
717
  baseUrl,
718
718
  resolvedAuthScope,
@@ -740,28 +740,28 @@ async function handleStatus(args) {
740
740
  if (apiKeyResp) {
741
741
  saveEnvValues(
742
742
  {
743
- [_chunkVDIHLKGGjs.HOST_URL_ENV]: baseUrl,
744
- [_chunkVDIHLKGGjs.API_KEY_ENV]: apiKeyResp,
743
+ [_chunk3AQ3L2NXjs.HOST_URL_ENV]: baseUrl,
744
+ [_chunk3AQ3L2NXjs.API_KEY_ENV]: apiKeyResp,
745
745
  ...activeOrgEnvValues(data)
746
746
  },
747
747
  baseUrl,
748
748
  resolvedAuthScope
749
749
  );
750
750
  if (resolvedAuthScope === "folder") {
751
- const target = _chunkVDIHLKGGjs.resolveProjectPinTarget.call(void 0, );
751
+ const target = _chunk3AQ3L2NXjs.resolveProjectPinTarget.call(void 0, );
752
752
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
753
753
  } else {
754
754
  savedApiKeyPath = envFilePath(baseUrl);
755
755
  }
756
756
  }
757
- } else if (resolvedAuthScope === "folder" || _chunkVDIHLKGGjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
758
- saveEnvValues(_chunkVDIHLKGGjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
757
+ } else if (resolvedAuthScope === "folder" || _chunk3AQ3L2NXjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
758
+ saveEnvValues(_chunk3AQ3L2NXjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
759
759
  }
760
- _chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
760
+ _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
761
761
  {
762
762
  ...payload,
763
- ..._chunkVDIHLKGGjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
764
- command_context: _chunkVDIHLKGGjs.resolveCliCommandContext.call(void 0,
763
+ ..._chunk3AQ3L2NXjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
764
+ command_context: _chunk3AQ3L2NXjs.resolveCliCommandContext.call(void 0,
765
765
  { baseUrl, apiKey },
766
766
  resolvedAuthScope
767
767
  )
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-DLIRSHV6.mjs";
5
5
  import {
6
6
  SDK_RELEASE
7
- } from "./chunk-GCNER3HV.mjs";
7
+ } from "./chunk-RI57LHLC.mjs";
8
8
  import {
9
9
  DeeplineError,
10
10
  TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkVDIHLKGGjs = require('./chunk-VDIHLKGG.js');
6
+ var _chunk3AQ3L2NXjs = require('./chunk-3AQ3L2NX.js');
7
7
 
8
8
 
9
9
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -136,8 +136,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
136
136
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
137
137
  var defaultBrowserCommandRunner = childProcess;
138
138
  function getAuthedHttpClient() {
139
- const config = _chunkVDIHLKGGjs.resolveConfig.call(void 0, );
140
- return { config, http: new (0, _chunkVDIHLKGGjs.HttpClient)(config) };
139
+ const config = _chunk3AQ3L2NXjs.resolveConfig.call(void 0, );
140
+ return { config, http: new (0, _chunk3AQ3L2NXjs.HttpClient)(config) };
141
141
  }
142
142
  function stableOsUserId() {
143
143
  try {
@@ -477,7 +477,7 @@ function collectLocalEnvInfo() {
477
477
  os: `${process.platform} ${process.arch}`,
478
478
  node_version: process.version,
479
479
  home_dir: homeDir,
480
- agent_runtime: _chunkVDIHLKGGjs.detectAgentRuntime.call(void 0, )
480
+ agent_runtime: _chunk3AQ3L2NXjs.detectAgentRuntime.call(void 0, )
481
481
  };
482
482
  const env = process.env;
483
483
  const optional = {
@@ -725,9 +725,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
725
725
  }
726
726
  function withAgentCommandContext(value) {
727
727
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
728
- return _chunkVDIHLKGGjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
728
+ return _chunk3AQ3L2NXjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
729
729
  ...valueRecord,
730
- command_context: _chunkVDIHLKGGjs.resolveCliCommandContext.call(void 0, )
730
+ command_context: _chunk3AQ3L2NXjs.resolveCliCommandContext.call(void 0, )
731
731
  } : value;
732
732
  }
733
733
  function printJson(value, fields) {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkJ2E5R2VHjs = require('./chunk-J2E5R2VH.js');
3
+ var _chunkKGZPY524js = require('./chunk-KGZPY524.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkJ2E5R2VHjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkKGZPY524js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-EROOAI5G.mjs";
5
+ } from "./chunk-DU72PAVF.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-FK7PW6BP.mjs";
8
+ } from "./chunk-VEP3POWB.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -15,7 +15,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkVDIHLKGGjs = require('./chunk-VDIHLKGG.js');
18
+ var _chunk3AQ3L2NXjs = require('./chunk-3AQ3L2NX.js');
19
19
 
20
20
 
21
21
 
@@ -82,6 +82,27 @@ function playInputExampleArgs(schema) {
82
82
  return " --input '@<input.json>'";
83
83
  }
84
84
 
85
+ // src/billing-idempotency.ts
86
+ function requireBillingIdempotencyKey(value) {
87
+ const normalized = value.trim();
88
+ let valid = normalized.length > 0 && normalized.length <= 200 && normalized === value;
89
+ if (valid) {
90
+ try {
91
+ valid = new Headers({ "Idempotency-Key": value }).get("Idempotency-Key") === value;
92
+ } catch (e) {
93
+ valid = false;
94
+ }
95
+ }
96
+ if (!valid) {
97
+ throw new (0, _chunk7P5AA3SNjs.DeeplineError)(
98
+ "Billing idempotencyKey must contain 1\u2013200 characters with no leading or trailing whitespace and be valid HTTP header text.",
99
+ void 0,
100
+ "INVALID_BILLING_IDEMPOTENCY_KEY"
101
+ );
102
+ }
103
+ return value;
104
+ }
105
+
85
106
  // src/db/query.ts
86
107
  function planCustomerDbQuery(input) {
87
108
  if (typeof input.sql !== "string" || !input.sql.trim())
@@ -146,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
146
167
  if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
147
168
  // lost connections and explicitly unknown transaction resolution.
148
169
  /^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
149
- throw new (0, _chunkVDIHLKGGjs.CustomerDbQueryOutcomeUnknownError)(
170
+ throw new (0, _chunk3AQ3L2NXjs.CustomerDbQueryOutcomeUnknownError)(
150
171
  error,
151
172
  plan.request.body.operation_key
152
173
  );
@@ -154,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
154
175
  throw error;
155
176
  }
156
177
  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) {
157
- throw new (0, _chunkVDIHLKGGjs.CustomerDbQueryOutcomeUnknownError)(
178
+ throw new (0, _chunk3AQ3L2NXjs.CustomerDbQueryOutcomeUnknownError)(
158
179
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
159
180
  "The SQL response did not contain a valid result.",
160
181
  200,
@@ -165,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
165
186
  }
166
187
  const operation = result.operation;
167
188
  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))) {
168
- throw new (0, _chunkVDIHLKGGjs.CustomerDbQueryOutcomeUnknownError)(
189
+ throw new (0, _chunk3AQ3L2NXjs.CustomerDbQueryOutcomeUnknownError)(
169
190
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
170
191
  "The server did not confirm the original atomic SQL operation.",
171
192
  200,
@@ -861,7 +882,7 @@ function createSecretRedactionContext(initialValues = []) {
861
882
  try {
862
883
  const encoded = encodeURIComponent(secret);
863
884
  if (encoded !== secret) literals.push(encoded);
864
- } catch (e) {
885
+ } catch (e2) {
865
886
  }
866
887
  const built = literals.map((literal) => ({
867
888
  literal,
@@ -882,7 +903,7 @@ function createSecretRedactionContext(initialValues = []) {
882
903
  try {
883
904
  const encoded = encodeURIComponent(secret);
884
905
  if (encoded !== secret && value.includes(encoded)) return true;
885
- } catch (e2) {
906
+ } catch (e3) {
886
907
  }
887
908
  }
888
909
  }
@@ -2172,7 +2193,7 @@ function bounded(value, maxBytes = MAX_BYTES) {
2172
2193
  let encoded;
2173
2194
  try {
2174
2195
  encoded = JSON.stringify(value);
2175
- } catch (e3) {
2196
+ } catch (e4) {
2176
2197
  fail("Run event query must be bounded JSON without cycles.");
2177
2198
  }
2178
2199
  if (!encoded || new TextEncoder().encode(encoded).length > maxBytes)
@@ -2372,7 +2393,7 @@ function parseDsl(input) {
2372
2393
  }
2373
2394
  try {
2374
2395
  return JSON.parse(input.slice(start, position));
2375
- } catch (e4) {
2396
+ } catch (e5) {
2376
2397
  fail("Run event DSL requires valid JSON scalars.");
2377
2398
  }
2378
2399
  };
@@ -2854,8 +2875,8 @@ function runtimeSelectionHeaders(runtime) {
2854
2875
  }
2855
2876
  const receivers = _optionalChain([process, 'access', _102 => _102.env, 'access', _103 => _103.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _104 => _104.trim, 'call', _105 => _105()]);
2856
2877
  return {
2857
- [_chunkVDIHLKGGjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2858
- ...receivers ? { [_chunkVDIHLKGGjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2878
+ [_chunk3AQ3L2NXjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2879
+ ...receivers ? { [_chunk3AQ3L2NXjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2859
2880
  };
2860
2881
  }
2861
2882
  function isolatedCiRuntimeEventReadHeaders() {
@@ -2871,7 +2892,7 @@ function isolatedCiRuntimeEventReadHeaders() {
2871
2892
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2872
2893
  );
2873
2894
  }
2874
- return { [_chunkVDIHLKGGjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2895
+ return { [_chunk3AQ3L2NXjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2875
2896
  }
2876
2897
  function normalizeTestPolicyOverrides(value, source) {
2877
2898
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3007,17 +3028,6 @@ var MONITOR_JOB_RECONCILIATION_STATES = [
3007
3028
  "partial",
3008
3029
  "mismatched"
3009
3030
  ];
3010
- function requireTargetBillingIdempotencyKey(value) {
3011
- const normalized = value.trim();
3012
- if (normalized.length === 0 || normalized.length > 200 || normalized !== value) {
3013
- throw new (0, _chunk7P5AA3SNjs.DeeplineError)(
3014
- "Billing idempotencyKey must contain 1\u2013200 characters with no leading or trailing whitespace.",
3015
- void 0,
3016
- "INVALID_BILLING_IDEMPOTENCY_KEY"
3017
- );
3018
- }
3019
- return normalized;
3020
- }
3021
3031
  function isRecord2(value) {
3022
3032
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
3023
3033
  }
@@ -3172,8 +3182,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
3172
3182
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3173
3183
  */
3174
3184
  constructor(options) {
3175
- this.config = _chunkVDIHLKGGjs.resolveConfig.call(void 0, options);
3176
- this.http = new (0, _chunkVDIHLKGGjs.HttpClient)(this.config);
3185
+ this.config = _chunk3AQ3L2NXjs.resolveConfig.call(void 0, options);
3186
+ this.http = new (0, _chunk3AQ3L2NXjs.HttpClient)(this.config);
3177
3187
  this.toolCalls = new ToolCalls(
3178
3188
  this.http,
3179
3189
  this.config.timeout,
@@ -3236,7 +3246,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
3236
3246
  "/api/v2/billing/auto-recharge/trigger",
3237
3247
  {},
3238
3248
  {
3239
- "Idempotency-Key": requireTargetBillingIdempotencyKey(
3249
+ "Idempotency-Key": requireBillingIdempotencyKey(
3240
3250
  _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _145 => _145.idempotencyKey]), () => ( globalThis.crypto.randomUUID()))
3241
3251
  )
3242
3252
  }
@@ -5671,13 +5681,14 @@ var DeeplineClient = (_class = class _DeeplineClient {
5671
5681
  * requires confirmation.
5672
5682
  */
5673
5683
  async topUpBillingBalance(options) {
5684
+ const idempotencyKey = options.idempotencyKey === void 0 ? void 0 : requireBillingIdempotencyKey(options.idempotencyKey);
5674
5685
  return this.http.post(
5675
5686
  "/api/v2/billing/top-up",
5676
5687
  {
5677
5688
  credits: options.credits,
5678
- ...options.idempotencyKey ? { idempotency_key: options.idempotencyKey } : {}
5689
+ ...idempotencyKey !== void 0 ? { idempotency_key: idempotencyKey } : {}
5679
5690
  },
5680
- void 0,
5691
+ idempotencyKey === void 0 ? void 0 : { "Idempotency-Key": idempotencyKey },
5681
5692
  // The idempotency key makes a retry at the product layer safe, but the
5682
5693
  // CLI should not hide ambiguous local delivery failures behind implicit
5683
5694
  // transport retries for a payment mutation.
@@ -5690,13 +5701,17 @@ var DeeplineClient = (_class = class _DeeplineClient {
5690
5701
  * `client.billing.topUpWithReceipt(...)`.
5691
5702
  */
5692
5703
  async topUpBillingBalanceWithReceipt(options) {
5704
+ const idempotencyKey = options.idempotencyKey === void 0 ? void 0 : requireBillingIdempotencyKey(options.idempotencyKey);
5693
5705
  return this.http.post(
5694
5706
  "/api/v2/billing/top-up",
5695
5707
  {
5696
5708
  credits: options.credits,
5697
- ...options.idempotencyKey ? { idempotency_key: options.idempotencyKey } : {}
5709
+ ...idempotencyKey !== void 0 ? { idempotency_key: idempotencyKey } : {}
5710
+ },
5711
+ {
5712
+ "x-deepline-top-up-receipt": "operation-v1",
5713
+ ...idempotencyKey !== void 0 ? { "Idempotency-Key": idempotencyKey } : {}
5698
5714
  },
5699
- { "x-deepline-top-up-receipt": "operation-v1" },
5700
5715
  { maxRetries: 0, exactUrlOnly: true }
5701
5716
  );
5702
5717
  }
@@ -5761,7 +5776,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5761
5776
  }
5762
5777
  /** Update automatic recharge and return the server-verified configuration. */
5763
5778
  async updateTargetAutoRecharge(options) {
5764
- const idempotencyKey = requireTargetBillingIdempotencyKey(
5779
+ const idempotencyKey = requireBillingIdempotencyKey(
5765
5780
  options.idempotencyKey
5766
5781
  );
5767
5782
  const response = await this.http.put(
@@ -5782,7 +5797,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5782
5797
  * flow. The caller supplies an idempotency key for safe retries.
5783
5798
  */
5784
5799
  async purchaseTargetBillingCredits(options) {
5785
- const idempotencyKey = requireTargetBillingIdempotencyKey(
5800
+ const idempotencyKey = requireBillingIdempotencyKey(
5786
5801
  options.idempotencyKey
5787
5802
  );
5788
5803
  return this.http.post(
@@ -5801,7 +5816,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5801
5816
  "INVALID_BILLING_IDEMPOTENCY_KEY"
5802
5817
  );
5803
5818
  }
5804
- const idempotencyKey = requireTargetBillingIdempotencyKey(
5819
+ const idempotencyKey = requireBillingIdempotencyKey(
5805
5820
  options.idempotencyKey
5806
5821
  );
5807
5822
  if (!Number.isSafeInteger(options.credits) || options.credits <= 0) {
@@ -5830,7 +5845,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5830
5845
  * commercial operation.
5831
5846
  */
5832
5847
  async transitionTargetBillingPlan(options) {
5833
- const idempotencyKey = requireTargetBillingIdempotencyKey(
5848
+ const idempotencyKey = requireBillingIdempotencyKey(
5834
5849
  options.idempotencyKey
5835
5850
  );
5836
5851
  return this.http.post(
@@ -5854,7 +5869,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5854
5869
  }
5855
5870
  /** Create an additional workspace through the durable PAYG workflow. */
5856
5871
  async createWorkspace(options) {
5857
- const idempotencyKey = requireTargetBillingIdempotencyKey(
5872
+ const idempotencyKey = requireBillingIdempotencyKey(
5858
5873
  options.idempotencyKey
5859
5874
  );
5860
5875
  const response = await this.http.post(
@@ -6491,4 +6506,5 @@ var DeeplineClient = (_class = class _DeeplineClient {
6491
6506
 
6492
6507
 
6493
6508
 
6494
- exports.CSV_HEADER_MATCHING_NOTE = CSV_HEADER_MATCHING_NOTE; exports.iterateCursorPages = iterateCursorPages; exports.playInputExampleArgs = playInputExampleArgs; exports.planCustomerDbQuery = planCustomerDbQuery; exports.validateExecutionIdempotencyKey = validateExecutionIdempotencyKey; exports.PRODUCT_NOTIFICATION_EVENT_CATALOG = PRODUCT_NOTIFICATION_EVENT_CATALOG; exports.resolveLegacySlackNotification = resolveLegacySlackNotification; exports.RUN_EVENT_SEARCH_KIND_VALUES = RUN_EVENT_SEARCH_KIND_VALUES; exports.logProvenanceReaches = logProvenanceReaches; exports.logLevelReaches = logLevelReaches; exports.parseLogLevel = parseLogLevel; exports.classifyLogLine = classifyLogLine; exports.isTransientPlayRunReadError = isTransientPlayRunReadError; exports.encodeRunLogsCursor = encodeRunLogsCursor; exports.isRunLogsCursor = isRunLogsCursor; exports.RunEventQueryInputError = RunEventQueryInputError; exports.normalizeRunEventOperationRequest = normalizeRunEventOperationRequest; exports.isStopAllPlayRunsDryRunResult = isStopAllPlayRunsDryRunResult; exports.MONITOR_JOB_STATES = MONITOR_JOB_STATES; exports.MONITOR_JOB_PHASES = MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = MONITOR_JOB_RECONCILIATION_STATES; exports.DeeplineClient = DeeplineClient;
6509
+
6510
+ exports.CSV_HEADER_MATCHING_NOTE = CSV_HEADER_MATCHING_NOTE; exports.iterateCursorPages = iterateCursorPages; exports.playInputExampleArgs = playInputExampleArgs; exports.requireBillingIdempotencyKey = requireBillingIdempotencyKey; exports.planCustomerDbQuery = planCustomerDbQuery; exports.validateExecutionIdempotencyKey = validateExecutionIdempotencyKey; exports.PRODUCT_NOTIFICATION_EVENT_CATALOG = PRODUCT_NOTIFICATION_EVENT_CATALOG; exports.resolveLegacySlackNotification = resolveLegacySlackNotification; exports.RUN_EVENT_SEARCH_KIND_VALUES = RUN_EVENT_SEARCH_KIND_VALUES; exports.logProvenanceReaches = logProvenanceReaches; exports.logLevelReaches = logLevelReaches; exports.parseLogLevel = parseLogLevel; exports.classifyLogLine = classifyLogLine; exports.isTransientPlayRunReadError = isTransientPlayRunReadError; exports.encodeRunLogsCursor = encodeRunLogsCursor; exports.isRunLogsCursor = isRunLogsCursor; exports.RunEventQueryInputError = RunEventQueryInputError; exports.normalizeRunEventOperationRequest = normalizeRunEventOperationRequest; exports.isStopAllPlayRunsDryRunResult = isStopAllPlayRunsDryRunResult; exports.MONITOR_JOB_STATES = MONITOR_JOB_STATES; exports.MONITOR_JOB_PHASES = MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = MONITOR_JOB_RECONCILIATION_STATES; exports.DeeplineClient = DeeplineClient;
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkZGWURYZKjs = require('./chunk-ZGWURYZK.js');
7
+ require('./chunk-LA46MMTL.js');
8
+ require('./chunk-3AQ3L2NX.js');
9
+ require('./chunk-XNYIZMNQ.js');
10
+ require('./chunk-LFV2A7GB.js');
11
+ require('./chunk-S6R3OX7B.js');
12
+ require('./chunk-7P5AA3SN.js');
13
+ require('./chunk-OG64RBAC.js');
14
+ require('./chunk-COGTRVWW.js');
15
+
16
+
17
+
18
+
19
+
20
+ exports.DeeplineClient = _chunkZGWURYZKjs.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunkZGWURYZKjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkZGWURYZKjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkZGWURYZKjs.MONITOR_JOB_STATES;
@@ -3,11 +3,11 @@ import {
3
3
  MONITOR_JOB_PHASES,
4
4
  MONITOR_JOB_RECONCILIATION_STATES,
5
5
  MONITOR_JOB_STATES
6
- } from "./chunk-OZGU7P2S.mjs";
6
+ } from "./chunk-QEI6SNAT.mjs";
7
7
  import "./chunk-CBVIJSHF.mjs";
8
- import "./chunk-FK7PW6BP.mjs";
8
+ import "./chunk-VEP3POWB.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
- import "./chunk-GCNER3HV.mjs";
10
+ import "./chunk-RI57LHLC.mjs";
11
11
  import "./chunk-6IKARAYD.mjs";
12
12
  import "./chunk-NXGCO4JB.mjs";
13
13
  import "./chunk-WZYKRD7T.mjs";
@@ -4,10 +4,10 @@ import {
4
4
  printCommandEnvelope,
5
5
  printJson,
6
6
  readCsvRows
7
- } from "./chunk-EROOAI5G.mjs";
8
- import "./chunk-FK7PW6BP.mjs";
7
+ } from "./chunk-DU72PAVF.mjs";
8
+ import "./chunk-VEP3POWB.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
- import "./chunk-GCNER3HV.mjs";
10
+ import "./chunk-RI57LHLC.mjs";
11
11
  import "./chunk-NXGCO4JB.mjs";
12
12
  import "./chunk-WZYKRD7T.mjs";
13
13
  import "./chunk-KRD6H754.mjs";