deepline 0.3.444 → 0.3.445
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/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +9 -2
- package/dist/cli/{auth-XTFEJXCK.mjs → auth-QNWYRLML.mjs} +4 -4
- package/dist/cli/auth-ZA4FRBSX.js +40 -0
- package/dist/cli/{billing-37ATIT7G.js → billing-3HFPC32I.js} +73 -73
- package/dist/cli/{billing-3RZZWNAR.mjs → billing-ULHQPQ2L.mjs} +4 -4
- package/dist/cli/{chunk-X4YO4AXG.mjs → chunk-2L2D2SXH.mjs} +2 -2
- package/dist/cli/{chunk-MBCQHTXT.mjs → chunk-3OBHZADJ.mjs} +1 -1
- package/dist/cli/{chunk-GYLEMRHP.mjs → chunk-3SELRVWB.mjs} +5 -5
- package/dist/cli/{chunk-2Y3YBOS4.js → chunk-5JJ6JYTL.js} +6 -6
- package/dist/cli/{chunk-OZT66JBQ.js → chunk-6DQTJ3DY.js} +35 -35
- package/dist/cli/{chunk-RVM54NYN.mjs → chunk-6LVOC2HD.mjs} +1 -1
- package/dist/cli/{chunk-QR3SSTAE.js → chunk-732QWWPG.js} +10 -10
- package/dist/cli/{chunk-VHVZVLV7.mjs → chunk-BEI6ZL6E.mjs} +1 -1
- package/dist/cli/{chunk-CGVTZKKZ.mjs → chunk-C54S4QPU.mjs} +2 -2
- package/dist/cli/{chunk-WYWZZZ2Q.js → chunk-COCZROBN.js} +26 -26
- package/dist/cli/{chunk-VVJWB47B.js → chunk-CQ3ZZ3RL.js} +16 -16
- package/dist/cli/{chunk-J6NVL526.mjs → chunk-E5JZH6CI.mjs} +1 -1
- package/dist/cli/{chunk-7J4VZRO5.js → chunk-EI2NN6HP.js} +1 -1
- package/dist/cli/{chunk-C4CG252T.mjs → chunk-FB7VBDA3.mjs} +3 -3
- package/dist/cli/{chunk-OTHCIRIC.js → chunk-FC7LS3Y5.js} +50 -50
- package/dist/cli/{chunk-OCYDAMHG.js → chunk-GGMJ2VTZ.js} +81 -81
- package/dist/cli/{chunk-FS7TP7F2.js → chunk-H6HZMADG.js} +52 -52
- package/dist/cli/{chunk-7VAQZERC.js → chunk-HFXG7GGH.js} +6 -6
- package/dist/cli/{chunk-VAQYDKRH.mjs → chunk-IXJN2NLA.mjs} +1 -1
- package/dist/cli/{chunk-JD7GAMDF.mjs → chunk-LBZUIZKQ.mjs} +2 -2
- package/dist/cli/{chunk-EPK465ZH.js → chunk-MMMA4OLB.js} +8 -8
- package/dist/cli/{chunk-HPBZAYSS.mjs → chunk-NHWNFLFK.mjs} +2 -2
- package/dist/cli/{chunk-AFFH22ER.js → chunk-OAVHRVPA.js} +2 -2
- package/dist/cli/{chunk-LS32ZMEI.mjs → chunk-SAN2HUYZ.mjs} +8 -8
- package/dist/cli/{chunk-VJUFRXFU.mjs → chunk-SSRKG7I5.mjs} +3 -3
- package/dist/cli/{chunk-A5LNESLL.mjs → chunk-T7SLOS2J.mjs} +4 -4
- package/dist/cli/{chunk-YIFQGY5A.js → chunk-TABMEHIP.js} +4 -4
- package/dist/cli/{chunk-53HWKCD3.js → chunk-THZL4XHV.js} +8 -8
- package/dist/cli/{chunk-JMARKXIB.js → chunk-TX6F2BB6.js} +2 -2
- package/dist/cli/{chunk-RNM7JYV6.js → chunk-V247SCRQ.js} +20 -20
- package/dist/cli/{chunk-LUGZDR4E.mjs → chunk-YXY6FCRU.mjs} +3 -3
- package/dist/cli/{chunk-AJ54W32A.mjs → chunk-ZRWX23RQ.mjs} +1 -1
- package/dist/cli/{csv-EIJQ6RT5.js → csv-NAATVV3O.js} +12 -12
- package/dist/cli/{csv-HA2HOVSY.mjs → csv-QXMJNWPE.mjs} +3 -3
- package/dist/cli/{db-X4YIZUGS.mjs → db-2ADNWVDN.mjs} +4 -4
- package/dist/cli/{db-V3QK6J3D.js → db-IB426AKH.js} +25 -25
- package/dist/cli/{describe-AM3JLWNF.js → describe-6T2HEQ2V.js} +16 -16
- package/dist/cli/{describe-MSL3BOWA.mjs → describe-UM4PAI2I.mjs} +12 -12
- package/dist/cli/{executions-QFQVDHSS.js → executions-3WVCUBHH.js} +6 -6
- package/dist/cli/{executions-EGH4NDY5.mjs → executions-4NCMXHDI.mjs} +4 -4
- package/dist/cli/{feedback-77DLEOWO.js → feedback-C4IBRZKH.js} +7 -7
- package/dist/cli/{feedback-RQLOXTWK.mjs → feedback-OKLN3VLD.mjs} +3 -3
- package/dist/cli/{git-ZRSKT7ML.mjs → git-A6XP6LIW.mjs} +4 -4
- package/dist/cli/git-RRZOWDCN.js +24 -0
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-Y3ZMVJSZ.js → legacy-noops-ALY2PBIT.js} +7 -7
- package/dist/cli/{legacy-noops-QNQCSKJV.mjs → legacy-noops-LCQXCYQY.mjs} +4 -4
- package/dist/cli/{monitors-4RY75IKZ.js → monitors-5C6PSVAT.js} +84 -84
- package/dist/cli/{monitors-VEFE3ZSZ.mjs → monitors-T3YN2RYD.mjs} +4 -4
- package/dist/cli/{org-YOT76AE4.js → org-4V76A3LD.js} +66 -66
- package/dist/cli/{org-X6ZD3GOS.mjs → org-7WLA42NC.mjs} +4 -4
- package/dist/cli/{play-7XEA7F7Y.js → play-UT3TLBM6.js} +283 -283
- package/dist/cli/{play-AXDXVYTK.mjs → play-WRHGX3WB.mjs} +10 -10
- package/dist/cli/{providers-JKYTNJDM.mjs → providers-UA2DJLBP.mjs} +4 -4
- package/dist/cli/{providers-CS3UWBH5.js → providers-ZR4SRGJF.js} +7 -7
- package/dist/cli/{quickstart-BHATVOX5.mjs → quickstart-IT46STSN.mjs} +3 -3
- package/dist/cli/{quickstart-R2PI3T74.js → quickstart-QN5FXZWS.js} +5 -5
- package/dist/cli/search-INZD56I2.js +30 -0
- package/dist/cli/{search-46CJMKQ7.mjs → search-QKK5SGMV.mjs} +5 -5
- package/dist/cli/{secrets-NCBNWNNK.js → secrets-FX3IVBUP.js} +13 -13
- package/dist/cli/{secrets-I2VZ75XW.mjs → secrets-GWXM2FH4.mjs} +4 -4
- package/dist/cli/{sessions-UCMJTFYV.mjs → sessions-FDZ24XY4.mjs} +4 -4
- package/dist/cli/{sessions-SFZPFEXX.js → sessions-G6LCRYTC.js} +5 -5
- package/dist/cli/{settings-N6CUAM55.js → settings-6W42BCZE.js} +75 -75
- package/dist/cli/{settings-AJ2FOCRS.mjs → settings-77ODFZUE.mjs} +8 -8
- package/dist/cli/{setup-LRWULRUP.mjs → setup-5OBB5UGB.mjs} +7 -7
- package/dist/cli/{setup-DB34HKIL.js → setup-T3FF5IRN.js} +42 -42
- package/dist/cli/{skills-Z5TF33TE.mjs → skills-ADG7CBUP.mjs} +5 -5
- package/dist/cli/skills-ALCERVAB.js +29 -0
- package/dist/cli/tools-FNWIMNNK.js +44 -0
- package/dist/cli/{tools-MOWM5ABI.mjs → tools-OBZRYZ7K.mjs} +12 -12
- package/dist/cli/update-N7I4MXRK.js +31 -0
- package/dist/cli/{update-4LXOHDJU.mjs → update-ODKOYFCA.mjs} +7 -7
- package/dist/cli/{workflow-IWVOD4N3.mjs → workflow-RGKEVZSP.mjs} +5 -5
- package/dist/cli/{workflow-RS57FL5I.js → workflow-TBLNAOXJ.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +78 -78
- 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/package.json +1 -1
- package/dist/cli/auth-KWVGTCBU.js +0 -40
- package/dist/cli/git-OIDNWUNY.js +0 -24
- package/dist/cli/search-CNDIFIZG.js +0 -30
- package/dist/cli/skills-Y7CEDG56.js +0 -29
- package/dist/cli/tools-RQWYUW3K.js +0 -44
- package/dist/cli/update-XKRUZQSS.js +0 -31
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
4
|
+
var _chunk5JJ6JYTLjs = require('./chunk-5JJ6JYTL.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTABMEHIPjs = require('./chunk-TABMEHIP.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkTABMEHIPjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunk5JJ6JYTLjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkH6HZMADGjs = require('./chunk-H6HZMADG.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkH6HZMADGjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCQ3ZZ3RLjs = require('./chunk-CQ3ZZ3RL.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkH6HZMADGjs = require('./chunk-H6HZMADG.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk5JJ6JYTLjs = require('./chunk-5JJ6JYTL.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkTABMEHIPjs = require('./chunk-TABMEHIP.js');
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -42,7 +42,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
42
42
|
async function reportAutoUpdateEvent(input) {
|
|
43
43
|
let apiKey = "";
|
|
44
44
|
try {
|
|
45
|
-
apiKey =
|
|
45
|
+
apiKey = _chunkTABMEHIPjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
46
46
|
} catch (e2) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
@@ -58,15 +58,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
58
58
|
headers: {
|
|
59
59
|
Authorization: `Bearer ${apiKey}`,
|
|
60
60
|
"Content-Type": "application/json",
|
|
61
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
61
|
+
"User-Agent": `deepline-ts-sdk/${_chunkTABMEHIPjs.SDK_VERSION}`,
|
|
62
62
|
"X-Deepline-Client-Family": "sdk",
|
|
63
63
|
"X-Deepline-CLI-Family": "sdk",
|
|
64
|
-
"X-Deepline-CLI-Version":
|
|
65
|
-
"X-Deepline-SDK-Version":
|
|
64
|
+
"X-Deepline-CLI-Version": _chunkTABMEHIPjs.SDK_VERSION,
|
|
65
|
+
"X-Deepline-SDK-Version": _chunkTABMEHIPjs.SDK_VERSION
|
|
66
66
|
},
|
|
67
67
|
body: JSON.stringify({
|
|
68
68
|
event: input.event,
|
|
69
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
69
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkTABMEHIPjs.SDK_VERSION,
|
|
70
70
|
target_version: input.response.latest,
|
|
71
71
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
72
72
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -85,13 +85,13 @@ function envTruthy(name) {
|
|
|
85
85
|
return value === "1" || value === "true" || value === "yes";
|
|
86
86
|
}
|
|
87
87
|
function shouldSkipSelfUpdate(policy) {
|
|
88
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
88
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkCQ3ZZ3RLjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkH6HZMADGjs.isCiEnvironment.call(void 0, );
|
|
89
89
|
}
|
|
90
90
|
function isDowngradeAutoUpdateResponse(response) {
|
|
91
91
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
92
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
92
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkTABMEHIPjs.SDK_VERSION;
|
|
93
93
|
if (!target) return false;
|
|
94
|
-
return
|
|
94
|
+
return _chunkCQ3ZZ3RLjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
95
95
|
}
|
|
96
96
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
97
97
|
return new Promise((resolve) => {
|
|
@@ -144,7 +144,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
144
144
|
}
|
|
145
145
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
146
146
|
const target = response.latest;
|
|
147
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
147
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkTABMEHIPjs.SDK_VERSION;
|
|
148
148
|
process.stderr.write(
|
|
149
149
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
150
150
|
`
|
|
@@ -152,21 +152,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
152
152
|
return false;
|
|
153
153
|
}
|
|
154
154
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
155
|
-
const plan =
|
|
155
|
+
const plan = _chunkCQ3ZZ3RLjs.resolveUpdatePlan.call(void 0, {
|
|
156
156
|
packageSpec,
|
|
157
157
|
requireVerifiedNpmOwnership: true,
|
|
158
158
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
159
159
|
});
|
|
160
|
-
if (!
|
|
160
|
+
if (!_chunkCQ3ZZ3RLjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
161
161
|
return false;
|
|
162
162
|
}
|
|
163
163
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
164
164
|
deferredAutoUpdate = async () => {
|
|
165
165
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
166
166
|
};
|
|
167
|
-
if (
|
|
167
|
+
if (_chunk5JJ6JYTLjs.isJsonOutputMode.call(void 0, )) {
|
|
168
168
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
169
|
-
|
|
169
|
+
_chunk5JJ6JYTLjs.addJsonNotice.call(void 0, {
|
|
170
170
|
code: "sdk_update_queued",
|
|
171
171
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
172
172
|
});
|
|
@@ -179,7 +179,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
179
179
|
return true;
|
|
180
180
|
}
|
|
181
181
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
182
|
-
if (!
|
|
182
|
+
if (!_chunkCQ3ZZ3RLjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
183
183
|
const autoUpdate = response.auto_update;
|
|
184
184
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
185
185
|
process.stderr.write(
|
|
@@ -192,7 +192,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
192
192
|
event: "started",
|
|
193
193
|
installKind: plan.kind
|
|
194
194
|
});
|
|
195
|
-
const updateResult = await
|
|
195
|
+
const updateResult = await _chunkCQ3ZZ3RLjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
196
196
|
if (updateResult.status === "skipped_previous_failure") {
|
|
197
197
|
void reportAutoUpdateEvent({
|
|
198
198
|
baseUrl,
|
|
@@ -243,7 +243,7 @@ var _crypto = require('crypto');
|
|
|
243
243
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
244
244
|
var activeToolExecuteCommand = null;
|
|
245
245
|
function progressLine(line) {
|
|
246
|
-
if (!
|
|
246
|
+
if (!_chunk5JJ6JYTLjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
247
247
|
}
|
|
248
248
|
function beginToolExecuteCommand() {
|
|
249
249
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isJsonOutputMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3OBHZADJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
sdkCliStateDirPath,
|
|
18
18
|
skillsAgentPathSegment,
|
|
19
19
|
writeSdkSkillsLocalVersion
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZRWX23RQ.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DeeplineError
|
|
23
23
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_RELEASE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6LVOC2HD.mjs";
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunk5JJ6JYTLjs = require('./chunk-5JJ6JYTL.js');
|
|
8
|
+
require('./chunk-TABMEHIP.js');
|
|
9
9
|
require('./chunk-ALJJRZNJ.js');
|
|
10
10
|
require('./chunk-XNYIZMNQ.js');
|
|
11
11
|
require('./chunk-DIAWYWT5.js');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-EI2NN6HP.js');
|
|
13
13
|
require('./chunk-OG64RBAC.js');
|
|
14
14
|
require('./chunk-COGTRVWW.js');
|
|
15
15
|
|
|
@@ -127,7 +127,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
127
127
|
column.length,
|
|
128
128
|
...rows.map((row) => {
|
|
129
129
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
130
|
-
return (verbose ? value :
|
|
130
|
+
return (verbose ? value : _chunk5JJ6JYTLjs.clip.call(void 0, value, 42)).length;
|
|
131
131
|
})
|
|
132
132
|
)
|
|
133
133
|
])
|
|
@@ -137,7 +137,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
137
137
|
const body = rows.map(
|
|
138
138
|
(row) => columns.map((column) => {
|
|
139
139
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
140
|
-
const display = verbose ? raw :
|
|
140
|
+
const display = verbose ? raw : _chunk5JJ6JYTLjs.clip.call(void 0, raw, 42);
|
|
141
141
|
return display.padEnd(widths[column]);
|
|
142
142
|
}).join(" | ")
|
|
143
143
|
);
|
|
@@ -157,7 +157,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
157
157
|
{ exitCode: 2 }
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
|
-
const allRows =
|
|
160
|
+
const allRows = _chunk5JJ6JYTLjs.readCsvRows.call(void 0, csvPath);
|
|
161
161
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
162
162
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
163
163
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -170,7 +170,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
170
170
|
if (options.summary) {
|
|
171
171
|
const summaries = summarizeColumns(selected, columns);
|
|
172
172
|
if (format === "json") {
|
|
173
|
-
|
|
173
|
+
_chunk5JJ6JYTLjs.printJson.call(void 0, {
|
|
174
174
|
rows: summaries,
|
|
175
175
|
total_rows: selected.length,
|
|
176
176
|
source_total_rows: allRows.length
|
|
@@ -179,7 +179,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
179
179
|
}
|
|
180
180
|
const displayRows = summaryDisplayRows(summaries);
|
|
181
181
|
if (format === "csv") {
|
|
182
|
-
process.stdout.write(
|
|
182
|
+
process.stdout.write(_chunk5JJ6JYTLjs.csvStringFromRows.call(void 0, displayRows));
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
process.stdout.write(
|
|
@@ -194,7 +194,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
196
|
if (format === "json") {
|
|
197
|
-
|
|
197
|
+
_chunk5JJ6JYTLjs.printJson.call(void 0, {
|
|
198
198
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
199
199
|
});
|
|
200
200
|
return;
|
|
@@ -437,7 +437,7 @@ async function handleCsvRenderStart(options) {
|
|
|
437
437
|
if (log) {
|
|
438
438
|
detail = `
|
|
439
439
|
CSV render log:
|
|
440
|
-
${
|
|
440
|
+
${_chunk5JJ6JYTLjs.clip.call(void 0, log, 2e3)}`;
|
|
441
441
|
}
|
|
442
442
|
} catch (e7) {
|
|
443
443
|
}
|
|
@@ -488,7 +488,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
488
488
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
489
489
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
490
490
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
491
|
-
|
|
491
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0, payload, {
|
|
492
492
|
json: options.json,
|
|
493
493
|
text: `${lines.join("\n")}
|
|
494
494
|
`
|
|
@@ -524,7 +524,7 @@ async function handleCsvRenderStop(options) {
|
|
|
524
524
|
};
|
|
525
525
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
526
526
|
` : "No running CSV render process found.\n";
|
|
527
|
-
|
|
527
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
528
528
|
}
|
|
529
529
|
async function handleCsvRender(action, options) {
|
|
530
530
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-3OBHZADJ.mjs";
|
|
8
|
+
import "./chunk-ZRWX23RQ.mjs";
|
|
9
9
|
import "./chunk-4QF2K7TM.mjs";
|
|
10
10
|
import "./chunk-DLIRSHV6.mjs";
|
|
11
11
|
import "./chunk-HBL4PM5Q.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-6LVOC2HD.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
14
14
|
import "./chunk-KRD6H754.mjs";
|
|
15
15
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient,
|
|
6
6
|
planCustomerDbQuery
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BEI6ZL6E.mjs";
|
|
8
8
|
import "./chunk-L2VKAASU.mjs";
|
|
9
9
|
import "./chunk-FAG4DFUC.mjs";
|
|
10
10
|
import "./chunk-EIMG75BT.mjs";
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
printCommandEnvelope,
|
|
19
19
|
recordRows,
|
|
20
20
|
shouldEmitJson
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-3OBHZADJ.mjs";
|
|
22
|
+
import "./chunk-ZRWX23RQ.mjs";
|
|
23
23
|
import {
|
|
24
24
|
CustomerDbQueryOutcomeUnknownError
|
|
25
25
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -27,7 +27,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
27
27
|
import {
|
|
28
28
|
DeeplineError
|
|
29
29
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-6LVOC2HD.mjs";
|
|
31
31
|
import "./chunk-WZYKRD7T.mjs";
|
|
32
32
|
import "./chunk-KRD6H754.mjs";
|
|
33
33
|
|
|
@@ -4,7 +4,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk732QWWPGjs = require('./chunk-732QWWPG.js');
|
|
8
8
|
require('./chunk-E4CABWXL.js');
|
|
9
9
|
require('./chunk-JKVRBCZL.js');
|
|
10
10
|
require('./chunk-KXMNM4AQ.js');
|
|
@@ -18,8 +18,8 @@ require('./chunk-XDVT3GOM.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
require('./chunk-
|
|
21
|
+
var _chunk5JJ6JYTLjs = require('./chunk-5JJ6JYTL.js');
|
|
22
|
+
require('./chunk-TABMEHIP.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -27,7 +27,7 @@ require('./chunk-XNYIZMNQ.js');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
30
|
-
require('./chunk-
|
|
30
|
+
require('./chunk-EI2NN6HP.js');
|
|
31
31
|
require('./chunk-OG64RBAC.js');
|
|
32
32
|
require('./chunk-COGTRVWW.js');
|
|
33
33
|
|
|
@@ -50,8 +50,8 @@ function formatCell(value) {
|
|
|
50
50
|
return text.length > 80 ? `${text.slice(0, 77)}...` : text;
|
|
51
51
|
}
|
|
52
52
|
function tableLines(result) {
|
|
53
|
-
const rows =
|
|
54
|
-
const responseColumns =
|
|
53
|
+
const rows = _chunk5JJ6JYTLjs.dataExportRows.call(void 0, customerDbRows(result));
|
|
54
|
+
const responseColumns = _chunk5JJ6JYTLjs.dataExportColumns.call(void 0,
|
|
55
55
|
rows,
|
|
56
56
|
customerDbColumnNames(result)
|
|
57
57
|
);
|
|
@@ -97,7 +97,7 @@ function tableLines(result) {
|
|
|
97
97
|
return lines;
|
|
98
98
|
}
|
|
99
99
|
function customerDbRows(result) {
|
|
100
|
-
return
|
|
100
|
+
return _chunk5JJ6JYTLjs.recordRows.call(void 0, result.rows);
|
|
101
101
|
}
|
|
102
102
|
function customerDbColumnNames(result) {
|
|
103
103
|
return result.columns.map((column) => column.name).filter(Boolean);
|
|
@@ -150,7 +150,7 @@ function writeCustomerDbCsv(result, outPath) {
|
|
|
150
150
|
const resolved = _path.resolve.call(void 0, outPath);
|
|
151
151
|
_fs.writeFileSync.call(void 0,
|
|
152
152
|
resolved,
|
|
153
|
-
|
|
153
|
+
_chunk5JJ6JYTLjs.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
|
|
154
154
|
"utf-8"
|
|
155
155
|
);
|
|
156
156
|
return resolved;
|
|
@@ -191,7 +191,7 @@ function dbQueryExportEnvelope(input) {
|
|
|
191
191
|
function renderDbQueryResult(result, query, options) {
|
|
192
192
|
const { sql, maxRows, operationKey } = query;
|
|
193
193
|
const { format, out: outPath, json: explicitJsonOutput = false } = options;
|
|
194
|
-
const jsonOutput = explicitJsonOutput ||
|
|
194
|
+
const jsonOutput = explicitJsonOutput || _chunk5JJ6JYTLjs.shouldEmitJson.call(void 0, );
|
|
195
195
|
const toolPayload = JSON.stringify({
|
|
196
196
|
sql,
|
|
197
197
|
result_mode: "rows",
|
|
@@ -202,7 +202,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
202
202
|
if (format === "csv") {
|
|
203
203
|
if (outPath) {
|
|
204
204
|
const exportedPath = writeCustomerDbCsv(result, outPath);
|
|
205
|
-
|
|
205
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
206
206
|
dbQueryExportEnvelope({
|
|
207
207
|
result,
|
|
208
208
|
format,
|
|
@@ -218,7 +218,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
218
218
|
);
|
|
219
219
|
return;
|
|
220
220
|
}
|
|
221
|
-
|
|
221
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
222
222
|
dbQueryExportEnvelope({
|
|
223
223
|
result,
|
|
224
224
|
format,
|
|
@@ -228,7 +228,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
228
228
|
}),
|
|
229
229
|
{
|
|
230
230
|
json: explicitJsonOutput,
|
|
231
|
-
text:
|
|
231
|
+
text: _chunk5JJ6JYTLjs.dataExportCsvString.call(void 0,
|
|
232
232
|
customerDbRows(result),
|
|
233
233
|
customerDbColumnNames(result)
|
|
234
234
|
)
|
|
@@ -237,14 +237,14 @@ function renderDbQueryResult(result, query, options) {
|
|
|
237
237
|
return;
|
|
238
238
|
}
|
|
239
239
|
if (format === "markdown") {
|
|
240
|
-
const content =
|
|
240
|
+
const content = _chunk5JJ6JYTLjs.markdownTableFromRows.call(void 0,
|
|
241
241
|
customerDbRows(result),
|
|
242
242
|
customerDbColumnNames(result)
|
|
243
243
|
);
|
|
244
244
|
if (outPath) {
|
|
245
245
|
const exportedPath = _path.resolve.call(void 0, outPath);
|
|
246
246
|
_fs.writeFileSync.call(void 0, exportedPath, content, "utf-8");
|
|
247
|
-
|
|
247
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
248
248
|
dbQueryExportEnvelope({
|
|
249
249
|
result,
|
|
250
250
|
format,
|
|
@@ -260,7 +260,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
260
260
|
);
|
|
261
261
|
return;
|
|
262
262
|
}
|
|
263
|
-
|
|
263
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
264
264
|
dbQueryExportEnvelope({
|
|
265
265
|
result,
|
|
266
266
|
format,
|
|
@@ -275,7 +275,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
275
275
|
);
|
|
276
276
|
return;
|
|
277
277
|
}
|
|
278
|
-
|
|
278
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
279
279
|
{
|
|
280
280
|
...result,
|
|
281
281
|
next: {
|
|
@@ -349,9 +349,9 @@ async function runDbQueryCommand(options) {
|
|
|
349
349
|
...maxRows === void 0 ? {} : { maxRows },
|
|
350
350
|
...operationKey === void 0 ? {} : { operationKey }
|
|
351
351
|
};
|
|
352
|
-
const plan =
|
|
352
|
+
const plan = _chunk732QWWPGjs.planCustomerDbQuery.call(void 0, query);
|
|
353
353
|
if (options.dryRun) {
|
|
354
|
-
|
|
354
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
355
355
|
{
|
|
356
356
|
dryRun: true,
|
|
357
357
|
...plan,
|
|
@@ -364,11 +364,11 @@ async function runDbQueryCommand(options) {
|
|
|
364
364
|
...out === void 0 ? {} : { file: _path.resolve.call(void 0, out) }
|
|
365
365
|
}
|
|
366
366
|
},
|
|
367
|
-
{ json: options.json ||
|
|
367
|
+
{ json: options.json || _chunk5JJ6JYTLjs.shouldEmitJson.call(void 0, ) }
|
|
368
368
|
);
|
|
369
369
|
return 0;
|
|
370
370
|
}
|
|
371
|
-
const client = new (0,
|
|
371
|
+
const client = new (0, _chunk732QWWPGjs.DeeplineClient)();
|
|
372
372
|
const result = await client.db.query(query);
|
|
373
373
|
renderDbQueryResult(result, query, {
|
|
374
374
|
format,
|
|
@@ -377,8 +377,8 @@ async function runDbQueryCommand(options) {
|
|
|
377
377
|
});
|
|
378
378
|
return 0;
|
|
379
379
|
} catch (error) {
|
|
380
|
-
if (error instanceof _chunkALJJRZNJjs.CustomerDbQueryOutcomeUnknownError && (options.json ||
|
|
381
|
-
|
|
380
|
+
if (error instanceof _chunkALJJRZNJjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunk5JJ6JYTLjs.shouldEmitJson.call(void 0, ))) {
|
|
381
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
382
382
|
{
|
|
383
383
|
ok: false,
|
|
384
384
|
error: {
|
|
@@ -426,8 +426,8 @@ function dbRepairPlainText(result) {
|
|
|
426
426
|
async function handleDbRepair(args) {
|
|
427
427
|
const providerIndex = args.indexOf("--provider");
|
|
428
428
|
const provider = providerIndex >= 0 ? _optionalChain([args, 'access', _9 => _9[providerIndex + 1], 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]) : void 0;
|
|
429
|
-
const jsonOutput =
|
|
430
|
-
const client = new (0,
|
|
429
|
+
const jsonOutput = _chunk5JJ6JYTLjs.argsWantJson.call(void 0, args);
|
|
430
|
+
const client = new (0, _chunk732QWWPGjs.DeeplineClient)();
|
|
431
431
|
let result;
|
|
432
432
|
try {
|
|
433
433
|
result = await client.repairIngestionStorage(
|
|
@@ -443,7 +443,7 @@ async function handleDbRepair(args) {
|
|
|
443
443
|
console.error(errorMessage2(error));
|
|
444
444
|
return 1;
|
|
445
445
|
}
|
|
446
|
-
|
|
446
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
447
447
|
{
|
|
448
448
|
command: "db repair",
|
|
449
449
|
status: result.status,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGGMJ2VTZjs = require('./chunk-GGMJ2VTZ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkPP66EATAjs = require('./chunk-PP66EATA.js');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-MMMA4OLB.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -20,25 +20,25 @@ require('./chunk-HGFFYVXN.js');
|
|
|
20
20
|
require('./chunk-NA4T3B62.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk732QWWPGjs = require('./chunk-732QWWPG.js');
|
|
24
24
|
require('./chunk-E4CABWXL.js');
|
|
25
25
|
require('./chunk-JKVRBCZL.js');
|
|
26
26
|
require('./chunk-KXMNM4AQ.js');
|
|
27
27
|
require('./chunk-XDVT3GOM.js');
|
|
28
|
-
require('./chunk-
|
|
29
|
-
require('./chunk-
|
|
30
|
-
require('./chunk-
|
|
31
|
-
require('./chunk-
|
|
32
|
-
require('./chunk-
|
|
33
|
-
require('./chunk-
|
|
28
|
+
require('./chunk-V247SCRQ.js');
|
|
29
|
+
require('./chunk-CQ3ZZ3RL.js');
|
|
30
|
+
require('./chunk-TX6F2BB6.js');
|
|
31
|
+
require('./chunk-6DQTJ3DY.js');
|
|
32
|
+
require('./chunk-OAVHRVPA.js');
|
|
33
|
+
require('./chunk-H6HZMADG.js');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
37
|
-
require('./chunk-
|
|
36
|
+
var _chunk5JJ6JYTLjs = require('./chunk-5JJ6JYTL.js');
|
|
37
|
+
require('./chunk-TABMEHIP.js');
|
|
38
38
|
require('./chunk-ALJJRZNJ.js');
|
|
39
39
|
require('./chunk-XNYIZMNQ.js');
|
|
40
40
|
require('./chunk-DIAWYWT5.js');
|
|
41
|
-
require('./chunk-
|
|
41
|
+
require('./chunk-EI2NN6HP.js');
|
|
42
42
|
require('./chunk-OG64RBAC.js');
|
|
43
43
|
require('./chunk-COGTRVWW.js');
|
|
44
44
|
|
|
@@ -46,13 +46,13 @@ require('./chunk-COGTRVWW.js');
|
|
|
46
46
|
var _fs = require('fs');
|
|
47
47
|
var _path = require('path');
|
|
48
48
|
async function describeAnything(name, options, onMissing) {
|
|
49
|
-
const client = new (0,
|
|
49
|
+
const client = new (0, _chunk732QWWPGjs.DeeplineClient)();
|
|
50
50
|
const lookups = _chunkKNAKCMGJjs.describeLookupsFor.call(void 0, client);
|
|
51
51
|
const outcome = await _chunkKNAKCMGJjs.describeName.call(void 0, name, options, {
|
|
52
52
|
...lookups,
|
|
53
53
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
54
54
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
55
|
-
seedStarterScript:
|
|
55
|
+
seedStarterScript: _chunkGGMJ2VTZjs.seedToolListScript
|
|
56
56
|
});
|
|
57
57
|
if (outcome.status === "missing") {
|
|
58
58
|
if (onMissing) return onMissing();
|
|
@@ -79,14 +79,14 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
79
79
|
` : text;
|
|
80
80
|
_fs.writeFileSync.call(void 0, path, content);
|
|
81
81
|
const bytes = Buffer.byteLength(content);
|
|
82
|
-
|
|
82
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
|
|
83
83
|
{ path, bytes },
|
|
84
84
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
85
85
|
` }
|
|
86
86
|
);
|
|
87
87
|
return 0;
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
_chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
90
90
|
return 0;
|
|
91
91
|
}
|
|
92
92
|
function registerDescribeCommand(program) {
|