deepline 0.3.555 → 0.3.557
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -0
- package/dist/cli/auth-F7QPLPTB.js +44 -0
- package/dist/cli/{auth-UFANBJW3.mjs → auth-SGWFS2DS.mjs} +5 -5
- package/dist/cli/{billing-BGIT2VYM.js → billing-G6C2LUSN.js} +99 -99
- package/dist/cli/{billing-S7MCXBND.mjs → billing-XJZX3JSG.mjs} +8 -8
- package/dist/cli/{chunk-66BQY77L.mjs → chunk-24PL5QN5.mjs} +1 -1
- package/dist/cli/{chunk-MIXPZ4G7.js → chunk-25SOYGAX.js} +274 -274
- package/dist/cli/{chunk-W6K6WULS.mjs → chunk-2TTAHHSJ.mjs} +2 -2
- package/dist/cli/{chunk-LY5MMXFF.js → chunk-2YT2TFNX.js} +17 -2
- package/dist/cli/{chunk-TGUQET3O.mjs → chunk-4AE3A4SL.mjs} +1 -1
- package/dist/cli/{chunk-6R5Y7U52.mjs → chunk-4YNKJTCP.mjs} +2 -2
- package/dist/cli/{chunk-6M2SDRWN.js → chunk-5H7BLMNH.js} +4 -4
- package/dist/cli/{chunk-ZU6A4H6P.mjs → chunk-5RVSMMQV.mjs} +2 -2
- package/dist/cli/{chunk-M5YBTQQX.js → chunk-5S2G32ZX.js} +53 -53
- package/dist/cli/{chunk-LU25WURE.js → chunk-6C3E6ZZ3.js} +13 -13
- package/dist/cli/{chunk-EG44APVW.js → chunk-6ZBAXLOR.js} +12 -12
- package/dist/cli/{chunk-T3QSHU6E.js → chunk-7AMUXIZ5.js} +1 -1
- package/dist/cli/{chunk-W7SPSF63.js → chunk-A6FYP3KU.js} +5 -5
- package/dist/cli/{chunk-T4BFNFBL.mjs → chunk-ARYKF2YT.mjs} +2 -2
- package/dist/cli/{chunk-SF2LIUVO.js → chunk-B2V6NKX7.js} +20 -20
- package/dist/cli/{chunk-72VEVAIX.js → chunk-C46GRCHZ.js} +48 -48
- package/dist/cli/{chunk-7H753VC5.mjs → chunk-C6M5TIPZ.mjs} +1 -1
- package/dist/cli/{chunk-Z3O5GCQM.mjs → chunk-CDLTF6M2.mjs} +2 -2
- package/dist/cli/{chunk-EN5NHCCQ.js → chunk-CPDXS2UK.js} +17 -17
- package/dist/cli/{chunk-MOJ65E7L.js → chunk-DTMUYIUO.js} +9 -9
- package/dist/cli/{chunk-RO7SIWBG.mjs → chunk-DUXL7U7U.mjs} +2 -2
- package/dist/cli/{chunk-Z2T7XTND.js → chunk-EZNYE6GZ.js} +10 -10
- package/dist/cli/{chunk-FO3U5YTL.mjs → chunk-GC4HHDE4.mjs} +3 -3
- package/dist/cli/{chunk-PGPPZMXD.mjs → chunk-GENZXMNR.mjs} +1 -1
- package/dist/cli/{chunk-QMDG7FKA.js → chunk-JMDLLVIR.js} +11 -11
- package/dist/cli/{chunk-HQK2NPXE.mjs → chunk-JORWYP5P.mjs} +1 -1
- package/dist/cli/{chunk-U6KGXTYS.js → chunk-JWPJXCD2.js} +23 -23
- package/dist/cli/{chunk-AUY53RLU.mjs → chunk-JX4X4KAZ.mjs} +7 -7
- package/dist/cli/{chunk-QZ2C5ARH.js → chunk-JY2EJQL5.js} +5 -5
- package/dist/cli/{chunk-6F5GNZQH.js → chunk-K35ZLTN2.js} +5 -5
- package/dist/cli/{chunk-AYCC5JAS.js → chunk-L5JD66EF.js} +3 -3
- package/dist/cli/{chunk-DYWOBLYL.js → chunk-L7DGWNF7.js} +8 -8
- package/dist/cli/{chunk-YXH5Q7OY.js → chunk-MZSUMGWN.js} +20 -20
- package/dist/cli/{chunk-7LM55DIN.js → chunk-NHGQHMV7.js} +41 -41
- package/dist/cli/{chunk-5J6TKML2.mjs → chunk-NW6NYTYM.mjs} +4 -4
- package/dist/cli/{chunk-IHWXC7UU.js → chunk-NWQZIBPY.js} +26 -26
- package/dist/cli/{chunk-PC2FTUCP.mjs → chunk-NXYBZSRL.mjs} +2 -2
- package/dist/cli/{chunk-UUU5WUKM.mjs → chunk-OBW2YFHR.mjs} +2 -2
- package/dist/cli/{chunk-SE56PJ46.js → chunk-ODBQY6MD.js} +2 -2
- package/dist/cli/{chunk-M2CW4UZV.mjs → chunk-OOCGLW46.mjs} +4 -4
- package/dist/cli/{chunk-NFWZAQAU.mjs → chunk-PITVKXY3.mjs} +1 -1
- package/dist/cli/{chunk-3IKGZ4CG.js → chunk-PK6MYC5E.js} +7 -7
- package/dist/cli/{chunk-ASDVROA5.mjs → chunk-QUAPOFCA.mjs} +5 -5
- package/dist/cli/{chunk-TFPKGTMD.js → chunk-T26CM5LC.js} +2 -2
- package/dist/cli/{chunk-732RWNDP.mjs → chunk-TPRMS2D7.mjs} +3 -3
- package/dist/cli/{chunk-RL7ZI4ZG.mjs → chunk-TW7HFIQG.mjs} +13 -13
- package/dist/cli/{chunk-XIHZUWIG.mjs → chunk-U7LDRRRB.mjs} +1 -1
- package/dist/cli/{chunk-S2CNGS7O.js → chunk-UP2CQTGX.js} +2 -2
- package/dist/cli/{chunk-RWT6N2SU.js → chunk-UVFR7FW4.js} +20 -20
- package/dist/cli/{chunk-XFZX6FNM.mjs → chunk-VLXLKNR4.mjs} +17 -2
- package/dist/cli/{chunk-S65SZ74B.mjs → chunk-VVGGQBAV.mjs} +2 -2
- package/dist/cli/{chunk-KSUI4YX5.js → chunk-WSX76BQX.js} +6 -6
- package/dist/cli/{chunk-57J3OOCR.mjs → chunk-WZKWSIZS.mjs} +1 -1
- package/dist/cli/{chunk-UYYOO7VT.mjs → chunk-XJUHHIH4.mjs} +5 -5
- package/dist/cli/{chunk-I45RNMNZ.mjs → chunk-YQDBHVYJ.mjs} +5 -5
- package/dist/cli/{chunk-DFL3UBW2.mjs → chunk-YUB7OX65.mjs} +1 -1
- package/dist/cli/{chunk-WTQGJBHD.js → chunk-ZAR6JSI6.js} +3 -3
- package/dist/cli/{chunk-N55EUVKV.mjs → chunk-ZKLUGMPE.mjs} +2 -2
- package/dist/cli/concurrent-runs-help-3KEUX2GA.js +22 -0
- package/dist/cli/{concurrent-runs-help-I7ZLXZDD.mjs → concurrent-runs-help-HSBXPVDN.mjs} +6 -6
- package/dist/cli/{csv-Q2Y3KKK2.js → csv-JEOU3DOF.js} +13 -13
- package/dist/cli/{csv-K7FNSHIM.mjs → csv-OQGWJ4HU.mjs} +4 -4
- package/dist/cli/{db-E4XSIQDS.js → db-75WPSR3C.js} +27 -27
- package/dist/cli/{db-74RBHX6G.mjs → db-YHCKYQJI.mjs} +6 -6
- package/dist/cli/{describe-UYB6WDHS.mjs → describe-TSW245QQ.mjs} +21 -21
- package/dist/cli/describe-ZUATHN4Z.js +50 -0
- package/dist/cli/describe-core.d.mts +5 -0
- package/dist/cli/describe-core.d.ts +5 -0
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-6LKXZRL4.mjs → executions-NW3SQULX.mjs} +6 -6
- package/dist/cli/{executions-LX6HJM72.js → executions-PNSETDOA.js} +8 -8
- package/dist/cli/{feedback-7D2JRVOM.js → feedback-LXTVGS4E.js} +14 -14
- package/dist/cli/{feedback-B2V64TYZ.mjs → feedback-R2Y4APBY.mjs} +6 -6
- package/dist/cli/git-GAXMETIP.js +26 -0
- package/dist/cli/{git-7KNCB2HN.mjs → git-S7DESBSB.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-J3RHOSAR.mjs → integrations-CQWODJ23.mjs} +7 -7
- package/dist/cli/{integrations-34UK7XET.js → integrations-ZLMM2CMG.js} +15 -15
- package/dist/cli/{legacy-noops-HXJ6UMK7.js → legacy-noops-4UDVSN5R.js} +9 -9
- package/dist/cli/{legacy-noops-WQUDES3K.mjs → legacy-noops-EGD7QOML.mjs} +6 -6
- package/dist/cli/{mcp-EZENPRPY.js → mcp-5W4HWAMB.js} +24 -24
- package/dist/cli/{mcp-JZPAPQYI.mjs → mcp-Q3SKD3A2.mjs} +4 -4
- package/dist/cli/{monitors-GS2P4OUK.js → monitors-NA6QQRUK.js} +100 -100
- package/dist/cli/{monitors-GF2WEFF6.mjs → monitors-ZXHOLBOO.mjs} +7 -7
- package/dist/cli/{org-V56HBHPB.js → org-25E7SBZP.js} +121 -121
- package/dist/cli/{org-WJ2RO7ZE.mjs → org-O3NSKVA7.mjs} +6 -6
- package/dist/cli/{outcomes-D6KXYKGW.js → outcomes-O5DS5XSH.js} +14 -14
- package/dist/cli/{outcomes-WP5WV54Y.mjs → outcomes-TEXVO2EV.mjs} +6 -6
- package/dist/cli/{play-PXUVRS4K.js → play-2FVIRT7Z.js} +337 -337
- package/dist/cli/{play-FHHCHNQH.mjs → play-UFAJEDX4.mjs} +20 -20
- package/dist/cli/{providers-TOXIJOY2.js → providers-4C4TJ5N3.js} +9 -9
- package/dist/cli/{providers-HJ77LN3M.mjs → providers-LCJA4VQ7.mjs} +6 -6
- package/dist/cli/{quickstart-MDXLT5SR.js → quickstart-2OAKQFLT.js} +6 -6
- package/dist/cli/{quickstart-UEQHXEWP.mjs → quickstart-QOJLPGFW.mjs} +4 -4
- package/dist/cli/{run-ZZ5ABZL7.mjs → run-SNAFQJWR.mjs} +26 -26
- package/dist/cli/{run-2MXAEH6U.js → run-SV3EPJGU.js} +48 -48
- package/dist/cli/search-DCHBSXPZ.js +32 -0
- package/dist/cli/{search-AF4XVWC2.mjs → search-KIJZGURG.mjs} +7 -7
- package/dist/cli/{search-output-3GFQJJGJ.mjs → search-output-OESDMVBG.mjs} +5 -5
- package/dist/cli/{search-output-LEKJVZSH.js → search-output-WRHLYDZX.js} +8 -8
- package/dist/cli/{secrets-TLH3FKCT.mjs → secrets-5WCCHFM5.mjs} +6 -6
- package/dist/cli/{secrets-MR2FNFGD.js → secrets-GH6KF5VR.js} +15 -15
- package/dist/cli/{sessions-LUL5P66K.mjs → sessions-52MAEUFQ.mjs} +6 -6
- package/dist/cli/sessions-MYG6BH6T.js +23 -0
- package/dist/cli/{settings-Z2HYUOL7.js → settings-5RSARPXF.js} +85 -85
- package/dist/cli/{settings-AWSRUTZR.mjs → settings-HDOBMJ5A.mjs} +12 -12
- package/dist/cli/{setup-FIMXN4IC.js → setup-4DTCFBOX.js} +49 -49
- package/dist/cli/{setup-PFPAJOUI.mjs → setup-UY3TSZZV.mjs} +9 -9
- package/dist/cli/skills-EOC2MSQK.js +37 -0
- package/dist/cli/{skills-5DKSATY5.mjs → skills-QUWJHOEZ.mjs} +7 -7
- package/dist/cli/tools-AGOX64LC.js +57 -0
- package/dist/cli/{tools-BDNASCSH.mjs → tools-U2LH642W.mjs} +19 -19
- package/dist/cli/{update-CAFUZ5XT.mjs → update-3H4E5YJ7.mjs} +9 -9
- package/dist/cli/update-OLLOIH4U.js +37 -0
- package/dist/cli/{views-XJOBO6US.js → views-2LUZ3ATR.js} +21 -21
- package/dist/cli/{views-7PDXZUQA.mjs → views-7WOYBLLQ.mjs} +6 -6
- package/dist/cli/{workflow-2BMUGN7M.mjs → workflow-55OASFLG.mjs} +7 -7
- package/dist/cli/{workflow-KCPLU5R7.js → workflow-YME2SGMA.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -118
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-MRVTS74X.js +0 -44
- package/dist/cli/concurrent-runs-help-CHBVPWYT.js +0 -22
- package/dist/cli/describe-TUW35JSY.js +0 -50
- package/dist/cli/git-TH4M62KL.js +0 -26
- package/dist/cli/search-6DT2TGOU.js +0 -32
- package/dist/cli/sessions-EJYLWV2M.js +0 -23
- package/dist/cli/skills-232RNG5G.js +0 -37
- package/dist/cli/tools-P7FBJVJA.js +0 -57
- package/dist/cli/update-OC4UB2XE.js +0 -37
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkCSPHSNBWjs = require('./chunk-CSPHSNBW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkL7DGWNF7js = require('./chunk-L7DGWNF7.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 _chunkUVFR7FW4js = require('./chunk-UVFR7FW4.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 = _chunkUVFR7FW4js.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 ? _chunkUVFR7FW4js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkUVFR7FW4js.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 = _chunkL7DGWNF7js.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 : _chunkL7DGWNF7js.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 : _chunkUVFR7FW4js.parseJsonFields.call(void 0,
|
|
1008
|
+
[...fullJson ? ["--full"] : [], ..._chunkUVFR7FW4js.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 || _chunkUVFR7FW4js.argsWantJson.call(void 0, []) : explicitJson;
|
|
1014
1014
|
const verboseLogs = Boolean(
|
|
1015
1015
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1016
1016
|
);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PITVKXY3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
enforceSdkCompatibilityResponse,
|
|
6
6
|
flushDeferredSkillsSyncNotices,
|
|
7
7
|
requireSdkCompatibility
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XJUHHIH4.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJY2EJQL5js = require('./chunk-JY2EJQL5.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkUVFR7FW4js = require('./chunk-UVFR7FW4.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkL5JD66EFjs = require('./chunk-L5JD66EF.js');
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
var _commander = require('commander');
|
|
@@ -22,7 +22,7 @@ var _fs = require('fs');
|
|
|
22
22
|
var _path = require('path');
|
|
23
23
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
24
24
|
function lastSearchPath() {
|
|
25
|
-
return _path.join.call(void 0,
|
|
25
|
+
return _path.join.call(void 0, _chunkL5JD66EFjs.sdkCliStateDirPath.call(void 0, _chunkL5JD66EFjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
26
26
|
}
|
|
27
27
|
function rememberSearchRef(searchRef) {
|
|
28
28
|
writeSearchRefs({ searchRef });
|
|
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
132
132
|
console.error("--summary-width must be an integer of at least 2.");
|
|
133
133
|
return 1;
|
|
134
134
|
}
|
|
135
|
-
const client = new (0,
|
|
135
|
+
const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-WRHLYDZX.js")));
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
157
157
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
158
158
|
if (!multiple) {
|
|
159
159
|
if (searchRef) rememberSearchRef(searchRef);
|
|
160
|
-
|
|
160
|
+
_chunkUVFR7FW4js.printCommandEnvelope.call(void 0, result, { json, text });
|
|
161
161
|
return 0;
|
|
162
162
|
}
|
|
163
163
|
searches.push({ ...result, query });
|
|
@@ -171,8 +171,8 @@ ${text}`);
|
|
|
171
171
|
}
|
|
172
172
|
} catch (error) {
|
|
173
173
|
if (!multiple) throw error;
|
|
174
|
-
const payload =
|
|
175
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
174
|
+
const payload = _chunkUVFR7FW4js.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkUVFR7FW4js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
176
176
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
177
177
|
if (!json) {
|
|
178
178
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -184,7 +184,7 @@ Search failed.
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
rememberSearchRefsByTool(refs);
|
|
187
|
-
|
|
187
|
+
_chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZKLUGMPE.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-24PL5QN5.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-U7LDRRRB.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -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.557",
|
|
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."
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2YT2TFNXjs = require('./chunk-2YT2TFNX.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkUVFR7FW4js = require('./chunk-UVFR7FW4.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -27,7 +27,7 @@ function addDescribeOptions(command, options = {}) {
|
|
|
27
27
|
"Show only the in-play example, and explain how it takes inputs and returns outputs"
|
|
28
28
|
).option("--no-example", "Hide the run examples").option(
|
|
29
29
|
"--full-schema",
|
|
30
|
-
`Print every field: a long schema unfolded (over ${
|
|
30
|
+
`Print every field: a long schema unfolded (over ${_chunk2YT2TFNXjs.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
|
|
31
31
|
).option(
|
|
32
32
|
"--fields <names>",
|
|
33
33
|
"Show only these fields, comma-separated, plus every required input"
|
|
@@ -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 _chunkUVFR7FW4js.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 _chunkUVFR7FW4js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
648
|
let temp;
|
|
@@ -770,7 +770,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
770
770
|
};
|
|
771
771
|
if (options.receiptOut && !skipReceiptFile) {
|
|
772
772
|
persist(options.receiptOut, jsonText(receipt));
|
|
773
|
-
|
|
773
|
+
_chunkUVFR7FW4js.markJsonOutputHandled.call(void 0, );
|
|
774
774
|
} else {
|
|
775
775
|
printReceipt(receipt, options, {
|
|
776
776
|
data: hasData ? result.data : void 0,
|
|
@@ -874,9 +874,9 @@ function annotated(schema, values) {
|
|
|
874
874
|
function shapeLines(title, data) {
|
|
875
875
|
const schema = annotated(observedSchema(data), [data]);
|
|
876
876
|
const block = (heading, fieldSchema) => {
|
|
877
|
-
const { lines, folded } =
|
|
877
|
+
const { lines, folded } = _chunk2YT2TFNXjs.fieldBlockLines.call(void 0,
|
|
878
878
|
heading,
|
|
879
|
-
|
|
879
|
+
_chunk2YT2TFNXjs.schemaFields.call(void 0, fieldSchema)
|
|
880
880
|
);
|
|
881
881
|
return [
|
|
882
882
|
...lines,
|
|
@@ -939,7 +939,7 @@ function receiptText(receipt, options, extra) {
|
|
|
939
939
|
problems.push(
|
|
940
940
|
`Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
|
|
941
941
|
);
|
|
942
|
-
const diagnostic =
|
|
942
|
+
const diagnostic = _chunkUVFR7FW4js.formatCliFailureDiagnostic.call(void 0, error);
|
|
943
943
|
if (diagnostic) problems.push(...diagnostic.split("\n"));
|
|
944
944
|
if (record(error) && typeof error.recoveryFile === "string") {
|
|
945
945
|
problems.push(
|
|
@@ -1032,8 +1032,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1032
1032
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1033
1033
|
` : receiptText(receipt, options, extra);
|
|
1034
1034
|
if (options.receiptOut !== void 0) {
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
_chunkUVFR7FW4js.writeRawStderr.call(void 0, text);
|
|
1036
|
+
_chunkUVFR7FW4js.markJsonOutputHandled.call(void 0, );
|
|
1037
1037
|
} else {
|
|
1038
1038
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1039
1039
|
}
|
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkMZSUMGWNjs = require('./chunk-MZSUMGWN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkC46GRCHZjs = require('./chunk-C46GRCHZ.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkUVFR7FW4js = require('./chunk-UVFR7FW4.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkL5JD66EFjs = require('./chunk-L5JD66EF.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk5H7BLMNHjs = require('./chunk-5H7BLMNH.js');
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -46,7 +46,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
46
46
|
async function reportAutoUpdateEvent(input) {
|
|
47
47
|
let apiKey = "";
|
|
48
48
|
try {
|
|
49
|
-
apiKey =
|
|
49
|
+
apiKey = _chunkL5JD66EFjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
50
50
|
} catch (e2) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
@@ -62,15 +62,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
62
62
|
headers: {
|
|
63
63
|
Authorization: `Bearer ${apiKey}`,
|
|
64
64
|
"Content-Type": "application/json",
|
|
65
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
65
|
+
"User-Agent": `deepline-ts-sdk/${_chunk5H7BLMNHjs.SDK_VERSION}`,
|
|
66
66
|
"X-Deepline-Client-Family": "sdk",
|
|
67
67
|
"X-Deepline-CLI-Family": "sdk",
|
|
68
|
-
"X-Deepline-CLI-Version":
|
|
69
|
-
"X-Deepline-SDK-Version":
|
|
68
|
+
"X-Deepline-CLI-Version": _chunk5H7BLMNHjs.SDK_VERSION,
|
|
69
|
+
"X-Deepline-SDK-Version": _chunk5H7BLMNHjs.SDK_VERSION
|
|
70
70
|
},
|
|
71
71
|
body: JSON.stringify({
|
|
72
72
|
event: input.event,
|
|
73
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
73
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk5H7BLMNHjs.SDK_VERSION,
|
|
74
74
|
target_version: input.response.latest,
|
|
75
75
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
76
76
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -89,19 +89,19 @@ function envTruthy(name) {
|
|
|
89
89
|
return value === "1" || value === "true" || value === "yes";
|
|
90
90
|
}
|
|
91
91
|
function shouldSkipSelfUpdate(policy) {
|
|
92
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
92
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkMZSUMGWNjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkC46GRCHZjs.isCiEnvironment.call(void 0, );
|
|
93
93
|
}
|
|
94
94
|
function isDowngradeAutoUpdateResponse(response) {
|
|
95
95
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
96
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
96
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk5H7BLMNHjs.SDK_VERSION;
|
|
97
97
|
if (!target) return false;
|
|
98
|
-
return
|
|
98
|
+
return _chunkMZSUMGWNjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
99
99
|
}
|
|
100
100
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
101
101
|
return new Promise((resolve) => {
|
|
102
102
|
const argv = _nullishCoalesce(runtime.argv, () => ( process.argv));
|
|
103
103
|
const platform = _nullishCoalesce(runtime.platform, () => ( process.platform));
|
|
104
|
-
const launch = plan.kind === "python-sidecar" ?
|
|
104
|
+
const launch = plan.kind === "python-sidecar" ? _chunkC46GRCHZjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
|
|
105
105
|
command: _nullishCoalesce(runtime.execPath, () => ( process.execPath)),
|
|
106
106
|
args: argv.slice(1),
|
|
107
107
|
shell: false
|
|
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
148
148
|
}
|
|
149
149
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
150
150
|
const target = response.latest;
|
|
151
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
151
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk5H7BLMNHjs.SDK_VERSION;
|
|
152
152
|
process.stderr.write(
|
|
153
153
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
154
154
|
`
|
|
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
156
156
|
return false;
|
|
157
157
|
}
|
|
158
158
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
159
|
-
const plan =
|
|
159
|
+
const plan = _chunkMZSUMGWNjs.resolveUpdatePlan.call(void 0, {
|
|
160
160
|
packageSpec,
|
|
161
161
|
requireVerifiedNpmOwnership: true,
|
|
162
162
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
163
163
|
});
|
|
164
|
-
if (!
|
|
164
|
+
if (!_chunkMZSUMGWNjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
165
165
|
return false;
|
|
166
166
|
}
|
|
167
167
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
168
168
|
deferredAutoUpdate = async () => {
|
|
169
169
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
170
170
|
};
|
|
171
|
-
if (
|
|
171
|
+
if (_chunkUVFR7FW4js.isJsonOutputMode.call(void 0, )) {
|
|
172
172
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
173
|
-
|
|
173
|
+
_chunkUVFR7FW4js.addJsonNotice.call(void 0, {
|
|
174
174
|
code: "sdk_update_queued",
|
|
175
175
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
176
176
|
});
|
|
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
183
183
|
return true;
|
|
184
184
|
}
|
|
185
185
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
186
|
-
if (!
|
|
186
|
+
if (!_chunkMZSUMGWNjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
187
187
|
const autoUpdate = response.auto_update;
|
|
188
188
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
189
189
|
process.stderr.write(
|
|
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
196
196
|
event: "started",
|
|
197
197
|
installKind: plan.kind
|
|
198
198
|
});
|
|
199
|
-
const updateResult = await
|
|
199
|
+
const updateResult = await _chunkMZSUMGWNjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
200
200
|
if (updateResult.status === "skipped_previous_failure") {
|
|
201
201
|
void reportAutoUpdateEvent({
|
|
202
202
|
baseUrl,
|
|
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
234
234
|
exitCode: 0
|
|
235
235
|
});
|
|
236
236
|
try {
|
|
237
|
-
await
|
|
237
|
+
await _chunkC46GRCHZjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
238
238
|
mode: "detached",
|
|
239
239
|
update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
|
|
240
240
|
afterCliUpdate: {
|
|
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
|
|
|
261
261
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
262
262
|
var activeToolExecuteCommand = null;
|
|
263
263
|
function progressLine(line) {
|
|
264
|
-
if (!
|
|
264
|
+
if (!_chunkUVFR7FW4js.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
265
265
|
}
|
|
266
266
|
function beginToolExecuteCommand() {
|
|
267
267
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TW7HFIQG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VVGGQBAV.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
10
10
|
findNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NXYBZSRL.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SCHEMA_LINE_LIMIT
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VLXLKNR4.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OBW2YFHR.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled,
|
|
21
21
|
printCommandEnvelope
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZKLUGMPE.mjs";
|
|
23
23
|
import {
|
|
24
24
|
autoDetectBaseUrl,
|
|
25
25
|
resolveApiKeyForBaseUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-24PL5QN5.mjs";
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
import { writeFileSync } from "fs";
|
|
@@ -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 _chunkL7DGWNF7js = require('./chunk-L7DGWNF7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkL5JD66EFjs = require('./chunk-L5JD66EF.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkL7DGWNF7js.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkL5JD66EFjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkL5JD66EFjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5S2G32ZXjs = require('./chunk-5S2G32ZX.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkL5JD66EFjs = require('./chunk-L5JD66EF.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
|
|
|
24
24
|
return plans ? `${here} Plan limits: ${plans}.` : here;
|
|
25
25
|
}
|
|
26
26
|
async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
|
|
27
|
-
const baseUrl =
|
|
28
|
-
const apiKey =
|
|
27
|
+
const baseUrl = _chunkL5JD66EFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
28
|
+
const apiKey = _chunkL5JD66EFjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
29
29
|
if (!apiKey) return "";
|
|
30
30
|
try {
|
|
31
|
-
const { status, data } = await
|
|
31
|
+
const { status, data } = await _chunk5S2G32ZXjs.httpJson.call(void 0,
|
|
32
32
|
"GET",
|
|
33
33
|
`${baseUrl}/api/v2/billing/entitlements`,
|
|
34
34
|
apiKey,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5H7BLMNHjs = require('./chunk-5H7BLMNH.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -771,7 +771,7 @@ function readSkillsVersionFile(path) {
|
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
773
|
function resolveAutoSyncSkillAgents() {
|
|
774
|
-
switch (
|
|
774
|
+
switch (_chunk5H7BLMNHjs.detectAgentRuntime.call(void 0, )) {
|
|
775
775
|
case "codex":
|
|
776
776
|
return ["codex"];
|
|
777
777
|
case "claude_code":
|
|
@@ -841,7 +841,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
841
841
|
}
|
|
842
842
|
|
|
843
843
|
// src/http.ts
|
|
844
|
-
var HttpClient2 = class extends
|
|
844
|
+
var HttpClient2 = class extends _chunk5H7BLMNHjs.HttpClient {
|
|
845
845
|
constructor(config) {
|
|
846
846
|
super(config, readSdkSkillsLocalVersion);
|
|
847
847
|
}
|
|
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunk5H7BLMNHjs = require('./chunk-5H7BLMNH.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -705,7 +705,7 @@ var ToolCalls = class {
|
|
|
705
705
|
idempotencyKey,
|
|
706
706
|
onResponse: (response2) => {
|
|
707
707
|
lastResponse = null;
|
|
708
|
-
atomicToolsSupported = response2.headers.get(
|
|
708
|
+
atomicToolsSupported = response2.headers.get(_chunk5H7BLMNHjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
709
709
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
710
710
|
if (_optionalChain([options, 'optionalAccess', _33 => _33.onServerTiming])) {
|
|
711
711
|
try {
|
|
@@ -1092,15 +1092,15 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
const receivers = _optionalChain([env, 'access', _58 => _58.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
|
|
1094
1094
|
return {
|
|
1095
|
-
[
|
|
1096
|
-
...receivers ? { [
|
|
1095
|
+
[_chunk5H7BLMNHjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1096
|
+
...receivers ? { [_chunk5H7BLMNHjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1097
1097
|
};
|
|
1098
1098
|
}
|
|
1099
1099
|
function playRunStartHeaders(runtime, env) {
|
|
1100
1100
|
const headers = runtimeSelectionHeaders(runtime, env);
|
|
1101
1101
|
const experimentSwitches = _optionalChain([env, 'access', _61 => _61.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
|
|
1102
1102
|
if (!experimentSwitches) return headers;
|
|
1103
|
-
return { ...headers, [
|
|
1103
|
+
return { ...headers, [_chunk5H7BLMNHjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
|
|
1104
1104
|
}
|
|
1105
1105
|
function normalizeTestPolicyOverrides(value, source) {
|
|
1106
1106
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -1170,7 +1170,7 @@ var PlayClient = class {
|
|
|
1170
1170
|
return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
|
|
1171
1171
|
this.http,
|
|
1172
1172
|
resolved.request,
|
|
1173
|
-
_optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1173
|
+
_optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk5H7BLMNHjs.SDK_API_MAJOR) } : headers,
|
|
1174
1174
|
options
|
|
1175
1175
|
);
|
|
1176
1176
|
}
|
|
@@ -3411,7 +3411,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3411
3411
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3412
3412
|
);
|
|
3413
3413
|
}
|
|
3414
|
-
return { [
|
|
3414
|
+
return { [_chunk5H7BLMNHjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3415
3415
|
}
|
|
3416
3416
|
function sleep(ms) {
|
|
3417
3417
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4347,7 +4347,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4347
4347
|
);
|
|
4348
4348
|
const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
|
|
4349
4349
|
...runtimeHeaders,
|
|
4350
|
-
"X-Deepline-API-Major": String(
|
|
4350
|
+
"X-Deepline-API-Major": String(_chunk5H7BLMNHjs.SDK_API_MAJOR)
|
|
4351
4351
|
} : runtimeHeaders;
|
|
4352
4352
|
const http = this.http;
|
|
4353
4353
|
let submitted = false;
|