deepline 0.3.496 → 0.3.498
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/monitors/billing/policy-builders.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/state.ts +8 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +23 -5
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +4 -3
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-control.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-admission-outcome.ts +8 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +470 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-profile.ts +318 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +7 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +4 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +19 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +138 -0
- package/dist/bundling-sources/shared_libs/plays/docflow.ts +9 -2
- package/dist/cli/auth-NYYFDCMT.js +43 -0
- package/dist/cli/{auth-EU4EFRDJ.mjs → auth-TNYYAPIX.mjs} +5 -5
- package/dist/cli/{billing-GMVH3RBX.mjs → billing-G6QBOZAE.mjs} +6 -6
- package/dist/cli/{billing-4JJLTVK4.js → billing-MP43H3ZK.js} +79 -79
- package/dist/cli/{chunk-IXPZROZX.mjs → chunk-2QS3MCJ2.mjs} +2 -2
- package/dist/cli/{chunk-O36ZPHJG.mjs → chunk-3XNYGMPZ.mjs} +10 -10
- package/dist/cli/{chunk-UT3ORL35.mjs → chunk-4RSOYJ67.mjs} +3 -3
- package/dist/cli/{chunk-SH6HOR25.mjs → chunk-4TVN2676.mjs} +2 -2
- package/dist/cli/{chunk-5M4PLPTR.mjs → chunk-6JVJZ7YG.mjs} +1 -1
- package/dist/cli/{chunk-KKI5GWED.js → chunk-BQIEYWGQ.js} +94 -94
- package/dist/cli/{chunk-CNMIYEB4.mjs → chunk-C7BH7T3T.mjs} +2 -2
- package/dist/cli/{chunk-GKZUGHDK.js → chunk-DB7SJKGI.js} +6 -6
- package/dist/cli/{chunk-GRIHMNYM.js → chunk-EAQXRAVF.js} +4 -4
- package/dist/cli/{chunk-YHFW7MBT.mjs → chunk-EHOC6NCN.mjs} +1 -1
- package/dist/cli/{chunk-6UUZM4FY.mjs → chunk-ELZYHPE7.mjs} +5 -5
- package/dist/cli/{chunk-5YSIHOGV.js → chunk-FPRS3FP4.js} +26 -26
- package/dist/cli/{chunk-WTZ7Y3IZ.mjs → chunk-H7YR4EYF.mjs} +2 -2
- package/dist/cli/{chunk-MWQ3WQ4Q.js → chunk-IBCROFZW.js} +41 -41
- package/dist/cli/{chunk-6QIAEXRH.mjs → chunk-IE6FYMUS.mjs} +1 -1
- package/dist/cli/{chunk-EX4JEFYI.js → chunk-IUCAVYXR.js} +16 -16
- package/dist/cli/{chunk-FXPICCUU.mjs → chunk-KLA4IUOI.mjs} +1 -1
- package/dist/cli/{chunk-QEBQIGXP.js → chunk-KRR2Z2FH.js} +2 -2
- package/dist/cli/{chunk-R4H5MCG4.mjs → chunk-KV4RNW2H.mjs} +4 -4
- package/dist/cli/{chunk-U6SE6757.mjs → chunk-LGE6ZOEO.mjs} +1 -1
- package/dist/cli/{chunk-IMWJRBV5.mjs → chunk-MRHMC33S.mjs} +1 -1
- package/dist/cli/{chunk-7Q7VPFPR.mjs → chunk-O4H53SJ4.mjs} +2 -2
- package/dist/cli/{chunk-WCBZHSC4.mjs → chunk-OFNXUDEC.mjs} +5 -5
- package/dist/cli/{chunk-5GK6J7MH.js → chunk-OL2QEEXF.js} +5 -5
- package/dist/cli/{chunk-7NBDLK3N.mjs → chunk-PAHFVOFZ.mjs} +1 -1
- package/dist/cli/{chunk-JU4LIA2T.js → chunk-PHBJ2VDS.js} +7 -7
- package/dist/cli/{chunk-W7DZ6UGP.js → chunk-PKTJN6PF.js} +3 -3
- package/dist/cli/{chunk-WEGGJMNF.js → chunk-QDNP6KOF.js} +21 -21
- package/dist/cli/{chunk-QZ7I4NZZ.js → chunk-QERMP4TW.js} +2 -2
- package/dist/cli/{chunk-UTG3STCR.js → chunk-QUIJUNXX.js} +3 -3
- package/dist/cli/{chunk-E3KXXJWR.mjs → chunk-RZA6HSXX.mjs} +6 -6
- package/dist/cli/{chunk-4NKAM4GX.mjs → chunk-RZO743TC.mjs} +2 -2
- package/dist/cli/{chunk-3KA466RV.mjs → chunk-SR3PRGWB.mjs} +1 -1
- package/dist/cli/{chunk-3HIPDJWJ.js → chunk-TDUTNTA5.js} +53 -53
- package/dist/cli/{chunk-QN6IULFT.js → chunk-TLG75Q77.js} +53 -53
- package/dist/cli/{chunk-ZL4Q4T3G.js → chunk-TPQFCUPV.js} +7 -7
- package/dist/cli/{chunk-AOBAVBSX.js → chunk-UA2GU7NB.js} +7 -7
- package/dist/cli/{chunk-QYXUZX5N.mjs → chunk-UUFZFJL4.mjs} +4 -4
- package/dist/cli/{chunk-7U6W3CKT.mjs → chunk-VETP54NO.mjs} +4 -4
- package/dist/cli/{chunk-Z27R2BG7.js → chunk-VFYKFPZD.js} +16 -16
- package/dist/cli/{chunk-JEPNE4N5.js → chunk-VUNAIAMX.js} +5 -5
- package/dist/cli/{chunk-J55ZM5CK.js → chunk-XGUGFGCF.js} +3 -3
- package/dist/cli/{chunk-HIAFBOYA.js → chunk-XNYAIV4E.js} +8 -8
- package/dist/cli/{chunk-73CBLBNP.js → chunk-XUTIBRKF.js} +1 -1
- package/dist/cli/{chunk-PHVRS56F.js → chunk-YCGVVUGX.js} +9 -9
- package/dist/cli/{chunk-DFW6P6ZN.mjs → chunk-ZEYB6QPW.mjs} +2 -2
- package/dist/cli/{csv-ET7ESAPM.mjs → csv-LBUOESU2.mjs} +4 -4
- package/dist/cli/{csv-JWBLNEPC.js → csv-SCXUWRVV.js} +13 -13
- package/dist/cli/{db-4PIWQPR6.mjs → db-3SI2OXIV.mjs} +6 -6
- package/dist/cli/{db-3ZGQXWTQ.js → db-CC2D2GSL.js} +27 -27
- package/dist/cli/describe-DAUL3SDQ.js +50 -0
- package/dist/cli/{describe-OREUCFC2.mjs → describe-ZK5CMT4M.mjs} +17 -17
- package/dist/cli/{executions-HW6PMZOF.mjs → executions-DVPHIG2I.mjs} +6 -6
- package/dist/cli/{executions-YR545MRU.js → executions-YKYQIRPP.js} +8 -8
- package/dist/cli/{feedback-FNVHJQEC.js → feedback-BVLYZ3BM.js} +8 -8
- package/dist/cli/{feedback-B2FJ6HPA.mjs → feedback-UQRMPU2S.mjs} +4 -4
- package/dist/cli/git-MFIJCRX6.js +25 -0
- package/dist/cli/{git-CCNPW3CA.mjs → git-WTMZ66HP.mjs} +5 -5
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-VJLCXTPB.mjs → legacy-noops-RUQT6DB3.mjs} +5 -5
- package/dist/cli/{legacy-noops-2EBZS45D.js → legacy-noops-TVJ5WOBD.js} +8 -8
- package/dist/cli/{monitors-JNWKPCN5.js → monitors-UYYJBO6U.js} +95 -95
- package/dist/cli/{monitors-4AMETRW7.mjs → monitors-ZQBZMFUL.mjs} +7 -7
- package/dist/cli/{org-7FUHVFYU.js → org-4TZED2IF.js} +72 -72
- package/dist/cli/{org-LO6GSCCG.mjs → org-UACQHFY6.mjs} +6 -6
- package/dist/cli/{pages-TT4TZOOV.js → pages-HDYYGZOT.js} +18 -18
- package/dist/cli/{pages-PJ32M2PU.mjs → pages-R2KSZCYK.mjs} +6 -6
- package/dist/cli/{play-QJEZAIZB.mjs → play-DQ4AZ2NV.mjs} +34 -30
- package/dist/cli/{play-VN7DFYDP.js → play-ZMYWHAV3.js} +330 -326
- package/dist/cli/{providers-IDFN2FCR.js → providers-I7GXTYG4.js} +9 -9
- package/dist/cli/{providers-24ER3SND.mjs → providers-X53WCX46.mjs} +6 -6
- package/dist/cli/{quickstart-FKENQU34.mjs → quickstart-DKVF32MY.mjs} +4 -4
- package/dist/cli/{quickstart-AQDCRVUQ.js → quickstart-GKW46HUR.js} +6 -6
- package/dist/cli/{run-KXMRE5ZD.mjs → run-A36EBVLD.mjs} +22 -22
- package/dist/cli/{run-HCASJQZY.js → run-VLX775L5.js} +36 -36
- package/dist/cli/{search-3F2T33OE.mjs → search-QHO4AYS2.mjs} +7 -7
- package/dist/cli/search-STXZIGVB.js +32 -0
- package/dist/cli/{search-output-GFCEGNCJ.js → search-output-P7GWSTNO.js} +6 -6
- package/dist/cli/{search-output-U6PM5KAH.mjs → search-output-YF5HCWKU.mjs} +4 -4
- package/dist/cli/{secrets-KYVUP755.js → secrets-3X56AV2F.js} +15 -15
- package/dist/cli/{secrets-ZZSOVXOX.mjs → secrets-XTHBAX26.mjs} +6 -6
- package/dist/cli/{sessions-4Z62CVHL.mjs → sessions-4ZVZABXN.mjs} +5 -5
- package/dist/cli/{sessions-7JFKTUQS.js → sessions-AJUQJR4G.js} +6 -6
- package/dist/cli/{settings-OXG7IRVC.mjs → settings-AX5JF47R.mjs} +11 -11
- package/dist/cli/{settings-X4PSK4EW.js → settings-R7RQC5Z3.js} +78 -78
- package/dist/cli/{setup-RB7JE6KA.mjs → setup-DTXQODYK.mjs} +9 -9
- package/dist/cli/{setup-NCJEDW4W.js → setup-QB62E6K5.js} +49 -49
- package/dist/cli/skills-IEP5L5MQ.js +36 -0
- package/dist/cli/{skills-D4BR2WU2.mjs → skills-N6OY5ABC.mjs} +7 -7
- package/dist/cli/{tools-CEOD7VD5.mjs → tools-3T4GKGS4.mjs} +16 -16
- package/dist/cli/tools-JWBXEZKY.js +57 -0
- package/dist/cli/{update-UKUMQ6FC.mjs → update-QDT4SFW3.mjs} +9 -9
- package/dist/cli/update-QME3C2VP.js +34 -0
- package/dist/cli/{workflow-LFWQWZKS.js → workflow-FW3FPOWU.js} +17 -17
- package/dist/cli/{workflow-EKKTTSCJ.mjs → workflow-Q7LQETNW.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +100 -98
- 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-SHWC5FMY.js +0 -43
- package/dist/cli/describe-KO3OQBIR.js +0 -50
- package/dist/cli/git-X2QJ2B5O.js +0 -25
- package/dist/cli/search-OGY6SQDJ.js +0 -32
- package/dist/cli/skills-WWWFRDCA.js +0 -36
- package/dist/cli/tools-QMSAA3LC.js +0 -57
- package/dist/cli/update-HTDFPN7L.js +0 -34
|
@@ -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 _chunkBQIEYWGQjs = require('./chunk-BQIEYWGQ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQUIJUNXXjs = require('./chunk-QUIJUNXX.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,18 +14,18 @@ var _chunkI42EOZKQjs = require('./chunk-I42EOZKQ.js');
|
|
|
14
14
|
var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkOL2QEEXFjs = require('./chunk-OL2QEEXF.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkTLG75Q77js = require('./chunk-TLG75Q77.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkXGUGFGCFjs = require('./chunk-XGUGFGCF.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
var _fs = require('fs');
|
|
@@ -34,14 +34,14 @@ var _path = require('path');
|
|
|
34
34
|
// src/cli/doc-read-reporting.ts
|
|
35
35
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
36
36
|
async function reportDocRead(docId) {
|
|
37
|
-
if (
|
|
37
|
+
if (_chunkTLG75Q77js.isFailureReportingDisabled.call(void 0, )) return;
|
|
38
38
|
try {
|
|
39
|
-
const baseUrl =
|
|
40
|
-
const apiKey =
|
|
39
|
+
const baseUrl = _chunkXGUGFGCFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
40
|
+
const apiKey = _chunkXGUGFGCFjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
41
41
|
if (!apiKey) return;
|
|
42
42
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
43
43
|
method: "POST",
|
|
44
|
-
headers:
|
|
44
|
+
headers: _chunkTLG75Q77js.failureReportHeaders.call(void 0, apiKey),
|
|
45
45
|
body: JSON.stringify({ doc_id: docId }),
|
|
46
46
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
47
47
|
});
|
|
@@ -54,16 +54,16 @@ function nothingNamed(name) {
|
|
|
54
54
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
55
55
|
}
|
|
56
56
|
function findNamed2(name, options) {
|
|
57
|
-
return _chunkI42EOZKQjs.findNamed.call(void 0, name, options, _chunkI42EOZKQjs.describeLookupsFor.call(void 0, new (0,
|
|
57
|
+
return _chunkI42EOZKQjs.findNamed.call(void 0, name, options, _chunkI42EOZKQjs.describeLookupsFor.call(void 0, new (0, _chunkOL2QEEXFjs.DeeplineClient)()));
|
|
58
58
|
}
|
|
59
59
|
async function describeAnything(name, options, onMissing) {
|
|
60
|
-
const client = new (0,
|
|
60
|
+
const client = new (0, _chunkOL2QEEXFjs.DeeplineClient)();
|
|
61
61
|
const lookups = _chunkI42EOZKQjs.describeLookupsFor.call(void 0, client);
|
|
62
62
|
const outcome = await _chunkI42EOZKQjs.describeName.call(void 0, name, options, {
|
|
63
63
|
...lookups,
|
|
64
64
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
65
65
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
66
|
-
seedStarterScript:
|
|
66
|
+
seedStarterScript: _chunkBQIEYWGQjs.seedToolListScript
|
|
67
67
|
});
|
|
68
68
|
if (outcome.status === "missing") {
|
|
69
69
|
if (onMissing) return onMissing();
|
|
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
89
89
|
` : text;
|
|
90
90
|
_fs.writeFileSync.call(void 0, path, content);
|
|
91
91
|
const bytes = Buffer.byteLength(content);
|
|
92
|
-
|
|
92
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0,
|
|
93
93
|
{ path, bytes },
|
|
94
94
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
95
95
|
` }
|
|
96
96
|
);
|
|
97
97
|
return 0;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
100
100
|
return 0;
|
|
101
101
|
}
|
|
102
102
|
function registerDescribeCommand(program) {
|
|
103
|
-
|
|
103
|
+
_chunkQUIJUNXXjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
104
104
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
105
105
|
).addHelpText(
|
|
106
106
|
"after",
|
|
@@ -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 _chunkTLG75Q77js = require('./chunk-TLG75Q77.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 = _chunkTLG75Q77js.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,
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UUFZFJL4.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-H7YR4EYF.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PAHFVOFZ.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MRHMC33S.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H7YR4EYF.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PAHFVOFZ.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LGE6ZOEO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KV4RNW2H.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UUFZFJL4.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-H7YR4EYF.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PAHFVOFZ.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunkUA2GU7NBjs = require('./chunk-UA2GU7NB.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXGUGFGCFjs = require('./chunk-XGUGFGCF.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkUA2GU7NBjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkXGUGFGCFjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkXGUGFGCFjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOL2QEEXFjs = require('./chunk-OL2QEEXF.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkXGUGFGCFjs = require('./chunk-XGUGFGCF.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, _chunkXGUGFGCFjs.sdkCliStateDirPath.call(void 0, _chunkXGUGFGCFjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
24
24
|
}
|
|
25
25
|
function rememberSearchRef(searchRef) {
|
|
26
26
|
try {
|
|
@@ -119,7 +119,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
119
119
|
console.error("--summary-width must be an integer of at least 2.");
|
|
120
120
|
return 1;
|
|
121
121
|
}
|
|
122
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
122
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkOL2QEEXFjs.DeeplineClient)().search({
|
|
123
123
|
query,
|
|
124
124
|
types,
|
|
125
125
|
exclude,
|
|
@@ -133,8 +133,8 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
133
133
|
});
|
|
134
134
|
if (searchRef) rememberSearchRef(searchRef);
|
|
135
135
|
pointAtDescribe(result);
|
|
136
|
-
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
-
|
|
136
|
+
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-P7GWSTNO.js")));
|
|
137
|
+
_chunkTPQFCUPVjs.printCommandEnvelope.call(void 0, result, {
|
|
138
138
|
json: options.json === true,
|
|
139
139
|
text: renderSearchResults(result, summaryWidth)
|
|
140
140
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkTPQFCUPVjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkTPQFCUPVjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVFYKFPZDjs = require('./chunk-VFYKFPZD.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkTLG75Q77js = require('./chunk-TLG75Q77.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkXGUGFGCFjs = require('./chunk-XGUGFGCF.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkEAQXRAVFjs = require('./chunk-EAQXRAVF.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 = _chunkXGUGFGCFjs.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/${_chunkEAQXRAVFjs.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": _chunkEAQXRAVFjs.SDK_VERSION,
|
|
67
|
+
"X-Deepline-SDK-Version": _chunkEAQXRAVFjs.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()]) || _chunkEAQXRAVFjs.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") || !_chunkVFYKFPZDjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkTLG75Q77js.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()]) || _chunkEAQXRAVFjs.SDK_VERSION;
|
|
95
95
|
if (!target) return false;
|
|
96
|
-
return
|
|
96
|
+
return _chunkVFYKFPZDjs.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()]) || _chunkEAQXRAVFjs.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 = _chunkVFYKFPZDjs.resolveUpdatePlan.call(void 0, {
|
|
158
158
|
packageSpec,
|
|
159
159
|
requireVerifiedNpmOwnership: true,
|
|
160
160
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
161
161
|
});
|
|
162
|
-
if (!
|
|
162
|
+
if (!_chunkVFYKFPZDjs.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 (_chunkTPQFCUPVjs.isJsonOutputMode.call(void 0, )) {
|
|
170
170
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
171
|
-
|
|
171
|
+
_chunkTPQFCUPVjs.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 (!_chunkVFYKFPZDjs.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 _chunkVFYKFPZDjs.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 (!_chunkTPQFCUPVjs.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
|
"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 _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.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
|
+
_chunkTPQFCUPVjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -6,7 +6,7 @@ var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.js');
|
|
10
10
|
|
|
11
11
|
// src/cli/describe-options.ts
|
|
12
12
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -247,7 +247,7 @@ function projectRunDatasetCell(value) {
|
|
|
247
247
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
248
248
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
249
249
|
if (typeof logicalValue === "object") {
|
|
250
|
-
return
|
|
250
|
+
return _chunkTPQFCUPVjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
251
251
|
}
|
|
252
252
|
return logicalValue;
|
|
253
253
|
}
|
|
@@ -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 _chunkTPQFCUPVjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options) {
|
|
648
648
|
let temp;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3XNYGMPZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KLA4IUOI.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,18 +14,18 @@ import {
|
|
|
14
14
|
} from "./chunk-SAW3FBCA.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RZO743TC.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UUFZFJL4.mjs";
|
|
22
22
|
import {
|
|
23
23
|
printCommandEnvelope
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-H7YR4EYF.mjs";
|
|
25
25
|
import {
|
|
26
26
|
autoDetectBaseUrl,
|
|
27
27
|
resolveApiKeyForBaseUrl
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PAHFVOFZ.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
import { writeFileSync } from "fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6JVJZ7YG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PAHFVOFZ.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -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.498",
|
|
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."
|