deepline 0.3.383 → 0.3.384

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-54CAXSHD.mjs} +4 -4
  3. package/dist/cli/auth-JLX4WME4.js +39 -0
  4. package/dist/cli/{billing-44WIXRTK.js → billing-2XWGPZ5O.js} +73 -73
  5. package/dist/cli/{billing-LRF2NACZ.mjs → billing-PXGESNMZ.mjs} +4 -4
  6. package/dist/cli/{chunk-A7HIN77W.js → chunk-4EMAJ3QX.js} +61 -60
  7. package/dist/cli/{chunk-4LE4OXXN.mjs → chunk-4GSECA4G.mjs} +1 -1
  8. package/dist/cli/{chunk-SWYXUHCV.js → chunk-4SRTIXOV.js} +15 -15
  9. package/dist/cli/{chunk-BICTEMZN.js → chunk-5HWGQYSK.js} +50 -50
  10. package/dist/cli/{chunk-GMVSUWPP.js → chunk-6XWYHSKE.js} +9 -9
  11. package/dist/cli/{chunk-NTBOTP6U.mjs → chunk-7TGFUXT3.mjs} +1 -1
  12. package/dist/cli/{chunk-PLOQ3BBM.mjs → chunk-BT5Y6UNH.mjs} +5 -5
  13. package/dist/cli/{chunk-YK6RRPOH.mjs → chunk-D6Z646OQ.mjs} +4 -4
  14. package/dist/cli/{chunk-5UFGNQPB.js → chunk-EIEJKNLZ.js} +8 -8
  15. package/dist/cli/{chunk-C4Q5JWU3.mjs → chunk-FFXJKVSX.mjs} +1 -1
  16. package/dist/cli/{chunk-TG6SWI26.mjs → chunk-GIMBOV7B.mjs} +2 -2
  17. package/dist/cli/{chunk-XHP2OVMG.js → chunk-HNAXRSVI.js} +8 -8
  18. package/dist/cli/{chunk-26QUYLQT.mjs → chunk-IHYRCMS2.mjs} +2 -2
  19. package/dist/cli/{chunk-KB455XET.mjs → chunk-IWP4FVK6.mjs} +1 -1
  20. package/dist/cli/{chunk-NGDV6VG6.mjs → chunk-JV3I3SPK.mjs} +1 -1
  21. package/dist/cli/{chunk-NGHN37LZ.mjs → chunk-LDTDN3RX.mjs} +3 -2
  22. package/dist/cli/{chunk-USVQU4FG.js → chunk-MPVA2MUT.js} +226 -226
  23. package/dist/cli/{chunk-LOWL2IEA.js → chunk-O4XVGZDX.js} +2 -2
  24. package/dist/cli/{chunk-6BGD3GOJ.mjs → chunk-OT35I43P.mjs} +6 -6
  25. package/dist/cli/{chunk-JF3R6BNL.mjs → chunk-QX473E5P.mjs} +3 -3
  26. package/dist/cli/{chunk-LRIXR5QU.js → chunk-R3B7XJ3J.js} +26 -26
  27. package/dist/cli/{chunk-3Z4P6FTT.js → chunk-SOV673GH.js} +4 -4
  28. package/dist/cli/{chunk-P2W372EW.js → chunk-SPSQXIRR.js} +48 -48
  29. package/dist/cli/{chunk-ZAF746ZB.mjs → chunk-UMVIHIQR.mjs} +2 -2
  30. package/dist/cli/{chunk-MCRIYPOO.js → chunk-W5THLO6U.js} +1 -1
  31. package/dist/cli/{chunk-AFCHR4YF.js → chunk-XPJKXSQS.js} +6 -6
  32. package/dist/cli/{csv-JCT62ZYQ.js → csv-H4ZACHHS.js} +12 -12
  33. package/dist/cli/{csv-VRCG5NTO.mjs → csv-J4JP3DPS.mjs} +3 -3
  34. package/dist/cli/{db-C2FWHDSR.js → db-XO7FOC3Y.js} +29 -29
  35. package/dist/cli/{db-TXPBHVLO.mjs → db-Y75OULXT.mjs} +4 -4
  36. package/dist/cli/{describe-BTXARLAZ.mjs → describe-EQWRAHDB.mjs} +8 -8
  37. package/dist/cli/{describe-R5MCMIU3.js → describe-YNB27VDP.js} +18 -18
  38. package/dist/cli/{executions-Q5ZK7H6L.js → executions-ERDR36BX.js} +6 -6
  39. package/dist/cli/{executions-OJYCYPK2.mjs → executions-YVEIAM7M.mjs} +4 -4
  40. package/dist/cli/{feedback-XIWI37PD.mjs → feedback-DVLIEVMN.mjs} +3 -3
  41. package/dist/cli/{feedback-X6Q3ABCY.js → feedback-NED6Q7KT.js} +7 -7
  42. package/dist/cli/{git-HW5SQRNJ.mjs → git-4RKNN3VY.mjs} +4 -4
  43. package/dist/cli/git-Q4YJMTMJ.js +23 -0
  44. package/dist/cli/index.js +93 -91
  45. package/dist/cli/index.mjs +34 -32
  46. package/dist/cli/{legacy-noops-EBRICEDC.mjs → legacy-noops-6E2X2I3N.mjs} +4 -4
  47. package/dist/cli/{legacy-noops-2WHVV6XA.js → legacy-noops-RVUHMAGK.js} +7 -7
  48. package/dist/cli/{monitors-5CYSLU3P.mjs → monitors-7LHN35U7.mjs} +4 -4
  49. package/dist/cli/{monitors-VNDYLLIX.js → monitors-J2MY6A2I.js} +85 -85
  50. package/dist/cli/{org-WV6GOBNV.mjs → org-V4QQMVEU.mjs} +4 -4
  51. package/dist/cli/{org-3ESTK25P.js → org-XSQK5EXX.js} +64 -64
  52. package/dist/cli/play-QM2EHIEQ.js +157 -0
  53. package/dist/cli/{play-AA2FORIH.mjs → play-UN5R5WLC.mjs} +7 -7
  54. package/dist/cli/{providers-H47XKFEX.mjs → providers-2GCHGAPY.mjs} +4 -4
  55. package/dist/cli/{providers-F2V2QI5Z.js → providers-RUZNJEZU.js} +7 -7
  56. package/dist/cli/{quickstart-E3VQKDMU.js → quickstart-QI7C3OE6.js} +5 -5
  57. package/dist/cli/{quickstart-YIIXVX6Z.mjs → quickstart-SQJ3LD5S.mjs} +3 -3
  58. package/dist/cli/search-4D6JH4UN.js +26 -0
  59. package/dist/cli/{search-MI7OUPQS.mjs → search-UXEFJH6M.mjs} +5 -5
  60. package/dist/cli/{secrets-HBNK3VCN.js → secrets-UELQR4TK.js} +13 -13
  61. package/dist/cli/{secrets-B4A5SZR7.mjs → secrets-VUXPAPWB.mjs} +4 -4
  62. package/dist/cli/{sessions-6CPUREXX.mjs → sessions-NZBULFH2.mjs} +4 -4
  63. package/dist/cli/{sessions-7L56I743.js → sessions-VJJA2IAJ.js} +5 -5
  64. package/dist/cli/{settings-GTABNW5O.mjs → settings-IYSP5GKF.mjs} +7 -7
  65. package/dist/cli/{settings-LVW2YBSI.js → settings-QUPYXEFE.js} +74 -74
  66. package/dist/cli/{setup-7I5ROB6J.js → setup-33FAUBBY.js} +41 -41
  67. package/dist/cli/{setup-WBWOV3LQ.mjs → setup-6AIDWIE5.mjs} +6 -6
  68. package/dist/cli/skills-VOZR6NYH.js +28 -0
  69. package/dist/cli/{skills-HTJERGGP.mjs → skills-WQI5O2YD.mjs} +4 -4
  70. package/dist/cli/{tools-EHPNO6JC.mjs → tools-JRII45GV.mjs} +6 -6
  71. package/dist/cli/tools-NRW7RTA2.js +40 -0
  72. package/dist/cli/{update-EEXWKAD2.mjs → update-GSWO4TJZ.mjs} +6 -6
  73. package/dist/cli/update-IKYKBHCM.js +28 -0
  74. package/dist/cli/{workflow-UBZDFKTY.js → workflow-HTFJ4KF7.js} +15 -15
  75. package/dist/cli/{workflow-FWYWFUCN.mjs → workflow-RDDDDQEH.mjs} +5 -5
  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
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkAFCHR4YFjs = require('./chunk-AFCHR4YF.js');
5
+ var _chunkXPJKXSQSjs = require('./chunk-XPJKXSQS.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 _chunkSOV673GHjs = require('./chunk-SOV673GH.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 _chunkSOV673GHjs.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 = _chunkSOV673GHjs.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 `${_chunkSOV673GHjs.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 `${_chunkSOV673GHjs.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 _chunkSOV673GHjs.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[_chunkSOV673GHjs.HOST_URL_ENV] ? { [_chunkSOV673GHjs.HOST_URL_ENV]: values[_chunkSOV673GHjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunkSOV673GHjs.API_KEY_ENV] ? { [_chunkSOV673GHjs.API_KEY_ENV]: values[_chunkSOV673GHjs.API_KEY_ENV] } : {},
189
+ ...values[_chunkSOV673GHjs.ACTIVE_ORG_ID_ENV] ? { [_chunkSOV673GHjs.ACTIVE_ORG_ID_ENV]: values[_chunkSOV673GHjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunkSOV673GHjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkSOV673GHjs.ACTIVE_ORG_NAME_ENV]: values[_chunkSOV673GHjs.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, _chunkSOV673GHjs.FEATURES_ENV) ? { [_chunkSOV673GHjs.FEATURES_ENV]: values[_chunkSOV673GHjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunk3Z4P6FTTjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunkSOV673GHjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunk3Z4P6FTTjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunkSOV673GHjs.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
+ [_chunkSOV673GHjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunkSOV673GHjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunkSOV673GHjs.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/${_chunkSOV673GHjs.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": _chunkSOV673GHjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunkSOV673GHjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunkSOV673GHjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunkSOV673GHjs.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" ? _chunkSOV673GHjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkSOV673GHjs.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 = _chunkSOV673GHjs.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
+ [_chunkSOV673GHjs.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" && _chunkSOV673GHjs.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) _chunkXPJKXSQSjs.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
+ [_chunkSOV673GHjs.HOST_URL_ENV]: baseUrl,
473
+ [_chunkSOV673GHjs.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 = _chunkSOV673GHjs.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" ? _chunkSOV673GHjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkSOV673GHjs.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
+ [_chunkSOV673GHjs.HOST_URL_ENV]: baseUrl,
563
+ [_chunkSOV673GHjs.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 = _chunkSOV673GHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
588
+ const apiKey = _chunkSOV673GHjs.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 = _chunkSOV673GHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
612
612
  const reveal = args.includes("--reveal");
613
- const jsonOutput = _chunkAFCHR4YFjs.argsWantJson.call(void 0, args);
613
+ const jsonOutput = _chunkXPJKXSQSjs.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" ? _chunkSOV673GHjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkSOV673GHjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkSOV673GHjs.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
+ _chunkXPJKXSQSjs.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
+ _chunkXPJKXSQSjs.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
+ _chunkXPJKXSQSjs.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, () => ( (_chunkSOV673GHjs.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
+ [_chunkSOV673GHjs.HOST_URL_ENV]: baseUrl,
771
+ [_chunkSOV673GHjs.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 = _chunkSOV673GHjs.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" || _chunkSOV673GHjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
785
+ saveEnvValues(_chunkSOV673GHjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
786
786
  }
787
- _chunkAFCHR4YFjs.printCommandEnvelope.call(void 0,
787
+ _chunkXPJKXSQSjs.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
+ ..._chunkSOV673GHjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
791
+ command_context: _chunkSOV673GHjs.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 _chunkSOV673GHjs = require('./chunk-SOV673GH.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, _chunkSOV673GHjs.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, _chunkSOV673GHjs.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, _chunkSOV673GHjs.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
+ [_chunkSOV673GHjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
+ ...receivers ? { [_chunkSOV673GHjs.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 { [_chunkSOV673GHjs.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 = _chunkSOV673GHjs.resolveConfig.call(void 0, options);
3221
+ this.http = new (0, _chunkSOV673GHjs.HttpClient)(this.config);
3222
3222
  this.toolCalls = new ToolCalls(
3223
3223
  this.http,
3224
3224
  this.config.timeout,
@@ -21,7 +21,7 @@ import {
21
21
  RETAINED_PIPELINE_RECEIVERS_HEADER,
22
22
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
23
23
  resolveConfig
24
- } from "./chunk-4LE4OXXN.mjs";
24
+ } from "./chunk-4GSECA4G.mjs";
25
25
  import {
26
26
  DeeplineError,
27
27
  TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
@@ -13,7 +13,7 @@ import {
13
13
  observedMaxText,
14
14
  recentSearchRef,
15
15
  registerDeprecatedSearchCommand
16
- } from "./chunk-JF3R6BNL.mjs";
16
+ } from "./chunk-QX473E5P.mjs";
17
17
  import {
18
18
  DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS,
19
19
  EMAIL_STATUS_JSON_SCHEMA,
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  DeeplineClient,
34
34
  validateExecutionIdempotencyKey
35
- } from "./chunk-NTBOTP6U.mjs";
35
+ } from "./chunk-7TGFUXT3.mjs";
36
36
  import {
37
37
  beginToolExecuteCommand,
38
38
  getToolExecuteInvocationId,
@@ -46,11 +46,11 @@ import {
46
46
  printJsonError,
47
47
  renderCommandEnvelopeText,
48
48
  shouldEmitJson
49
- } from "./chunk-NGDV6VG6.mjs";
49
+ } from "./chunk-JV3I3SPK.mjs";
50
50
  import {
51
51
  resolveConfig,
52
52
  sdkCliStateDirPath
53
- } from "./chunk-4LE4OXXN.mjs";
53
+ } from "./chunk-4GSECA4G.mjs";
54
54
  import {
55
55
  DeeplineError
56
56
  } from "./chunk-NXGCO4JB.mjs";
@@ -1112,7 +1112,7 @@ Examples:
1112
1112
  process.exitCode = await narrowView();
1113
1113
  return;
1114
1114
  }
1115
- const { describeAnything } = await import("./describe-BTXARLAZ.mjs");
1115
+ const { describeAnything } = await import("./describe-EQWRAHDB.mjs");
1116
1116
  process.exitCode = await describeAnything(
1117
1117
  toolId,
1118
1118
  {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-KB455XET.mjs";
4
+ } from "./chunk-IWP4FVK6.mjs";
5
5
  import {
6
6
  resolveShellSpawn,
7
7
  runSkillsCommand
8
- } from "./chunk-NGHN37LZ.mjs";
8
+ } from "./chunk-LDTDN3RX.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-NGDV6VG6.mjs";
11
+ } from "./chunk-JV3I3SPK.mjs";
12
12
  import {
13
13
  autoDetectBaseUrl
14
- } from "./chunk-4LE4OXXN.mjs";
14
+ } from "./chunk-4GSECA4G.mjs";
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  import { spawn, spawnSync } from "child_process";
@@ -1,14 +1,14 @@
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 _chunkGMVSUWPPjs = require('./chunk-GMVSUWPP.js');
3
+ var _chunk6XWYHSKEjs = require('./chunk-6XWYHSKE.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkAFCHR4YFjs = require('./chunk-AFCHR4YF.js');
7
+ var _chunkXPJKXSQSjs = require('./chunk-XPJKXSQS.js');
8
8
 
9
9
 
10
10
 
11
- var _chunk3Z4P6FTTjs = require('./chunk-3Z4P6FTT.js');
11
+ var _chunkSOV673GHjs = require('./chunk-SOV673GH.js');
12
12
 
13
13
  // src/cli/commands/search.ts
14
14
  var _commander = require('commander');
@@ -18,7 +18,7 @@ var _fs = require('fs');
18
18
  var _path = require('path');
19
19
  var SEARCH_REF_TTL_MS = 15 * 6e4;
20
20
  function lastSearchPath() {
21
- return _path.join.call(void 0, _chunk3Z4P6FTTjs.sdkCliStateDirPath.call(void 0, _chunk3Z4P6FTTjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
21
+ return _path.join.call(void 0, _chunkSOV673GHjs.sdkCliStateDirPath.call(void 0, _chunkSOV673GHjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
22
22
  }
23
23
  function rememberSearchRef(searchRef) {
24
24
  try {
@@ -259,7 +259,7 @@ function searchRow(item) {
259
259
  }
260
260
  function renderSearchResults(result) {
261
261
  if (result.results.length === 0)
262
- return _chunkAFCHR4YFjs.renderCommandEnvelopeText.call(void 0, result);
262
+ return _chunkXPJKXSQSjs.renderCommandEnvelopeText.call(void 0, result);
263
263
  const rows = result.results.map(searchRow);
264
264
  const kinds = new Set(rows.map((row) => row.kind));
265
265
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -283,7 +283,7 @@ function renderSearchResults(result) {
283
283
  actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
284
284
  };
285
285
  const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
286
- ${_chunkAFCHR4YFjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
286
+ ${_chunkXPJKXSQSjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
287
287
  const notes = rows.flatMap(
288
288
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
289
289
  );
@@ -360,7 +360,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
360
360
  console.error(USAGE);
361
361
  return 1;
362
362
  }
363
- const { search_ref: searchRef, ...result } = await new (0, _chunkGMVSUWPPjs.DeeplineClient)().search({
363
+ const { search_ref: searchRef, ...result } = await new (0, _chunk6XWYHSKEjs.DeeplineClient)().search({
364
364
  query,
365
365
  types,
366
366
  exclude,
@@ -374,7 +374,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
374
374
  });
375
375
  if (searchRef) rememberSearchRef(searchRef);
376
376
  pointAtDescribe(result);
377
- _chunkAFCHR4YFjs.printCommandEnvelope.call(void 0, result, {
377
+ _chunkXPJKXSQSjs.printCommandEnvelope.call(void 0, result, {
378
378
  json: options.json === true,
379
379
  text: renderSearchResults(result)
380
380
  });
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.383",
52
+ version: "0.3.384",
53
53
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
54
54
  packageCapabilities: {
55
55
  updatePreferences: 1
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-NGDV6VG6.mjs";
5
+ } from "./chunk-JV3I3SPK.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -25,7 +25,7 @@ import {
25
25
  saveHostEnvValues,
26
26
  saveProjectDeeplineEnvValues,
27
27
  storedHostApiKey
28
- } from "./chunk-4LE4OXXN.mjs";
28
+ } from "./chunk-4GSECA4G.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {
@@ -1,10 +1,10 @@
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
3
 
4
- var _chunkAFCHR4YFjs = require('./chunk-AFCHR4YF.js');
4
+ var _chunkXPJKXSQSjs = require('./chunk-XPJKXSQS.js');
5
5
 
6
6
 
7
- var _chunk3Z4P6FTTjs = require('./chunk-3Z4P6FTT.js');
7
+ var _chunkSOV673GHjs = require('./chunk-SOV673GH.js');
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
 
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
139
139
  const newestFirst = listSessionFiles(agent).sort(
140
140
  (a, b) => b.mtimeMs - a.mtimeMs
141
141
  );
142
- const sessionId = _chunk3Z4P6FTTjs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunkSOV673GHjs.agentSessionIdFromEnvironment.call(void 0, );
143
143
  const cwd = process.cwd();
144
144
  return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
145
145
  (candidate) => sessionStartedInDirectory(candidate, cwd)
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
448
448
  return { encodedContent: encoded, needsChunking: true };
449
449
  }
450
450
  async function uploadPayload(path, payload) {
451
- const { http } = _chunkAFCHR4YFjs.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunkXPJKXSQSjs.getAuthedHttpClient.call(void 0, );
452
452
  return await http.post(path, payload);
453
453
  }
454
454
  async function uploadChunkedSessions(sessions, options) {
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
481
481
  ...options.rating ? { rating: options.rating } : {}
482
482
  });
483
483
  const sessionIds = sessions.map((session) => session.sessionId);
484
- _chunkAFCHR4YFjs.printCommandEnvelope.call(void 0,
484
+ _chunkXPJKXSQSjs.printCommandEnvelope.call(void 0,
485
485
  {
486
486
  ...response,
487
487
  ok: true,
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
513
513
  filename: _path.basename.call(void 0, filePath),
514
514
  ...rating ? { rating } : {}
515
515
  });
516
- _chunkAFCHR4YFjs.printCommandEnvelope.call(void 0,
516
+ _chunkXPJKXSQSjs.printCommandEnvelope.call(void 0,
517
517
  {
518
518
  ...response2,
519
519
  ok: true,
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
563
563
  ...rating ? { rating } : {}
564
564
  });
565
565
  const sessionIds = built.map((session) => session.sessionId);
566
- _chunkAFCHR4YFjs.printCommandEnvelope.call(void 0,
566
+ _chunkXPJKXSQSjs.printCommandEnvelope.call(void 0,
567
567
  {
568
568
  ...response,
569
569
  ok: true,
@@ -671,7 +671,7 @@ ${refreshMeta}
671
671
  </body>
672
672
  </html>`;
673
673
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
674
- _chunkAFCHR4YFjs.printCommandEnvelope.call(void 0,
674
+ _chunkXPJKXSQSjs.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-NGDV6VG6.mjs";
4
+ } from "./chunk-JV3I3SPK.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-4LE4OXXN.mjs";
7
+ } from "./chunk-4GSECA4G.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-NGHN37LZ.mjs";
3
+ } from "./chunk-LDTDN3RX.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-4LE4OXXN.mjs";
6
+ } from "./chunk-4GSECA4G.mjs";
7
7
  import {
8
8
  DeeplineError
9
9
  } from "./chunk-NXGCO4JB.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GAMFK2ZP.mjs";
4
4
  import {
5
5
  printCommandEnvelope
6
- } from "./chunk-NGDV6VG6.mjs";
6
+ } from "./chunk-JV3I3SPK.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -22,7 +22,7 @@ import {
22
22
  sdkCliStateDirPath,
23
23
  skillsAgentPathSegment,
24
24
  writeSdkSkillsLocalVersion
25
- } from "./chunk-4LE4OXXN.mjs";
25
+ } from "./chunk-4GSECA4G.mjs";
26
26
  import {
27
27
  DeeplineError
28
28
  } from "./chunk-NXGCO4JB.mjs";
@@ -605,6 +605,7 @@ function buildEnvironmentContext() {
605
605
  }
606
606
  function failureReportHeaders(apiKey) {
607
607
  return {
608
+ ...deploymentProtectionHeaders(),
608
609
  Authorization: `Bearer ${apiKey}`,
609
610
  "Content-Type": "application/json",
610
611
  "User-Agent": `deepline-ts-sdk/${SDK_VERSION}`,