deepline 0.3.351 → 0.3.352

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 (93) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/{auth-NQLQ5QBV.mjs → auth-6ZAHOPUC.mjs} +4 -4
  3. package/dist/cli/auth-ZYLA55Y2.js +31 -0
  4. package/dist/cli/{billing-AZCBAJ6Q.js → billing-FTCAIIPO.js} +73 -73
  5. package/dist/cli/{billing-AXSNXOTN.mjs → billing-KE6CAAO5.mjs} +4 -4
  6. package/dist/cli/{chunk-L7YXXM5W.js → chunk-27JIZEAJ.js} +1 -1
  7. package/dist/cli/{chunk-WY5N3SSC.js → chunk-2JXDY3LE.js} +2 -2
  8. package/dist/cli/{chunk-BOOZ7D7V.js → chunk-2PQR43BD.js} +225 -225
  9. package/dist/cli/{chunk-DBWASDYS.mjs → chunk-2ULH52Q7.mjs} +27 -3
  10. package/dist/cli/{chunk-722274AA.mjs → chunk-3EIK6KTE.mjs} +1 -1
  11. package/dist/cli/{chunk-CIDP2FSO.js → chunk-4W3B4CNE.js} +9 -9
  12. package/dist/cli/{chunk-URBPUPJS.mjs → chunk-54IUI747.mjs} +5 -5
  13. package/dist/cli/{chunk-QD7W3OBA.js → chunk-5TQPSUU6.js} +8 -8
  14. package/dist/cli/{chunk-XFTGWGZ5.mjs → chunk-EHYJYOXF.mjs} +1 -1
  15. package/dist/cli/{chunk-CFALTV4O.mjs → chunk-HD2RKIVK.mjs} +2 -2
  16. package/dist/cli/{chunk-H5JUSKHB.mjs → chunk-HMN5SUFL.mjs} +1 -1
  17. package/dist/cli/{chunk-OF4N5X7Z.mjs → chunk-J5MZZVDK.mjs} +2 -2
  18. package/dist/cli/{chunk-JV6GFIQQ.js → chunk-L6BHFEYM.js} +45 -45
  19. package/dist/cli/{chunk-IKC7EPDS.mjs → chunk-NNMGGD5Z.mjs} +1 -1
  20. package/dist/cli/{chunk-AQQFVUDI.mjs → chunk-OWG4Y7JK.mjs} +2 -2
  21. package/dist/cli/{chunk-BKOYPUK2.js → chunk-P6CGAEDF.js} +26 -26
  22. package/dist/cli/{chunk-NUD2WO3E.js → chunk-Q3CSXWFU.js} +4 -4
  23. package/dist/cli/{chunk-ICZTTYDS.js → chunk-QOIXZWOE.js} +40 -16
  24. package/dist/cli/{chunk-QOYD2THS.mjs → chunk-SGFPTY4H.mjs} +2 -2
  25. package/dist/cli/{chunk-73J3BGJ3.js → chunk-SM4G43FY.js} +60 -60
  26. package/dist/cli/{chunk-GT5HPOM3.mjs → chunk-ULX7APDZ.mjs} +1 -1
  27. package/dist/cli/{chunk-7ZAG2XG5.js → chunk-V5JPRCQ2.js} +6 -6
  28. package/dist/cli/{chunk-SDLFAGQS.js → chunk-VLQPMYSU.js} +15 -15
  29. package/dist/cli/{chunk-BWFUBETD.js → chunk-VQFBIGMU.js} +48 -48
  30. package/dist/cli/{chunk-7BGGBA4V.mjs → chunk-XK7AH232.mjs} +4 -4
  31. package/dist/cli/{chunk-BR3XFSXN.mjs → chunk-YIO2PX4J.mjs} +6 -6
  32. package/dist/cli/{client-NTEDBLQK.mjs → client-25RBAXIY.mjs} +3 -3
  33. package/dist/cli/client-AY2RSEDD.js +20 -0
  34. package/dist/cli/{csv-SSSPKSKU.mjs → csv-7BOK5ZD7.mjs} +3 -3
  35. package/dist/cli/{csv-6PZZ4ARC.js → csv-7XXJZ736.js} +12 -12
  36. package/dist/cli/{db-XEVVDWOP.mjs → db-7Q7L5SKP.mjs} +4 -4
  37. package/dist/cli/{db-3YL7YWTM.js → db-TFPYJCZ5.js} +29 -29
  38. package/dist/cli/{describe-YZ365BKT.mjs → describe-JTEJNG67.mjs} +8 -8
  39. package/dist/cli/{describe-XZNQXFXD.js → describe-TQYXSFZ2.js} +15 -15
  40. package/dist/cli/{executions-ZAV7YCQC.mjs → executions-33MNWCXR.mjs} +4 -4
  41. package/dist/cli/{executions-WBTIT2RU.js → executions-XYCJEW5I.js} +6 -6
  42. package/dist/cli/{feedback-PRVJ26X7.js → feedback-D3RSQCQE.js} +7 -7
  43. package/dist/cli/{feedback-NOYG63QE.mjs → feedback-LXSEEBNL.mjs} +3 -3
  44. package/dist/cli/git-56MVO4Y5.js +23 -0
  45. package/dist/cli/{git-AOSMM4US.mjs → git-IES2ZBYO.mjs} +4 -4
  46. package/dist/cli/index.js +79 -79
  47. package/dist/cli/index.mjs +31 -31
  48. package/dist/cli/{legacy-noops-T6DKTGZY.mjs → legacy-noops-ILCWGUAR.mjs} +4 -4
  49. package/dist/cli/{legacy-noops-RTNAEYVF.js → legacy-noops-YIOGLZXX.js} +7 -7
  50. package/dist/cli/{monitors-7ERJ4277.js → monitors-MQSSH43U.js} +85 -85
  51. package/dist/cli/{monitors-QIR3T2QR.mjs → monitors-R3CZHVU2.mjs} +4 -4
  52. package/dist/cli/{org-7P46IVVU.js → org-62P7YRHW.js} +60 -60
  53. package/dist/cli/{org-WNRQQZNP.mjs → org-Z75A63SM.mjs} +4 -4
  54. package/dist/cli/{play-57XTHKER.mjs → play-FUUFAV34.mjs} +7 -7
  55. package/dist/cli/play-K4RS3VMC.js +153 -0
  56. package/dist/cli/{providers-ET6UBGWJ.mjs → providers-OQNPHTKA.mjs} +4 -4
  57. package/dist/cli/{providers-USRX4UVZ.js → providers-Q2VZF65A.js} +7 -7
  58. package/dist/cli/{quickstart-OGZ7BZKS.mjs → quickstart-7X6HUVWX.mjs} +3 -3
  59. package/dist/cli/{quickstart-BPPQFMWI.js → quickstart-VZ7BYW4Y.js} +5 -5
  60. package/dist/cli/search-H3TNOWKP.js +26 -0
  61. package/dist/cli/{search-MZARI5XA.mjs → search-SJKLKSER.mjs} +5 -5
  62. package/dist/cli/{secrets-O6XG35SA.js → secrets-EKH3FPAO.js} +13 -13
  63. package/dist/cli/{secrets-WMUJ6PB4.mjs → secrets-JQUKCHON.mjs} +4 -4
  64. package/dist/cli/{sessions-LCHVGXMV.js → sessions-NDLKL26C.js} +5 -5
  65. package/dist/cli/{sessions-EYALESPC.mjs → sessions-RSFW7OYD.mjs} +4 -4
  66. package/dist/cli/{settings-LUGKMDDX.mjs → settings-DR4YKJTJ.mjs} +7 -7
  67. package/dist/cli/{settings-25YT2IQK.js → settings-HPUE5C2G.js} +74 -74
  68. package/dist/cli/{setup-KSRA3V42.mjs → setup-4FT6NMU6.mjs} +6 -6
  69. package/dist/cli/{setup-AKZWHNKU.js → setup-Y2HCWQ4D.js} +41 -41
  70. package/dist/cli/{skills-VJJIB4F5.mjs → skills-EQR5K67V.mjs} +4 -4
  71. package/dist/cli/skills-OGQZAKOB.js +28 -0
  72. package/dist/cli/tools-3HM7A7XQ.js +40 -0
  73. package/dist/cli/{tools-NYQD3VSU.mjs → tools-ZRCNCMOO.mjs} +6 -6
  74. package/dist/cli/{update-GU4TALAI.mjs → update-UJNIMTRS.mjs} +6 -6
  75. package/dist/cli/update-ZB6CXLCS.js +28 -0
  76. package/dist/cli/{workflow-TFOUWNEJ.js → workflow-4M63OBSC.js} +15 -15
  77. package/dist/cli/{workflow-T4VNPJA4.mjs → workflow-EN3TQFKU.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-YTDZKDCB.js +0 -31
  87. package/dist/cli/client-3GCQER5K.js +0 -20
  88. package/dist/cli/git-ZI4H72YR.js +0 -23
  89. package/dist/cli/play-QIX7RZ74.js +0 -153
  90. package/dist/cli/search-P447HWLU.js +0 -26
  91. package/dist/cli/skills-GYWMMOFQ.js +0 -28
  92. package/dist/cli/tools-HN6E2AH6.js +0 -40
  93. package/dist/cli/update-IIEKVC75.js +0 -28
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk7ZAG2XG5js = require('./chunk-7ZAG2XG5.js');
5
+ var _chunkV5JPRCQ2js = require('./chunk-V5JPRCQ2.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunk7ZAG2XG5js = require('./chunk-7ZAG2XG5.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkNUD2WO3Ejs = require('./chunk-NUD2WO3E.js');
28
+ var _chunkQ3CSXWFUjs = require('./chunk-Q3CSXWFU.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 _chunkNUD2WO3Ejs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunkQ3CSXWFUjs.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 = _chunkNUD2WO3Ejs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunkQ3CSXWFUjs.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 `${_chunkNUD2WO3Ejs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunkQ3CSXWFUjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkNUD2WO3Ejs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunkQ3CSXWFUjs.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 _chunkNUD2WO3Ejs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunkQ3CSXWFUjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkNUD2WO3Ejs.HOST_URL_ENV] ? { [_chunkNUD2WO3Ejs.HOST_URL_ENV]: values[_chunkNUD2WO3Ejs.HOST_URL_ENV] } : {},
188
- ...values[_chunkNUD2WO3Ejs.API_KEY_ENV] ? { [_chunkNUD2WO3Ejs.API_KEY_ENV]: values[_chunkNUD2WO3Ejs.API_KEY_ENV] } : {},
189
- ...values[_chunkNUD2WO3Ejs.ACTIVE_ORG_ID_ENV] ? { [_chunkNUD2WO3Ejs.ACTIVE_ORG_ID_ENV]: values[_chunkNUD2WO3Ejs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkNUD2WO3Ejs.ACTIVE_ORG_NAME_ENV) ? { [_chunkNUD2WO3Ejs.ACTIVE_ORG_NAME_ENV]: values[_chunkNUD2WO3Ejs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunkQ3CSXWFUjs.HOST_URL_ENV] ? { [_chunkQ3CSXWFUjs.HOST_URL_ENV]: values[_chunkQ3CSXWFUjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunkQ3CSXWFUjs.API_KEY_ENV] ? { [_chunkQ3CSXWFUjs.API_KEY_ENV]: values[_chunkQ3CSXWFUjs.API_KEY_ENV] } : {},
189
+ ...values[_chunkQ3CSXWFUjs.ACTIVE_ORG_ID_ENV] ? { [_chunkQ3CSXWFUjs.ACTIVE_ORG_ID_ENV]: values[_chunkQ3CSXWFUjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunkQ3CSXWFUjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkQ3CSXWFUjs.ACTIVE_ORG_NAME_ENV]: values[_chunkQ3CSXWFUjs.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, _chunkNUD2WO3Ejs.FEATURES_ENV) ? { [_chunkNUD2WO3Ejs.FEATURES_ENV]: values[_chunkNUD2WO3Ejs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunkQ3CSXWFUjs.FEATURES_ENV) ? { [_chunkQ3CSXWFUjs.FEATURES_ENV]: values[_chunkQ3CSXWFUjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkNUD2WO3Ejs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunkQ3CSXWFUjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkNUD2WO3Ejs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunkQ3CSXWFUjs.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
- [_chunkNUD2WO3Ejs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkNUD2WO3Ejs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkNUD2WO3Ejs.featureEnvValues.call(void 0, data)
205
+ [_chunkQ3CSXWFUjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunkQ3CSXWFUjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunkQ3CSXWFUjs.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/${_chunkNUD2WO3Ejs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunkQ3CSXWFUjs.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkNUD2WO3Ejs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkNUD2WO3Ejs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkNUD2WO3Ejs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkNUD2WO3Ejs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunkQ3CSXWFUjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunkQ3CSXWFUjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunkQ3CSXWFUjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunkQ3CSXWFUjs.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" ? _chunkNUD2WO3Ejs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkNUD2WO3Ejs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
257
+ const apiKey = input.authScope === "folder" ? _chunkQ3CSXWFUjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkQ3CSXWFUjs.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 = _chunkNUD2WO3Ejs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
354
+ const baseUrl = _chunkQ3CSXWFUjs.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
- [_chunkNUD2WO3Ejs.HOST_URL_ENV]: baseUrl
409
+ [_chunkQ3CSXWFUjs.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" && _chunkNUD2WO3Ejs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
416
+ const shouldOpen = waitMode !== "no" && _chunkQ3CSXWFUjs.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) _chunk7ZAG2XG5js.openInBrowser.call(void 0, claimUrl);
421
+ if (shouldOpen) _chunkV5JPRCQ2js.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
- [_chunkNUD2WO3Ejs.HOST_URL_ENV]: baseUrl,
465
- [_chunkNUD2WO3Ejs.API_KEY_ENV]: apiKey,
464
+ [_chunkQ3CSXWFUjs.HOST_URL_ENV]: baseUrl,
465
+ [_chunkQ3CSXWFUjs.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 = _chunkNUD2WO3Ejs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
487
+ const baseUrl = _chunkQ3CSXWFUjs.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" ? _chunkNUD2WO3Ejs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkNUD2WO3Ejs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
511
+ const scopedApiKey = authScope === "folder" ? _chunkQ3CSXWFUjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkQ3CSXWFUjs.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
- [_chunkNUD2WO3Ejs.HOST_URL_ENV]: baseUrl,
555
- [_chunkNUD2WO3Ejs.API_KEY_ENV]: apiKey,
554
+ [_chunkQ3CSXWFUjs.HOST_URL_ENV]: baseUrl,
555
+ [_chunkQ3CSXWFUjs.API_KEY_ENV]: apiKey,
556
556
  ...activeOrgEnvValues(data)
557
557
  },
558
558
  baseUrl,
@@ -576,9 +576,9 @@ async function handleWait(args) {
576
576
  return EXIT_AUTH;
577
577
  }
578
578
  async function handleStatus(args) {
579
- const baseUrl = _chunkNUD2WO3Ejs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
579
+ const baseUrl = _chunkQ3CSXWFUjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
580
  const reveal = args.includes("--reveal");
581
- const jsonOutput = _chunk7ZAG2XG5js.argsWantJson.call(void 0, args);
581
+ const jsonOutput = _chunkV5JPRCQ2js.argsWantJson.call(void 0, args);
582
582
  const hasExplicitAuthScope = args.includes("--auth-scope");
583
583
  let authScope = null;
584
584
  if (hasExplicitAuthScope) {
@@ -618,14 +618,14 @@ async function handleStatus(args) {
618
618
  };
619
619
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
620
620
  }
621
- const apiKey = authScope === "folder" ? _chunkNUD2WO3Ejs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkNUD2WO3Ejs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkNUD2WO3Ejs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
621
+ const apiKey = authScope === "folder" ? _chunkQ3CSXWFUjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkQ3CSXWFUjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkQ3CSXWFUjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
622
622
  if (!apiKey) {
623
623
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
624
624
  baseUrl,
625
625
  _nullishCoalesce(authScope, () => ( void 0))
626
626
  );
627
627
  if (pendingClaim) {
628
- _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
628
+ _chunkV5JPRCQ2js.printCommandEnvelope.call(void 0,
629
629
  {
630
630
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
631
631
  status: "pending",
@@ -646,7 +646,7 @@ async function handleStatus(args) {
646
646
  );
647
647
  return EXIT_OK;
648
648
  }
649
- _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
649
+ _chunkV5JPRCQ2js.printCommandEnvelope.call(void 0,
650
650
  {
651
651
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
652
652
  status: "not connected",
@@ -679,7 +679,7 @@ async function handleStatus(args) {
679
679
  }
680
680
  );
681
681
  if (status === 401 || status === 403) {
682
- _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
682
+ _chunkV5JPRCQ2js.printCommandEnvelope.call(void 0,
683
683
  {
684
684
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
685
685
  status: "unauthorized",
@@ -706,7 +706,7 @@ async function handleStatus(args) {
706
706
  console.error(`Auth status error (status ${status}).`);
707
707
  return EXIT_SERVER;
708
708
  }
709
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkNUD2WO3Ejs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
709
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkQ3CSXWFUjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
710
710
  clearSatisfiedPendingClaim(
711
711
  baseUrl,
712
712
  resolvedAuthScope,
@@ -734,28 +734,28 @@ async function handleStatus(args) {
734
734
  if (apiKeyResp) {
735
735
  saveEnvValues(
736
736
  {
737
- [_chunkNUD2WO3Ejs.HOST_URL_ENV]: baseUrl,
738
- [_chunkNUD2WO3Ejs.API_KEY_ENV]: apiKeyResp,
737
+ [_chunkQ3CSXWFUjs.HOST_URL_ENV]: baseUrl,
738
+ [_chunkQ3CSXWFUjs.API_KEY_ENV]: apiKeyResp,
739
739
  ...activeOrgEnvValues(data)
740
740
  },
741
741
  baseUrl,
742
742
  resolvedAuthScope
743
743
  );
744
744
  if (resolvedAuthScope === "folder") {
745
- const target = _chunkNUD2WO3Ejs.resolveProjectPinTarget.call(void 0, );
745
+ const target = _chunkQ3CSXWFUjs.resolveProjectPinTarget.call(void 0, );
746
746
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
747
747
  } else {
748
748
  savedApiKeyPath = envFilePath(baseUrl);
749
749
  }
750
750
  }
751
- } else if (resolvedAuthScope === "folder" || _chunkNUD2WO3Ejs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
752
- saveEnvValues(_chunkNUD2WO3Ejs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
751
+ } else if (resolvedAuthScope === "folder" || _chunkQ3CSXWFUjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
752
+ saveEnvValues(_chunkQ3CSXWFUjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
753
753
  }
754
- _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
754
+ _chunkV5JPRCQ2js.printCommandEnvelope.call(void 0,
755
755
  {
756
756
  ...payload,
757
- ..._chunkNUD2WO3Ejs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
758
- command_context: _chunkNUD2WO3Ejs.resolveCliCommandContext.call(void 0,
757
+ ..._chunkQ3CSXWFUjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
758
+ command_context: _chunkQ3CSXWFUjs.resolveCliCommandContext.call(void 0,
759
759
  { baseUrl, apiKey },
760
760
  resolvedAuthScope
761
761
  )
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-H5JUSKHB.mjs";
4
+ } from "./chunk-HMN5SUFL.mjs";
5
5
  import {
6
6
  resolveShellSpawn,
7
7
  runSkillsCommand
8
- } from "./chunk-OF4N5X7Z.mjs";
8
+ } from "./chunk-J5MZZVDK.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-GT5HPOM3.mjs";
11
+ } from "./chunk-ULX7APDZ.mjs";
12
12
  import {
13
13
  autoDetectBaseUrl
14
- } from "./chunk-722274AA.mjs";
14
+ } from "./chunk-3EIK6KTE.mjs";
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  import { spawn, spawnSync } from "child_process";
@@ -11,11 +11,11 @@ import {
11
11
  } from "./chunk-EDWJY6T4.mjs";
12
12
  import {
13
13
  registerDeprecatedSearchCommand
14
- } from "./chunk-DBWASDYS.mjs";
14
+ } from "./chunk-2ULH52Q7.mjs";
15
15
  import {
16
16
  handleDeploymentGet,
17
17
  handleDeploymentsList
18
- } from "./chunk-CFALTV4O.mjs";
18
+ } from "./chunk-HD2RKIVK.mjs";
19
19
  import {
20
20
  PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY,
21
21
  PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER,
@@ -40,7 +40,7 @@ import {
40
40
  normalizeRunEventOperationRequest,
41
41
  parseLogLevel,
42
42
  playInputExampleArgs
43
- } from "./chunk-IKC7EPDS.mjs";
43
+ } from "./chunk-NNMGGD5Z.mjs";
44
44
  import {
45
45
  CSV_DATA_INPUT_KEY,
46
46
  buildNamedPlayRunRequest,
@@ -73,10 +73,10 @@ import {
73
73
  printJsonError,
74
74
  renderCommandEnvelopeText,
75
75
  shouldEmitJson
76
- } from "./chunk-GT5HPOM3.mjs";
76
+ } from "./chunk-ULX7APDZ.mjs";
77
77
  import {
78
78
  fetchWithDeploymentProtection
79
- } from "./chunk-722274AA.mjs";
79
+ } from "./chunk-3EIK6KTE.mjs";
80
80
  import {
81
81
  PLAY_DEFAULT_EXPORT,
82
82
  extractDefinedPlayName,
@@ -18160,7 +18160,7 @@ Examples:
18160
18160
  process.exitCode = await ownView();
18161
18161
  return;
18162
18162
  }
18163
- const { describeAnything } = await import("./describe-YZ365BKT.mjs");
18163
+ const { describeAnything } = await import("./describe-JTEJNG67.mjs");
18164
18164
  process.exitCode = await describeAnything(
18165
18165
  name,
18166
18166
  {
@@ -3,11 +3,11 @@ import {
3
3
  MONITOR_JOB_PHASES,
4
4
  MONITOR_JOB_RECONCILIATION_STATES,
5
5
  MONITOR_JOB_STATES
6
- } from "./chunk-IKC7EPDS.mjs";
6
+ } from "./chunk-NNMGGD5Z.mjs";
7
7
  import "./chunk-CBVIJSHF.mjs";
8
- import "./chunk-722274AA.mjs";
8
+ import "./chunk-3EIK6KTE.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
- import "./chunk-XFTGWGZ5.mjs";
10
+ import "./chunk-EHYJYOXF.mjs";
11
11
  import "./chunk-6IKARAYD.mjs";
12
12
  import "./chunk-NXGCO4JB.mjs";
13
13
  import "./chunk-WZYKRD7T.mjs";
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunk4W3B4CNEjs = require('./chunk-4W3B4CNE.js');
7
+ require('./chunk-LA46MMTL.js');
8
+ require('./chunk-Q3CSXWFU.js');
9
+ require('./chunk-XNYIZMNQ.js');
10
+ require('./chunk-27JIZEAJ.js');
11
+ require('./chunk-S6R3OX7B.js');
12
+ require('./chunk-7P5AA3SN.js');
13
+ require('./chunk-OG64RBAC.js');
14
+ require('./chunk-COGTRVWW.js');
15
+
16
+
17
+
18
+
19
+
20
+ exports.DeeplineClient = _chunk4W3B4CNEjs.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunk4W3B4CNEjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunk4W3B4CNEjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunk4W3B4CNEjs.MONITOR_JOB_STATES;
@@ -4,10 +4,10 @@ import {
4
4
  printCommandEnvelope,
5
5
  printJson,
6
6
  readCsvRows
7
- } from "./chunk-GT5HPOM3.mjs";
8
- import "./chunk-722274AA.mjs";
7
+ } from "./chunk-ULX7APDZ.mjs";
8
+ import "./chunk-3EIK6KTE.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
- import "./chunk-XFTGWGZ5.mjs";
10
+ import "./chunk-EHYJYOXF.mjs";
11
11
  import "./chunk-NXGCO4JB.mjs";
12
12
  import "./chunk-WZYKRD7T.mjs";
13
13
  import "./chunk-KRD6H754.mjs";
@@ -4,10 +4,10 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk7ZAG2XG5js = require('./chunk-7ZAG2XG5.js');
8
- require('./chunk-NUD2WO3E.js');
7
+ var _chunkV5JPRCQ2js = require('./chunk-V5JPRCQ2.js');
8
+ require('./chunk-Q3CSXWFU.js');
9
9
  require('./chunk-XNYIZMNQ.js');
10
- require('./chunk-L7YXXM5W.js');
10
+ require('./chunk-27JIZEAJ.js');
11
11
  require('./chunk-7P5AA3SN.js');
12
12
  require('./chunk-OG64RBAC.js');
13
13
  require('./chunk-COGTRVWW.js');
@@ -126,7 +126,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
126
126
  column.length,
127
127
  ...rows.map((row) => {
128
128
  const value = _nullishCoalesce(row[column], () => ( ""));
129
- return (verbose ? value : _chunk7ZAG2XG5js.clip.call(void 0, value, 42)).length;
129
+ return (verbose ? value : _chunkV5JPRCQ2js.clip.call(void 0, value, 42)).length;
130
130
  })
131
131
  )
132
132
  ])
@@ -136,7 +136,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
136
136
  const body = rows.map(
137
137
  (row) => columns.map((column) => {
138
138
  const raw = _nullishCoalesce(row[column], () => ( ""));
139
- const display = verbose ? raw : _chunk7ZAG2XG5js.clip.call(void 0, raw, 42);
139
+ const display = verbose ? raw : _chunkV5JPRCQ2js.clip.call(void 0, raw, 42);
140
140
  return display.padEnd(widths[column]);
141
141
  }).join(" | ")
142
142
  );
@@ -156,7 +156,7 @@ async function handleCsvShow(path, options, command) {
156
156
  { exitCode: 2 }
157
157
  );
158
158
  }
159
- const allRows = _chunk7ZAG2XG5js.readCsvRows.call(void 0, csvPath);
159
+ const allRows = _chunkV5JPRCQ2js.readCsvRows.call(void 0, csvPath);
160
160
  const [rowStart, rowEnd] = parseRowRange(options.rows);
161
161
  const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
162
162
  const { rows: selected, columns } = selectColumns(
@@ -169,7 +169,7 @@ async function handleCsvShow(path, options, command) {
169
169
  if (options.summary) {
170
170
  const summaries = summarizeColumns(selected, columns);
171
171
  if (format === "json") {
172
- _chunk7ZAG2XG5js.printJson.call(void 0, {
172
+ _chunkV5JPRCQ2js.printJson.call(void 0, {
173
173
  rows: summaries,
174
174
  total_rows: selected.length,
175
175
  source_total_rows: allRows.length
@@ -178,7 +178,7 @@ async function handleCsvShow(path, options, command) {
178
178
  }
179
179
  const displayRows = summaryDisplayRows(summaries);
180
180
  if (format === "csv") {
181
- process.stdout.write(_chunk7ZAG2XG5js.csvStringFromRows.call(void 0, displayRows));
181
+ process.stdout.write(_chunkV5JPRCQ2js.csvStringFromRows.call(void 0, displayRows));
182
182
  return;
183
183
  }
184
184
  process.stdout.write(
@@ -193,7 +193,7 @@ async function handleCsvShow(path, options, command) {
193
193
  return;
194
194
  }
195
195
  if (format === "json") {
196
- _chunk7ZAG2XG5js.printJson.call(void 0, {
196
+ _chunkV5JPRCQ2js.printJson.call(void 0, {
197
197
  rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
198
198
  });
199
199
  return;
@@ -436,7 +436,7 @@ async function handleCsvRenderStart(options) {
436
436
  if (log) {
437
437
  detail = `
438
438
  CSV render log:
439
- ${_chunk7ZAG2XG5js.clip.call(void 0, log, 2e3)}`;
439
+ ${_chunkV5JPRCQ2js.clip.call(void 0, log, 2e3)}`;
440
440
  }
441
441
  } catch (e7) {
442
442
  }
@@ -487,7 +487,7 @@ async function handleCsvRenderStatus(options) {
487
487
  if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
488
488
  if (payload.url) lines.push(`Render URL: ${payload.url}`);
489
489
  lines.push(`Render Health: ${payload.health_status}`);
490
- _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, payload, {
490
+ _chunkV5JPRCQ2js.printCommandEnvelope.call(void 0, payload, {
491
491
  json: options.json,
492
492
  text: `${lines.join("\n")}
493
493
  `
@@ -523,7 +523,7 @@ async function handleCsvRenderStop(options) {
523
523
  };
524
524
  const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
525
525
  ` : "No running CSV render process found.\n";
526
- _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
526
+ _chunkV5JPRCQ2js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
527
527
  }
528
528
  async function handleCsvRender(action, options) {
529
529
  const normalized = _nullishCoalesce(action, () => ( "start"));
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  DeeplineClient,
6
6
  planCustomerDbQuery
7
- } from "./chunk-IKC7EPDS.mjs";
7
+ } from "./chunk-NNMGGD5Z.mjs";
8
8
  import "./chunk-CBVIJSHF.mjs";
9
9
  import {
10
10
  argsWantJson,
@@ -15,12 +15,12 @@ import {
15
15
  printCommandEnvelope,
16
16
  recordRows,
17
17
  shouldEmitJson
18
- } from "./chunk-GT5HPOM3.mjs";
18
+ } from "./chunk-ULX7APDZ.mjs";
19
19
  import {
20
20
  CustomerDbQueryOutcomeUnknownError
21
- } from "./chunk-722274AA.mjs";
21
+ } from "./chunk-3EIK6KTE.mjs";
22
22
  import "./chunk-DLIRSHV6.mjs";
23
- import "./chunk-XFTGWGZ5.mjs";
23
+ import "./chunk-EHYJYOXF.mjs";
24
24
  import "./chunk-6IKARAYD.mjs";
25
25
  import {
26
26
  DeeplineError