deepline 0.3.491 → 0.3.493

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 (184) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +11 -5
  2. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +6 -0
  5. package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
  6. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  7. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  8. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +54 -0
  9. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
  10. package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
  12. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +5 -3
  13. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +293 -110
  17. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
  23. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
  24. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +104 -2
  25. package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +7 -2
  26. package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +4 -0
  27. package/dist/bundling-sources/shared_libs/product-notifications/content.ts +13 -0
  28. package/dist/bundling-sources/shared_libs/product-notifications/email.ts +49 -10
  29. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +22 -0
  30. package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +6 -1
  31. package/dist/cli/{auth-FXAC472Y.mjs → auth-3NAY3AST.mjs} +5 -5
  32. package/dist/cli/auth-KYQLDI6V.js +43 -0
  33. package/dist/cli/{billing-PDOA3KZ3.js → billing-FSB4BBBO.js} +80 -80
  34. package/dist/cli/{billing-UM4LE33K.mjs → billing-SBWQCC7B.mjs} +7 -7
  35. package/dist/cli/{chunk-HSJK6EMU.mjs → chunk-2BRTYIAH.mjs} +23 -9
  36. package/dist/cli/{chunk-B2TXKEED.js → chunk-2H4OFVR5.js} +5 -5
  37. package/dist/cli/{chunk-BCKIBVEJ.js → chunk-2I7VN65H.js} +10 -10
  38. package/dist/cli/{chunk-LMG7O6XJ.mjs → chunk-2IHGVAGT.mjs} +2 -2
  39. package/dist/cli/{chunk-5KMGKG4B.js → chunk-2NGIBJM2.js} +8 -8
  40. package/dist/cli/{chunk-2MW6TGNZ.mjs → chunk-3QGUWB6E.mjs} +4 -4
  41. package/dist/cli/{chunk-ORKLMANE.mjs → chunk-4IJFQV3O.mjs} +1 -1
  42. package/dist/cli/{chunk-PIPEPCRL.mjs → chunk-4NIGNT7X.mjs} +1 -1
  43. package/dist/cli/{chunk-H6UIS36S.mjs → chunk-5DIZ2G74.mjs} +2 -2
  44. package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
  45. package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-5WOPBX3H.mjs} +1 -1
  46. package/dist/cli/{chunk-KGJVDR4Q.mjs → chunk-67ZG7XZV.mjs} +3 -3
  47. package/dist/cli/{chunk-DUFRH43S.js → chunk-7HABWOMB.js} +261 -261
  48. package/dist/cli/{chunk-MN6DCV63.js → chunk-AGTXL6LZ.js} +5 -5
  49. package/dist/cli/{chunk-Q7G7CU4W.js → chunk-AWMCZAUR.js} +3 -3
  50. package/dist/cli/{chunk-HHTVRICE.js → chunk-C2MRDPA5.js} +17 -17
  51. package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
  52. package/dist/cli/{chunk-O3K22ZC7.js → chunk-DWJ4RXSA.js} +34 -11
  53. package/dist/cli/{chunk-MAM6ZOVS.mjs → chunk-DYP27IWC.mjs} +99 -24
  54. package/dist/cli/{chunk-NUOKAKZW.mjs → chunk-E5ILCMKQ.mjs} +1 -1
  55. package/dist/cli/{chunk-OLHWZM4A.mjs → chunk-EBAS3UT2.mjs} +6 -6
  56. package/dist/cli/{chunk-74H5OTRM.js → chunk-EFO5GVYS.js} +1 -1
  57. package/dist/cli/{chunk-X7YOVJBC.js → chunk-EYG336YV.js} +132 -57
  58. package/dist/cli/{chunk-YV4DP6KQ.mjs → chunk-GSC35TPZ.mjs} +2 -2
  59. package/dist/cli/{chunk-EPD7NSDJ.mjs → chunk-HLM2UFQ5.mjs} +13 -5
  60. package/dist/cli/{chunk-IG3GSBBE.js → chunk-HTUSTPP4.js} +32 -32
  61. package/dist/cli/{chunk-CFPFTS3A.mjs → chunk-IJJ6D5WL.mjs} +12 -12
  62. package/dist/cli/{chunk-TH7JLR5D.js → chunk-IJOHWGPF.js} +6 -6
  63. package/dist/cli/{chunk-RFSXXDH7.js → chunk-IOBPR2VO.js} +17 -17
  64. package/dist/cli/{chunk-HNG2U3IG.js → chunk-IOMEJKGK.js} +2 -2
  65. package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-IRDYBMA7.mjs} +34 -11
  66. package/dist/cli/{chunk-ZEZ3CZ3X.js → chunk-JO2JZUBR.js} +3 -3
  67. package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
  68. package/dist/cli/{chunk-SJOHQ2WW.js → chunk-KCDZWS2B.js} +56 -56
  69. package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-KGDDQMI7.mjs} +2 -2
  70. package/dist/cli/{chunk-OYJTLEB4.mjs → chunk-KKSKYZO4.mjs} +1 -1
  71. package/dist/cli/{chunk-TMAS3WH3.js → chunk-LGTZYI5B.js} +21 -21
  72. package/dist/cli/{chunk-SUMKWA53.js → chunk-MLEUOTEQ.js} +73 -59
  73. package/dist/cli/{chunk-3WRWPNHE.mjs → chunk-NALJJTPS.mjs} +5 -5
  74. package/dist/cli/{chunk-27MRSV6O.js → chunk-NPNAEPY4.js} +26 -26
  75. package/dist/cli/{chunk-AEKJZJ4R.js → chunk-NWIDPT7H.js} +4 -4
  76. package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
  77. package/dist/cli/{chunk-3FMU6F6E.js → chunk-QTPS5RLG.js} +15 -15
  78. package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
  79. package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
  80. package/dist/cli/{chunk-S4CYM4EC.mjs → chunk-SXD2EYAH.mjs} +6 -6
  81. package/dist/cli/{chunk-YNWET57Z.js → chunk-TIFRRLZT.js} +7 -7
  82. package/dist/cli/{chunk-6PMM7VJN.mjs → chunk-TNQOR6XQ.mjs} +1 -1
  83. package/dist/cli/{chunk-6UARNRXT.js → chunk-UCMY2SO2.js} +23 -15
  84. package/dist/cli/{chunk-X75ONMDJ.mjs → chunk-VFHIYWMC.mjs} +5 -5
  85. package/dist/cli/{chunk-ZX2FXZJN.js → chunk-WCZFCOMZ.js} +7 -7
  86. package/dist/cli/{chunk-IIO7UOVW.mjs → chunk-WTFI7BVH.mjs} +3 -3
  87. package/dist/cli/{chunk-I64PYCTB.js → chunk-XLE7KXE7.js} +2 -2
  88. package/dist/cli/{chunk-CRBBGKRH.js → chunk-XQX476QK.js} +14 -14
  89. package/dist/cli/{chunk-WCWVXN3R.mjs → chunk-Y3NN2UAF.mjs} +2 -2
  90. package/dist/cli/{chunk-3K4IAV7I.mjs → chunk-ZQH4TXM2.mjs} +2 -2
  91. package/dist/cli/{chunk-VC3SH4QW.mjs → chunk-ZVW7EWTC.mjs} +7 -7
  92. package/dist/cli/{chunk-QBOE5LEH.mjs → chunk-ZVXB7OU7.mjs} +1 -1
  93. package/dist/cli/command-docs.js +2 -2
  94. package/dist/cli/command-docs.mjs +1 -1
  95. package/dist/cli/{csv-IGPAPAES.js → csv-DKYZE2KM.js} +13 -13
  96. package/dist/cli/{csv-RNMQHECI.mjs → csv-XR22YQXT.mjs} +4 -4
  97. package/dist/cli/{db-CKMVVGXJ.mjs → db-EOKG36YN.mjs} +7 -7
  98. package/dist/cli/{db-32OXM3TO.js → db-RNYRTCMV.js} +28 -28
  99. package/dist/cli/describe-ICFXOQBW.mjs +50 -0
  100. package/dist/cli/describe-RS75I33X.js +50 -0
  101. package/dist/cli/describe-core.d.mts +2 -2
  102. package/dist/cli/describe-core.d.ts +2 -2
  103. package/dist/cli/describe-core.js +4 -4
  104. package/dist/cli/describe-core.mjs +3 -3
  105. package/dist/cli/{executions-S4M4JMCU.mjs → executions-3RAOACNS.mjs} +7 -7
  106. package/dist/cli/{executions-PCZS7B2M.js → executions-OBWPSWH7.js} +9 -9
  107. package/dist/cli/{feedback-FGUJVCBS.mjs → feedback-6EQRVBKF.mjs} +4 -4
  108. package/dist/cli/{feedback-6EGKPZ3U.js → feedback-6GPEUBLF.js} +8 -8
  109. package/dist/cli/getting-started.d.mts +12 -10
  110. package/dist/cli/getting-started.d.ts +12 -10
  111. package/dist/cli/getting-started.js +4 -2
  112. package/dist/cli/getting-started.mjs +3 -1
  113. package/dist/cli/{git-LR4ARG5H.mjs → git-CVQ24DTR.mjs} +5 -5
  114. package/dist/cli/git-DEFE4SSB.js +25 -0
  115. package/dist/cli/index.js +143 -143
  116. package/dist/cli/index.mjs +43 -43
  117. package/dist/cli/{legacy-noops-S37PJ7OJ.mjs → legacy-noops-QULJZYNH.mjs} +5 -5
  118. package/dist/cli/{legacy-noops-VX4JEQR6.js → legacy-noops-XPOATG5V.js} +8 -8
  119. package/dist/cli/{monitors-H3AX6CZG.mjs → monitors-AFT5YJPZ.mjs} +49 -9
  120. package/dist/cli/{monitors-ADASJI72.js → monitors-OJ4CMREE.js} +169 -129
  121. package/dist/cli/{org-ZRJ3C56J.js → org-RKT52CSL.js} +73 -73
  122. package/dist/cli/{org-D3F5LUDW.mjs → org-WHKNXANG.mjs} +7 -7
  123. package/dist/cli/{pages-PSHU366M.mjs → pages-EEAQFGVD.mjs} +7 -7
  124. package/dist/cli/{pages-5TKO3644.js → pages-SOE3R667.js} +18 -18
  125. package/dist/cli/{play-AUDDK7XB.mjs → play-LXFWHUBP.mjs} +147 -52
  126. package/dist/cli/{play-VDAETQDI.js → play-OTJJ4E4T.js} +661 -566
  127. package/dist/cli/{providers-IURPWRWD.js → providers-RU4HIAT3.js} +10 -10
  128. package/dist/cli/{providers-X7YMZSKQ.mjs → providers-U3CPKTMM.mjs} +7 -7
  129. package/dist/cli/{quickstart-6AGWVFNX.mjs → quickstart-75AO2AJC.mjs} +5 -5
  130. package/dist/cli/{quickstart-Y6GFXLDV.js → quickstart-N72IVA2Y.js} +13 -13
  131. package/dist/cli/{run-TG7J45NS.mjs → run-IGWFL6WH.mjs} +29 -28
  132. package/dist/cli/{run-TQFGOXNT.js → run-MMYES3IW.js} +44 -43
  133. package/dist/cli/search-EQURI7SZ.js +32 -0
  134. package/dist/cli/{search-3G4J2GC6.mjs → search-FIYESBLZ.mjs} +8 -8
  135. package/dist/cli/{search-output-NPZICK5C.js → search-output-2FXN4ZWD.js} +9 -6
  136. package/dist/cli/{search-output-ZGNHDCLL.mjs → search-output-3I5KSW36.mjs} +7 -4
  137. package/dist/cli/{secrets-KTTHT4ZG.js → secrets-HCZQ6JNP.js} +16 -16
  138. package/dist/cli/{secrets-EAWJBRUD.mjs → secrets-O7IUQ3VT.mjs} +7 -7
  139. package/dist/cli/{sessions-S4YVBPAW.js → sessions-5AYTT4IW.js} +6 -6
  140. package/dist/cli/{sessions-D4Q3LCEQ.mjs → sessions-KY7A3EZO.mjs} +5 -5
  141. package/dist/cli/{settings-BAK3VOWW.js → settings-P4VFYWJK.js} +80 -80
  142. package/dist/cli/{settings-JUORW6NL.mjs → settings-WSMRR2GS.mjs} +13 -13
  143. package/dist/cli/{setup-NJPHTW32.js → setup-J7CA3EJL.js} +57 -57
  144. package/dist/cli/{setup-AXFGCXJE.mjs → setup-YTVKVQC7.mjs} +13 -13
  145. package/dist/cli/skills-KKPEGLAR.js +36 -0
  146. package/dist/cli/{skills-SKJVDJEF.mjs → skills-W5WY764N.mjs} +10 -10
  147. package/dist/cli/tools-65Y4QTW6.js +57 -0
  148. package/dist/cli/{tools-63THJVJZ.mjs → tools-YECI6N3N.mjs} +20 -20
  149. package/dist/cli/{update-KSID5F74.mjs → update-BIFBIEII.mjs} +10 -10
  150. package/dist/cli/update-WDG7VFOW.js +34 -0
  151. package/dist/cli/{workflow-BLSMWBKW.js → workflow-D2TUFFH6.js} +18 -18
  152. package/dist/cli/{workflow-C4B54X2Z.mjs → workflow-XZVDNARC.mjs} +8 -8
  153. package/dist/{client-CQgGFxAH.d.ts → client-BDB_VbE4.d.ts} +1 -1
  154. package/dist/{client-B4R1scm2.d.mts → client-CNzJ1LTF.d.mts} +1 -1
  155. package/dist/{client-core-DMvHWjub.d.mts → client-core-CSv3DlPD.d.mts} +76 -5
  156. package/dist/{client-core-BUNjKBKq.d.ts → client-core-xEa9x3pl.d.ts} +76 -5
  157. package/dist/index.d.mts +3 -3
  158. package/dist/index.d.ts +3 -3
  159. package/dist/index.js +10 -10
  160. package/dist/index.mjs +7 -7
  161. package/dist/install-integrity.json +115 -114
  162. package/dist/plays/play-description.d.mts +1 -1
  163. package/dist/plays/play-description.d.ts +1 -1
  164. package/dist/plays/run-request.d.mts +1 -1
  165. package/dist/plays/run-request.d.ts +1 -1
  166. package/dist/plays/run-request.js +2 -2
  167. package/dist/plays/run-request.mjs +1 -1
  168. package/dist/release.d.mts +1 -1
  169. package/dist/release.d.ts +1 -1
  170. package/dist/release.js +2 -2
  171. package/dist/release.mjs +1 -1
  172. package/dist/server.d.mts +2 -2
  173. package/dist/server.d.ts +2 -2
  174. package/dist/server.js +6 -6
  175. package/dist/server.mjs +4 -4
  176. package/package.json +1 -1
  177. package/dist/cli/auth-QIDL3YCW.js +0 -43
  178. package/dist/cli/describe-67GMIEIO.js +0 -50
  179. package/dist/cli/describe-QR7I3VOF.mjs +0 -50
  180. package/dist/cli/git-PIH5Z5LN.js +0 -25
  181. package/dist/cli/search-VC43NUY7.js +0 -32
  182. package/dist/cli/skills-4NQZISNK.js +0 -36
  183. package/dist/cli/tools-BAHK33FQ.js +0 -57
  184. package/dist/cli/update-EMIGRGJ7.js +0 -34
@@ -11,23 +11,23 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkSJOHQ2WWjs = require('./chunk-SJOHQ2WW.js');
14
+ var _chunkKCDZWS2Bjs = require('./chunk-KCDZWS2B.js');
15
15
 
16
16
 
17
- var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
17
+ var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.js');
23
+ var _chunkJO2JZUBRjs = require('./chunk-JO2JZUBR.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkAEKJZJ4Rjs = require('./chunk-AEKJZJ4R.js');
27
+ var _chunkNWIDPT7Hjs = require('./chunk-NWIDPT7H.js');
28
28
 
29
29
 
30
- var _chunk4OLXMJ2Ljs = require('./chunk-4OLXMJ2L.js');
30
+ var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
31
31
 
32
32
  // src/cli/commands/skills.ts
33
33
  var _child_process = require('child_process');
@@ -76,15 +76,15 @@ function workspaceSkillRootsForAgents(agents) {
76
76
  )
77
77
  ].sort((a, b) => a.localeCompare(b));
78
78
  }
79
- function deeplineGtmCodexSkillFile(root) {
80
- if (root === null) return _chunk4OLXMJ2Ljs.DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE;
81
- return _path.join.call(void 0,
82
- root,
83
- WORKSPACE_SKILL_ROOTS_BY_AGENT.codex[0],
84
- "skills",
85
- "deepline-gtm",
86
- "SKILL.md"
79
+ function deeplineGtmSkillRoots(root) {
80
+ if (root === null) {
81
+ const claudeConfig = _optionalChain([process, 'access', _ => _.env, 'access', _2 => _2.CLAUDE_CONFIG_DIR, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]);
82
+ return claudeConfig ? `${_path.join.call(void 0, claudeConfig, "skills")} or ~/.agents/skills` : _chunkRLX5ZFNXjs.DEEPLINE_GTM_GLOBAL_SKILL_ROOTS;
83
+ }
84
+ const [claude, codex] = ["claude-code", "codex"].map(
85
+ (agent) => _path.join.call(void 0, root, WORKSPACE_SKILL_ROOTS_BY_AGENT[agent][0], "skills")
87
86
  );
87
+ return `${claude} or ${codex}`;
88
88
  }
89
89
  function installedSkillRoots(agent, scope, root) {
90
90
  if (scope === "local") {
@@ -94,7 +94,7 @@ function installedSkillRoots(agent, scope, root) {
94
94
  const home = _os.homedir.call(void 0, );
95
95
  const shared = _path.join.call(void 0, home, ".agents", "skills");
96
96
  const claude = _path.join.call(void 0,
97
- _optionalChain([process, 'access', _ => _.env, 'access', _2 => _2.CLAUDE_CONFIG_DIR, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) || _path.join.call(void 0, home, ".claude"),
97
+ _optionalChain([process, 'access', _5 => _5.env, 'access', _6 => _6.CLAUDE_CONFIG_DIR, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || _path.join.call(void 0, home, ".claude"),
98
98
  "skills"
99
99
  );
100
100
  switch (agent) {
@@ -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 = _chunkZEZ3CZ3Xjs.resolveProjectPinTarget.call(void 0, );
148
+ const target = _chunkJO2JZUBRjs.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, () => ( _chunkAEKJZJ4Rjs.detectAgentRuntime.call(void 0, )));
159
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkNWIDPT7Hjs.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, _chunkZEZ3CZ3Xjs.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, _chunkJO2JZUBRjs.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 = [..._chunkSJOHQ2WWjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
178
+ const legacyNames = [..._chunkKCDZWS2Bjs.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=${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE}`,
192
+ `--package=${_chunkKCDZWS2Bjs.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=${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE}`,
208
+ `--package=${_chunkKCDZWS2Bjs.SKILLS_NPX_PACKAGE}`,
209
209
  "--",
210
210
  "skills",
211
211
  "add",
212
- _chunkSJOHQ2WWjs.skillsSourceUrl.call(void 0, input.baseUrl),
212
+ _chunkKCDZWS2Bjs.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 = _chunkSJOHQ2WWjs.resolveShellSpawn.call(void 0,
249
+ const plan = _chunkKCDZWS2Bjs.resolveShellSpawn.call(void 0,
250
250
  command,
251
251
  args,
252
252
  process.platform,
@@ -268,7 +268,7 @@ function runProcess(command, args, cwd) {
268
268
  child.kill("SIGTERM");
269
269
  reject(
270
270
  new Error(
271
- `${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
271
+ `${_chunkKCDZWS2Bjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
272
272
  )
273
273
  );
274
274
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -279,21 +279,78 @@ function runProcess(command, args, cwd) {
279
279
  child.once("close", (code) => {
280
280
  clearTimeout(timeout);
281
281
  if (code && stderr.trim()) {
282
- process.stderr.write(`${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE} exited ${code}.
282
+ process.stderr.write(`${_chunkKCDZWS2Bjs.SKILLS_NPX_PACKAGE} exited ${code}.
283
283
  `);
284
284
  }
285
285
  resolve(_nullishCoalesce(code, () => ( 1)));
286
286
  });
287
287
  });
288
288
  }
289
+ async function showSkills(options, name) {
290
+ const baseUrl = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
291
+ const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
292
+ try {
293
+ const response = await fetch(url, {
294
+ signal: AbortSignal.timeout(SKILLS_PROCESS_TIMEOUT_MS)
295
+ });
296
+ if (!response.ok) {
297
+ throw new Error(
298
+ response.status === 404 && name ? `no skill named ${name}; run deepline skills list` : `HTTP ${response.status} from ${url}`
299
+ );
300
+ }
301
+ if (name) {
302
+ const markdown = await response.text();
303
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
304
+ { ok: true, status: "completed", skill: { name, markdown } },
305
+ { json: options.json, text: markdown }
306
+ );
307
+ return 0;
308
+ }
309
+ const index = await response.json();
310
+ const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
311
+ (skill) => skill.install_surface === "v1" && skill.name
312
+ );
313
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
314
+ {
315
+ ok: true,
316
+ status: "completed",
317
+ skills: skills.map(({ name: name2, description }) => ({ name: name2, description })),
318
+ next: "deepline skills show <name>"
319
+ },
320
+ {
321
+ json: options.json,
322
+ text: `${skills.map((skill) => `${skill.name}: ${_nullishCoalesce(skill.description, () => ( ""))}`).join("\n")}
323
+
324
+ Read one with: deepline skills show <name>
325
+ `
326
+ }
327
+ );
328
+ return 0;
329
+ } catch (error) {
330
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
331
+ {
332
+ ok: false,
333
+ status: "failed",
334
+ code: "SKILL_UNAVAILABLE",
335
+ exitCode: 5,
336
+ message: `Could not fetch skills: ${error instanceof Error ? error.message : String(error)}`
337
+ },
338
+ { json: options.json }
339
+ );
340
+ return 5;
341
+ }
342
+ }
289
343
  async function runSkillsCommand(options, dependencies = {}) {
344
+ if (options.list || options.name) {
345
+ return showSkills(options, options.list ? null : _nullishCoalesce(options.name, () => ( null)));
346
+ }
290
347
  let scope;
291
348
  let root;
292
349
  try {
293
350
  scope = normalizeScope(options.scope);
294
351
  root = scope === "local" ? resolveLocalRoot() : null;
295
352
  } catch (error) {
296
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
353
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
297
354
  {
298
355
  ok: false,
299
356
  status: "failed",
@@ -305,22 +362,22 @@ async function runSkillsCommand(options, dependencies = {}) {
305
362
  );
306
363
  return 2;
307
364
  }
308
- const baseUrl = _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
365
+ const baseUrl = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
309
366
  const catalog = {
310
- skillNames: [..._chunkSJOHQ2WWjs.DEFAULT_SDK_SKILL_NAMES],
311
- version: _chunkAEKJZJ4Rjs.SDK_VERSION
367
+ skillNames: [..._chunkKCDZWS2Bjs.DEFAULT_SDK_SKILL_NAMES],
368
+ version: _chunkNWIDPT7Hjs.SDK_VERSION
312
369
  };
313
370
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
314
371
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
315
372
  if (options.dryRun) {
316
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
373
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
317
374
  { ok: true, status: "planned", dryRun: true, ...plan },
318
375
  { json: options.json }
319
376
  );
320
377
  return 0;
321
378
  }
322
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkSJOHQ2WWjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
323
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
379
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkKCDZWS2Bjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
380
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
324
381
  {
325
382
  ok: true,
326
383
  status: "current",
@@ -352,10 +409,10 @@ async function runSkillsCommand(options, dependencies = {}) {
352
409
  }
353
410
  if (scope === "local" && root) {
354
411
  const managedNames = [
355
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkSJOHQ2WWjs.LEGACY_SKILL_NAMES_TO_REMOVE])
412
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkKCDZWS2Bjs.LEGACY_SKILL_NAMES_TO_REMOVE])
356
413
  ];
357
414
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
358
- _chunkZEZ3CZ3Xjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
415
+ _chunkJO2JZUBRjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
359
416
  ".deepline/",
360
417
  ...agentRoots.flatMap(
361
418
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -364,7 +421,7 @@ async function runSkillsCommand(options, dependencies = {}) {
364
421
  }
365
422
  let lease;
366
423
  try {
367
- lease = scope === "global" ? await _chunkSJOHQ2WWjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
424
+ lease = scope === "global" ? await _chunkKCDZWS2Bjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
368
425
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
369
426
  onWait: () => process.stderr.write(
370
427
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -372,8 +429,8 @@ async function runSkillsCommand(options, dependencies = {}) {
372
429
  }) : { release: () => {
373
430
  } };
374
431
  } catch (error) {
375
- if (!(error instanceof _chunkSJOHQ2WWjs.SkillsStateUnavailableError)) throw error;
376
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
432
+ if (!(error instanceof _chunkKCDZWS2Bjs.SkillsStateUnavailableError)) throw error;
433
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
377
434
  {
378
435
  ok: false,
379
436
  status: "failed",
@@ -382,14 +439,14 @@ async function runSkillsCommand(options, dependencies = {}) {
382
439
  scope,
383
440
  agents,
384
441
  message: error.message,
385
- next: `Resolve this filesystem error, then run: deepline skills --scope ${scope}`
442
+ next: `Resolve this filesystem error, then run: deepline skills install --scope ${scope}`
386
443
  },
387
444
  { json: options.json }
388
445
  );
389
446
  return 5;
390
447
  }
391
448
  if (!lease) {
392
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
449
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
393
450
  {
394
451
  ok: false,
395
452
  status: "failed",
@@ -398,7 +455,7 @@ async function runSkillsCommand(options, dependencies = {}) {
398
455
  scope,
399
456
  agents,
400
457
  message: "A background Deepline skills refresh is still running for these agents.",
401
- next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkSJOHQ2WWjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
458
+ next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkKCDZWS2Bjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
402
459
  },
403
460
  { json: options.json }
404
461
  );
@@ -447,7 +504,7 @@ async function runSkillsInstallWithLease(input) {
447
504
  }
448
505
  }
449
506
  } catch (error) {
450
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
507
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
451
508
  {
452
509
  ok: false,
453
510
  status: "failed",
@@ -456,14 +513,14 @@ async function runSkillsInstallWithLease(input) {
456
513
  scope,
457
514
  agents,
458
515
  message: error instanceof Error ? error.message : String(error),
459
- next: `deepline skills --scope ${scope}`
516
+ next: `deepline skills install --scope ${scope}`
460
517
  },
461
518
  { json: options.json }
462
519
  );
463
520
  return 5;
464
521
  }
465
522
  if (missing.length > 0) {
466
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
523
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
467
524
  {
468
525
  ok: false,
469
526
  status: "failed",
@@ -473,7 +530,7 @@ async function runSkillsInstallWithLease(input) {
473
530
  agents,
474
531
  missingSkills: missing,
475
532
  message: `The skills installer exited successfully but did not install: ${missing.join(", ")}.`,
476
- next: `deepline skills --scope ${scope}`
533
+ next: `deepline skills install --scope ${scope}`
477
534
  },
478
535
  { json: options.json }
479
536
  );
@@ -503,7 +560,7 @@ async function runSkillsInstallWithLease(input) {
503
560
  {
504
561
  schemaVersion: 1,
505
562
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
506
- cliVersion: _chunkAEKJZJ4Rjs.SDK_VERSION,
563
+ cliVersion: _chunkNWIDPT7Hjs.SDK_VERSION,
507
564
  scope,
508
565
  agents,
509
566
  skillsVersion: plan.version,
@@ -516,9 +573,9 @@ async function runSkillsInstallWithLease(input) {
516
573
  "utf8"
517
574
  );
518
575
  if (scope === "global") {
519
- _chunkSJOHQ2WWjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
576
+ _chunkKCDZWS2Bjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
520
577
  }
521
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
578
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
522
579
  {
523
580
  ok: true,
524
581
  status: "complete",
@@ -545,42 +602,60 @@ async function runSkillsInstallWithLease(input) {
545
602
  return 0;
546
603
  }
547
604
  function registerSkillsCommand(program) {
548
- program.command("skills").description("Replace Deepline agent skills with the current release.").option("--scope <scope>", "Install scope: global or local").option("--agent <agent>", "Override the detected agent target").option("--dry-run", "Print the install plan without changing files").option("--json", "Emit one JSON result envelope").addHelpText(
605
+ const skills = program.command("skills").description("List, read, and install Deepline agent skills.").addHelpText(
606
+ "after",
607
+ `
608
+ Examples:
609
+ deepline skills show
610
+ deepline skills list
611
+ deepline skills show deepline-research
612
+ deepline skills install
613
+ `
614
+ ).action(() => {
615
+ skills.outputHelp();
616
+ });
617
+ skills.command("list").description("List every Deepline agent skill; changes nothing.").option("--json", "Emit one JSON result envelope").action(async (options) => {
618
+ process.exitCode = await runSkillsCommand({ ...options, list: true });
619
+ });
620
+ skills.command("show").description("Print a skill (deepline-gtm by default); changes nothing.").argument("[name]", "A skill name", "deepline-gtm").option("--json", "Emit one JSON result envelope").action(async (name, options) => {
621
+ process.exitCode = await runSkillsCommand({ ...options, name });
622
+ });
623
+ skills.command("install").description("Replace Deepline agent skills with the current release.").option("--scope <scope>", "Install scope: global or local").option("--agent <agent>", "Override the detected agent target").option("--dry-run", "Print the install plan without changing files").option("--json", "Emit one JSON result envelope").addHelpText(
549
624
  "after",
550
625
  `
551
626
  Notes:
552
- This command reinstalls current Deepline-managed skills using ${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE},
627
+ This command reinstalls current Deepline-managed skills using ${_chunkKCDZWS2Bjs.SKILLS_NPX_PACKAGE},
553
628
  then removes legacy Deepline skill names. Local scope writes into the resolved
554
629
  persistent project.
555
630
 
556
631
  Examples:
557
- deepline skills
558
- deepline skills --scope local
559
- deepline skills --agent codex --dry-run
632
+ deepline skills install
633
+ deepline skills install --scope local
634
+ deepline skills install --agent codex --dry-run
560
635
  `
561
636
  ).action(async (options) => {
562
637
  process.exitCode = await runSkillsCommand(options);
563
638
  });
564
- program.command(_chunkSJOHQ2WWjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
639
+ program.command(_chunkKCDZWS2Bjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
565
640
  "--claim <token>",
566
641
  "Owner token of the leases this child was started for."
567
642
  ).action(async (options) => {
568
- const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
643
+ const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
569
644
  if (!claim) {
570
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
645
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
571
646
  {
572
647
  ok: false,
573
648
  status: "failed",
574
649
  code: "SKILLS_AUTO_SYNC_CLAIM_REQUIRED",
575
650
  exitCode: 2,
576
- message: "skills-auto-sync is started by ordinary deepline commands and requires the lease token they pass; run `deepline skills` to install skills yourself."
651
+ message: "skills-auto-sync is started by ordinary deepline commands and requires the lease token they pass; run `deepline skills install` to install skills yourself."
577
652
  },
578
653
  { json: true }
579
654
  );
580
655
  process.exitCode = 2;
581
656
  return;
582
657
  }
583
- await _chunkSJOHQ2WWjs.syncSdkSkillsIfNeeded.call(void 0, _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
658
+ await _chunkKCDZWS2Bjs.syncSdkSkillsIfNeeded.call(void 0, _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
584
659
  mode: "inline",
585
660
  notices: "defer",
586
661
  claim
@@ -599,4 +674,4 @@ Examples:
599
674
 
600
675
 
601
676
 
602
- exports.workspaceSkillRootsForAgents = workspaceSkillRootsForAgents; exports.deeplineGtmCodexSkillFile = deeplineGtmCodexSkillFile; exports.missingInstalledSkills = missingInstalledSkills; exports.inferActiveSkillsScope = inferActiveSkillsScope; exports.detectSkillsAgents = detectSkillsAgents; exports.skillsStatePathForScope = skillsStatePathForScope; exports.buildSkillsPlan = buildSkillsPlan; exports.isSkillsPlanCurrent = isSkillsPlanCurrent; exports.runSkillsCommand = runSkillsCommand; exports.registerSkillsCommand = registerSkillsCommand;
677
+ exports.workspaceSkillRootsForAgents = workspaceSkillRootsForAgents; exports.deeplineGtmSkillRoots = deeplineGtmSkillRoots; exports.missingInstalledSkills = missingInstalledSkills; exports.inferActiveSkillsScope = inferActiveSkillsScope; exports.detectSkillsAgents = detectSkillsAgents; exports.skillsStatePathForScope = skillsStatePathForScope; exports.buildSkillsPlan = buildSkillsPlan; exports.isSkillsPlanCurrent = isSkillsPlanCurrent; exports.runSkillsCommand = runSkillsCommand; exports.registerSkillsCommand = registerSkillsCommand;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-IIO7UOVW.mjs";
3
+ } from "./chunk-WTFI7BVH.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-PIPEPCRL.mjs";
7
+ } from "./chunk-4NIGNT7X.mjs";
8
8
 
9
9
  // src/client.ts
10
10
  var DeeplineClient2 = class extends DeeplineClient {
@@ -2,11 +2,11 @@ import {
2
2
  SCHEMA_LINE_LIMIT,
3
3
  fieldBlockLines,
4
4
  schemaFields
5
- } from "./chunk-DEJIN4DF.mjs";
5
+ } from "./chunk-SAW3FBCA.mjs";
6
6
  import {
7
7
  csvSafeJsonString,
8
8
  csvStringFromRows
9
- } from "./chunk-X75ONMDJ.mjs";
9
+ } from "./chunk-VFHIYWMC.mjs";
10
10
 
11
11
  // src/cli/describe-options.ts
12
12
  function addDescribeOptions(command, options = {}) {
@@ -892,7 +892,10 @@ function receiptText(receipt, options, extra) {
892
892
  const sections = [
893
893
  [
894
894
  options.label ? `${headline}: ${options.label}` : headline,
895
- ...receipt.id ? [`Id: ${receipt.id}`] : [],
895
+ // A tool call's id is its retry key; a play's is the run to look up.
896
+ ...receipt.id ? [
897
+ `${options.label?.endsWith("(tool)") ? "Call Id" : "Run Id"}: ${receipt.id}`
898
+ ] : [],
896
899
  ...receipt.credits !== null ? [
897
900
  `Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}`
898
901
  ] : [],
@@ -901,14 +904,16 @@ function receiptText(receipt, options, extra) {
901
904
  ];
902
905
  const { csv, json } = receipt.outputs;
903
906
  const data = [];
907
+ let resultSection;
904
908
  for (const artifact of csv) {
905
909
  data.push(
906
910
  `Rows: ${artifact.path ?? "stdout"} (${artifact.rowCount} rows from ${listPath(artifact.source ?? "") || "the result"})`
907
911
  );
908
912
  }
909
913
  if (extra.data !== void 0) {
910
- const title = json ? `Result: ${json.path ?? "stdout"}` : "Result (not saved; --json-out saves all of it):";
911
- data.push(...resultLines(title, extra.data, extra.declared, options));
914
+ const title = json ? "Result:" : "Result (not saved; --json-out saves all of it):";
915
+ resultSection = resultLines(title, extra.data, extra.declared, options);
916
+ if (json?.path) data.push(`Saved: ${json.path}`);
912
917
  if (receipt.schemaFile) {
913
918
  data.push(`Full JSON Schema: ${receipt.schemaFile}`);
914
919
  }
@@ -949,6 +954,7 @@ function receiptText(receipt, options, extra) {
949
954
  if (extra.receiptFile) {
950
955
  sections.push([`JSON receipt: ${extra.receiptFile}`]);
951
956
  }
957
+ if (resultSection) sections.push(resultSection);
952
958
  return `${sections.map((lines) => lines.join("\n")).join("\n\n")}
953
959
  `;
954
960
  }
@@ -1008,6 +1014,8 @@ function resultLines(title, data, declared, options) {
1008
1014
  outline2.cut ? more : "--full shows every field of the result; --fields <paths> picks fields."
1009
1015
  ];
1010
1016
  }
1017
+ const json = JSON.stringify(data, null, 2)?.split("\n");
1018
+ if (json && json.length <= budget) return [title, ...json];
1011
1019
  const outline = outlineLines(data, budget);
1012
1020
  return [
1013
1021
  `${title}${outline.note ? ` ${outline.note}` : ""}`,