deepline 0.3.490 → 0.3.491
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/client-core.ts +6 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +4 -1
- package/dist/cli/{auth-RL6LOZGC.mjs → auth-FXAC472Y.mjs} +5 -5
- package/dist/cli/auth-QIDL3YCW.js +43 -0
- package/dist/cli/{billing-LIDDSOSY.js → billing-PDOA3KZ3.js} +79 -79
- package/dist/cli/{billing-33THO76F.mjs → billing-UM4LE33K.mjs} +6 -6
- package/dist/cli/{chunk-QZPJWFGD.js → chunk-27MRSV6O.js} +26 -26
- package/dist/cli/{chunk-V47SUOAE.mjs → chunk-2MW6TGNZ.mjs} +4 -4
- package/dist/cli/{chunk-63TNO23X.js → chunk-3FMU6F6E.js} +10 -10
- package/dist/cli/{chunk-CB7IFKXN.mjs → chunk-3K4IAV7I.mjs} +2 -2
- package/dist/cli/{chunk-7W53Y4VH.mjs → chunk-3WRWPNHE.mjs} +5 -5
- package/dist/cli/{chunk-Y2KHSQEF.js → chunk-5KMGKG4B.js} +8 -8
- package/dist/cli/{chunk-A3D677RX.mjs → chunk-6PMM7VJN.mjs} +1 -1
- package/dist/cli/{chunk-LZ37B62K.js → chunk-6UARNRXT.js} +3 -3
- package/dist/cli/{chunk-EPQZ42PY.js → chunk-74H5OTRM.js} +1 -1
- package/dist/cli/{chunk-FPYESYBO.js → chunk-AEKJZJ4R.js} +4 -4
- package/dist/cli/{chunk-PVMN4OE2.js → chunk-B2TXKEED.js} +5 -5
- package/dist/cli/{chunk-E26477MJ.js → chunk-BCKIBVEJ.js} +7 -7
- package/dist/cli/{chunk-QWJZSPCV.mjs → chunk-CFPFTS3A.mjs} +10 -10
- package/dist/cli/{chunk-L7QSZAF6.js → chunk-CRBBGKRH.js} +9 -9
- package/dist/cli/{chunk-YPUDIEZX.js → chunk-DUFRH43S.js} +94 -94
- package/dist/cli/{chunk-CSSOP7XG.mjs → chunk-EPD7NSDJ.mjs} +1 -1
- package/dist/cli/{chunk-JTYKW3UL.mjs → chunk-H6UIS36S.mjs} +2 -2
- package/dist/cli/{chunk-UQXHBCHU.js → chunk-HNG2U3IG.js} +2 -2
- package/dist/cli/{chunk-JSYCPTG6.mjs → chunk-HSJK6EMU.mjs} +3 -3
- package/dist/cli/{chunk-XSGJKXMP.js → chunk-I64PYCTB.js} +2 -2
- package/dist/cli/{chunk-6TTPAGNX.js → chunk-IG3GSBBE.js} +122 -119
- package/dist/cli/{chunk-MEYQOZPF.mjs → chunk-IIO7UOVW.mjs} +5 -2
- package/dist/cli/{chunk-MDKAPUN2.mjs → chunk-KGJVDR4Q.mjs} +2 -2
- package/dist/cli/{chunk-LQIKW55V.mjs → chunk-LMG7O6XJ.mjs} +2 -2
- package/dist/cli/{chunk-MBQZMHE6.mjs → chunk-MAM6ZOVS.mjs} +4 -4
- package/dist/cli/{chunk-QC6QUFKY.js → chunk-MN6DCV63.js} +5 -5
- package/dist/cli/{chunk-Z7W6VJFN.mjs → chunk-NUOKAKZW.mjs} +1 -1
- package/dist/cli/{chunk-BL5Q5JY7.mjs → chunk-OLHWZM4A.mjs} +5 -5
- package/dist/cli/{chunk-TVZJ6XWM.mjs → chunk-ORKLMANE.mjs} +1 -1
- package/dist/cli/{chunk-PIENQTDE.mjs → chunk-OYJTLEB4.mjs} +1 -1
- package/dist/cli/{chunk-JC2M6XG2.mjs → chunk-PIPEPCRL.mjs} +1 -1
- package/dist/cli/{chunk-SGG3TERP.js → chunk-Q7G7CU4W.js} +3 -3
- package/dist/cli/{chunk-2HYJU4LJ.mjs → chunk-QBOE5LEH.mjs} +1 -1
- package/dist/cli/{chunk-FDYCUA7A.js → chunk-RFSXXDH7.js} +16 -16
- package/dist/cli/{chunk-NRM5OWH2.mjs → chunk-S4CYM4EC.mjs} +4 -4
- package/dist/cli/{chunk-HHGAY2A4.js → chunk-SJOHQ2WW.js} +53 -53
- package/dist/cli/{chunk-WNVZV6VK.js → chunk-SUMKWA53.js} +53 -53
- package/dist/cli/{chunk-B7MPY7WH.js → chunk-TH7JLR5D.js} +6 -6
- package/dist/cli/{chunk-UTKNSD6T.js → chunk-TMAS3WH3.js} +21 -21
- package/dist/cli/{chunk-27IBWHR5.mjs → chunk-VC3SH4QW.mjs} +4 -4
- package/dist/cli/{chunk-J5HMAZ34.mjs → chunk-WCWVXN3R.mjs} +2 -2
- package/dist/cli/{chunk-OFCP66VS.mjs → chunk-X75ONMDJ.mjs} +2 -2
- package/dist/cli/{chunk-TCBYQX5N.js → chunk-X7YOVJBC.js} +37 -37
- package/dist/cli/{chunk-3M5VPIRL.mjs → chunk-YV4DP6KQ.mjs} +2 -2
- package/dist/cli/{chunk-YYN2O43C.js → chunk-ZEZ3CZ3X.js} +3 -3
- package/dist/cli/{chunk-IFGBL3US.js → chunk-ZX2FXZJN.js} +7 -7
- package/dist/cli/{csv-PLJNQPLE.js → csv-IGPAPAES.js} +13 -13
- package/dist/cli/{csv-TELSH4ND.mjs → csv-RNMQHECI.mjs} +4 -4
- package/dist/cli/{db-QDJ6GWF5.js → db-32OXM3TO.js} +27 -27
- package/dist/cli/{db-GISAU665.mjs → db-CKMVVGXJ.mjs} +6 -6
- package/dist/cli/describe-67GMIEIO.js +50 -0
- package/dist/cli/{describe-F4K54VXB.mjs → describe-QR7I3VOF.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-VKUTKQNN.js → executions-PCZS7B2M.js} +8 -8
- package/dist/cli/{executions-3QE7MRBG.mjs → executions-S4M4JMCU.mjs} +6 -6
- package/dist/cli/{feedback-HH5AUYLA.js → feedback-6EGKPZ3U.js} +8 -8
- package/dist/cli/{feedback-JU7PJGDL.mjs → feedback-FGUJVCBS.mjs} +4 -4
- package/dist/cli/{git-ACXH7K7D.mjs → git-LR4ARG5H.mjs} +5 -5
- package/dist/cli/git-PIH5Z5LN.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-IOAZ3YJ2.mjs → legacy-noops-S37PJ7OJ.mjs} +5 -5
- package/dist/cli/{legacy-noops-NRPYJZOP.js → legacy-noops-VX4JEQR6.js} +8 -8
- package/dist/cli/{monitors-4SKMAAMR.js → monitors-ADASJI72.js} +91 -91
- package/dist/cli/{monitors-PMQUOIOI.mjs → monitors-H3AX6CZG.mjs} +7 -7
- package/dist/cli/{org-XNT3W6OU.mjs → org-D3F5LUDW.mjs} +6 -6
- package/dist/cli/{org-WJM7X6WB.js → org-ZRJ3C56J.js} +72 -72
- package/dist/cli/{pages-WXY4GGZG.js → pages-5TKO3644.js} +17 -17
- package/dist/cli/{pages-Y3JKBS4B.mjs → pages-PSHU366M.mjs} +6 -6
- package/dist/cli/{play-NPWWAQYK.mjs → play-AUDDK7XB.mjs} +19 -18
- package/dist/cli/{play-NKSRPIAV.js → play-VDAETQDI.js} +314 -313
- package/dist/cli/{providers-VNPJHXK5.js → providers-IURPWRWD.js} +9 -9
- package/dist/cli/{providers-CUIKFE6F.mjs → providers-X7YMZSKQ.mjs} +6 -6
- package/dist/cli/{quickstart-PJYPKFZI.mjs → quickstart-6AGWVFNX.mjs} +4 -4
- package/dist/cli/{quickstart-6OTS2HDR.js → quickstart-Y6GFXLDV.js} +6 -6
- package/dist/cli/{run-AGX3EUK4.mjs → run-TG7J45NS.mjs} +22 -22
- package/dist/cli/{run-2DLJBYFC.js → run-TQFGOXNT.js} +36 -36
- package/dist/cli/{search-DVIEJ2UQ.mjs → search-3G4J2GC6.mjs} +7 -7
- package/dist/cli/search-VC43NUY7.js +32 -0
- package/dist/cli/{search-output-PFLNDCA7.js → search-output-NPZICK5C.js} +6 -6
- package/dist/cli/{search-output-TXSIPSPS.mjs → search-output-ZGNHDCLL.mjs} +4 -4
- package/dist/cli/{secrets-OAGXFXEX.mjs → secrets-EAWJBRUD.mjs} +6 -6
- package/dist/cli/{secrets-O5OQTFVD.js → secrets-KTTHT4ZG.js} +15 -15
- package/dist/cli/{sessions-GBR5PGB6.mjs → sessions-D4Q3LCEQ.mjs} +5 -5
- package/dist/cli/{sessions-WT7P3F73.js → sessions-S4YVBPAW.js} +6 -6
- package/dist/cli/{settings-U7UNDUDB.js → settings-BAK3VOWW.js} +78 -78
- package/dist/cli/{settings-KGNBIFOU.mjs → settings-JUORW6NL.mjs} +11 -11
- package/dist/cli/{setup-PYWSU4YM.mjs → setup-AXFGCXJE.mjs} +9 -9
- package/dist/cli/{setup-4MZNDFKM.js → setup-NJPHTW32.js} +49 -49
- package/dist/cli/skills-4NQZISNK.js +36 -0
- package/dist/cli/{skills-7Y6OBM7Z.mjs → skills-SKJVDJEF.mjs} +7 -7
- package/dist/cli/{tools-O7L435CR.mjs → tools-63THJVJZ.mjs} +16 -16
- package/dist/cli/tools-BAHK33FQ.js +57 -0
- package/dist/cli/update-EMIGRGJ7.js +34 -0
- package/dist/cli/{update-SPHIBY5L.mjs → update-KSID5F74.mjs} +9 -9
- package/dist/cli/{workflow-GTDKPIEV.js → workflow-BLSMWBKW.js} +17 -17
- package/dist/cli/{workflow-ZRYO5J3K.mjs → workflow-C4B54X2Z.mjs} +7 -7
- package/dist/{client-BkbDHRIg.d.mts → client-B4R1scm2.d.mts} +1 -1
- package/dist/{client-D3hVHXjK.d.ts → client-CQgGFxAH.d.ts} +1 -1
- package/dist/{client-core-DUdVqO_m.d.ts → client-core-BUNjKBKq.d.ts} +6 -1
- package/dist/{client-core-BZoSMKcY.d.mts → client-core-DMvHWjub.d.mts} +6 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +102 -102
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-AW34RGV5.js +0 -43
- package/dist/cli/describe-R6NVISAS.js +0 -50
- package/dist/cli/git-CXRU4CRW.js +0 -25
- package/dist/cli/search-Y7VFEFJJ.js +0 -32
- package/dist/cli/skills-BQC2323O.js +0 -36
- package/dist/cli/tools-732SZ4KV.js +0 -57
- package/dist/cli/update-PCYIUORM.js +0 -34
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkHNG2U3IGjs = require('./chunk-HNG2U3IG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkSJOHQ2WWjs = require('./chunk-SJOHQ2WW.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunkSJOHQ2WWjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkSJOHQ2WWjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
|
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
32
|
if (compatibility.error) throw compatibility.error;
|
|
33
|
-
|
|
33
|
+
_chunkSJOHQ2WWjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRFSXXDH7js = require('./chunk-RFSXXDH7.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkSJOHQ2WWjs = require('./chunk-SJOHQ2WW.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkAEKJZJ4Rjs = require('./chunk-AEKJZJ4R.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
44
44
|
async function reportAutoUpdateEvent(input) {
|
|
45
45
|
let apiKey = "";
|
|
46
46
|
try {
|
|
47
|
-
apiKey =
|
|
47
|
+
apiKey = _chunkZEZ3CZ3Xjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
48
48
|
} catch (e2) {
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
60
60
|
headers: {
|
|
61
61
|
Authorization: `Bearer ${apiKey}`,
|
|
62
62
|
"Content-Type": "application/json",
|
|
63
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
63
|
+
"User-Agent": `deepline-ts-sdk/${_chunkAEKJZJ4Rjs.SDK_VERSION}`,
|
|
64
64
|
"X-Deepline-Client-Family": "sdk",
|
|
65
65
|
"X-Deepline-CLI-Family": "sdk",
|
|
66
|
-
"X-Deepline-CLI-Version":
|
|
67
|
-
"X-Deepline-SDK-Version":
|
|
66
|
+
"X-Deepline-CLI-Version": _chunkAEKJZJ4Rjs.SDK_VERSION,
|
|
67
|
+
"X-Deepline-SDK-Version": _chunkAEKJZJ4Rjs.SDK_VERSION
|
|
68
68
|
},
|
|
69
69
|
body: JSON.stringify({
|
|
70
70
|
event: input.event,
|
|
71
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
71
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkAEKJZJ4Rjs.SDK_VERSION,
|
|
72
72
|
target_version: input.response.latest,
|
|
73
73
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
74
74
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -87,13 +87,13 @@ function envTruthy(name) {
|
|
|
87
87
|
return value === "1" || value === "true" || value === "yes";
|
|
88
88
|
}
|
|
89
89
|
function shouldSkipSelfUpdate(policy) {
|
|
90
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
90
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkRFSXXDH7js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkSJOHQ2WWjs.isCiEnvironment.call(void 0, );
|
|
91
91
|
}
|
|
92
92
|
function isDowngradeAutoUpdateResponse(response) {
|
|
93
93
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
94
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
94
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkAEKJZJ4Rjs.SDK_VERSION;
|
|
95
95
|
if (!target) return false;
|
|
96
|
-
return
|
|
96
|
+
return _chunkRFSXXDH7js.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
97
97
|
}
|
|
98
98
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
99
99
|
return new Promise((resolve) => {
|
|
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
146
146
|
}
|
|
147
147
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
148
148
|
const target = response.latest;
|
|
149
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
149
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkAEKJZJ4Rjs.SDK_VERSION;
|
|
150
150
|
process.stderr.write(
|
|
151
151
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
152
152
|
`
|
|
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
154
154
|
return false;
|
|
155
155
|
}
|
|
156
156
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
157
|
-
const plan =
|
|
157
|
+
const plan = _chunkRFSXXDH7js.resolveUpdatePlan.call(void 0, {
|
|
158
158
|
packageSpec,
|
|
159
159
|
requireVerifiedNpmOwnership: true,
|
|
160
160
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
161
161
|
});
|
|
162
|
-
if (!
|
|
162
|
+
if (!_chunkRFSXXDH7js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
165
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
166
166
|
deferredAutoUpdate = async () => {
|
|
167
167
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
168
168
|
};
|
|
169
|
-
if (
|
|
169
|
+
if (_chunkBCKIBVEJjs.isJsonOutputMode.call(void 0, )) {
|
|
170
170
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
171
|
-
|
|
171
|
+
_chunkBCKIBVEJjs.addJsonNotice.call(void 0, {
|
|
172
172
|
code: "sdk_update_queued",
|
|
173
173
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
174
174
|
});
|
|
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
183
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
184
|
-
if (!
|
|
184
|
+
if (!_chunkRFSXXDH7js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
185
185
|
const autoUpdate = response.auto_update;
|
|
186
186
|
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";
|
|
187
187
|
process.stderr.write(
|
|
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
194
194
|
event: "started",
|
|
195
195
|
installKind: plan.kind
|
|
196
196
|
});
|
|
197
|
-
const updateResult = await
|
|
197
|
+
const updateResult = await _chunkRFSXXDH7js.runAutomaticUpdatePlan.call(void 0, plan);
|
|
198
198
|
if (updateResult.status === "skipped_previous_failure") {
|
|
199
199
|
void reportAutoUpdateEvent({
|
|
200
200
|
baseUrl,
|
|
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
|
|
|
245
245
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
246
246
|
var activeToolExecuteCommand = null;
|
|
247
247
|
function progressLine(line) {
|
|
248
|
-
if (!
|
|
248
|
+
if (!_chunkBCKIBVEJjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
249
249
|
}
|
|
250
250
|
function beginToolExecuteCommand() {
|
|
251
251
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NUOKAKZW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
sdkCliStateDirPath,
|
|
13
13
|
skillsAgentPathSegment,
|
|
14
14
|
writeSdkSkillsLocalVersion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PIPEPCRL.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SDK_API_CONTRACT,
|
|
18
18
|
SDK_API_MAJOR,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
agentSessionIdFromEnvironment,
|
|
21
21
|
deploymentProtectionHeaders,
|
|
22
22
|
detectAgentRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6PMM7VJN.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SDK_RELEASE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-OYJTLEB4.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X75ONMDJ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PIPEPCRL.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PIPEPCRL.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6PMM7VJN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkSJOHQ2WWjs = require('./chunk-SJOHQ2WW.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkAEKJZJ4Rjs = require('./chunk-AEKJZJ4R.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunk4OLXMJ2Ljs = require('./chunk-4OLXMJ2L.js');
|
|
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
145
145
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
146
146
|
}
|
|
147
147
|
function resolveLocalRoot() {
|
|
148
|
-
const target =
|
|
148
|
+
const target = _chunkZEZ3CZ3Xjs.resolveProjectPinTarget.call(void 0, );
|
|
149
149
|
if (!target.ok) {
|
|
150
150
|
throw new Error(
|
|
151
151
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
|
|
|
156
156
|
return target.dir;
|
|
157
157
|
}
|
|
158
158
|
function detectSkillsAgents(input) {
|
|
159
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
159
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkAEKJZJ4Rjs.detectAgentRuntime.call(void 0, )));
|
|
160
160
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
161
161
|
if (knownAgent) return [knownAgent];
|
|
162
162
|
const roots = [
|
|
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
|
|
|
171
171
|
return detected.length > 0 ? detected : ["*"];
|
|
172
172
|
}
|
|
173
173
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
174
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
174
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkZEZ3CZ3Xjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
175
175
|
}
|
|
176
176
|
function buildSkillsPlan(input) {
|
|
177
177
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
178
|
-
const legacyNames = [...
|
|
178
|
+
const legacyNames = [..._chunkSJOHQ2WWjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
179
179
|
(a, b) => a.localeCompare(b)
|
|
180
180
|
);
|
|
181
181
|
return {
|
|
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
|
|
|
189
189
|
args: [
|
|
190
190
|
"exec",
|
|
191
191
|
"--yes",
|
|
192
|
-
`--package=${
|
|
192
|
+
`--package=${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE}`,
|
|
193
193
|
"--",
|
|
194
194
|
"skills",
|
|
195
195
|
"remove",
|
|
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
|
|
|
205
205
|
args: [
|
|
206
206
|
"exec",
|
|
207
207
|
"--yes",
|
|
208
|
-
`--package=${
|
|
208
|
+
`--package=${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkSJOHQ2WWjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
213
213
|
"--agent",
|
|
214
214
|
...input.agents,
|
|
215
215
|
...scopeArgs,
|
|
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
|
|
|
246
246
|
}
|
|
247
247
|
function runProcess(command, args, cwd) {
|
|
248
248
|
return new Promise((resolve, reject) => {
|
|
249
|
-
const plan =
|
|
249
|
+
const plan = _chunkSJOHQ2WWjs.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -268,7 +268,7 @@ function runProcess(command, args, cwd) {
|
|
|
268
268
|
child.kill("SIGTERM");
|
|
269
269
|
reject(
|
|
270
270
|
new Error(
|
|
271
|
-
`${
|
|
271
|
+
`${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
272
272
|
)
|
|
273
273
|
);
|
|
274
274
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -279,7 +279,7 @@ function runProcess(command, args, cwd) {
|
|
|
279
279
|
child.once("close", (code) => {
|
|
280
280
|
clearTimeout(timeout);
|
|
281
281
|
if (code && stderr.trim()) {
|
|
282
|
-
process.stderr.write(`${
|
|
282
|
+
process.stderr.write(`${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
283
283
|
`);
|
|
284
284
|
}
|
|
285
285
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -293,7 +293,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
293
293
|
scope = normalizeScope(options.scope);
|
|
294
294
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
295
295
|
} catch (error) {
|
|
296
|
-
|
|
296
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
297
297
|
{
|
|
298
298
|
ok: false,
|
|
299
299
|
status: "failed",
|
|
@@ -305,22 +305,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
305
305
|
);
|
|
306
306
|
return 2;
|
|
307
307
|
}
|
|
308
|
-
const baseUrl =
|
|
308
|
+
const baseUrl = _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
309
309
|
const catalog = {
|
|
310
|
-
skillNames: [...
|
|
311
|
-
version:
|
|
310
|
+
skillNames: [..._chunkSJOHQ2WWjs.DEFAULT_SDK_SKILL_NAMES],
|
|
311
|
+
version: _chunkAEKJZJ4Rjs.SDK_VERSION
|
|
312
312
|
};
|
|
313
313
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
314
314
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
315
315
|
if (options.dryRun) {
|
|
316
|
-
|
|
316
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
317
317
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
318
318
|
{ json: options.json }
|
|
319
319
|
);
|
|
320
320
|
return 0;
|
|
321
321
|
}
|
|
322
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
323
|
-
|
|
322
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkSJOHQ2WWjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
323
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
324
324
|
{
|
|
325
325
|
ok: true,
|
|
326
326
|
status: "current",
|
|
@@ -352,10 +352,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
352
352
|
}
|
|
353
353
|
if (scope === "local" && root) {
|
|
354
354
|
const managedNames = [
|
|
355
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
355
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkSJOHQ2WWjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
356
356
|
];
|
|
357
357
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
358
|
-
|
|
358
|
+
_chunkZEZ3CZ3Xjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
359
359
|
".deepline/",
|
|
360
360
|
...agentRoots.flatMap(
|
|
361
361
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -364,7 +364,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
364
364
|
}
|
|
365
365
|
let lease;
|
|
366
366
|
try {
|
|
367
|
-
lease = scope === "global" ? await
|
|
367
|
+
lease = scope === "global" ? await _chunkSJOHQ2WWjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
368
368
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
369
369
|
onWait: () => process.stderr.write(
|
|
370
370
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -372,8 +372,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
372
372
|
}) : { release: () => {
|
|
373
373
|
} };
|
|
374
374
|
} catch (error) {
|
|
375
|
-
if (!(error instanceof
|
|
376
|
-
|
|
375
|
+
if (!(error instanceof _chunkSJOHQ2WWjs.SkillsStateUnavailableError)) throw error;
|
|
376
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
377
377
|
{
|
|
378
378
|
ok: false,
|
|
379
379
|
status: "failed",
|
|
@@ -389,7 +389,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
389
389
|
return 5;
|
|
390
390
|
}
|
|
391
391
|
if (!lease) {
|
|
392
|
-
|
|
392
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
ok: false,
|
|
395
395
|
status: "failed",
|
|
@@ -398,7 +398,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
398
398
|
scope,
|
|
399
399
|
agents,
|
|
400
400
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
401
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
401
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkSJOHQ2WWjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
402
402
|
},
|
|
403
403
|
{ json: options.json }
|
|
404
404
|
);
|
|
@@ -447,7 +447,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
} catch (error) {
|
|
450
|
-
|
|
450
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
451
451
|
{
|
|
452
452
|
ok: false,
|
|
453
453
|
status: "failed",
|
|
@@ -463,7 +463,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
463
463
|
return 5;
|
|
464
464
|
}
|
|
465
465
|
if (missing.length > 0) {
|
|
466
|
-
|
|
466
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
467
467
|
{
|
|
468
468
|
ok: false,
|
|
469
469
|
status: "failed",
|
|
@@ -503,7 +503,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
503
503
|
{
|
|
504
504
|
schemaVersion: 1,
|
|
505
505
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
506
|
-
cliVersion:
|
|
506
|
+
cliVersion: _chunkAEKJZJ4Rjs.SDK_VERSION,
|
|
507
507
|
scope,
|
|
508
508
|
agents,
|
|
509
509
|
skillsVersion: plan.version,
|
|
@@ -516,9 +516,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
516
516
|
"utf8"
|
|
517
517
|
);
|
|
518
518
|
if (scope === "global") {
|
|
519
|
-
|
|
519
|
+
_chunkSJOHQ2WWjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
520
520
|
}
|
|
521
|
-
|
|
521
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
522
522
|
{
|
|
523
523
|
ok: true,
|
|
524
524
|
status: "complete",
|
|
@@ -549,7 +549,7 @@ function registerSkillsCommand(program) {
|
|
|
549
549
|
"after",
|
|
550
550
|
`
|
|
551
551
|
Notes:
|
|
552
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
552
|
+
This command reinstalls current Deepline-managed skills using ${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE},
|
|
553
553
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
554
554
|
persistent project.
|
|
555
555
|
|
|
@@ -561,13 +561,13 @@ Examples:
|
|
|
561
561
|
).action(async (options) => {
|
|
562
562
|
process.exitCode = await runSkillsCommand(options);
|
|
563
563
|
});
|
|
564
|
-
program.command(
|
|
564
|
+
program.command(_chunkSJOHQ2WWjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
565
565
|
"--claim <token>",
|
|
566
566
|
"Owner token of the leases this child was started for."
|
|
567
567
|
).action(async (options) => {
|
|
568
568
|
const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
|
|
569
569
|
if (!claim) {
|
|
570
|
-
|
|
570
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
571
571
|
{
|
|
572
572
|
ok: false,
|
|
573
573
|
status: "failed",
|
|
@@ -580,7 +580,7 @@ Examples:
|
|
|
580
580
|
process.exitCode = 2;
|
|
581
581
|
return;
|
|
582
582
|
}
|
|
583
|
-
await
|
|
583
|
+
await _chunkSJOHQ2WWjs.syncSdkSkillsIfNeeded.call(void 0, _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
584
584
|
mode: "inline",
|
|
585
585
|
notices: "defer",
|
|
586
586
|
claim
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IIO7UOVW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PIPEPCRL.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkAEKJZJ4Rjs = require('./chunk-AEKJZJ4R.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkAEKJZJ4Rjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkAEKJZJ4Rjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkB2TXKEEDjs = require('./chunk-B2TXKEED.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.js');
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
var _commander = require('commander');
|
|
@@ -20,7 +20,7 @@ var _fs = require('fs');
|
|
|
20
20
|
var _path = require('path');
|
|
21
21
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
22
22
|
function lastSearchPath() {
|
|
23
|
-
return _path.join.call(void 0,
|
|
23
|
+
return _path.join.call(void 0, _chunkZEZ3CZ3Xjs.sdkCliStateDirPath.call(void 0, _chunkZEZ3CZ3Xjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
24
24
|
}
|
|
25
25
|
function rememberSearchRef(searchRef) {
|
|
26
26
|
try {
|
|
@@ -118,7 +118,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
118
118
|
console.error("--summary-width must be an integer of at least 2.");
|
|
119
119
|
return 1;
|
|
120
120
|
}
|
|
121
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
121
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().search({
|
|
122
122
|
query,
|
|
123
123
|
types,
|
|
124
124
|
exclude,
|
|
@@ -132,8 +132,8 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
132
132
|
});
|
|
133
133
|
if (searchRef) rememberSearchRef(searchRef);
|
|
134
134
|
pointAtDescribe(result);
|
|
135
|
-
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
136
|
-
|
|
135
|
+
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-NPZICK5C.js")));
|
|
136
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, result, {
|
|
137
137
|
json: options.json === true,
|
|
138
138
|
text: renderSearchResults(result, summaryWidth)
|
|
139
139
|
});
|