deepline 0.3.475 → 0.3.476

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 (154) hide show
  1. package/dist/bundling-sources/sdk/src/play.ts +2 -2
  2. package/dist/bundling-sources/sdk/src/release.ts +3 -3
  3. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +19 -6
  4. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +4 -4
  5. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +24 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +21 -4
  7. package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +12 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +8 -6
  9. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +104 -6
  10. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
  11. package/dist/cli/auth-2ZY57Q7W.js +41 -0
  12. package/dist/cli/{auth-CFDYJ7FZ.mjs → auth-A22724UX.mjs} +5 -5
  13. package/dist/cli/{billing-PEXWWLRT.mjs → billing-IIBEZ6J7.mjs} +6 -6
  14. package/dist/cli/{billing-XLIL3FLK.js → billing-T5Q6OO6M.js} +79 -79
  15. package/dist/cli/{chunk-NHQP4UPJ.mjs → chunk-2WEPQSA2.mjs} +5 -5
  16. package/dist/cli/{chunk-D6SXN34W.mjs → chunk-2YHDNHRR.mjs} +4 -4
  17. package/dist/cli/{chunk-V4ILQ2DS.mjs → chunk-3A7TDUZV.mjs} +1 -1
  18. package/dist/cli/{chunk-4QHAP3MR.mjs → chunk-4WMIMSSI.mjs} +5 -5
  19. package/dist/cli/{chunk-HALAYT3Y.mjs → chunk-4YWYLHED.mjs} +3 -3
  20. package/dist/cli/{chunk-B7NJ5JQ2.js → chunk-5AEEINTU.js} +4 -4
  21. package/dist/cli/{chunk-TLPW2SHS.js → chunk-5FBCMLJW.js} +6 -6
  22. package/dist/cli/{chunk-TZRTT7EI.js → chunk-5PYSYW63.js} +26 -26
  23. package/dist/cli/{chunk-3MQJJ6YX.js → chunk-6YZYCKWD.js} +51 -51
  24. package/dist/cli/{chunk-BLW2K6YH.js → chunk-7HAUVMRF.js} +3 -3
  25. package/dist/cli/{chunk-CKSRTD45.js → chunk-A6BETJ2A.js} +3 -3
  26. package/dist/cli/{chunk-U3F63UWD.js → chunk-AS3VECCY.js} +7 -7
  27. package/dist/cli/{chunk-F4FNMXI3.js → chunk-B7PEXXRW.js} +53 -53
  28. package/dist/cli/{chunk-4QHQ3WYW.js → chunk-CBVCCXIY.js} +21 -21
  29. package/dist/cli/{chunk-42F6LTBJ.mjs → chunk-CFSCHLNQ.mjs} +3 -3
  30. package/dist/cli/{chunk-M27SSAQ7.mjs → chunk-D7EQ4PI5.mjs} +1 -1
  31. package/dist/cli/{chunk-KTWXY73Q.js → chunk-EBWYNNTJ.js} +5 -5
  32. package/dist/cli/{chunk-VFP3MFLD.mjs → chunk-F5PYBZ2H.mjs} +1 -1
  33. package/dist/cli/{chunk-QKMWQTMI.js → chunk-FK7SBMSZ.js} +3 -3
  34. package/dist/cli/{chunk-3QSFSHCJ.mjs → chunk-FVPT44IJ.mjs} +1 -1
  35. package/dist/cli/{chunk-MUDOASYL.mjs → chunk-H3GOAZHV.mjs} +2 -2
  36. package/dist/cli/{chunk-VBGPRRJ6.js → chunk-HSANVBVL.js} +2 -2
  37. package/dist/cli/{chunk-BSK2TGB4.js → chunk-IC3BZJR7.js} +8 -8
  38. package/dist/cli/{chunk-7U3L2S7X.mjs → chunk-J4FCTFQS.mjs} +10 -10
  39. package/dist/cli/{chunk-AD7KL6AI.mjs → chunk-JU2KBLOR.mjs} +97 -12
  40. package/dist/cli/{chunk-VD3E3QMI.mjs → chunk-KCP6XNRR.mjs} +1 -1
  41. package/dist/cli/{chunk-ZANUM4XV.js → chunk-KGLIDLJ2.js} +5 -5
  42. package/dist/cli/{chunk-G4SGYWKV.js → chunk-L45IECBZ.js} +6 -6
  43. package/dist/cli/{chunk-HMHH7JQD.mjs → chunk-LJFIUT5R.mjs} +2 -2
  44. package/dist/cli/{chunk-VTCXSICG.mjs → chunk-LZCYDU6Q.mjs} +2 -2
  45. package/dist/cli/{chunk-7SWRXZ4A.js → chunk-MYYOCJZ2.js} +93 -93
  46. package/dist/cli/{chunk-DKR7QPEO.js → chunk-MZSLFWOT.js} +1 -1
  47. package/dist/cli/{chunk-DIMKSDF6.mjs → chunk-NPNQCPFP.mjs} +2 -2
  48. package/dist/cli/{chunk-3WVA7E7O.mjs → chunk-NREO7TT4.mjs} +2 -2
  49. package/dist/cli/{chunk-BVAYLXMH.mjs → chunk-NTJDZURV.mjs} +2 -2
  50. package/dist/cli/{chunk-M7K5BCWP.js → chunk-PGNLD6L6.js} +10 -10
  51. package/dist/cli/{chunk-D3Q4FUFS.js → chunk-TEJSRJNH.js} +8 -8
  52. package/dist/cli/{chunk-YAAQNDP6.mjs → chunk-UHTJWDYB.mjs} +3 -3
  53. package/dist/cli/{chunk-ZQYBKDPA.js → chunk-ULKGYVYP.js} +2 -2
  54. package/dist/cli/{chunk-DUGZKPRK.mjs → chunk-UYA7LJGC.mjs} +2 -2
  55. package/dist/cli/{chunk-6PRYHABU.mjs → chunk-VKBZLV2K.mjs} +1 -1
  56. package/dist/cli/{chunk-NBVYS6VG.js → chunk-VLYUFZUT.js} +9 -9
  57. package/dist/cli/{chunk-FC4C7MZM.mjs → chunk-VPAVNEDQ.mjs} +4 -4
  58. package/dist/cli/{chunk-M4QO3GRD.js → chunk-W3BHZUPL.js} +3 -3
  59. package/dist/cli/{chunk-5QS4T4KR.js → chunk-WFVEMDQL.js} +2 -2
  60. package/dist/cli/{chunk-7XTBEYLS.js → chunk-WTPRRKZA.js} +131 -46
  61. package/dist/cli/{chunk-Z5VSBCFV.js → chunk-YEJDFZJP.js} +16 -16
  62. package/dist/cli/{chunk-YMS7VYFA.mjs → chunk-YQOWMQEW.mjs} +1 -1
  63. package/dist/cli/{chunk-NGOKBSBH.mjs → chunk-ZOXV6WFI.mjs} +1 -1
  64. package/dist/cli/{chunk-EA45HSEC.mjs → chunk-ZV4OWYLZ.mjs} +2 -2
  65. package/dist/cli/command-docs.js +2 -2
  66. package/dist/cli/command-docs.mjs +1 -1
  67. package/dist/cli/{csv-4YHSYV2C.js → csv-FXOQ2PBE.js} +13 -13
  68. package/dist/cli/{csv-WC7ILC7P.mjs → csv-GPVCETS2.mjs} +4 -4
  69. package/dist/cli/{db-I5PV6NTC.mjs → db-F5UJTBGP.mjs} +6 -6
  70. package/dist/cli/{db-APZNM2GI.js → db-LXYV4GPZ.js} +27 -27
  71. package/dist/cli/{describe-XH5F3X5W.mjs → describe-GYWCI7I6.mjs} +17 -17
  72. package/dist/cli/describe-IB7SUIUT.js +48 -0
  73. package/dist/cli/describe-core.d.mts +3 -3
  74. package/dist/cli/describe-core.d.ts +3 -3
  75. package/dist/cli/{executions-PIY4XM7T.mjs → executions-6NL2YW76.mjs} +6 -6
  76. package/dist/cli/{executions-VIXFKZYU.js → executions-6SJKTY2L.js} +8 -8
  77. package/dist/cli/{feedback-IGDHBWGT.mjs → feedback-7AMQCNTB.mjs} +4 -4
  78. package/dist/cli/{feedback-WCLIFQTR.js → feedback-E3HULSQD.js} +8 -8
  79. package/dist/cli/{git-FRICPPTA.mjs → git-74IS2EFH.mjs} +5 -5
  80. package/dist/cli/git-A2QIIMW5.js +25 -0
  81. package/dist/cli/index.js +139 -139
  82. package/dist/cli/index.mjs +41 -41
  83. package/dist/cli/{legacy-noops-ROAXEG6D.mjs → legacy-noops-52FFRTRZ.mjs} +5 -5
  84. package/dist/cli/{legacy-noops-DSFOPYDY.js → legacy-noops-ALWUQPKS.js} +8 -8
  85. package/dist/cli/{monitors-FZ5PRLW6.mjs → monitors-VTJIWWW2.mjs} +7 -7
  86. package/dist/cli/{monitors-KUCYQLU5.js → monitors-Z4ADOGTY.js} +91 -91
  87. package/dist/cli/{org-SRHMWKQR.js → org-2BTEKDF5.js} +72 -72
  88. package/dist/cli/{org-DRNND5XU.mjs → org-7GU6H7JL.mjs} +6 -6
  89. package/dist/cli/{pages-XNGA356T.mjs → pages-I6PFQGEU.mjs} +6 -6
  90. package/dist/cli/{pages-TEJQIHTU.js → pages-MG36E7RY.js} +17 -17
  91. package/dist/cli/{play-NE45ROIZ.mjs → play-7KFSLJX2.mjs} +18 -18
  92. package/dist/cli/{play-GCGFQSFP.js → play-VN52S3RV.js} +321 -321
  93. package/dist/cli/{providers-57TJOSMV.mjs → providers-D46JDEL2.mjs} +6 -6
  94. package/dist/cli/{providers-VHMUR63R.js → providers-W5XLII66.js} +9 -9
  95. package/dist/cli/{quickstart-K3SH4NXP.mjs → quickstart-4GTXBZHY.mjs} +4 -4
  96. package/dist/cli/{quickstart-BPXWO4UD.js → quickstart-TIZAC63S.js} +6 -6
  97. package/dist/cli/{run-553AAXDU.js → run-FOVEMYYX.js} +36 -36
  98. package/dist/cli/{run-ZRWJUEN2.mjs → run-LE3D4LVU.mjs} +22 -22
  99. package/dist/cli/{search-BW6XRS4I.mjs → search-6YL6WJMQ.mjs} +7 -7
  100. package/dist/cli/search-HN6SVDQU.js +32 -0
  101. package/dist/cli/{secrets-AMYQYUL5.js → secrets-CSTTTMZH.js} +15 -15
  102. package/dist/cli/{secrets-OYYCFGZE.mjs → secrets-D66U6RTT.mjs} +6 -6
  103. package/dist/cli/{sessions-RYCJUMJ2.js → sessions-45M2NRAA.js} +6 -6
  104. package/dist/cli/{sessions-O4SVVOMO.mjs → sessions-XIO3OUER.mjs} +5 -5
  105. package/dist/cli/{settings-7R5FQKII.js → settings-N42CVKSK.js} +78 -78
  106. package/dist/cli/{settings-QK7DHDU7.mjs → settings-R33X2D5T.mjs} +11 -11
  107. package/dist/cli/{setup-VDAAVCKK.mjs → setup-CBBC4FQP.mjs} +9 -9
  108. package/dist/cli/{setup-OTQDQHDN.js → setup-HREDVNF2.js} +44 -44
  109. package/dist/cli/{skills-HRK5O5JO.mjs → skills-4X6WS2PT.mjs} +9 -7
  110. package/dist/cli/skills-QZ6HZX2T.js +33 -0
  111. package/dist/cli/tools-KFIH7UWB.js +55 -0
  112. package/dist/cli/{tools-O7BM62QV.mjs → tools-YR46YFR2.mjs} +16 -16
  113. package/dist/cli/{update-UHKHCSTY.mjs → update-5CYAZX5X.mjs} +9 -9
  114. package/dist/cli/update-VZLEJLWJ.js +33 -0
  115. package/dist/cli/{workflow-7Z5NCTGG.js → workflow-M7AA722W.js} +17 -17
  116. package/dist/cli/{workflow-T2EDR7L4.mjs → workflow-NKQ3CWPK.mjs} +7 -7
  117. package/dist/{client-Bgl0_zXi.d.mts → client-AjmfA5nR.d.mts} +1 -1
  118. package/dist/{client-_ah6IuhK.d.ts → client-DMyY-QL8.d.ts} +1 -1
  119. package/dist/{client-core-C-ZF5vh9.d.ts → client-core-C705vFyV.d.ts} +1 -1
  120. package/dist/{client-core-Bfsedm0_.d.mts → client-core-CpBbvLEX.d.mts} +1 -1
  121. package/dist/{compiler-manifest-CCOqDGjU.d.mts → compiler-manifest-hqIAukR0.d.mts} +1 -1
  122. package/dist/{compiler-manifest-CCOqDGjU.d.ts → compiler-manifest-hqIAukR0.d.ts} +1 -1
  123. package/dist/{errors-Cy3kPnsi.d.ts → errors-CRO2qQ6k.d.ts} +1 -1
  124. package/dist/{errors-BLccD7tG.d.mts → errors-DIHVetNY.d.mts} +1 -1
  125. package/dist/{index-D5e4h1-H.d.ts → index-B8DVoeYt.d.ts} +1 -1
  126. package/dist/{index-4-j44HuT.d.mts → index-DVZ_X4Gb.d.mts} +1 -1
  127. package/dist/index.d.mts +9 -9
  128. package/dist/index.d.ts +9 -9
  129. package/dist/index.js +9 -9
  130. package/dist/index.mjs +6 -6
  131. package/dist/install-integrity.json +110 -110
  132. package/dist/plays/bundle-play-file.d.mts +3 -3
  133. package/dist/plays/bundle-play-file.d.ts +3 -3
  134. package/dist/plays/bundle-play-file.mjs +1 -1
  135. package/dist/plays/play-description.d.mts +2 -2
  136. package/dist/plays/play-description.d.ts +2 -2
  137. package/dist/plays/run-request.d.mts +2 -2
  138. package/dist/plays/run-request.d.ts +2 -2
  139. package/dist/release.d.mts +3 -3
  140. package/dist/release.d.ts +3 -3
  141. package/dist/release.js +2 -2
  142. package/dist/release.mjs +1 -1
  143. package/dist/server.d.mts +4 -4
  144. package/dist/server.d.ts +4 -4
  145. package/dist/server.js +5 -5
  146. package/dist/server.mjs +3 -3
  147. package/package.json +1 -1
  148. package/dist/cli/auth-7GVCW24N.js +0 -41
  149. package/dist/cli/describe-OR7FZBCD.js +0 -48
  150. package/dist/cli/git-CKN2F32Y.js +0 -25
  151. package/dist/cli/search-WF26AUDJ.js +0 -32
  152. package/dist/cli/skills-VNLMEOXW.js +0 -31
  153. package/dist/cli/tools-C3MUHL7G.js +0 -55
  154. package/dist/cli/update-TCKTU6QJ.js +0 -33
@@ -11,23 +11,29 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkF4FNMXI3js = require('./chunk-F4FNMXI3.js');
14
+ var _chunkB7PEXXRWjs = require('./chunk-B7PEXXRW.js');
15
15
 
16
16
 
17
- var _chunkU3F63UWDjs = require('./chunk-U3F63UWD.js');
17
+ var _chunkAS3VECCYjs = require('./chunk-AS3VECCY.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkBLW2K6YHjs = require('./chunk-BLW2K6YH.js');
23
+ var _chunk7HAUVMRFjs = require('./chunk-7HAUVMRF.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkB7NJ5JQ2js = require('./chunk-B7NJ5JQ2.js');
27
+ var _chunk5AEEINTUjs = require('./chunk-5AEEINTU.js');
28
28
 
29
29
  // src/cli/commands/skills.ts
30
30
  var _child_process = require('child_process');
31
+
32
+
33
+
34
+
35
+
36
+
31
37
  var _fs = require('fs');
32
38
  var _os = require('os');
33
39
  var _path = require('path');
@@ -67,6 +73,55 @@ function workspaceSkillRootsForAgents(agents) {
67
73
  )
68
74
  ].sort((a, b) => a.localeCompare(b));
69
75
  }
76
+ function installedSkillRoots(agent, scope, root) {
77
+ if (scope === "local") {
78
+ const dirs = root ? WORKSPACE_SKILL_ROOTS_BY_AGENT[agent] : void 0;
79
+ return dirs ? dirs.map((dir) => _path.join.call(void 0, root, dir, "skills")) : null;
80
+ }
81
+ const home = _os.homedir.call(void 0, );
82
+ const shared = _path.join.call(void 0, home, ".agents", "skills");
83
+ const claude = _path.join.call(void 0,
84
+ _optionalChain([process, 'access', _ => _.env, 'access', _2 => _2.CLAUDE_CONFIG_DIR, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) || _path.join.call(void 0, home, ".claude"),
85
+ "skills"
86
+ );
87
+ switch (agent) {
88
+ case "claude-code":
89
+ return [claude];
90
+ case "codex":
91
+ case "cursor":
92
+ case "gemini-cli":
93
+ case "antigravity":
94
+ case "cline":
95
+ return [shared];
96
+ case "windsurf":
97
+ return [_path.join.call(void 0, home, ".codeium", "windsurf", "skills")];
98
+ case "*":
99
+ return [shared, claude];
100
+ default:
101
+ return null;
102
+ }
103
+ }
104
+ var INSTALL_MTIME_SLACK_MS = 2e3;
105
+ function writtenSince(path, sinceMs) {
106
+ try {
107
+ return _fs.statSync.call(void 0, path).mtimeMs >= sinceMs - INSTALL_MTIME_SLACK_MS;
108
+ } catch (e) {
109
+ return false;
110
+ }
111
+ }
112
+ function missingInstalledSkills(plan, sinceMs) {
113
+ const missing = /* @__PURE__ */ new Set();
114
+ for (const agent of plan.agents) {
115
+ const dirs = installedSkillRoots(agent, plan.scope, plan.root);
116
+ if (!dirs) continue;
117
+ for (const name of plan.skillNames) {
118
+ if (!dirs.some((dir) => writtenSince(_path.join.call(void 0, dir, name, "SKILL.md"), sinceMs))) {
119
+ missing.add(name);
120
+ }
121
+ }
122
+ }
123
+ return [...missing].sort((a, b) => a.localeCompare(b));
124
+ }
70
125
  function normalizeScope(value) {
71
126
  if (value === "global") return "global";
72
127
  if (value === "local") return "local";
@@ -77,7 +132,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
77
132
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
78
133
  }
79
134
  function resolveLocalRoot() {
80
- const target = _chunkBLW2K6YHjs.resolveProjectPinTarget.call(void 0, );
135
+ const target = _chunk7HAUVMRFjs.resolveProjectPinTarget.call(void 0, );
81
136
  if (!target.ok) {
82
137
  throw new Error(
83
138
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -88,7 +143,7 @@ function resolveLocalRoot() {
88
143
  return target.dir;
89
144
  }
90
145
  function detectSkillsAgents(input) {
91
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkB7NJ5JQ2js.detectAgentRuntime.call(void 0, )));
146
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunk5AEEINTUjs.detectAgentRuntime.call(void 0, )));
92
147
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
93
148
  if (knownAgent) return [knownAgent];
94
149
  const roots = [
@@ -103,11 +158,11 @@ function detectSkillsAgents(input) {
103
158
  return detected.length > 0 ? detected : ["*"];
104
159
  }
105
160
  function skillsStatePathForScope(baseUrl, scope, root) {
106
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkBLW2K6YHjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
161
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk7HAUVMRFjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
107
162
  }
108
163
  function buildSkillsPlan(input) {
109
164
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
110
- const legacyNames = [..._chunkF4FNMXI3js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
165
+ const legacyNames = [..._chunkB7PEXXRWjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
111
166
  (a, b) => a.localeCompare(b)
112
167
  );
113
168
  return {
@@ -121,7 +176,7 @@ function buildSkillsPlan(input) {
121
176
  args: [
122
177
  "exec",
123
178
  "--yes",
124
- `--package=${_chunkF4FNMXI3js.SKILLS_NPX_PACKAGE}`,
179
+ `--package=${_chunkB7PEXXRWjs.SKILLS_NPX_PACKAGE}`,
125
180
  "--",
126
181
  "skills",
127
182
  "remove",
@@ -137,11 +192,11 @@ function buildSkillsPlan(input) {
137
192
  args: [
138
193
  "exec",
139
194
  "--yes",
140
- `--package=${_chunkF4FNMXI3js.SKILLS_NPX_PACKAGE}`,
195
+ `--package=${_chunkB7PEXXRWjs.SKILLS_NPX_PACKAGE}`,
141
196
  "--",
142
197
  "skills",
143
198
  "add",
144
- _chunkF4FNMXI3js.skillsSourceUrl.call(void 0, input.baseUrl),
199
+ _chunkB7PEXXRWjs.skillsSourceUrl.call(void 0, input.baseUrl),
145
200
  "--agent",
146
201
  ...input.agents,
147
202
  ...scopeArgs,
@@ -172,13 +227,13 @@ function readSkillsInstallState(path) {
172
227
  try {
173
228
  const parsed = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
174
229
  return parsed !== null && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : null;
175
- } catch (e) {
230
+ } catch (e2) {
176
231
  return null;
177
232
  }
178
233
  }
179
234
  function runProcess(command, args, cwd) {
180
235
  return new Promise((resolve, reject) => {
181
- const plan = _chunkF4FNMXI3js.resolveShellSpawn.call(void 0,
236
+ const plan = _chunkB7PEXXRWjs.resolveShellSpawn.call(void 0,
182
237
  command,
183
238
  args,
184
239
  process.platform,
@@ -200,7 +255,7 @@ function runProcess(command, args, cwd) {
200
255
  child.kill("SIGTERM");
201
256
  reject(
202
257
  new Error(
203
- `${_chunkF4FNMXI3js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
258
+ `${_chunkB7PEXXRWjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
204
259
  )
205
260
  );
206
261
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -211,7 +266,7 @@ function runProcess(command, args, cwd) {
211
266
  child.once("close", (code) => {
212
267
  clearTimeout(timeout);
213
268
  if (code && stderr.trim()) {
214
- process.stderr.write(`${_chunkF4FNMXI3js.SKILLS_NPX_PACKAGE} exited ${code}.
269
+ process.stderr.write(`${_chunkB7PEXXRWjs.SKILLS_NPX_PACKAGE} exited ${code}.
215
270
  `);
216
271
  }
217
272
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -225,7 +280,7 @@ async function runSkillsCommand(options, dependencies = {}) {
225
280
  scope = normalizeScope(options.scope);
226
281
  root = scope === "local" ? resolveLocalRoot() : null;
227
282
  } catch (error) {
228
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
283
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0,
229
284
  {
230
285
  ok: false,
231
286
  status: "failed",
@@ -237,22 +292,22 @@ async function runSkillsCommand(options, dependencies = {}) {
237
292
  );
238
293
  return 2;
239
294
  }
240
- const baseUrl = _chunkBLW2K6YHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
295
+ const baseUrl = _chunk7HAUVMRFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
241
296
  const catalog = {
242
- skillNames: [..._chunkF4FNMXI3js.DEFAULT_SDK_SKILL_NAMES],
243
- version: _chunkB7NJ5JQ2js.SDK_VERSION
297
+ skillNames: [..._chunkB7PEXXRWjs.DEFAULT_SDK_SKILL_NAMES],
298
+ version: _chunk5AEEINTUjs.SDK_VERSION
244
299
  };
245
300
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
246
301
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
247
302
  if (options.dryRun) {
248
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
303
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0,
249
304
  { ok: true, status: "planned", dryRun: true, ...plan },
250
305
  { json: options.json }
251
306
  );
252
307
  return 0;
253
308
  }
254
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkF4FNMXI3js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
255
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
309
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkB7PEXXRWjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
310
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0,
256
311
  {
257
312
  ok: true,
258
313
  status: "current",
@@ -284,10 +339,10 @@ async function runSkillsCommand(options, dependencies = {}) {
284
339
  }
285
340
  if (scope === "local" && root) {
286
341
  const managedNames = [
287
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkF4FNMXI3js.LEGACY_SKILL_NAMES_TO_REMOVE])
342
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkB7PEXXRWjs.LEGACY_SKILL_NAMES_TO_REMOVE])
288
343
  ];
289
344
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
290
- _chunkBLW2K6YHjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
345
+ _chunk7HAUVMRFjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
291
346
  ".deepline/",
292
347
  ...agentRoots.flatMap(
293
348
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -296,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
296
351
  }
297
352
  let lease;
298
353
  try {
299
- lease = scope === "global" ? await _chunkF4FNMXI3js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
354
+ lease = scope === "global" ? await _chunkB7PEXXRWjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
300
355
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
301
356
  onWait: () => process.stderr.write(
302
357
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -304,8 +359,8 @@ async function runSkillsCommand(options, dependencies = {}) {
304
359
  }) : { release: () => {
305
360
  } };
306
361
  } catch (error) {
307
- if (!(error instanceof _chunkF4FNMXI3js.SkillsStateUnavailableError)) throw error;
308
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
362
+ if (!(error instanceof _chunkB7PEXXRWjs.SkillsStateUnavailableError)) throw error;
363
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0,
309
364
  {
310
365
  ok: false,
311
366
  status: "failed",
@@ -321,7 +376,7 @@ async function runSkillsCommand(options, dependencies = {}) {
321
376
  return 5;
322
377
  }
323
378
  if (!lease) {
324
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
379
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0,
325
380
  {
326
381
  ok: false,
327
382
  status: "failed",
@@ -330,7 +385,7 @@ async function runSkillsCommand(options, dependencies = {}) {
330
385
  scope,
331
386
  agents,
332
387
  message: "A background Deepline skills refresh is still running for these agents.",
333
- next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkF4FNMXI3js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
388
+ next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkB7PEXXRWjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
334
389
  },
335
390
  { json: options.json }
336
391
  );
@@ -357,17 +412,29 @@ async function runSkillsInstallWithLease(input) {
357
412
  `
358
413
  );
359
414
  const execute = _nullishCoalesce(dependencies.runProcess, () => ( runProcess));
415
+ let missing = [];
416
+ const installStartedAt = Date.now();
360
417
  try {
361
- const installCode = await execute(
362
- plan.install.command,
363
- plan.install.args,
364
- _nullishCoalesce(root, () => ( void 0))
365
- );
366
- if (installCode !== 0) {
367
- throw new Error("Could not install the current Deepline skills.");
418
+ for (let attempt = 1; attempt <= 2; attempt += 1) {
419
+ const installCode = await execute(
420
+ plan.install.command,
421
+ plan.install.args,
422
+ _nullishCoalesce(root, () => ( void 0))
423
+ );
424
+ if (installCode !== 0) {
425
+ throw new Error("Could not install the current Deepline skills.");
426
+ }
427
+ missing = missingInstalledSkills(plan, installStartedAt);
428
+ if (missing.length === 0) break;
429
+ if (attempt === 1) {
430
+ process.stderr.write(
431
+ `The skills installer left out ${missing.join(", ")}; retrying once...
432
+ `
433
+ );
434
+ }
368
435
  }
369
436
  } catch (error) {
370
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
437
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0,
371
438
  {
372
439
  ok: false,
373
440
  status: "failed",
@@ -382,6 +449,23 @@ async function runSkillsInstallWithLease(input) {
382
449
  );
383
450
  return 5;
384
451
  }
452
+ if (missing.length > 0) {
453
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0,
454
+ {
455
+ ok: false,
456
+ status: "failed",
457
+ code: "SKILLS_INSTALL_INCOMPLETE",
458
+ exitCode: 5,
459
+ scope,
460
+ agents,
461
+ missingSkills: missing,
462
+ message: `The skills installer exited successfully but did not install: ${missing.join(", ")}.`,
463
+ next: `deepline skills --scope ${scope}`
464
+ },
465
+ { json: options.json }
466
+ );
467
+ return 5;
468
+ }
385
469
  try {
386
470
  const removeCode = await execute(
387
471
  plan.remove.command,
@@ -406,7 +490,7 @@ async function runSkillsInstallWithLease(input) {
406
490
  {
407
491
  schemaVersion: 1,
408
492
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
409
- cliVersion: _chunkB7NJ5JQ2js.SDK_VERSION,
493
+ cliVersion: _chunk5AEEINTUjs.SDK_VERSION,
410
494
  scope,
411
495
  agents,
412
496
  skillsVersion: plan.version,
@@ -419,9 +503,9 @@ async function runSkillsInstallWithLease(input) {
419
503
  "utf8"
420
504
  );
421
505
  if (scope === "global") {
422
- _chunkF4FNMXI3js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
506
+ _chunkB7PEXXRWjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
423
507
  }
424
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
508
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0,
425
509
  {
426
510
  ok: true,
427
511
  status: "complete",
@@ -452,7 +536,7 @@ function registerSkillsCommand(program) {
452
536
  "after",
453
537
  `
454
538
  Notes:
455
- This command reinstalls current Deepline-managed skills using ${_chunkF4FNMXI3js.SKILLS_NPX_PACKAGE},
539
+ This command reinstalls current Deepline-managed skills using ${_chunkB7PEXXRWjs.SKILLS_NPX_PACKAGE},
456
540
  then removes legacy Deepline skill names. Local scope writes into the resolved
457
541
  persistent project.
458
542
 
@@ -464,13 +548,13 @@ Examples:
464
548
  ).action(async (options) => {
465
549
  process.exitCode = await runSkillsCommand(options);
466
550
  });
467
- program.command(_chunkF4FNMXI3js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
551
+ program.command(_chunkB7PEXXRWjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
468
552
  "--claim <token>",
469
553
  "Owner token of the leases this child was started for."
470
554
  ).action(async (options) => {
471
- const claim = _optionalChain([options, 'access', _ => _.claim, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]);
555
+ const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
472
556
  if (!claim) {
473
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
557
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0,
474
558
  {
475
559
  ok: false,
476
560
  status: "failed",
@@ -483,7 +567,7 @@ Examples:
483
567
  process.exitCode = 2;
484
568
  return;
485
569
  }
486
- await _chunkF4FNMXI3js.syncSdkSkillsIfNeeded.call(void 0, _chunkBLW2K6YHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
570
+ await _chunkB7PEXXRWjs.syncSdkSkillsIfNeeded.call(void 0, _chunk7HAUVMRFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
487
571
  mode: "inline",
488
572
  notices: "defer",
489
573
  claim
@@ -500,4 +584,5 @@ Examples:
500
584
 
501
585
 
502
586
 
503
- exports.workspaceSkillRootsForAgents = workspaceSkillRootsForAgents; exports.inferActiveSkillsScope = inferActiveSkillsScope; exports.detectSkillsAgents = detectSkillsAgents; exports.skillsStatePathForScope = skillsStatePathForScope; exports.buildSkillsPlan = buildSkillsPlan; exports.isSkillsPlanCurrent = isSkillsPlanCurrent; exports.runSkillsCommand = runSkillsCommand; exports.registerSkillsCommand = registerSkillsCommand;
587
+
588
+ exports.workspaceSkillRootsForAgents = workspaceSkillRootsForAgents; 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,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkZQYBKDPAjs = require('./chunk-ZQYBKDPA.js');
4
+ var _chunkULKGYVYPjs = require('./chunk-ULKGYVYP.js');
5
5
 
6
6
 
7
- var _chunk7XTBEYLSjs = require('./chunk-7XTBEYLS.js');
7
+ var _chunkWTPRRKZAjs = require('./chunk-WTPRRKZA.js');
8
8
 
9
9
 
10
- var _chunkF4FNMXI3js = require('./chunk-F4FNMXI3.js');
10
+ var _chunkB7PEXXRWjs = require('./chunk-B7PEXXRW.js');
11
11
 
12
12
 
13
- var _chunkU3F63UWDjs = require('./chunk-U3F63UWD.js');
13
+ var _chunkAS3VECCYjs = require('./chunk-AS3VECCY.js');
14
14
 
15
15
 
16
- var _chunkBLW2K6YHjs = require('./chunk-BLW2K6YH.js');
16
+ var _chunk7HAUVMRFjs = require('./chunk-7HAUVMRF.js');
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  var _child_process = require('child_process');
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
495
495
  }
496
496
  function resolveNpmGlobalPrefix(env) {
497
497
  try {
498
- const plan = _chunkF4FNMXI3js.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkB7PEXXRWjs.resolveShellSpawn.call(void 0,
499
499
  "npm",
500
500
  ["prefix", "-g"],
501
501
  process.platform,
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
556
556
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
557
557
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
558
558
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
559
- const npmVersion = options.npmVersion === void 0 ? _chunkZQYBKDPAjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkZQYBKDPAjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
559
+ const npmVersion = options.npmVersion === void 0 ? _chunkULKGYVYPjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkULKGYVYPjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
561
561
  const args = installPrefix ? [
562
562
  "install",
563
563
  "-g",
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
567
567
  packageSpec
568
568
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
569
569
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
570
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkBLW2K6YHjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk7HAUVMRFjs.autoDetectBaseUrl.call(void 0, )
571
571
  );
572
572
  return {
573
573
  kind: "npm-global",
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
816
816
  function runCommand(command, args, env = process.env) {
817
817
  return new Promise((resolveResult) => {
818
818
  let output = "";
819
- const plan = _chunkF4FNMXI3js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkB7PEXXRWjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
820
820
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
821
821
  stdio: ["inherit", "pipe", "pipe"],
822
822
  shell: plan.shell,
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1199
1199
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1200
1200
  }
1201
1201
  async function runUpdateCommand(options, dependencies = {}) {
1202
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkBLW2K6YHjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk7HAUVMRFjs.autoDetectBaseUrl));
1203
1203
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1204
1204
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1205
1205
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1206
1206
  const originalWrite = process.stdout.write.bind(process.stdout);
1207
1207
  process.stdout.write = (() => true);
1208
1208
  try {
1209
- const exitCode = await _chunk7XTBEYLSjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkWTPRRKZAjs.runSkillsCommand.call(void 0, { json: true });
1210
1210
  if (exitCode !== 0) {
1211
1211
  throw new Error(
1212
1212
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1277
1277
  ]
1278
1278
  };
1279
1279
  if (options.json && !options.executeWithJson) {
1280
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
1284
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ...plan,
1287
1287
  render: {
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1294
1294
  return 0;
1295
1295
  }
1296
1296
  if (plan.kind === "source" || plan.kind === "homebrew") {
1297
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1298
1298
  return 0;
1299
1299
  }
1300
1300
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
1327
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  csvSafeJsonString,
8
8
  csvStringFromRows
9
- } from "./chunk-BVAYLXMH.mjs";
9
+ } from "./chunk-NTJDZURV.mjs";
10
10
 
11
11
  // src/cli/describe-options.ts
12
12
  function addDescribeOptions(command, options = {}) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HttpClient,
3
3
  detectAgentRuntime
4
- } from "./chunk-3QSFSHCJ.mjs";
4
+ } from "./chunk-FVPT44IJ.mjs";
5
5
  import {
6
6
  ConfigError
7
7
  } from "./chunk-4QF2K7TM.mjs";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PlayClient
3
- } from "./chunk-VFP3MFLD.mjs";
3
+ } from "./chunk-F5PYBZ2H.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-NGOKBSBH.mjs";
7
+ } from "./chunk-ZOXV6WFI.mjs";
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- var _chunk5QS4T4KRjs = require('./chunk-5QS4T4KR.js');
9
+ var _chunkWFVEMDQLjs = require('./chunk-WFVEMDQL.js');
10
10
  require('./chunk-COGTRVWW.js');
11
11
 
12
12
 
@@ -16,4 +16,4 @@ require('./chunk-COGTRVWW.js');
16
16
 
17
17
 
18
18
 
19
- exports.CLI_DOC_SURFACE = _chunk5QS4T4KRjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunk5QS4T4KRjs.COMMAND_DOCS; exports.commandDocKey = _chunk5QS4T4KRjs.commandDocKey; exports.helpDetailFromArgv = _chunk5QS4T4KRjs.helpDetailFromArgv; exports.renderActionExplanation = _chunk5QS4T4KRjs.renderActionExplanation; exports.renderCommandExplanation = _chunk5QS4T4KRjs.renderCommandExplanation; exports.renderDocText = _chunk5QS4T4KRjs.renderDocText;
19
+ exports.CLI_DOC_SURFACE = _chunkWFVEMDQLjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkWFVEMDQLjs.COMMAND_DOCS; exports.commandDocKey = _chunkWFVEMDQLjs.commandDocKey; exports.helpDetailFromArgv = _chunkWFVEMDQLjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkWFVEMDQLjs.renderActionExplanation; exports.renderCommandExplanation = _chunkWFVEMDQLjs.renderCommandExplanation; exports.renderDocText = _chunkWFVEMDQLjs.renderDocText;
@@ -6,7 +6,7 @@ import {
6
6
  renderActionExplanation,
7
7
  renderCommandExplanation,
8
8
  renderDocText
9
- } from "./chunk-DUGZKPRK.mjs";
9
+ } from "./chunk-UYA7LJGC.mjs";
10
10
  import "./chunk-KRD6H754.mjs";
11
11
  export {
12
12
  CLI_DOC_SURFACE,
@@ -4,13 +4,13 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkU3F63UWDjs = require('./chunk-U3F63UWD.js');
8
- require('./chunk-BLW2K6YH.js');
9
- require('./chunk-B7NJ5JQ2.js');
7
+ var _chunkAS3VECCYjs = require('./chunk-AS3VECCY.js');
8
+ require('./chunk-7HAUVMRF.js');
9
+ require('./chunk-5AEEINTU.js');
10
10
  require('./chunk-ALJJRZNJ.js');
11
11
  require('./chunk-XNYIZMNQ.js');
12
12
  require('./chunk-DIAWYWT5.js');
13
- require('./chunk-CKSRTD45.js');
13
+ require('./chunk-A6BETJ2A.js');
14
14
  require('./chunk-OG64RBAC.js');
15
15
  require('./chunk-COGTRVWW.js');
16
16
 
@@ -128,7 +128,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
128
128
  column.length,
129
129
  ...rows.map((row) => {
130
130
  const value = _nullishCoalesce(row[column], () => ( ""));
131
- return (verbose ? value : _chunkU3F63UWDjs.clip.call(void 0, value, 42)).length;
131
+ return (verbose ? value : _chunkAS3VECCYjs.clip.call(void 0, value, 42)).length;
132
132
  })
133
133
  )
134
134
  ])
@@ -138,7 +138,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
138
138
  const body = rows.map(
139
139
  (row) => columns.map((column) => {
140
140
  const raw = _nullishCoalesce(row[column], () => ( ""));
141
- const display = verbose ? raw : _chunkU3F63UWDjs.clip.call(void 0, raw, 42);
141
+ const display = verbose ? raw : _chunkAS3VECCYjs.clip.call(void 0, raw, 42);
142
142
  return display.padEnd(widths[column]);
143
143
  }).join(" | ")
144
144
  );
@@ -158,7 +158,7 @@ async function handleCsvShow(path, options, command) {
158
158
  { exitCode: 2 }
159
159
  );
160
160
  }
161
- const allRows = _chunkU3F63UWDjs.readCsvRows.call(void 0, csvPath);
161
+ const allRows = _chunkAS3VECCYjs.readCsvRows.call(void 0, csvPath);
162
162
  const [rowStart, rowEnd] = parseRowRange(options.rows);
163
163
  const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
164
164
  const { rows: selected, columns } = selectColumns(
@@ -171,7 +171,7 @@ async function handleCsvShow(path, options, command) {
171
171
  if (options.summary) {
172
172
  const summaries = summarizeColumns(selected, columns);
173
173
  if (format === "json") {
174
- _chunkU3F63UWDjs.printJson.call(void 0, {
174
+ _chunkAS3VECCYjs.printJson.call(void 0, {
175
175
  rows: summaries,
176
176
  total_rows: selected.length,
177
177
  source_total_rows: allRows.length
@@ -180,7 +180,7 @@ async function handleCsvShow(path, options, command) {
180
180
  }
181
181
  const displayRows = summaryDisplayRows(summaries);
182
182
  if (format === "csv") {
183
- process.stdout.write(_chunkU3F63UWDjs.csvStringFromRows.call(void 0, displayRows));
183
+ process.stdout.write(_chunkAS3VECCYjs.csvStringFromRows.call(void 0, displayRows));
184
184
  return;
185
185
  }
186
186
  process.stdout.write(
@@ -195,7 +195,7 @@ async function handleCsvShow(path, options, command) {
195
195
  return;
196
196
  }
197
197
  if (format === "json") {
198
- _chunkU3F63UWDjs.printJson.call(void 0, {
198
+ _chunkAS3VECCYjs.printJson.call(void 0, {
199
199
  rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
200
200
  });
201
201
  return;
@@ -438,7 +438,7 @@ async function handleCsvRenderStart(options) {
438
438
  if (log) {
439
439
  detail = `
440
440
  CSV render log:
441
- ${_chunkU3F63UWDjs.clip.call(void 0, log, 2e3)}`;
441
+ ${_chunkAS3VECCYjs.clip.call(void 0, log, 2e3)}`;
442
442
  }
443
443
  } catch (e7) {
444
444
  }
@@ -489,7 +489,7 @@ async function handleCsvRenderStatus(options) {
489
489
  if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
490
490
  if (payload.url) lines.push(`Render URL: ${payload.url}`);
491
491
  lines.push(`Render Health: ${payload.health_status}`);
492
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0, payload, {
492
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0, payload, {
493
493
  json: options.json,
494
494
  text: `${lines.join("\n")}
495
495
  `
@@ -525,7 +525,7 @@ async function handleCsvRenderStop(options) {
525
525
  };
526
526
  const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
527
527
  ` : "No running CSV render process found.\n";
528
- _chunkU3F63UWDjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
528
+ _chunkAS3VECCYjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
529
529
  }
530
530
  async function handleCsvRender(action, options) {
531
531
  const normalized = _nullishCoalesce(action, () => ( "start"));