deepline 0.3.376 → 0.3.377

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 (92) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/{auth-MLCDUTJY.mjs → auth-3SJMD5GS.mjs} +4 -4
  3. package/dist/cli/auth-C54HQ3XR.js +35 -0
  4. package/dist/cli/{billing-IONI4V7P.js → billing-IN4CGRX5.js} +73 -73
  5. package/dist/cli/{billing-OUGNDBL4.mjs → billing-N4PYTCSM.mjs} +4 -4
  6. package/dist/cli/{chunk-7LX2G2PU.mjs → chunk-3H5U7XCU.mjs} +1 -1
  7. package/dist/cli/{chunk-6EYTKUDI.js → chunk-4T62V4WC.js} +2 -2
  8. package/dist/cli/{chunk-VNBAOWN3.mjs → chunk-7EEPWHRK.mjs} +6 -6
  9. package/dist/cli/{chunk-H7SLESX6.mjs → chunk-ATK45XHI.mjs} +1 -1
  10. package/dist/cli/{chunk-Y4MXBE3V.js → chunk-BBONZ7CN.js} +8 -8
  11. package/dist/cli/{chunk-Y5W5IIA4.js → chunk-CEUIAIUI.js} +57 -57
  12. package/dist/cli/{chunk-GMRWUGXB.mjs → chunk-CUKV3EXY.mjs} +3 -3
  13. package/dist/cli/{chunk-47X6MQ7J.js → chunk-D3GRDNJO.js} +60 -60
  14. package/dist/cli/{chunk-V7ZREPSD.mjs → chunk-DW7BDVZY.mjs} +4 -4
  15. package/dist/cli/{chunk-SPZNLE2D.mjs → chunk-FVFKLSMD.mjs} +2 -2
  16. package/dist/cli/{chunk-ETUV6RRK.js → chunk-GPM3AZXB.js} +9 -9
  17. package/dist/cli/{chunk-34KUUN3Z.js → chunk-HYMVGRZP.js} +50 -50
  18. package/dist/cli/{chunk-4V2Q3JO6.js → chunk-IHXLIPY3.js} +15 -15
  19. package/dist/cli/{chunk-HDB4GAWY.mjs → chunk-JMDMPIGV.mjs} +1 -1
  20. package/dist/cli/{chunk-KHZ6WEVF.js → chunk-KHZQCKZ6.js} +26 -26
  21. package/dist/cli/{chunk-7ZZSGV4A.js → chunk-LJCC26EK.js} +1 -1
  22. package/dist/cli/{chunk-VL5ERG22.mjs → chunk-M2RT2YVB.mjs} +2 -2
  23. package/dist/cli/{chunk-L6OSOKS6.mjs → chunk-MDMP2VS2.mjs} +12 -8
  24. package/dist/cli/{chunk-5HJHTZI6.mjs → chunk-OEVLOA6Y.mjs} +1 -1
  25. package/dist/cli/{chunk-ZXFGA2VK.js → chunk-ON7BSEMT.js} +8 -8
  26. package/dist/cli/{chunk-YXQ7SRL3.mjs → chunk-OWJRRGZH.mjs} +2 -2
  27. package/dist/cli/{chunk-MHRDXS7J.mjs → chunk-SHPLCIOL.mjs} +1 -1
  28. package/dist/cli/{chunk-QSH5CHRI.js → chunk-SQPNP3IQ.js} +6 -6
  29. package/dist/cli/{chunk-UE2UHYT3.mjs → chunk-VB6KECLU.mjs} +57 -6
  30. package/dist/cli/{chunk-UABI2T3Z.mjs → chunk-VD6KRRST.mjs} +2 -2
  31. package/dist/cli/{chunk-5HDB7XXT.js → chunk-VEUTINSL.js} +240 -236
  32. package/dist/cli/{chunk-N6KIEYZV.js → chunk-Y72FFPX5.js} +4 -4
  33. package/dist/cli/{chunk-A6ZTYKYF.js → chunk-ZMVJSS6N.js} +63 -12
  34. package/dist/cli/{csv-NITSP7QJ.mjs → csv-747TCRJS.mjs} +3 -3
  35. package/dist/cli/{csv-LPC7BGZ2.js → csv-JHBQL7PV.js} +12 -12
  36. package/dist/cli/{db-JVDYEXNC.mjs → db-42NBKURO.mjs} +4 -4
  37. package/dist/cli/{db-WGD54UKM.js → db-FGCCQJ64.js} +29 -29
  38. package/dist/cli/{describe-SVMLA6SN.mjs → describe-E6WVN74T.mjs} +11 -9
  39. package/dist/cli/{describe-GA7LSJRY.js → describe-PJYBUSVL.js} +30 -28
  40. package/dist/cli/{executions-P47HEI4N.js → executions-5P5ZJCRJ.js} +6 -6
  41. package/dist/cli/{executions-CXBJDGMU.mjs → executions-UF7KP7B6.mjs} +4 -4
  42. package/dist/cli/{feedback-34OSXUQ2.mjs → feedback-BFXXUVXK.mjs} +3 -3
  43. package/dist/cli/{feedback-GWKWE5CU.js → feedback-S43D42JP.js} +7 -7
  44. package/dist/cli/git-C6PRTVHM.js +23 -0
  45. package/dist/cli/{git-YAROF6D3.mjs → git-TNNTQ5IJ.mjs} +4 -4
  46. package/dist/cli/index.js +82 -82
  47. package/dist/cli/index.mjs +32 -32
  48. package/dist/cli/{legacy-noops-2G55OKIU.mjs → legacy-noops-3ZEHUFE4.mjs} +4 -4
  49. package/dist/cli/{legacy-noops-MDZQL3QH.js → legacy-noops-SYWQBRUI.js} +7 -7
  50. package/dist/cli/{monitors-KUGKMABN.mjs → monitors-DAU53OC5.mjs} +4 -4
  51. package/dist/cli/{monitors-X7QYWFSP.js → monitors-GTBPXIN7.js} +85 -85
  52. package/dist/cli/{org-CNBBAN4W.mjs → org-4TGDZ2ZL.mjs} +4 -4
  53. package/dist/cli/{org-6XL3IBT2.js → org-G77WDHXX.js} +64 -64
  54. package/dist/cli/play-LNKMZFTI.js +155 -0
  55. package/dist/cli/{play-33ZMPAR5.mjs → play-OZV6FDMR.mjs} +8 -8
  56. package/dist/cli/{providers-3OSQNFPE.mjs → providers-FPTHZSZH.mjs} +4 -4
  57. package/dist/cli/{providers-5POAURDT.js → providers-GHS5B4FX.js} +7 -7
  58. package/dist/cli/{quickstart-QICTOOW6.mjs → quickstart-ADJZVPQR.mjs} +3 -3
  59. package/dist/cli/{quickstart-LQGPDJTS.js → quickstart-TGO5N665.js} +5 -5
  60. package/dist/cli/{search-HBIX4SF4.mjs → search-B7BRMMFR.mjs} +5 -5
  61. package/dist/cli/search-L6K36YWC.js +26 -0
  62. package/dist/cli/{secrets-6MRGZPHT.mjs → secrets-A4UK4TMU.mjs} +4 -4
  63. package/dist/cli/{secrets-QKPBNQ3E.js → secrets-FDREPCLL.js} +13 -13
  64. package/dist/cli/{sessions-NODY2OW4.mjs → sessions-2UJPBSAV.mjs} +4 -4
  65. package/dist/cli/{sessions-NP7BLZD2.js → sessions-KQSHUEEV.js} +5 -5
  66. package/dist/cli/{settings-JCEIOTNL.mjs → settings-BZ5JTH67.mjs} +7 -7
  67. package/dist/cli/{settings-42QHXUB2.js → settings-XZSSJUSS.js} +74 -74
  68. package/dist/cli/{setup-3QR4RGMG.mjs → setup-DIQPCI6O.mjs} +6 -6
  69. package/dist/cli/{setup-5XXWP54Y.js → setup-GQO2XQLS.js} +41 -41
  70. package/dist/cli/{skills-U4OMXLNS.mjs → skills-6ZJBKK6M.mjs} +4 -4
  71. package/dist/cli/skills-VSIYWK7T.js +28 -0
  72. package/dist/cli/tools-L7A6ITNQ.js +40 -0
  73. package/dist/cli/{tools-45OROEZQ.mjs → tools-NKGWJUGR.mjs} +7 -7
  74. package/dist/cli/{update-2XCRMJ4R.mjs → update-I3H7FXIF.mjs} +6 -6
  75. package/dist/cli/update-IP3GCUVX.js +28 -0
  76. package/dist/cli/{workflow-47P4LQNC.js → workflow-J3FZEW4S.js} +15 -15
  77. package/dist/cli/{workflow-7X3GCOPY.mjs → workflow-XFRG5G5H.mjs} +5 -5
  78. package/dist/index.js +6 -6
  79. package/dist/index.mjs +3 -3
  80. package/dist/install-integrity.json +74 -74
  81. package/dist/release.d.mts +1 -1
  82. package/dist/release.d.ts +1 -1
  83. package/dist/release.js +2 -2
  84. package/dist/release.mjs +1 -1
  85. package/package.json +1 -1
  86. package/dist/cli/auth-BTFXJQLT.js +0 -35
  87. package/dist/cli/git-MIPISCON.js +0 -23
  88. package/dist/cli/play-3CM3P2DS.js +0 -155
  89. package/dist/cli/search-A2YLJ4I5.js +0 -26
  90. package/dist/cli/skills-4JJEAA66.js +0 -28
  91. package/dist/cli/tools-FDCFSA7W.js +0 -40
  92. package/dist/cli/update-VYL4TXIE.js +0 -28
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
5
+ var _chunkSQPNP3IQjs = require('./chunk-SQPNP3IQ.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkN6KIEYZVjs = require('./chunk-N6KIEYZV.js');
28
+ var _chunkY72FFPX5js = require('./chunk-Y72FFPX5.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 _chunkN6KIEYZVjs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunkY72FFPX5js.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 = _chunkN6KIEYZVjs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunkY72FFPX5js.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 `${_chunkN6KIEYZVjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunkY72FFPX5js.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkN6KIEYZVjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunkY72FFPX5js.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 _chunkN6KIEYZVjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunkY72FFPX5js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkN6KIEYZVjs.HOST_URL_ENV] ? { [_chunkN6KIEYZVjs.HOST_URL_ENV]: values[_chunkN6KIEYZVjs.HOST_URL_ENV] } : {},
188
- ...values[_chunkN6KIEYZVjs.API_KEY_ENV] ? { [_chunkN6KIEYZVjs.API_KEY_ENV]: values[_chunkN6KIEYZVjs.API_KEY_ENV] } : {},
189
- ...values[_chunkN6KIEYZVjs.ACTIVE_ORG_ID_ENV] ? { [_chunkN6KIEYZVjs.ACTIVE_ORG_ID_ENV]: values[_chunkN6KIEYZVjs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkN6KIEYZVjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkN6KIEYZVjs.ACTIVE_ORG_NAME_ENV]: values[_chunkN6KIEYZVjs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunkY72FFPX5js.HOST_URL_ENV] ? { [_chunkY72FFPX5js.HOST_URL_ENV]: values[_chunkY72FFPX5js.HOST_URL_ENV] } : {},
188
+ ...values[_chunkY72FFPX5js.API_KEY_ENV] ? { [_chunkY72FFPX5js.API_KEY_ENV]: values[_chunkY72FFPX5js.API_KEY_ENV] } : {},
189
+ ...values[_chunkY72FFPX5js.ACTIVE_ORG_ID_ENV] ? { [_chunkY72FFPX5js.ACTIVE_ORG_ID_ENV]: values[_chunkY72FFPX5js.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunkY72FFPX5js.ACTIVE_ORG_NAME_ENV) ? { [_chunkY72FFPX5js.ACTIVE_ORG_NAME_ENV]: values[_chunkY72FFPX5js.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, _chunkN6KIEYZVjs.FEATURES_ENV) ? { [_chunkN6KIEYZVjs.FEATURES_ENV]: values[_chunkN6KIEYZVjs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunkY72FFPX5js.FEATURES_ENV) ? { [_chunkY72FFPX5js.FEATURES_ENV]: values[_chunkY72FFPX5js.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkN6KIEYZVjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunkY72FFPX5js.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkN6KIEYZVjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunkY72FFPX5js.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
- [_chunkN6KIEYZVjs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkN6KIEYZVjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkN6KIEYZVjs.featureEnvValues.call(void 0, data)
205
+ [_chunkY72FFPX5js.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunkY72FFPX5js.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunkY72FFPX5js.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/${_chunkN6KIEYZVjs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunkY72FFPX5js.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkN6KIEYZVjs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkN6KIEYZVjs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkN6KIEYZVjs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkN6KIEYZVjs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunkY72FFPX5js.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunkY72FFPX5js.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunkY72FFPX5js.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunkY72FFPX5js.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" ? _chunkN6KIEYZVjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkN6KIEYZVjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
257
+ const apiKey = input.authScope === "folder" ? _chunkY72FFPX5js.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkY72FFPX5js.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 = _chunkN6KIEYZVjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
354
+ const baseUrl = _chunkY72FFPX5js.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
- [_chunkN6KIEYZVjs.HOST_URL_ENV]: baseUrl
409
+ [_chunkY72FFPX5js.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" && _chunkN6KIEYZVjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
416
+ const shouldOpen = waitMode !== "no" && _chunkY72FFPX5js.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) _chunkQSH5CHRIjs.openInBrowser.call(void 0, claimUrl);
421
+ if (shouldOpen) _chunkSQPNP3IQjs.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
- [_chunkN6KIEYZVjs.HOST_URL_ENV]: baseUrl,
465
- [_chunkN6KIEYZVjs.API_KEY_ENV]: apiKey,
464
+ [_chunkY72FFPX5js.HOST_URL_ENV]: baseUrl,
465
+ [_chunkY72FFPX5js.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 = _chunkN6KIEYZVjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
487
+ const baseUrl = _chunkY72FFPX5js.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" ? _chunkN6KIEYZVjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkN6KIEYZVjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
511
+ const scopedApiKey = authScope === "folder" ? _chunkY72FFPX5js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkY72FFPX5js.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
- [_chunkN6KIEYZVjs.HOST_URL_ENV]: baseUrl,
555
- [_chunkN6KIEYZVjs.API_KEY_ENV]: apiKey,
554
+ [_chunkY72FFPX5js.HOST_URL_ENV]: baseUrl,
555
+ [_chunkY72FFPX5js.API_KEY_ENV]: apiKey,
556
556
  ...activeOrgEnvValues(data)
557
557
  },
558
558
  baseUrl,
@@ -576,8 +576,8 @@ async function handleWait(args) {
576
576
  return EXIT_AUTH;
577
577
  }
578
578
  async function authStatusLine(timeoutMs = 3e3) {
579
- const baseUrl = _chunkN6KIEYZVjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
- const apiKey = _chunkN6KIEYZVjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
579
+ const baseUrl = _chunkY72FFPX5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
+ const apiKey = _chunkY72FFPX5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
581
581
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
582
582
  try {
583
583
  const { status, data } = await httpJson(
@@ -600,9 +600,9 @@ async function authStatusLine(timeoutMs = 3e3) {
600
600
  }
601
601
  }
602
602
  async function handleStatus(args) {
603
- const baseUrl = _chunkN6KIEYZVjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
603
+ const baseUrl = _chunkY72FFPX5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
604
604
  const reveal = args.includes("--reveal");
605
- const jsonOutput = _chunkQSH5CHRIjs.argsWantJson.call(void 0, args);
605
+ const jsonOutput = _chunkSQPNP3IQjs.argsWantJson.call(void 0, args);
606
606
  const hasExplicitAuthScope = args.includes("--auth-scope");
607
607
  let authScope = null;
608
608
  if (hasExplicitAuthScope) {
@@ -642,14 +642,14 @@ async function handleStatus(args) {
642
642
  };
643
643
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
644
644
  }
645
- const apiKey = authScope === "folder" ? _chunkN6KIEYZVjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkN6KIEYZVjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkN6KIEYZVjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
645
+ const apiKey = authScope === "folder" ? _chunkY72FFPX5js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkY72FFPX5js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkY72FFPX5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
646
646
  if (!apiKey) {
647
647
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
648
648
  baseUrl,
649
649
  _nullishCoalesce(authScope, () => ( void 0))
650
650
  );
651
651
  if (pendingClaim) {
652
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
652
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
653
653
  {
654
654
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
655
655
  status: "pending",
@@ -670,7 +670,7 @@ async function handleStatus(args) {
670
670
  );
671
671
  return EXIT_OK;
672
672
  }
673
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
673
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
674
674
  {
675
675
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
676
676
  status: "not connected",
@@ -703,7 +703,7 @@ async function handleStatus(args) {
703
703
  }
704
704
  );
705
705
  if (status === 401 || status === 403) {
706
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
706
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
707
707
  {
708
708
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
709
709
  status: "unauthorized",
@@ -730,7 +730,7 @@ async function handleStatus(args) {
730
730
  console.error(`Auth status error (status ${status}).`);
731
731
  return EXIT_SERVER;
732
732
  }
733
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkN6KIEYZVjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
733
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkY72FFPX5js.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
734
734
  clearSatisfiedPendingClaim(
735
735
  baseUrl,
736
736
  resolvedAuthScope,
@@ -758,28 +758,28 @@ async function handleStatus(args) {
758
758
  if (apiKeyResp) {
759
759
  saveEnvValues(
760
760
  {
761
- [_chunkN6KIEYZVjs.HOST_URL_ENV]: baseUrl,
762
- [_chunkN6KIEYZVjs.API_KEY_ENV]: apiKeyResp,
761
+ [_chunkY72FFPX5js.HOST_URL_ENV]: baseUrl,
762
+ [_chunkY72FFPX5js.API_KEY_ENV]: apiKeyResp,
763
763
  ...activeOrgEnvValues(data)
764
764
  },
765
765
  baseUrl,
766
766
  resolvedAuthScope
767
767
  );
768
768
  if (resolvedAuthScope === "folder") {
769
- const target = _chunkN6KIEYZVjs.resolveProjectPinTarget.call(void 0, );
769
+ const target = _chunkY72FFPX5js.resolveProjectPinTarget.call(void 0, );
770
770
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
771
771
  } else {
772
772
  savedApiKeyPath = envFilePath(baseUrl);
773
773
  }
774
774
  }
775
- } else if (resolvedAuthScope === "folder" || _chunkN6KIEYZVjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
776
- saveEnvValues(_chunkN6KIEYZVjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
775
+ } else if (resolvedAuthScope === "folder" || _chunkY72FFPX5js.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
776
+ saveEnvValues(_chunkY72FFPX5js.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
777
777
  }
778
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
778
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
779
779
  {
780
780
  ...payload,
781
- ..._chunkN6KIEYZVjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
782
- command_context: _chunkN6KIEYZVjs.resolveCliCommandContext.call(void 0,
781
+ ..._chunkY72FFPX5js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
782
+ command_context: _chunkY72FFPX5js.resolveCliCommandContext.call(void 0,
783
783
  { baseUrl, apiKey },
784
784
  resolvedAuthScope
785
785
  )
@@ -1,17 +1,17 @@
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 _chunk6EYTKUDIjs = require('./chunk-6EYTKUDI.js');
4
+ var _chunk4T62V4WCjs = require('./chunk-4T62V4WC.js');
5
5
 
6
6
 
7
7
 
8
- var _chunk47X6MQ7Jjs = require('./chunk-47X6MQ7J.js');
8
+ var _chunkD3GRDNJOjs = require('./chunk-D3GRDNJO.js');
9
9
 
10
10
 
11
- var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
11
+ var _chunkSQPNP3IQjs = require('./chunk-SQPNP3IQ.js');
12
12
 
13
13
 
14
- var _chunkN6KIEYZVjs = require('./chunk-N6KIEYZV.js');
14
+ var _chunkY72FFPX5js = require('./chunk-Y72FFPX5.js');
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  var _child_process = require('child_process');
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
489
489
  }
490
490
  function resolveNpmGlobalPrefix(env) {
491
491
  try {
492
- const plan = _chunk47X6MQ7Jjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
492
+ const plan = _chunkD3GRDNJOjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
493
493
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
494
494
  encoding: "utf8",
495
495
  env,
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
545
545
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
546
546
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
547
547
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
548
- const npmVersion = options.npmVersion === void 0 ? _chunk6EYTKUDIjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
- const npmGlobalInstallFlags = _chunk6EYTKUDIjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
548
+ const npmVersion = options.npmVersion === void 0 ? _chunk4T62V4WCjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
+ const npmGlobalInstallFlags = _chunk4T62V4WCjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
550
550
  const args = installPrefix ? [
551
551
  "install",
552
552
  "-g",
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
556
556
  packageSpec
557
557
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
558
558
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
559
- _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkN6KIEYZVjs.autoDetectBaseUrl.call(void 0, )
559
+ _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkY72FFPX5js.autoDetectBaseUrl.call(void 0, )
560
560
  );
561
561
  return {
562
562
  kind: "npm-global",
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
703
703
  function runCommand(command, args, env = process.env) {
704
704
  return new Promise((resolveResult) => {
705
705
  let output = "";
706
- const plan = _chunk47X6MQ7Jjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
706
+ const plan = _chunkD3GRDNJOjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
707
707
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
708
708
  stdio: ["inherit", "pipe", "pipe"],
709
709
  shell: plan.shell,
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1079
1079
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1080
1080
  }
1081
1081
  async function runUpdateCommand(options, dependencies = {}) {
1082
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkN6KIEYZVjs.autoDetectBaseUrl));
1082
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkY72FFPX5js.autoDetectBaseUrl));
1083
1083
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1084
1084
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1085
1085
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1086
1086
  const originalWrite = process.stdout.write.bind(process.stdout);
1087
1087
  process.stdout.write = (() => true);
1088
1088
  try {
1089
- const exitCode = await _chunk47X6MQ7Jjs.runSkillsCommand.call(void 0, { json: true });
1089
+ const exitCode = await _chunkD3GRDNJOjs.runSkillsCommand.call(void 0, { json: true });
1090
1090
  if (exitCode !== 0) {
1091
1091
  throw new Error(
1092
1092
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1157
1157
  ]
1158
1158
  };
1159
1159
  if (options.json && !options.executeWithJson) {
1160
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1160
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1161
1161
  return 0;
1162
1162
  }
1163
1163
  if (options.printCommand) {
1164
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
1164
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
1165
1165
  {
1166
1166
  ...plan,
1167
1167
  render: {
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1174
1174
  return 0;
1175
1175
  }
1176
1176
  if (plan.kind === "source" || plan.kind === "homebrew") {
1177
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1177
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1178
1178
  return 0;
1179
1179
  }
1180
1180
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills
1204
1204
  );
1205
1205
  }
1206
1206
  if (options.executeWithJson && options.json) {
1207
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
1207
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
1208
1208
  {
1209
1209
  ok: true,
1210
1210
  pinnedVersion
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-NXGCO4JB.mjs";
15
15
  import {
16
16
  SDK_RELEASE
17
- } from "./chunk-7LX2G2PU.mjs";
17
+ } from "./chunk-3H5U7XCU.mjs";
18
18
 
19
19
  // src/errors.ts
20
20
  var CustomerDbQueryOutcomeUnknownError = class extends DeeplineError {
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
5
+ var _chunkSQPNP3IQjs = require('./chunk-SQPNP3IQ.js');
6
6
 
7
7
 
8
- var _chunkN6KIEYZVjs = require('./chunk-N6KIEYZV.js');
8
+ var _chunkY72FFPX5js = require('./chunk-Y72FFPX5.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkSQPNP3IQjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
39
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkSQPNP3IQjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
139
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkSQPNP3IQjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
153
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkSQPNP3IQjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkSQPNP3IQjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
200
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkSQPNP3IQjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
227
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkSQPNP3IQjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
254
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkSQPNP3IQjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
269
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkN6KIEYZVjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkY72FFPX5js.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkQSH5CHRIjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkSQPNP3IQjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkSQPNP3IQjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
322
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkSQPNP3IQjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
371
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkSQPNP3IQjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
392
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -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.376",
52
+ version: "0.3.377",
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
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-MHRDXS7J.mjs";
4
+ } from "./chunk-SHPLCIOL.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-HDB4GAWY.mjs";
7
+ } from "./chunk-JMDMPIGV.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {