deepline 0.3.555 → 0.3.556
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/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -0
- package/dist/cli/auth-HA7TI6SA.js +44 -0
- package/dist/cli/{auth-UFANBJW3.mjs → auth-MT7DWCZO.mjs} +5 -5
- package/dist/cli/{billing-BGIT2VYM.js → billing-3HHUTNME.js} +99 -99
- package/dist/cli/{billing-S7MCXBND.mjs → billing-4NOM52PO.mjs} +8 -8
- package/dist/cli/{chunk-LU25WURE.js → chunk-2NZQ432X.js} +13 -13
- package/dist/cli/{chunk-UUU5WUKM.mjs → chunk-2ZS5PZB6.mjs} +2 -2
- package/dist/cli/{chunk-IHWXC7UU.js → chunk-3R6RBAQW.js} +26 -26
- package/dist/cli/{chunk-W7SPSF63.js → chunk-4HSPHSUB.js} +5 -5
- package/dist/cli/{chunk-SE56PJ46.js → chunk-4U5HIMZY.js} +2 -2
- package/dist/cli/{chunk-KSUI4YX5.js → chunk-7ERE37SK.js} +6 -6
- package/dist/cli/{chunk-6M2SDRWN.js → chunk-7MD36QLK.js} +4 -4
- package/dist/cli/{chunk-UYYOO7VT.mjs → chunk-ASMHON7N.mjs} +5 -5
- package/dist/cli/{chunk-Z3O5GCQM.mjs → chunk-ASOLVHDL.mjs} +2 -2
- package/dist/cli/{chunk-FO3U5YTL.mjs → chunk-B4RWCBU5.mjs} +3 -3
- package/dist/cli/{chunk-I45RNMNZ.mjs → chunk-C2XLKCRH.mjs} +5 -5
- package/dist/cli/{chunk-AUY53RLU.mjs → chunk-C4GWTN3J.mjs} +5 -5
- package/dist/cli/{chunk-S2CNGS7O.js → chunk-CJF7AFBD.js} +2 -2
- package/dist/cli/{chunk-72VEVAIX.js → chunk-CZ2RJTAQ.js} +48 -48
- package/dist/cli/{chunk-T4BFNFBL.mjs → chunk-DAQQL743.mjs} +2 -2
- package/dist/cli/{chunk-T3QSHU6E.js → chunk-DAS66RGZ.js} +1 -1
- package/dist/cli/{chunk-MOJ65E7L.js → chunk-F5CE3JZQ.js} +9 -9
- package/dist/cli/{chunk-DYWOBLYL.js → chunk-FFXLMJ5O.js} +8 -8
- package/dist/cli/{chunk-732RWNDP.mjs → chunk-FQYEHUVR.mjs} +3 -3
- package/dist/cli/{chunk-MIXPZ4G7.js → chunk-G6BX5VJN.js} +100 -100
- package/dist/cli/{chunk-6F5GNZQH.js → chunk-GY4S6A72.js} +5 -5
- package/dist/cli/{chunk-SF2LIUVO.js → chunk-GZFYLAXJ.js} +15 -15
- package/dist/cli/{chunk-6R5Y7U52.mjs → chunk-HJO3MZ4M.mjs} +2 -2
- package/dist/cli/{chunk-RL7ZI4ZG.mjs → chunk-IFHMGEDN.mjs} +11 -11
- package/dist/cli/{chunk-ZU6A4H6P.mjs → chunk-JRYF5W3A.mjs} +2 -2
- package/dist/cli/{chunk-Z2T7XTND.js → chunk-K4IPTGU5.js} +10 -10
- package/dist/cli/{chunk-DFL3UBW2.mjs → chunk-KA77KT46.mjs} +1 -1
- package/dist/cli/{chunk-QMDG7FKA.js → chunk-KN3NETDA.js} +7 -7
- package/dist/cli/{chunk-N55EUVKV.mjs → chunk-KNOS6H4E.mjs} +2 -2
- package/dist/cli/{chunk-TFPKGTMD.js → chunk-KONNXKKX.js} +2 -2
- package/dist/cli/{chunk-U6KGXTYS.js → chunk-KUDSTDSL.js} +23 -23
- package/dist/cli/{chunk-7H753VC5.mjs → chunk-L57JAXHI.mjs} +1 -1
- package/dist/cli/{chunk-M5YBTQQX.js → chunk-LU3OLGF3.js} +53 -53
- package/dist/cli/{chunk-XIHZUWIG.mjs → chunk-LW2FKVCQ.mjs} +1 -1
- package/dist/cli/{chunk-PGPPZMXD.mjs → chunk-MUIJGT2B.mjs} +1 -1
- package/dist/cli/{chunk-QZ2C5ARH.js → chunk-N6LM2Q6V.js} +5 -5
- package/dist/cli/{chunk-AYCC5JAS.js → chunk-NGB2VSGB.js} +3 -3
- package/dist/cli/{chunk-HQK2NPXE.mjs → chunk-O7QRNMSW.mjs} +1 -1
- package/dist/cli/{chunk-M2CW4UZV.mjs → chunk-P6ZIR4QD.mjs} +4 -4
- package/dist/cli/{chunk-RWT6N2SU.js → chunk-PWQ3IUD4.js} +20 -20
- package/dist/cli/{chunk-NFWZAQAU.mjs → chunk-QGQPVPJN.mjs} +1 -1
- package/dist/cli/{chunk-EG44APVW.js → chunk-QVNX6AC3.js} +12 -12
- package/dist/cli/{chunk-YXH5Q7OY.js → chunk-SWVGAIJD.js} +20 -20
- package/dist/cli/{chunk-RO7SIWBG.mjs → chunk-UERLY7PX.mjs} +2 -2
- package/dist/cli/{chunk-WTQGJBHD.js → chunk-UO7NPJEK.js} +3 -3
- package/dist/cli/{chunk-57J3OOCR.mjs → chunk-UYPXQFJ4.mjs} +1 -1
- package/dist/cli/{chunk-W6K6WULS.mjs → chunk-VCYPHVUE.mjs} +2 -2
- package/dist/cli/{chunk-5J6TKML2.mjs → chunk-VQZQCPCA.mjs} +4 -4
- package/dist/cli/{chunk-ASDVROA5.mjs → chunk-W5JM2QCI.mjs} +5 -5
- package/dist/cli/{chunk-7LM55DIN.js → chunk-YGW2CSB7.js} +41 -41
- package/dist/cli/{chunk-S65SZ74B.mjs → chunk-YO2FDGAN.mjs} +1 -1
- package/dist/cli/{chunk-66BQY77L.mjs → chunk-ZGOTBBY3.mjs} +1 -1
- package/dist/cli/{concurrent-runs-help-I7ZLXZDD.mjs → concurrent-runs-help-AFJDK2SY.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-ZHOCLINF.js +22 -0
- package/dist/cli/{csv-K7FNSHIM.mjs → csv-CATF6MZU.mjs} +4 -4
- package/dist/cli/{csv-Q2Y3KKK2.js → csv-NTNQLQXG.js} +13 -13
- package/dist/cli/{db-E4XSIQDS.js → db-IKFKNLW5.js} +27 -27
- package/dist/cli/{db-74RBHX6G.mjs → db-U3FK4FFM.mjs} +6 -6
- package/dist/cli/{describe-UYB6WDHS.mjs → describe-F7OQQ7IO.mjs} +18 -18
- package/dist/cli/describe-ZHNZ4H6S.js +50 -0
- package/dist/cli/{executions-LX6HJM72.js → executions-3TA5SATU.js} +8 -8
- package/dist/cli/{executions-6LKXZRL4.mjs → executions-6KUA7RPH.mjs} +6 -6
- package/dist/cli/{feedback-7D2JRVOM.js → feedback-GX7RVC4O.js} +14 -14
- package/dist/cli/{feedback-B2V64TYZ.mjs → feedback-U5I6UTJG.mjs} +6 -6
- package/dist/cli/git-6DK7N4V7.js +26 -0
- package/dist/cli/{git-7KNCB2HN.mjs → git-DYNKPPNT.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-J3RHOSAR.mjs → integrations-7FATBEB5.mjs} +7 -7
- package/dist/cli/{integrations-34UK7XET.js → integrations-PQX2FRPT.js} +15 -15
- package/dist/cli/{legacy-noops-HXJ6UMK7.js → legacy-noops-JNXQWYUR.js} +9 -9
- package/dist/cli/{legacy-noops-WQUDES3K.mjs → legacy-noops-ODATBQUL.mjs} +6 -6
- package/dist/cli/{mcp-EZENPRPY.js → mcp-RXBXC4HW.js} +24 -24
- package/dist/cli/{mcp-JZPAPQYI.mjs → mcp-UDNG33WQ.mjs} +4 -4
- package/dist/cli/{monitors-GF2WEFF6.mjs → monitors-L56QYFRW.mjs} +7 -7
- package/dist/cli/{monitors-GS2P4OUK.js → monitors-NDAGIRO4.js} +100 -100
- package/dist/cli/{org-WJ2RO7ZE.mjs → org-EA5DL5I7.mjs} +6 -6
- package/dist/cli/{org-V56HBHPB.js → org-Q47O5ZTI.js} +121 -121
- package/dist/cli/{outcomes-D6KXYKGW.js → outcomes-27ENBTWE.js} +14 -14
- package/dist/cli/{outcomes-WP5WV54Y.mjs → outcomes-773GPYXN.mjs} +6 -6
- package/dist/cli/{play-PXUVRS4K.js → play-BOZIT25U.js} +324 -324
- package/dist/cli/{play-FHHCHNQH.mjs → play-O6RGVBT7.mjs} +19 -19
- package/dist/cli/{providers-HJ77LN3M.mjs → providers-OOKYSLMJ.mjs} +6 -6
- package/dist/cli/{providers-TOXIJOY2.js → providers-S2E5IGFO.js} +9 -9
- package/dist/cli/{quickstart-UEQHXEWP.mjs → quickstart-7GVZ7YCQ.mjs} +4 -4
- package/dist/cli/{quickstart-MDXLT5SR.js → quickstart-YXKRRK43.js} +6 -6
- package/dist/cli/{run-ZZ5ABZL7.mjs → run-3QGOVUHF.mjs} +23 -23
- package/dist/cli/{run-2MXAEH6U.js → run-7DXBARRO.js} +44 -44
- package/dist/cli/search-4DZYX3FR.js +32 -0
- package/dist/cli/{search-AF4XVWC2.mjs → search-5UIB4QSG.mjs} +7 -7
- package/dist/cli/{search-output-LEKJVZSH.js → search-output-C7ZPRC2B.js} +6 -6
- package/dist/cli/{search-output-3GFQJJGJ.mjs → search-output-MSUN3KPW.mjs} +4 -4
- package/dist/cli/{secrets-MR2FNFGD.js → secrets-FU3DFFB6.js} +15 -15
- package/dist/cli/{secrets-TLH3FKCT.mjs → secrets-JYJS2VHO.mjs} +6 -6
- package/dist/cli/sessions-E2IX3GU7.js +23 -0
- package/dist/cli/{sessions-LUL5P66K.mjs → sessions-JBD64DOX.mjs} +6 -6
- package/dist/cli/{settings-AWSRUTZR.mjs → settings-4KFYWSJI.mjs} +12 -12
- package/dist/cli/{settings-Z2HYUOL7.js → settings-GDJGQXKT.js} +85 -85
- package/dist/cli/{setup-PFPAJOUI.mjs → setup-46VMBV3K.mjs} +9 -9
- package/dist/cli/{setup-FIMXN4IC.js → setup-OKLUCTU7.js} +49 -49
- package/dist/cli/skills-GJS4Q7NU.js +37 -0
- package/dist/cli/{skills-5DKSATY5.mjs → skills-XRJNXEEA.mjs} +7 -7
- package/dist/cli/tools-LICQXFYA.js +57 -0
- package/dist/cli/{tools-BDNASCSH.mjs → tools-WEBVZN3X.mjs} +17 -17
- package/dist/cli/update-3XH3NVVY.js +37 -0
- package/dist/cli/{update-CAFUZ5XT.mjs → update-RKTYJ6BO.mjs} +9 -9
- package/dist/cli/{views-7PDXZUQA.mjs → views-VTOQ4U75.mjs} +6 -6
- package/dist/cli/{views-XJOBO6US.js → views-XLAPDQXQ.js} +21 -21
- package/dist/cli/{workflow-KCPLU5R7.js → workflow-HH4XVYPN.js} +17 -17
- package/dist/cli/{workflow-2BMUGN7M.mjs → workflow-RCO4R46B.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -112
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-MRVTS74X.js +0 -44
- package/dist/cli/concurrent-runs-help-CHBVPWYT.js +0 -22
- package/dist/cli/describe-TUW35JSY.js +0 -50
- package/dist/cli/git-TH4M62KL.js +0 -26
- package/dist/cli/search-6DT2TGOU.js +0 -32
- package/dist/cli/sessions-EJYLWV2M.js +0 -23
- package/dist/cli/skills-232RNG5G.js +0 -37
- package/dist/cli/tools-P7FBJVJA.js +0 -57
- package/dist/cli/update-OC4UB2XE.js +0 -37
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkCZ2RJTAQjs = require('./chunk-CZ2RJTAQ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkNGB2VSGBjs = require('./chunk-NGB2VSGB.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk7MD36QLKjs = require('./chunk-7MD36QLK.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 = _chunkNGB2VSGBjs.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, () => ( _chunk7MD36QLKjs.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, _chunkNGB2VSGBjs.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 = [..._chunkCZ2RJTAQjs.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=${_chunkCZ2RJTAQjs.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=${_chunkCZ2RJTAQjs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkCZ2RJTAQjs.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 = _chunkCZ2RJTAQjs.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
|
+
`${_chunkCZ2RJTAQjs.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(`${_chunkCZ2RJTAQjs.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 = _chunkNGB2VSGBjs.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
|
+
_chunkPWQ3IUD4js.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
|
+
_chunkPWQ3IUD4js.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
|
+
_chunkPWQ3IUD4js.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
|
+
_chunkPWQ3IUD4js.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 = _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
367
367
|
const catalog = {
|
|
368
|
-
skillNames: [...
|
|
369
|
-
version:
|
|
368
|
+
skillNames: [..._chunkCZ2RJTAQjs.DEFAULT_SDK_SKILL_NAMES],
|
|
369
|
+
version: _chunk7MD36QLKjs.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
|
+
_chunkPWQ3IUD4js.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)) && !_chunkCZ2RJTAQjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
381
|
+
_chunkPWQ3IUD4js.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, ..._chunkCZ2RJTAQjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
414
414
|
];
|
|
415
415
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
416
|
-
|
|
416
|
+
_chunkNGB2VSGBjs.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 _chunkCZ2RJTAQjs.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 _chunkCZ2RJTAQjs.SkillsStateUnavailableError)) throw error;
|
|
434
|
+
_chunkPWQ3IUD4js.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
|
+
_chunkPWQ3IUD4js.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 ${_chunkCZ2RJTAQjs.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
|
+
_chunkPWQ3IUD4js.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
|
+
_chunkPWQ3IUD4js.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: _chunk7MD36QLKjs.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
|
+
_chunkCZ2RJTAQjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
_chunkPWQ3IUD4js.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 ${_chunkCZ2RJTAQjs.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(_chunkCZ2RJTAQjs.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
|
+
_chunkPWQ3IUD4js.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 _chunkCZ2RJTAQjs.syncSdkSkillsIfNeeded.call(void 0, _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
660
660
|
mode: "inline",
|
|
661
661
|
notices: "defer",
|
|
662
662
|
claim
|
|
@@ -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-VCYPHVUE.mjs";
|
|
6
|
+
import "./chunk-B4RWCBU5.mjs";
|
|
7
7
|
import "./chunk-2RIKOPIM.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-KNOS6H4E.mjs";
|
|
9
|
+
import "./chunk-ZGOTBBY3.mjs";
|
|
10
|
+
import "./chunk-LW2FKVCQ.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-MUIJGT2B.mjs";
|
|
16
16
|
import "./chunk-WZYKRD7T.mjs";
|
|
17
17
|
import "./chunk-KRD6H754.mjs";
|
|
18
18
|
export {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkGY4S6A72js = require('./chunk-GY4S6A72.js');
|
|
6
|
+
require('./chunk-LU3OLGF3.js');
|
|
7
|
+
require('./chunk-H4ALLC2X.js');
|
|
8
|
+
require('./chunk-PWQ3IUD4.js');
|
|
9
|
+
require('./chunk-NGB2VSGB.js');
|
|
10
|
+
require('./chunk-7MD36QLK.js');
|
|
11
|
+
require('./chunk-6VLFQZK6.js');
|
|
12
|
+
require('./chunk-XNYIZMNQ.js');
|
|
13
|
+
require('./chunk-LFQJW4S2.js');
|
|
14
|
+
require('./chunk-CFJFUVX2.js');
|
|
15
|
+
require('./chunk-DAS66RGZ.js');
|
|
16
|
+
require('./chunk-OG64RBAC.js');
|
|
17
|
+
require('./chunk-COGTRVWW.js');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.CONCURRENT_RUNS_HELP_COMMANDS = _chunkGY4S6A72js.CONCURRENT_RUNS_HELP_COMMANDS; exports.concurrentRunsHelpStatus = _chunkGY4S6A72js.concurrentRunsHelpStatus; exports.concurrentRunsLine = _chunkGY4S6A72js.concurrentRunsLine;
|
|
@@ -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-KNOS6H4E.mjs";
|
|
8
|
+
import "./chunk-ZGOTBBY3.mjs";
|
|
9
|
+
import "./chunk-LW2FKVCQ.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-MUIJGT2B.mjs";
|
|
15
15
|
import "./chunk-WZYKRD7T.mjs";
|
|
16
16
|
import "./chunk-KRD6H754.mjs";
|
|
17
17
|
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
|
|
8
|
+
require('./chunk-NGB2VSGB.js');
|
|
9
|
+
require('./chunk-7MD36QLK.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-DAS66RGZ.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 : _chunkPWQ3IUD4js.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 : _chunkPWQ3IUD4js.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 = _chunkPWQ3IUD4js.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
|
+
_chunkPWQ3IUD4js.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(_chunkPWQ3IUD4js.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
|
+
_chunkPWQ3IUD4js.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
|
+
${_chunkPWQ3IUD4js.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
|
+
_chunkPWQ3IUD4js.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
|
+
_chunkPWQ3IUD4js.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"));
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var _chunkBVXIGOBZjs = require('./chunk-BVXIGOBZ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkN6LM2Q6Vjs = require('./chunk-N6LM2Q6V.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkFFXLMJ5Ojs = require('./chunk-FFXLMJ5O.js');
|
|
10
10
|
require('./chunk-4WAM6TLD.js');
|
|
11
11
|
require('./chunk-MJTVX4QK.js');
|
|
12
12
|
require('./chunk-PMH4GLMD.js');
|
|
@@ -19,9 +19,9 @@ require('./chunk-PMH4GLMD.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
23
|
-
require('./chunk-
|
|
24
|
-
require('./chunk-
|
|
22
|
+
var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
|
|
23
|
+
require('./chunk-NGB2VSGB.js');
|
|
24
|
+
require('./chunk-7MD36QLK.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -30,7 +30,7 @@ require('./chunk-XNYIZMNQ.js');
|
|
|
30
30
|
|
|
31
31
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
32
32
|
require('./chunk-CFJFUVX2.js');
|
|
33
|
-
require('./chunk-
|
|
33
|
+
require('./chunk-DAS66RGZ.js');
|
|
34
34
|
require('./chunk-OG64RBAC.js');
|
|
35
35
|
require('./chunk-COGTRVWW.js');
|
|
36
36
|
|
|
@@ -53,8 +53,8 @@ function formatCell(value) {
|
|
|
53
53
|
return text.length > 80 ? `${text.slice(0, 77)}...` : text;
|
|
54
54
|
}
|
|
55
55
|
function tableLines(result) {
|
|
56
|
-
const rows =
|
|
57
|
-
const responseColumns =
|
|
56
|
+
const rows = _chunkPWQ3IUD4js.dataExportRows.call(void 0, customerDbRows(result));
|
|
57
|
+
const responseColumns = _chunkPWQ3IUD4js.dataExportColumns.call(void 0,
|
|
58
58
|
rows,
|
|
59
59
|
customerDbColumnNames(result)
|
|
60
60
|
);
|
|
@@ -100,7 +100,7 @@ function tableLines(result) {
|
|
|
100
100
|
return lines;
|
|
101
101
|
}
|
|
102
102
|
function customerDbRows(result) {
|
|
103
|
-
return
|
|
103
|
+
return _chunkPWQ3IUD4js.recordRows.call(void 0, result.rows);
|
|
104
104
|
}
|
|
105
105
|
function customerDbColumnNames(result) {
|
|
106
106
|
return result.columns.map((column) => column.name).filter(Boolean);
|
|
@@ -153,7 +153,7 @@ function writeCustomerDbCsv(result, outPath) {
|
|
|
153
153
|
const resolved = _path.resolve.call(void 0, outPath);
|
|
154
154
|
_fs.writeFileSync.call(void 0,
|
|
155
155
|
resolved,
|
|
156
|
-
|
|
156
|
+
_chunkPWQ3IUD4js.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
|
|
157
157
|
"utf-8"
|
|
158
158
|
);
|
|
159
159
|
return resolved;
|
|
@@ -194,7 +194,7 @@ function dbQueryExportEnvelope(input) {
|
|
|
194
194
|
function renderDbQueryResult(result, query, options) {
|
|
195
195
|
const { sql, maxRows, operationKey } = query;
|
|
196
196
|
const { format, out: outPath, json: explicitJsonOutput = false } = options;
|
|
197
|
-
const jsonOutput = explicitJsonOutput ||
|
|
197
|
+
const jsonOutput = explicitJsonOutput || _chunkPWQ3IUD4js.shouldEmitJson.call(void 0, );
|
|
198
198
|
const toolPayload = JSON.stringify({
|
|
199
199
|
sql,
|
|
200
200
|
result_mode: "rows",
|
|
@@ -205,7 +205,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
205
205
|
if (format === "csv") {
|
|
206
206
|
if (outPath) {
|
|
207
207
|
const exportedPath = writeCustomerDbCsv(result, outPath);
|
|
208
|
-
|
|
208
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
209
209
|
dbQueryExportEnvelope({
|
|
210
210
|
result,
|
|
211
211
|
format,
|
|
@@ -221,7 +221,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
221
221
|
);
|
|
222
222
|
return;
|
|
223
223
|
}
|
|
224
|
-
|
|
224
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
225
225
|
dbQueryExportEnvelope({
|
|
226
226
|
result,
|
|
227
227
|
format,
|
|
@@ -231,7 +231,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
231
231
|
}),
|
|
232
232
|
{
|
|
233
233
|
json: explicitJsonOutput,
|
|
234
|
-
text:
|
|
234
|
+
text: _chunkPWQ3IUD4js.dataExportCsvString.call(void 0,
|
|
235
235
|
customerDbRows(result),
|
|
236
236
|
customerDbColumnNames(result)
|
|
237
237
|
)
|
|
@@ -240,14 +240,14 @@ function renderDbQueryResult(result, query, options) {
|
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
242
|
if (format === "markdown") {
|
|
243
|
-
const content =
|
|
243
|
+
const content = _chunkPWQ3IUD4js.markdownTableFromRows.call(void 0,
|
|
244
244
|
customerDbRows(result),
|
|
245
245
|
customerDbColumnNames(result)
|
|
246
246
|
);
|
|
247
247
|
if (outPath) {
|
|
248
248
|
const exportedPath = _path.resolve.call(void 0, outPath);
|
|
249
249
|
_fs.writeFileSync.call(void 0, exportedPath, content, "utf-8");
|
|
250
|
-
|
|
250
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
251
251
|
dbQueryExportEnvelope({
|
|
252
252
|
result,
|
|
253
253
|
format,
|
|
@@ -263,7 +263,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
263
263
|
);
|
|
264
264
|
return;
|
|
265
265
|
}
|
|
266
|
-
|
|
266
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
267
267
|
dbQueryExportEnvelope({
|
|
268
268
|
result,
|
|
269
269
|
format,
|
|
@@ -278,7 +278,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
278
278
|
);
|
|
279
279
|
return;
|
|
280
280
|
}
|
|
281
|
-
|
|
281
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
282
282
|
{
|
|
283
283
|
...result,
|
|
284
284
|
next: {
|
|
@@ -352,9 +352,9 @@ async function runDbQueryCommand(options) {
|
|
|
352
352
|
...maxRows === void 0 ? {} : { maxRows },
|
|
353
353
|
...operationKey === void 0 ? {} : { operationKey }
|
|
354
354
|
};
|
|
355
|
-
const plan =
|
|
355
|
+
const plan = _chunkFFXLMJ5Ojs.planCustomerDbQuery.call(void 0, query);
|
|
356
356
|
if (options.dryRun) {
|
|
357
|
-
|
|
357
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
358
358
|
{
|
|
359
359
|
dryRun: true,
|
|
360
360
|
...plan,
|
|
@@ -367,11 +367,11 @@ async function runDbQueryCommand(options) {
|
|
|
367
367
|
...out === void 0 ? {} : { file: _path.resolve.call(void 0, out) }
|
|
368
368
|
}
|
|
369
369
|
},
|
|
370
|
-
{ json: options.json ||
|
|
370
|
+
{ json: options.json || _chunkPWQ3IUD4js.shouldEmitJson.call(void 0, ) }
|
|
371
371
|
);
|
|
372
372
|
return 0;
|
|
373
373
|
}
|
|
374
|
-
const client = new (0,
|
|
374
|
+
const client = new (0, _chunkN6LM2Q6Vjs.DeeplineClient)();
|
|
375
375
|
const result = await client.db.query(query);
|
|
376
376
|
renderDbQueryResult(result, query, {
|
|
377
377
|
format,
|
|
@@ -380,8 +380,8 @@ async function runDbQueryCommand(options) {
|
|
|
380
380
|
});
|
|
381
381
|
return 0;
|
|
382
382
|
} catch (error) {
|
|
383
|
-
if (error instanceof _chunk6VLFQZK6js.CustomerDbQueryOutcomeUnknownError && (options.json ||
|
|
384
|
-
|
|
383
|
+
if (error instanceof _chunk6VLFQZK6js.CustomerDbQueryOutcomeUnknownError && (options.json || _chunkPWQ3IUD4js.shouldEmitJson.call(void 0, ))) {
|
|
384
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
385
385
|
{
|
|
386
386
|
ok: false,
|
|
387
387
|
error: {
|
|
@@ -429,8 +429,8 @@ function dbRepairPlainText(result) {
|
|
|
429
429
|
async function handleDbRepair(args) {
|
|
430
430
|
const providerIndex = args.indexOf("--provider");
|
|
431
431
|
const provider = providerIndex >= 0 ? _optionalChain([args, 'access', _9 => _9[providerIndex + 1], 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]) : void 0;
|
|
432
|
-
const jsonOutput =
|
|
433
|
-
const client = new (0,
|
|
432
|
+
const jsonOutput = _chunkPWQ3IUD4js.argsWantJson.call(void 0, args);
|
|
433
|
+
const client = new (0, _chunkN6LM2Q6Vjs.DeeplineClient)();
|
|
434
434
|
let result;
|
|
435
435
|
try {
|
|
436
436
|
result = await client.repairIngestionStorage(
|
|
@@ -446,7 +446,7 @@ async function handleDbRepair(args) {
|
|
|
446
446
|
console.error(errorMessage2(error));
|
|
447
447
|
return 1;
|
|
448
448
|
}
|
|
449
|
-
|
|
449
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
450
450
|
{
|
|
451
451
|
command: "db repair",
|
|
452
452
|
status: result.status,
|