deepline 0.3.420 → 0.3.421
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/cli/{auth-OUHAOA5F.mjs → auth-56JTC4Q7.mjs} +4 -4
- package/dist/cli/auth-ZQMAF7W5.js +40 -0
- package/dist/cli/{billing-PKVUYBJB.js → billing-C5LR6FA7.js} +73 -73
- package/dist/cli/{billing-VIZQ6D4L.mjs → billing-ZXOOZEUW.mjs} +4 -4
- package/dist/cli/{chunk-OJ64RXJW.js → chunk-2WOVAVJ3.js} +26 -26
- package/dist/cli/{chunk-VESCW5LD.js → chunk-2XKDLS5P.js} +6 -6
- package/dist/cli/{chunk-R4TF44FZ.js → chunk-4I26IVFC.js} +35 -35
- package/dist/cli/{chunk-LJ7ZOBTQ.mjs → chunk-4NS4EZHN.mjs} +2 -2
- package/dist/cli/{chunk-SVJPQHHN.mjs → chunk-5E55HHW3.mjs} +4 -4
- package/dist/cli/{chunk-A2CPK2UC.mjs → chunk-5F6W5NWV.mjs} +5 -5
- package/dist/cli/{chunk-4T242WLH.js → chunk-5KYK4DGY.js} +8 -8
- package/dist/cli/{chunk-LUQE4CFH.js → chunk-6UKY4LBW.js} +20 -20
- package/dist/cli/{chunk-ZCPJ3L43.js → chunk-7SRVIWGT.js} +1 -1
- package/dist/cli/{chunk-R62A6ZXG.mjs → chunk-7TSF7E3B.mjs} +2 -2
- package/dist/cli/{chunk-KLNF7MWP.mjs → chunk-AZGJNNNE.mjs} +2 -2
- package/dist/cli/{chunk-NQAWJ65E.js → chunk-C25ZYL6U.js} +4 -4
- package/dist/cli/{chunk-LFSHGNT2.mjs → chunk-CTNA5QY2.mjs} +7 -6
- package/dist/cli/{chunk-JP35BUED.mjs → chunk-EKQH4IUU.mjs} +1 -1
- package/dist/cli/{chunk-3L734JBM.mjs → chunk-F4V4JJED.mjs} +3 -3
- package/dist/cli/{chunk-OGII53LE.js → chunk-FB5H5OOH.js} +10 -10
- package/dist/cli/{chunk-QJA6OAJF.js → chunk-GIJ47TAV.js} +6 -6
- package/dist/cli/{chunk-HGYUUQJG.js → chunk-HP5FD2LI.js} +8 -8
- package/dist/cli/{chunk-XXOUOHBO.js → chunk-JJQLBZEW.js} +2 -2
- package/dist/cli/{chunk-5VPN2HZQ.js → chunk-NSJRLP7R.js} +16 -16
- package/dist/cli/{chunk-5MLCBXXU.js → chunk-PKBPSMOT.js} +7 -6
- package/dist/cli/{chunk-PZVB72XS.js → chunk-QJV2ALPN.js} +2 -2
- package/dist/cli/{chunk-7AIHQR5X.mjs → chunk-RJLFCJ23.mjs} +3 -3
- package/dist/cli/{chunk-YHOGJQR7.mjs → chunk-RURYN2BE.mjs} +25 -57
- package/dist/cli/{chunk-LPNB7RIE.mjs → chunk-SPLOMS4N.mjs} +1 -1
- package/dist/cli/{chunk-WVF6T2MI.mjs → chunk-UCI4QROZ.mjs} +1 -1
- package/dist/cli/{chunk-SNLYCNAO.mjs → chunk-VC3E5HFO.mjs} +1 -1
- package/dist/cli/{chunk-M4AYMLCK.js → chunk-VEYAPBS4.js} +96 -128
- package/dist/cli/{chunk-IZ3QC7OE.mjs → chunk-VYLZS7X4.mjs} +1 -1
- package/dist/cli/{chunk-J55AD562.js → chunk-WR4M5VWK.js} +52 -52
- package/dist/cli/{chunk-UBNWFLYB.mjs → chunk-ZLPT2RZ5.mjs} +2 -2
- package/dist/cli/{chunk-AOPQ46ZW.mjs → chunk-ZOL3CIKN.mjs} +3 -3
- package/dist/cli/{chunk-TK7V5NQO.mjs → chunk-ZSVWCV3G.mjs} +1 -1
- package/dist/cli/{chunk-YSJVAPJE.js → chunk-ZZBXD5VX.js} +50 -50
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-OJLORQ3N.mjs → csv-EJ4QRLA2.mjs} +3 -3
- package/dist/cli/{csv-CLKRVS6Q.js → csv-G6H3U4XV.js} +12 -12
- package/dist/cli/{db-VIY56Q3E.mjs → db-PBIIALJ5.mjs} +4 -4
- package/dist/cli/{db-PURJUV2P.js → db-WKQFXUWI.js} +25 -25
- package/dist/cli/{describe-PDLBLRNY.mjs → describe-DMRK4UNO.mjs} +12 -12
- package/dist/cli/{describe-P2OJ5B4Q.js → describe-ZCU36ES2.js} +16 -16
- package/dist/cli/{executions-6PA6Q2BU.mjs → executions-JAHW6GMA.mjs} +4 -4
- package/dist/cli/{executions-5CMSUI47.js → executions-SBA3UYMH.js} +6 -6
- package/dist/cli/{feedback-IU7JRPUB.mjs → feedback-PKBUYHMD.mjs} +3 -3
- package/dist/cli/{feedback-WBKYOIOV.js → feedback-QAE4V2NY.js} +7 -7
- package/dist/cli/git-54INNT33.js +24 -0
- package/dist/cli/{git-RZVL3FY6.mjs → git-GAO3SJAQ.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-5PY2ZZF3.mjs} +4 -4
- package/dist/cli/{legacy-noops-UQKVJEZT.js → legacy-noops-JCMVW5BL.js} +7 -7
- package/dist/cli/{monitors-AIS4RRVX.mjs → monitors-GVYAZRMB.mjs} +4 -4
- package/dist/cli/{monitors-42RY2EQJ.js → monitors-YPS4LPDG.js} +84 -84
- package/dist/cli/{org-GMMSVSCM.js → org-OBVAU6K7.js} +64 -64
- package/dist/cli/{org-DOIEU3KC.mjs → org-R7AKPKUB.mjs} +4 -4
- package/dist/cli/{play-6Z2D3FHI.mjs → play-3LFM2SV2.mjs} +10 -10
- package/dist/cli/{play-GHUPSQIT.js → play-MTHQQHR6.js} +283 -283
- package/dist/cli/{providers-T6O7AAHV.js → providers-CTIROUI3.js} +7 -7
- package/dist/cli/{providers-HTKPCZHW.mjs → providers-IRICPDKU.mjs} +4 -4
- package/dist/cli/{quickstart-V7CQS7CK.mjs → quickstart-5FBQVZ5B.mjs} +3 -3
- package/dist/cli/{quickstart-UVHSZ5R4.js → quickstart-OZDVFNF2.js} +5 -5
- package/dist/cli/{search-GZLYNCII.mjs → search-FYM47QFU.mjs} +5 -5
- package/dist/cli/search-XIKHDZJ3.js +30 -0
- package/dist/cli/{secrets-L24W7HSZ.js → secrets-43GJUDAE.js} +13 -13
- package/dist/cli/{secrets-HT2CNTXQ.mjs → secrets-ENBXU3O3.mjs} +4 -4
- package/dist/cli/{sessions-VWOBR4BP.mjs → sessions-7IQJOH5Z.mjs} +4 -4
- package/dist/cli/{sessions-JTQPPC66.js → sessions-RXX5IHG6.js} +5 -5
- package/dist/cli/{settings-7OOY3WN4.mjs → settings-EZGDTS3K.mjs} +8 -8
- package/dist/cli/{settings-57PNA6CO.js → settings-Z2CWWV7P.js} +75 -75
- package/dist/cli/{setup-MDIJTSFP.js → setup-2ON3TUXP.js} +42 -42
- package/dist/cli/{setup-EE6JK7EG.mjs → setup-N5UMUBBV.mjs} +7 -7
- package/dist/cli/skills-2WIHNEOS.js +29 -0
- package/dist/cli/{skills-JDORGABC.mjs → skills-4MR2Z2M5.mjs} +5 -5
- package/dist/cli/{tools-LVXONRMU.mjs → tools-MCEIWE3I.mjs} +12 -12
- package/dist/cli/tools-YUUSOKYX.js +44 -0
- package/dist/cli/{update-JX2ZOYD3.mjs → update-2JDBGLTX.mjs} +7 -7
- package/dist/cli/update-PWX4MJ3R.js +31 -0
- package/dist/cli/{workflow-ATUJZTWI.js → workflow-7DNBY4WJ.js} +15 -15
- package/dist/cli/{workflow-G4B6ON6F.mjs → workflow-7UDXYU5Y.mjs} +5 -5
- 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
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNSJRLP7Rjs = require('./chunk-NSJRLP7R.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkWR4M5VWKjs = require('./chunk-WR4M5VWK.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkGIJ47TAVjs = require('./chunk-GIJ47TAV.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkC25ZYL6Ujs = require('./chunk-C25ZYL6U.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 = _chunkC25ZYL6Ujs.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/${_chunkC25ZYL6Ujs.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": _chunkC25ZYL6Ujs.SDK_VERSION,
|
|
65
|
+
"X-Deepline-SDK-Version": _chunkC25ZYL6Ujs.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()]) || _chunkC25ZYL6Ujs.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") || !_chunkNSJRLP7Rjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkWR4M5VWKjs.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()]) || _chunkC25ZYL6Ujs.SDK_VERSION;
|
|
93
93
|
if (!target) return false;
|
|
94
|
-
return
|
|
94
|
+
return _chunkNSJRLP7Rjs.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()]) || _chunkC25ZYL6Ujs.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 = _chunkNSJRLP7Rjs.resolveUpdatePlan.call(void 0, {
|
|
156
156
|
packageSpec,
|
|
157
157
|
requireVerifiedNpmOwnership: true,
|
|
158
158
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
159
159
|
});
|
|
160
|
-
if (!
|
|
160
|
+
if (!_chunkNSJRLP7Rjs.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 (_chunkGIJ47TAVjs.isJsonOutputMode.call(void 0, )) {
|
|
168
168
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
169
|
-
|
|
169
|
+
_chunkGIJ47TAVjs.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 (!_chunkNSJRLP7Rjs.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 _chunkNSJRLP7Rjs.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 (!_chunkGIJ47TAVjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
247
247
|
}
|
|
248
248
|
function beginToolExecuteCommand() {
|
|
249
249
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.421",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VC3E5HFO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VYLZS7X4.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VC3E5HFO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VYLZS7X4.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -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 _chunk7SRVIWGTjs = require('./chunk-7SRVIWGT.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 = _chunk7SRVIWGTjs.SDK_RELEASE.version;
|
|
653
|
+
var SDK_API_MAJOR = _chunk7SRVIWGTjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
654
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk7SRVIWGTjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
655
655
|
|
|
656
656
|
// src/agent-runtime.ts
|
|
657
657
|
|
|
@@ -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.
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RJLFCJ23.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VC3E5HFO.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION,
|
|
20
20
|
autoDetectBaseUrl,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ensureProjectPrivatePathsIgnored,
|
|
23
23
|
resolveProjectPinTarget,
|
|
24
24
|
sdkCliStateDirPath
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VYLZS7X4.mjs";
|
|
26
26
|
|
|
27
27
|
// src/cli/commands/skills.ts
|
|
28
28
|
import { spawn } from "child_process";
|
|
@@ -28,7 +28,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkC25ZYL6Ujs = require('./chunk-C25ZYL6U.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkNPBJI7REjs = require('./chunk-NPBJI7RE.js');
|
|
@@ -647,7 +647,7 @@ var ToolCalls = class {
|
|
|
647
647
|
idempotencyKey,
|
|
648
648
|
onResponse: (response2) => {
|
|
649
649
|
lastResponse = null;
|
|
650
|
-
atomicToolsSupported = response2.headers.get(
|
|
650
|
+
atomicToolsSupported = response2.headers.get(_chunkC25ZYL6Ujs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
651
651
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
652
652
|
if (_optionalChain([options, 'optionalAccess', _29 => _29.onServerTiming])) {
|
|
653
653
|
try {
|
|
@@ -997,8 +997,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
997
997
|
}
|
|
998
998
|
const receivers = _optionalChain([env, 'access', _51 => _51.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]);
|
|
999
999
|
return {
|
|
1000
|
-
[
|
|
1001
|
-
...receivers ? { [
|
|
1000
|
+
[_chunkC25ZYL6Ujs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1001
|
+
...receivers ? { [_chunkC25ZYL6Ujs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1069,7 +1069,7 @@ var PlayClient = class {
|
|
|
1069
1069
|
return _chunk2H4EY7KHjs.startPlayRun.call(void 0,
|
|
1070
1070
|
this.http,
|
|
1071
1071
|
resolved.request,
|
|
1072
|
-
_optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1072
|
+
_optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkC25ZYL6Ujs.SDK_API_MAJOR) } : headers,
|
|
1073
1073
|
options
|
|
1074
1074
|
);
|
|
1075
1075
|
}
|
|
@@ -1135,9 +1135,9 @@ var PlayClient = class {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
};
|
|
1137
1137
|
function createPlayClient(options) {
|
|
1138
|
-
const config =
|
|
1138
|
+
const config = _chunkC25ZYL6Ujs.resolveConfig.call(void 0, options);
|
|
1139
1139
|
return new PlayClient(
|
|
1140
|
-
new (0,
|
|
1140
|
+
new (0, _chunkC25ZYL6Ujs.HttpClient)(config),
|
|
1141
1141
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
1142
1142
|
);
|
|
1143
1143
|
}
|
|
@@ -3151,7 +3151,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3151
3151
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3152
3152
|
);
|
|
3153
3153
|
}
|
|
3154
|
-
return { [
|
|
3154
|
+
return { [_chunkC25ZYL6Ujs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3155
3155
|
}
|
|
3156
3156
|
function sleep(ms) {
|
|
3157
3157
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -3389,9 +3389,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3389
3389
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3390
3390
|
*/
|
|
3391
3391
|
constructor(options) {
|
|
3392
|
-
this.config =
|
|
3392
|
+
this.config = _chunkC25ZYL6Ujs.resolveConfig.call(void 0, options);
|
|
3393
3393
|
this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
|
|
3394
|
-
this.http = new (0,
|
|
3394
|
+
this.http = new (0, _chunkC25ZYL6Ujs.HttpClient)(this.config);
|
|
3395
3395
|
this.playClient = new PlayClient(this.http, this.environment);
|
|
3396
3396
|
this.toolCalls = new ToolCalls(
|
|
3397
3397
|
this.http,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkC25ZYL6Ujs = require('./chunk-C25ZYL6U.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 = _chunkC25ZYL6Ujs.resolveConfig.call(void 0, );
|
|
292
|
+
return { config, http: new (0, _chunkC25ZYL6Ujs.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: _chunkC25ZYL6Ujs.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 _chunkC25ZYL6Ujs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
880
880
|
...valueRecord,
|
|
881
|
-
command_context:
|
|
881
|
+
command_context: _chunkC25ZYL6Ujs.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 _chunkFB5H5OOHjs = require('./chunk-FB5H5OOH.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkGIJ47TAVjs = require('./chunk-GIJ47TAV.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkC25ZYL6Ujs = require('./chunk-C25ZYL6U.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, _chunkC25ZYL6Ujs.sdkCliStateDirPath.call(void 0, _chunkC25ZYL6Ujs.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 _chunkGIJ47TAVjs.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
|
+
${_chunkGIJ47TAVjs.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, _chunkFB5H5OOHjs.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
|
+
_chunkGIJ47TAVjs.printCommandEnvelope.call(void 0, result, {
|
|
6001
6001
|
json: options.json === true,
|
|
6002
6002
|
text: renderSearchResults(result, summaryWidth)
|
|
6003
6003
|
});
|
|
@@ -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 _chunkGIJ47TAVjs = require('./chunk-GIJ47TAV.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
|
+
_chunkGIJ47TAVjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -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 _chunkQJV2ALPNjs = require('./chunk-QJV2ALPN.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4I26IVFCjs = require('./chunk-4I26IVFC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkWR4M5VWKjs = require('./chunk-WR4M5VWK.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkGIJ47TAVjs = require('./chunk-GIJ47TAV.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkC25ZYL6Ujs = require('./chunk-C25ZYL6U.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 = _chunkWR4M5VWKjs.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 ? _chunkQJV2ALPNjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkQJV2ALPNjs.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()]) || _chunkC25ZYL6Ujs.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 = _chunkWR4M5VWKjs.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, () => ( _chunkC25ZYL6Ujs.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 _chunk4I26IVFCjs.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
|
+
_chunkGIJ47TAVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkGIJ47TAVjs.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
|
+
_chunkGIJ47TAVjs.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
|
+
_chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -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
|
"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 _chunkWR4M5VWKjs = require('./chunk-WR4M5VWK.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 = _chunkWR4M5VWKjs.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,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isJsonOutputMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VC3E5HFO.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-VYLZS7X4.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-SPLOMS4N.mjs";
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|