deepline 0.3.420 → 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-OUHAOA5F.mjs → auth-DMLBSXLV.mjs} +4 -4
- package/dist/cli/auth-HD5AM2WM.js +40 -0
- package/dist/cli/{billing-PKVUYBJB.js → billing-IFGFPGJV.js} +73 -73
- package/dist/cli/{billing-VIZQ6D4L.mjs → billing-SEXKROBQ.mjs} +4 -4
- package/dist/cli/{chunk-WVF6T2MI.mjs → chunk-2JKQORUX.mjs} +1 -1
- package/dist/cli/{chunk-XXOUOHBO.js → chunk-2LVM22ZU.js} +2 -2
- package/dist/cli/{chunk-LJ7ZOBTQ.mjs → chunk-3CE3WGKP.mjs} +2 -2
- package/dist/cli/{chunk-SNLYCNAO.mjs → chunk-4CAVSRQH.mjs} +1 -1
- package/dist/cli/{chunk-5VPN2HZQ.js → chunk-4EV2FKBI.js} +16 -16
- package/dist/cli/{chunk-AOPQ46ZW.mjs → chunk-7OJEYJ6G.mjs} +3 -3
- package/dist/cli/{chunk-R62A6ZXG.mjs → chunk-AXDEH2AM.mjs} +2 -2
- package/dist/cli/{chunk-QJA6OAJF.js → chunk-AYM2KZN3.js} +6 -6
- package/dist/cli/{chunk-HGYUUQJG.js → chunk-BL3LY54Y.js} +8 -8
- package/dist/cli/{chunk-YHOGJQR7.mjs → chunk-CO3VMH33.mjs} +25 -57
- package/dist/cli/{chunk-LFSHGNT2.mjs → chunk-CTNA5QY2.mjs} +7 -6
- package/dist/cli/{chunk-7AIHQR5X.mjs → chunk-FEKJENBB.mjs} +3 -3
- package/dist/cli/{chunk-NQAWJ65E.js → chunk-HCYNAIHZ.js} +4 -4
- package/dist/cli/{chunk-PZVB72XS.js → chunk-JRSULUPQ.js} +2 -2
- package/dist/cli/{chunk-M4AYMLCK.js → chunk-K4X472AT.js} +96 -128
- package/dist/cli/{chunk-R4TF44FZ.js → chunk-KBJP3UAU.js} +35 -35
- package/dist/cli/{chunk-3L734JBM.mjs → chunk-KXPIFC5S.mjs} +3 -3
- package/dist/cli/{chunk-4T242WLH.js → chunk-LXRDHISW.js} +8 -8
- package/dist/cli/{chunk-KLNF7MWP.mjs → chunk-M6SXXFMT.mjs} +2 -2
- package/dist/cli/{chunk-SVJPQHHN.mjs → chunk-MLP4CAY7.mjs} +4 -4
- package/dist/cli/{chunk-J55AD562.js → chunk-OZHPZCAU.js} +52 -52
- package/dist/cli/{chunk-5MLCBXXU.js → chunk-PKBPSMOT.js} +7 -6
- package/dist/cli/{chunk-IZ3QC7OE.mjs → chunk-PXO253DP.mjs} +1 -1
- package/dist/cli/{chunk-TK7V5NQO.mjs → chunk-QNBHQM5R.mjs} +1 -1
- package/dist/cli/{chunk-LUQE4CFH.js → chunk-S4KGXRCV.js} +20 -20
- package/dist/cli/{chunk-A2CPK2UC.mjs → chunk-SDCIROIS.mjs} +5 -5
- package/dist/cli/{chunk-JP35BUED.mjs → chunk-TP26TAAF.mjs} +1 -1
- package/dist/cli/{chunk-VESCW5LD.js → chunk-UQQRMCOL.js} +6 -6
- package/dist/cli/{chunk-OJ64RXJW.js → chunk-V4RAH5D6.js} +26 -26
- package/dist/cli/{chunk-YSJVAPJE.js → chunk-VRI3ABTK.js} +50 -50
- package/dist/cli/{chunk-LPNB7RIE.mjs → chunk-VT6WJ26Y.mjs} +1 -1
- package/dist/cli/{chunk-UBNWFLYB.mjs → chunk-W74RDGRL.mjs} +2 -2
- package/dist/cli/{chunk-OGII53LE.js → chunk-WGO2DY4L.js} +10 -10
- package/dist/cli/{chunk-ZCPJ3L43.js → chunk-WP7T4BPE.js} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-OJLORQ3N.mjs → csv-J7UVP4KB.mjs} +3 -3
- package/dist/cli/{csv-CLKRVS6Q.js → csv-Y4YWZSLB.js} +12 -12
- package/dist/cli/{db-VIY56Q3E.mjs → db-CQ6NHMLG.mjs} +4 -4
- package/dist/cli/{db-PURJUV2P.js → db-SVFCM6YZ.js} +25 -25
- package/dist/cli/{describe-P2OJ5B4Q.js → describe-FSDW6LTN.js} +16 -16
- package/dist/cli/{describe-PDLBLRNY.mjs → describe-Y65BU7ZY.mjs} +12 -12
- package/dist/cli/{executions-6PA6Q2BU.mjs → executions-IW762OIJ.mjs} +4 -4
- package/dist/cli/{executions-5CMSUI47.js → executions-SJIKBRHT.js} +6 -6
- package/dist/cli/{feedback-WBKYOIOV.js → feedback-RCYSUOB3.js} +7 -7
- package/dist/cli/{feedback-IU7JRPUB.mjs → feedback-VMJIWAMT.mjs} +3 -3
- package/dist/cli/git-JAW3UEGA.js +24 -0
- package/dist/cli/{git-RZVL3FY6.mjs → git-Q2WY3K6X.mjs} +4 -4
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-S4MMABPX.mjs → legacy-noops-JVEE2VHK.mjs} +4 -4
- package/dist/cli/{legacy-noops-UQKVJEZT.js → legacy-noops-U4YPPYXU.js} +7 -7
- package/dist/cli/{monitors-AIS4RRVX.mjs → monitors-AY4KQRTC.mjs} +4 -4
- package/dist/cli/{monitors-42RY2EQJ.js → monitors-BMAOQ37R.js} +84 -84
- package/dist/cli/{org-GMMSVSCM.js → org-G5IURX74.js} +64 -64
- package/dist/cli/{org-DOIEU3KC.mjs → org-ME4X6HWH.mjs} +4 -4
- package/dist/cli/{play-6Z2D3FHI.mjs → play-WLYU7WQL.mjs} +10 -10
- package/dist/cli/{play-GHUPSQIT.js → play-X5GSZOKZ.js} +283 -283
- package/dist/cli/{providers-HTKPCZHW.mjs → providers-2LBMNB7B.mjs} +4 -4
- package/dist/cli/{providers-T6O7AAHV.js → providers-AHEUVD3R.js} +7 -7
- package/dist/cli/{quickstart-V7CQS7CK.mjs → quickstart-DBLYGHJP.mjs} +3 -3
- package/dist/cli/{quickstart-UVHSZ5R4.js → quickstart-DP2SKLIG.js} +5 -5
- package/dist/cli/search-4K3VSDS5.js +30 -0
- package/dist/cli/{search-GZLYNCII.mjs → search-YKJHY3ZJ.mjs} +5 -5
- package/dist/cli/{secrets-L24W7HSZ.js → secrets-2P3I3OEZ.js} +13 -13
- package/dist/cli/{secrets-HT2CNTXQ.mjs → secrets-ECLARBO6.mjs} +4 -4
- package/dist/cli/{sessions-VWOBR4BP.mjs → sessions-3GDFID7R.mjs} +4 -4
- package/dist/cli/{sessions-JTQPPC66.js → sessions-MC4ZCTSN.js} +5 -5
- package/dist/cli/{settings-57PNA6CO.js → settings-7SVR2OVL.js} +75 -75
- package/dist/cli/{settings-7OOY3WN4.mjs → settings-RTPJXMOA.mjs} +8 -8
- package/dist/cli/{setup-MDIJTSFP.js → setup-4WLIJX36.js} +42 -42
- package/dist/cli/{setup-EE6JK7EG.mjs → setup-OKAZZGAW.mjs} +7 -7
- package/dist/cli/{skills-JDORGABC.mjs → skills-2CVL6RG5.mjs} +5 -5
- package/dist/cli/skills-ZNSQOXO2.js +29 -0
- package/dist/cli/{tools-LVXONRMU.mjs → tools-KAFHP6J4.mjs} +12 -12
- package/dist/cli/tools-W4U4FT3R.js +44 -0
- package/dist/cli/{update-JX2ZOYD3.mjs → update-3ZV3W7I4.mjs} +7 -7
- package/dist/cli/update-IE2FPLB5.js +31 -0
- package/dist/cli/{workflow-G4B6ON6F.mjs → workflow-DKSUNZXE.mjs} +5 -5
- package/dist/cli/{workflow-ATUJZTWI.js → workflow-GULDFFP3.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- 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-FMFNRZCM.js +0 -40
- package/dist/cli/git-SS34WXCG.js +0 -24
- package/dist/cli/search-CAQRDWHR.js +0 -30
- package/dist/cli/skills-S4KMUPPF.js +0 -29
- package/dist/cli/tools-CHZV3D7R.js +0 -44
- package/dist/cli/update-2XCGK53M.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";
|
|
@@ -293,32 +293,13 @@ function toListedTool(tool) {
|
|
|
293
293
|
executeCommand: `deepline tools execute ${tool.toolId}`
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
function normalizeGrepText(value) {
|
|
297
|
-
if (value === null || value === void 0) return "";
|
|
298
|
-
if (typeof value === "string") return value.toLowerCase();
|
|
299
|
-
if (typeof value === "number" || typeof value === "boolean") {
|
|
300
|
-
return String(value).toLowerCase();
|
|
301
|
-
}
|
|
302
|
-
if (Array.isArray(value)) return value.map(normalizeGrepText).join(" ");
|
|
303
|
-
if (typeof value === "object") {
|
|
304
|
-
return Object.values(value).map(normalizeGrepText).join(" ");
|
|
305
|
-
}
|
|
306
|
-
return "";
|
|
307
|
-
}
|
|
308
296
|
function parseGrepTerms(query, mode) {
|
|
309
|
-
const trimmed = query.trim()
|
|
297
|
+
const trimmed = query.trim();
|
|
310
298
|
if (!trimmed) return [];
|
|
311
299
|
if (mode === "phrase") return [trimmed];
|
|
312
300
|
const matches = trimmed.match(/"([^"]+)"|'([^']+)'|\S+/g) ?? [];
|
|
313
301
|
return matches.map((term) => term.replace(/^["']|["']$/g, "").trim()).filter(Boolean);
|
|
314
302
|
}
|
|
315
|
-
function matchesGrepQuery(value, query, mode) {
|
|
316
|
-
const terms = parseGrepTerms(query, mode);
|
|
317
|
-
if (terms.length === 0) return true;
|
|
318
|
-
const haystack = normalizeGrepText(value);
|
|
319
|
-
if (mode === "any") return terms.some((term) => haystack.includes(term));
|
|
320
|
-
return terms.every((term) => haystack.includes(term));
|
|
321
|
-
}
|
|
322
303
|
function shellCommandArg(value) {
|
|
323
304
|
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
324
305
|
}
|
|
@@ -338,7 +319,7 @@ function zeroMatchToolGuidance(options) {
|
|
|
338
319
|
},
|
|
339
320
|
...options.mode === "all" ? [
|
|
340
321
|
{
|
|
341
|
-
label: "Relax
|
|
322
|
+
label: "Relax grep from AND to OR matching",
|
|
342
323
|
command: `deepline tools grep --mode any -- ${shellCommandArg(query)}`
|
|
343
324
|
}
|
|
344
325
|
] : []
|
|
@@ -658,27 +639,8 @@ async function grepTools(queryInput, options = {}) {
|
|
|
658
639
|
(item) => requestedCategories.length === 0 || requestedCategories.some(
|
|
659
640
|
(category) => item.categories.includes(category)
|
|
660
641
|
)
|
|
661
|
-
).filter(
|
|
662
|
-
(item) => apiCompact ? true : matchesGrepQuery(
|
|
663
|
-
{
|
|
664
|
-
id: item.toolId,
|
|
665
|
-
toolId: item.toolId,
|
|
666
|
-
provider: item.provider,
|
|
667
|
-
displayName: item.displayName,
|
|
668
|
-
description: item.description,
|
|
669
|
-
categories: item.categories,
|
|
670
|
-
operation: item.operation,
|
|
671
|
-
operationAliases: item.operationAliases,
|
|
672
|
-
inputSchema: item.inputSchema,
|
|
673
|
-
outputSchema: item.outputSchema,
|
|
674
|
-
inputFields: item.inputFields
|
|
675
|
-
},
|
|
676
|
-
query,
|
|
677
|
-
mode
|
|
678
|
-
)
|
|
679
642
|
);
|
|
680
|
-
const
|
|
681
|
-
const outputTools = shouldCompact ? tools.slice(0, 8).map(compactTool) : tools;
|
|
643
|
+
const outputTools = apiCompact ? tools.map(compactTool) : tools;
|
|
682
644
|
const emptyResult = tools.length === 0 ? zeroMatchToolGuidance({
|
|
683
645
|
categories: requestedCategories,
|
|
684
646
|
query,
|
|
@@ -714,6 +676,7 @@ function compactTool(tool) {
|
|
|
714
676
|
const listed = toListedTool(tool);
|
|
715
677
|
const searchScore = numericToolField(tool, "searchScore");
|
|
716
678
|
const search_score = numericToolField(tool, "search_score");
|
|
679
|
+
const matchedFields = tool.matchedFields;
|
|
717
680
|
return {
|
|
718
681
|
id: listed.id,
|
|
719
682
|
toolId: listed.toolId,
|
|
@@ -724,7 +687,8 @@ function compactTool(tool) {
|
|
|
724
687
|
description: listed.description,
|
|
725
688
|
categories: listed.categories,
|
|
726
689
|
type: listed.type,
|
|
727
|
-
executeCommand: listed.executeCommand
|
|
690
|
+
executeCommand: listed.executeCommand,
|
|
691
|
+
...Array.isArray(matchedFields) ? { matchedFields } : {}
|
|
728
692
|
};
|
|
729
693
|
}
|
|
730
694
|
function playIdentifiers(play) {
|
|
@@ -869,20 +833,24 @@ Examples:
|
|
|
869
833
|
});
|
|
870
834
|
registerDeprecatedSearchCommand(tools, () => ["tools", "monitors"]);
|
|
871
835
|
tools.command("grep <query>").description(
|
|
872
|
-
"
|
|
836
|
+
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
873
837
|
).addHelpText(
|
|
874
838
|
"after",
|
|
875
839
|
`
|
|
876
840
|
Notes:
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
841
|
+
Each whitespace-separated term is a case-insensitive regular expression
|
|
842
|
+
(RE2 syntax), tested against each field on its own: tool id, provider,
|
|
843
|
+
display name, categories, aliases, input field names, and descriptions.
|
|
844
|
+
Results list id matches first, and matchedFields says where each tool
|
|
845
|
+
matched. Use --mode any for OR, the default --mode all for AND, and
|
|
846
|
+
--mode phrase to treat the whole query, spaces included, as one pattern.
|
|
847
|
+
A term that is not valid RE2 (for example c++) is matched literally.
|
|
881
848
|
|
|
882
849
|
Examples:
|
|
850
|
+
deepline tools grep '^hubspot_'
|
|
851
|
+
deepline tools grep 'twilio|telesign|vonage'
|
|
852
|
+
deepline tools grep 'hubspot.*(call|engagement)'
|
|
883
853
|
deepline tools grep email --categories email_finder
|
|
884
|
-
deepline tools grep "phone validate" --mode all
|
|
885
|
-
deepline tools grep hunter --mode phrase
|
|
886
854
|
`
|
|
887
855
|
).option(
|
|
888
856
|
"--categories <categories>",
|
|
@@ -968,7 +936,7 @@ Examples:
|
|
|
968
936
|
process.exitCode = await narrowView();
|
|
969
937
|
return;
|
|
970
938
|
}
|
|
971
|
-
const { describeAnything } = await import("./describe-
|
|
939
|
+
const { describeAnything } = await import("./describe-Y65BU7ZY.mjs");
|
|
972
940
|
process.exitCode = await describeAnything(
|
|
973
941
|
toolId,
|
|
974
942
|
{
|
|
@@ -444,19 +444,20 @@ Cost:
|
|
|
444
444
|
"tools grep": {
|
|
445
445
|
core: `
|
|
446
446
|
Purpose:
|
|
447
|
-
|
|
447
|
+
Case-insensitive regex (RE2) filtering of the tool registry by id, provider,
|
|
448
448
|
description, categories, or input field names.
|
|
449
449
|
When:
|
|
450
|
-
When you know a provider or field name and want every matching
|
|
451
|
-
than a ranked guess. Use search for intent queries.
|
|
450
|
+
When you know a provider, id pattern, or field name and want every matching
|
|
451
|
+
tool rather than a ranked guess. Use search for intent queries.
|
|
452
452
|
[[cli:
|
|
453
453
|
Input:
|
|
454
|
-
A query; --mode all (default, AND), any (OR), or phrase
|
|
454
|
+
A query of regex terms; --mode all (default, AND), any (OR), or phrase
|
|
455
|
+
(whole query is one pattern); --categories.
|
|
455
456
|
]]
|
|
456
457
|
[[cli:
|
|
457
458
|
Output (JSON):
|
|
458
|
-
tools[] with id, provider,
|
|
459
|
-
executeCommand.
|
|
459
|
+
Every matching tool, id matches first: tools[] with id, provider,
|
|
460
|
+
displayName, description, categories, matchedFields, and executeCommand.
|
|
460
461
|
]]
|
|
461
462
|
Cost:
|
|
462
463
|
Free.
|
|
@@ -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,
|