deepline 0.3.480 → 0.3.481

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 (152) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +35 -1
  2. package/dist/bundling-sources/sdk/src/http-core.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/plays/run-request.ts +54 -31
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/monitors/legacy-radar-forward-routes.ts +569 -0
  6. package/dist/bundling-sources/shared_libs/monitors/legacy-radar-retirement.ts +451 -0
  7. package/dist/bundling-sources/shared_libs/monitors/package.json +5 -1
  8. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/runtime-array-input-receipts.ts +13 -6
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +2 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +125 -22
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +16 -53
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +34 -48
  14. package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +44 -0
  15. package/dist/cli/auth-EQWYBNIE.js +43 -0
  16. package/dist/cli/{auth-KMKFQX7X.mjs → auth-FYY65LYD.mjs} +5 -5
  17. package/dist/cli/{billing-G3Y5FTQM.mjs → billing-3MELYUTI.mjs} +7 -7
  18. package/dist/cli/{billing-R5RCTEW6.js → billing-TROHWBSE.js} +80 -80
  19. package/dist/cli/{chunk-4V6KEXCM.js → chunk-27BYXQU4.js} +1 -1
  20. package/dist/cli/{chunk-OQOXR6JL.js → chunk-4CIVXXSU.js} +26 -26
  21. package/dist/cli/{chunk-RPJSVGSC.js → chunk-5ONCPLWC.js} +16 -16
  22. package/dist/cli/{chunk-K7E2DO5P.js → chunk-6VKDKATO.js} +53 -53
  23. package/dist/cli/{chunk-WQBJHB63.js → chunk-6WWBVWFQ.js} +7 -7
  24. package/dist/cli/{chunk-LLEBPM3N.mjs → chunk-6ZMUAASO.mjs} +4 -4
  25. package/dist/cli/{chunk-IQ6WL36K.mjs → chunk-75LUK4E5.mjs} +1 -1
  26. package/dist/cli/{chunk-AKCYZDBO.mjs → chunk-7VVC4RZX.mjs} +1 -1
  27. package/dist/cli/{chunk-JBQKBDDN.mjs → chunk-ASQJUUGB.mjs} +5 -5
  28. package/dist/cli/{chunk-DIDWIPMA.mjs → chunk-BJ5UFTWL.mjs} +28 -7
  29. package/dist/cli/{chunk-JH77OHD5.js → chunk-BJMEXKZY.js} +2 -2
  30. package/dist/cli/{chunk-53LLOGNV.mjs → chunk-C7UIUKW6.mjs} +2 -2
  31. package/dist/cli/{chunk-LHU6BMDV.js → chunk-CM3KC74A.js} +3 -3
  32. package/dist/cli/{chunk-XNXE7YWI.mjs → chunk-CS2P3EQS.mjs} +2 -2
  33. package/dist/cli/{chunk-APFFHSPL.js → chunk-CUSWZTS7.js} +8 -8
  34. package/dist/cli/{chunk-6AYQK7Z6.js → chunk-D3UHG54V.js} +199 -178
  35. package/dist/cli/{chunk-PM2CT7HZ.mjs → chunk-EJTU6X6C.mjs} +3 -3
  36. package/dist/cli/{chunk-FZX2DGQZ.js → chunk-EPEAQA6O.js} +37 -37
  37. package/dist/cli/{chunk-57MJL2HU.mjs → chunk-EPZSX7FZ.mjs} +4 -4
  38. package/dist/cli/{chunk-FZ42SO3Q.mjs → chunk-FXLMDAAY.mjs} +1 -1
  39. package/dist/cli/chunk-GBAT5NMI.mjs +789 -0
  40. package/dist/cli/{chunk-VPO2D7WV.js → chunk-GJOKFJ2Y.js} +10 -10
  41. package/dist/cli/{chunk-JDMR33HS.js → chunk-GVAENVIG.js} +28 -19
  42. package/dist/cli/{chunk-NELMCOWK.mjs → chunk-HNRELVCS.mjs} +27 -18
  43. package/dist/cli/{chunk-SUTQCM7U.mjs → chunk-HXG7TYRS.mjs} +2 -2
  44. package/dist/cli/{chunk-PDDUX5UY.js → chunk-J4D3PCQ2.js} +5 -5
  45. package/dist/cli/{chunk-PC42DFZC.mjs → chunk-JE27DTQM.mjs} +3 -3
  46. package/dist/cli/{chunk-MEJJD7PA.js → chunk-KDU6TSGE.js} +2 -2
  47. package/dist/cli/{chunk-NVTVS4AV.js → chunk-KPXP2DIY.js} +7 -9
  48. package/dist/cli/chunk-KQSTV4MW.js +789 -0
  49. package/dist/cli/{chunk-2AYWC63S.mjs → chunk-LISZBUA7.mjs} +2 -2
  50. package/dist/cli/{chunk-44TVNYYV.mjs → chunk-LTOY2GUJ.mjs} +10 -10
  51. package/dist/cli/{chunk-OGXG46LY.js → chunk-MKDWU3ZI.js} +93 -93
  52. package/dist/cli/{chunk-MTMOYZMK.mjs → chunk-N5267HEH.mjs} +1 -1
  53. package/dist/cli/{chunk-T7EWDIVM.mjs → chunk-PDJS6LFI.mjs} +2 -1
  54. package/dist/cli/{chunk-QEV3GFDS.js → chunk-R4EFW2I2.js} +3 -3
  55. package/dist/cli/{chunk-KQNQCZLB.mjs → chunk-RV2GB7KW.mjs} +2 -2
  56. package/dist/cli/{chunk-PYIWO4GS.mjs → chunk-S5BM6NPJ.mjs} +3 -5
  57. package/dist/cli/{chunk-7LMLHUCP.mjs → chunk-S5WXSC3P.mjs} +5 -5
  58. package/dist/cli/{chunk-63QH6FL3.mjs → chunk-SOGLBLMH.mjs} +4 -4
  59. package/dist/cli/{chunk-5IVGZCKY.js → chunk-SVPM2E2U.js} +5 -5
  60. package/dist/cli/{chunk-ZSWY5E3W.mjs → chunk-UUGSZZZH.mjs} +1 -1
  61. package/dist/cli/{chunk-TBJ23WKT.js → chunk-VBDR2DP6.js} +3 -3
  62. package/dist/cli/{chunk-TXFURKHD.mjs → chunk-VRAOWHXJ.mjs} +1 -1
  63. package/dist/cli/{chunk-ASARTL6E.mjs → chunk-VTKAIGW6.mjs} +3 -3
  64. package/dist/cli/{chunk-DQYJXVAF.js → chunk-WF5QE2IW.js} +17 -16
  65. package/dist/cli/{chunk-NBXG4S2X.js → chunk-WICQQ7GY.js} +53 -53
  66. package/dist/cli/{chunk-FFSOXQEM.js → chunk-WTWRZ5ZI.js} +8 -8
  67. package/dist/cli/{chunk-LBZLV6QF.js → chunk-X4XZFIK6.js} +14 -14
  68. package/dist/cli/{chunk-A3PZKD47.js → chunk-X6MEQBAT.js} +21 -21
  69. package/dist/cli/{csv-P3AEI4G4.mjs → csv-2EG7JW7V.mjs} +4 -4
  70. package/dist/cli/{csv-57D62T7L.js → csv-OUALOZBF.js} +13 -13
  71. package/dist/cli/{db-FWFYU34R.js → db-7BTOI6YB.js} +28 -28
  72. package/dist/cli/{db-PJQMPZJP.mjs → db-ECDQWI2Y.mjs} +7 -7
  73. package/dist/cli/describe-EXSH6OZD.js +48 -0
  74. package/dist/cli/{describe-F57VZZML.mjs → describe-KO6WKQIB.mjs} +18 -18
  75. package/dist/cli/describe-core.d.mts +2 -2
  76. package/dist/cli/describe-core.d.ts +2 -2
  77. package/dist/cli/{executions-ZAJGMAAT.mjs → executions-3VMFBZT4.mjs} +7 -7
  78. package/dist/cli/{executions-YBT7NTY5.js → executions-VZSG3F3E.js} +9 -9
  79. package/dist/cli/{feedback-YLYY2EG4.js → feedback-ASKBWRXR.js} +8 -8
  80. package/dist/cli/{feedback-L3ZQCSY6.mjs → feedback-SN7AVALN.mjs} +4 -4
  81. package/dist/cli/{git-M7735NWJ.mjs → git-W2DZXEAY.mjs} +5 -5
  82. package/dist/cli/git-X2XUKYYX.js +25 -0
  83. package/dist/cli/index.js +167 -144
  84. package/dist/cli/index.mjs +73 -50
  85. package/dist/cli/{legacy-noops-TX37UP3U.js → legacy-noops-6KOC6LV7.js} +8 -8
  86. package/dist/cli/{legacy-noops-PKNMQMGY.mjs → legacy-noops-R2SML7ED.mjs} +5 -5
  87. package/dist/cli/{monitors-U7AUIOFZ.mjs → monitors-4VGZGJBT.mjs} +8 -8
  88. package/dist/cli/{monitors-5YTGQSGD.js → monitors-OJXDYU4G.js} +92 -92
  89. package/dist/cli/{org-N6DSSLLD.js → org-AELMZFUT.js} +73 -73
  90. package/dist/cli/{org-SRKZRVVH.mjs → org-UGN5ZG2Y.mjs} +7 -7
  91. package/dist/cli/{pages-YPN54RCC.js → pages-L26N7MK3.js} +18 -18
  92. package/dist/cli/{pages-UOPJUFCF.mjs → pages-ZYPAAYSS.mjs} +7 -7
  93. package/dist/cli/{play-4IK4WXWU.mjs → play-ENYB7X4S.mjs} +125 -53
  94. package/dist/cli/{play-MEYZEYOV.js → play-VTZWB3N5.js} +620 -548
  95. package/dist/cli/{providers-UGHUYP4C.mjs → providers-BZQTVAQG.mjs} +7 -7
  96. package/dist/cli/{providers-VS5MK4ZH.js → providers-HWBY6MGQ.js} +10 -10
  97. package/dist/cli/{quickstart-GW2ERQ2A.js → quickstart-D54IJ3PX.js} +6 -6
  98. package/dist/cli/{quickstart-YBOQSLFV.mjs → quickstart-SSQJDWPB.mjs} +4 -4
  99. package/dist/cli/{run-IVGMLY3J.js → run-45NKE7UY.js} +37 -37
  100. package/dist/cli/{run-44JT5GJM.mjs → run-FR3TPYT3.mjs} +23 -23
  101. package/dist/cli/{search-43NY73VR.mjs → search-CZCWSR5L.mjs} +8 -8
  102. package/dist/cli/search-V2GJKQQQ.js +32 -0
  103. package/dist/cli/{secrets-DABUD3B7.js → secrets-KJ5ZEDWT.js} +16 -16
  104. package/dist/cli/{secrets-ONDQGW3B.mjs → secrets-KKK55B4Y.mjs} +7 -7
  105. package/dist/cli/{sessions-AIAKKLSR.mjs → sessions-2YKA54PH.mjs} +5 -5
  106. package/dist/cli/{sessions-4ILQMBKR.js → sessions-QCNPUTDZ.js} +6 -6
  107. package/dist/cli/{settings-HSGKYOJT.mjs → settings-4NI2AS5V.mjs} +12 -12
  108. package/dist/cli/{settings-BWNLL7TP.js → settings-KM3LCPWD.js} +79 -79
  109. package/dist/cli/{setup-LE4OVH4M.mjs → setup-BZF3M54I.mjs} +9 -9
  110. package/dist/cli/{setup-37QOD4UT.js → setup-V5MTS2AA.js} +47 -47
  111. package/dist/cli/skills-CRFYW767.js +33 -0
  112. package/dist/cli/{skills-A3ZVR2YX.mjs → skills-NXYNB3LP.mjs} +7 -7
  113. package/dist/cli/{tools-ITKPPUDT.mjs → tools-57MWFRIZ.mjs} +17 -17
  114. package/dist/cli/tools-Q662HPVJ.js +55 -0
  115. package/dist/cli/{update-XJOSCOK5.mjs → update-QM6H677U.mjs} +9 -9
  116. package/dist/cli/update-TYHKF7F5.js +33 -0
  117. package/dist/cli/{workflow-KYQYFSND.mjs → workflow-NHYDIUWY.mjs} +8 -8
  118. package/dist/cli/{workflow-LERZ3TYV.js → workflow-TGEC4ITO.js} +18 -18
  119. package/dist/{client-B9N1bcGc.d.mts → client-DJ3r8VQJ.d.mts} +1 -1
  120. package/dist/{client-Btw075Hq.d.ts → client-JPSNljtj.d.ts} +1 -1
  121. package/dist/{client-core-TulbIeRB.d.mts → client-core-3SJlNsKU.d.mts} +21 -2
  122. package/dist/{client-core-DvGWlwtX.d.ts → client-core-rCoQ5Xz3.d.ts} +21 -2
  123. package/dist/index.d.mts +3 -3
  124. package/dist/index.d.ts +3 -3
  125. package/dist/index.js +10 -10
  126. package/dist/index.mjs +7 -7
  127. package/dist/install-integrity.json +106 -104
  128. package/dist/plays/bundle-play-file.mjs +5426 -12
  129. package/dist/plays/play-description.d.mts +1 -1
  130. package/dist/plays/play-description.d.ts +1 -1
  131. package/dist/plays/run-request.d.mts +1 -1
  132. package/dist/plays/run-request.d.ts +1 -1
  133. package/dist/plays/run-request.js +4 -2
  134. package/dist/plays/run-request.mjs +3 -1
  135. package/dist/release.d.mts +1 -1
  136. package/dist/release.d.ts +1 -1
  137. package/dist/release.js +2 -2
  138. package/dist/release.mjs +1 -1
  139. package/dist/server.d.mts +2 -2
  140. package/dist/server.d.ts +2 -2
  141. package/dist/server.js +6 -6
  142. package/dist/server.mjs +4 -4
  143. package/package.json +1 -1
  144. package/dist/cli/auth-7FOB243B.js +0 -43
  145. package/dist/cli/chunk-7UFFWPQ2.js +0 -6188
  146. package/dist/cli/chunk-ZBSUXXZS.mjs +0 -6188
  147. package/dist/cli/describe-ZAYUBNUQ.js +0 -48
  148. package/dist/cli/git-A3433UTN.js +0 -25
  149. package/dist/cli/search-2XTYY7BF.js +0 -32
  150. package/dist/cli/skills-TULQXRQJ.js +0 -33
  151. package/dist/cli/tools-QYYBWDXU.js +0 -55
  152. package/dist/cli/update-XSMY7KWH.js +0 -33
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkWQBJHB63js = require('./chunk-WQBJHB63.js');
5
+ var _chunk6WWBVWFQjs = require('./chunk-6WWBVWFQ.js');
6
6
 
7
7
 
8
- var _chunkTBJ23WKTjs = require('./chunk-TBJ23WKT.js');
8
+ var _chunkVBDR2DP6js = require('./chunk-VBDR2DP6.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 } = _chunkWQBJHB63js.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunk6WWBVWFQjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
39
+ _chunk6WWBVWFQjs.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 } = _chunkWQBJHB63js.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunk6WWBVWFQjs.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
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
139
+ _chunk6WWBVWFQjs.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 } = _chunkWQBJHB63js.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunk6WWBVWFQjs.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
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
153
+ _chunk6WWBVWFQjs.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 } = _chunkWQBJHB63js.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunk6WWBVWFQjs.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 } = _chunkWQBJHB63js.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunk6WWBVWFQjs.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
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
200
+ _chunk6WWBVWFQjs.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 } = _chunkWQBJHB63js.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunk6WWBVWFQjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
227
+ _chunk6WWBVWFQjs.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 } = _chunkWQBJHB63js.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunk6WWBVWFQjs.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
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
254
+ _chunk6WWBVWFQjs.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 } = _chunkWQBJHB63js.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunk6WWBVWFQjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
269
+ _chunk6WWBVWFQjs.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 = _chunkTBJ23WKTjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkVBDR2DP6js.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkWQBJHB63js.openInBrowser.call(void 0, connectUrl);
292
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
291
+ const opened = _chunk6WWBVWFQjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunk6WWBVWFQjs.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 } = _chunkWQBJHB63js.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunk6WWBVWFQjs.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
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
322
+ _chunk6WWBVWFQjs.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 } = _chunkWQBJHB63js.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunk6WWBVWFQjs.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
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
371
+ _chunk6WWBVWFQjs.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 } = _chunkWQBJHB63js.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunk6WWBVWFQjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
392
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -1,19 +1,19 @@
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 _chunkMEJJD7PAjs = require('./chunk-MEJJD7PA.js');
4
+ var _chunkKDU6TSGEjs = require('./chunk-KDU6TSGE.js');
5
5
 
6
6
 
7
- var _chunkFZX2DGQZjs = require('./chunk-FZX2DGQZ.js');
7
+ var _chunkEPEAQA6Ojs = require('./chunk-EPEAQA6O.js');
8
8
 
9
9
 
10
- var _chunkNBXG4S2Xjs = require('./chunk-NBXG4S2X.js');
10
+ var _chunkWICQQ7GYjs = require('./chunk-WICQQ7GY.js');
11
11
 
12
12
 
13
- var _chunkWQBJHB63js = require('./chunk-WQBJHB63.js');
13
+ var _chunk6WWBVWFQjs = require('./chunk-6WWBVWFQ.js');
14
14
 
15
15
 
16
- var _chunkTBJ23WKTjs = require('./chunk-TBJ23WKT.js');
16
+ var _chunkVBDR2DP6js = require('./chunk-VBDR2DP6.js');
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  var _child_process = require('child_process');
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
495
495
  }
496
496
  function resolveNpmGlobalPrefix(env) {
497
497
  try {
498
- const plan = _chunkNBXG4S2Xjs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkWICQQ7GYjs.resolveShellSpawn.call(void 0,
499
499
  "npm",
500
500
  ["prefix", "-g"],
501
501
  process.platform,
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
556
556
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
557
557
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
558
558
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
559
- const npmVersion = options.npmVersion === void 0 ? _chunkMEJJD7PAjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkMEJJD7PAjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
559
+ const npmVersion = options.npmVersion === void 0 ? _chunkKDU6TSGEjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkKDU6TSGEjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
561
561
  const args = installPrefix ? [
562
562
  "install",
563
563
  "-g",
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
567
567
  packageSpec
568
568
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
569
569
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
570
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkTBJ23WKTjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkVBDR2DP6js.autoDetectBaseUrl.call(void 0, )
571
571
  );
572
572
  return {
573
573
  kind: "npm-global",
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
816
816
  function runCommand(command, args, env = process.env) {
817
817
  return new Promise((resolveResult) => {
818
818
  let output = "";
819
- const plan = _chunkNBXG4S2Xjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkWICQQ7GYjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
820
820
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
821
821
  stdio: ["inherit", "pipe", "pipe"],
822
822
  shell: plan.shell,
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1199
1199
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1200
1200
  }
1201
1201
  async function runUpdateCommand(options, dependencies = {}) {
1202
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkTBJ23WKTjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkVBDR2DP6js.autoDetectBaseUrl));
1203
1203
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1204
1204
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1205
1205
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1206
1206
  const originalWrite = process.stdout.write.bind(process.stdout);
1207
1207
  process.stdout.write = (() => true);
1208
1208
  try {
1209
- const exitCode = await _chunkFZX2DGQZjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkEPEAQA6Ojs.runSkillsCommand.call(void 0, { json: true });
1210
1210
  if (exitCode !== 0) {
1211
1211
  throw new Error(
1212
1212
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1277
1277
  ]
1278
1278
  };
1279
1279
  if (options.json && !options.executeWithJson) {
1280
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
1284
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ...plan,
1287
1287
  render: {
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1294
1294
  return 0;
1295
1295
  }
1296
1296
  if (plan.kind === "source" || plan.kind === "homebrew") {
1297
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1298
1298
  return 0;
1299
1299
  }
1300
1300
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
1327
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkWQBJHB63js = require('./chunk-WQBJHB63.js');
5
+ var _chunk6WWBVWFQjs = require('./chunk-6WWBVWFQ.js');
6
6
 
7
7
 
8
8
 
@@ -22,14 +22,14 @@ var _chunkWQBJHB63js = require('./chunk-WQBJHB63.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkTBJ23WKTjs = require('./chunk-TBJ23WKT.js');
25
+ var _chunkVBDR2DP6js = require('./chunk-VBDR2DP6.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
- var _chunkDQYJXVAFjs = require('./chunk-DQYJXVAF.js');
32
+ var _chunkWF5QE2IWjs = require('./chunk-WF5QE2IW.js');
33
33
 
34
34
 
35
35
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
60
60
  return `Service notice: ${banner.message}`;
61
61
  }
62
62
  function envFilePath(baseUrl) {
63
- return _chunkTBJ23WKTjs.hostEnvFilePath.call(void 0, baseUrl);
63
+ return _chunkVBDR2DP6js.hostEnvFilePath.call(void 0, baseUrl);
64
64
  }
65
65
  function normalizeAuthScope(value) {
66
66
  if (!value || value === "global") return "global";
@@ -73,7 +73,7 @@ function parseAuthScope(args) {
73
73
  }
74
74
  function pendingClaimPath(baseUrl, scope) {
75
75
  if (scope === "folder") {
76
- const target = _chunkTBJ23WKTjs.resolveProjectPinTarget.call(void 0, );
76
+ const target = _chunkVBDR2DP6js.resolveProjectPinTarget.call(void 0, );
77
77
  if (!target.ok) {
78
78
  throw new Error(
79
79
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -83,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
83
83
  }
84
84
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
85
85
  }
86
- return `${_chunkTBJ23WKTjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
86
+ return `${_chunkVBDR2DP6js.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
87
87
  }
88
88
  function legacyPendingClaimTokenPath(baseUrl) {
89
- return `${_chunkTBJ23WKTjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
89
+ return `${_chunkVBDR2DP6js.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
90
90
  }
91
91
  function savePendingClaim(baseUrl, claim) {
92
92
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -190,21 +190,21 @@ function parseRegisterWaitMode(args) {
190
190
  function shouldWaitForRegisterClaim(mode) {
191
191
  if (mode === "yes") return true;
192
192
  if (mode === "no") return false;
193
- return _chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
193
+ return _chunkWF5QE2IWjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
194
194
  }
195
195
  function saveEnvValues(values, baseUrl, scope) {
196
196
  const filtered = {
197
- ...values[_chunkTBJ23WKTjs.HOST_URL_ENV] ? { [_chunkTBJ23WKTjs.HOST_URL_ENV]: values[_chunkTBJ23WKTjs.HOST_URL_ENV] } : {},
198
- ...values[_chunkTBJ23WKTjs.API_KEY_ENV] ? { [_chunkTBJ23WKTjs.API_KEY_ENV]: values[_chunkTBJ23WKTjs.API_KEY_ENV] } : {},
199
- ...values[_chunkTBJ23WKTjs.ACTIVE_ORG_ID_ENV] ? { [_chunkTBJ23WKTjs.ACTIVE_ORG_ID_ENV]: values[_chunkTBJ23WKTjs.ACTIVE_ORG_ID_ENV] } : {},
200
- ...Object.prototype.hasOwnProperty.call(values, _chunkTBJ23WKTjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkTBJ23WKTjs.ACTIVE_ORG_NAME_ENV]: values[_chunkTBJ23WKTjs.ACTIVE_ORG_NAME_ENV] } : {},
197
+ ...values[_chunkVBDR2DP6js.HOST_URL_ENV] ? { [_chunkVBDR2DP6js.HOST_URL_ENV]: values[_chunkVBDR2DP6js.HOST_URL_ENV] } : {},
198
+ ...values[_chunkVBDR2DP6js.API_KEY_ENV] ? { [_chunkVBDR2DP6js.API_KEY_ENV]: values[_chunkVBDR2DP6js.API_KEY_ENV] } : {},
199
+ ...values[_chunkVBDR2DP6js.ACTIVE_ORG_ID_ENV] ? { [_chunkVBDR2DP6js.ACTIVE_ORG_ID_ENV]: values[_chunkVBDR2DP6js.ACTIVE_ORG_ID_ENV] } : {},
200
+ ...Object.prototype.hasOwnProperty.call(values, _chunkVBDR2DP6js.ACTIVE_ORG_NAME_ENV) ? { [_chunkVBDR2DP6js.ACTIVE_ORG_NAME_ENV]: values[_chunkVBDR2DP6js.ACTIVE_ORG_NAME_ENV] } : {},
201
201
  // An explicit empty list must reach the store: it clears a stale line.
202
- ...Object.prototype.hasOwnProperty.call(values, _chunkTBJ23WKTjs.FEATURES_ENV) ? { [_chunkTBJ23WKTjs.FEATURES_ENV]: values[_chunkTBJ23WKTjs.FEATURES_ENV] } : {}
202
+ ...Object.prototype.hasOwnProperty.call(values, _chunkVBDR2DP6js.FEATURES_ENV) ? { [_chunkVBDR2DP6js.FEATURES_ENV]: values[_chunkVBDR2DP6js.FEATURES_ENV] } : {}
203
203
  };
204
204
  if (scope === "folder") {
205
- _chunkTBJ23WKTjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
205
+ _chunkVBDR2DP6js.saveProjectDeeplineEnvValues.call(void 0, filtered);
206
206
  } else {
207
- _chunkTBJ23WKTjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
207
+ _chunkVBDR2DP6js.saveHostEnvValues.call(void 0, baseUrl, filtered);
208
208
  }
209
209
  }
210
210
  function activeOrgEnvValues(data) {
@@ -212,21 +212,21 @@ function activeOrgEnvValues(data) {
212
212
  if (!orgId) return {};
213
213
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
214
214
  return {
215
- [_chunkTBJ23WKTjs.ACTIVE_ORG_ID_ENV]: orgId,
216
- [_chunkTBJ23WKTjs.ACTIVE_ORG_NAME_ENV]: orgName,
217
- ..._chunkTBJ23WKTjs.featureEnvValues.call(void 0, data)
215
+ [_chunkVBDR2DP6js.ACTIVE_ORG_ID_ENV]: orgId,
216
+ [_chunkVBDR2DP6js.ACTIVE_ORG_NAME_ENV]: orgName,
217
+ ..._chunkVBDR2DP6js.featureEnvValues.call(void 0, data)
218
218
  };
219
219
  }
220
220
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
221
221
  const headers = {
222
222
  "Content-Type": "application/json",
223
- "User-Agent": `deepline-ts-sdk/${_chunkDQYJXVAFjs.SDK_VERSION}`,
223
+ "User-Agent": `deepline-ts-sdk/${_chunkWF5QE2IWjs.SDK_VERSION}`,
224
224
  "X-Deepline-Client-Family": "sdk",
225
225
  "X-Deepline-CLI-Family": "sdk",
226
- "X-Deepline-Agent-Runtime": _chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, ),
227
- "X-Deepline-CLI-Version": _chunkDQYJXVAFjs.SDK_VERSION,
228
- "X-Deepline-SDK-Version": _chunkDQYJXVAFjs.SDK_VERSION,
229
- "X-Deepline-API-Contract": _chunkDQYJXVAFjs.SDK_API_CONTRACT
226
+ "X-Deepline-Agent-Runtime": _chunkWF5QE2IWjs.detectAgentRuntime.call(void 0, ),
227
+ "X-Deepline-CLI-Version": _chunkWF5QE2IWjs.SDK_VERSION,
228
+ "X-Deepline-SDK-Version": _chunkWF5QE2IWjs.SDK_VERSION,
229
+ "X-Deepline-API-Contract": _chunkWF5QE2IWjs.SDK_API_CONTRACT
230
230
  };
231
231
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
232
232
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -265,10 +265,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
265
265
  if (failure.name === "AbortError" || failure.name === "TimeoutError") {
266
266
  throw failure;
267
267
  }
268
- const causeCode = _chunkDQYJXVAFjs.networkCauseCode.call(void 0, failure);
268
+ const causeCode = _chunkWF5QE2IWjs.networkCauseCode.call(void 0, failure);
269
269
  throw Object.assign(
270
270
  new (0, _chunkDIAWYWT5js.DeeplineError)(
271
- _chunkDQYJXVAFjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
271
+ _chunkWF5QE2IWjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
272
272
  void 0,
273
273
  "NETWORK_ERROR",
274
274
  causeCode ? { causeCode } : void 0
@@ -285,7 +285,7 @@ async function readStatusBanner(baseUrl) {
285
285
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
286
286
  }
287
287
  async function reportSetupCompleted(input) {
288
- const apiKey = input.authScope === "folder" ? _chunkTBJ23WKTjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkTBJ23WKTjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
288
+ const apiKey = input.authScope === "folder" ? _chunkVBDR2DP6js.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkVBDR2DP6js.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
289
289
  if (!apiKey) return;
290
290
  try {
291
291
  await httpJson(
@@ -398,7 +398,7 @@ async function reportApprovalLinkShown(baseUrl, claim, mode) {
398
398
  }
399
399
  }
400
400
  async function handleRegister(args, options) {
401
- const baseUrl = _chunkTBJ23WKTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
401
+ const baseUrl = _chunkVBDR2DP6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
402
402
  let orgName = "";
403
403
  let orgId = "";
404
404
  let agentName = "";
@@ -457,19 +457,19 @@ async function handleRegister(args, options) {
457
457
  savePendingClaim(baseUrl, pendingClaim);
458
458
  saveEnvValues(
459
459
  {
460
- [_chunkTBJ23WKTjs.HOST_URL_ENV]: baseUrl
460
+ [_chunkVBDR2DP6js.HOST_URL_ENV]: baseUrl
461
461
  },
462
462
  baseUrl,
463
463
  authScope
464
464
  );
465
465
  }
466
466
  if (claimUrl) {
467
- const shouldOpen = waitMode !== "no" && _chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
467
+ const shouldOpen = waitMode !== "no" && _chunkWF5QE2IWjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
468
468
  console.log(
469
469
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
470
470
  );
471
471
  console.log(` ${claimUrl}`);
472
- if (shouldOpen) _chunkWQBJHB63js.openInBrowser.call(void 0, claimUrl);
472
+ if (shouldOpen) _chunk6WWBVWFQjs.openInBrowser.call(void 0, claimUrl);
473
473
  if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
474
474
  await reportApprovalLinkShown(
475
475
  baseUrl,
@@ -519,8 +519,8 @@ async function handleRegister(args, options) {
519
519
  if (apiKey) {
520
520
  saveEnvValues(
521
521
  {
522
- [_chunkTBJ23WKTjs.HOST_URL_ENV]: baseUrl,
523
- [_chunkTBJ23WKTjs.API_KEY_ENV]: apiKey,
522
+ [_chunkVBDR2DP6js.HOST_URL_ENV]: baseUrl,
523
+ [_chunkVBDR2DP6js.API_KEY_ENV]: apiKey,
524
524
  ...activeOrgEnvValues(statusData)
525
525
  },
526
526
  baseUrl,
@@ -542,7 +542,7 @@ async function handleRegister(args, options) {
542
542
  }
543
543
  }
544
544
  async function handleWait(args) {
545
- const baseUrl = _chunkTBJ23WKTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
545
+ const baseUrl = _chunkVBDR2DP6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
546
546
  let timeoutSeconds = 300;
547
547
  let requestedScope;
548
548
  if (args.includes("--auth-scope")) {
@@ -566,7 +566,7 @@ async function handleWait(args) {
566
566
  const authScope = resumed.scope;
567
567
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
568
568
  if (!pendingClaim) {
569
- const scopedApiKey = authScope === "folder" ? _chunkTBJ23WKTjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkTBJ23WKTjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
569
+ const scopedApiKey = authScope === "folder" ? _chunkVBDR2DP6js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkVBDR2DP6js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
570
570
  if (scopedApiKey) {
571
571
  console.log("Already connected.");
572
572
  return EXIT_OK;
@@ -609,8 +609,8 @@ async function handleWait(args) {
609
609
  if (apiKey) {
610
610
  saveEnvValues(
611
611
  {
612
- [_chunkTBJ23WKTjs.HOST_URL_ENV]: baseUrl,
613
- [_chunkTBJ23WKTjs.API_KEY_ENV]: apiKey,
612
+ [_chunkVBDR2DP6js.HOST_URL_ENV]: baseUrl,
613
+ [_chunkVBDR2DP6js.API_KEY_ENV]: apiKey,
614
614
  ...activeOrgEnvValues(data)
615
615
  },
616
616
  baseUrl,
@@ -634,8 +634,8 @@ async function handleWait(args) {
634
634
  return EXIT_AUTH;
635
635
  }
636
636
  async function authStatusLine(timeoutMs = 3e3) {
637
- const baseUrl = _chunkTBJ23WKTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
638
- const apiKey = _chunkTBJ23WKTjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
637
+ const baseUrl = _chunkVBDR2DP6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
638
+ const apiKey = _chunkVBDR2DP6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
639
639
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
640
640
  try {
641
641
  const { status, data } = await httpJson(
@@ -658,9 +658,9 @@ async function authStatusLine(timeoutMs = 3e3) {
658
658
  }
659
659
  }
660
660
  async function handleStatus(args) {
661
- const baseUrl = _chunkTBJ23WKTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
661
+ const baseUrl = _chunkVBDR2DP6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
662
662
  const reveal = args.includes("--reveal");
663
- const jsonOutput = _chunkWQBJHB63js.argsWantJson.call(void 0, args);
663
+ const jsonOutput = _chunk6WWBVWFQjs.argsWantJson.call(void 0, args);
664
664
  const hasExplicitAuthScope = args.includes("--auth-scope");
665
665
  let authScope = null;
666
666
  if (hasExplicitAuthScope) {
@@ -701,14 +701,14 @@ async function handleStatus(args) {
701
701
  };
702
702
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
703
703
  }
704
- const apiKey = authScope === "folder" ? _chunkTBJ23WKTjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkTBJ23WKTjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkTBJ23WKTjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
704
+ const apiKey = authScope === "folder" ? _chunkVBDR2DP6js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkVBDR2DP6js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkVBDR2DP6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
705
705
  if (!apiKey) {
706
706
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
707
707
  baseUrl,
708
708
  _nullishCoalesce(authScope, () => ( void 0))
709
709
  );
710
710
  if (pendingClaim) {
711
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
711
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
712
712
  {
713
713
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
714
714
  status: "pending",
@@ -729,7 +729,7 @@ async function handleStatus(args) {
729
729
  );
730
730
  return EXIT_OK;
731
731
  }
732
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
732
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
733
733
  {
734
734
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
735
735
  status: "not connected",
@@ -762,7 +762,7 @@ async function handleStatus(args) {
762
762
  }
763
763
  );
764
764
  if (status === 401 || status === 403) {
765
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
765
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
766
766
  {
767
767
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
768
768
  status: "unauthorized",
@@ -789,7 +789,7 @@ async function handleStatus(args) {
789
789
  console.error(`Auth status error (status ${status}).`);
790
790
  return EXIT_SERVER;
791
791
  }
792
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkTBJ23WKTjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
792
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkVBDR2DP6js.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
793
793
  clearSatisfiedPendingClaim(
794
794
  baseUrl,
795
795
  resolvedAuthScope,
@@ -817,28 +817,28 @@ async function handleStatus(args) {
817
817
  if (apiKeyResp) {
818
818
  saveEnvValues(
819
819
  {
820
- [_chunkTBJ23WKTjs.HOST_URL_ENV]: baseUrl,
821
- [_chunkTBJ23WKTjs.API_KEY_ENV]: apiKeyResp,
820
+ [_chunkVBDR2DP6js.HOST_URL_ENV]: baseUrl,
821
+ [_chunkVBDR2DP6js.API_KEY_ENV]: apiKeyResp,
822
822
  ...activeOrgEnvValues(data)
823
823
  },
824
824
  baseUrl,
825
825
  resolvedAuthScope
826
826
  );
827
827
  if (resolvedAuthScope === "folder") {
828
- const target = _chunkTBJ23WKTjs.resolveProjectPinTarget.call(void 0, );
828
+ const target = _chunkVBDR2DP6js.resolveProjectPinTarget.call(void 0, );
829
829
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
830
830
  } else {
831
831
  savedApiKeyPath = envFilePath(baseUrl);
832
832
  }
833
833
  }
834
- } else if (resolvedAuthScope === "folder" || _chunkTBJ23WKTjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
835
- saveEnvValues(_chunkTBJ23WKTjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
834
+ } else if (resolvedAuthScope === "folder" || _chunkVBDR2DP6js.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
835
+ saveEnvValues(_chunkVBDR2DP6js.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
836
836
  }
837
- _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
837
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
838
838
  {
839
839
  ...payload,
840
- ..._chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
841
- command_context: _chunkTBJ23WKTjs.resolveCliCommandContext.call(void 0,
840
+ ..._chunkWF5QE2IWjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
841
+ command_context: _chunkVBDR2DP6js.resolveCliCommandContext.call(void 0,
842
842
  { baseUrl, apiKey },
843
843
  resolvedAuthScope
844
844
  )
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkTBJ23WKTjs = require('./chunk-TBJ23WKT.js');
5
+ var _chunkVBDR2DP6js = require('./chunk-VBDR2DP6.js');
6
6
 
7
7
 
8
- var _chunkDQYJXVAFjs = require('./chunk-DQYJXVAF.js');
8
+ var _chunkWF5QE2IWjs = require('./chunk-WF5QE2IW.js');
9
9
 
10
10
 
11
11
 
@@ -290,8 +290,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
290
290
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
291
291
  var defaultBrowserCommandRunner = childProcess;
292
292
  function getAuthedHttpClient() {
293
- const config = _chunkTBJ23WKTjs.resolveConfig.call(void 0, );
294
- return { config, http: new (0, _chunkTBJ23WKTjs.HttpClient)(config) };
293
+ const config = _chunkVBDR2DP6js.resolveConfig.call(void 0, );
294
+ return { config, http: new (0, _chunkVBDR2DP6js.HttpClient)(config) };
295
295
  }
296
296
  function stableOsUserId() {
297
297
  try {
@@ -631,7 +631,7 @@ function collectLocalEnvInfo() {
631
631
  os: `${process.platform} ${process.arch}`,
632
632
  node_version: process.version,
633
633
  home_dir: homeDir,
634
- agent_runtime: _chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, )
634
+ agent_runtime: _chunkWF5QE2IWjs.detectAgentRuntime.call(void 0, )
635
635
  };
636
636
  const env = process.env;
637
637
  const optional = {
@@ -878,9 +878,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
878
878
  }
879
879
  function withAgentCommandContext(value) {
880
880
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
881
- return _chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
881
+ return _chunkWF5QE2IWjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
882
882
  ...valueRecord,
883
- command_context: _chunkTBJ23WKTjs.resolveCliCommandContext.call(void 0, )
883
+ command_context: _chunkVBDR2DP6js.resolveCliCommandContext.call(void 0, )
884
884
  } : value;
885
885
  }
886
886
  function printJson(value, fields) {