deepline 0.3.554 → 0.3.555
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/sdk/src/types.ts +8 -2
- package/dist/cli/auth-MRVTS74X.js +44 -0
- package/dist/cli/{auth-HJUNW7T2.mjs → auth-UFANBJW3.mjs} +5 -5
- package/dist/cli/{billing-4TSA5HEC.js → billing-BGIT2VYM.js} +102 -102
- package/dist/cli/{billing-SJYRJAQ2.mjs → billing-S7MCXBND.mjs} +9 -9
- package/dist/cli/{chunk-VLO5NFH2.mjs → chunk-57J3OOCR.mjs} +1 -1
- package/dist/cli/{chunk-GA2M3G3Y.mjs → chunk-5J6TKML2.mjs} +4 -4
- package/dist/cli/{chunk-52Q5KETX.mjs → chunk-66BQY77L.mjs} +1 -1
- package/dist/cli/{chunk-E74KGKFZ.js → chunk-6F5GNZQH.js} +5 -5
- package/dist/cli/{chunk-5CYZHOKI.js → chunk-6M2SDRWN.js} +4 -4
- package/dist/cli/{chunk-62HWJXST.mjs → chunk-6R5Y7U52.mjs} +2 -2
- package/dist/cli/{chunk-2HMN5H54.js → chunk-72VEVAIX.js} +48 -48
- package/dist/cli/{chunk-RBBTCYQB.mjs → chunk-732RWNDP.mjs} +3 -3
- package/dist/cli/{chunk-DSKSFFK2.mjs → chunk-7H753VC5.mjs} +1 -1
- package/dist/cli/{chunk-UOT7HPBH.js → chunk-7LM55DIN.js} +41 -41
- package/dist/cli/{chunk-D6Z6POKE.mjs → chunk-ASDVROA5.mjs} +5 -5
- package/dist/cli/{chunk-3Z4VFCXO.mjs → chunk-AUY53RLU.mjs} +5 -5
- package/dist/cli/{chunk-VIUUTEHY.js → chunk-AYCC5JAS.js} +3 -3
- package/dist/cli/{chunk-33WRQSQ2.mjs → chunk-BTKVXI3G.mjs} +3 -2
- package/dist/cli/{chunk-XD3MFTHA.mjs → chunk-DFL3UBW2.mjs} +1 -1
- package/dist/cli/{chunk-OVEYWO4H.js → chunk-DYWOBLYL.js} +8 -8
- package/dist/cli/{chunk-4DOFGIEJ.js → chunk-EG44APVW.js} +12 -12
- package/dist/cli/{chunk-2ORPFQUA.mjs → chunk-FO3U5YTL.mjs} +3 -3
- package/dist/cli/{chunk-XU6QNM4D.mjs → chunk-HQK2NPXE.mjs} +1 -1
- package/dist/cli/{chunk-B6HO2XWH.mjs → chunk-I45RNMNZ.mjs} +5 -5
- package/dist/cli/{chunk-M7STM3MZ.js → chunk-IHWXC7UU.js} +26 -26
- package/dist/cli/{chunk-TOO3YM5N.js → chunk-KSUI4YX5.js} +6 -6
- package/dist/cli/{chunk-VV4XGZ24.js → chunk-LU25WURE.js} +13 -13
- package/dist/cli/{chunk-62AUAWQV.mjs → chunk-M2CW4UZV.mjs} +4 -4
- package/dist/cli/{chunk-W6CZDTIR.js → chunk-M5YBTQQX.js} +53 -53
- package/dist/cli/{chunk-OPTV7D2V.js → chunk-MIXPZ4G7.js} +100 -100
- package/dist/cli/{chunk-GHT2NDL7.js → chunk-MOJ65E7L.js} +9 -9
- package/dist/cli/{chunk-UC4BDZKI.mjs → chunk-N55EUVKV.mjs} +2 -2
- package/dist/cli/{chunk-F7CMRKSK.mjs → chunk-NFWZAQAU.mjs} +1 -1
- package/dist/cli/{chunk-FXQ3JKE3.mjs → chunk-PGPPZMXD.mjs} +1 -1
- package/dist/cli/{chunk-UYCZFQYQ.js → chunk-QMDG7FKA.js} +10 -8
- package/dist/cli/{chunk-DUBXUAAO.js → chunk-QZ2C5ARH.js} +5 -5
- package/dist/cli/{chunk-YY55NYAH.mjs → chunk-RL7ZI4ZG.mjs} +11 -11
- package/dist/cli/{chunk-YCOGPOUX.mjs → chunk-RO7SIWBG.mjs} +2 -2
- package/dist/cli/{chunk-YQKCH4R7.js → chunk-RWT6N2SU.js} +20 -20
- package/dist/cli/{chunk-2OVHNHCF.js → chunk-S2CNGS7O.js} +2 -2
- package/dist/cli/{chunk-KVBQY4ST.mjs → chunk-S65SZ74B.mjs} +4 -2
- package/dist/cli/{chunk-GRZENGNE.js → chunk-SE56PJ46.js} +2 -2
- package/dist/cli/{chunk-RTHMGSZX.js → chunk-SF2LIUVO.js} +15 -15
- package/dist/cli/{chunk-UNNOZKRT.js → chunk-T3QSHU6E.js} +1 -1
- package/dist/cli/{chunk-UBBYHB2B.mjs → chunk-T4BFNFBL.mjs} +2 -2
- package/dist/cli/{chunk-ECHKAC7M.js → chunk-TFPKGTMD.js} +2 -2
- package/dist/cli/{chunk-7OWI736E.js → chunk-U6KGXTYS.js} +23 -23
- package/dist/cli/{chunk-6EXOAT6T.mjs → chunk-UUU5WUKM.mjs} +2 -2
- package/dist/cli/{chunk-BOZAP2EM.mjs → chunk-UYYOO7VT.mjs} +5 -5
- package/dist/cli/{chunk-Q7ACILL2.mjs → chunk-W6K6WULS.mjs} +2 -2
- package/dist/cli/{chunk-TJ6HLN56.js → chunk-W7SPSF63.js} +5 -5
- package/dist/cli/{chunk-PQQMPUCZ.js → chunk-WTQGJBHD.js} +3 -3
- package/dist/cli/{chunk-S6W6SJ6E.mjs → chunk-XIHZUWIG.mjs} +1 -1
- package/dist/cli/{chunk-IVZKMJUK.js → chunk-YI4ADWTN.js} +3 -2
- package/dist/cli/{chunk-WL7P32PI.js → chunk-YXH5Q7OY.js} +20 -20
- package/dist/cli/{chunk-FBAFX43W.js → chunk-Z2T7XTND.js} +10 -10
- package/dist/cli/{chunk-VQ75KX7G.mjs → chunk-Z3O5GCQM.mjs} +2 -2
- package/dist/cli/{chunk-KZHBDMGF.mjs → chunk-ZU6A4H6P.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-CHBVPWYT.js +22 -0
- package/dist/cli/{concurrent-runs-help-O3Q5IPLF.mjs → concurrent-runs-help-I7ZLXZDD.mjs} +6 -6
- package/dist/cli/{csv-Y3BFPEM6.mjs → csv-K7FNSHIM.mjs} +4 -4
- package/dist/cli/{csv-4ZQ2RATI.js → csv-Q2Y3KKK2.js} +13 -13
- package/dist/cli/{db-3JYY4JNN.mjs → db-74RBHX6G.mjs} +6 -6
- package/dist/cli/{db-VEIFS4M7.js → db-E4XSIQDS.js} +27 -27
- package/dist/cli/describe-TUW35JSY.js +50 -0
- package/dist/cli/{describe-EVJ4MFVU.mjs → describe-UYB6WDHS.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-PCXZKEHM.mjs → executions-6LKXZRL4.mjs} +6 -6
- package/dist/cli/{executions-HPZXOOVX.js → executions-LX6HJM72.js} +8 -8
- package/dist/cli/{feedback-ZKFHFVL6.js → feedback-7D2JRVOM.js} +14 -14
- package/dist/cli/{feedback-Y6VKZNY6.mjs → feedback-B2V64TYZ.mjs} +6 -6
- package/dist/cli/{git-UMPR2QYC.mjs → git-7KNCB2HN.mjs} +5 -5
- package/dist/cli/git-TH4M62KL.js +26 -0
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-3GQCTRTF.js → integrations-34UK7XET.js} +15 -15
- package/dist/cli/{integrations-V3TM6XAB.mjs → integrations-J3RHOSAR.mjs} +7 -7
- package/dist/cli/{legacy-noops-VYCO7NGW.js → legacy-noops-HXJ6UMK7.js} +9 -9
- package/dist/cli/{legacy-noops-JZBUD7ZE.mjs → legacy-noops-WQUDES3K.mjs} +6 -6
- package/dist/cli/{mcp-4OIWTCE6.js → mcp-EZENPRPY.js} +24 -24
- package/dist/cli/{mcp-PH4KZ76P.mjs → mcp-JZPAPQYI.mjs} +4 -4
- package/dist/cli/{monitors-SSMGIDGX.mjs → monitors-GF2WEFF6.mjs} +7 -7
- package/dist/cli/{monitors-E2A6VPBY.js → monitors-GS2P4OUK.js} +100 -100
- package/dist/cli/{org-WUDZGWBT.js → org-V56HBHPB.js} +121 -121
- package/dist/cli/{org-SFDKSK5D.mjs → org-WJ2RO7ZE.mjs} +6 -6
- package/dist/cli/{outcomes-Y7SZTLSL.js → outcomes-D6KXYKGW.js} +14 -14
- package/dist/cli/{outcomes-QT7LQBPK.mjs → outcomes-WP5WV54Y.mjs} +6 -6
- package/dist/cli/{play-EK7KSFPL.mjs → play-FHHCHNQH.mjs} +34 -22
- package/dist/cli/{play-GDNHCRRR.js → play-PXUVRS4K.js} +339 -327
- package/dist/cli/{providers-FVZLRXAU.mjs → providers-HJ77LN3M.mjs} +6 -6
- package/dist/cli/{providers-ZKOSECLV.js → providers-TOXIJOY2.js} +9 -9
- package/dist/cli/{quickstart-KSDKIXYD.js → quickstart-MDXLT5SR.js} +6 -6
- package/dist/cli/{quickstart-UJZ6PIQV.mjs → quickstart-UEQHXEWP.mjs} +4 -4
- package/dist/cli/{run-PD2BBG6S.js → run-2MXAEH6U.js} +48 -54
- package/dist/cli/{run-E7MZ7P35.mjs → run-ZZ5ABZL7.mjs} +27 -33
- package/dist/cli/search-6DT2TGOU.js +32 -0
- package/dist/cli/{search-VTFUFTOY.mjs → search-AF4XVWC2.mjs} +7 -7
- package/dist/cli/{search-output-PFVXQCWA.mjs → search-output-3GFQJJGJ.mjs} +4 -4
- package/dist/cli/{search-output-G2AGDCOY.js → search-output-LEKJVZSH.js} +6 -6
- package/dist/cli/{secrets-BCOQ4U7U.js → secrets-MR2FNFGD.js} +15 -15
- package/dist/cli/{secrets-7CIMEMX7.mjs → secrets-TLH3FKCT.mjs} +6 -6
- package/dist/cli/sessions-EJYLWV2M.js +23 -0
- package/dist/cli/{sessions-IUCQZEF7.mjs → sessions-LUL5P66K.mjs} +6 -6
- package/dist/cli/{settings-KZN62UQK.mjs → settings-AWSRUTZR.mjs} +12 -12
- package/dist/cli/{settings-REL4736M.js → settings-Z2HYUOL7.js} +85 -85
- package/dist/cli/{setup-2XIVBBCS.js → setup-FIMXN4IC.js} +49 -49
- package/dist/cli/{setup-2P7OG3OU.mjs → setup-PFPAJOUI.mjs} +9 -9
- package/dist/cli/skills-232RNG5G.js +37 -0
- package/dist/cli/{skills-VIGNDJKI.mjs → skills-5DKSATY5.mjs} +7 -7
- package/dist/cli/{tools-W3QT5EJY.mjs → tools-BDNASCSH.mjs} +17 -17
- package/dist/cli/tools-P7FBJVJA.js +57 -0
- package/dist/cli/{update-GZVBVMY3.mjs → update-CAFUZ5XT.mjs} +9 -9
- package/dist/cli/update-OC4UB2XE.js +37 -0
- package/dist/cli/{views-BOGEH424.mjs → views-7PDXZUQA.mjs} +6 -6
- package/dist/cli/{views-TOLJNLSV.js → views-XJOBO6US.js} +21 -21
- package/dist/cli/{workflow-VDG2FDQV.mjs → workflow-2BMUGN7M.mjs} +7 -7
- package/dist/cli/{workflow-ENWFRK5M.js → workflow-KCPLU5R7.js} +17 -17
- package/dist/{client-B8f7RNF8.d.mts → client-1ogYQqUw.d.mts} +1 -1
- package/dist/{client-C5TgXmJQ.d.ts → client-BoayTB7p.d.ts} +1 -1
- package/dist/{client-core-SLLGBTht.d.mts → client-core-Ch8CXaX4.d.mts} +8 -2
- package/dist/{client-core-p0sOxnkl.d.ts → client-core-DySw9x_E.d.ts} +8 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -118
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-SP6SKZJZ.js +0 -44
- package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +0 -22
- package/dist/cli/describe-FG625QPF.js +0 -50
- package/dist/cli/git-RUBMALLH.js +0 -26
- package/dist/cli/search-TKSPTPHA.js +0 -32
- package/dist/cli/sessions-4CO556VD.js +0 -23
- package/dist/cli/skills-JYT5DEY6.js +0 -37
- package/dist/cli/tools-NTVUQ2TG.js +0 -57
- package/dist/cli/update-TWJZPUZM.js +0 -37
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkCSPHSNBWjs = require('./chunk-CSPHSNBW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDYWOBLYLjs = require('./chunk-DYWOBLYL.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
|
|
@@ -11,7 +11,7 @@ var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
|
|
|
581
581
|
return raw;
|
|
582
582
|
}
|
|
583
583
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
584
|
-
const selection =
|
|
584
|
+
const selection = _chunkRWT6N2SUjs.parseJsonFields.call(void 0, args, "run");
|
|
585
585
|
args = selection.args;
|
|
586
586
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
587
587
|
let filePath = null;
|
|
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
593
593
|
let revisionSelector = null;
|
|
594
594
|
const watch = !args.includes("--no-wait");
|
|
595
595
|
const dryRun = args.includes("--dry-run");
|
|
596
|
-
let jsonOutput = dryRun ?
|
|
596
|
+
let jsonOutput = dryRun ? _chunkRWT6N2SUjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkRWT6N2SUjs.argsWantJson.call(void 0, args);
|
|
597
597
|
const fullJson = args.includes("--full");
|
|
598
598
|
const force = args.includes("--force") || args.includes("--from-start");
|
|
599
599
|
const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
|
|
@@ -657,7 +657,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
657
657
|
"--log-level requires one of: debug, info, warn, error."
|
|
658
658
|
);
|
|
659
659
|
}
|
|
660
|
-
const parsed =
|
|
660
|
+
const parsed = _chunkDYWOBLYLjs.parseLogLevel.call(void 0, value);
|
|
661
661
|
if (!parsed) {
|
|
662
662
|
throw new Error(
|
|
663
663
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -990,7 +990,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
990
990
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
991
991
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
992
992
|
);
|
|
993
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
993
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkDYWOBLYLjs.parseLogLevel.call(void 0, options.logLevel);
|
|
994
994
|
if (!logLevel)
|
|
995
995
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
996
996
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -1004,13 +1004,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
1004
1004
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
1005
1005
|
logLevel = "debug";
|
|
1006
1006
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
1007
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
1008
|
-
[...fullJson ? ["--full"] : [], ...
|
|
1007
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkRWT6N2SUjs.parseJsonFields.call(void 0,
|
|
1008
|
+
[...fullJson ? ["--full"] : [], ..._chunkRWT6N2SUjs.jsonFieldArgs.call(void 0, options.json)],
|
|
1009
1009
|
"run"
|
|
1010
1010
|
).fields;
|
|
1011
1011
|
const watch = options.wait === false ? false : base.watch;
|
|
1012
1012
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
1013
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
1013
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkRWT6N2SUjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
1014
1014
|
const verboseLogs = Boolean(
|
|
1015
1015
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1016
1016
|
);
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
resolveApiKeyForBaseUrl,
|
|
5
5
|
resolveCliCommandContext,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-66BQY77L.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-XIHZUWIG.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError,
|
|
17
17
|
normalizeToolExecutionFailure,
|
|
@@ -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.555",
|
|
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."
|
|
@@ -9,7 +9,7 @@ var _chunkLY5MMXFFjs = require('./chunk-LY5MMXFF.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.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 _chunkRWT6N2SUjs.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 _chunkRWT6N2SUjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
648
|
let temp;
|
|
@@ -753,6 +753,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
753
753
|
id: result.id,
|
|
754
754
|
name: _nullishCoalesce(options.label, () => ( null)),
|
|
755
755
|
credits: _nullishCoalesce(result.credits, () => ( null)),
|
|
756
|
+
...result.creditsPostedSoFar ? { creditsPostedSoFar: true } : {},
|
|
756
757
|
outputs,
|
|
757
758
|
page: _nullishCoalesce(result.page, () => ( null)),
|
|
758
759
|
price: _nullishCoalesce(result.price, () => ( null)),
|
|
@@ -769,7 +770,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
769
770
|
};
|
|
770
771
|
if (options.receiptOut && !skipReceiptFile) {
|
|
771
772
|
persist(options.receiptOut, jsonText(receipt));
|
|
772
|
-
|
|
773
|
+
_chunkRWT6N2SUjs.markJsonOutputHandled.call(void 0, );
|
|
773
774
|
} else {
|
|
774
775
|
printReceipt(receipt, options, {
|
|
775
776
|
data: hasData ? result.data : void 0,
|
|
@@ -824,6 +825,7 @@ var HEADLINES = {
|
|
|
824
825
|
};
|
|
825
826
|
var NEXT_NOTES = {
|
|
826
827
|
billing: "what this call cost",
|
|
828
|
+
settledCost: "cost once every charge has posted",
|
|
827
829
|
status: "check on the run",
|
|
828
830
|
export: "save its rows once it finishes",
|
|
829
831
|
getActorRun: "check the Apify run",
|
|
@@ -901,7 +903,7 @@ function receiptText(receipt, options, extra) {
|
|
|
901
903
|
`${_optionalChain([options, 'access', _13 => _13.label, 'optionalAccess', _14 => _14.endsWith, 'call', _15 => _15("(tool)")]) ? "Call Id" : "Run Id"}: ${receipt.id}`
|
|
902
904
|
] : [],
|
|
903
905
|
...receipt.credits !== null ? [
|
|
904
|
-
`Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}`
|
|
906
|
+
`Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}${receipt.creditsPostedSoFar ? " posted so far" : ""}`
|
|
905
907
|
] : [],
|
|
906
908
|
...receipt.price ? [`Price: ${receipt.price}`] : []
|
|
907
909
|
]
|
|
@@ -937,7 +939,7 @@ function receiptText(receipt, options, extra) {
|
|
|
937
939
|
problems.push(
|
|
938
940
|
`Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
|
|
939
941
|
);
|
|
940
|
-
const diagnostic =
|
|
942
|
+
const diagnostic = _chunkRWT6N2SUjs.formatCliFailureDiagnostic.call(void 0, error);
|
|
941
943
|
if (diagnostic) problems.push(...diagnostic.split("\n"));
|
|
942
944
|
if (record(error) && typeof error.recoveryFile === "string") {
|
|
943
945
|
problems.push(
|
|
@@ -1030,8 +1032,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1030
1032
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1031
1033
|
` : receiptText(receipt, options, extra);
|
|
1032
1034
|
if (options.receiptOut !== void 0) {
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
+
_chunkRWT6N2SUjs.writeRawStderr.call(void 0, text);
|
|
1036
|
+
_chunkRWT6N2SUjs.markJsonOutputHandled.call(void 0, );
|
|
1035
1037
|
} else {
|
|
1036
1038
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1037
1039
|
}
|
|
@@ -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 _chunkDYWOBLYLjs = require('./chunk-DYWOBLYL.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAYCC5JASjs = require('./chunk-AYCC5JAS.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkDYWOBLYLjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkAYCC5JASjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkAYCC5JASjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-S65SZ74B.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-6R5Y7U52.mjs";
|
|
15
15
|
import {
|
|
16
16
|
recentSearchRef,
|
|
17
17
|
registerDeprecatedSearchCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5J6TKML2.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-UUU5WUKM.mjs";
|
|
61
61
|
import {
|
|
62
62
|
validateExecutionIdempotencyKey
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-57J3OOCR.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-I45RNMNZ.mjs";
|
|
71
71
|
import {
|
|
72
72
|
isCliTraceEnabled,
|
|
73
73
|
recordCliTrace,
|
|
74
74
|
resolveCliMaintenancePolicy
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-NFWZAQAU.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-UYYOO7VT.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-N55EUVKV.mjs";
|
|
92
92
|
import {
|
|
93
93
|
readSdkSkillsLocalVersion,
|
|
94
94
|
resolveConfig,
|
|
95
95
|
sdkCliStateDirPath
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-66BQY77L.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-UYB6WDHS.mjs");
|
|
1056
1056
|
process.exitCode = await describeAnything(
|
|
1057
1057
|
toolId,
|
|
1058
1058
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NFWZAQAU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
enforceSdkCompatibilityResponse,
|
|
6
6
|
flushDeferredSkillsSyncNotices,
|
|
7
7
|
requireSdkCompatibility
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UYYOO7VT.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAYCC5JASjs = require('./chunk-AYCC5JAS.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk6M2SDRWNjs = require('./chunk-6M2SDRWN.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -331,7 +331,7 @@ function buildEnvironmentContext() {
|
|
|
331
331
|
node_version: process.version,
|
|
332
332
|
runtime: "Node.js",
|
|
333
333
|
hostname: _os.hostname.call(void 0, ),
|
|
334
|
-
agent_runtime:
|
|
334
|
+
agent_runtime: _chunk6M2SDRWNjs.detectAgentRuntime.call(void 0, )
|
|
335
335
|
};
|
|
336
336
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
337
337
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -352,18 +352,18 @@ function buildEnvironmentContext() {
|
|
|
352
352
|
return context;
|
|
353
353
|
}
|
|
354
354
|
function failureReportHeaders(apiKey) {
|
|
355
|
-
const agentSessionId =
|
|
355
|
+
const agentSessionId = _chunk6M2SDRWNjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
356
356
|
return {
|
|
357
|
-
...
|
|
357
|
+
..._chunk6M2SDRWNjs.deploymentProtectionHeaders.call(void 0, ),
|
|
358
358
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
359
359
|
Authorization: `Bearer ${apiKey}`,
|
|
360
360
|
"Content-Type": "application/json",
|
|
361
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
361
|
+
"User-Agent": `deepline-ts-sdk/${_chunk6M2SDRWNjs.SDK_VERSION}`,
|
|
362
362
|
"X-Deepline-Client-Family": "sdk",
|
|
363
363
|
"X-Deepline-CLI-Family": "sdk",
|
|
364
|
-
"X-Deepline-Agent-Runtime":
|
|
365
|
-
"X-Deepline-CLI-Version":
|
|
366
|
-
"X-Deepline-SDK-Version":
|
|
364
|
+
"X-Deepline-Agent-Runtime": _chunk6M2SDRWNjs.detectAgentRuntime.call(void 0, ),
|
|
365
|
+
"X-Deepline-CLI-Version": _chunk6M2SDRWNjs.SDK_VERSION,
|
|
366
|
+
"X-Deepline-SDK-Version": _chunk6M2SDRWNjs.SDK_VERSION
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
async function postFailureReport(input) {
|
|
@@ -391,7 +391,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
391
391
|
if (isFailureReportingDisabled()) return false;
|
|
392
392
|
let apiKey = "";
|
|
393
393
|
try {
|
|
394
|
-
apiKey =
|
|
394
|
+
apiKey = _chunkAYCC5JASjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
395
395
|
} catch (e2) {
|
|
396
396
|
return false;
|
|
397
397
|
}
|
|
@@ -418,7 +418,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
418
418
|
failure_code: failureCode2,
|
|
419
419
|
failure_stage: failureStage,
|
|
420
420
|
error_body: "Automatic Deepline skills installation failed.",
|
|
421
|
-
cli_version:
|
|
421
|
+
cli_version: _chunk6M2SDRWNjs.SDK_VERSION,
|
|
422
422
|
context: {
|
|
423
423
|
environment: buildEnvironmentContext(),
|
|
424
424
|
skills_sync: {
|
|
@@ -538,7 +538,7 @@ function buildFailureReport(input) {
|
|
|
538
538
|
failure_kind: failureKind,
|
|
539
539
|
failure_code: code,
|
|
540
540
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
541
|
-
cli_version:
|
|
541
|
+
cli_version: _chunk6M2SDRWNjs.SDK_VERSION,
|
|
542
542
|
context: {
|
|
543
543
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
544
544
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -558,8 +558,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
558
558
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
559
559
|
const exitCode = resolvedExitCode(input);
|
|
560
560
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
561
|
-
const baseUrl =
|
|
562
|
-
const apiKey =
|
|
561
|
+
const baseUrl = _chunkAYCC5JASjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
562
|
+
const apiKey = _chunkAYCC5JASjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
563
563
|
if (!apiKey) return false;
|
|
564
564
|
return postFailureReport({
|
|
565
565
|
baseUrl,
|
|
@@ -914,8 +914,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
914
914
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
915
915
|
var defaultBrowserCommandRunner = childProcess;
|
|
916
916
|
function getAuthedHttpClient() {
|
|
917
|
-
const config =
|
|
918
|
-
return { config, http: new (0,
|
|
917
|
+
const config = _chunkAYCC5JASjs.resolveConfig.call(void 0, );
|
|
918
|
+
return { config, http: new (0, _chunkAYCC5JASjs.HttpClient)(config) };
|
|
919
919
|
}
|
|
920
920
|
function stableOsUserId() {
|
|
921
921
|
try {
|
|
@@ -1256,7 +1256,7 @@ function collectLocalEnvInfo() {
|
|
|
1256
1256
|
os: `${process.platform} ${process.arch}`,
|
|
1257
1257
|
node_version: process.version,
|
|
1258
1258
|
home_dir: homeDir,
|
|
1259
|
-
agent_runtime:
|
|
1259
|
+
agent_runtime: _chunk6M2SDRWNjs.detectAgentRuntime.call(void 0, )
|
|
1260
1260
|
};
|
|
1261
1261
|
const env = process.env;
|
|
1262
1262
|
const optional = {
|
|
@@ -1503,9 +1503,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
function withAgentCommandContext(value) {
|
|
1505
1505
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1506
|
-
return
|
|
1506
|
+
return _chunk6M2SDRWNjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1507
1507
|
...valueRecord,
|
|
1508
|
-
command_context:
|
|
1508
|
+
command_context: _chunkAYCC5JASjs.resolveCliCommandContext.call(void 0, )
|
|
1509
1509
|
} : value;
|
|
1510
1510
|
}
|
|
1511
1511
|
function printJson(value, fields, options = {}) {
|
|
@@ -1677,7 +1677,7 @@ function errorToJsonPayload(error) {
|
|
|
1677
1677
|
...upstreamResponse ? { upstreamResponse } : {},
|
|
1678
1678
|
...Object.keys(details).length > 0 ? { details } : {}
|
|
1679
1679
|
};
|
|
1680
|
-
const retry = cliRetryGuidance(payloadError,
|
|
1680
|
+
const retry = cliRetryGuidance(payloadError, _chunk6M2SDRWNjs.readToolFailureHint.call(void 0, error));
|
|
1681
1681
|
return {
|
|
1682
1682
|
ok: false,
|
|
1683
1683
|
status: "failed",
|
|
@@ -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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
formatCliFailureDiagnostic,
|
|
10
10
|
markJsonOutputHandled,
|
|
11
11
|
writeRawStderr
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N55EUVKV.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -753,6 +753,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
753
753
|
id: result.id,
|
|
754
754
|
name: options.label ?? null,
|
|
755
755
|
credits: result.credits ?? null,
|
|
756
|
+
...result.creditsPostedSoFar ? { creditsPostedSoFar: true } : {},
|
|
756
757
|
outputs,
|
|
757
758
|
page: result.page ?? null,
|
|
758
759
|
price: result.price ?? null,
|
|
@@ -824,6 +825,7 @@ var HEADLINES = {
|
|
|
824
825
|
};
|
|
825
826
|
var NEXT_NOTES = {
|
|
826
827
|
billing: "what this call cost",
|
|
828
|
+
settledCost: "cost once every charge has posted",
|
|
827
829
|
status: "check on the run",
|
|
828
830
|
export: "save its rows once it finishes",
|
|
829
831
|
getActorRun: "check the Apify run",
|
|
@@ -901,7 +903,7 @@ function receiptText(receipt, options, extra) {
|
|
|
901
903
|
`${options.label?.endsWith("(tool)") ? "Call Id" : "Run Id"}: ${receipt.id}`
|
|
902
904
|
] : [],
|
|
903
905
|
...receipt.credits !== null ? [
|
|
904
|
-
`Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}`
|
|
906
|
+
`Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}${receipt.creditsPostedSoFar ? " posted so far" : ""}`
|
|
905
907
|
] : [],
|
|
906
908
|
...receipt.price ? [`Price: ${receipt.price}`] : []
|
|
907
909
|
]
|
|
@@ -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 _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.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
|
+
_chunkRWT6N2SUjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -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 _chunkMIXPZ4G7js = require('./chunk-MIXPZ4G7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQMDG7FKAjs = require('./chunk-QMDG7FKA.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 _chunkQZ2C5ARHjs = require('./chunk-QZ2C5ARH.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkAYCC5JASjs = require('./chunk-AYCC5JAS.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 (_chunkRWT6N2SUjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
36
36
|
try {
|
|
37
|
-
const baseUrl =
|
|
38
|
-
const apiKey =
|
|
37
|
+
const baseUrl = _chunkAYCC5JASjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
38
|
+
const apiKey = _chunkAYCC5JASjs.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: _chunkRWT6N2SUjs.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, _chunkQZ2C5ARHjs.DeeplineClient)()));
|
|
56
56
|
}
|
|
57
57
|
async function describeAnything(name, options, onMissing) {
|
|
58
|
-
const client = new (0,
|
|
58
|
+
const client = new (0, _chunkQZ2C5ARHjs.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: _chunkMIXPZ4G7js.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
|
+
_chunkRWT6N2SUjs.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
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
101
101
|
return 0;
|
|
102
102
|
}
|
|
103
103
|
function registerDescribeCommand(program) {
|
|
104
|
-
|
|
104
|
+
_chunkQMDG7FKAjs.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",
|
|
@@ -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.555",
|
|
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,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-57J3OOCR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-66BQY77L.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -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 _chunk72VEVAIXjs = require('./chunk-72VEVAIX.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 = _chunk72VEVAIXjs.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",
|