deepline 0.3.580 → 0.3.581

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 (150) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +42 -2
  3. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +49 -11
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +13 -4
  5. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +12 -0
  6. package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +20 -0
  7. package/dist/cli/{agents-BF5VX5ZB.js → agents-UDTRMWPA.js} +81 -39
  8. package/dist/cli/{agents-JRFTZE7G.mjs → agents-VDQSVDSM.mjs} +51 -9
  9. package/dist/cli/{auth-XJXZ64R4.mjs → auth-SRN5FXUQ.mjs} +5 -5
  10. package/dist/cli/auth-UYQHRHYR.js +44 -0
  11. package/dist/cli/{billing-VGMTJI7W.js → billing-HGHIOFSA.js} +111 -111
  12. package/dist/cli/{billing-TXJBGP2I.mjs → billing-PR2SIEJM.mjs} +11 -11
  13. package/dist/cli/{chunk-IG3CXIJY.mjs → chunk-2MIJMDGF.mjs} +1 -1
  14. package/dist/cli/{chunk-2ZCFAUCV.js → chunk-2RLMHWXW.js} +3 -3
  15. package/dist/cli/{chunk-IM322G7M.mjs → chunk-3FMGBMT3.mjs} +1 -1
  16. package/dist/cli/{chunk-SQBSK74D.mjs → chunk-3I6GA5QW.mjs} +1 -1
  17. package/dist/cli/{chunk-XFVJ3JNA.js → chunk-3LP7J63L.js} +5 -5
  18. package/dist/cli/{chunk-H3B6QM6V.mjs → chunk-46EBSUZF.mjs} +3 -3
  19. package/dist/cli/{chunk-WJUAVMQC.js → chunk-5XVDZVCR.js} +8 -8
  20. package/dist/cli/{chunk-COAAKSFX.js → chunk-6U3THMRI.js} +5 -5
  21. package/dist/cli/{chunk-LRZGS6RZ.mjs → chunk-7MMEW2WU.mjs} +1 -1
  22. package/dist/cli/{chunk-URZPR54R.js → chunk-7VOSQARZ.js} +6 -6
  23. package/dist/cli/{chunk-ZADJC22U.js → chunk-A4IOPFEJ.js} +3 -3
  24. package/dist/cli/{chunk-IERWFFDB.mjs → chunk-ALXIC5U5.mjs} +5 -5
  25. package/dist/cli/{chunk-EI7KTESB.mjs → chunk-BDNQDWGI.mjs} +2 -2
  26. package/dist/cli/{chunk-3OSNEWGR.js → chunk-BQL34VOQ.js} +100 -100
  27. package/dist/cli/{chunk-APJ7IPRT.js → chunk-BULUFFST.js} +15 -15
  28. package/dist/cli/{chunk-GE4ZEMMA.mjs → chunk-CDIMI54H.mjs} +2 -2
  29. package/dist/cli/{chunk-ANX3PYLT.js → chunk-CN4MXBZ3.js} +13 -13
  30. package/dist/cli/{chunk-R77IVVEZ.js → chunk-CNRPE3AE.js} +53 -53
  31. package/dist/cli/{chunk-O7AWGIDD.mjs → chunk-DZMQV5FL.mjs} +2 -2
  32. package/dist/cli/{chunk-HEZ24K5F.js → chunk-E2EGQNOS.js} +2 -2
  33. package/dist/cli/{chunk-MCYZO3RB.js → chunk-E5ITZIWK.js} +16 -16
  34. package/dist/cli/{chunk-LC4ETCOA.mjs → chunk-E5O4CMHZ.mjs} +2 -2
  35. package/dist/cli/{chunk-MEDA3STC.mjs → chunk-EHTD65FE.mjs} +1 -1
  36. package/dist/cli/{chunk-E2G2DNAB.js → chunk-EP3GZAHK.js} +7 -7
  37. package/dist/cli/{chunk-MBOPKQJF.js → chunk-FXSDDEAR.js} +1 -1
  38. package/dist/cli/{chunk-TSOXJZSW.js → chunk-INRXX4SX.js} +41 -41
  39. package/dist/cli/{chunk-MP6XUVAJ.mjs → chunk-INXRW5AF.mjs} +2 -2
  40. package/dist/cli/{chunk-GDBNH57Z.js → chunk-IT3F7P6O.js} +10 -10
  41. package/dist/cli/{chunk-XQUVLYOL.js → chunk-J6ITN2X6.js} +7 -7
  42. package/dist/cli/{chunk-D6I7QWOZ.js → chunk-JQK42HZQ.js} +2 -2
  43. package/dist/cli/{chunk-NV5IJ3NY.mjs → chunk-KDITCSPN.mjs} +21 -1
  44. package/dist/cli/{chunk-Z6DERGHY.js → chunk-KO6OLYSD.js} +48 -48
  45. package/dist/cli/{chunk-YY6EB252.js → chunk-LJZESBNY.js} +2 -2
  46. package/dist/cli/{chunk-VOQWPUIF.js → chunk-MSCYYFLY.js} +20 -20
  47. package/dist/cli/{chunk-7ORX33JX.mjs → chunk-N5VJVVVV.mjs} +5 -5
  48. package/dist/cli/{chunk-LHV3HPAY.js → chunk-O5FIWG2O.js} +26 -26
  49. package/dist/cli/{chunk-U4VCAECC.mjs → chunk-OVJWDFIL.mjs} +1 -1
  50. package/dist/cli/{chunk-BAXLPQTM.mjs → chunk-P5ZZY4RM.mjs} +4 -4
  51. package/dist/cli/{chunk-PFNYLTCZ.js → chunk-PLGJG5FX.js} +5 -5
  52. package/dist/cli/{chunk-FCJJPEKN.mjs → chunk-RA3BWUTD.mjs} +5 -5
  53. package/dist/cli/{chunk-6VSUP4WN.js → chunk-SNYH4QY2.js} +4 -4
  54. package/dist/cli/{chunk-7HOG3JZE.mjs → chunk-SZ76UE7C.mjs} +11 -11
  55. package/dist/cli/{chunk-3ZBPXNSW.mjs → chunk-ULU4MEXN.mjs} +2 -2
  56. package/dist/cli/{chunk-V5NDHTBB.js → chunk-VJR4CKYJ.js} +23 -23
  57. package/dist/cli/{chunk-3P4QZIJ5.mjs → chunk-VNW454PP.mjs} +1 -1
  58. package/dist/cli/{chunk-ZR7PDXIA.mjs → chunk-VTPMBOHZ.mjs} +2 -2
  59. package/dist/cli/{chunk-GIZIWNL5.mjs → chunk-VVENTTSA.mjs} +1 -1
  60. package/dist/cli/{chunk-NNWEQDZR.js → chunk-VWPM4OIC.js} +20 -20
  61. package/dist/cli/{chunk-5BPJW6X5.mjs → chunk-WCNJSZHC.mjs} +5 -5
  62. package/dist/cli/{chunk-C6YXUGX2.mjs → chunk-WS5ZX4RB.mjs} +3 -3
  63. package/dist/cli/{chunk-VF3EGTHU.mjs → chunk-WVFDPC4K.mjs} +3 -3
  64. package/dist/cli/{chunk-AZTQJJH7.js → chunk-Y36SQMSN.js} +22 -2
  65. package/dist/cli/{chunk-HLMF53HZ.mjs → chunk-YTPXKG4C.mjs} +1 -1
  66. package/dist/cli/{chunk-X5RXG6VS.mjs → chunk-Z3MJX3PP.mjs} +1 -1
  67. package/dist/cli/{chunk-DQEHBAHL.js → chunk-ZAKNDIK7.js} +9 -9
  68. package/dist/cli/{chunk-BK4Z62CF.mjs → chunk-ZTKLJADJ.mjs} +4 -4
  69. package/dist/cli/command-docs.js +4 -4
  70. package/dist/cli/command-docs.mjs +3 -3
  71. package/dist/cli/concurrent-runs-help-QWDTLZUX.js +22 -0
  72. package/dist/cli/{concurrent-runs-help-DSUQRWZQ.mjs → concurrent-runs-help-Z27MIIH3.mjs} +6 -6
  73. package/dist/cli/{csv-HSHF6JYZ.js → csv-4TP36F5O.js} +13 -13
  74. package/dist/cli/{csv-QNXJBT5T.mjs → csv-4YFTMVWQ.mjs} +4 -4
  75. package/dist/cli/{db-VHYWVLLU.js → db-L5EGGO72.js} +27 -27
  76. package/dist/cli/{db-RAWY3SWS.mjs → db-U5KR6SYI.mjs} +6 -6
  77. package/dist/cli/describe-G3SUS76P.js +50 -0
  78. package/dist/cli/{describe-WZOVHWAM.mjs → describe-LZXXSQ26.mjs} +18 -18
  79. package/dist/cli/{executions-DQIFH4Z6.js → executions-VZKRFDGM.js} +8 -8
  80. package/dist/cli/{executions-QABOXV4K.mjs → executions-ZWEC5DDR.mjs} +6 -6
  81. package/dist/cli/{feedback-6IER2W4G.js → feedback-BTJIJCQF.js} +14 -14
  82. package/dist/cli/{feedback-DW4O63DG.mjs → feedback-HXQTHXEZ.mjs} +6 -6
  83. package/dist/cli/{git-3NAPGZGR.mjs → git-P6A45MMT.mjs} +5 -5
  84. package/dist/cli/git-QU673DBV.js +26 -0
  85. package/dist/cli/index.js +150 -150
  86. package/dist/cli/index.mjs +49 -49
  87. package/dist/cli/{integrations-TSRUTENK.mjs → integrations-4POM2CJ3.mjs} +7 -7
  88. package/dist/cli/{integrations-5LHIBBXB.js → integrations-VSJQBRFS.js} +29 -29
  89. package/dist/cli/{legacy-noops-4N63A6H7.mjs → legacy-noops-I65MIKH2.mjs} +6 -6
  90. package/dist/cli/{legacy-noops-S22XGYGN.js → legacy-noops-QOJGSGVO.js} +9 -9
  91. package/dist/cli/{mcp-4EJHRRFV.mjs → mcp-TGY6SRAC.mjs} +4 -4
  92. package/dist/cli/{mcp-JERBGJYE.js → mcp-WTKBSLSD.js} +24 -24
  93. package/dist/cli/{monitors-7BTLBD6S.mjs → monitors-E2ENT4RY.mjs} +7 -7
  94. package/dist/cli/{monitors-FF35CGC4.js → monitors-TLWVEXW6.js} +100 -100
  95. package/dist/cli/{org-QYIIBKA2.mjs → org-J2LGW5ZR.mjs} +6 -6
  96. package/dist/cli/{org-ADCDO7KU.js → org-PZPJJU7K.js} +121 -121
  97. package/dist/cli/{outcomes-C5DIBG4Q.mjs → outcomes-TMJDASU5.mjs} +6 -6
  98. package/dist/cli/{outcomes-2LW4GK2L.js → outcomes-Z6ZNBJ3U.js} +14 -14
  99. package/dist/cli/{play-DTTDTISL.mjs → play-S3Z24HUS.mjs} +21 -21
  100. package/dist/cli/{play-S5MZ2GRA.js → play-ZOOC57X4.js} +342 -342
  101. package/dist/cli/{providers-AXOEFQ6Q.mjs → providers-ETD6YLFL.mjs} +6 -6
  102. package/dist/cli/{providers-N2IWEJBW.js → providers-O4Y2YBS7.js} +9 -9
  103. package/dist/cli/{quickstart-UC5AJZWU.js → quickstart-NZALIRBP.js} +6 -6
  104. package/dist/cli/{quickstart-ADWSZBV6.mjs → quickstart-QZX32Y5T.mjs} +4 -4
  105. package/dist/cli/{run-6TDYUL7L.js → run-5UXSWJ7N.js} +44 -44
  106. package/dist/cli/{run-R2FVH3K6.mjs → run-HCVBRE2P.mjs} +23 -23
  107. package/dist/cli/search-T3SLR55O.js +32 -0
  108. package/dist/cli/{search-GRHUFSLY.mjs → search-Z247K76U.mjs} +7 -7
  109. package/dist/cli/{search-output-UPQNAFAF.mjs → search-output-XCJI3XRA.mjs} +4 -4
  110. package/dist/cli/{search-output-O7NY3VMD.js → search-output-XFKEGUJA.js} +6 -6
  111. package/dist/cli/{secrets-NKAEJLIQ.mjs → secrets-7JZXHLRU.mjs} +6 -6
  112. package/dist/cli/{secrets-72GJHFER.js → secrets-VUQLTUTM.js} +15 -15
  113. package/dist/cli/sessions-GHW2H7N2.js +23 -0
  114. package/dist/cli/{sessions-VIMF3UF5.mjs → sessions-UNGJ342N.mjs} +6 -6
  115. package/dist/cli/{settings-KCQHBFNZ.mjs → settings-67TIT4MZ.mjs} +12 -12
  116. package/dist/cli/{settings-HFAW5HIF.js → settings-WG5YNHC5.js} +85 -85
  117. package/dist/cli/{setup-2MHWGEAD.js → setup-IYUNW5ZP.js} +49 -49
  118. package/dist/cli/{setup-2ZD5ZIUH.mjs → setup-KMAAJOZM.mjs} +9 -9
  119. package/dist/cli/skills-JVLCEUBF.js +37 -0
  120. package/dist/cli/{skills-X2DZZG5P.mjs → skills-UVS4DODN.mjs} +7 -7
  121. package/dist/cli/{tools-KPTOWKD4.mjs → tools-B42JY4BX.mjs} +17 -17
  122. package/dist/cli/tools-ETA3BJNM.js +57 -0
  123. package/dist/cli/{update-6PMQCEUP.mjs → update-EBYZZ7BW.mjs} +9 -9
  124. package/dist/cli/update-XZEBQCEY.js +37 -0
  125. package/dist/cli/{views-MNBHNO6C.js → views-DOUEKLEV.js} +21 -21
  126. package/dist/cli/{views-VRZ5CTFL.mjs → views-QK3AFD2D.mjs} +6 -6
  127. package/dist/cli/{workflow-SSMFO7YE.js → workflow-TAKT2T7A.js} +17 -17
  128. package/dist/cli/{workflow-7JUJWA5S.mjs → workflow-UBJPGRKF.mjs} +7 -7
  129. package/dist/index.js +9 -9
  130. package/dist/index.mjs +6 -6
  131. package/dist/install-integrity.json +120 -120
  132. package/dist/plays/bundle-play-file.mjs +1 -1
  133. package/dist/release.d.mts +1 -1
  134. package/dist/release.d.ts +1 -1
  135. package/dist/release.js +2 -2
  136. package/dist/release.mjs +1 -1
  137. package/dist/server.js +5 -5
  138. package/dist/server.mjs +3 -3
  139. package/package.json +1 -1
  140. package/dist/cli/auth-25MVD7TK.js +0 -44
  141. package/dist/cli/concurrent-runs-help-DEN63DUM.js +0 -22
  142. package/dist/cli/describe-YHZ2EGBQ.js +0 -50
  143. package/dist/cli/git-SQ2MAKAH.js +0 -26
  144. package/dist/cli/search-V7ANBX3J.js +0 -32
  145. package/dist/cli/sessions-EO6RTMUC.js +0 -23
  146. package/dist/cli/skills-ID6KKDLH.js +0 -37
  147. package/dist/cli/tools-7UY7GERW.js +0 -57
  148. package/dist/cli/update-T2RDLLSY.js +0 -37
  149. /package/dist/cli/{chunk-YGCKMI5P.js → chunk-2M3VVGMZ.js} +0 -0
  150. /package/dist/cli/{chunk-7I4B6V2S.mjs → chunk-VMGJIFSB.mjs} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-HECXJBED.mjs";
4
4
  import {
5
5
  PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS
6
- } from "./chunk-LRZGS6RZ.mjs";
6
+ } from "./chunk-7MMEW2WU.mjs";
7
7
 
8
8
  // src/cli/command-docs.ts
9
9
  var PLAY_RUNTIME_PRICING_NOTE = `With included compute pricing, large (4gb) costs ${PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS.large}\xD7 and xlarge (8gb) costs ${PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS.xlarge}\xD7 the standard (1gb) hourly rate. Included compute applies proportionally.`;
@@ -4372,6 +4372,26 @@ Outcomes (needs the outcomes rollout):
4372
4372
  [[org service-accounts set-role <service-account-id> member]] (the id is in
4373
4373
  [[org service-accounts list]]). Until then attaching says so and changes
4374
4374
  nothing on the outcome.
4375
+ A channel made an outcome's home (with --outcome, or the card in Slack)
4376
+ and its outcome's feed are copied into each other; a home channel
4377
+ connected before this copies nothing until turned on with
4378
+ [[agents channels set C0123456789 --sync on]]. What
4379
+ members of your Slack workspace post there (top-level or in a thread)
4380
+ goes on the feed under their linked Deepline name, or their Slack name
4381
+ marked "(Slack)"; guests, people from other organizations and bots are
4382
+ not copied. Entries, tasks and asks posted on the outcome anywhere else
4383
+ (Deepline, the CLI, other agents) are posted in the channel under their
4384
+ author's name, in the matching thread; the agent's own posts and system
4385
+ entries are not. Everyone who can read the outcome reads what is said in
4386
+ its home channel, private channels included. A message copied to the feed
4387
+ does not wake the agent; mention it to ask it something. Edits and
4388
+ deletions are not copied. Turn it off for one channel with
4389
+ [[agents channels set C0123456789 --sync off]] (--sync on turns it back
4390
+ on). Guests in the channel read everything copied there from the
4391
+ outcome, as they read the channel. A message from someone who is not a
4392
+ linked Deepline member with member access is copied marked "(Slack)"
4393
+ and reaches no agent: it is top-level, and its @handles mention nobody. A paused outcome still syncs. Sync needs Deepline's app to be
4394
+ reachable, so a local stack without a public address copies nothing.
4375
4395
  A paused outcome still wakes its agent when something reaches it; the
4376
4396
  agent is told the outcome is paused and decides what is worth doing.
4377
4397
  Every outcome has an agent by default. While agents are on, an outcome
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkZADJC22Ujs = require('./chunk-ZADJC22U.js');
3
+ var _chunkA4IOPFEJjs = require('./chunk-A4IOPFEJ.js');
4
4
 
5
5
 
6
- var _chunkNNWEQDZRjs = require('./chunk-NNWEQDZR.js');
6
+ var _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
7
7
 
8
8
 
9
9
 
@@ -18,20 +18,20 @@ var _chunkNNWEQDZRjs = require('./chunk-NNWEQDZR.js');
18
18
 
19
19
 
20
20
 
21
- var _chunk2ZCFAUCVjs = require('./chunk-2ZCFAUCV.js');
21
+ var _chunk2RLMHWXWjs = require('./chunk-2RLMHWXW.js');
22
22
 
23
23
 
24
24
 
25
25
 
26
26
 
27
27
 
28
- var _chunk6VSUP4WNjs = require('./chunk-6VSUP4WN.js');
28
+ var _chunkSNYH4QY2js = require('./chunk-SNYH4QY2.js');
29
29
 
30
30
 
31
31
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
32
32
 
33
33
 
34
- var _chunkMBOPKQJFjs = require('./chunk-MBOPKQJF.js');
34
+ var _chunkFXSDDEARjs = require('./chunk-FXSDDEAR.js');
35
35
 
36
36
  // src/compat.ts
37
37
  var _crypto = require('crypto');
@@ -66,7 +66,7 @@ function shouldSkipCompatibilityCheck() {
66
66
  return value === "1" || value === "true" || value === "yes";
67
67
  }
68
68
  function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
69
- return _path.join.call(void 0, _chunk2ZCFAUCVjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
69
+ return _path.join.call(void 0, _chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
70
70
  }
71
71
  function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
72
72
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -74,9 +74,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
74
74
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
75
75
  return JSON.stringify({
76
76
  baseUrl: baseUrl.replace(/\/$/, ""),
77
- version: _chunk6VSUP4WNjs.SDK_VERSION,
78
- apiContract: _chunk6VSUP4WNjs.SDK_API_CONTRACT,
79
- apiMajor: _chunk6VSUP4WNjs.SDK_API_MAJOR,
77
+ version: _chunkSNYH4QY2js.SDK_VERSION,
78
+ apiContract: _chunkSNYH4QY2js.SDK_API_CONTRACT,
79
+ apiMajor: _chunkSNYH4QY2js.SDK_API_MAJOR,
80
80
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
81
81
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
82
82
  });
@@ -84,8 +84,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
84
84
  function legacyCompatibilityCacheKey(baseUrl, command) {
85
85
  return JSON.stringify({
86
86
  baseUrl: baseUrl.replace(/\/$/, ""),
87
- version: _chunk6VSUP4WNjs.SDK_VERSION,
88
- apiContract: _chunk6VSUP4WNjs.SDK_API_CONTRACT,
87
+ version: _chunkSNYH4QY2js.SDK_VERSION,
88
+ apiContract: _chunkSNYH4QY2js.SDK_API_CONTRACT,
89
89
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
90
90
  });
91
91
  }
@@ -110,7 +110,7 @@ function isSavedWithin(savedAt, windowMs, now) {
110
110
  }
111
111
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
112
112
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
113
- const path = _path.join.call(void 0, _chunk2ZCFAUCVjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
113
+ const path = _path.join.call(void 0, _chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
114
114
  try {
115
115
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
116
116
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -195,7 +195,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
195
195
  const timeout = setTimeout(() => controller.abort(), timeoutMs);
196
196
  try {
197
197
  const url = new URL("/api/v2/sdk/compat", baseUrl);
198
- url.searchParams.set("version", _chunk6VSUP4WNjs.SDK_VERSION);
198
+ url.searchParams.set("version", _chunkSNYH4QY2js.SDK_VERSION);
199
199
  if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
200
200
  url.searchParams.set("command", options.command.trim());
201
201
  }
@@ -203,7 +203,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
203
203
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
204
204
  url.searchParams.set(
205
205
  "skills_cli_capability",
206
- String(_chunkMBOPKQJFjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
206
+ String(_chunkFXSDDEARjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
207
207
  );
208
208
  }
209
209
  if (options.catalog) {
@@ -215,14 +215,14 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
215
215
  const response = await fetch(url, {
216
216
  method: "GET",
217
217
  headers: {
218
- ..._chunk6VSUP4WNjs.deploymentProtectionHeaders.call(void 0, ),
219
- "User-Agent": `deepline-ts-sdk/${_chunk6VSUP4WNjs.SDK_VERSION}`,
220
- "X-Deepline-SDK-Version": _chunk6VSUP4WNjs.SDK_VERSION,
221
- "X-Deepline-API-Major": String(_chunk6VSUP4WNjs.SDK_API_MAJOR),
222
- "X-Deepline-API-Contract": _chunk6VSUP4WNjs.SDK_API_CONTRACT,
218
+ ..._chunkSNYH4QY2js.deploymentProtectionHeaders.call(void 0, ),
219
+ "User-Agent": `deepline-ts-sdk/${_chunkSNYH4QY2js.SDK_VERSION}`,
220
+ "X-Deepline-SDK-Version": _chunkSNYH4QY2js.SDK_VERSION,
221
+ "X-Deepline-API-Major": String(_chunkSNYH4QY2js.SDK_API_MAJOR),
222
+ "X-Deepline-API-Contract": _chunkSNYH4QY2js.SDK_API_CONTRACT,
223
223
  "X-Deepline-CLI-Update-Preferences": "1",
224
224
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
225
- ...options.catalog ? { Authorization: `Bearer ${_chunk2ZCFAUCVjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
225
+ ...options.catalog ? { Authorization: `Bearer ${_chunk2RLMHWXWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
226
226
  ..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
227
227
  },
228
228
  signal: controller.signal
@@ -238,7 +238,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
238
238
  if (!raw || typeof raw.ok !== "boolean" || typeof raw.status !== "string") {
239
239
  return {
240
240
  ok: false,
241
- transient: _chunk2ZCFAUCVjs.TRANSIENT_HTTP_STATUSES.has(response.status),
241
+ transient: _chunk2RLMHWXWjs.TRANSIENT_HTTP_STATUSES.has(response.status),
242
242
  error: new Error(
243
243
  `SDK compatibility endpoint returned a non-policy response (HTTP ${response.status}).`
244
244
  )
@@ -309,8 +309,8 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
309
309
  }
310
310
  async function requireSdkCompatibility(baseUrl, options = {}) {
311
311
  if (shouldSkipCompatibilityCheck()) return null;
312
- const maxRetries = _nullishCoalesce(options.maxRetries, () => ( _chunk2ZCFAUCVjs.DEFAULT_MAX_RETRIES));
313
- const backoffMs = _nullishCoalesce(options.backoffMs, () => ( _chunk2ZCFAUCVjs.defaultRetryBackoffMs));
312
+ const maxRetries = _nullishCoalesce(options.maxRetries, () => ( _chunk2RLMHWXWjs.DEFAULT_MAX_RETRIES));
313
+ const backoffMs = _nullishCoalesce(options.backoffMs, () => ( _chunk2RLMHWXWjs.defaultRetryBackoffMs));
314
314
  let attempt;
315
315
  let attempts = 0;
316
316
  for (; ; ) {
@@ -318,7 +318,7 @@ async function requireSdkCompatibility(baseUrl, options = {}) {
318
318
  attempt = await attemptSdkCompatibility(
319
319
  baseUrl,
320
320
  options,
321
- _nullishCoalesce(options.attemptTimeoutMs, () => ( _chunk2ZCFAUCVjs.DEFAULT_TIMEOUT))
321
+ _nullishCoalesce(options.attemptTimeoutMs, () => ( _chunk2RLMHWXWjs.DEFAULT_TIMEOUT))
322
322
  );
323
323
  if (attempt.ok) return acceptSdkCompatibility(baseUrl, options, attempt);
324
324
  if (!attempt.transient || attempts > maxRetries) break;
@@ -467,7 +467,7 @@ function skillsSourceUrl(baseUrl) {
467
467
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
468
468
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
469
469
  const [firstSkillName, ...extraSkillNames] = skillNames;
470
- const agents = _nullishCoalesce(options.agents, () => ( _chunk2ZCFAUCVjs.DEFAULT_SKILL_AGENTS));
470
+ const agents = _nullishCoalesce(options.agents, () => ( _chunk2RLMHWXWjs.DEFAULT_SKILL_AGENTS));
471
471
  const values = {
472
472
  skills_index_url: skillsIndexUrl(baseUrl),
473
473
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -598,25 +598,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
598
598
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
599
599
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
600
600
  function shouldSkipSkillsSync() {
601
- if (_chunk6VSUP4WNjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
601
+ if (_chunkSNYH4QY2js.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
602
602
  return true;
603
603
  }
604
604
  const value = _optionalChain([process, 'access', _62 => _62.env, 'access', _63 => _63.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65(), 'access', _66 => _66.toLowerCase, 'call', _67 => _67()]);
605
605
  return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
606
606
  }
607
607
  function unavailableSkillsNoticePath(baseUrl) {
608
- return _path.join.call(void 0, _chunk2ZCFAUCVjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
608
+ return _path.join.call(void 0, _chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
609
609
  }
610
610
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
611
611
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
612
- var agentLeaseSegment = _chunk2ZCFAUCVjs.skillsAgentPathSegment;
612
+ var agentLeaseSegment = _chunk2RLMHWXWjs.skillsAgentPathSegment;
613
613
  function sortedLeaseAgents(agents) {
614
- const expanded = agents.includes("*") ? [...agents, ..._chunk2ZCFAUCVjs.KNOWN_SKILL_AGENTS] : agents;
614
+ const expanded = agents.includes("*") ? [...agents, ..._chunk2RLMHWXWjs.KNOWN_SKILL_AGENTS] : agents;
615
615
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
616
616
  }
617
617
  function inProgressSkillsSyncPath(baseUrl, agent) {
618
618
  return _path.join.call(void 0,
619
- _chunk2ZCFAUCVjs.sdkCliStateDirPath.call(void 0, baseUrl),
619
+ _chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl),
620
620
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
621
621
  );
622
622
  }
@@ -775,7 +775,7 @@ var SkillsStateUnavailableError = class extends Error {
775
775
  constructor(baseUrl, error) {
776
776
  const detail = error instanceof Error ? error.message : String(error);
777
777
  super(
778
- `Could not save skills state in ${_chunk2ZCFAUCVjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
778
+ `Could not save skills state in ${_chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
779
779
  );
780
780
  this.name = "SkillsStateUnavailableError";
781
781
  }
@@ -860,7 +860,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
860
860
  }
861
861
  function deferredSkillsNoticePath(baseUrl, agents) {
862
862
  return _path.join.call(void 0,
863
- _chunk2ZCFAUCVjs.sdkCliStateDirPath.call(void 0, baseUrl),
863
+ _chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl),
864
864
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
865
865
  );
866
866
  }
@@ -894,8 +894,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
894
894
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
895
895
  }
896
896
  function flushDeferredSkillsSyncNotices(baseUrl) {
897
- if (shouldSkipSkillsSync() || _chunk2ZCFAUCVjs.hasActivePluginSkills.call(void 0, )) return;
898
- const agents = _chunk2ZCFAUCVjs.resolveAutoSyncSkillAgents.call(void 0, );
897
+ if (shouldSkipSkillsSync() || _chunk2RLMHWXWjs.hasActivePluginSkills.call(void 0, )) return;
898
+ const agents = _chunk2RLMHWXWjs.resolveAutoSyncSkillAgents.call(void 0, );
899
899
  if (agents.length === 0) return;
900
900
  flushDeferredSkillsNotices(baseUrl, agents);
901
901
  }
@@ -918,7 +918,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
918
918
  }
919
919
  function failedSkillsSyncPath(baseUrl, agents) {
920
920
  return _path.join.call(void 0,
921
- _chunk2ZCFAUCVjs.sdkCliStateDirPath.call(void 0, baseUrl),
921
+ _chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl),
922
922
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
923
923
  );
924
924
  }
@@ -947,7 +947,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
947
947
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
948
948
  writeMarkedSkillsSyncVersion(path, remoteVersion);
949
949
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
950
- const manualCommand = _optionalChain([probes, 'optionalAccess', _71 => _71.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunk2ZCFAUCVjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
950
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _71 => _71.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunk2RLMHWXWjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
951
951
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _72 => _72.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
952
952
  notice(
953
953
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1035,7 +1035,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1035
1035
  return sortedUniqueSkillNames(v1SkillNames2);
1036
1036
  }
1037
1037
  function isDefaultAgentSet(agents) {
1038
- return agents.length === _chunk2ZCFAUCVjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk2ZCFAUCVjs.DEFAULT_SKILL_AGENTS[index]);
1038
+ return agents.length === _chunk2RLMHWXWjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk2RLMHWXWjs.DEFAULT_SKILL_AGENTS[index]);
1039
1039
  }
1040
1040
  function safeSkillFilePath(value) {
1041
1041
  if (typeof value !== "string" || !value) return false;
@@ -1192,10 +1192,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1192
1192
  method: "POST",
1193
1193
  headers: { "Content-Type": "application/json" },
1194
1194
  body: JSON.stringify({
1195
- sdk_cli: { version: _chunk6VSUP4WNjs.SDK_VERSION },
1195
+ sdk_cli: { version: _chunkSNYH4QY2js.SDK_VERSION },
1196
1196
  skills: {
1197
1197
  version: localVersion,
1198
- capability: _chunkMBOPKQJFjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1198
+ capability: _chunkFXSDDEARjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1199
1199
  }
1200
1200
  }),
1201
1201
  signal: controller.signal
@@ -1234,7 +1234,7 @@ function probeInstallers(timeoutMs) {
1234
1234
  }
1235
1235
  function noInstallerProbePath(baseUrl) {
1236
1236
  return _path.join.call(void 0,
1237
- _chunk2ZCFAUCVjs.sdkCliStateDirPath.call(void 0, baseUrl),
1237
+ _chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl),
1238
1238
  "skills-sync-no-installer-unknown.json"
1239
1239
  );
1240
1240
  }
@@ -1314,7 +1314,7 @@ function temporarySkillsSyncSkipCommand() {
1314
1314
  function resolveSkillsInstallSpawn(install, platform = process.platform) {
1315
1315
  return resolveShellSpawn(install.command, install.args, platform);
1316
1316
  }
1317
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk2ZCFAUCVjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1317
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk2RLMHWXWjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1318
1318
  const commands = [];
1319
1319
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1320
1320
  if (probes.bunx === "available") {
@@ -1458,7 +1458,7 @@ function runLegacySkillsCleanup(agents) {
1458
1458
  }
1459
1459
  }
1460
1460
  function writeSdkSkillsStatusLine(line) {
1461
- const progress = _chunkZADJC22Ujs.getActiveCliProgress.call(void 0, );
1461
+ const progress = _chunkA4IOPFEJjs.getActiveCliProgress.call(void 0, );
1462
1462
  if (progress) {
1463
1463
  progress.writeLine(line);
1464
1464
  return;
@@ -1469,11 +1469,11 @@ function writeSdkSkillsStatusLine(line) {
1469
1469
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1470
1470
  const skip = shouldSkipSkillsSync();
1471
1471
  if (skip && !options.claim) return;
1472
- const usingPluginSkills = _chunk2ZCFAUCVjs.hasActivePluginSkills.call(void 0, );
1472
+ const usingPluginSkills = _chunk2RLMHWXWjs.hasActivePluginSkills.call(void 0, );
1473
1473
  if (usingPluginSkills) {
1474
1474
  return;
1475
1475
  }
1476
- const agents = _chunk2ZCFAUCVjs.resolveAutoSyncSkillAgents.call(void 0, );
1476
+ const agents = _chunk2RLMHWXWjs.resolveAutoSyncSkillAgents.call(void 0, );
1477
1477
  if (options.mode === "detached" && agents.length > 0) {
1478
1478
  flushDeferredSkillsNotices(baseUrl, agents);
1479
1479
  }
@@ -1510,7 +1510,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1510
1510
  return;
1511
1511
  }
1512
1512
  try {
1513
- const localVersion = _chunk2ZCFAUCVjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1513
+ const localVersion = _chunk2RLMHWXWjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1514
1514
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1515
1515
  needsUpdate: options.update.needs_update,
1516
1516
  remoteVersion: options.update.remote.version
@@ -1632,7 +1632,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1632
1632
  update.remoteVersion,
1633
1633
  agents
1634
1634
  );
1635
- void _chunkNNWEQDZRjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1635
+ void _chunkVWPM4OICjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1636
1636
  baseUrl,
1637
1637
  remoteSkillsVersion: update.remoteVersion,
1638
1638
  agents,
@@ -1663,7 +1663,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1663
1663
  notice(
1664
1664
  publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
1665
1665
  );
1666
- void _chunkNNWEQDZRjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1666
+ void _chunkVWPM4OICjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1667
1667
  baseUrl,
1668
1668
  remoteSkillsVersion: update.remoteVersion,
1669
1669
  agents,
@@ -1676,7 +1676,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1676
1676
  }
1677
1677
  }
1678
1678
  runLegacySkillsCleanup(agents);
1679
- if (!_chunk2ZCFAUCVjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1679
+ if (!_chunk2RLMHWXWjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1680
1680
  notice(
1681
1681
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1682
1682
  );
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkZ6DERGHYjs = require('./chunk-Z6DERGHY.js');
3
+ var _chunkKO6OLYSDjs = require('./chunk-KO6OLYSD.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkZ6DERGHYjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkKO6OLYSDjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  windowsHide: true,
19
19
  encoding: "utf8",
@@ -1,23 +1,23 @@
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 _chunkYY6EB252js = require('./chunk-YY6EB252.js');
4
+ var _chunkLJZESBNYjs = require('./chunk-LJZESBNY.js');
5
5
 
6
6
 
7
- var _chunkTSOXJZSWjs = require('./chunk-TSOXJZSW.js');
7
+ var _chunkINRXX4SXjs = require('./chunk-INRXX4SX.js');
8
8
 
9
9
 
10
- var _chunkZ6DERGHYjs = require('./chunk-Z6DERGHY.js');
10
+ var _chunkKO6OLYSDjs = require('./chunk-KO6OLYSD.js');
11
11
 
12
12
 
13
- var _chunkNNWEQDZRjs = require('./chunk-NNWEQDZR.js');
13
+ var _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
14
14
 
15
15
 
16
16
 
17
17
 
18
18
 
19
19
 
20
- var _chunk2ZCFAUCVjs = require('./chunk-2ZCFAUCV.js');
20
+ var _chunk2RLMHWXWjs = require('./chunk-2RLMHWXW.js');
21
21
 
22
22
  // src/cli/commands/update.ts
23
23
  var _child_process = require('child_process');
@@ -499,7 +499,7 @@ function normalizedNpmPrefix(value) {
499
499
  }
500
500
  function resolveNpmGlobalPrefix(env) {
501
501
  try {
502
- const plan = _chunkZ6DERGHYjs.resolveShellSpawn.call(void 0,
502
+ const plan = _chunkKO6OLYSDjs.resolveShellSpawn.call(void 0,
503
503
  "npm",
504
504
  ["prefix", "-g"],
505
505
  process.platform,
@@ -561,8 +561,8 @@ function resolveUpdatePlan(options = {}) {
561
561
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
562
562
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
563
563
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
564
- const npmVersion = options.npmVersion === void 0 ? _chunkYY6EB252js.readNpmVersion.call(void 0, env) : options.npmVersion;
565
- const npmGlobalInstallFlags = _chunkYY6EB252js.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
564
+ const npmVersion = options.npmVersion === void 0 ? _chunkLJZESBNYjs.readNpmVersion.call(void 0, env) : options.npmVersion;
565
+ const npmGlobalInstallFlags = _chunkLJZESBNYjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
566
566
  const args = installPrefix ? [
567
567
  "install",
568
568
  "-g",
@@ -572,7 +572,7 @@ function resolveUpdatePlan(options = {}) {
572
572
  packageSpec
573
573
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
574
574
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
575
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk2ZCFAUCVjs.autoDetectBaseUrl.call(void 0, )
575
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk2RLMHWXWjs.autoDetectBaseUrl.call(void 0, )
576
576
  );
577
577
  return {
578
578
  kind: "npm-global",
@@ -821,7 +821,7 @@ function sidecarInstallFailure(versionDir) {
821
821
  function runCommand(command, args, env = process.env) {
822
822
  return new Promise((resolveResult) => {
823
823
  let output = "";
824
- const plan = _chunkZ6DERGHYjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
824
+ const plan = _chunkKO6OLYSDjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
825
825
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
826
826
  windowsHide: true,
827
827
  stdio: ["inherit", "pipe", "pipe"],
@@ -1169,7 +1169,7 @@ function normalizePinnedVersion(value) {
1169
1169
  }
1170
1170
  async function readPinMetadata(registryUrl, version) {
1171
1171
  const controller = new AbortController();
1172
- const timeout = setTimeout(() => controller.abort(), _chunk2ZCFAUCVjs.DEFAULT_TIMEOUT);
1172
+ const timeout = setTimeout(() => controller.abort(), _chunk2RLMHWXWjs.DEFAULT_TIMEOUT);
1173
1173
  try {
1174
1174
  const response = await fetch(
1175
1175
  new URL(
@@ -1185,7 +1185,7 @@ async function readPinMetadata(registryUrl, version) {
1185
1185
  if (!response.ok) {
1186
1186
  return {
1187
1187
  kind: "miss",
1188
- transient: _chunk2ZCFAUCVjs.TRANSIENT_HTTP_STATUSES.has(response.status),
1188
+ transient: _chunk2RLMHWXWjs.TRANSIENT_HTTP_STATUSES.has(response.status),
1189
1189
  error: new Error(`${registryUrl} returned HTTP ${response.status}`)
1190
1190
  };
1191
1191
  }
@@ -1219,8 +1219,8 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl, retry =
1219
1219
  "https://registry.npmjs.org/",
1220
1220
  ...fallbackRegistryUrl ? [fallbackRegistryUrl] : []
1221
1221
  ];
1222
- const maxRetries = _nullishCoalesce(retry.maxRetries, () => ( _chunk2ZCFAUCVjs.DEFAULT_MAX_RETRIES));
1223
- const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunk2ZCFAUCVjs.defaultRetryBackoffMs));
1222
+ const maxRetries = _nullishCoalesce(retry.maxRetries, () => ( _chunk2RLMHWXWjs.DEFAULT_MAX_RETRIES));
1223
+ const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunk2RLMHWXWjs.defaultRetryBackoffMs));
1224
1224
  let lastError = null;
1225
1225
  for (let round = 1; ; round += 1) {
1226
1226
  let transientOnly = true;
@@ -1283,14 +1283,14 @@ async function resolveInstalledVersionIfLatest(plan) {
1283
1283
  return null;
1284
1284
  }
1285
1285
  async function runUpdateCommand(options, dependencies = {}) {
1286
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk2ZCFAUCVjs.autoDetectBaseUrl));
1286
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk2RLMHWXWjs.autoDetectBaseUrl));
1287
1287
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1288
1288
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1289
1289
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1290
1290
  const originalWrite = process.stdout.write.bind(process.stdout);
1291
1291
  process.stdout.write = (() => true);
1292
1292
  try {
1293
- const exitCode = await _chunkTSOXJZSWjs.runSkillsCommand.call(void 0, { json: true });
1293
+ const exitCode = await _chunkINRXX4SXjs.runSkillsCommand.call(void 0, { json: true });
1294
1294
  if (exitCode !== 0) {
1295
1295
  throw new Error(
1296
1296
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1363,7 +1363,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1363
1363
  };
1364
1364
  if (options.json && !options.executeWithJson) {
1365
1365
  const upToDateVersion2 = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
1366
- _chunkNNWEQDZRjs.printCommandEnvelope.call(void 0,
1366
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1367
1367
  {
1368
1368
  ...plan,
1369
1369
  updated: false,
@@ -1375,7 +1375,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1375
1375
  return 0;
1376
1376
  }
1377
1377
  if (options.printCommand) {
1378
- _chunkNNWEQDZRjs.printCommandEnvelope.call(void 0,
1378
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1379
1379
  {
1380
1380
  ...plan,
1381
1381
  render: {
@@ -1388,7 +1388,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1388
1388
  return 0;
1389
1389
  }
1390
1390
  if (plan.kind === "source" || plan.kind === "homebrew") {
1391
- _chunkNNWEQDZRjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1391
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1392
1392
  return 0;
1393
1393
  }
1394
1394
  const upToDateVersion = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
@@ -1426,7 +1426,7 @@ To retry with full installer output, run: deepline skills install
1426
1426
  );
1427
1427
  }
1428
1428
  if (options.executeWithJson && options.json) {
1429
- _chunkNNWEQDZRjs.printCommandEnvelope.call(void 0,
1429
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1430
1430
  {
1431
1431
  ok: true,
1432
1432
  pinnedVersion,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-3P4QZIJ5.mjs";
3
+ } from "./chunk-VNW454PP.mjs";
4
4
  import {
5
5
  maybeReportAutomaticSkillsSyncFailure
6
- } from "./chunk-3ZBPXNSW.mjs";
6
+ } from "./chunk-ULU4MEXN.mjs";
7
7
  import {
8
8
  DEFAULT_MAX_RETRIES,
9
9
  DEFAULT_SKILL_AGENTS,
@@ -18,20 +18,20 @@ import {
18
18
  sdkCliStateDirPath,
19
19
  skillsAgentPathSegment,
20
20
  writeSdkSkillsLocalVersion
21
- } from "./chunk-X5RXG6VS.mjs";
21
+ } from "./chunk-Z3MJX3PP.mjs";
22
22
  import {
23
23
  SDK_API_CONTRACT,
24
24
  SDK_API_MAJOR,
25
25
  SDK_VERSION,
26
26
  deploymentProtectionHeaders,
27
27
  detectAgentRuntime
28
- } from "./chunk-IG3CXIJY.mjs";
28
+ } from "./chunk-2MIJMDGF.mjs";
29
29
  import {
30
30
  DeeplineError
31
31
  } from "./chunk-Z3A2S3QM.mjs";
32
32
  import {
33
33
  SDK_RELEASE
34
- } from "./chunk-GIZIWNL5.mjs";
34
+ } from "./chunk-VVENTTSA.mjs";
35
35
 
36
36
  // src/compat.ts
37
37
  import { randomUUID } from "crypto";