deepline 0.3.575 → 0.3.577

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 (145) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +13 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +145 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +17 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +8 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +153 -10
  6. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +41 -5
  7. package/dist/cli/{agents-ULGDKUTM.mjs → agents-SUJRATC2.mjs} +58 -10
  8. package/dist/cli/{agents-BCLO3KQJ.js → agents-ZIGK3FQ2.js} +84 -36
  9. package/dist/cli/auth-A5U6GVCF.js +44 -0
  10. package/dist/cli/{auth-4WCL7A6W.mjs → auth-TRKPRZK6.mjs} +5 -5
  11. package/dist/cli/{billing-BF5LVXOM.js → billing-6RAF4DQY.js} +102 -102
  12. package/dist/cli/{billing-7JQ6EUQU.mjs → billing-WPQT3QRS.mjs} +9 -9
  13. package/dist/cli/{chunk-636GD4IR.js → chunk-2NFDB6CL.js} +2 -2
  14. package/dist/cli/{chunk-UQZP7XBQ.mjs → chunk-425SUSDJ.mjs} +5 -5
  15. package/dist/cli/{chunk-TTBZ7QXX.mjs → chunk-4ANO4DM5.mjs} +1 -1
  16. package/dist/cli/{chunk-V5XLENWK.js → chunk-772IV64Y.js} +5 -5
  17. package/dist/cli/{chunk-NF722E6C.mjs → chunk-APJ6YIYW.mjs} +1 -1
  18. package/dist/cli/{chunk-XFV353R2.js → chunk-APOWCBO7.js} +23 -23
  19. package/dist/cli/{chunk-IOWLFWWG.mjs → chunk-ATW77ZBL.mjs} +2 -2
  20. package/dist/cli/{chunk-RHRRY2BX.mjs → chunk-CCGFSELM.mjs} +3 -3
  21. package/dist/cli/{chunk-3PVKXUSJ.mjs → chunk-CWHXE6HJ.mjs} +1 -1
  22. package/dist/cli/{chunk-5H6254MJ.js → chunk-CZF2LKIT.js} +16 -16
  23. package/dist/cli/{chunk-GQZFZG6R.mjs → chunk-DA5C5WOI.mjs} +2 -2
  24. package/dist/cli/{chunk-EZIXKNKM.js → chunk-DJP7CJQC.js} +3 -3
  25. package/dist/cli/{chunk-G4WPDCXA.js → chunk-EJN43WGD.js} +48 -48
  26. package/dist/cli/{chunk-ZYSJND73.js → chunk-EKZ6JD6K.js} +9 -9
  27. package/dist/cli/{chunk-737Y7QGT.js → chunk-EV47DV25.js} +41 -41
  28. package/dist/cli/{chunk-IBYMGR5Y.mjs → chunk-FHYNK7GL.mjs} +1 -1
  29. package/dist/cli/{chunk-7DLAJ6JJ.js → chunk-FRYLXDNP.js} +53 -53
  30. package/dist/cli/{chunk-EV3OPDHF.js → chunk-FXN5WSTY.js} +20 -20
  31. package/dist/cli/{chunk-MN7JLH2T.mjs → chunk-GFWVBXAK.mjs} +2 -2
  32. package/dist/cli/{chunk-MWLOBURN.mjs → chunk-H6NF5SNY.mjs} +2 -2
  33. package/dist/cli/{chunk-E4RYSSXX.mjs → chunk-I44Y4MPK.mjs} +1 -1
  34. package/dist/cli/{chunk-BM536WWR.mjs → chunk-ID5WQZ2H.mjs} +11 -1
  35. package/dist/cli/{chunk-ZS6DT4LD.js → chunk-ITK5TGQ7.js} +15 -15
  36. package/dist/cli/{chunk-AO56MZ7D.js → chunk-JHQ7FORY.js} +3 -3
  37. package/dist/cli/{chunk-G2H6SQQY.js → chunk-JWLV3XRF.js} +7 -7
  38. package/dist/cli/{chunk-DMPGJCNZ.js → chunk-KVDIN2YW.js} +29 -1
  39. package/dist/cli/{chunk-5D7OJY4W.mjs → chunk-LUQMTNFB.mjs} +1 -1
  40. package/dist/cli/{chunk-H3CG72RZ.mjs → chunk-LXM36EXW.mjs} +11 -11
  41. package/dist/cli/{chunk-QKP3WYSZ.mjs → chunk-MDP3CNDM.mjs} +2 -2
  42. package/dist/cli/{chunk-H6JMRLAZ.js → chunk-MOWABWHT.js} +100 -100
  43. package/dist/cli/{chunk-ZQXJYO5P.js → chunk-MTHAVEQN.js} +5 -5
  44. package/dist/cli/{chunk-IAJ65IDZ.mjs → chunk-MTM6WNPP.mjs} +4 -4
  45. package/dist/cli/{chunk-CVY4MBXH.mjs → chunk-MVCKEPWF.mjs} +5 -5
  46. package/dist/cli/{chunk-JGLCK2XF.mjs → chunk-N6EU2FRF.mjs} +2 -2
  47. package/dist/cli/{chunk-TMFR2B45.mjs → chunk-NDMKFA6W.mjs} +3 -3
  48. package/dist/cli/{chunk-HO76C7AE.js → chunk-NMSDMXYS.js} +2 -2
  49. package/dist/cli/{chunk-FXXERR52.js → chunk-NRBIYZUG.js} +10 -10
  50. package/dist/cli/{chunk-YNAXKA23.js → chunk-NVJGVNEN.js} +5 -5
  51. package/dist/cli/{chunk-X47J55ZJ.mjs → chunk-O35BHZLQ.mjs} +2 -2
  52. package/dist/cli/{chunk-2UM3I2MY.js → chunk-OBZB4J7B.js} +11 -1
  53. package/dist/cli/{chunk-2T7XOKVL.mjs → chunk-OQQDNJ2D.mjs} +5 -5
  54. package/dist/cli/{chunk-FDCU3VAJ.mjs → chunk-ORLJIJVX.mjs} +29 -1
  55. package/dist/cli/{chunk-BQUAE6LQ.mjs → chunk-Q3WDT3YA.mjs} +1 -1
  56. package/dist/cli/{chunk-GB4IZ5TV.js → chunk-QXAPAHIG.js} +13 -13
  57. package/dist/cli/{chunk-KNCNFL76.js → chunk-RSZSKTRC.js} +4 -4
  58. package/dist/cli/{chunk-HEOM3FAC.js → chunk-RVICQWXU.js} +20 -20
  59. package/dist/cli/{chunk-SYQTBHRX.mjs → chunk-U6Y4HX6J.mjs} +3 -3
  60. package/dist/cli/{chunk-AS5XGOZY.js → chunk-V5SF5CJ7.js} +2 -2
  61. package/dist/cli/{chunk-BONMEBWZ.mjs → chunk-WP4Q5PTK.mjs} +4 -4
  62. package/dist/cli/{chunk-5VSHQG5E.js → chunk-X5ZE7K4J.js} +8 -8
  63. package/dist/cli/{chunk-56N3XAT6.mjs → chunk-X7Y4T7CV.mjs} +5 -5
  64. package/dist/cli/{chunk-QEDRUURT.mjs → chunk-XQTJET2Y.mjs} +1 -1
  65. package/dist/cli/{chunk-6IKLITVH.js → chunk-Y37JQZBP.js} +6 -6
  66. package/dist/cli/{chunk-PQYDO72W.js → chunk-ZHJIDDYR.js} +26 -26
  67. package/dist/cli/command-docs.js +2 -2
  68. package/dist/cli/command-docs.mjs +1 -1
  69. package/dist/cli/{concurrent-runs-help-HITK6EOO.mjs → concurrent-runs-help-6CGXMTFQ.mjs} +6 -6
  70. package/dist/cli/concurrent-runs-help-VJDPVGXM.js +22 -0
  71. package/dist/cli/{csv-RS7XHQ4P.js → csv-7UZT2LGE.js} +13 -13
  72. package/dist/cli/{csv-V2T23MXT.mjs → csv-L7P6PC6I.mjs} +4 -4
  73. package/dist/cli/{db-OQ4RNTGE.mjs → db-4OOEC5KV.mjs} +6 -6
  74. package/dist/cli/{db-WFIVRPKY.js → db-7KETOIZY.js} +27 -27
  75. package/dist/cli/{describe-AXV2EEX3.mjs → describe-M6HEFS46.mjs} +18 -18
  76. package/dist/cli/describe-RLWJYZIR.js +50 -0
  77. package/dist/cli/{executions-THP5ZDBQ.mjs → executions-U27R2LY4.mjs} +6 -6
  78. package/dist/cli/{executions-5H2RIWZ3.js → executions-UIR6RQFM.js} +8 -8
  79. package/dist/cli/{feedback-UOI6UEGA.js → feedback-CQ5FUE4T.js} +14 -14
  80. package/dist/cli/{feedback-2EJPILGE.mjs → feedback-UUUISTGQ.mjs} +6 -6
  81. package/dist/cli/{git-DI3LJIAT.mjs → git-DTILSRIQ.mjs} +5 -5
  82. package/dist/cli/git-ZGDD3BVX.js +26 -0
  83. package/dist/cli/index.js +148 -148
  84. package/dist/cli/index.mjs +47 -47
  85. package/dist/cli/{integrations-TYN2BSQ6.js → integrations-ABBLLEJH.js} +29 -29
  86. package/dist/cli/{integrations-DJYS5VRK.mjs → integrations-NNACG3HD.mjs} +7 -7
  87. package/dist/cli/{legacy-noops-GXQHNLGJ.js → legacy-noops-3JLS5OD7.js} +9 -9
  88. package/dist/cli/{legacy-noops-Z457BB6O.mjs → legacy-noops-KQW7AIYU.mjs} +6 -6
  89. package/dist/cli/{mcp-NAW3GFNN.mjs → mcp-7NHGPYZH.mjs} +4 -4
  90. package/dist/cli/{mcp-WMBOOTQL.js → mcp-JPBFKR26.js} +24 -24
  91. package/dist/cli/{monitors-OOQVE7XR.js → monitors-J6HK5KCN.js} +100 -100
  92. package/dist/cli/{monitors-A7NYAXSJ.mjs → monitors-JOE2DALW.mjs} +7 -7
  93. package/dist/cli/{org-7YCDUSZE.mjs → org-VZZ4LN4O.mjs} +6 -6
  94. package/dist/cli/{org-D2AMIVBS.js → org-WFZFQIXQ.js} +121 -121
  95. package/dist/cli/{outcomes-TNTKCUEO.mjs → outcomes-H2WEZYNT.mjs} +6 -6
  96. package/dist/cli/{outcomes-2FKZDJSQ.js → outcomes-RZWL47BJ.js} +14 -14
  97. package/dist/cli/{play-NWKHCHVZ.js → play-2ZEBUF5T.js} +336 -336
  98. package/dist/cli/{play-L6CVHSN4.mjs → play-KMWA7GVN.mjs} +19 -19
  99. package/dist/cli/{providers-22LO747B.mjs → providers-2BIA3OWA.mjs} +6 -6
  100. package/dist/cli/{providers-PZGOI5CN.js → providers-57AZWFSW.js} +9 -9
  101. package/dist/cli/{quickstart-LLWOC2GR.js → quickstart-EYJFERQO.js} +6 -6
  102. package/dist/cli/{quickstart-3ZRVKGMH.mjs → quickstart-NSDM2RXV.mjs} +4 -4
  103. package/dist/cli/{run-SNF23STR.js → run-BW62DZGQ.js} +44 -44
  104. package/dist/cli/{run-D46W2GUA.mjs → run-X6H5SCEE.mjs} +23 -23
  105. package/dist/cli/{search-XWVCICIX.mjs → search-2VN74P5N.mjs} +7 -7
  106. package/dist/cli/search-HYRDZVPQ.js +32 -0
  107. package/dist/cli/{search-output-36GHD67U.js → search-output-SFWQVBYU.js} +6 -6
  108. package/dist/cli/{search-output-YM5QXFQQ.mjs → search-output-VN7XOZEQ.mjs} +4 -4
  109. package/dist/cli/{secrets-7PTZEFRC.mjs → secrets-4M26N436.mjs} +6 -6
  110. package/dist/cli/{secrets-UXCIHG5I.js → secrets-OIPKG2H7.js} +15 -15
  111. package/dist/cli/sessions-5P2KZOQE.js +23 -0
  112. package/dist/cli/{sessions-DTXJKRP4.mjs → sessions-SYFH23L3.mjs} +6 -6
  113. package/dist/cli/{settings-74B6UOS4.mjs → settings-4HPF3T4P.mjs} +12 -12
  114. package/dist/cli/{settings-EYSDZE37.js → settings-5NB4HZYL.js} +85 -85
  115. package/dist/cli/{setup-2QRZ36CH.mjs → setup-CI74F6CL.mjs} +9 -9
  116. package/dist/cli/{setup-E7PVXBPL.js → setup-JV3F5C7P.js} +49 -49
  117. package/dist/cli/{skills-2WZ7N3UW.mjs → skills-76CM4GHO.mjs} +7 -7
  118. package/dist/cli/skills-PJ5EL32L.js +37 -0
  119. package/dist/cli/{tools-YK5SCUZD.mjs → tools-SVGLDWOC.mjs} +17 -17
  120. package/dist/cli/tools-Y5ID2SPK.js +57 -0
  121. package/dist/cli/update-FSUMCMNZ.js +37 -0
  122. package/dist/cli/{update-563YQK53.mjs → update-KPMDOZRX.mjs} +9 -9
  123. package/dist/cli/{views-ISNCRZUP.mjs → views-KW54SAES.mjs} +6 -6
  124. package/dist/cli/{views-OLPS6TPG.js → views-R37NWN6J.js} +21 -21
  125. package/dist/cli/{workflow-B3ZKU3OR.mjs → workflow-3MIRQV4Q.mjs} +7 -7
  126. package/dist/cli/{workflow-CUSCTYMW.js → workflow-BKRKUNYS.js} +17 -17
  127. package/dist/index.js +9 -9
  128. package/dist/index.mjs +6 -6
  129. package/dist/install-integrity.json +116 -116
  130. package/dist/release.d.mts +9 -1
  131. package/dist/release.d.ts +9 -1
  132. package/dist/release.js +2 -2
  133. package/dist/release.mjs +1 -1
  134. package/dist/server.js +5 -5
  135. package/dist/server.mjs +3 -3
  136. package/package.json +1 -1
  137. package/dist/cli/auth-DXUHEL5I.js +0 -44
  138. package/dist/cli/concurrent-runs-help-JLWY54WL.js +0 -22
  139. package/dist/cli/describe-33PBWO5O.js +0 -50
  140. package/dist/cli/git-2OPYEPYW.js +0 -26
  141. package/dist/cli/search-H57MZPLF.js +0 -32
  142. package/dist/cli/sessions-JJZMQSH4.js +0 -23
  143. package/dist/cli/skills-RIF2DCZI.js +0 -37
  144. package/dist/cli/tools-7VRQ4GSI.js +0 -57
  145. package/dist/cli/update-CMZAIAES.js +0 -37
@@ -11,20 +11,20 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkG4WPDCXAjs = require('./chunk-G4WPDCXA.js');
14
+ var _chunkEJN43WGDjs = require('./chunk-EJN43WGD.js');
15
15
 
16
16
 
17
- var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
17
+ var _chunkFXN5WSTYjs = require('./chunk-FXN5WSTY.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkAO56MZ7Djs = require('./chunk-AO56MZ7D.js');
23
+ var _chunkJHQ7FORYjs = require('./chunk-JHQ7FORY.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkKNCNFL76js = require('./chunk-KNCNFL76.js');
27
+ var _chunkRSZSKTRCjs = require('./chunk-RSZSKTRC.js');
28
28
 
29
29
 
30
30
  var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
145
145
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
146
146
  }
147
147
  function resolveLocalRoot() {
148
- const target = _chunkAO56MZ7Djs.resolveProjectPinTarget.call(void 0, );
148
+ const target = _chunkJHQ7FORYjs.resolveProjectPinTarget.call(void 0, );
149
149
  if (!target.ok) {
150
150
  throw new Error(
151
151
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
156
156
  return target.dir;
157
157
  }
158
158
  function detectSkillsAgents(input) {
159
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkKNCNFL76js.detectAgentRuntime.call(void 0, )));
159
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkRSZSKTRCjs.detectAgentRuntime.call(void 0, )));
160
160
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
161
161
  if (knownAgent) return [knownAgent];
162
162
  const roots = [
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
171
171
  return detected.length > 0 ? detected : ["*"];
172
172
  }
173
173
  function skillsStatePathForScope(baseUrl, scope, root) {
174
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkAO56MZ7Djs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
174
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkJHQ7FORYjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
175
175
  }
176
176
  function buildSkillsPlan(input) {
177
177
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
178
- const legacyNames = [..._chunkG4WPDCXAjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
178
+ const legacyNames = [..._chunkEJN43WGDjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
179
179
  (a, b) => a.localeCompare(b)
180
180
  );
181
181
  return {
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
189
189
  args: [
190
190
  "exec",
191
191
  "--yes",
192
- `--package=${_chunkG4WPDCXAjs.SKILLS_NPX_PACKAGE}`,
192
+ `--package=${_chunkEJN43WGDjs.SKILLS_NPX_PACKAGE}`,
193
193
  "--",
194
194
  "skills",
195
195
  "remove",
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
205
205
  args: [
206
206
  "exec",
207
207
  "--yes",
208
- `--package=${_chunkG4WPDCXAjs.SKILLS_NPX_PACKAGE}`,
208
+ `--package=${_chunkEJN43WGDjs.SKILLS_NPX_PACKAGE}`,
209
209
  "--",
210
210
  "skills",
211
211
  "add",
212
- _chunkG4WPDCXAjs.skillsSourceUrl.call(void 0, input.baseUrl),
212
+ _chunkEJN43WGDjs.skillsSourceUrl.call(void 0, input.baseUrl),
213
213
  "--agent",
214
214
  ...input.agents,
215
215
  ...scopeArgs,
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
246
246
  }
247
247
  function runProcess(command, args, cwd) {
248
248
  return new Promise((resolve, reject) => {
249
- const plan = _chunkG4WPDCXAjs.resolveShellSpawn.call(void 0,
249
+ const plan = _chunkEJN43WGDjs.resolveShellSpawn.call(void 0,
250
250
  command,
251
251
  args,
252
252
  process.platform,
@@ -269,7 +269,7 @@ function runProcess(command, args, cwd) {
269
269
  child.kill("SIGTERM");
270
270
  reject(
271
271
  new Error(
272
- `${_chunkG4WPDCXAjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
272
+ `${_chunkEJN43WGDjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
273
273
  )
274
274
  );
275
275
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -280,7 +280,7 @@ function runProcess(command, args, cwd) {
280
280
  child.once("close", (code) => {
281
281
  clearTimeout(timeout);
282
282
  if (code && stderr.trim()) {
283
- process.stderr.write(`${_chunkG4WPDCXAjs.SKILLS_NPX_PACKAGE} exited ${code}.
283
+ process.stderr.write(`${_chunkEJN43WGDjs.SKILLS_NPX_PACKAGE} exited ${code}.
284
284
  `);
285
285
  }
286
286
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -288,7 +288,7 @@ function runProcess(command, args, cwd) {
288
288
  });
289
289
  }
290
290
  async function showSkills(options, name) {
291
- const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
291
+ const baseUrl = _chunkJHQ7FORYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
292
292
  const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
293
293
  try {
294
294
  const response = await fetch(url, {
@@ -301,7 +301,7 @@ async function showSkills(options, name) {
301
301
  }
302
302
  if (name) {
303
303
  const markdown = await response.text();
304
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
304
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
305
305
  { ok: true, status: "completed", skill: { name, markdown } },
306
306
  { json: options.json, text: markdown }
307
307
  );
@@ -311,7 +311,7 @@ async function showSkills(options, name) {
311
311
  const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
312
312
  (skill) => skill.install_surface === "v1" && skill.name
313
313
  );
314
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
314
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
315
315
  {
316
316
  ok: true,
317
317
  status: "completed",
@@ -328,7 +328,7 @@ Read one with: deepline skills show <name>
328
328
  );
329
329
  return 0;
330
330
  } catch (error) {
331
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
331
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
332
332
  {
333
333
  ok: false,
334
334
  status: "failed",
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
351
351
  scope = normalizeScope(options.scope);
352
352
  root = scope === "local" ? resolveLocalRoot() : null;
353
353
  } catch (error) {
354
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
354
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
355
355
  {
356
356
  ok: false,
357
357
  status: "failed",
@@ -363,22 +363,22 @@ async function runSkillsCommand(options, dependencies = {}) {
363
363
  );
364
364
  return 2;
365
365
  }
366
- const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
366
+ const baseUrl = _chunkJHQ7FORYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
367
367
  const catalog = {
368
- skillNames: [..._chunkG4WPDCXAjs.DEFAULT_SDK_SKILL_NAMES],
369
- version: _chunkKNCNFL76js.SDK_VERSION
368
+ skillNames: [..._chunkEJN43WGDjs.DEFAULT_SDK_SKILL_NAMES],
369
+ version: _chunkRSZSKTRCjs.SDK_VERSION
370
370
  };
371
371
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
372
372
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
373
373
  if (options.dryRun) {
374
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
374
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
375
375
  { ok: true, status: "planned", dryRun: true, ...plan },
376
376
  { json: options.json }
377
377
  );
378
378
  return 0;
379
379
  }
380
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkG4WPDCXAjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
381
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
380
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkEJN43WGDjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
381
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
382
382
  {
383
383
  ok: true,
384
384
  status: "current",
@@ -410,10 +410,10 @@ async function runSkillsCommand(options, dependencies = {}) {
410
410
  }
411
411
  if (scope === "local" && root) {
412
412
  const managedNames = [
413
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkG4WPDCXAjs.LEGACY_SKILL_NAMES_TO_REMOVE])
413
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkEJN43WGDjs.LEGACY_SKILL_NAMES_TO_REMOVE])
414
414
  ];
415
415
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
416
- _chunkAO56MZ7Djs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
416
+ _chunkJHQ7FORYjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
417
417
  ".deepline/",
418
418
  ...agentRoots.flatMap(
419
419
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -422,7 +422,7 @@ async function runSkillsCommand(options, dependencies = {}) {
422
422
  }
423
423
  let lease;
424
424
  try {
425
- lease = scope === "global" ? await _chunkG4WPDCXAjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
425
+ lease = scope === "global" ? await _chunkEJN43WGDjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
426
426
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
427
427
  onWait: () => process.stderr.write(
428
428
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -430,8 +430,8 @@ async function runSkillsCommand(options, dependencies = {}) {
430
430
  }) : { release: () => {
431
431
  } };
432
432
  } catch (error) {
433
- if (!(error instanceof _chunkG4WPDCXAjs.SkillsStateUnavailableError)) throw error;
434
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
433
+ if (!(error instanceof _chunkEJN43WGDjs.SkillsStateUnavailableError)) throw error;
434
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
435
435
  {
436
436
  ok: false,
437
437
  status: "failed",
@@ -447,7 +447,7 @@ async function runSkillsCommand(options, dependencies = {}) {
447
447
  return 5;
448
448
  }
449
449
  if (!lease) {
450
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
450
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
451
451
  {
452
452
  ok: false,
453
453
  status: "failed",
@@ -456,7 +456,7 @@ async function runSkillsCommand(options, dependencies = {}) {
456
456
  scope,
457
457
  agents,
458
458
  message: "A background Deepline skills refresh is still running for these agents.",
459
- next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkG4WPDCXAjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
459
+ next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkEJN43WGDjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
460
460
  },
461
461
  { json: options.json }
462
462
  );
@@ -505,7 +505,7 @@ async function runSkillsInstallWithLease(input) {
505
505
  }
506
506
  }
507
507
  } catch (error) {
508
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
508
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
509
509
  {
510
510
  ok: false,
511
511
  status: "failed",
@@ -521,7 +521,7 @@ async function runSkillsInstallWithLease(input) {
521
521
  return 5;
522
522
  }
523
523
  if (missing.length > 0) {
524
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
524
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
525
525
  {
526
526
  ok: false,
527
527
  status: "failed",
@@ -561,7 +561,7 @@ async function runSkillsInstallWithLease(input) {
561
561
  {
562
562
  schemaVersion: 1,
563
563
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
564
- cliVersion: _chunkKNCNFL76js.SDK_VERSION,
564
+ cliVersion: _chunkRSZSKTRCjs.SDK_VERSION,
565
565
  scope,
566
566
  agents,
567
567
  skillsVersion: plan.version,
@@ -574,9 +574,9 @@ async function runSkillsInstallWithLease(input) {
574
574
  "utf8"
575
575
  );
576
576
  if (scope === "global") {
577
- _chunkG4WPDCXAjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
577
+ _chunkEJN43WGDjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
578
578
  }
579
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
579
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
580
580
  {
581
581
  ok: true,
582
582
  status: "complete",
@@ -625,7 +625,7 @@ Examples:
625
625
  "after",
626
626
  `
627
627
  Notes:
628
- This command reinstalls current Deepline-managed skills using ${_chunkG4WPDCXAjs.SKILLS_NPX_PACKAGE},
628
+ This command reinstalls current Deepline-managed skills using ${_chunkEJN43WGDjs.SKILLS_NPX_PACKAGE},
629
629
  then removes legacy Deepline skill names. Local scope writes into the resolved
630
630
  persistent project.
631
631
 
@@ -637,13 +637,13 @@ Examples:
637
637
  ).action(async (options) => {
638
638
  process.exitCode = await runSkillsCommand(options);
639
639
  });
640
- program.command(_chunkG4WPDCXAjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
640
+ program.command(_chunkEJN43WGDjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
641
641
  "--claim <token>",
642
642
  "Owner token of the leases this child was started for."
643
643
  ).action(async (options) => {
644
644
  const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
645
645
  if (!claim) {
646
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
646
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
647
647
  {
648
648
  ok: false,
649
649
  status: "failed",
@@ -656,7 +656,7 @@ Examples:
656
656
  process.exitCode = 2;
657
657
  return;
658
658
  }
659
- await _chunkG4WPDCXAjs.syncSdkSkillsIfNeeded.call(void 0, _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
659
+ await _chunkEJN43WGDjs.syncSdkSkillsIfNeeded.call(void 0, _chunkJHQ7FORYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
660
660
  mode: "inline",
661
661
  notices: "defer",
662
662
  claim
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-2MGZAI54.mjs";
22
22
  import {
23
23
  SDK_RELEASE
24
- } from "./chunk-BM536WWR.mjs";
24
+ } from "./chunk-ID5WQZ2H.mjs";
25
25
 
26
26
  // src/version.ts
27
27
  var SDK_VERSION = SDK_RELEASE.version;
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
5
+ var _chunkFXN5WSTYjs = require('./chunk-FXN5WSTY.js');
6
6
 
7
7
 
8
8
 
@@ -22,14 +22,14 @@ var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkAO56MZ7Djs = require('./chunk-AO56MZ7D.js');
25
+ var _chunkJHQ7FORYjs = require('./chunk-JHQ7FORY.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
- var _chunkKNCNFL76js = require('./chunk-KNCNFL76.js');
32
+ var _chunkRSZSKTRCjs = require('./chunk-RSZSKTRC.js');
33
33
 
34
34
 
35
35
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
60
60
  return `Service notice: ${banner.message}`;
61
61
  }
62
62
  function envFilePath(baseUrl) {
63
- return _chunkAO56MZ7Djs.hostEnvFilePath.call(void 0, baseUrl);
63
+ return _chunkJHQ7FORYjs.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 = _chunkAO56MZ7Djs.resolveProjectPinTarget.call(void 0, );
76
+ const target = _chunkJHQ7FORYjs.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 `${_chunkAO56MZ7Djs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
86
+ return `${_chunkJHQ7FORYjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
87
87
  }
88
88
  function legacyPendingClaimTokenPath(baseUrl) {
89
- return `${_chunkAO56MZ7Djs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
89
+ return `${_chunkJHQ7FORYjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
90
90
  }
91
91
  function savePendingClaim(baseUrl, claim) {
92
92
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -191,21 +191,21 @@ function parseRegisterWaitMode(args) {
191
191
  function shouldWaitForRegisterClaim(mode) {
192
192
  if (mode === "yes") return true;
193
193
  if (mode === "no") return false;
194
- return _chunkKNCNFL76js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
194
+ return _chunkRSZSKTRCjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
195
195
  }
196
196
  function saveEnvValues(values, baseUrl, scope) {
197
197
  const filtered = {
198
- ...values[_chunkAO56MZ7Djs.HOST_URL_ENV] ? { [_chunkAO56MZ7Djs.HOST_URL_ENV]: values[_chunkAO56MZ7Djs.HOST_URL_ENV] } : {},
199
- ...values[_chunkAO56MZ7Djs.API_KEY_ENV] ? { [_chunkAO56MZ7Djs.API_KEY_ENV]: values[_chunkAO56MZ7Djs.API_KEY_ENV] } : {},
200
- ...values[_chunkAO56MZ7Djs.ACTIVE_ORG_ID_ENV] ? { [_chunkAO56MZ7Djs.ACTIVE_ORG_ID_ENV]: values[_chunkAO56MZ7Djs.ACTIVE_ORG_ID_ENV] } : {},
201
- ...Object.prototype.hasOwnProperty.call(values, _chunkAO56MZ7Djs.ACTIVE_ORG_NAME_ENV) ? { [_chunkAO56MZ7Djs.ACTIVE_ORG_NAME_ENV]: values[_chunkAO56MZ7Djs.ACTIVE_ORG_NAME_ENV] } : {},
198
+ ...values[_chunkJHQ7FORYjs.HOST_URL_ENV] ? { [_chunkJHQ7FORYjs.HOST_URL_ENV]: values[_chunkJHQ7FORYjs.HOST_URL_ENV] } : {},
199
+ ...values[_chunkJHQ7FORYjs.API_KEY_ENV] ? { [_chunkJHQ7FORYjs.API_KEY_ENV]: values[_chunkJHQ7FORYjs.API_KEY_ENV] } : {},
200
+ ...values[_chunkJHQ7FORYjs.ACTIVE_ORG_ID_ENV] ? { [_chunkJHQ7FORYjs.ACTIVE_ORG_ID_ENV]: values[_chunkJHQ7FORYjs.ACTIVE_ORG_ID_ENV] } : {},
201
+ ...Object.prototype.hasOwnProperty.call(values, _chunkJHQ7FORYjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkJHQ7FORYjs.ACTIVE_ORG_NAME_ENV]: values[_chunkJHQ7FORYjs.ACTIVE_ORG_NAME_ENV] } : {},
202
202
  // An explicit empty list must reach the store: it clears a stale line.
203
- ...Object.prototype.hasOwnProperty.call(values, _chunkAO56MZ7Djs.FEATURES_ENV) ? { [_chunkAO56MZ7Djs.FEATURES_ENV]: values[_chunkAO56MZ7Djs.FEATURES_ENV] } : {}
203
+ ...Object.prototype.hasOwnProperty.call(values, _chunkJHQ7FORYjs.FEATURES_ENV) ? { [_chunkJHQ7FORYjs.FEATURES_ENV]: values[_chunkJHQ7FORYjs.FEATURES_ENV] } : {}
204
204
  };
205
205
  if (scope === "folder") {
206
- _chunkAO56MZ7Djs.saveProjectDeeplineEnvValues.call(void 0, filtered);
206
+ _chunkJHQ7FORYjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
207
207
  } else {
208
- _chunkAO56MZ7Djs.saveHostEnvValues.call(void 0, baseUrl, filtered);
208
+ _chunkJHQ7FORYjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
209
209
  }
210
210
  }
211
211
  function activeOrgEnvValues(data) {
@@ -213,21 +213,21 @@ function activeOrgEnvValues(data) {
213
213
  if (!orgId) return {};
214
214
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
215
215
  return {
216
- [_chunkAO56MZ7Djs.ACTIVE_ORG_ID_ENV]: orgId,
217
- [_chunkAO56MZ7Djs.ACTIVE_ORG_NAME_ENV]: orgName,
218
- ..._chunkAO56MZ7Djs.featureEnvValues.call(void 0, data)
216
+ [_chunkJHQ7FORYjs.ACTIVE_ORG_ID_ENV]: orgId,
217
+ [_chunkJHQ7FORYjs.ACTIVE_ORG_NAME_ENV]: orgName,
218
+ ..._chunkJHQ7FORYjs.featureEnvValues.call(void 0, data)
219
219
  };
220
220
  }
221
221
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
222
222
  const headers = {
223
223
  "Content-Type": "application/json",
224
- "User-Agent": `deepline-ts-sdk/${_chunkKNCNFL76js.SDK_VERSION}`,
224
+ "User-Agent": `deepline-ts-sdk/${_chunkRSZSKTRCjs.SDK_VERSION}`,
225
225
  "X-Deepline-Client-Family": "sdk",
226
226
  "X-Deepline-CLI-Family": "sdk",
227
- "X-Deepline-Agent-Runtime": _chunkKNCNFL76js.detectAgentRuntime.call(void 0, ),
228
- "X-Deepline-CLI-Version": _chunkKNCNFL76js.SDK_VERSION,
229
- "X-Deepline-SDK-Version": _chunkKNCNFL76js.SDK_VERSION,
230
- "X-Deepline-API-Contract": _chunkKNCNFL76js.SDK_API_CONTRACT
227
+ "X-Deepline-Agent-Runtime": _chunkRSZSKTRCjs.detectAgentRuntime.call(void 0, ),
228
+ "X-Deepline-CLI-Version": _chunkRSZSKTRCjs.SDK_VERSION,
229
+ "X-Deepline-SDK-Version": _chunkRSZSKTRCjs.SDK_VERSION,
230
+ "X-Deepline-API-Contract": _chunkRSZSKTRCjs.SDK_API_CONTRACT
231
231
  };
232
232
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
233
233
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -266,10 +266,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
266
266
  if (failure.name === "AbortError" || failure.name === "TimeoutError") {
267
267
  throw failure;
268
268
  }
269
- const causeCode = _chunkKNCNFL76js.networkCauseCode.call(void 0, failure);
269
+ const causeCode = _chunkRSZSKTRCjs.networkCauseCode.call(void 0, failure);
270
270
  throw Object.assign(
271
271
  new (0, _chunkLFQJW4S2js.DeeplineError)(
272
- _chunkKNCNFL76js.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
272
+ _chunkRSZSKTRCjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
273
273
  void 0,
274
274
  "NETWORK_ERROR",
275
275
  causeCode ? { causeCode } : void 0
@@ -286,7 +286,7 @@ async function readStatusBanner(baseUrl) {
286
286
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
287
287
  }
288
288
  async function reportSetupCompleted(input) {
289
- const apiKey = input.authScope === "folder" ? _chunkAO56MZ7Djs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkAO56MZ7Djs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
289
+ const apiKey = input.authScope === "folder" ? _chunkJHQ7FORYjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkJHQ7FORYjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
290
290
  if (!apiKey) return;
291
291
  try {
292
292
  await httpJson(
@@ -415,7 +415,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
415
415
  return EXIT_SERVER;
416
416
  }
417
417
  async function handleRegister(args, options) {
418
- const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
418
+ const baseUrl = _chunkJHQ7FORYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
419
419
  let orgName = "";
420
420
  let orgId = "";
421
421
  let agentName = "";
@@ -486,14 +486,14 @@ async function handleRegister(args, options) {
486
486
  savePendingClaim(baseUrl, pendingClaim);
487
487
  saveEnvValues(
488
488
  {
489
- [_chunkAO56MZ7Djs.HOST_URL_ENV]: baseUrl
489
+ [_chunkJHQ7FORYjs.HOST_URL_ENV]: baseUrl
490
490
  },
491
491
  baseUrl,
492
492
  authScope
493
493
  );
494
494
  }
495
495
  if (claimUrl && !_optionalChain([options, 'optionalAccess', _16 => _16.delegatedApproval])) {
496
- const shouldOpen = waitMode !== "no" && _chunkKNCNFL76js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
496
+ const shouldOpen = waitMode !== "no" && _chunkRSZSKTRCjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
497
497
  console.log(" Open this approval page in your browser:");
498
498
  console.log(` ${claimUrl}`);
499
499
  if (pendingClaim.device) {
@@ -501,7 +501,7 @@ async function handleRegister(args, options) {
501
501
  ` Click Approve if the page shows ${pendingClaim.device.userCode}.`
502
502
  );
503
503
  }
504
- const opened = shouldOpen && _chunkEV3OPDHFjs.openInBrowser.call(void 0, claimUrl) === "opened";
504
+ const opened = shouldOpen && _chunkFXN5WSTYjs.openInBrowser.call(void 0, claimUrl) === "opened";
505
505
  if (claimToken && pendingClaim.approvalLinkReporting) {
506
506
  await reportApprovalLinkShown(
507
507
  baseUrl,
@@ -554,8 +554,8 @@ async function handleRegister(args, options) {
554
554
  if (apiKey) {
555
555
  saveEnvValues(
556
556
  {
557
- [_chunkAO56MZ7Djs.HOST_URL_ENV]: baseUrl,
558
- [_chunkAO56MZ7Djs.API_KEY_ENV]: apiKey,
557
+ [_chunkJHQ7FORYjs.HOST_URL_ENV]: baseUrl,
558
+ [_chunkJHQ7FORYjs.API_KEY_ENV]: apiKey,
559
559
  ...activeOrgEnvValues(statusData)
560
560
  },
561
561
  baseUrl,
@@ -577,7 +577,7 @@ async function handleRegister(args, options) {
577
577
  }
578
578
  }
579
579
  async function handleWait(args, options) {
580
- const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
+ const baseUrl = _chunkJHQ7FORYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
581
581
  let timeoutSeconds = 300;
582
582
  let requestedScope;
583
583
  if (args.includes("--auth-scope")) {
@@ -601,7 +601,7 @@ async function handleWait(args, options) {
601
601
  const authScope = resumed.scope;
602
602
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _18 => _18.claimToken]), () => ( ""));
603
603
  if (!pendingClaim) {
604
- const scopedApiKey = authScope === "folder" ? _chunkAO56MZ7Djs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkAO56MZ7Djs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
604
+ const scopedApiKey = authScope === "folder" ? _chunkJHQ7FORYjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkJHQ7FORYjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
605
605
  if (scopedApiKey) {
606
606
  if (!_optionalChain([options, 'optionalAccess', _19 => _19.quiet])) console.log("Already connected.");
607
607
  return EXIT_OK;
@@ -664,8 +664,8 @@ async function handleWait(args, options) {
664
664
  if (apiKey) {
665
665
  saveEnvValues(
666
666
  {
667
- [_chunkAO56MZ7Djs.HOST_URL_ENV]: baseUrl,
668
- [_chunkAO56MZ7Djs.API_KEY_ENV]: apiKey,
667
+ [_chunkJHQ7FORYjs.HOST_URL_ENV]: baseUrl,
668
+ [_chunkJHQ7FORYjs.API_KEY_ENV]: apiKey,
669
669
  ...activeOrgEnvValues(data)
670
670
  },
671
671
  baseUrl,
@@ -695,8 +695,8 @@ async function handleWait(args, options) {
695
695
  return EXIT_AUTH;
696
696
  }
697
697
  async function authStatusLine(timeoutMs = 3e3) {
698
- const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
699
- const apiKey = _chunkAO56MZ7Djs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
698
+ const baseUrl = _chunkJHQ7FORYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
699
+ const apiKey = _chunkJHQ7FORYjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
700
700
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
701
701
  try {
702
702
  const { status, data } = await httpJson(
@@ -719,9 +719,9 @@ async function authStatusLine(timeoutMs = 3e3) {
719
719
  }
720
720
  }
721
721
  async function handleStatus(args) {
722
- const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
722
+ const baseUrl = _chunkJHQ7FORYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
723
723
  const reveal = args.includes("--reveal");
724
- const jsonOutput = _chunkEV3OPDHFjs.argsWantJson.call(void 0, args);
724
+ const jsonOutput = _chunkFXN5WSTYjs.argsWantJson.call(void 0, args);
725
725
  const hasExplicitAuthScope = args.includes("--auth-scope");
726
726
  let authScope = null;
727
727
  if (hasExplicitAuthScope) {
@@ -762,14 +762,14 @@ async function handleStatus(args) {
762
762
  };
763
763
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
764
764
  }
765
- const apiKey = authScope === "folder" ? _chunkAO56MZ7Djs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkAO56MZ7Djs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkAO56MZ7Djs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
765
+ const apiKey = authScope === "folder" ? _chunkJHQ7FORYjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkJHQ7FORYjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkJHQ7FORYjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
766
766
  if (!apiKey) {
767
767
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
768
768
  baseUrl,
769
769
  _nullishCoalesce(authScope, () => ( void 0))
770
770
  );
771
771
  if (pendingClaim) {
772
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
772
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
773
773
  {
774
774
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
775
775
  status: "pending",
@@ -799,7 +799,7 @@ async function handleStatus(args) {
799
799
  );
800
800
  return EXIT_OK;
801
801
  }
802
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
802
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
803
803
  {
804
804
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
805
805
  status: "not connected",
@@ -832,7 +832,7 @@ async function handleStatus(args) {
832
832
  }
833
833
  );
834
834
  if (status === 401 || status === 403) {
835
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
835
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
836
836
  {
837
837
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
838
838
  status: "unauthorized",
@@ -859,7 +859,7 @@ async function handleStatus(args) {
859
859
  console.error(`Auth status error (status ${status}).`);
860
860
  return EXIT_SERVER;
861
861
  }
862
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkAO56MZ7Djs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
862
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkJHQ7FORYjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
863
863
  clearSatisfiedPendingClaim(
864
864
  baseUrl,
865
865
  resolvedAuthScope,
@@ -887,28 +887,28 @@ async function handleStatus(args) {
887
887
  if (apiKeyResp) {
888
888
  saveEnvValues(
889
889
  {
890
- [_chunkAO56MZ7Djs.HOST_URL_ENV]: baseUrl,
891
- [_chunkAO56MZ7Djs.API_KEY_ENV]: apiKeyResp,
890
+ [_chunkJHQ7FORYjs.HOST_URL_ENV]: baseUrl,
891
+ [_chunkJHQ7FORYjs.API_KEY_ENV]: apiKeyResp,
892
892
  ...activeOrgEnvValues(data)
893
893
  },
894
894
  baseUrl,
895
895
  resolvedAuthScope
896
896
  );
897
897
  if (resolvedAuthScope === "folder") {
898
- const target = _chunkAO56MZ7Djs.resolveProjectPinTarget.call(void 0, );
898
+ const target = _chunkJHQ7FORYjs.resolveProjectPinTarget.call(void 0, );
899
899
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
900
900
  } else {
901
901
  savedApiKeyPath = envFilePath(baseUrl);
902
902
  }
903
903
  }
904
- } else if (resolvedAuthScope === "folder" || _chunkAO56MZ7Djs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
905
- saveEnvValues(_chunkAO56MZ7Djs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
904
+ } else if (resolvedAuthScope === "folder" || _chunkJHQ7FORYjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
905
+ saveEnvValues(_chunkJHQ7FORYjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
906
906
  }
907
- _chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
907
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
908
908
  {
909
909
  ...payload,
910
- ..._chunkKNCNFL76js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
911
- command_context: _chunkAO56MZ7Djs.resolveCliCommandContext.call(void 0,
910
+ ..._chunkRSZSKTRCjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
911
+ command_context: _chunkJHQ7FORYjs.resolveCliCommandContext.call(void 0,
912
912
  { baseUrl, apiKey },
913
913
  resolvedAuthScope
914
914
  )