deepline 0.3.555 → 0.3.556
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 +19 -0
- package/dist/cli/auth-HA7TI6SA.js +44 -0
- package/dist/cli/{auth-UFANBJW3.mjs → auth-MT7DWCZO.mjs} +5 -5
- package/dist/cli/{billing-BGIT2VYM.js → billing-3HHUTNME.js} +99 -99
- package/dist/cli/{billing-S7MCXBND.mjs → billing-4NOM52PO.mjs} +8 -8
- package/dist/cli/{chunk-LU25WURE.js → chunk-2NZQ432X.js} +13 -13
- package/dist/cli/{chunk-UUU5WUKM.mjs → chunk-2ZS5PZB6.mjs} +2 -2
- package/dist/cli/{chunk-IHWXC7UU.js → chunk-3R6RBAQW.js} +26 -26
- package/dist/cli/{chunk-W7SPSF63.js → chunk-4HSPHSUB.js} +5 -5
- package/dist/cli/{chunk-SE56PJ46.js → chunk-4U5HIMZY.js} +2 -2
- package/dist/cli/{chunk-KSUI4YX5.js → chunk-7ERE37SK.js} +6 -6
- package/dist/cli/{chunk-6M2SDRWN.js → chunk-7MD36QLK.js} +4 -4
- package/dist/cli/{chunk-UYYOO7VT.mjs → chunk-ASMHON7N.mjs} +5 -5
- package/dist/cli/{chunk-Z3O5GCQM.mjs → chunk-ASOLVHDL.mjs} +2 -2
- package/dist/cli/{chunk-FO3U5YTL.mjs → chunk-B4RWCBU5.mjs} +3 -3
- package/dist/cli/{chunk-I45RNMNZ.mjs → chunk-C2XLKCRH.mjs} +5 -5
- package/dist/cli/{chunk-AUY53RLU.mjs → chunk-C4GWTN3J.mjs} +5 -5
- package/dist/cli/{chunk-S2CNGS7O.js → chunk-CJF7AFBD.js} +2 -2
- package/dist/cli/{chunk-72VEVAIX.js → chunk-CZ2RJTAQ.js} +48 -48
- package/dist/cli/{chunk-T4BFNFBL.mjs → chunk-DAQQL743.mjs} +2 -2
- package/dist/cli/{chunk-T3QSHU6E.js → chunk-DAS66RGZ.js} +1 -1
- package/dist/cli/{chunk-MOJ65E7L.js → chunk-F5CE3JZQ.js} +9 -9
- package/dist/cli/{chunk-DYWOBLYL.js → chunk-FFXLMJ5O.js} +8 -8
- package/dist/cli/{chunk-732RWNDP.mjs → chunk-FQYEHUVR.mjs} +3 -3
- package/dist/cli/{chunk-MIXPZ4G7.js → chunk-G6BX5VJN.js} +100 -100
- package/dist/cli/{chunk-6F5GNZQH.js → chunk-GY4S6A72.js} +5 -5
- package/dist/cli/{chunk-SF2LIUVO.js → chunk-GZFYLAXJ.js} +15 -15
- package/dist/cli/{chunk-6R5Y7U52.mjs → chunk-HJO3MZ4M.mjs} +2 -2
- package/dist/cli/{chunk-RL7ZI4ZG.mjs → chunk-IFHMGEDN.mjs} +11 -11
- package/dist/cli/{chunk-ZU6A4H6P.mjs → chunk-JRYF5W3A.mjs} +2 -2
- package/dist/cli/{chunk-Z2T7XTND.js → chunk-K4IPTGU5.js} +10 -10
- package/dist/cli/{chunk-DFL3UBW2.mjs → chunk-KA77KT46.mjs} +1 -1
- package/dist/cli/{chunk-QMDG7FKA.js → chunk-KN3NETDA.js} +7 -7
- package/dist/cli/{chunk-N55EUVKV.mjs → chunk-KNOS6H4E.mjs} +2 -2
- package/dist/cli/{chunk-TFPKGTMD.js → chunk-KONNXKKX.js} +2 -2
- package/dist/cli/{chunk-U6KGXTYS.js → chunk-KUDSTDSL.js} +23 -23
- package/dist/cli/{chunk-7H753VC5.mjs → chunk-L57JAXHI.mjs} +1 -1
- package/dist/cli/{chunk-M5YBTQQX.js → chunk-LU3OLGF3.js} +53 -53
- package/dist/cli/{chunk-XIHZUWIG.mjs → chunk-LW2FKVCQ.mjs} +1 -1
- package/dist/cli/{chunk-PGPPZMXD.mjs → chunk-MUIJGT2B.mjs} +1 -1
- package/dist/cli/{chunk-QZ2C5ARH.js → chunk-N6LM2Q6V.js} +5 -5
- package/dist/cli/{chunk-AYCC5JAS.js → chunk-NGB2VSGB.js} +3 -3
- package/dist/cli/{chunk-HQK2NPXE.mjs → chunk-O7QRNMSW.mjs} +1 -1
- package/dist/cli/{chunk-M2CW4UZV.mjs → chunk-P6ZIR4QD.mjs} +4 -4
- package/dist/cli/{chunk-RWT6N2SU.js → chunk-PWQ3IUD4.js} +20 -20
- package/dist/cli/{chunk-NFWZAQAU.mjs → chunk-QGQPVPJN.mjs} +1 -1
- package/dist/cli/{chunk-EG44APVW.js → chunk-QVNX6AC3.js} +12 -12
- package/dist/cli/{chunk-YXH5Q7OY.js → chunk-SWVGAIJD.js} +20 -20
- package/dist/cli/{chunk-RO7SIWBG.mjs → chunk-UERLY7PX.mjs} +2 -2
- package/dist/cli/{chunk-WTQGJBHD.js → chunk-UO7NPJEK.js} +3 -3
- package/dist/cli/{chunk-57J3OOCR.mjs → chunk-UYPXQFJ4.mjs} +1 -1
- package/dist/cli/{chunk-W6K6WULS.mjs → chunk-VCYPHVUE.mjs} +2 -2
- package/dist/cli/{chunk-5J6TKML2.mjs → chunk-VQZQCPCA.mjs} +4 -4
- package/dist/cli/{chunk-ASDVROA5.mjs → chunk-W5JM2QCI.mjs} +5 -5
- package/dist/cli/{chunk-7LM55DIN.js → chunk-YGW2CSB7.js} +41 -41
- package/dist/cli/{chunk-S65SZ74B.mjs → chunk-YO2FDGAN.mjs} +1 -1
- package/dist/cli/{chunk-66BQY77L.mjs → chunk-ZGOTBBY3.mjs} +1 -1
- package/dist/cli/{concurrent-runs-help-I7ZLXZDD.mjs → concurrent-runs-help-AFJDK2SY.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-ZHOCLINF.js +22 -0
- package/dist/cli/{csv-K7FNSHIM.mjs → csv-CATF6MZU.mjs} +4 -4
- package/dist/cli/{csv-Q2Y3KKK2.js → csv-NTNQLQXG.js} +13 -13
- package/dist/cli/{db-E4XSIQDS.js → db-IKFKNLW5.js} +27 -27
- package/dist/cli/{db-74RBHX6G.mjs → db-U3FK4FFM.mjs} +6 -6
- package/dist/cli/{describe-UYB6WDHS.mjs → describe-F7OQQ7IO.mjs} +18 -18
- package/dist/cli/describe-ZHNZ4H6S.js +50 -0
- package/dist/cli/{executions-LX6HJM72.js → executions-3TA5SATU.js} +8 -8
- package/dist/cli/{executions-6LKXZRL4.mjs → executions-6KUA7RPH.mjs} +6 -6
- package/dist/cli/{feedback-7D2JRVOM.js → feedback-GX7RVC4O.js} +14 -14
- package/dist/cli/{feedback-B2V64TYZ.mjs → feedback-U5I6UTJG.mjs} +6 -6
- package/dist/cli/git-6DK7N4V7.js +26 -0
- package/dist/cli/{git-7KNCB2HN.mjs → git-DYNKPPNT.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-J3RHOSAR.mjs → integrations-7FATBEB5.mjs} +7 -7
- package/dist/cli/{integrations-34UK7XET.js → integrations-PQX2FRPT.js} +15 -15
- package/dist/cli/{legacy-noops-HXJ6UMK7.js → legacy-noops-JNXQWYUR.js} +9 -9
- package/dist/cli/{legacy-noops-WQUDES3K.mjs → legacy-noops-ODATBQUL.mjs} +6 -6
- package/dist/cli/{mcp-EZENPRPY.js → mcp-RXBXC4HW.js} +24 -24
- package/dist/cli/{mcp-JZPAPQYI.mjs → mcp-UDNG33WQ.mjs} +4 -4
- package/dist/cli/{monitors-GF2WEFF6.mjs → monitors-L56QYFRW.mjs} +7 -7
- package/dist/cli/{monitors-GS2P4OUK.js → monitors-NDAGIRO4.js} +100 -100
- package/dist/cli/{org-WJ2RO7ZE.mjs → org-EA5DL5I7.mjs} +6 -6
- package/dist/cli/{org-V56HBHPB.js → org-Q47O5ZTI.js} +121 -121
- package/dist/cli/{outcomes-D6KXYKGW.js → outcomes-27ENBTWE.js} +14 -14
- package/dist/cli/{outcomes-WP5WV54Y.mjs → outcomes-773GPYXN.mjs} +6 -6
- package/dist/cli/{play-PXUVRS4K.js → play-BOZIT25U.js} +324 -324
- package/dist/cli/{play-FHHCHNQH.mjs → play-O6RGVBT7.mjs} +19 -19
- package/dist/cli/{providers-HJ77LN3M.mjs → providers-OOKYSLMJ.mjs} +6 -6
- package/dist/cli/{providers-TOXIJOY2.js → providers-S2E5IGFO.js} +9 -9
- package/dist/cli/{quickstart-UEQHXEWP.mjs → quickstart-7GVZ7YCQ.mjs} +4 -4
- package/dist/cli/{quickstart-MDXLT5SR.js → quickstart-YXKRRK43.js} +6 -6
- package/dist/cli/{run-ZZ5ABZL7.mjs → run-3QGOVUHF.mjs} +23 -23
- package/dist/cli/{run-2MXAEH6U.js → run-7DXBARRO.js} +44 -44
- package/dist/cli/search-4DZYX3FR.js +32 -0
- package/dist/cli/{search-AF4XVWC2.mjs → search-5UIB4QSG.mjs} +7 -7
- package/dist/cli/{search-output-LEKJVZSH.js → search-output-C7ZPRC2B.js} +6 -6
- package/dist/cli/{search-output-3GFQJJGJ.mjs → search-output-MSUN3KPW.mjs} +4 -4
- package/dist/cli/{secrets-MR2FNFGD.js → secrets-FU3DFFB6.js} +15 -15
- package/dist/cli/{secrets-TLH3FKCT.mjs → secrets-JYJS2VHO.mjs} +6 -6
- package/dist/cli/sessions-E2IX3GU7.js +23 -0
- package/dist/cli/{sessions-LUL5P66K.mjs → sessions-JBD64DOX.mjs} +6 -6
- package/dist/cli/{settings-AWSRUTZR.mjs → settings-4KFYWSJI.mjs} +12 -12
- package/dist/cli/{settings-Z2HYUOL7.js → settings-GDJGQXKT.js} +85 -85
- package/dist/cli/{setup-PFPAJOUI.mjs → setup-46VMBV3K.mjs} +9 -9
- package/dist/cli/{setup-FIMXN4IC.js → setup-OKLUCTU7.js} +49 -49
- package/dist/cli/skills-GJS4Q7NU.js +37 -0
- package/dist/cli/{skills-5DKSATY5.mjs → skills-XRJNXEEA.mjs} +7 -7
- package/dist/cli/tools-LICQXFYA.js +57 -0
- package/dist/cli/{tools-BDNASCSH.mjs → tools-WEBVZN3X.mjs} +17 -17
- package/dist/cli/update-3XH3NVVY.js +37 -0
- package/dist/cli/{update-CAFUZ5XT.mjs → update-RKTYJ6BO.mjs} +9 -9
- package/dist/cli/{views-7PDXZUQA.mjs → views-VTOQ4U75.mjs} +6 -6
- package/dist/cli/{views-XJOBO6US.js → views-XLAPDQXQ.js} +21 -21
- package/dist/cli/{workflow-KCPLU5R7.js → workflow-HH4XVYPN.js} +17 -17
- package/dist/cli/{workflow-2BMUGN7M.mjs → workflow-RCO4R46B.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -112
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-MRVTS74X.js +0 -44
- package/dist/cli/concurrent-runs-help-CHBVPWYT.js +0 -22
- package/dist/cli/describe-TUW35JSY.js +0 -50
- package/dist/cli/git-TH4M62KL.js +0 -26
- package/dist/cli/search-6DT2TGOU.js +0 -32
- package/dist/cli/sessions-EJYLWV2M.js +0 -23
- package/dist/cli/skills-232RNG5G.js +0 -37
- package/dist/cli/tools-P7FBJVJA.js +0 -57
- package/dist/cli/update-OC4UB2XE.js +0 -37
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkLU3OLGF3js = require('./chunk-LU3OLGF3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkNGB2VSGBjs = require('./chunk-NGB2VSGB.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
|
|
|
24
24
|
return plans ? `${here} Plan limits: ${plans}.` : here;
|
|
25
25
|
}
|
|
26
26
|
async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
|
|
27
|
-
const baseUrl =
|
|
28
|
-
const apiKey =
|
|
27
|
+
const baseUrl = _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
28
|
+
const apiKey = _chunkNGB2VSGBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
29
29
|
if (!apiKey) return "";
|
|
30
30
|
try {
|
|
31
|
-
const { status, data } = await
|
|
31
|
+
const { status, data } = await _chunkLU3OLGF3js.httpJson.call(void 0,
|
|
32
32
|
"GET",
|
|
33
33
|
`${baseUrl}/api/v2/billing/entitlements`,
|
|
34
34
|
apiKey,
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkG6BX5VJNjs = require('./chunk-G6BX5VJN.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkKN3NETDAjs = require('./chunk-KN3NETDA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,16 +14,16 @@ var _chunkEN5NHCCQjs = require('./chunk-EN5NHCCQ.js');
|
|
|
14
14
|
var _chunkLY5MMXFFjs = require('./chunk-LY5MMXFF.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkN6LM2Q6Vjs = require('./chunk-N6LM2Q6V.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkNGB2VSGBjs = require('./chunk-NGB2VSGB.js');
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
var _fs = require('fs');
|
|
@@ -32,14 +32,14 @@ var _path = require('path');
|
|
|
32
32
|
// src/cli/doc-read-reporting.ts
|
|
33
33
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
34
34
|
async function reportDocRead(docId) {
|
|
35
|
-
if (
|
|
35
|
+
if (_chunkPWQ3IUD4js.isFailureReportingDisabled.call(void 0, )) return;
|
|
36
36
|
try {
|
|
37
|
-
const baseUrl =
|
|
38
|
-
const apiKey =
|
|
37
|
+
const baseUrl = _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
38
|
+
const apiKey = _chunkNGB2VSGBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
39
39
|
if (!apiKey) return;
|
|
40
40
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
41
41
|
method: "POST",
|
|
42
|
-
headers:
|
|
42
|
+
headers: _chunkPWQ3IUD4js.failureReportHeaders.call(void 0, apiKey),
|
|
43
43
|
body: JSON.stringify({ doc_id: docId }),
|
|
44
44
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
45
45
|
});
|
|
@@ -52,16 +52,16 @@ function nothingNamed(name) {
|
|
|
52
52
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
53
53
|
}
|
|
54
54
|
function findNamed2(name, options) {
|
|
55
|
-
return _chunkEN5NHCCQjs.findNamed.call(void 0, name, options, _chunkEN5NHCCQjs.describeLookupsFor.call(void 0, new (0,
|
|
55
|
+
return _chunkEN5NHCCQjs.findNamed.call(void 0, name, options, _chunkEN5NHCCQjs.describeLookupsFor.call(void 0, new (0, _chunkN6LM2Q6Vjs.DeeplineClient)()));
|
|
56
56
|
}
|
|
57
57
|
async function describeAnything(name, options, onMissing) {
|
|
58
|
-
const client = new (0,
|
|
58
|
+
const client = new (0, _chunkN6LM2Q6Vjs.DeeplineClient)();
|
|
59
59
|
const lookups = _chunkEN5NHCCQjs.describeLookupsFor.call(void 0, client);
|
|
60
60
|
const outcome = await _chunkEN5NHCCQjs.describeName.call(void 0, name, options, {
|
|
61
61
|
...lookups,
|
|
62
62
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
63
63
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
64
|
-
seedStarterScript:
|
|
64
|
+
seedStarterScript: _chunkG6BX5VJNjs.seedToolListScript
|
|
65
65
|
});
|
|
66
66
|
if (outcome.status === "missing") {
|
|
67
67
|
if (onMissing) return onMissing();
|
|
@@ -90,18 +90,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
90
90
|
` : text;
|
|
91
91
|
_fs.writeFileSync.call(void 0, path, content);
|
|
92
92
|
const bytes = Buffer.byteLength(content);
|
|
93
|
-
|
|
93
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
94
94
|
{ path, bytes },
|
|
95
95
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
96
96
|
` }
|
|
97
97
|
);
|
|
98
98
|
return 0;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
101
101
|
return 0;
|
|
102
102
|
}
|
|
103
103
|
function registerDescribeCommand(program) {
|
|
104
|
-
|
|
104
|
+
_chunkKN3NETDAjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
105
105
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
106
106
|
).addHelpText(
|
|
107
107
|
"after",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2ZS5PZB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KNOS6H4E.mjs";
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
import { Option } from "commander";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YO2FDGAN.mjs";
|
|
6
6
|
import {
|
|
7
7
|
registerIntegrationBalanceCommand,
|
|
8
8
|
registerIntegrationConnectCommand,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
registerLegacyHubSpotMembersCommand,
|
|
12
12
|
registerLegacyWorkspaceConnectionCommand,
|
|
13
13
|
registerWorkspaceConnectionListCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HJO3MZ4M.mjs";
|
|
15
15
|
import {
|
|
16
16
|
recentSearchRef,
|
|
17
17
|
registerDeprecatedSearchCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VQZQCPCA.mjs";
|
|
19
19
|
import {
|
|
20
20
|
Capability,
|
|
21
21
|
arrayField,
|
|
@@ -57,29 +57,29 @@ import {
|
|
|
57
57
|
} from "./chunk-FIVKWNMT.mjs";
|
|
58
58
|
import {
|
|
59
59
|
DeeplineClient
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-2ZS5PZB6.mjs";
|
|
61
61
|
import {
|
|
62
62
|
validateExecutionIdempotencyKey
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-UYPXQFJ4.mjs";
|
|
64
64
|
import {
|
|
65
65
|
beginToolExecuteCommand,
|
|
66
66
|
getToolExecuteInvocationId,
|
|
67
67
|
maybeAutoUpdateAndRelaunch,
|
|
68
68
|
registerCompatibilityCatalog,
|
|
69
69
|
runToolExecuteStage
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-C2XLKCRH.mjs";
|
|
71
71
|
import {
|
|
72
72
|
isCliTraceEnabled,
|
|
73
73
|
recordCliTrace,
|
|
74
74
|
resolveCliMaintenancePolicy
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-QGQPVPJN.mjs";
|
|
76
76
|
import {
|
|
77
77
|
checkSdkCompatibility,
|
|
78
78
|
enforceSdkCompatibilityResponse,
|
|
79
79
|
flushDeferredSkillsSyncNotices,
|
|
80
80
|
requireSdkCompatibility,
|
|
81
81
|
syncSdkSkillsIfNeeded
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-ASMHON7N.mjs";
|
|
83
83
|
import {
|
|
84
84
|
errorToJsonPayload,
|
|
85
85
|
printCommandEnvelope,
|
|
@@ -88,12 +88,12 @@ import {
|
|
|
88
88
|
printJsonError,
|
|
89
89
|
renderCommandEnvelopeText,
|
|
90
90
|
shouldEmitJson
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-KNOS6H4E.mjs";
|
|
92
92
|
import {
|
|
93
93
|
readSdkSkillsLocalVersion,
|
|
94
94
|
resolveConfig,
|
|
95
95
|
sdkCliStateDirPath
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-ZGOTBBY3.mjs";
|
|
97
97
|
import {
|
|
98
98
|
DeeplineError
|
|
99
99
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -1052,7 +1052,7 @@ Examples:
|
|
|
1052
1052
|
process.exitCode = await narrowView();
|
|
1053
1053
|
return;
|
|
1054
1054
|
}
|
|
1055
|
-
const { describeAnything } = await import("./describe-
|
|
1055
|
+
const { describeAnything } = await import("./describe-F7OQQ7IO.mjs");
|
|
1056
1056
|
process.exitCode = await describeAnything(
|
|
1057
1057
|
toolId,
|
|
1058
1058
|
{
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KNOS6H4E.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZGOTBBY3.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkN6LM2Q6Vjs = require('./chunk-N6LM2Q6V.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkNGB2VSGBjs = require('./chunk-NGB2VSGB.js');
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
var _commander = require('commander');
|
|
@@ -22,7 +22,7 @@ var _fs = require('fs');
|
|
|
22
22
|
var _path = require('path');
|
|
23
23
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
24
24
|
function lastSearchPath() {
|
|
25
|
-
return _path.join.call(void 0,
|
|
25
|
+
return _path.join.call(void 0, _chunkNGB2VSGBjs.sdkCliStateDirPath.call(void 0, _chunkNGB2VSGBjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
26
26
|
}
|
|
27
27
|
function rememberSearchRef(searchRef) {
|
|
28
28
|
writeSearchRefs({ searchRef });
|
|
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
132
132
|
console.error("--summary-width must be an integer of at least 2.");
|
|
133
133
|
return 1;
|
|
134
134
|
}
|
|
135
|
-
const client = new (0,
|
|
135
|
+
const client = new (0, _chunkN6LM2Q6Vjs.DeeplineClient)();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-C7ZPRC2B.js")));
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
157
157
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
158
158
|
if (!multiple) {
|
|
159
159
|
if (searchRef) rememberSearchRef(searchRef);
|
|
160
|
-
|
|
160
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0, result, { json, text });
|
|
161
161
|
return 0;
|
|
162
162
|
}
|
|
163
163
|
searches.push({ ...result, query });
|
|
@@ -171,8 +171,8 @@ ${text}`);
|
|
|
171
171
|
}
|
|
172
172
|
} catch (error) {
|
|
173
173
|
if (!multiple) throw error;
|
|
174
|
-
const payload =
|
|
175
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
174
|
+
const payload = _chunkPWQ3IUD4js.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkPWQ3IUD4js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
176
176
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
177
177
|
if (!json) {
|
|
178
178
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -184,7 +184,7 @@ Search failed.
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
rememberSearchRefsByTool(refs);
|
|
187
|
-
|
|
187
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -9,7 +9,7 @@ var _chunkLY5MMXFFjs = require('./chunk-LY5MMXFF.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
|
|
|
250
250
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
251
251
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
252
252
|
if (typeof logicalValue === "object") {
|
|
253
|
-
return
|
|
253
|
+
return _chunkPWQ3IUD4js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
254
254
|
}
|
|
255
255
|
return logicalValue;
|
|
256
256
|
}
|
|
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
|
|
|
642
642
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
643
|
columns
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return _chunkPWQ3IUD4js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
648
|
let temp;
|
|
@@ -770,7 +770,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
770
770
|
};
|
|
771
771
|
if (options.receiptOut && !skipReceiptFile) {
|
|
772
772
|
persist(options.receiptOut, jsonText(receipt));
|
|
773
|
-
|
|
773
|
+
_chunkPWQ3IUD4js.markJsonOutputHandled.call(void 0, );
|
|
774
774
|
} else {
|
|
775
775
|
printReceipt(receipt, options, {
|
|
776
776
|
data: hasData ? result.data : void 0,
|
|
@@ -939,7 +939,7 @@ function receiptText(receipt, options, extra) {
|
|
|
939
939
|
problems.push(
|
|
940
940
|
`Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
|
|
941
941
|
);
|
|
942
|
-
const diagnostic =
|
|
942
|
+
const diagnostic = _chunkPWQ3IUD4js.formatCliFailureDiagnostic.call(void 0, error);
|
|
943
943
|
if (diagnostic) problems.push(...diagnostic.split("\n"));
|
|
944
944
|
if (record(error) && typeof error.recoveryFile === "string") {
|
|
945
945
|
problems.push(
|
|
@@ -1032,8 +1032,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1032
1032
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1033
1033
|
` : receiptText(receipt, options, extra);
|
|
1034
1034
|
if (options.receiptOut !== void 0) {
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
_chunkPWQ3IUD4js.writeRawStderr.call(void 0, text);
|
|
1036
|
+
_chunkPWQ3IUD4js.markJsonOutputHandled.call(void 0, );
|
|
1037
1037
|
} else {
|
|
1038
1038
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1039
1039
|
}
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
resolveApiKeyForBaseUrl,
|
|
5
5
|
resolveCliCommandContext,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZGOTBBY3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
SDK_VERSION,
|
|
10
10
|
agentSessionIdFromEnvironment,
|
|
11
11
|
deploymentProtectionHeaders,
|
|
12
12
|
detectAgentRuntime,
|
|
13
13
|
readToolFailureHint
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LW2FKVCQ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError,
|
|
17
17
|
normalizeToolExecutionFailure,
|
|
@@ -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 _chunkCZ2RJTAQjs = require('./chunk-CZ2RJTAQ.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 = _chunkCZ2RJTAQjs.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
|
windowsHide: true,
|
|
19
19
|
encoding: "utf8",
|
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSWVGAIJDjs = require('./chunk-SWVGAIJD.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkCZ2RJTAQjs = require('./chunk-CZ2RJTAQ.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkNGB2VSGBjs = require('./chunk-NGB2VSGB.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk7MD36QLKjs = require('./chunk-7MD36QLK.js');
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -46,7 +46,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
46
46
|
async function reportAutoUpdateEvent(input) {
|
|
47
47
|
let apiKey = "";
|
|
48
48
|
try {
|
|
49
|
-
apiKey =
|
|
49
|
+
apiKey = _chunkNGB2VSGBjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
50
50
|
} catch (e2) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
@@ -62,15 +62,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
62
62
|
headers: {
|
|
63
63
|
Authorization: `Bearer ${apiKey}`,
|
|
64
64
|
"Content-Type": "application/json",
|
|
65
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
65
|
+
"User-Agent": `deepline-ts-sdk/${_chunk7MD36QLKjs.SDK_VERSION}`,
|
|
66
66
|
"X-Deepline-Client-Family": "sdk",
|
|
67
67
|
"X-Deepline-CLI-Family": "sdk",
|
|
68
|
-
"X-Deepline-CLI-Version":
|
|
69
|
-
"X-Deepline-SDK-Version":
|
|
68
|
+
"X-Deepline-CLI-Version": _chunk7MD36QLKjs.SDK_VERSION,
|
|
69
|
+
"X-Deepline-SDK-Version": _chunk7MD36QLKjs.SDK_VERSION
|
|
70
70
|
},
|
|
71
71
|
body: JSON.stringify({
|
|
72
72
|
event: input.event,
|
|
73
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
73
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk7MD36QLKjs.SDK_VERSION,
|
|
74
74
|
target_version: input.response.latest,
|
|
75
75
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
76
76
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -89,19 +89,19 @@ function envTruthy(name) {
|
|
|
89
89
|
return value === "1" || value === "true" || value === "yes";
|
|
90
90
|
}
|
|
91
91
|
function shouldSkipSelfUpdate(policy) {
|
|
92
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
92
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkSWVGAIJDjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkCZ2RJTAQjs.isCiEnvironment.call(void 0, );
|
|
93
93
|
}
|
|
94
94
|
function isDowngradeAutoUpdateResponse(response) {
|
|
95
95
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
96
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
96
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk7MD36QLKjs.SDK_VERSION;
|
|
97
97
|
if (!target) return false;
|
|
98
|
-
return
|
|
98
|
+
return _chunkSWVGAIJDjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
99
99
|
}
|
|
100
100
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
101
101
|
return new Promise((resolve) => {
|
|
102
102
|
const argv = _nullishCoalesce(runtime.argv, () => ( process.argv));
|
|
103
103
|
const platform = _nullishCoalesce(runtime.platform, () => ( process.platform));
|
|
104
|
-
const launch = plan.kind === "python-sidecar" ?
|
|
104
|
+
const launch = plan.kind === "python-sidecar" ? _chunkCZ2RJTAQjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
|
|
105
105
|
command: _nullishCoalesce(runtime.execPath, () => ( process.execPath)),
|
|
106
106
|
args: argv.slice(1),
|
|
107
107
|
shell: false
|
|
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
148
148
|
}
|
|
149
149
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
150
150
|
const target = response.latest;
|
|
151
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
151
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk7MD36QLKjs.SDK_VERSION;
|
|
152
152
|
process.stderr.write(
|
|
153
153
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
154
154
|
`
|
|
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
156
156
|
return false;
|
|
157
157
|
}
|
|
158
158
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
159
|
-
const plan =
|
|
159
|
+
const plan = _chunkSWVGAIJDjs.resolveUpdatePlan.call(void 0, {
|
|
160
160
|
packageSpec,
|
|
161
161
|
requireVerifiedNpmOwnership: true,
|
|
162
162
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
163
163
|
});
|
|
164
|
-
if (!
|
|
164
|
+
if (!_chunkSWVGAIJDjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
165
165
|
return false;
|
|
166
166
|
}
|
|
167
167
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
168
168
|
deferredAutoUpdate = async () => {
|
|
169
169
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
170
170
|
};
|
|
171
|
-
if (
|
|
171
|
+
if (_chunkPWQ3IUD4js.isJsonOutputMode.call(void 0, )) {
|
|
172
172
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
173
|
-
|
|
173
|
+
_chunkPWQ3IUD4js.addJsonNotice.call(void 0, {
|
|
174
174
|
code: "sdk_update_queued",
|
|
175
175
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
176
176
|
});
|
|
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
183
183
|
return true;
|
|
184
184
|
}
|
|
185
185
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
186
|
-
if (!
|
|
186
|
+
if (!_chunkSWVGAIJDjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
187
187
|
const autoUpdate = response.auto_update;
|
|
188
188
|
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";
|
|
189
189
|
process.stderr.write(
|
|
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
196
196
|
event: "started",
|
|
197
197
|
installKind: plan.kind
|
|
198
198
|
});
|
|
199
|
-
const updateResult = await
|
|
199
|
+
const updateResult = await _chunkSWVGAIJDjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
200
200
|
if (updateResult.status === "skipped_previous_failure") {
|
|
201
201
|
void reportAutoUpdateEvent({
|
|
202
202
|
baseUrl,
|
|
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
234
234
|
exitCode: 0
|
|
235
235
|
});
|
|
236
236
|
try {
|
|
237
|
-
await
|
|
237
|
+
await _chunkCZ2RJTAQjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
238
238
|
mode: "detached",
|
|
239
239
|
update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
|
|
240
240
|
afterCliUpdate: {
|
|
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
|
|
|
261
261
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
262
262
|
var activeToolExecuteCommand = null;
|
|
263
263
|
function progressLine(line) {
|
|
264
|
-
if (!
|
|
264
|
+
if (!_chunkPWQ3IUD4js.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
265
265
|
}
|
|
266
266
|
function beginToolExecuteCommand() {
|
|
267
267
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|