deepline 0.3.578 → 0.3.580

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 (175) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +20 -2
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/monitors/billing/public-pricing.ts +470 -15
  4. package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +12 -0
  5. package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +59 -0
  6. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +5 -3
  7. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +3 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +18 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +124 -57
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +4 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +182 -80
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +39 -2
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +25 -0
  14. package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +83 -0
  15. package/dist/cli/{agents-MCU3ITQZ.js → agents-BF5VX5ZB.js} +31 -31
  16. package/dist/cli/{agents-LRBANBZH.mjs → agents-JRFTZE7G.mjs} +4 -4
  17. package/dist/cli/auth-25MVD7TK.js +44 -0
  18. package/dist/cli/{auth-5BJKVYMQ.mjs → auth-XJXZ64R4.mjs} +5 -5
  19. package/dist/cli/{billing-EBBI4MVL.mjs → billing-TXJBGP2I.mjs} +69 -64
  20. package/dist/cli/{billing-NT57POHH.js → billing-VGMTJI7W.js} +158 -153
  21. package/dist/cli/{chunk-XBO4ERH6.js → chunk-2ZCFAUCV.js} +3 -3
  22. package/dist/cli/{chunk-P35YQAUC.js → chunk-3OSNEWGR.js} +281 -275
  23. package/dist/cli/{chunk-7J473OJ5.mjs → chunk-3P4QZIJ5.mjs} +1 -1
  24. package/dist/cli/{chunk-SKHUWQZE.js → chunk-3S5KFHQH.js} +17 -7
  25. package/dist/cli/{chunk-4LMTY4RQ.mjs → chunk-3ZBPXNSW.mjs} +2 -2
  26. package/dist/cli/{chunk-H7DY5NQ3.mjs → chunk-5BPJW6X5.mjs} +5 -5
  27. package/dist/cli/{chunk-A7NKOXBV.js → chunk-6VSUP4WN.js} +4 -4
  28. package/dist/cli/{chunk-4KNRCUKY.mjs → chunk-7HOG3JZE.mjs} +21 -15
  29. package/dist/cli/{chunk-OAQYLTUN.mjs → chunk-7ORX33JX.mjs} +5 -5
  30. package/dist/cli/{chunk-24FGR73C.js → chunk-ANX3PYLT.js} +13 -13
  31. package/dist/cli/{chunk-VVZ7JZMQ.js → chunk-APJ7IPRT.js} +15 -15
  32. package/dist/cli/{chunk-MXPCTF57.js → chunk-AZTQJJH7.js} +17 -2
  33. package/dist/cli/{chunk-3GF33QJJ.mjs → chunk-BAXLPQTM.mjs} +4 -4
  34. package/dist/cli/{chunk-DDJN4RR6.mjs → chunk-BK4Z62CF.mjs} +4 -4
  35. package/dist/cli/{chunk-IFWB4BYZ.mjs → chunk-C6YXUGX2.mjs} +3 -3
  36. package/dist/cli/{chunk-J7PCSLRY.js → chunk-COAAKSFX.js} +5 -5
  37. package/dist/cli/{chunk-Y2TK7OXN.js → chunk-D6I7QWOZ.js} +2 -2
  38. package/dist/cli/{chunk-W47SXEWQ.js → chunk-DQEHBAHL.js} +9 -9
  39. package/dist/cli/{chunk-ITYSPUKD.mjs → chunk-EI7KTESB.mjs} +2 -2
  40. package/dist/cli/{chunk-HZXF2HFF.mjs → chunk-FCJJPEKN.mjs} +5 -5
  41. package/dist/cli/{chunk-NEH7NZFT.js → chunk-GDBNH57Z.js} +10 -10
  42. package/dist/cli/{chunk-CFG3ZM7M.mjs → chunk-GE4ZEMMA.mjs} +2 -2
  43. package/dist/cli/{chunk-4YSJOSBG.mjs → chunk-GIZIWNL5.mjs} +1 -1
  44. package/dist/cli/{chunk-PJXPHUAR.mjs → chunk-H3B6QM6V.mjs} +3 -3
  45. package/dist/cli/{chunk-25SSGQJJ.js → chunk-HEZ24K5F.js} +2 -2
  46. package/dist/cli/{chunk-LYZPGP3P.mjs → chunk-HLMF53HZ.mjs} +1 -1
  47. package/dist/cli/{chunk-T2CCLYHV.mjs → chunk-IERWFFDB.mjs} +7 -7
  48. package/dist/cli/{chunk-CFLAGRWL.mjs → chunk-IG3CXIJY.mjs} +1 -1
  49. package/dist/cli/{chunk-ALXYCC4K.mjs → chunk-IM322G7M.mjs} +1 -1
  50. package/dist/cli/{chunk-RW3URFZK.mjs → chunk-KLBIHDZB.mjs} +2 -2
  51. package/dist/cli/{chunk-VMCJKGZS.mjs → chunk-LC4ETCOA.mjs} +2 -2
  52. package/dist/cli/{chunk-CS36W3RL.js → chunk-LHV3HPAY.js} +26 -26
  53. package/dist/cli/{chunk-CPNTDIJK.js → chunk-MBOPKQJF.js} +1 -1
  54. package/dist/cli/{chunk-BPMA4S3O.js → chunk-MCYZO3RB.js} +21 -21
  55. package/dist/cli/{chunk-JQPFICW3.mjs → chunk-MEDA3STC.mjs} +1 -1
  56. package/dist/cli/{chunk-ZO65VJRJ.js → chunk-MOZDEYQC.js} +11 -1
  57. package/dist/cli/{chunk-6UFTWNC5.mjs → chunk-MP6XUVAJ.mjs} +2 -2
  58. package/dist/cli/{chunk-HGQT6EGK.js → chunk-NNWEQDZR.js} +20 -20
  59. package/dist/cli/{chunk-AZFSCPYK.mjs → chunk-NV5IJ3NY.mjs} +17 -2
  60. package/dist/cli/{chunk-QPOJLAFT.mjs → chunk-O7AWGIDD.mjs} +2 -2
  61. package/dist/cli/{chunk-G7PH2QVM.js → chunk-PFNYLTCZ.js} +5 -5
  62. package/dist/cli/{chunk-DWUESXDD.mjs → chunk-QXQBTTRD.mjs} +11 -1
  63. package/dist/cli/{chunk-5IMWXYVB.js → chunk-R77IVVEZ.js} +53 -53
  64. package/dist/cli/{chunk-MXK4M7HP.js → chunk-S2YKIWCD.js} +17 -17
  65. package/dist/cli/{chunk-FYKHAT2F.mjs → chunk-SECFDB27.mjs} +10 -0
  66. package/dist/cli/{chunk-NTHN7ODR.mjs → chunk-SQBSK74D.mjs} +7 -3
  67. package/dist/cli/{chunk-M3ITWEGS.js → chunk-TSOXJZSW.js} +41 -41
  68. package/dist/cli/{chunk-CSPOWVWS.mjs → chunk-U4VCAECC.mjs} +8 -3
  69. package/dist/cli/{chunk-RLPPLS6A.js → chunk-URZPR54R.js} +6 -6
  70. package/dist/cli/{chunk-27HAQRGH.js → chunk-V5NDHTBB.js} +23 -23
  71. package/dist/cli/{chunk-HKZN33F2.mjs → chunk-VF3EGTHU.mjs} +3 -3
  72. package/dist/cli/{chunk-5LCV36BR.js → chunk-VOQWPUIF.js} +20 -20
  73. package/dist/cli/{chunk-3ZUKYLC6.js → chunk-WJUAVMQC.js} +217 -213
  74. package/dist/cli/{chunk-W66GXHYR.mjs → chunk-X5RXG6VS.mjs} +1 -1
  75. package/dist/cli/{chunk-UKSOIH2P.js → chunk-XFVJ3JNA.js} +5 -5
  76. package/dist/cli/{chunk-RWDYULX2.js → chunk-XQUVLYOL.js} +17 -12
  77. package/dist/cli/{chunk-XE66BGLB.js → chunk-YY6EB252.js} +2 -2
  78. package/dist/cli/{chunk-XX7TZM4N.js → chunk-Z6DERGHY.js} +48 -48
  79. package/dist/cli/{chunk-PXMCPEE2.js → chunk-ZADJC22U.js} +3 -3
  80. package/dist/cli/{chunk-4CNHOBUO.mjs → chunk-ZR7PDXIA.mjs} +2 -2
  81. package/dist/cli/command-docs.js +2 -2
  82. package/dist/cli/command-docs.mjs +1 -1
  83. package/dist/cli/concurrent-runs-help-DEN63DUM.js +22 -0
  84. package/dist/cli/{concurrent-runs-help-2MHLIUC6.mjs → concurrent-runs-help-DSUQRWZQ.mjs} +6 -6
  85. package/dist/cli/{csv-RYYDAC76.js → csv-HSHF6JYZ.js} +13 -13
  86. package/dist/cli/{csv-J6SRBMOT.mjs → csv-QNXJBT5T.mjs} +4 -4
  87. package/dist/cli/{db-WK226TM7.mjs → db-RAWY3SWS.mjs} +6 -6
  88. package/dist/cli/{db-5QLH6QK5.js → db-VHYWVLLU.js} +27 -27
  89. package/dist/cli/{describe-UBSCFPH5.mjs → describe-WZOVHWAM.mjs} +21 -21
  90. package/dist/cli/describe-YHZ2EGBQ.js +50 -0
  91. package/dist/cli/describe-core.d.mts +4 -2
  92. package/dist/cli/describe-core.d.ts +4 -2
  93. package/dist/cli/describe-core.js +4 -4
  94. package/dist/cli/describe-core.mjs +3 -3
  95. package/dist/cli/{executions-AGV5V7SD.js → executions-DQIFH4Z6.js} +8 -8
  96. package/dist/cli/{executions-XF5BNCFS.mjs → executions-QABOXV4K.mjs} +6 -6
  97. package/dist/cli/{feedback-3RDEZE2M.js → feedback-6IER2W4G.js} +14 -14
  98. package/dist/cli/{feedback-LT3PDK72.mjs → feedback-DW4O63DG.mjs} +6 -6
  99. package/dist/cli/{git-7VBTCCBV.mjs → git-3NAPGZGR.mjs} +5 -5
  100. package/dist/cli/git-SQ2MAKAH.js +26 -0
  101. package/dist/cli/index.js +148 -148
  102. package/dist/cli/index.mjs +47 -47
  103. package/dist/cli/{integrations-JP732FQB.js → integrations-5LHIBBXB.js} +29 -29
  104. package/dist/cli/{integrations-E7QRWMKZ.mjs → integrations-TSRUTENK.mjs} +7 -7
  105. package/dist/cli/{legacy-noops-UFNQBPIT.mjs → legacy-noops-4N63A6H7.mjs} +6 -6
  106. package/dist/cli/{legacy-noops-UTL4W5WE.js → legacy-noops-S22XGYGN.js} +9 -9
  107. package/dist/cli/{mcp-YHETA3AU.mjs → mcp-4EJHRRFV.mjs} +4 -4
  108. package/dist/cli/{mcp-5X4XFB4V.js → mcp-JERBGJYE.js} +24 -24
  109. package/dist/cli/{monitors-WFVZ42OQ.mjs → monitors-7BTLBD6S.mjs} +16 -11
  110. package/dist/cli/{monitors-AN6KH4XY.js → monitors-FF35CGC4.js} +109 -104
  111. package/dist/cli/{org-CN3XJZLA.js → org-ADCDO7KU.js} +121 -121
  112. package/dist/cli/{org-OMDV7WDF.mjs → org-QYIIBKA2.mjs} +6 -6
  113. package/dist/cli/{outcomes-7HCZ6K3Q.js → outcomes-2LW4GK2L.js} +14 -14
  114. package/dist/cli/{outcomes-I4ZTG5ND.mjs → outcomes-C5DIBG4Q.mjs} +6 -6
  115. package/dist/cli/{play-TSNBSHGA.mjs → play-DTTDTISL.mjs} +20 -20
  116. package/dist/cli/{play-45VXZ57A.js → play-S5MZ2GRA.js} +349 -349
  117. package/dist/cli/{providers-4TB56ZLK.mjs → providers-AXOEFQ6Q.mjs} +6 -6
  118. package/dist/cli/{providers-RB3TT7AE.js → providers-N2IWEJBW.js} +9 -9
  119. package/dist/cli/{quickstart-XHZ3PG5I.mjs → quickstart-ADWSZBV6.mjs} +4 -4
  120. package/dist/cli/{quickstart-ZNDM6VUD.js → quickstart-UC5AJZWU.js} +6 -6
  121. package/dist/cli/{run-XNEJGAKV.js → run-6TDYUL7L.js} +49 -48
  122. package/dist/cli/{run-7PY4G6GB.mjs → run-R2FVH3K6.mjs} +27 -26
  123. package/dist/cli/{search-BG7KCIOG.mjs → search-GRHUFSLY.mjs} +7 -7
  124. package/dist/cli/search-V7ANBX3J.js +32 -0
  125. package/dist/cli/{search-output-3ZBNTHGO.js → search-output-O7NY3VMD.js} +8 -8
  126. package/dist/cli/{search-output-TWKKP2BE.mjs → search-output-UPQNAFAF.mjs} +5 -5
  127. package/dist/cli/{secrets-FNR6MX6A.js → secrets-72GJHFER.js} +15 -15
  128. package/dist/cli/{secrets-AZZCE7E3.mjs → secrets-NKAEJLIQ.mjs} +6 -6
  129. package/dist/cli/sessions-EO6RTMUC.js +23 -0
  130. package/dist/cli/{sessions-ZAMKN3AF.mjs → sessions-VIMF3UF5.mjs} +6 -6
  131. package/dist/cli/{settings-QGASFWV3.js → settings-HFAW5HIF.js} +85 -85
  132. package/dist/cli/{settings-WKWOOOI2.mjs → settings-KCQHBFNZ.mjs} +12 -12
  133. package/dist/cli/{setup-KUZDCR3F.js → setup-2MHWGEAD.js} +49 -49
  134. package/dist/cli/{setup-U36W42LE.mjs → setup-2ZD5ZIUH.mjs} +9 -9
  135. package/dist/cli/skills-ID6KKDLH.js +37 -0
  136. package/dist/cli/{skills-25CSZQIK.mjs → skills-X2DZZG5P.mjs} +7 -7
  137. package/dist/cli/tools-7UY7GERW.js +57 -0
  138. package/dist/cli/{tools-4NZQ22AA.mjs → tools-KPTOWKD4.mjs} +19 -19
  139. package/dist/cli/{update-CJYP36TG.mjs → update-6PMQCEUP.mjs} +9 -9
  140. package/dist/cli/update-T2RDLLSY.js +37 -0
  141. package/dist/cli/{views-76UIPWJD.js → views-MNBHNO6C.js} +37 -24
  142. package/dist/cli/{views-GYGE7FSV.mjs → views-VRZ5CTFL.mjs} +21 -8
  143. package/dist/cli/{workflow-LZSWALZS.mjs → workflow-7JUJWA5S.mjs} +7 -7
  144. package/dist/cli/{workflow-NCVXBATM.js → workflow-SSMFO7YE.js} +17 -17
  145. package/dist/{client-CF-bsrtI.d.mts → client-CmG8MT0x.d.mts} +1 -1
  146. package/dist/{client-BrdMPFCM.d.ts → client-QznpkWrk.d.ts} +1 -1
  147. package/dist/{client-core-rMoUWSYM.d.ts → client-core-CXDqfeiB.d.ts} +12 -1
  148. package/dist/{client-core-DM1ZedOG.d.mts → client-core-CY0jNW0e.d.mts} +12 -1
  149. package/dist/index.d.mts +3 -3
  150. package/dist/index.d.ts +3 -3
  151. package/dist/index.js +9 -9
  152. package/dist/index.mjs +6 -6
  153. package/dist/install-integrity.json +126 -126
  154. package/dist/plays/play-description.d.mts +1 -1
  155. package/dist/plays/play-description.d.ts +1 -1
  156. package/dist/plays/run-request.d.mts +1 -1
  157. package/dist/plays/run-request.d.ts +1 -1
  158. package/dist/release.d.mts +1 -1
  159. package/dist/release.d.ts +1 -1
  160. package/dist/release.js +2 -2
  161. package/dist/release.mjs +1 -1
  162. package/dist/server.d.mts +2 -2
  163. package/dist/server.d.ts +2 -2
  164. package/dist/server.js +5 -5
  165. package/dist/server.mjs +3 -3
  166. package/package.json +1 -1
  167. package/dist/cli/auth-VSW3MTFO.js +0 -44
  168. package/dist/cli/concurrent-runs-help-ATT2GVTQ.js +0 -22
  169. package/dist/cli/describe-Q27SRQWM.js +0 -50
  170. package/dist/cli/git-BBTP3H7J.js +0 -26
  171. package/dist/cli/search-ZBU5GW4W.js +0 -32
  172. package/dist/cli/sessions-GCY62GAW.js +0 -23
  173. package/dist/cli/skills-43DHMLRW.js +0 -37
  174. package/dist/cli/tools-5BGKNMFU.js +0 -57
  175. package/dist/cli/update-CUO2MTB6.js +0 -37
@@ -11,20 +11,20 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkXX7TZM4Njs = require('./chunk-XX7TZM4N.js');
14
+ var _chunkZ6DERGHYjs = require('./chunk-Z6DERGHY.js');
15
15
 
16
16
 
17
- var _chunkHGQT6EGKjs = require('./chunk-HGQT6EGK.js');
17
+ var _chunkNNWEQDZRjs = require('./chunk-NNWEQDZR.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkXBO4ERH6js = require('./chunk-XBO4ERH6.js');
23
+ var _chunk2ZCFAUCVjs = require('./chunk-2ZCFAUCV.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkA7NKOXBVjs = require('./chunk-A7NKOXBV.js');
27
+ var _chunk6VSUP4WNjs = require('./chunk-6VSUP4WN.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 = _chunkXBO4ERH6js.resolveProjectPinTarget.call(void 0, );
148
+ const target = _chunk2ZCFAUCVjs.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, () => ( _chunkA7NKOXBVjs.detectAgentRuntime.call(void 0, )));
159
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunk6VSUP4WNjs.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, _chunkXBO4ERH6js.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, _chunk2ZCFAUCVjs.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 = [..._chunkXX7TZM4Njs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
178
+ const legacyNames = [..._chunkZ6DERGHYjs.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=${_chunkXX7TZM4Njs.SKILLS_NPX_PACKAGE}`,
192
+ `--package=${_chunkZ6DERGHYjs.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=${_chunkXX7TZM4Njs.SKILLS_NPX_PACKAGE}`,
208
+ `--package=${_chunkZ6DERGHYjs.SKILLS_NPX_PACKAGE}`,
209
209
  "--",
210
210
  "skills",
211
211
  "add",
212
- _chunkXX7TZM4Njs.skillsSourceUrl.call(void 0, input.baseUrl),
212
+ _chunkZ6DERGHYjs.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 = _chunkXX7TZM4Njs.resolveShellSpawn.call(void 0,
249
+ const plan = _chunkZ6DERGHYjs.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
- `${_chunkXX7TZM4Njs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
272
+ `${_chunkZ6DERGHYjs.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(`${_chunkXX7TZM4Njs.SKILLS_NPX_PACKAGE} exited ${code}.
283
+ process.stderr.write(`${_chunkZ6DERGHYjs.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 = _chunkXBO4ERH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
291
+ const baseUrl = _chunk2ZCFAUCVjs.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
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
304
+ _chunkNNWEQDZRjs.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
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
314
+ _chunkNNWEQDZRjs.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
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
331
+ _chunkNNWEQDZRjs.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
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
354
+ _chunkNNWEQDZRjs.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 = _chunkXBO4ERH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
366
+ const baseUrl = _chunk2ZCFAUCVjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
367
367
  const catalog = {
368
- skillNames: [..._chunkXX7TZM4Njs.DEFAULT_SDK_SKILL_NAMES],
369
- version: _chunkA7NKOXBVjs.SDK_VERSION
368
+ skillNames: [..._chunkZ6DERGHYjs.DEFAULT_SDK_SKILL_NAMES],
369
+ version: _chunk6VSUP4WNjs.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
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
374
+ _chunkNNWEQDZRjs.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)) && !_chunkXX7TZM4Njs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
381
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
380
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkZ6DERGHYjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
381
+ _chunkNNWEQDZRjs.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, ..._chunkXX7TZM4Njs.LEGACY_SKILL_NAMES_TO_REMOVE])
413
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkZ6DERGHYjs.LEGACY_SKILL_NAMES_TO_REMOVE])
414
414
  ];
415
415
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
416
- _chunkXBO4ERH6js.ensureProjectPrivatePathsIgnored.call(void 0, root, [
416
+ _chunk2ZCFAUCVjs.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 _chunkXX7TZM4Njs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
425
+ lease = scope === "global" ? await _chunkZ6DERGHYjs.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 _chunkXX7TZM4Njs.SkillsStateUnavailableError)) throw error;
434
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
433
+ if (!(error instanceof _chunkZ6DERGHYjs.SkillsStateUnavailableError)) throw error;
434
+ _chunkNNWEQDZRjs.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
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
450
+ _chunkNNWEQDZRjs.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 ${_chunkXX7TZM4Njs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
459
+ next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkZ6DERGHYjs.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
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
508
+ _chunkNNWEQDZRjs.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
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
524
+ _chunkNNWEQDZRjs.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: _chunkA7NKOXBVjs.SDK_VERSION,
564
+ cliVersion: _chunk6VSUP4WNjs.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
- _chunkXX7TZM4Njs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
577
+ _chunkZ6DERGHYjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
578
578
  }
579
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
579
+ _chunkNNWEQDZRjs.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 ${_chunkXX7TZM4Njs.SKILLS_NPX_PACKAGE},
628
+ This command reinstalls current Deepline-managed skills using ${_chunkZ6DERGHYjs.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(_chunkXX7TZM4Njs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
640
+ program.command(_chunkZ6DERGHYjs.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
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
646
+ _chunkNNWEQDZRjs.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 _chunkXX7TZM4Njs.syncSdkSkillsIfNeeded.call(void 0, _chunkXBO4ERH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
659
+ await _chunkZ6DERGHYjs.syncSdkSkillsIfNeeded.call(void 0, _chunk2ZCFAUCVjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
660
660
  mode: "inline",
661
661
  notices: "defer",
662
662
  claim
@@ -1,15 +1,16 @@
1
1
  import {
2
2
  SCHEMA_LINE_LIMIT,
3
+ credentialSourceText,
3
4
  fieldBlockLines,
4
5
  schemaFields
5
- } from "./chunk-FYKHAT2F.mjs";
6
+ } from "./chunk-SECFDB27.mjs";
6
7
  import {
7
8
  csvSafeJsonString,
8
9
  csvStringFromRows,
9
10
  formatCliFailureDiagnostic,
10
11
  markJsonOutputHandled,
11
12
  writeRawStderr
12
- } from "./chunk-4LMTY4RQ.mjs";
13
+ } from "./chunk-3ZBPXNSW.mjs";
13
14
 
14
15
  // src/cli/describe-options.ts
15
16
  function addDescribeOptions(command, options = {}) {
@@ -757,6 +758,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
757
758
  outputs,
758
759
  page: result.page ?? null,
759
760
  price: result.price ?? null,
761
+ ...result.credentialSource ? { credentialSource: result.credentialSource } : {},
760
762
  declaredOutputs: (result.declared ?? []).map(({ name, path }) => ({
761
763
  name,
762
764
  path
@@ -905,7 +907,10 @@ function receiptText(receipt, options, extra) {
905
907
  ...receipt.credits !== null ? [
906
908
  `Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}${receipt.creditsPostedSoFar ? " posted so far" : ""}`
907
909
  ] : [],
908
- ...receipt.price ? [`Price: ${receipt.price}`] : []
910
+ ...receipt.price ? [`Price: ${receipt.price}`] : [],
911
+ ...credentialSourceText(receipt.credentialSource) ? [
912
+ `${receipt.status === "dry_run" ? "Would run on" : "Ran on"}: ${credentialSourceText(receipt.credentialSource)}`
913
+ ] : []
909
914
  ]
910
915
  ];
911
916
  const { csv, json } = receipt.outputs;
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk25SSGQJJjs = require('./chunk-25SSGQJJ.js');
3
+ var _chunkHEZ24K5Fjs = require('./chunk-HEZ24K5F.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkXX7TZM4Njs = require('./chunk-XX7TZM4N.js');
8
+ var _chunkZ6DERGHYjs = require('./chunk-Z6DERGHY.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -18,18 +18,18 @@ function usesCliPlayAdmission(command, args) {
18
18
  }
19
19
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
20
20
  _optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
21
- if (maintenancePolicy !== "off") _chunkXX7TZM4Njs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunkZ6DERGHYjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkHEZ24K5Fjs.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunkXX7TZM4Njs.requireSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunkZ6DERGHYjs.requireSdkCompatibility.call(void 0, baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
29
29
  })
30
30
  );
31
31
  _optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
32
- _chunkXX7TZM4Njs.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
32
+ _chunkZ6DERGHYjs.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
33
33
  quietAdvisory: true
34
34
  });
35
35
  }
@@ -4,22 +4,22 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk5LCV36BRjs = require('./chunk-5LCV36BR.js');
7
+ var _chunkVOQWPUIFjs = require('./chunk-VOQWPUIF.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkXX7TZM4Njs = require('./chunk-XX7TZM4N.js');
12
+ var _chunkZ6DERGHYjs = require('./chunk-Z6DERGHY.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkHGQT6EGKjs = require('./chunk-HGQT6EGK.js');
16
+ var _chunkNNWEQDZRjs = require('./chunk-NNWEQDZR.js');
17
17
 
18
18
 
19
- var _chunkXBO4ERH6js = require('./chunk-XBO4ERH6.js');
19
+ var _chunk2ZCFAUCVjs = require('./chunk-2ZCFAUCV.js');
20
20
 
21
21
 
22
- var _chunkA7NKOXBVjs = require('./chunk-A7NKOXBV.js');
22
+ var _chunk6VSUP4WNjs = require('./chunk-6VSUP4WN.js');
23
23
 
24
24
  // src/cli/compatibility-catalog.ts
25
25
  var readers = /* @__PURE__ */ new WeakMap();
@@ -46,7 +46,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
46
46
  async function reportAutoUpdateEvent(input) {
47
47
  let apiKey = "";
48
48
  try {
49
- apiKey = _chunkXBO4ERH6js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
+ apiKey = _chunk2ZCFAUCVjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
50
50
  } catch (e2) {
51
51
  return;
52
52
  }
@@ -62,15 +62,15 @@ async function reportAutoUpdateEvent(input) {
62
62
  headers: {
63
63
  Authorization: `Bearer ${apiKey}`,
64
64
  "Content-Type": "application/json",
65
- "User-Agent": `deepline-ts-sdk/${_chunkA7NKOXBVjs.SDK_VERSION}`,
65
+ "User-Agent": `deepline-ts-sdk/${_chunk6VSUP4WNjs.SDK_VERSION}`,
66
66
  "X-Deepline-Client-Family": "sdk",
67
67
  "X-Deepline-CLI-Family": "sdk",
68
- "X-Deepline-CLI-Version": _chunkA7NKOXBVjs.SDK_VERSION,
69
- "X-Deepline-SDK-Version": _chunkA7NKOXBVjs.SDK_VERSION
68
+ "X-Deepline-CLI-Version": _chunk6VSUP4WNjs.SDK_VERSION,
69
+ "X-Deepline-SDK-Version": _chunk6VSUP4WNjs.SDK_VERSION
70
70
  },
71
71
  body: JSON.stringify({
72
72
  event: input.event,
73
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkA7NKOXBVjs.SDK_VERSION,
73
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk6VSUP4WNjs.SDK_VERSION,
74
74
  target_version: input.response.latest,
75
75
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
76
76
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -89,19 +89,19 @@ function envTruthy(name) {
89
89
  return value === "1" || value === "true" || value === "yes";
90
90
  }
91
91
  function shouldSkipSelfUpdate(policy) {
92
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk5LCV36BRjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkXX7TZM4Njs.isCiEnvironment.call(void 0, );
92
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkVOQWPUIFjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkZ6DERGHYjs.isCiEnvironment.call(void 0, );
93
93
  }
94
94
  function isDowngradeAutoUpdateResponse(response) {
95
95
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
96
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkA7NKOXBVjs.SDK_VERSION;
96
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk6VSUP4WNjs.SDK_VERSION;
97
97
  if (!target) return false;
98
- return _chunk5LCV36BRjs.compareUpdateVersions.call(void 0, target, current) < 0;
98
+ return _chunkVOQWPUIFjs.compareUpdateVersions.call(void 0, target, current) < 0;
99
99
  }
100
100
  function relaunchCurrentCommand(plan, runtime = {}) {
101
101
  return new Promise((resolve) => {
102
102
  const argv = _nullishCoalesce(runtime.argv, () => ( process.argv));
103
103
  const platform = _nullishCoalesce(runtime.platform, () => ( process.platform));
104
- const launch = plan.kind === "python-sidecar" ? _chunkXX7TZM4Njs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
104
+ const launch = plan.kind === "python-sidecar" ? _chunkZ6DERGHYjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
105
105
  command: _nullishCoalesce(runtime.execPath, () => ( process.execPath)),
106
106
  args: argv.slice(1),
107
107
  shell: false
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
148
148
  }
149
149
  if (isDowngradeAutoUpdateResponse(response)) {
150
150
  const target = response.latest;
151
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkA7NKOXBVjs.SDK_VERSION;
151
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk6VSUP4WNjs.SDK_VERSION;
152
152
  process.stderr.write(
153
153
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
154
154
  `
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
156
156
  return false;
157
157
  }
158
158
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
159
- const plan = _chunk5LCV36BRjs.resolveUpdatePlan.call(void 0, {
159
+ const plan = _chunkVOQWPUIFjs.resolveUpdatePlan.call(void 0, {
160
160
  packageSpec,
161
161
  requireVerifiedNpmOwnership: true,
162
162
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
163
163
  });
164
- if (!_chunk5LCV36BRjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
+ if (!_chunkVOQWPUIFjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
165
165
  return false;
166
166
  }
167
167
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
168
168
  deferredAutoUpdate = async () => {
169
169
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
170
170
  };
171
- if (_chunkHGQT6EGKjs.isJsonOutputMode.call(void 0, )) {
171
+ if (_chunkNNWEQDZRjs.isJsonOutputMode.call(void 0, )) {
172
172
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
173
- _chunkHGQT6EGKjs.addJsonNotice.call(void 0, {
173
+ _chunkNNWEQDZRjs.addJsonNotice.call(void 0, {
174
174
  code: "sdk_update_queued",
175
175
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
176
176
  });
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
183
183
  return true;
184
184
  }
185
185
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
186
- if (!_chunk5LCV36BRjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
+ if (!_chunkVOQWPUIFjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
187
187
  const autoUpdate = response.auto_update;
188
188
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
189
189
  process.stderr.write(
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
196
196
  event: "started",
197
197
  installKind: plan.kind
198
198
  });
199
- const updateResult = await _chunk5LCV36BRjs.runAutomaticUpdatePlan.call(void 0, plan);
199
+ const updateResult = await _chunkVOQWPUIFjs.runAutomaticUpdatePlan.call(void 0, plan);
200
200
  if (updateResult.status === "skipped_previous_failure") {
201
201
  void reportAutoUpdateEvent({
202
202
  baseUrl,
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
234
234
  exitCode: 0
235
235
  });
236
236
  try {
237
- await _chunkXX7TZM4Njs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
+ await _chunkZ6DERGHYjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
238
238
  mode: "detached",
239
239
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
240
240
  afterCliUpdate: {
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
261
261
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
262
262
  var activeToolExecuteCommand = null;
263
263
  function progressLine(line) {
264
- if (!_chunkHGQT6EGKjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
+ if (!_chunkNNWEQDZRjs.isJsonOutputMode.call(void 0, )) console.error(line);
265
265
  }
266
266
  function beginToolExecuteCommand() {
267
267
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-4LMTY4RQ.mjs";
5
+ } from "./chunk-3ZBPXNSW.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -22,14 +22,14 @@ import {
22
22
  saveHostEnvValues,
23
23
  saveProjectDeeplineEnvValues,
24
24
  storedHostApiKey
25
- } from "./chunk-W66GXHYR.mjs";
25
+ } from "./chunk-X5RXG6VS.mjs";
26
26
  import {
27
27
  SDK_API_CONTRACT,
28
28
  SDK_VERSION,
29
29
  connectionFailureMessage,
30
30
  detectAgentRuntime,
31
31
  networkCauseCode
32
- } from "./chunk-CFLAGRWL.mjs";
32
+ } from "./chunk-IG3CXIJY.mjs";
33
33
  import {
34
34
  DeeplineError
35
35
  } from "./chunk-Z3A2S3QM.mjs";