deepline 0.3.421 → 0.3.422
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 +6 -6
- package/dist/cli/{auth-56JTC4Q7.mjs → auth-DMLBSXLV.mjs} +4 -4
- package/dist/cli/auth-HD5AM2WM.js +40 -0
- package/dist/cli/{billing-C5LR6FA7.js → billing-IFGFPGJV.js} +73 -73
- package/dist/cli/{billing-ZXOOZEUW.mjs → billing-SEXKROBQ.mjs} +4 -4
- package/dist/cli/{chunk-UCI4QROZ.mjs → chunk-2JKQORUX.mjs} +1 -1
- package/dist/cli/{chunk-JJQLBZEW.js → chunk-2LVM22ZU.js} +2 -2
- package/dist/cli/{chunk-4NS4EZHN.mjs → chunk-3CE3WGKP.mjs} +2 -2
- package/dist/cli/{chunk-VC3E5HFO.mjs → chunk-4CAVSRQH.mjs} +1 -1
- package/dist/cli/{chunk-NSJRLP7R.js → chunk-4EV2FKBI.js} +16 -16
- package/dist/cli/{chunk-ZOL3CIKN.mjs → chunk-7OJEYJ6G.mjs} +3 -3
- package/dist/cli/{chunk-7TSF7E3B.mjs → chunk-AXDEH2AM.mjs} +2 -2
- package/dist/cli/{chunk-GIJ47TAV.js → chunk-AYM2KZN3.js} +6 -6
- package/dist/cli/{chunk-HP5FD2LI.js → chunk-BL3LY54Y.js} +8 -8
- package/dist/cli/{chunk-RURYN2BE.mjs → chunk-CO3VMH33.mjs} +8 -8
- package/dist/cli/{chunk-RJLFCJ23.mjs → chunk-FEKJENBB.mjs} +3 -3
- package/dist/cli/{chunk-C25ZYL6U.js → chunk-HCYNAIHZ.js} +4 -4
- package/dist/cli/{chunk-QJV2ALPN.js → chunk-JRSULUPQ.js} +2 -2
- package/dist/cli/{chunk-VEYAPBS4.js → chunk-K4X472AT.js} +79 -79
- package/dist/cli/{chunk-4I26IVFC.js → chunk-KBJP3UAU.js} +35 -35
- package/dist/cli/{chunk-F4V4JJED.mjs → chunk-KXPIFC5S.mjs} +3 -3
- package/dist/cli/{chunk-5KYK4DGY.js → chunk-LXRDHISW.js} +8 -8
- package/dist/cli/{chunk-AZGJNNNE.mjs → chunk-M6SXXFMT.mjs} +2 -2
- package/dist/cli/{chunk-5E55HHW3.mjs → chunk-MLP4CAY7.mjs} +4 -4
- package/dist/cli/{chunk-WR4M5VWK.js → chunk-OZHPZCAU.js} +52 -52
- package/dist/cli/{chunk-VYLZS7X4.mjs → chunk-PXO253DP.mjs} +1 -1
- package/dist/cli/{chunk-ZSVWCV3G.mjs → chunk-QNBHQM5R.mjs} +1 -1
- package/dist/cli/{chunk-6UKY4LBW.js → chunk-S4KGXRCV.js} +20 -20
- package/dist/cli/{chunk-5F6W5NWV.mjs → chunk-SDCIROIS.mjs} +5 -5
- package/dist/cli/{chunk-EKQH4IUU.mjs → chunk-TP26TAAF.mjs} +1 -1
- package/dist/cli/{chunk-2XKDLS5P.js → chunk-UQQRMCOL.js} +6 -6
- package/dist/cli/{chunk-2WOVAVJ3.js → chunk-V4RAH5D6.js} +26 -26
- package/dist/cli/{chunk-ZZBXD5VX.js → chunk-VRI3ABTK.js} +50 -50
- package/dist/cli/{chunk-SPLOMS4N.mjs → chunk-VT6WJ26Y.mjs} +1 -1
- package/dist/cli/{chunk-ZLPT2RZ5.mjs → chunk-W74RDGRL.mjs} +2 -2
- package/dist/cli/{chunk-FB5H5OOH.js → chunk-WGO2DY4L.js} +10 -10
- package/dist/cli/{chunk-7SRVIWGT.js → chunk-WP7T4BPE.js} +1 -1
- package/dist/cli/{csv-EJ4QRLA2.mjs → csv-J7UVP4KB.mjs} +3 -3
- package/dist/cli/{csv-G6H3U4XV.js → csv-Y4YWZSLB.js} +12 -12
- package/dist/cli/{db-PBIIALJ5.mjs → db-CQ6NHMLG.mjs} +4 -4
- package/dist/cli/{db-WKQFXUWI.js → db-SVFCM6YZ.js} +25 -25
- package/dist/cli/{describe-ZCU36ES2.js → describe-FSDW6LTN.js} +16 -16
- package/dist/cli/{describe-DMRK4UNO.mjs → describe-Y65BU7ZY.mjs} +12 -12
- package/dist/cli/{executions-JAHW6GMA.mjs → executions-IW762OIJ.mjs} +4 -4
- package/dist/cli/{executions-SBA3UYMH.js → executions-SJIKBRHT.js} +6 -6
- package/dist/cli/{feedback-QAE4V2NY.js → feedback-RCYSUOB3.js} +7 -7
- package/dist/cli/{feedback-PKBUYHMD.mjs → feedback-VMJIWAMT.mjs} +3 -3
- package/dist/cli/git-JAW3UEGA.js +24 -0
- package/dist/cli/{git-GAO3SJAQ.mjs → git-Q2WY3K6X.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-5PY2ZZF3.mjs → legacy-noops-JVEE2VHK.mjs} +4 -4
- package/dist/cli/{legacy-noops-JCMVW5BL.js → legacy-noops-U4YPPYXU.js} +7 -7
- package/dist/cli/{monitors-GVYAZRMB.mjs → monitors-AY4KQRTC.mjs} +4 -4
- package/dist/cli/{monitors-YPS4LPDG.js → monitors-BMAOQ37R.js} +84 -84
- package/dist/cli/{org-OBVAU6K7.js → org-G5IURX74.js} +64 -64
- package/dist/cli/{org-R7AKPKUB.mjs → org-ME4X6HWH.mjs} +4 -4
- package/dist/cli/{play-3LFM2SV2.mjs → play-WLYU7WQL.mjs} +10 -10
- package/dist/cli/{play-MTHQQHR6.js → play-X5GSZOKZ.js} +283 -283
- package/dist/cli/{providers-IRICPDKU.mjs → providers-2LBMNB7B.mjs} +4 -4
- package/dist/cli/{providers-CTIROUI3.js → providers-AHEUVD3R.js} +7 -7
- package/dist/cli/{quickstart-5FBQVZ5B.mjs → quickstart-DBLYGHJP.mjs} +3 -3
- package/dist/cli/{quickstart-OZDVFNF2.js → quickstart-DP2SKLIG.js} +5 -5
- package/dist/cli/search-4K3VSDS5.js +30 -0
- package/dist/cli/{search-FYM47QFU.mjs → search-YKJHY3ZJ.mjs} +5 -5
- package/dist/cli/{secrets-43GJUDAE.js → secrets-2P3I3OEZ.js} +13 -13
- package/dist/cli/{secrets-ENBXU3O3.mjs → secrets-ECLARBO6.mjs} +4 -4
- package/dist/cli/{sessions-7IQJOH5Z.mjs → sessions-3GDFID7R.mjs} +4 -4
- package/dist/cli/{sessions-RXX5IHG6.js → sessions-MC4ZCTSN.js} +5 -5
- package/dist/cli/{settings-Z2CWWV7P.js → settings-7SVR2OVL.js} +75 -75
- package/dist/cli/{settings-EZGDTS3K.mjs → settings-RTPJXMOA.mjs} +8 -8
- package/dist/cli/{setup-2ON3TUXP.js → setup-4WLIJX36.js} +42 -42
- package/dist/cli/{setup-N5UMUBBV.mjs → setup-OKAZZGAW.mjs} +7 -7
- package/dist/cli/{skills-4MR2Z2M5.mjs → skills-2CVL6RG5.mjs} +5 -5
- package/dist/cli/skills-ZNSQOXO2.js +29 -0
- package/dist/cli/{tools-MCEIWE3I.mjs → tools-KAFHP6J4.mjs} +12 -12
- package/dist/cli/tools-W4U4FT3R.js +44 -0
- package/dist/cli/{update-2JDBGLTX.mjs → update-3ZV3W7I4.mjs} +7 -7
- package/dist/cli/update-IE2FPLB5.js +31 -0
- package/dist/cli/{workflow-7UDXYU5Y.mjs → workflow-DKSUNZXE.mjs} +5 -5
- package/dist/cli/{workflow-7DNBY4WJ.js → workflow-GULDFFP3.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-ZQMAF7W5.js +0 -40
- package/dist/cli/git-54INNT33.js +0 -24
- package/dist/cli/search-XIKHDZJ3.js +0 -30
- package/dist/cli/skills-2WIHNEOS.js +0 -29
- package/dist/cli/tools-YUUSOKYX.js +0 -44
- package/dist/cli/update-PWX4MJ3R.js +0 -31
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAYM2KZN3js = require('./chunk-AYM2KZN3.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkAYM2KZN3js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4CAVSRQH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PXO253DP.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJRSULUPQjs = require('./chunk-JRSULUPQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKBJP3UAUjs = require('./chunk-KBJP3UAU.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkOZHPZCAUjs = require('./chunk-OZHPZCAU.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkAYM2KZN3js = require('./chunk-AYM2KZN3.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkHCYNAIHZjs = require('./chunk-HCYNAIHZ.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkOZHPZCAUjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkJRSULUPQjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkJRSULUPQjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkHCYNAIHZjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkOZHPZCAUjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkHCYNAIHZjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkKBJP3UAUjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkAYM2KZN3js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkAYM2KZN3js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-LJ5747UC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2JKQORUX.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope,
|
|
9
9
|
renderCommandEnvelopeText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4CAVSRQH.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig,
|
|
13
13
|
sdkCliStateDirPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PXO253DP.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__toESM
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4CAVSRQH.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PXO253DP.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHCYNAIHZjs = require('./chunk-HCYNAIHZ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -288,8 +288,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
288
288
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
289
289
|
var defaultBrowserCommandRunner = childProcess;
|
|
290
290
|
function getAuthedHttpClient() {
|
|
291
|
-
const config =
|
|
292
|
-
return { config, http: new (0,
|
|
291
|
+
const config = _chunkHCYNAIHZjs.resolveConfig.call(void 0, );
|
|
292
|
+
return { config, http: new (0, _chunkHCYNAIHZjs.HttpClient)(config) };
|
|
293
293
|
}
|
|
294
294
|
function stableOsUserId() {
|
|
295
295
|
try {
|
|
@@ -629,7 +629,7 @@ function collectLocalEnvInfo() {
|
|
|
629
629
|
os: `${process.platform} ${process.arch}`,
|
|
630
630
|
node_version: process.version,
|
|
631
631
|
home_dir: homeDir,
|
|
632
|
-
agent_runtime:
|
|
632
|
+
agent_runtime: _chunkHCYNAIHZjs.detectAgentRuntime.call(void 0, )
|
|
633
633
|
};
|
|
634
634
|
const env = process.env;
|
|
635
635
|
const optional = {
|
|
@@ -876,9 +876,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
876
876
|
}
|
|
877
877
|
function withAgentCommandContext(value) {
|
|
878
878
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
879
|
-
return
|
|
879
|
+
return _chunkHCYNAIHZjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
880
880
|
...valueRecord,
|
|
881
|
-
command_context:
|
|
881
|
+
command_context: _chunkHCYNAIHZjs.resolveCliCommandContext.call(void 0, )
|
|
882
882
|
} : value;
|
|
883
883
|
}
|
|
884
884
|
function printJson(value, fields) {
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkWGO2DY4Ljs = require('./chunk-WGO2DY4L.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkAYM2KZN3js = require('./chunk-AYM2KZN3.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkHCYNAIHZjs = require('./chunk-HCYNAIHZ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
|
|
|
5713
5713
|
var _path = require('path');
|
|
5714
5714
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
5715
5715
|
function lastSearchPath() {
|
|
5716
|
-
return _path.join.call(void 0,
|
|
5716
|
+
return _path.join.call(void 0, _chunkHCYNAIHZjs.sdkCliStateDirPath.call(void 0, _chunkHCYNAIHZjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
5717
5717
|
}
|
|
5718
5718
|
function rememberSearchRef(searchRef) {
|
|
5719
5719
|
try {
|
|
@@ -5873,7 +5873,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5873
5873
|
];
|
|
5874
5874
|
function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
5875
5875
|
if (result.results.length === 0)
|
|
5876
|
-
return
|
|
5876
|
+
return _chunkAYM2KZN3js.renderCommandEnvelopeText.call(void 0, result);
|
|
5877
5877
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5878
5878
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5879
5879
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5898,7 +5898,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
|
5898
5898
|
actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
|
|
5899
5899
|
};
|
|
5900
5900
|
const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
|
|
5901
|
-
${
|
|
5901
|
+
${_chunkAYM2KZN3js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5902
5902
|
const notes = rows.flatMap(
|
|
5903
5903
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5904
5904
|
);
|
|
@@ -5983,7 +5983,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5983
5983
|
console.error("--summary-width must be an integer of at least 2.");
|
|
5984
5984
|
return 1;
|
|
5985
5985
|
}
|
|
5986
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
5986
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkWGO2DY4Ljs.DeeplineClient)().search({
|
|
5987
5987
|
query,
|
|
5988
5988
|
types,
|
|
5989
5989
|
exclude,
|
|
@@ -5997,7 +5997,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5997
5997
|
});
|
|
5998
5998
|
if (searchRef) rememberSearchRef(searchRef);
|
|
5999
5999
|
pointAtDescribe(result);
|
|
6000
|
-
|
|
6000
|
+
_chunkAYM2KZN3js.printCommandEnvelope.call(void 0, result, {
|
|
6001
6001
|
json: options.json === true,
|
|
6002
6002
|
text: renderSearchResults(result, summaryWidth)
|
|
6003
6003
|
});
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
recentSearchRef,
|
|
7
7
|
registerDeprecatedSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7OJEYJ6G.mjs";
|
|
9
9
|
import {
|
|
10
10
|
arrayField,
|
|
11
11
|
formatModelDescription,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
DeeplineClient,
|
|
47
47
|
validateExecutionIdempotencyKey
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-2JKQORUX.mjs";
|
|
49
49
|
import {
|
|
50
50
|
stableStringify
|
|
51
51
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -55,18 +55,18 @@ import {
|
|
|
55
55
|
maybeAutoUpdateAndRelaunch,
|
|
56
56
|
registerCompatibilityCatalog,
|
|
57
57
|
runToolExecuteStage
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-MLP4CAY7.mjs";
|
|
59
59
|
import {
|
|
60
60
|
isCliTraceEnabled,
|
|
61
61
|
recordCliTrace,
|
|
62
62
|
resolveCliMaintenancePolicy
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-TP26TAAF.mjs";
|
|
64
64
|
import {
|
|
65
65
|
checkSdkCompatibility,
|
|
66
66
|
enforceSdkCompatibilityResponse,
|
|
67
67
|
flushDeferredSkillsSyncNotices,
|
|
68
68
|
syncSdkSkillsIfNeeded
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-FEKJENBB.mjs";
|
|
70
70
|
import {
|
|
71
71
|
printCommandEnvelope,
|
|
72
72
|
printCompactJson,
|
|
@@ -74,12 +74,12 @@ import {
|
|
|
74
74
|
printJsonError,
|
|
75
75
|
renderCommandEnvelopeText,
|
|
76
76
|
shouldEmitJson
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-4CAVSRQH.mjs";
|
|
78
78
|
import {
|
|
79
79
|
readSdkSkillsLocalVersion,
|
|
80
80
|
resolveConfig,
|
|
81
81
|
sdkCliStateDirPath
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-PXO253DP.mjs";
|
|
83
83
|
import {
|
|
84
84
|
DeeplineError
|
|
85
85
|
} from "./chunk-E4IXDAZI.mjs";
|
|
@@ -936,7 +936,7 @@ Examples:
|
|
|
936
936
|
process.exitCode = await narrowView();
|
|
937
937
|
return;
|
|
938
938
|
}
|
|
939
|
-
const { describeAnything } = await import("./describe-
|
|
939
|
+
const { describeAnything } = await import("./describe-Y65BU7ZY.mjs");
|
|
940
940
|
process.exitCode = await describeAnything(
|
|
941
941
|
toolId,
|
|
942
942
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isJsonOutputMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4CAVSRQH.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-PXO253DP.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DeeplineError
|
|
23
23
|
} from "./chunk-E4IXDAZI.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_RELEASE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VT6WJ26Y.mjs";
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkWP7T4BPEjs = require('./chunk-WP7T4BPE.js');
|
|
21
21
|
|
|
22
22
|
// src/config.ts
|
|
23
23
|
|
|
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
// src/version.ts
|
|
652
|
-
var SDK_VERSION =
|
|
653
|
-
var SDK_API_MAJOR =
|
|
654
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
652
|
+
var SDK_VERSION = _chunkWP7T4BPEjs.SDK_RELEASE.version;
|
|
653
|
+
var SDK_API_MAJOR = _chunkWP7T4BPEjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
654
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkWP7T4BPEjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
655
655
|
|
|
656
656
|
// src/agent-runtime.ts
|
|
657
657
|
|
|
@@ -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 _chunkOZHPZCAUjs = require('./chunk-OZHPZCAU.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 = _chunkOZHPZCAUjs.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,
|