deepline 0.3.399 → 0.3.400

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 (87) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/worker-resource-metrics.ts +57 -46
  3. package/dist/cli/{auth-QHVIMKL3.mjs → auth-JL76JRJP.mjs} +4 -4
  4. package/dist/cli/auth-TNYZVC73.js +40 -0
  5. package/dist/cli/{billing-O2HRFIPG.js → billing-BPYI4EUH.js} +73 -73
  6. package/dist/cli/{billing-3V4GX5FX.mjs → billing-C6QEIDES.mjs} +4 -4
  7. package/dist/cli/{chunk-BX7ZF5Z7.js → chunk-2H37YDDG.js} +8 -8
  8. package/dist/cli/{chunk-CVTH2VUI.js → chunk-4OPBTEVW.js} +6 -6
  9. package/dist/cli/{chunk-XUHQWWJW.mjs → chunk-6PRUVCMW.mjs} +1 -1
  10. package/dist/cli/{chunk-YADFPKH2.js → chunk-6SRV2NM3.js} +65 -65
  11. package/dist/cli/{chunk-ZPDNT7LJ.mjs → chunk-BENKBQ2J.mjs} +4 -4
  12. package/dist/cli/{chunk-ZNWNAC7E.mjs → chunk-BRMEK6KG.mjs} +3 -3
  13. package/dist/cli/{chunk-AVTJXBXL.mjs → chunk-CKIELGYT.mjs} +5 -5
  14. package/dist/cli/{chunk-VV6EPCDS.mjs → chunk-GCIMQKW4.mjs} +2 -2
  15. package/dist/cli/{chunk-T523SXCK.mjs → chunk-GMMJMFCQ.mjs} +2 -2
  16. package/dist/cli/{chunk-PQB2PTMA.mjs → chunk-GYJSZ6J6.mjs} +2 -2
  17. package/dist/cli/{chunk-Y3MRTY2F.mjs → chunk-H33BWG7S.mjs} +1 -1
  18. package/dist/cli/{chunk-IB6R2SZJ.js → chunk-H7Q6RK5Y.js} +44 -44
  19. package/dist/cli/{chunk-BZZX56J2.js → chunk-IDXATBJB.js} +6 -6
  20. package/dist/cli/{chunk-2S44J5UG.mjs → chunk-III4UASP.mjs} +1 -1
  21. package/dist/cli/{chunk-GT4NODCJ.js → chunk-JIDNO3FI.js} +1 -1
  22. package/dist/cli/{chunk-ZKKXQQWL.js → chunk-O4JZTJEP.js} +8 -8
  23. package/dist/cli/{chunk-CI4Q6UP4.js → chunk-ORQE3XBG.js} +50 -50
  24. package/dist/cli/{chunk-A3T7YPEP.js → chunk-OVYVMPEC.js} +4 -4
  25. package/dist/cli/{chunk-EMNKA5WK.js → chunk-PF3N65JD.js} +2 -2
  26. package/dist/cli/{chunk-EFEMS43P.js → chunk-QUCAOIN7.js} +26 -26
  27. package/dist/cli/{chunk-XES27RSC.mjs → chunk-QZDHNVKF.mjs} +1 -1
  28. package/dist/cli/{chunk-HNHFC3PM.js → chunk-USSWEZNP.js} +15 -15
  29. package/dist/cli/{chunk-DHLYCZWS.mjs → chunk-UYIRTEU6.mjs} +3 -3
  30. package/dist/cli/{chunk-CCH3ZVR5.mjs → chunk-V3T4CHXI.mjs} +1 -1
  31. package/dist/cli/{csv-Z5TYV7XE.mjs → csv-FLNTE5CW.mjs} +3 -3
  32. package/dist/cli/{csv-IDABZWW3.js → csv-NK4QWZNT.js} +12 -12
  33. package/dist/cli/{db-23MIKNVU.mjs → db-CAGTZIVN.mjs} +4 -4
  34. package/dist/cli/{db-4KKNX3Y2.js → db-DU7J3CEM.js} +25 -25
  35. package/dist/cli/{describe-RKZKZ7UR.js → describe-IWQW7OLG.js} +10 -10
  36. package/dist/cli/{describe-XNGCKRPN.mjs → describe-YJHDN5IE.mjs} +6 -6
  37. package/dist/cli/{executions-XUKNAELQ.mjs → executions-CDFAK267.mjs} +4 -4
  38. package/dist/cli/{executions-NTXHTAM6.js → executions-SUKU6I7V.js} +6 -6
  39. package/dist/cli/{feedback-LWJSTHZ2.mjs → feedback-EQKQZTC4.mjs} +3 -3
  40. package/dist/cli/{feedback-6INY66DC.js → feedback-SRPRMYAN.js} +7 -7
  41. package/dist/cli/git-IRCN2ZZY.js +24 -0
  42. package/dist/cli/{git-CRKOKS7B.mjs → git-M555IN55.mjs} +4 -4
  43. package/dist/cli/index.js +89 -89
  44. package/dist/cli/index.mjs +32 -32
  45. package/dist/cli/{legacy-noops-VVQQ7VUO.mjs → legacy-noops-LRNAWLDN.mjs} +4 -4
  46. package/dist/cli/{legacy-noops-LPTMKYC7.js → legacy-noops-M4X6PQFZ.js} +7 -7
  47. package/dist/cli/{monitors-HG6KO4XZ.js → monitors-AOXY55KT.js} +84 -84
  48. package/dist/cli/{monitors-GI2GTZSG.mjs → monitors-IKRE2U3J.mjs} +4 -4
  49. package/dist/cli/{org-L3KNS3OS.js → org-HNFRABMG.js} +64 -64
  50. package/dist/cli/{org-ZYKZP6CE.mjs → org-V5MRHKRO.mjs} +4 -4
  51. package/dist/cli/{play-537TGXWP.js → play-LSGWSQE2.js} +231 -231
  52. package/dist/cli/{play-64VPT37H.mjs → play-Z22R7FWE.mjs} +7 -7
  53. package/dist/cli/{providers-ISRDMPLU.mjs → providers-BJJCETVG.mjs} +4 -4
  54. package/dist/cli/{providers-6DBPDSLU.js → providers-VYVFZR4J.js} +7 -7
  55. package/dist/cli/{quickstart-CACETI7N.mjs → quickstart-EFPCKX32.mjs} +3 -3
  56. package/dist/cli/{quickstart-53Z7F4YI.js → quickstart-UGWUJK67.js} +5 -5
  57. package/dist/cli/{search-ZUOMRAIV.mjs → search-NVPTBYU3.mjs} +5 -5
  58. package/dist/cli/search-V3STUCIN.js +30 -0
  59. package/dist/cli/{secrets-7TPCHJM5.mjs → secrets-4N4LSDKP.mjs} +4 -4
  60. package/dist/cli/{secrets-TOUFAI3P.js → secrets-ENLLOXON.js} +13 -13
  61. package/dist/cli/{sessions-D3HZ2E3P.mjs → sessions-7BKKDN5T.mjs} +4 -4
  62. package/dist/cli/{sessions-7JX2XZSO.js → sessions-PHGZZFBP.js} +5 -5
  63. package/dist/cli/{settings-IZ7FINUA.js → settings-CV2ZCTVK.js} +74 -74
  64. package/dist/cli/{settings-LSFSVH3T.mjs → settings-VWEGOBRP.mjs} +7 -7
  65. package/dist/cli/{setup-FXSH7FIX.js → setup-DEJSO3OM.js} +41 -41
  66. package/dist/cli/{setup-ZF2VX7J5.mjs → setup-KG5HHXZD.mjs} +6 -6
  67. package/dist/cli/{skills-I3ILXJPH.mjs → skills-EKFHOC3V.mjs} +4 -4
  68. package/dist/cli/skills-YEVGRKB6.js +29 -0
  69. package/dist/cli/{tools-GZHXAZBL.js → tools-4RLOPQJK.js} +7 -7
  70. package/dist/cli/{tools-LW7Z2BLN.mjs → tools-4YNU6U4J.mjs} +6 -6
  71. package/dist/cli/update-2RMF5UZD.js +29 -0
  72. package/dist/cli/{update-BOK3AWHY.mjs → update-DE4SJRNA.mjs} +6 -6
  73. package/dist/cli/{workflow-5ZBCCWKH.js → workflow-I7QMPLIW.js} +15 -15
  74. package/dist/cli/{workflow-ZS3FBDO6.mjs → workflow-ODAFYNZA.mjs} +5 -5
  75. package/dist/index.js +6 -6
  76. package/dist/index.mjs +3 -3
  77. package/dist/install-integrity.json +70 -70
  78. package/dist/release.d.mts +1 -1
  79. package/dist/release.d.ts +1 -1
  80. package/dist/release.js +2 -2
  81. package/dist/release.mjs +1 -1
  82. package/package.json +1 -1
  83. package/dist/cli/auth-YYB4S5HO.js +0 -40
  84. package/dist/cli/git-2TH3NROT.js +0 -24
  85. package/dist/cli/search-GAF5BS6N.js +0 -30
  86. package/dist/cli/skills-JT6CP6MI.js +0 -29
  87. package/dist/cli/update-5TD6XRQK.js +0 -29
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkCVTH2VUIjs = require('./chunk-CVTH2VUI.js');
5
+ var _chunk4OPBTEVWjs = require('./chunk-4OPBTEVW.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunkCVTH2VUIjs = require('./chunk-CVTH2VUI.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkA3T7YPEPjs = require('./chunk-A3T7YPEP.js');
28
+ var _chunkOVYVMPECjs = require('./chunk-OVYVMPEC.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 _chunkA3T7YPEPjs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunkOVYVMPECjs.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 = _chunkA3T7YPEPjs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunkOVYVMPECjs.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 `${_chunkA3T7YPEPjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunkOVYVMPECjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkA3T7YPEPjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunkOVYVMPECjs.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 _chunkA3T7YPEPjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunkOVYVMPECjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkA3T7YPEPjs.HOST_URL_ENV] ? { [_chunkA3T7YPEPjs.HOST_URL_ENV]: values[_chunkA3T7YPEPjs.HOST_URL_ENV] } : {},
188
- ...values[_chunkA3T7YPEPjs.API_KEY_ENV] ? { [_chunkA3T7YPEPjs.API_KEY_ENV]: values[_chunkA3T7YPEPjs.API_KEY_ENV] } : {},
189
- ...values[_chunkA3T7YPEPjs.ACTIVE_ORG_ID_ENV] ? { [_chunkA3T7YPEPjs.ACTIVE_ORG_ID_ENV]: values[_chunkA3T7YPEPjs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkA3T7YPEPjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkA3T7YPEPjs.ACTIVE_ORG_NAME_ENV]: values[_chunkA3T7YPEPjs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunkOVYVMPECjs.HOST_URL_ENV] ? { [_chunkOVYVMPECjs.HOST_URL_ENV]: values[_chunkOVYVMPECjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunkOVYVMPECjs.API_KEY_ENV] ? { [_chunkOVYVMPECjs.API_KEY_ENV]: values[_chunkOVYVMPECjs.API_KEY_ENV] } : {},
189
+ ...values[_chunkOVYVMPECjs.ACTIVE_ORG_ID_ENV] ? { [_chunkOVYVMPECjs.ACTIVE_ORG_ID_ENV]: values[_chunkOVYVMPECjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunkOVYVMPECjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkOVYVMPECjs.ACTIVE_ORG_NAME_ENV]: values[_chunkOVYVMPECjs.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, _chunkA3T7YPEPjs.FEATURES_ENV) ? { [_chunkA3T7YPEPjs.FEATURES_ENV]: values[_chunkA3T7YPEPjs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunkOVYVMPECjs.FEATURES_ENV) ? { [_chunkOVYVMPECjs.FEATURES_ENV]: values[_chunkOVYVMPECjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkA3T7YPEPjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunkOVYVMPECjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkA3T7YPEPjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunkOVYVMPECjs.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
- [_chunkA3T7YPEPjs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkA3T7YPEPjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkA3T7YPEPjs.featureEnvValues.call(void 0, data)
205
+ [_chunkOVYVMPECjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunkOVYVMPECjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunkOVYVMPECjs.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/${_chunkA3T7YPEPjs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunkOVYVMPECjs.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkA3T7YPEPjs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkA3T7YPEPjs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkA3T7YPEPjs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkA3T7YPEPjs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunkOVYVMPECjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunkOVYVMPECjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunkOVYVMPECjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunkOVYVMPECjs.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" ? _chunkA3T7YPEPjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkA3T7YPEPjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
265
+ const apiKey = input.authScope === "folder" ? _chunkOVYVMPECjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkOVYVMPECjs.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 = _chunkA3T7YPEPjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
362
+ const baseUrl = _chunkOVYVMPECjs.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
- [_chunkA3T7YPEPjs.HOST_URL_ENV]: baseUrl
417
+ [_chunkOVYVMPECjs.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" && _chunkA3T7YPEPjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
424
+ const shouldOpen = waitMode !== "no" && _chunkOVYVMPECjs.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) _chunkCVTH2VUIjs.openInBrowser.call(void 0, claimUrl);
429
+ if (shouldOpen) _chunk4OPBTEVWjs.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
- [_chunkA3T7YPEPjs.HOST_URL_ENV]: baseUrl,
473
- [_chunkA3T7YPEPjs.API_KEY_ENV]: apiKey,
472
+ [_chunkOVYVMPECjs.HOST_URL_ENV]: baseUrl,
473
+ [_chunkOVYVMPECjs.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 = _chunkA3T7YPEPjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
495
+ const baseUrl = _chunkOVYVMPECjs.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" ? _chunkA3T7YPEPjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkA3T7YPEPjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
519
+ const scopedApiKey = authScope === "folder" ? _chunkOVYVMPECjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkOVYVMPECjs.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
- [_chunkA3T7YPEPjs.HOST_URL_ENV]: baseUrl,
563
- [_chunkA3T7YPEPjs.API_KEY_ENV]: apiKey,
562
+ [_chunkOVYVMPECjs.HOST_URL_ENV]: baseUrl,
563
+ [_chunkOVYVMPECjs.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 = _chunkA3T7YPEPjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
588
- const apiKey = _chunkA3T7YPEPjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
587
+ const baseUrl = _chunkOVYVMPECjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
588
+ const apiKey = _chunkOVYVMPECjs.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 = _chunkA3T7YPEPjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
611
+ const baseUrl = _chunkOVYVMPECjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
612
612
  const reveal = args.includes("--reveal");
613
- const jsonOutput = _chunkCVTH2VUIjs.argsWantJson.call(void 0, args);
613
+ const jsonOutput = _chunk4OPBTEVWjs.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" ? _chunkA3T7YPEPjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkA3T7YPEPjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkA3T7YPEPjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
654
+ const apiKey = authScope === "folder" ? _chunkOVYVMPECjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkOVYVMPECjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkOVYVMPECjs.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
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
661
+ _chunk4OPBTEVWjs.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
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
682
+ _chunk4OPBTEVWjs.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
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
715
+ _chunk4OPBTEVWjs.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, () => ( (_chunkA3T7YPEPjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
742
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkOVYVMPECjs.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
- [_chunkA3T7YPEPjs.HOST_URL_ENV]: baseUrl,
771
- [_chunkA3T7YPEPjs.API_KEY_ENV]: apiKeyResp,
770
+ [_chunkOVYVMPECjs.HOST_URL_ENV]: baseUrl,
771
+ [_chunkOVYVMPECjs.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 = _chunkA3T7YPEPjs.resolveProjectPinTarget.call(void 0, );
778
+ const target = _chunkOVYVMPECjs.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" || _chunkA3T7YPEPjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
785
- saveEnvValues(_chunkA3T7YPEPjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
784
+ } else if (resolvedAuthScope === "folder" || _chunkOVYVMPECjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
785
+ saveEnvValues(_chunkOVYVMPECjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
786
786
  }
787
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
787
+ _chunk4OPBTEVWjs.printCommandEnvelope.call(void 0,
788
788
  {
789
789
  ...payload,
790
- ..._chunkA3T7YPEPjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
791
- command_context: _chunkA3T7YPEPjs.resolveCliCommandContext.call(void 0,
790
+ ..._chunkOVYVMPECjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
791
+ command_context: _chunkOVYVMPECjs.resolveCliCommandContext.call(void 0,
792
792
  { baseUrl, apiKey },
793
793
  resolvedAuthScope
794
794
  )
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
17
17
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
18
18
 
19
19
 
20
- var _chunkGT4NODCJjs = require('./chunk-GT4NODCJ.js');
20
+ var _chunkJIDNO3FIjs = require('./chunk-JIDNO3FI.js');
21
21
 
22
22
  // src/config.ts
23
23
 
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
649
649
  }
650
650
 
651
651
  // src/version.ts
652
- var SDK_VERSION = _chunkGT4NODCJjs.SDK_RELEASE.version;
653
- var SDK_API_MAJOR = _chunkGT4NODCJjs.SDK_RELEASE.contracts.api.currentMajor;
654
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkGT4NODCJjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
652
+ var SDK_VERSION = _chunkJIDNO3FIjs.SDK_RELEASE.version;
653
+ var SDK_API_MAJOR = _chunkJIDNO3FIjs.SDK_RELEASE.contracts.api.currentMajor;
654
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkJIDNO3FIjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
655
655
 
656
656
  // src/agent-runtime.ts
657
657
 
@@ -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 _chunkYADFPKH2js = require('./chunk-YADFPKH2.js');
3
+ var _chunk6SRV2NM3js = require('./chunk-6SRV2NM3.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 = _chunkYADFPKH2js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunk6SRV2NM3js.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 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkCVTH2VUIjs = require('./chunk-CVTH2VUI.js');
5
+ var _chunk4OPBTEVWjs = require('./chunk-4OPBTEVW.js');
6
6
 
7
7
 
8
- var _chunkA3T7YPEPjs = require('./chunk-A3T7YPEP.js');
8
+ var _chunkOVYVMPECjs = require('./chunk-OVYVMPEC.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 } = _chunkCVTH2VUIjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunk4OPBTEVWjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
39
+ _chunk4OPBTEVWjs.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 } = _chunkCVTH2VUIjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunk4OPBTEVWjs.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
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
139
+ _chunk4OPBTEVWjs.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 } = _chunkCVTH2VUIjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunk4OPBTEVWjs.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
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
153
+ _chunk4OPBTEVWjs.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 } = _chunkCVTH2VUIjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunk4OPBTEVWjs.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 } = _chunkCVTH2VUIjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunk4OPBTEVWjs.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
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
200
+ _chunk4OPBTEVWjs.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 } = _chunkCVTH2VUIjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunk4OPBTEVWjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
227
+ _chunk4OPBTEVWjs.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 } = _chunkCVTH2VUIjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunk4OPBTEVWjs.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
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
254
+ _chunk4OPBTEVWjs.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 } = _chunkCVTH2VUIjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunk4OPBTEVWjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
269
+ _chunk4OPBTEVWjs.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 = _chunkA3T7YPEPjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkOVYVMPECjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkCVTH2VUIjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunk4OPBTEVWjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunk4OPBTEVWjs.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 } = _chunkCVTH2VUIjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunk4OPBTEVWjs.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
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
322
+ _chunk4OPBTEVWjs.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 } = _chunkCVTH2VUIjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunk4OPBTEVWjs.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
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
371
+ _chunk4OPBTEVWjs.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 } = _chunkCVTH2VUIjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunk4OPBTEVWjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
392
+ _chunk4OPBTEVWjs.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.399",
52
+ version: "0.3.400",
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,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 _chunkEMNKA5WKjs = require('./chunk-EMNKA5WK.js');
4
+ var _chunkPF3N65JDjs = require('./chunk-PF3N65JD.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkYADFPKH2js = require('./chunk-YADFPKH2.js');
8
+ var _chunk6SRV2NM3js = require('./chunk-6SRV2NM3.js');
9
9
 
10
10
 
11
- var _chunkCVTH2VUIjs = require('./chunk-CVTH2VUI.js');
11
+ var _chunk4OPBTEVWjs = require('./chunk-4OPBTEVW.js');
12
12
 
13
13
 
14
- var _chunkA3T7YPEPjs = require('./chunk-A3T7YPEP.js');
14
+ var _chunkOVYVMPECjs = require('./chunk-OVYVMPEC.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 = _chunkYADFPKH2js.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
492
+ const plan = _chunk6SRV2NM3js.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 ? _chunkEMNKA5WKjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
- const npmGlobalInstallFlags = _chunkEMNKA5WKjs.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 ? _chunkPF3N65JDjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
+ const npmGlobalInstallFlags = _chunkPF3N65JDjs.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()]) || _chunkA3T7YPEPjs.autoDetectBaseUrl.call(void 0, )
559
+ _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkOVYVMPECjs.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 = _chunkYADFPKH2js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
706
+ const plan = _chunk6SRV2NM3js.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, () => ( _chunkA3T7YPEPjs.autoDetectBaseUrl));
1082
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkOVYVMPECjs.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 _chunkYADFPKH2js.runSkillsCommand.call(void 0, { json: true });
1089
+ const exitCode = await _chunk6SRV2NM3js.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
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1160
+ _chunk4OPBTEVWjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1161
1161
  return 0;
1162
1162
  }
1163
1163
  if (options.printCommand) {
1164
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
1164
+ _chunk4OPBTEVWjs.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
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1177
+ _chunk4OPBTEVWjs.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
- _chunkCVTH2VUIjs.printCommandEnvelope.call(void 0,
1207
+ _chunk4OPBTEVWjs.printCommandEnvelope.call(void 0,
1208
1208
  {
1209
1209
  ok: true,
1210
1210
  pinnedVersion
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GAMFK2ZP.mjs";
4
4
  import {
5
5
  printCommandEnvelope
6
- } from "./chunk-CCH3ZVR5.mjs";
6
+ } from "./chunk-V3T4CHXI.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -22,13 +22,13 @@ import {
22
22
  sdkCliStateDirPath,
23
23
  skillsAgentPathSegment,
24
24
  writeSdkSkillsLocalVersion
25
- } from "./chunk-XUHQWWJW.mjs";
25
+ } from "./chunk-6PRUVCMW.mjs";
26
26
  import {
27
27
  DeeplineError
28
28
  } from "./chunk-NXGCO4JB.mjs";
29
29
  import {
30
30
  SDK_RELEASE
31
- } from "./chunk-XES27RSC.mjs";
31
+ } from "./chunk-QZDHNVKF.mjs";
32
32
 
33
33
  // src/cli/commands/skills.ts
34
34
  import { spawn as spawn2 } from "child_process";