deepline 0.3.567 → 0.3.568
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.
- package/dist/bundling-sources/sdk/src/client-core.ts +33 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +21 -0
- package/dist/cli/{auth-IYYQA4ZO.mjs → auth-AV6JJ2Y6.mjs} +5 -5
- package/dist/cli/auth-IPONFGG7.js +44 -0
- package/dist/cli/{billing-HSUA42W6.js → billing-3RUXM4OW.js} +102 -102
- package/dist/cli/{billing-B37Z3HQJ.mjs → billing-3RVJZROW.mjs} +9 -9
- package/dist/cli/{chunk-7RNBGBTS.js → chunk-2BWPNLYG.js} +9 -9
- package/dist/cli/{chunk-RIR3YNNB.js → chunk-4PAGRUZA.js} +15 -15
- package/dist/cli/{chunk-IPOAJ56O.mjs → chunk-4QGZUHDF.mjs} +5 -5
- package/dist/cli/{chunk-OOFYQCNU.js → chunk-5KDMJLQX.js} +5 -5
- package/dist/cli/{chunk-LTJQCMEM.js → chunk-5KHSPLPO.js} +20 -20
- package/dist/cli/{chunk-WIKOKQJV.js → chunk-5NBR7V5U.js} +1 -1
- package/dist/cli/{chunk-OD4LINNE.mjs → chunk-5SOJGKQM.mjs} +1 -1
- package/dist/cli/{chunk-GFETP5X7.js → chunk-7X34FUYS.js} +7 -7
- package/dist/cli/{chunk-3GRMC25W.mjs → chunk-AAXGFMYQ.mjs} +19 -1
- package/dist/cli/{chunk-Z75WS3TZ.js → chunk-ANRKUFUG.js} +100 -100
- package/dist/cli/{chunk-S72EZ4R5.mjs → chunk-BXNCAZ7G.mjs} +1 -1
- package/dist/cli/{chunk-AC37TMJX.js → chunk-D2DYHEH7.js} +23 -23
- package/dist/cli/{chunk-L5UB7RF2.js → chunk-DIPM4GTS.js} +5 -5
- package/dist/cli/{chunk-A5VWMZY4.js → chunk-F62RQL3X.js} +3 -3
- package/dist/cli/{chunk-FRQYUWGF.mjs → chunk-FQIOTHEZ.mjs} +1 -1
- package/dist/cli/{chunk-KOMEYB7H.mjs → chunk-G7GN3RGE.mjs} +1 -0
- package/dist/cli/{chunk-HYYWZFYF.mjs → chunk-GLTA22I3.mjs} +65 -3
- package/dist/cli/{chunk-JBXDWAGB.mjs → chunk-GXSJTCCG.mjs} +4 -4
- package/dist/cli/{chunk-V5YGEK5Q.js → chunk-H4BU2RRU.js} +26 -8
- package/dist/cli/{chunk-4FTTLJVV.mjs → chunk-HQX2P4NH.mjs} +1 -1
- package/dist/cli/{chunk-OUKIU4AE.js → chunk-JIEUKZ7J.js} +2 -2
- package/dist/cli/{chunk-35TWSBEO.js → chunk-JJSKWDUI.js} +6 -6
- package/dist/cli/{chunk-MMWD3ZTQ.mjs → chunk-JPSKSXNS.mjs} +2 -2
- package/dist/cli/{chunk-PFJNZUUK.js → chunk-JRTB75JO.js} +75 -13
- package/dist/cli/{chunk-FT7OSIWX.mjs → chunk-JT7S45KT.mjs} +3 -3
- package/dist/cli/{chunk-XG5NEJOK.js → chunk-KKIDGS7O.js} +10 -10
- package/dist/cli/{chunk-LZV3AJAX.mjs → chunk-KMWH6VY2.mjs} +2 -2
- package/dist/cli/{chunk-5D3QECRX.js → chunk-LKXBFVYU.js} +53 -53
- package/dist/cli/{chunk-GWKHJ6BN.mjs → chunk-LQTLFFUB.mjs} +2 -2
- package/dist/cli/{chunk-4ACBVZ44.mjs → chunk-M3IMARRH.mjs} +1 -1
- package/dist/cli/{chunk-ASIXRCHD.mjs → chunk-MOJOAX3X.mjs} +3 -3
- package/dist/cli/{chunk-CR7U44AW.js → chunk-O4FCX6BS.js} +3 -3
- package/dist/cli/{chunk-4FVLQFCF.js → chunk-OWSTUCIB.js} +5 -5
- package/dist/cli/{chunk-P4GUUPIV.js → chunk-PE2XN2VM.js} +2 -2
- package/dist/cli/{chunk-OPGDVTAQ.js → chunk-PPQHQ4J2.js} +48 -48
- package/dist/cli/{chunk-6DJHNVGT.mjs → chunk-QVERY22Q.mjs} +2 -2
- package/dist/cli/{chunk-YDXPAUGF.mjs → chunk-RH3WIX2W.mjs} +2 -2
- package/dist/cli/{chunk-KHZVZOJF.js → chunk-RJJNXV36.js} +20 -20
- package/dist/cli/{chunk-3E2C6CIE.js → chunk-RUAEON5J.js} +4 -4
- package/dist/cli/{chunk-SDJ5CTZX.js → chunk-RZMU7ISG.js} +26 -26
- package/dist/cli/{chunk-AUXDJJYK.mjs → chunk-S2HGTJET.mjs} +5 -5
- package/dist/cli/{chunk-C67KGU5G.mjs → chunk-SHO6BOXN.mjs} +11 -11
- package/dist/cli/{chunk-3TJKNRHY.mjs → chunk-SONHOBIK.mjs} +2 -2
- package/dist/cli/{chunk-RSQ6AVH3.mjs → chunk-TM3Z7JXT.mjs} +1 -1
- package/dist/cli/{chunk-ZPD6SPP2.mjs → chunk-TSNVG3T5.mjs} +1 -1
- package/dist/cli/{chunk-LQRWLQAQ.js → chunk-UPUBCTSS.js} +2 -2
- package/dist/cli/{chunk-64CQF2JL.mjs → chunk-V5WFPMUC.mjs} +4 -4
- package/dist/cli/{chunk-KOBUUBOO.mjs → chunk-VEPXXRHO.mjs} +2 -2
- package/dist/cli/{chunk-6TLCP356.mjs → chunk-VIMSKO7W.mjs} +5 -5
- package/dist/cli/{chunk-PH4SALNI.mjs → chunk-VVGHZ7S6.mjs} +1 -1
- package/dist/cli/{chunk-YRRXHWQ2.mjs → chunk-VW2EUXY2.mjs} +5 -5
- package/dist/cli/{chunk-ZNXUAZDK.js → chunk-WYXXJA5J.js} +41 -41
- package/dist/cli/{chunk-NQ6NYC54.js → chunk-Y4Q4LQRX.js} +13 -13
- package/dist/cli/{chunk-OEVCKW2M.js → chunk-ZVJ2YNAH.js} +1 -0
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-66WCD2Y4.js +22 -0
- package/dist/cli/{concurrent-runs-help-P5TBHSRA.mjs → concurrent-runs-help-SJ27PPHV.mjs} +6 -6
- package/dist/cli/{csv-2F5LOZUT.js → csv-BGXZKS5R.js} +13 -13
- package/dist/cli/{csv-KPYMOFM2.mjs → csv-ZN4QI6PJ.mjs} +4 -4
- package/dist/cli/{db-4H4CJFI2.js → db-KTAZ5FBG.js} +27 -27
- package/dist/cli/{db-URVQ2LNU.mjs → db-SVBVPMWN.mjs} +6 -6
- package/dist/cli/{describe-KV6RFX2K.mjs → describe-4CGCRK24.mjs} +18 -18
- package/dist/cli/describe-M3MOFAVN.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-BAAJY5LB.js → executions-75DO2GBS.js} +8 -8
- package/dist/cli/{executions-NFQCGCBK.mjs → executions-YL5CTGWP.mjs} +6 -6
- package/dist/cli/{feedback-Y3WJ5VTT.js → feedback-2SMUBQZR.js} +14 -14
- package/dist/cli/{feedback-UF2TRDNI.mjs → feedback-VEA3XJM3.mjs} +6 -6
- package/dist/cli/{git-EIURJKMS.mjs → git-BEYEHMCX.mjs} +5 -5
- package/dist/cli/git-XDS5BHBG.js +26 -0
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-YVBIIULS.js → integrations-PIXZBU2N.js} +29 -29
- package/dist/cli/{integrations-TPEILZYO.mjs → integrations-RXWE6WUZ.mjs} +7 -7
- package/dist/cli/{legacy-noops-EVEQ4T2F.mjs → legacy-noops-PJHP4GRU.mjs} +6 -6
- package/dist/cli/{legacy-noops-K5YAE7DD.js → legacy-noops-XHVEYEJN.js} +9 -9
- package/dist/cli/{mcp-NADIFFBS.js → mcp-276ZFIUM.js} +24 -24
- package/dist/cli/{mcp-7UX5HDKR.mjs → mcp-SUOIVUOM.mjs} +4 -4
- package/dist/cli/{monitors-V2XU3WU3.mjs → monitors-AVGNLV7V.mjs} +7 -7
- package/dist/cli/{monitors-TOWPB2IO.js → monitors-DGBB7X4G.js} +100 -100
- package/dist/cli/{org-S2UZTR74.js → org-U5275K5D.js} +121 -121
- package/dist/cli/{org-J2FDLRIR.mjs → org-WKP2BZJQ.mjs} +6 -6
- package/dist/cli/{outcomes-ECG7SORM.mjs → outcomes-H3RAH5ES.mjs} +6 -6
- package/dist/cli/{outcomes-DIU4I6IA.js → outcomes-LSCS6QE5.js} +14 -14
- package/dist/cli/{play-SIYRTGQF.mjs → play-7MSJU3LP.mjs} +19 -19
- package/dist/cli/{play-LW5RPGMR.js → play-GNT7SITC.js} +324 -324
- package/dist/cli/{providers-G4FAPJ6K.js → providers-KTEG2ZNS.js} +9 -9
- package/dist/cli/{providers-5VIQLQGV.mjs → providers-YDKHHCO4.mjs} +6 -6
- package/dist/cli/{quickstart-IPM5YDLX.mjs → quickstart-F6IH43NP.mjs} +4 -4
- package/dist/cli/{quickstart-6NLZQN2K.js → quickstart-T2NJMACU.js} +6 -6
- package/dist/cli/{run-Z3TL5ZOG.mjs → run-AJB4MQGO.mjs} +23 -23
- package/dist/cli/{run-VGIB7CJB.js → run-MIRJIW45.js} +44 -44
- package/dist/cli/{search-2CLGFCVP.mjs → search-V6YPFL6J.mjs} +7 -7
- package/dist/cli/search-YPZ575MY.js +32 -0
- package/dist/cli/{search-output-O6RCBYN6.mjs → search-output-4VDZLO42.mjs} +4 -4
- package/dist/cli/{search-output-FEB5JLB5.js → search-output-GGCIICSW.js} +6 -6
- package/dist/cli/{secrets-OVVWC2HX.js → secrets-L2VDRZDZ.js} +15 -15
- package/dist/cli/{secrets-RBHLBJHA.mjs → secrets-XUENPM5D.mjs} +6 -6
- package/dist/cli/sessions-GJLSOVLW.js +23 -0
- package/dist/cli/{sessions-PFA3PFXV.mjs → sessions-W7LHEE35.mjs} +6 -6
- package/dist/cli/{settings-N54VKHLV.mjs → settings-IVFOUU7V.mjs} +12 -12
- package/dist/cli/{settings-V5OAQOFP.js → settings-NB6Y53VR.js} +85 -85
- package/dist/cli/{setup-XF3KBJ6Y.js → setup-2F42I4HW.js} +49 -49
- package/dist/cli/{setup-2EZ563DR.mjs → setup-QUL7OO6A.mjs} +9 -9
- package/dist/cli/skills-2KAEOH2N.js +37 -0
- package/dist/cli/{skills-7DULCICX.mjs → skills-SL3DNAH6.mjs} +7 -7
- package/dist/cli/{tools-NC5IVGAT.mjs → tools-TD5EJ2UD.mjs} +17 -17
- package/dist/cli/tools-W6223Q4W.js +57 -0
- package/dist/cli/update-IZBYF422.js +37 -0
- package/dist/cli/{update-4H3GBUVU.mjs → update-Z53GM6PX.mjs} +9 -9
- package/dist/cli/{views-CEGJLVO7.js → views-VAQGFKXN.js} +21 -21
- package/dist/cli/{views-O2V4FIII.mjs → views-ZB6AOING.mjs} +6 -6
- package/dist/cli/{workflow-SGWK2I2Z.mjs → workflow-OKDLEK3G.mjs} +7 -7
- package/dist/cli/{workflow-EJNNNQOE.js → workflow-PSIQ5HVP.js} +17 -17
- package/dist/{client-vUZGmXT9.d.ts → client-B8_eh5F-.d.ts} +1 -1
- package/dist/{client-B5cSKEi4.d.mts → client-D5mo-R-t.d.mts} +1 -1
- package/dist/{client-core-BP19BoBb.d.mts → client-core-BPu-brbA.d.mts} +19 -0
- package/dist/{client-core-Deqov12F.d.ts → client-core-Br12Asu-.d.ts} +19 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -118
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-KI3KBLRD.js +0 -44
- package/dist/cli/concurrent-runs-help-7SA3A2K5.js +0 -22
- package/dist/cli/describe-R7QLYW6K.js +0 -50
- package/dist/cli/git-TIF77U5E.js +0 -26
- package/dist/cli/search-BJFP7VHT.js +0 -32
- package/dist/cli/sessions-HCKHUILD.js +0 -23
- package/dist/cli/skills-TZC2JNIZ.js +0 -37
- package/dist/cli/tools-ECUMBLZB.js +0 -57
- package/dist/cli/update-4AAEZJ64.js +0 -37
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkPPQHQ4J2js = require('./chunk-PPQHQ4J2.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk5KHSPLPOjs = require('./chunk-5KHSPLPO.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkO4FCX6BSjs = require('./chunk-O4FCX6BS.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkRUAEON5Jjs = require('./chunk-RUAEON5J.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
|
|
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
145
145
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
146
146
|
}
|
|
147
147
|
function resolveLocalRoot() {
|
|
148
|
-
const target =
|
|
148
|
+
const target = _chunkO4FCX6BSjs.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, () => (
|
|
159
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkRUAEON5Jjs.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,
|
|
174
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkO4FCX6BSjs.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 = [...
|
|
178
|
+
const legacyNames = [..._chunkPPQHQ4J2js.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=${
|
|
192
|
+
`--package=${_chunkPPQHQ4J2js.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=${
|
|
208
|
+
`--package=${_chunkPPQHQ4J2js.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkPPQHQ4J2js.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 =
|
|
249
|
+
const plan = _chunkPPQHQ4J2js.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -269,7 +269,7 @@ function runProcess(command, args, cwd) {
|
|
|
269
269
|
child.kill("SIGTERM");
|
|
270
270
|
reject(
|
|
271
271
|
new Error(
|
|
272
|
-
`${
|
|
272
|
+
`${_chunkPPQHQ4J2js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
273
273
|
)
|
|
274
274
|
);
|
|
275
275
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -280,7 +280,7 @@ function runProcess(command, args, cwd) {
|
|
|
280
280
|
child.once("close", (code) => {
|
|
281
281
|
clearTimeout(timeout);
|
|
282
282
|
if (code && stderr.trim()) {
|
|
283
|
-
process.stderr.write(`${
|
|
283
|
+
process.stderr.write(`${_chunkPPQHQ4J2js.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
284
284
|
`);
|
|
285
285
|
}
|
|
286
286
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -288,7 +288,7 @@ function runProcess(command, args, cwd) {
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
async function showSkills(options, name) {
|
|
291
|
-
const baseUrl =
|
|
291
|
+
const baseUrl = _chunkO4FCX6BSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
292
292
|
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
293
293
|
try {
|
|
294
294
|
const response = await fetch(url, {
|
|
@@ -301,7 +301,7 @@ async function showSkills(options, name) {
|
|
|
301
301
|
}
|
|
302
302
|
if (name) {
|
|
303
303
|
const markdown = await response.text();
|
|
304
|
-
|
|
304
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
305
305
|
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
306
306
|
{ json: options.json, text: markdown }
|
|
307
307
|
);
|
|
@@ -311,7 +311,7 @@ async function showSkills(options, name) {
|
|
|
311
311
|
const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
|
|
312
312
|
(skill) => skill.install_surface === "v1" && skill.name
|
|
313
313
|
);
|
|
314
|
-
|
|
314
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
315
315
|
{
|
|
316
316
|
ok: true,
|
|
317
317
|
status: "completed",
|
|
@@ -328,7 +328,7 @@ Read one with: deepline skills show <name>
|
|
|
328
328
|
);
|
|
329
329
|
return 0;
|
|
330
330
|
} catch (error) {
|
|
331
|
-
|
|
331
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
332
332
|
{
|
|
333
333
|
ok: false,
|
|
334
334
|
status: "failed",
|
|
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
351
351
|
scope = normalizeScope(options.scope);
|
|
352
352
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
353
353
|
} catch (error) {
|
|
354
|
-
|
|
354
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
355
355
|
{
|
|
356
356
|
ok: false,
|
|
357
357
|
status: "failed",
|
|
@@ -363,22 +363,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
363
363
|
);
|
|
364
364
|
return 2;
|
|
365
365
|
}
|
|
366
|
-
const baseUrl =
|
|
366
|
+
const baseUrl = _chunkO4FCX6BSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
367
367
|
const catalog = {
|
|
368
|
-
skillNames: [...
|
|
369
|
-
version:
|
|
368
|
+
skillNames: [..._chunkPPQHQ4J2js.DEFAULT_SDK_SKILL_NAMES],
|
|
369
|
+
version: _chunkRUAEON5Jjs.SDK_VERSION
|
|
370
370
|
};
|
|
371
371
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
372
372
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
373
373
|
if (options.dryRun) {
|
|
374
|
-
|
|
374
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
375
375
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
376
376
|
{ json: options.json }
|
|
377
377
|
);
|
|
378
378
|
return 0;
|
|
379
379
|
}
|
|
380
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
381
|
-
|
|
380
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkPPQHQ4J2js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
381
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
382
382
|
{
|
|
383
383
|
ok: true,
|
|
384
384
|
status: "current",
|
|
@@ -410,10 +410,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
410
410
|
}
|
|
411
411
|
if (scope === "local" && root) {
|
|
412
412
|
const managedNames = [
|
|
413
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
413
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkPPQHQ4J2js.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
414
414
|
];
|
|
415
415
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
416
|
-
|
|
416
|
+
_chunkO4FCX6BSjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
417
417
|
".deepline/",
|
|
418
418
|
...agentRoots.flatMap(
|
|
419
419
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -422,7 +422,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
422
422
|
}
|
|
423
423
|
let lease;
|
|
424
424
|
try {
|
|
425
|
-
lease = scope === "global" ? await
|
|
425
|
+
lease = scope === "global" ? await _chunkPPQHQ4J2js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
426
426
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
427
427
|
onWait: () => process.stderr.write(
|
|
428
428
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -430,8 +430,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
430
430
|
}) : { release: () => {
|
|
431
431
|
} };
|
|
432
432
|
} catch (error) {
|
|
433
|
-
if (!(error instanceof
|
|
434
|
-
|
|
433
|
+
if (!(error instanceof _chunkPPQHQ4J2js.SkillsStateUnavailableError)) throw error;
|
|
434
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
435
435
|
{
|
|
436
436
|
ok: false,
|
|
437
437
|
status: "failed",
|
|
@@ -447,7 +447,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
447
447
|
return 5;
|
|
448
448
|
}
|
|
449
449
|
if (!lease) {
|
|
450
|
-
|
|
450
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
451
451
|
{
|
|
452
452
|
ok: false,
|
|
453
453
|
status: "failed",
|
|
@@ -456,7 +456,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
456
456
|
scope,
|
|
457
457
|
agents,
|
|
458
458
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
459
|
-
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${
|
|
459
|
+
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkPPQHQ4J2js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
460
460
|
},
|
|
461
461
|
{ json: options.json }
|
|
462
462
|
);
|
|
@@ -505,7 +505,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
} catch (error) {
|
|
508
|
-
|
|
508
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
509
509
|
{
|
|
510
510
|
ok: false,
|
|
511
511
|
status: "failed",
|
|
@@ -521,7 +521,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
521
521
|
return 5;
|
|
522
522
|
}
|
|
523
523
|
if (missing.length > 0) {
|
|
524
|
-
|
|
524
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
525
525
|
{
|
|
526
526
|
ok: false,
|
|
527
527
|
status: "failed",
|
|
@@ -561,7 +561,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
561
561
|
{
|
|
562
562
|
schemaVersion: 1,
|
|
563
563
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
564
|
-
cliVersion:
|
|
564
|
+
cliVersion: _chunkRUAEON5Jjs.SDK_VERSION,
|
|
565
565
|
scope,
|
|
566
566
|
agents,
|
|
567
567
|
skillsVersion: plan.version,
|
|
@@ -574,9 +574,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
574
574
|
"utf8"
|
|
575
575
|
);
|
|
576
576
|
if (scope === "global") {
|
|
577
|
-
|
|
577
|
+
_chunkPPQHQ4J2js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
580
580
|
{
|
|
581
581
|
ok: true,
|
|
582
582
|
status: "complete",
|
|
@@ -625,7 +625,7 @@ Examples:
|
|
|
625
625
|
"after",
|
|
626
626
|
`
|
|
627
627
|
Notes:
|
|
628
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
628
|
+
This command reinstalls current Deepline-managed skills using ${_chunkPPQHQ4J2js.SKILLS_NPX_PACKAGE},
|
|
629
629
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
630
630
|
persistent project.
|
|
631
631
|
|
|
@@ -637,13 +637,13 @@ Examples:
|
|
|
637
637
|
).action(async (options) => {
|
|
638
638
|
process.exitCode = await runSkillsCommand(options);
|
|
639
639
|
});
|
|
640
|
-
program.command(
|
|
640
|
+
program.command(_chunkPPQHQ4J2js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
641
641
|
"--claim <token>",
|
|
642
642
|
"Owner token of the leases this child was started for."
|
|
643
643
|
).action(async (options) => {
|
|
644
644
|
const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
|
|
645
645
|
if (!claim) {
|
|
646
|
-
|
|
646
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
647
647
|
{
|
|
648
648
|
ok: false,
|
|
649
649
|
status: "failed",
|
|
@@ -656,7 +656,7 @@ Examples:
|
|
|
656
656
|
process.exitCode = 2;
|
|
657
657
|
return;
|
|
658
658
|
}
|
|
659
|
-
await
|
|
659
|
+
await _chunkPPQHQ4J2js.syncSdkSkillsIfNeeded.call(void 0, _chunkO4FCX6BSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
660
660
|
mode: "inline",
|
|
661
661
|
notices: "defer",
|
|
662
662
|
claim
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
3
|
+
var _chunkPE2XN2VMjs = require('./chunk-PE2XN2VM.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5KHSPLPOjs = require('./chunk-5KHSPLPO.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkRUAEON5Jjs = require('./chunk-RUAEON5J.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
|
|
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
|
|
|
55
55
|
}
|
|
56
56
|
function listClaudeSessionFiles() {
|
|
57
57
|
const files = [];
|
|
58
|
-
for (const root of
|
|
58
|
+
for (const root of _chunkRUAEON5Jjs.claudeProjectsRoots.call(void 0, )) {
|
|
59
59
|
files.push(...listClaudeSessionFilesIn(root));
|
|
60
60
|
}
|
|
61
61
|
return files;
|
|
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
|
|
|
147
147
|
const newestFirst = listSessionFiles(agent).sort(
|
|
148
148
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
149
149
|
);
|
|
150
|
-
const sessionId =
|
|
150
|
+
const sessionId = _chunkRUAEON5Jjs.agentSessionIdFromEnvironment.call(void 0,
|
|
151
151
|
process.env,
|
|
152
152
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
153
153
|
);
|
|
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
|
|
|
156
156
|
(candidate) => candidate.sessionId === sessionId
|
|
157
157
|
);
|
|
158
158
|
if (named) return named;
|
|
159
|
-
const cowork = agent === "codex" ? null :
|
|
159
|
+
const cowork = agent === "codex" ? null : _chunkRUAEON5Jjs.coworkTranscriptFromEnvironment.call(void 0, );
|
|
160
160
|
const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
|
|
161
161
|
if (cowork && coworkStat) {
|
|
162
162
|
return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
|
|
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
|
|
|
166
166
|
), () => ( newestFirst[0])), () => ( null));
|
|
167
167
|
}
|
|
168
168
|
function feedbackAgentSessionId(agentRuntime) {
|
|
169
|
-
return _nullishCoalesce(
|
|
169
|
+
return _nullishCoalesce(_chunkRUAEON5Jjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkRUAEON5Jjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
|
|
170
170
|
}
|
|
171
171
|
function sessionStartedInDirectory(candidate, cwd) {
|
|
172
172
|
if (candidate.agent === "claude") {
|
|
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
|
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
217
217
|
function sessionSearchDescription(agent) {
|
|
218
|
-
const claude =
|
|
218
|
+
const claude = _chunkRUAEON5Jjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
|
|
219
219
|
if (agent === "claude") return claude;
|
|
220
220
|
if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
|
|
221
221
|
return `${claude} or ~/.codex/sessions/**/*.jsonl`;
|
|
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
|
|
|
472
472
|
return { encodedContent: encoded, needsChunking: true };
|
|
473
473
|
}
|
|
474
474
|
async function uploadPayload(path, payload) {
|
|
475
|
-
const { http } =
|
|
475
|
+
const { http } = _chunk5KHSPLPOjs.getAuthedHttpClient.call(void 0, );
|
|
476
476
|
return await http.post(path, payload);
|
|
477
477
|
}
|
|
478
478
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
|
|
|
550
550
|
return target.sessionId;
|
|
551
551
|
}
|
|
552
552
|
async function handleSessionsSend(options) {
|
|
553
|
-
if (
|
|
553
|
+
if (_chunkPE2XN2VMjs.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
554
554
|
const rating = parseSessionRating(options.rating);
|
|
555
555
|
if (options.file) {
|
|
556
556
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
|
|
|
562
562
|
filename: _path.basename.call(void 0, filePath),
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
|
-
|
|
565
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
566
566
|
{
|
|
567
567
|
...response2,
|
|
568
568
|
ok: true,
|
|
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
|
|
|
594
594
|
labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
|
|
595
595
|
});
|
|
596
596
|
const sessionIds = built.map((session) => session.sessionId);
|
|
597
|
-
|
|
597
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
598
598
|
{
|
|
599
599
|
...response,
|
|
600
600
|
ok: true,
|
|
@@ -702,7 +702,7 @@ ${refreshMeta}
|
|
|
702
702
|
</body>
|
|
703
703
|
</html>`;
|
|
704
704
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
705
|
-
|
|
705
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0,
|
|
706
706
|
{
|
|
707
707
|
ok: true,
|
|
708
708
|
file: outputPath,
|
|
@@ -1021,6 +1021,7 @@ Examples:
|
|
|
1021
1021
|
deepline integrations connect hubspot --link --json
|
|
1022
1022
|
deepline integrations connect heyreach --credentials-file ./heyreach.json
|
|
1023
1023
|
deepline integrations connect hubspot --oauth --preset read-crm
|
|
1024
|
+
deepline integrations connect lusha --managed --accept-terms 2026-05-01 --company-domain acme.com --company-legal-name "Acme Inc." --company-country US
|
|
1024
1025
|
`
|
|
1025
1026
|
},
|
|
1026
1027
|
"tools grep": {
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkZVJ2YNAHjs = require('./chunk-ZVJ2YNAH.js');
|
|
11
11
|
require('./chunk-H4ALLC2X.js');
|
|
12
12
|
require('./chunk-E2G2DNAB.js');
|
|
13
13
|
require('./chunk-YGCKMI5P.js');
|
|
@@ -21,4 +21,4 @@ require('./chunk-COGTRVWW.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
exports.CLI_DOC_SURFACE =
|
|
24
|
+
exports.CLI_DOC_SURFACE = _chunkZVJ2YNAHjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkZVJ2YNAHjs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunkZVJ2YNAHjs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunkZVJ2YNAHjs.commandDocKey; exports.helpDetailFromArgv = _chunkZVJ2YNAHjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkZVJ2YNAHjs.renderActionExplanation; exports.renderCommandExplanation = _chunkZVJ2YNAHjs.renderCommandExplanation; exports.renderDocText = _chunkZVJ2YNAHjs.renderDocText;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkOWSTUCIBjs = require('./chunk-OWSTUCIB.js');
|
|
6
|
+
require('./chunk-LKXBFVYU.js');
|
|
7
|
+
require('./chunk-H4ALLC2X.js');
|
|
8
|
+
require('./chunk-5KHSPLPO.js');
|
|
9
|
+
require('./chunk-O4FCX6BS.js');
|
|
10
|
+
require('./chunk-RUAEON5J.js');
|
|
11
|
+
require('./chunk-6VLFQZK6.js');
|
|
12
|
+
require('./chunk-XNYIZMNQ.js');
|
|
13
|
+
require('./chunk-LFQJW4S2.js');
|
|
14
|
+
require('./chunk-CFJFUVX2.js');
|
|
15
|
+
require('./chunk-5NBR7V5U.js');
|
|
16
|
+
require('./chunk-OG64RBAC.js');
|
|
17
|
+
require('./chunk-COGTRVWW.js');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.CONCURRENT_RUNS_HELP_COMMANDS = _chunkOWSTUCIBjs.CONCURRENT_RUNS_HELP_COMMANDS; exports.concurrentRunsHelpStatus = _chunkOWSTUCIBjs.concurrentRunsHelpStatus; exports.concurrentRunsLine = _chunkOWSTUCIBjs.concurrentRunsLine;
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
CONCURRENT_RUNS_HELP_COMMANDS,
|
|
3
3
|
concurrentRunsHelpStatus,
|
|
4
4
|
concurrentRunsLine
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-QVERY22Q.mjs";
|
|
6
|
+
import "./chunk-MOJOAX3X.mjs";
|
|
7
7
|
import "./chunk-2RIKOPIM.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-SONHOBIK.mjs";
|
|
9
|
+
import "./chunk-TSNVG3T5.mjs";
|
|
10
|
+
import "./chunk-5SOJGKQM.mjs";
|
|
11
11
|
import "./chunk-ASB47RXJ.mjs";
|
|
12
12
|
import "./chunk-DLIRSHV6.mjs";
|
|
13
13
|
import "./chunk-Z3A2S3QM.mjs";
|
|
14
14
|
import "./chunk-2MGZAI54.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-FQIOTHEZ.mjs";
|
|
16
16
|
import "./chunk-WZYKRD7T.mjs";
|
|
17
17
|
import "./chunk-KRD6H754.mjs";
|
|
18
18
|
export {
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunk5KHSPLPOjs = require('./chunk-5KHSPLPO.js');
|
|
8
|
+
require('./chunk-O4FCX6BS.js');
|
|
9
|
+
require('./chunk-RUAEON5J.js');
|
|
10
10
|
require('./chunk-6VLFQZK6.js');
|
|
11
11
|
require('./chunk-XNYIZMNQ.js');
|
|
12
12
|
require('./chunk-LFQJW4S2.js');
|
|
13
13
|
require('./chunk-CFJFUVX2.js');
|
|
14
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-5NBR7V5U.js');
|
|
15
15
|
require('./chunk-OG64RBAC.js');
|
|
16
16
|
require('./chunk-COGTRVWW.js');
|
|
17
17
|
|
|
@@ -129,7 +129,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
129
129
|
column.length,
|
|
130
130
|
...rows.map((row) => {
|
|
131
131
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
132
|
-
return (verbose ? value :
|
|
132
|
+
return (verbose ? value : _chunk5KHSPLPOjs.clip.call(void 0, value, 42)).length;
|
|
133
133
|
})
|
|
134
134
|
)
|
|
135
135
|
])
|
|
@@ -139,7 +139,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
139
139
|
const body = rows.map(
|
|
140
140
|
(row) => columns.map((column) => {
|
|
141
141
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
142
|
-
const display = verbose ? raw :
|
|
142
|
+
const display = verbose ? raw : _chunk5KHSPLPOjs.clip.call(void 0, raw, 42);
|
|
143
143
|
return display.padEnd(widths[column]);
|
|
144
144
|
}).join(" | ")
|
|
145
145
|
);
|
|
@@ -159,7 +159,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
159
159
|
{ exitCode: 2 }
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
|
-
const allRows =
|
|
162
|
+
const allRows = _chunk5KHSPLPOjs.readCsvRows.call(void 0, csvPath);
|
|
163
163
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
164
164
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
165
165
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -172,7 +172,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
172
172
|
if (options.summary) {
|
|
173
173
|
const summaries = summarizeColumns(selected, columns);
|
|
174
174
|
if (format === "json") {
|
|
175
|
-
|
|
175
|
+
_chunk5KHSPLPOjs.printJson.call(void 0, {
|
|
176
176
|
rows: summaries,
|
|
177
177
|
total_rows: selected.length,
|
|
178
178
|
source_total_rows: allRows.length
|
|
@@ -181,7 +181,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
181
181
|
}
|
|
182
182
|
const displayRows = summaryDisplayRows(summaries);
|
|
183
183
|
if (format === "csv") {
|
|
184
|
-
process.stdout.write(
|
|
184
|
+
process.stdout.write(_chunk5KHSPLPOjs.csvStringFromRows.call(void 0, displayRows));
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
process.stdout.write(
|
|
@@ -196,7 +196,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
198
|
if (format === "json") {
|
|
199
|
-
|
|
199
|
+
_chunk5KHSPLPOjs.printJson.call(void 0, {
|
|
200
200
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
201
201
|
});
|
|
202
202
|
return;
|
|
@@ -444,7 +444,7 @@ async function handleCsvRenderStart(options) {
|
|
|
444
444
|
if (log) {
|
|
445
445
|
detail = `
|
|
446
446
|
CSV render log:
|
|
447
|
-
${
|
|
447
|
+
${_chunk5KHSPLPOjs.clip.call(void 0, log, 2e3)}`;
|
|
448
448
|
}
|
|
449
449
|
} catch (e7) {
|
|
450
450
|
}
|
|
@@ -495,7 +495,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
495
495
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
496
496
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
497
497
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
498
|
-
|
|
498
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0, payload, {
|
|
499
499
|
json: options.json,
|
|
500
500
|
text: `${lines.join("\n")}
|
|
501
501
|
`
|
|
@@ -531,7 +531,7 @@ async function handleCsvRenderStop(options) {
|
|
|
531
531
|
};
|
|
532
532
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
533
533
|
` : "No running CSV render process found.\n";
|
|
534
|
-
|
|
534
|
+
_chunk5KHSPLPOjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
535
535
|
}
|
|
536
536
|
async function handleCsvRender(action, options) {
|
|
537
537
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-SONHOBIK.mjs";
|
|
8
|
+
import "./chunk-TSNVG3T5.mjs";
|
|
9
|
+
import "./chunk-5SOJGKQM.mjs";
|
|
10
10
|
import "./chunk-ASB47RXJ.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-Z3A2S3QM.mjs";
|
|
13
13
|
import "./chunk-2MGZAI54.mjs";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-FQIOTHEZ.mjs";
|
|
15
15
|
import "./chunk-WZYKRD7T.mjs";
|
|
16
16
|
import "./chunk-KRD6H754.mjs";
|
|
17
17
|
|