deepline 0.3.497 → 0.3.499
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/cli/auth-32FRISRT.js +43 -0
- package/dist/cli/{auth-OAKBFUQD.mjs → auth-TECJ27G3.mjs} +5 -5
- package/dist/cli/{billing-AM6D2KN5.mjs → billing-PMKO73VG.mjs} +6 -6
- package/dist/cli/{billing-FUB6HQZ5.js → billing-ULZGAED6.js} +79 -79
- package/dist/cli/{chunk-V2EVSEUD.js → chunk-2PKZ3RUU.js} +16 -16
- package/dist/cli/{chunk-SLS3HUVC.js → chunk-2RZHMCDL.js} +4 -4
- package/dist/cli/{chunk-3IVAGF4P.mjs → chunk-3GP52OHV.mjs} +10 -10
- package/dist/cli/{chunk-KFJV3BZX.mjs → chunk-43ZERPGR.mjs} +1 -1
- package/dist/cli/{chunk-FISH2MI2.mjs → chunk-56JE475N.mjs} +9 -5
- package/dist/cli/{chunk-6TA2H7CY.js → chunk-57LW4TGY.js} +26 -26
- package/dist/cli/{chunk-MBOAXLWC.mjs → chunk-5IDORX4E.mjs} +4 -4
- package/dist/cli/{chunk-XLYJ7MJX.js → chunk-7OQZZHZ4.js} +15 -11
- package/dist/cli/{chunk-EWQ3KY5U.mjs → chunk-7UC2UZYW.mjs} +6 -6
- package/dist/cli/{chunk-JDFYCHNV.js → chunk-7WUMIRBV.js} +5 -5
- package/dist/cli/{chunk-5GXYXU45.mjs → chunk-A2VCFBZN.mjs} +1 -1
- package/dist/cli/{chunk-7RBIOOCQ.js → chunk-AGZRRHSB.js} +3 -3
- package/dist/cli/{chunk-SJM7MKOE.js → chunk-AKLI4XSG.js} +2 -2
- package/dist/cli/{chunk-4MR7LZXF.mjs → chunk-BBFWIYAF.mjs} +2 -2
- package/dist/cli/{chunk-XNLXHU6L.mjs → chunk-C2V5U6HO.mjs} +5 -5
- package/dist/cli/{chunk-OWDK2PVH.js → chunk-FG5OZ5FB.js} +8 -8
- package/dist/cli/{chunk-BRUDMG56.js → chunk-G7BB2VOC.js} +41 -41
- package/dist/cli/{chunk-IURXJPGH.mjs → chunk-IGCSKXGK.mjs} +3 -3
- package/dist/cli/{chunk-WKCMARFR.js → chunk-JIZHGOZ5.js} +94 -94
- package/dist/cli/{chunk-WZ3A35ZD.mjs → chunk-JM52ATUS.mjs} +1 -1
- package/dist/cli/{chunk-KUX3HYJI.mjs → chunk-JQHJKARU.mjs} +28 -22
- package/dist/cli/{chunk-5IBHSACU.mjs → chunk-JUQESEJX.mjs} +2 -2
- package/dist/cli/{chunk-ZLYKN4AJ.js → chunk-K54BUQSK.js} +7 -7
- package/dist/cli/{chunk-FVS5MJQ5.js → chunk-KLQ5CR77.js} +30 -24
- package/dist/cli/{chunk-VMOVB2FN.mjs → chunk-KOD45UP5.mjs} +5 -5
- package/dist/cli/{chunk-SJID5WMV.mjs → chunk-KZJKRU24.mjs} +4 -4
- package/dist/cli/{chunk-BBHGJE73.js → chunk-L6C7C7IJ.js} +1 -1
- package/dist/cli/{chunk-DKSTMQ3F.js → chunk-L7O7AFSF.js} +21 -21
- package/dist/cli/{chunk-YUEFDOME.js → chunk-LUNXREUI.js} +6 -6
- package/dist/cli/{chunk-3DHPKENA.mjs → chunk-MQ5YPD7K.mjs} +1 -1
- package/dist/cli/{chunk-LPCK5KK5.mjs → chunk-OWHQ4OG5.mjs} +2 -2
- package/dist/cli/{chunk-YQ66NC4J.mjs → chunk-P3MGNLZF.mjs} +2 -2
- package/dist/cli/{chunk-B4Q3EBQX.js → chunk-PE3UHMMZ.js} +5 -5
- package/dist/cli/{chunk-M2WIEW2E.mjs → chunk-PSYGSXDS.mjs} +1 -1
- package/dist/cli/{chunk-THD6KA67.mjs → chunk-QXI2W7YY.mjs} +4 -4
- package/dist/cli/{chunk-OEI6HXMK.js → chunk-SLWCXGKP.js} +16 -16
- package/dist/cli/{chunk-2HCZHIMT.mjs → chunk-TFFJ2PRN.mjs} +5 -3
- package/dist/cli/{chunk-7FFNSYMJ.js → chunk-TUDYBF4Y.js} +9 -9
- package/dist/cli/{chunk-UETGYJYH.mjs → chunk-UMPCQ4EE.mjs} +2 -2
- package/dist/cli/{chunk-A66Y2LCW.js → chunk-UOQUCFAK.js} +53 -53
- package/dist/cli/{chunk-TGAYN34A.mjs → chunk-WEVIUQGZ.mjs} +2 -2
- package/dist/cli/{chunk-77IAUCTB.js → chunk-WSOM3TY6.js} +3 -3
- package/dist/cli/{chunk-3KG2FUU4.js → chunk-XSUQAUG4.js} +7 -7
- package/dist/cli/{chunk-HRODQDTB.mjs → chunk-YAW7ET4P.mjs} +1 -1
- package/dist/cli/{chunk-N3T3L3WW.js → chunk-YPTZJ7LO.js} +5 -3
- package/dist/cli/{chunk-UV7AT2D4.js → chunk-YRQWGWRJ.js} +2 -2
- package/dist/cli/{chunk-WXW7YJDO.js → chunk-Z2MO7FZG.js} +53 -53
- package/dist/cli/{chunk-XX7WLKOQ.mjs → chunk-ZVAD65CF.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-U2GOFP3M.mjs → csv-ACO5YC46.mjs} +4 -4
- package/dist/cli/{csv-PMBYKVUU.js → csv-VGSQ3JYE.js} +13 -13
- package/dist/cli/{db-DKFOTZGZ.mjs → db-CXNZOXGM.mjs} +6 -6
- package/dist/cli/{db-GREVTMIR.js → db-QOUPHFFN.js} +27 -27
- package/dist/cli/describe-DEXYQMBO.js +50 -0
- package/dist/cli/{describe-SWXA6L62.mjs → describe-J4O5GCJS.mjs} +17 -17
- package/dist/cli/{executions-EBRFC5JR.mjs → executions-SJETRLXW.mjs} +6 -6
- package/dist/cli/{executions-2RRAESQK.js → executions-YIECH2CL.js} +8 -8
- package/dist/cli/{feedback-N6ML7IRH.js → feedback-5BRCNERV.js} +8 -8
- package/dist/cli/{feedback-4A57QLX2.mjs → feedback-GSAFFMF6.mjs} +4 -4
- package/dist/cli/git-RDKLITUC.js +25 -0
- package/dist/cli/{git-6D2WQPOS.mjs → git-SF5XIGLU.mjs} +5 -5
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-DXRJARNC.js → legacy-noops-5TBT4XC6.js} +8 -8
- package/dist/cli/{legacy-noops-CL5QWXGH.mjs → legacy-noops-TZA3CALE.mjs} +5 -5
- package/dist/cli/{monitors-SGMEGGJO.mjs → monitors-XAYWJNSV.mjs} +7 -7
- package/dist/cli/{monitors-XWKDVHYL.js → monitors-XNB5YNC3.js} +95 -95
- package/dist/cli/{org-QKQ57PDN.js → org-2UYWJXG7.js} +72 -72
- package/dist/cli/{org-55BI5RQF.mjs → org-S5VZL5KZ.mjs} +6 -6
- package/dist/cli/{pages-LM4QACOM.mjs → pages-NGVJO7PA.mjs} +6 -6
- package/dist/cli/{pages-FOIR5UH4.js → pages-ZQRRTZIT.js} +18 -18
- package/dist/cli/{play-7VA26O6E.mjs → play-3JNERHSC.mjs} +37 -27
- package/dist/cli/{play-S44FXGD7.js → play-P3OYQ7JV.js} +406 -396
- package/dist/cli/{providers-QAVIR5E2.mjs → providers-27O6BOAP.mjs} +6 -6
- package/dist/cli/{providers-RDSHID7C.js → providers-2FFGAPUR.js} +9 -9
- package/dist/cli/{quickstart-EREQPM3G.js → quickstart-5G2UPKJV.js} +6 -6
- package/dist/cli/{quickstart-IL4HQYE4.mjs → quickstart-B2EXIAU6.mjs} +4 -4
- package/dist/cli/{run-TBUUV5EG.js → run-2TGD7FAL.js} +82 -43
- package/dist/cli/{run-4XZNJR7N.mjs → run-3QFXYV3Z.mjs} +69 -30
- package/dist/cli/{search-SYT5UT5G.mjs → search-GXEEOMVD.mjs} +7 -7
- package/dist/cli/search-YKTYDBCN.js +32 -0
- package/dist/cli/{search-output-Y3IKZ3TX.mjs → search-output-DMIJQTAA.mjs} +4 -4
- package/dist/cli/{search-output-5F3EEQ34.js → search-output-I4RZPHU6.js} +6 -6
- package/dist/cli/{secrets-AKAU2N3K.mjs → secrets-DQI5YCS6.mjs} +6 -6
- package/dist/cli/{secrets-PZWJ2ES5.js → secrets-MJMNRXZX.js} +15 -15
- package/dist/cli/{sessions-Z5C26IS7.mjs → sessions-HAUN3VYE.mjs} +5 -5
- package/dist/cli/{sessions-UMHA7K23.js → sessions-QS74ZTRH.js} +6 -6
- package/dist/cli/{settings-S5BM3SVI.mjs → settings-E64HIUXW.mjs} +11 -11
- package/dist/cli/{settings-WGJYWTJZ.js → settings-VQBOS6VU.js} +78 -78
- package/dist/cli/{setup-6K6ERKOH.js → setup-KRW3JCJE.js} +49 -49
- package/dist/cli/{setup-E4HRXP2X.mjs → setup-NRUG42F2.mjs} +9 -9
- package/dist/cli/{skills-HIZA7YAN.mjs → skills-AHLZRTKZ.mjs} +7 -7
- package/dist/cli/skills-PGVIJK6Q.js +36 -0
- package/dist/cli/{tools-FS5S6BT7.mjs → tools-INRRIWOU.mjs} +16 -16
- package/dist/cli/tools-IXXN2RE4.js +57 -0
- package/dist/cli/{update-4CJPTG3L.mjs → update-ETOWEJ7D.mjs} +9 -9
- package/dist/cli/update-QW4RV2UX.js +34 -0
- package/dist/cli/{workflow-UMSXOIOS.mjs → workflow-JT2DOSCJ.mjs} +7 -7
- package/dist/cli/{workflow-TYSZ5JWS.js → workflow-RUAYQK4D.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +102 -100
- 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-553ZBCPJ.js +0 -43
- package/dist/cli/describe-BL5NNHV5.js +0 -50
- package/dist/cli/git-7TSX5V57.js +0 -25
- package/dist/cli/search-GCANFVVZ.js +0 -32
- package/dist/cli/skills-J3GQHHHL.js +0 -36
- package/dist/cli/tools-RZYKMOUX.js +0 -57
- package/dist/cli/update-CATZW7GA.js +0 -34
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkAKLI4XSGjs = require('./chunk-AKLI4XSG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkG7BB2VOCjs = require('./chunk-G7BB2VOC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkUOQUCFAKjs = require('./chunk-UOQUCFAK.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk7OQZZHZ4js = require('./chunk-7OQZZHZ4.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkWSOM3TY6js = require('./chunk-WSOM3TY6.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkUOQUCFAKjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkAKLI4XSGjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkAKLI4XSGjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkWSOM3TY6js.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkUOQUCFAKjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkWSOM3TY6js.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkG7BB2VOCjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkL6C7C7IJjs = require('./chunk-L6C7C7IJ.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunkL6C7C7IJjs.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkL6C7C7IJjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkL6C7C7IJjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JQHJKARU.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5IDORX4E.mjs";
|
|
10
10
|
import {
|
|
11
11
|
arrayField,
|
|
12
12
|
formatModelDescription,
|
|
@@ -48,10 +48,10 @@ import {
|
|
|
48
48
|
} from "./chunk-FIVKWNMT.mjs";
|
|
49
49
|
import {
|
|
50
50
|
DeeplineClient
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-BBFWIYAF.mjs";
|
|
52
52
|
import {
|
|
53
53
|
validateExecutionIdempotencyKey
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-YAW7ET4P.mjs";
|
|
55
55
|
import {
|
|
56
56
|
stableStringify
|
|
57
57
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -61,18 +61,18 @@ import {
|
|
|
61
61
|
maybeAutoUpdateAndRelaunch,
|
|
62
62
|
registerCompatibilityCatalog,
|
|
63
63
|
runToolExecuteStage
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-C2V5U6HO.mjs";
|
|
65
65
|
import {
|
|
66
66
|
isCliTraceEnabled,
|
|
67
67
|
recordCliTrace,
|
|
68
68
|
resolveCliMaintenancePolicy
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-PSYGSXDS.mjs";
|
|
70
70
|
import {
|
|
71
71
|
checkSdkCompatibility,
|
|
72
72
|
enforceSdkCompatibilityResponse,
|
|
73
73
|
flushDeferredSkillsSyncNotices,
|
|
74
74
|
syncSdkSkillsIfNeeded
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-QXI2W7YY.mjs";
|
|
76
76
|
import {
|
|
77
77
|
printCommandEnvelope,
|
|
78
78
|
printCompactJson,
|
|
@@ -80,12 +80,12 @@ import {
|
|
|
80
80
|
printJsonError,
|
|
81
81
|
renderCommandEnvelopeText,
|
|
82
82
|
shouldEmitJson
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-56JE475N.mjs";
|
|
84
84
|
import {
|
|
85
85
|
readSdkSkillsLocalVersion,
|
|
86
86
|
resolveConfig,
|
|
87
87
|
sdkCliStateDirPath
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-ZVAD65CF.mjs";
|
|
89
89
|
import {
|
|
90
90
|
DeeplineError
|
|
91
91
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1038,7 +1038,7 @@ Examples:
|
|
|
1038
1038
|
process.exitCode = await narrowView();
|
|
1039
1039
|
return;
|
|
1040
1040
|
}
|
|
1041
|
-
const { describeAnything } = await import("./describe-
|
|
1041
|
+
const { describeAnything } = await import("./describe-J4O5GCJS.mjs");
|
|
1042
1042
|
process.exitCode = await describeAnything(
|
|
1043
1043
|
toolId,
|
|
1044
1044
|
{
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZVAD65CF.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JM52ATUS.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -125,7 +125,7 @@ var ANSI_PATTERN = /\x1b\[[0-9;?]*[A-Za-z]|\r/g;
|
|
|
125
125
|
var installed = false;
|
|
126
126
|
var pending = [];
|
|
127
127
|
var rawStderrWrite = null;
|
|
128
|
-
var
|
|
128
|
+
var jsonOutputHandled = false;
|
|
129
129
|
function isJsonOutputMode() {
|
|
130
130
|
return process.argv.includes("--json");
|
|
131
131
|
}
|
|
@@ -135,7 +135,7 @@ function installJsonStderrGuard() {
|
|
|
135
135
|
rawStderrWrite = process.stderr.write.bind(process.stderr);
|
|
136
136
|
const stdoutWrite = process.stdout.write.bind(process.stdout);
|
|
137
137
|
process.stdout.write = ((...args) => {
|
|
138
|
-
|
|
138
|
+
markJsonOutputHandled();
|
|
139
139
|
return stdoutWrite(...args);
|
|
140
140
|
});
|
|
141
141
|
const capture = (chunk) => {
|
|
@@ -162,8 +162,11 @@ function addJsonNotice(notice) {
|
|
|
162
162
|
function writeRawStderr(text) {
|
|
163
163
|
(rawStderrWrite ?? process.stderr.write.bind(process.stderr))(text);
|
|
164
164
|
}
|
|
165
|
+
function markJsonOutputHandled() {
|
|
166
|
+
jsonOutputHandled = true;
|
|
167
|
+
}
|
|
165
168
|
function takeSilentJsonFailureMessage(exitCode) {
|
|
166
|
-
if (!installed ||
|
|
169
|
+
if (!installed || jsonOutputHandled || !exitCode || Number(exitCode) === 0) {
|
|
167
170
|
return null;
|
|
168
171
|
}
|
|
169
172
|
const index = pending.findIndex((notice) => typeof notice === "string");
|
|
@@ -1049,6 +1052,7 @@ export {
|
|
|
1049
1052
|
installJsonStderrGuard,
|
|
1050
1053
|
addJsonNotice,
|
|
1051
1054
|
writeRawStderr,
|
|
1055
|
+
markJsonOutputHandled,
|
|
1052
1056
|
takeSilentJsonFailureMessage,
|
|
1053
1057
|
getAuthedHttpClient,
|
|
1054
1058
|
openInBrowser,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk7OQZZHZ4js = require('./chunk-7OQZZHZ4.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkWSOM3TY6js = require('./chunk-WSOM3TY6.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunk7OQZZHZ4js.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunk7OQZZHZ4js.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunk7OQZZHZ4js.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunk7OQZZHZ4js.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunk7OQZZHZ4js.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunk7OQZZHZ4js.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunk7OQZZHZ4js.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunk7OQZZHZ4js.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkWSOM3TY6js.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunk7OQZZHZ4js.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunk7OQZZHZ4js.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunk7OQZZHZ4js.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunk7OQZZHZ4js.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BBFWIYAF.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-56JE475N.mjs";
|
|
10
10
|
import {
|
|
11
11
|
resolveConfig,
|
|
12
12
|
sdkCliStateDirPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZVAD65CF.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
import { Option } from "commander";
|
|
@@ -133,7 +133,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
133
133
|
});
|
|
134
134
|
if (searchRef) rememberSearchRef(searchRef);
|
|
135
135
|
pointAtDescribe(result);
|
|
136
|
-
const { renderSearchResults } = await import("./search-output-
|
|
136
|
+
const { renderSearchResults } = await import("./search-output-DMIJQTAA.mjs");
|
|
137
137
|
printCommandEnvelope(result, {
|
|
138
138
|
json: options.json === true,
|
|
139
139
|
text: renderSearchResults(result, summaryWidth)
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWSOM3TY6js = require('./chunk-WSOM3TY6.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk2RZHMCDLjs = require('./chunk-2RZHMCDL.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -125,7 +125,7 @@ var ANSI_PATTERN = /\x1b\[[0-9;?]*[A-Za-z]|\r/g;
|
|
|
125
125
|
var installed = false;
|
|
126
126
|
var pending = [];
|
|
127
127
|
var rawStderrWrite = null;
|
|
128
|
-
var
|
|
128
|
+
var jsonOutputHandled = false;
|
|
129
129
|
function isJsonOutputMode() {
|
|
130
130
|
return process.argv.includes("--json");
|
|
131
131
|
}
|
|
@@ -135,7 +135,7 @@ function installJsonStderrGuard() {
|
|
|
135
135
|
rawStderrWrite = process.stderr.write.bind(process.stderr);
|
|
136
136
|
const stdoutWrite = process.stdout.write.bind(process.stdout);
|
|
137
137
|
process.stdout.write = ((...args) => {
|
|
138
|
-
|
|
138
|
+
markJsonOutputHandled();
|
|
139
139
|
return stdoutWrite(...args);
|
|
140
140
|
});
|
|
141
141
|
const capture = (chunk) => {
|
|
@@ -162,8 +162,11 @@ function addJsonNotice(notice) {
|
|
|
162
162
|
function writeRawStderr(text) {
|
|
163
163
|
(_nullishCoalesce(rawStderrWrite, () => ( process.stderr.write.bind(process.stderr))))(text);
|
|
164
164
|
}
|
|
165
|
+
function markJsonOutputHandled() {
|
|
166
|
+
jsonOutputHandled = true;
|
|
167
|
+
}
|
|
165
168
|
function takeSilentJsonFailureMessage(exitCode) {
|
|
166
|
-
if (!installed ||
|
|
169
|
+
if (!installed || jsonOutputHandled || !exitCode || Number(exitCode) === 0) {
|
|
167
170
|
return null;
|
|
168
171
|
}
|
|
169
172
|
const index = pending.findIndex((notice) => typeof notice === "string");
|
|
@@ -290,8 +293,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
290
293
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
291
294
|
var defaultBrowserCommandRunner = childProcess;
|
|
292
295
|
function getAuthedHttpClient() {
|
|
293
|
-
const config =
|
|
294
|
-
return { config, http: new (0,
|
|
296
|
+
const config = _chunkWSOM3TY6js.resolveConfig.call(void 0, );
|
|
297
|
+
return { config, http: new (0, _chunkWSOM3TY6js.HttpClient)(config) };
|
|
295
298
|
}
|
|
296
299
|
function stableOsUserId() {
|
|
297
300
|
try {
|
|
@@ -631,7 +634,7 @@ function collectLocalEnvInfo() {
|
|
|
631
634
|
os: `${process.platform} ${process.arch}`,
|
|
632
635
|
node_version: process.version,
|
|
633
636
|
home_dir: homeDir,
|
|
634
|
-
agent_runtime:
|
|
637
|
+
agent_runtime: _chunk2RZHMCDLjs.detectAgentRuntime.call(void 0, )
|
|
635
638
|
};
|
|
636
639
|
const env = process.env;
|
|
637
640
|
const optional = {
|
|
@@ -878,9 +881,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
878
881
|
}
|
|
879
882
|
function withAgentCommandContext(value) {
|
|
880
883
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
881
|
-
return
|
|
884
|
+
return _chunk2RZHMCDLjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
882
885
|
...valueRecord,
|
|
883
|
-
command_context:
|
|
886
|
+
command_context: _chunkWSOM3TY6js.resolveCliCommandContext.call(void 0, )
|
|
884
887
|
} : value;
|
|
885
888
|
}
|
|
886
889
|
function printJson(value, fields) {
|
|
@@ -1074,4 +1077,5 @@ function printCommandEnvelope(envelope, options = {}) {
|
|
|
1074
1077
|
|
|
1075
1078
|
|
|
1076
1079
|
|
|
1077
|
-
|
|
1080
|
+
|
|
1081
|
+
exports.parseJsonFields = parseJsonFields; exports.jsonFieldArgs = jsonFieldArgs; exports.describeArgs = describeArgs; exports.isJsonOutputMode = isJsonOutputMode; exports.installJsonStderrGuard = installJsonStderrGuard; exports.addJsonNotice = addJsonNotice; exports.writeRawStderr = writeRawStderr; exports.markJsonOutputHandled = markJsonOutputHandled; exports.takeSilentJsonFailureMessage = takeSilentJsonFailureMessage; exports.getAuthedHttpClient = getAuthedHttpClient; exports.openInBrowser = openInBrowser; exports.sleep = sleep; exports.collectLocalEnvInfo = collectLocalEnvInfo; exports.readCsvRows = readCsvRows; exports.csvStringFromRows = csvStringFromRows; exports.csvSafeJsonString = csvSafeJsonString; exports.recordRows = recordRows; exports.dataExportRows = dataExportRows; exports.dataExportColumns = dataExportColumns; exports.dataExportCsvString = dataExportCsvString; exports.markdownTableFromRows = markdownTableFromRows; exports.printJson = printJson; exports.printCompactJson = printCompactJson; exports.formatToolExecutionErrorDiagnostic = formatToolExecutionErrorDiagnostic; exports.errorToJsonPayload = errorToJsonPayload; exports.formatProviderConcurrencyDiagnostic = formatProviderConcurrencyDiagnostic; exports.printJsonError = printJsonError; exports.shouldEmitJson = shouldEmitJson; exports.argsWantJson = argsWantJson; exports.createTimestampedName = createTimestampedName; exports.clip = clip; exports.renderCommandEnvelopeText = renderCommandEnvelopeText; exports.printCommandEnvelope = printCommandEnvelope;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3GP52OHV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JQHJKARU.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-BBFWIYAF.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QXI2W7YY.mjs";
|
|
22
22
|
import {
|
|
23
23
|
printCommandEnvelope
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-56JE475N.mjs";
|
|
25
25
|
import {
|
|
26
26
|
autoDetectBaseUrl,
|
|
27
27
|
resolveApiKeyForBaseUrl
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ZVAD65CF.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
import { writeFileSync } from "fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkXSUQAUG4js = require('./chunk-XSUQAUG4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkWSOM3TY6js = require('./chunk-WSOM3TY6.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkWSOM3TY6js.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkXSUQAUG4js.PlayClient)(
|
|
142
|
+
new (0, _chunkWSOM3TY6js.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -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.499",
|
|
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."
|
|
@@ -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 _chunk7OQZZHZ4js = require('./chunk-7OQZZHZ4.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 && !_chunk7OQZZHZ4js.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 (_chunk7OQZZHZ4js.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|