deepline 0.3.553 → 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-I3QAU4RV.mjs → auth-UFANBJW3.mjs} +5 -5
- package/dist/cli/{billing-YGFFVAIC.js → billing-BGIT2VYM.js} +102 -102
- package/dist/cli/{billing-3IC54OQQ.mjs → billing-S7MCXBND.mjs} +9 -9
- package/dist/cli/{chunk-HVI55MTK.js → chunk-3IKGZ4CG.js} +20 -10
- package/dist/cli/{chunk-LH5PZKER.mjs → chunk-57J3OOCR.mjs} +1 -1
- package/dist/cli/{chunk-55F6HNOY.mjs → chunk-5J6TKML2.mjs} +4 -4
- package/dist/cli/{chunk-LFOERUQY.mjs → chunk-66BQY77L.mjs} +1 -1
- package/dist/cli/{chunk-IMX7J4DU.js → chunk-6F5GNZQH.js} +5 -5
- package/dist/cli/{chunk-AGLR6QVN.js → chunk-6M2SDRWN.js} +4 -4
- package/dist/cli/{chunk-NDNHYONK.mjs → chunk-6R5Y7U52.mjs} +2 -2
- package/dist/cli/{chunk-2B5B5KAW.js → chunk-72VEVAIX.js} +53 -50
- package/dist/cli/{chunk-RMNOZKRI.mjs → chunk-732RWNDP.mjs} +3 -3
- package/dist/cli/{chunk-4BFTDNHU.mjs → chunk-7H753VC5.mjs} +1 -1
- package/dist/cli/{chunk-FM7LPUPA.js → chunk-7LM55DIN.js} +41 -41
- package/dist/cli/{chunk-QG6JIWUL.mjs → chunk-ASDVROA5.mjs} +5 -5
- package/dist/cli/{chunk-INEMTYMT.mjs → chunk-AUY53RLU.mjs} +7 -7
- package/dist/cli/{chunk-MLABYI4M.js → chunk-AYCC5JAS.js} +3 -3
- package/dist/cli/{chunk-Z7AOIHFE.mjs → chunk-BTKVXI3G.mjs} +7 -2
- package/dist/cli/chunk-BVXIGOBZ.js +32 -0
- package/dist/cli/{chunk-4SMCFQ23.mjs → chunk-DFL3UBW2.mjs} +1 -1
- package/dist/cli/{chunk-CACFJODG.js → chunk-DYWOBLYL.js} +8 -8
- package/dist/cli/{chunk-HEBO3XNZ.js → chunk-EG44APVW.js} +12 -12
- package/dist/cli/{chunk-IH6GDNKW.js → chunk-EN5NHCCQ.js} +17 -17
- package/dist/cli/{chunk-72V4PDH5.mjs → chunk-FO3U5YTL.mjs} +3 -3
- package/dist/cli/{chunk-DP64MD6U.mjs → chunk-HQK2NPXE.mjs} +1 -1
- package/dist/cli/{chunk-DZA7RFGL.mjs → chunk-I45RNMNZ.mjs} +13 -13
- package/dist/cli/{chunk-RTV4RF7N.js → chunk-IHWXC7UU.js} +26 -26
- package/dist/cli/{chunk-IUOGII7D.js → chunk-KSUI4YX5.js} +6 -6
- package/dist/cli/{chunk-3NTP2OSG.js → chunk-LU25WURE.js} +13 -13
- package/dist/cli/{chunk-TFEXSHPM.js → chunk-LY5MMXFF.js} +28 -14
- package/dist/cli/{chunk-HSJ6X2AQ.mjs → chunk-M2CW4UZV.mjs} +4 -4
- package/dist/cli/{chunk-LRDHPOZW.js → chunk-M5YBTQQX.js} +53 -53
- package/dist/cli/{chunk-7GEMELKI.js → chunk-MIXPZ4G7.js} +431 -330
- package/dist/cli/{chunk-Q6Z6N3A7.js → chunk-MOJ65E7L.js} +9 -9
- package/dist/cli/{chunk-AGICYWGN.mjs → chunk-N55EUVKV.mjs} +2 -2
- package/dist/cli/{chunk-CAEBJOYU.mjs → chunk-NFWZAQAU.mjs} +1 -1
- package/dist/cli/{chunk-4HYNMXXF.mjs → chunk-PC2FTUCP.mjs} +2 -2
- package/dist/cli/{chunk-GAVZ4EOD.mjs → chunk-PGPPZMXD.mjs} +1 -1
- package/dist/cli/{chunk-DP2VH7CO.js → chunk-QMDG7FKA.js} +14 -12
- package/dist/cli/{chunk-JLGP5XAJ.js → chunk-QZ2C5ARH.js} +5 -5
- package/dist/cli/{chunk-Z6XPSHKM.mjs → chunk-RL7ZI4ZG.mjs} +133 -32
- package/dist/cli/{chunk-TN4TY6TT.mjs → chunk-RO7SIWBG.mjs} +2 -2
- package/dist/cli/{chunk-XLIHTJVM.js → chunk-RWT6N2SU.js} +20 -20
- package/dist/cli/{chunk-BVDKFS2T.js → chunk-S2CNGS7O.js} +2 -2
- package/dist/cli/{chunk-SG3LUONJ.mjs → chunk-S65SZ74B.mjs} +5 -3
- package/dist/cli/{chunk-WOCHZCUJ.js → chunk-SE56PJ46.js} +2 -2
- package/dist/cli/{chunk-7YRJ5UC4.js → chunk-SF2LIUVO.js} +20 -20
- package/dist/cli/chunk-STXDSVQZ.mjs +32 -0
- package/dist/cli/{chunk-6NE3RRRY.js → chunk-T3QSHU6E.js} +1 -1
- package/dist/cli/{chunk-UVQJYV76.mjs → chunk-T4BFNFBL.mjs} +2 -2
- package/dist/cli/{chunk-YUA6HA6D.js → chunk-TFPKGTMD.js} +2 -2
- package/dist/cli/{chunk-UEVKMZLR.mjs → chunk-TGUQET3O.mjs} +14 -4
- package/dist/cli/{chunk-Y6SP3JMI.js → chunk-U6KGXTYS.js} +30 -30
- package/dist/cli/{chunk-QI5S5HWB.mjs → chunk-UUU5WUKM.mjs} +2 -2
- package/dist/cli/{chunk-A7DLBE5K.mjs → chunk-UYYOO7VT.mjs} +10 -7
- package/dist/cli/{chunk-45OAVGU6.mjs → chunk-W6K6WULS.mjs} +2 -2
- package/dist/cli/{chunk-74RES4DS.js → chunk-W7SPSF63.js} +5 -5
- package/dist/cli/{chunk-4747TPLV.js → chunk-WTQGJBHD.js} +3 -3
- package/dist/cli/{chunk-E7WZOX2A.mjs → chunk-XFZX6FNM.mjs} +20 -6
- package/dist/cli/{chunk-OTV2UUKW.mjs → chunk-XIHZUWIG.mjs} +1 -1
- package/dist/cli/{chunk-7O6J6A7P.js → chunk-YI4ADWTN.js} +7 -2
- package/dist/cli/{chunk-7SERLBNR.js → chunk-YXH5Q7OY.js} +20 -20
- package/dist/cli/{chunk-SBH4CKPN.js → chunk-Z2T7XTND.js} +10 -10
- package/dist/cli/{chunk-JJGWHITQ.mjs → chunk-Z3O5GCQM.mjs} +2 -2
- package/dist/cli/{chunk-AGIQDA2T.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-DNV2X5AZ.mjs → concurrent-runs-help-I7ZLXZDD.mjs} +6 -6
- package/dist/cli/{csv-ZXZGHWOM.mjs → csv-K7FNSHIM.mjs} +4 -4
- package/dist/cli/{csv-SA6ELJY6.js → csv-Q2Y3KKK2.js} +13 -13
- package/dist/cli/{db-A54SP6AD.mjs → db-74RBHX6G.mjs} +7 -7
- package/dist/cli/{db-JHFEIQBU.js → db-E4XSIQDS.js} +29 -29
- package/dist/cli/describe-TUW35JSY.js +50 -0
- package/dist/cli/describe-UYB6WDHS.mjs +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-HL2M2DFU.mjs → executions-6LKXZRL4.mjs} +6 -6
- package/dist/cli/{executions-TLFZRHBJ.js → executions-LX6HJM72.js} +8 -8
- package/dist/cli/{feedback-5UEX5UZK.js → feedback-7D2JRVOM.js} +14 -14
- package/dist/cli/{feedback-QMBTNXVG.mjs → feedback-B2V64TYZ.mjs} +6 -6
- package/dist/cli/{git-LKGXVIVC.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-6RUTLMN7.js → integrations-34UK7XET.js} +15 -15
- package/dist/cli/{integrations-FGGRVUJ7.mjs → integrations-J3RHOSAR.mjs} +7 -7
- package/dist/cli/{legacy-noops-J3Z7QRWZ.js → legacy-noops-HXJ6UMK7.js} +9 -9
- package/dist/cli/{legacy-noops-YIPRMVXZ.mjs → legacy-noops-WQUDES3K.mjs} +6 -6
- package/dist/cli/{mcp-6LWFP7RW.js → mcp-EZENPRPY.js} +24 -24
- package/dist/cli/{mcp-CHDYFO7F.mjs → mcp-JZPAPQYI.mjs} +4 -4
- package/dist/cli/{monitors-UGRY2BXI.mjs → monitors-GF2WEFF6.mjs} +7 -7
- package/dist/cli/{monitors-STM6A7OU.js → monitors-GS2P4OUK.js} +100 -100
- package/dist/cli/{org-ZOBSNSIB.js → org-V56HBHPB.js} +121 -121
- package/dist/cli/{org-3SYOUQCX.mjs → org-WJ2RO7ZE.mjs} +6 -6
- package/dist/cli/{outcomes-H4YYAT5X.js → outcomes-D6KXYKGW.js} +14 -14
- package/dist/cli/{outcomes-Z3P2JE67.mjs → outcomes-WP5WV54Y.mjs} +6 -6
- package/dist/cli/{play-SN5YWLS7.mjs → play-FHHCHNQH.mjs} +36 -24
- package/dist/cli/{play-SM4CW2GS.js → play-PXUVRS4K.js} +387 -375
- package/dist/cli/{providers-WZ4YBR5Y.mjs → providers-HJ77LN3M.mjs} +6 -6
- package/dist/cli/{providers-WZARYMCF.js → providers-TOXIJOY2.js} +9 -9
- package/dist/cli/{quickstart-PS4YHQJ6.js → quickstart-MDXLT5SR.js} +6 -6
- package/dist/cli/{quickstart-2575BNKA.mjs → quickstart-UEQHXEWP.mjs} +4 -4
- package/dist/cli/{run-FLZ6OTM7.js → run-2MXAEH6U.js} +55 -59
- package/dist/cli/{run-ZUHCZOJS.mjs → run-ZZ5ABZL7.mjs} +34 -38
- package/dist/cli/search-6DT2TGOU.js +32 -0
- package/dist/cli/{search-HLPPKQEO.mjs → search-AF4XVWC2.mjs} +7 -7
- package/dist/cli/{search-output-PDAXNOGP.mjs → search-output-3GFQJJGJ.mjs} +6 -6
- package/dist/cli/{search-output-RXJLU36B.js → search-output-LEKJVZSH.js} +9 -9
- package/dist/cli/{secrets-QJNG7G2Y.js → secrets-MR2FNFGD.js} +15 -15
- package/dist/cli/{secrets-CGELYQ3H.mjs → secrets-TLH3FKCT.mjs} +6 -6
- package/dist/cli/sessions-EJYLWV2M.js +23 -0
- package/dist/cli/{sessions-ELMWVR4M.mjs → sessions-LUL5P66K.mjs} +6 -6
- package/dist/cli/{settings-RR3LZXL7.mjs → settings-AWSRUTZR.mjs} +12 -12
- package/dist/cli/{settings-44I44P5F.js → settings-Z2HYUOL7.js} +85 -85
- package/dist/cli/{setup-KTEYOCJO.js → setup-FIMXN4IC.js} +51 -54
- package/dist/cli/{setup-KGWRWH4B.mjs → setup-PFPAJOUI.mjs} +11 -14
- package/dist/cli/skills-232RNG5G.js +37 -0
- package/dist/cli/{skills-FPRID2I5.mjs → skills-5DKSATY5.mjs} +7 -7
- package/dist/cli/{tools-PI4WMDLY.mjs → tools-BDNASCSH.mjs} +20 -20
- package/dist/cli/tools-P7FBJVJA.js +57 -0
- package/dist/cli/{update-VJOJAZ7B.mjs → update-CAFUZ5XT.mjs} +9 -9
- package/dist/cli/update-OC4UB2XE.js +37 -0
- package/dist/cli/{views-OVPSINZO.mjs → views-7PDXZUQA.mjs} +6 -6
- package/dist/cli/{views-NTUOLNQU.js → views-XJOBO6US.js} +21 -21
- package/dist/cli/{workflow-7OEFNXZC.mjs → workflow-2BMUGN7M.mjs} +7 -7
- package/dist/cli/{workflow-2UDYDM6F.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 +126 -126
- 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-MQCN7WGZ.js +0 -44
- package/dist/cli/chunk-AID3OYVJ.js +0 -8
- package/dist/cli/chunk-OVDNJAJN.mjs +0 -8
- package/dist/cli/concurrent-runs-help-CFJH4KXV.js +0 -22
- package/dist/cli/describe-PHQ33AGS.mjs +0 -50
- package/dist/cli/describe-RHJ4XRFI.js +0 -50
- package/dist/cli/git-4JWOOHBG.js +0 -26
- package/dist/cli/search-JJWVHR3N.js +0 -32
- package/dist/cli/sessions-DHTBT2GN.js +0 -23
- package/dist/cli/skills-EPZPEXI2.js +0 -37
- package/dist/cli/tools-IGQQ5TML.js +0 -57
- package/dist/cli/update-4RNCVYGE.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,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TGUQET3O.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildPlayDashboardUrl,
|
|
9
9
|
byokLines,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
examples,
|
|
14
14
|
schemaLines,
|
|
15
15
|
topLevelField
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XFZX6FNM.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} 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.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."
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkLY5MMXFFjs = require('./chunk-LY5MMXFF.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
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 = {}) {
|
|
@@ -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 ${_chunkLY5MMXFFjs.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 _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",
|
|
@@ -872,9 +874,9 @@ function annotated(schema, values) {
|
|
|
872
874
|
function shapeLines(title, data) {
|
|
873
875
|
const schema = annotated(observedSchema(data), [data]);
|
|
874
876
|
const block = (heading, fieldSchema) => {
|
|
875
|
-
const { lines, folded } =
|
|
877
|
+
const { lines, folded } = _chunkLY5MMXFFjs.fieldBlockLines.call(void 0,
|
|
876
878
|
heading,
|
|
877
|
-
|
|
879
|
+
_chunkLY5MMXFFjs.schemaFields.call(void 0, fieldSchema)
|
|
878
880
|
);
|
|
879
881
|
return [
|
|
880
882
|
...lines,
|
|
@@ -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,
|
|
@@ -37,13 +37,14 @@ import {
|
|
|
37
37
|
toolInputFieldsForDisplay,
|
|
38
38
|
toolMetadataJsonForDescribe,
|
|
39
39
|
toolOutputFieldsForDisplay
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-TGUQET3O.mjs";
|
|
41
41
|
import {
|
|
42
42
|
rateLimitQualifier
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-XFZX6FNM.mjs";
|
|
44
44
|
import {
|
|
45
|
+
shellArgument,
|
|
45
46
|
shellQuote
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-STXDSVQZ.mjs";
|
|
47
48
|
import {
|
|
48
49
|
playToolListGetterMode
|
|
49
50
|
} from "./chunk-FR2ILQ4G.mjs";
|
|
@@ -56,29 +57,29 @@ import {
|
|
|
56
57
|
} from "./chunk-FIVKWNMT.mjs";
|
|
57
58
|
import {
|
|
58
59
|
DeeplineClient
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-UUU5WUKM.mjs";
|
|
60
61
|
import {
|
|
61
62
|
validateExecutionIdempotencyKey
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-57J3OOCR.mjs";
|
|
63
64
|
import {
|
|
64
65
|
beginToolExecuteCommand,
|
|
65
66
|
getToolExecuteInvocationId,
|
|
66
67
|
maybeAutoUpdateAndRelaunch,
|
|
67
68
|
registerCompatibilityCatalog,
|
|
68
69
|
runToolExecuteStage
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-I45RNMNZ.mjs";
|
|
70
71
|
import {
|
|
71
72
|
isCliTraceEnabled,
|
|
72
73
|
recordCliTrace,
|
|
73
74
|
resolveCliMaintenancePolicy
|
|
74
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-NFWZAQAU.mjs";
|
|
75
76
|
import {
|
|
76
77
|
checkSdkCompatibility,
|
|
77
78
|
enforceSdkCompatibilityResponse,
|
|
78
79
|
flushDeferredSkillsSyncNotices,
|
|
79
80
|
requireSdkCompatibility,
|
|
80
81
|
syncSdkSkillsIfNeeded
|
|
81
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-UYYOO7VT.mjs";
|
|
82
83
|
import {
|
|
83
84
|
errorToJsonPayload,
|
|
84
85
|
printCommandEnvelope,
|
|
@@ -87,12 +88,12 @@ import {
|
|
|
87
88
|
printJsonError,
|
|
88
89
|
renderCommandEnvelopeText,
|
|
89
90
|
shouldEmitJson
|
|
90
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-N55EUVKV.mjs";
|
|
91
92
|
import {
|
|
92
93
|
readSdkSkillsLocalVersion,
|
|
93
94
|
resolveConfig,
|
|
94
95
|
sdkCliStateDirPath
|
|
95
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-66BQY77L.mjs";
|
|
96
97
|
import {
|
|
97
98
|
DeeplineError
|
|
98
99
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -349,6 +350,81 @@ function toolConnectionStatusMessage(input) {
|
|
|
349
350
|
return null;
|
|
350
351
|
}
|
|
351
352
|
|
|
353
|
+
// src/cli/tool-param-flags.ts
|
|
354
|
+
var NUMBER_TEXT = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;
|
|
355
|
+
function couldBeTyped(value) {
|
|
356
|
+
return value === "true" || value === "false" || NUMBER_TEXT.test(value);
|
|
357
|
+
}
|
|
358
|
+
function parseParamFlags(entries) {
|
|
359
|
+
const params = {};
|
|
360
|
+
for (const entry of entries) {
|
|
361
|
+
const eqIdx = entry.indexOf("=");
|
|
362
|
+
if (eqIdx <= 0) {
|
|
363
|
+
throw new Error(
|
|
364
|
+
`--param ${JSON.stringify(entry)} must be key=value, for example -p email=a@b.com. Use --input for a JSON object.`
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
params[entry.slice(0, eqIdx)] = entry.slice(eqIdx + 1);
|
|
368
|
+
}
|
|
369
|
+
return {
|
|
370
|
+
params,
|
|
371
|
+
typedCandidates: Object.entries(params).filter(([, value]) => couldBeTyped(value)).map(([key]) => key)
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
function isRecord2(value) {
|
|
375
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
376
|
+
}
|
|
377
|
+
function declaredTypes(schema, types = /* @__PURE__ */ new Set()) {
|
|
378
|
+
if (!isRecord2(schema)) return types;
|
|
379
|
+
const { type } = schema;
|
|
380
|
+
if (typeof type === "string") types.add(type);
|
|
381
|
+
if (Array.isArray(type)) {
|
|
382
|
+
for (const entry of type) if (typeof entry === "string") types.add(entry);
|
|
383
|
+
}
|
|
384
|
+
for (const key of ["anyOf", "oneOf", "allOf"]) {
|
|
385
|
+
const variants = schema[key];
|
|
386
|
+
if (Array.isArray(variants)) {
|
|
387
|
+
for (const variant of variants) declaredTypes(variant, types);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
const values = [
|
|
391
|
+
...Array.isArray(schema.enum) ? schema.enum : [],
|
|
392
|
+
..."const" in schema ? [schema.const] : []
|
|
393
|
+
];
|
|
394
|
+
for (const value of values) {
|
|
395
|
+
if (typeof value === "string") types.add("string");
|
|
396
|
+
if (typeof value === "boolean") types.add("boolean");
|
|
397
|
+
if (typeof value === "number") types.add("number");
|
|
398
|
+
}
|
|
399
|
+
return types;
|
|
400
|
+
}
|
|
401
|
+
function typedParamValue(inputSchema, key, text) {
|
|
402
|
+
const wrapped = inputSchema?.jsonSchema;
|
|
403
|
+
const root = isRecord2(wrapped) ? wrapped : inputSchema;
|
|
404
|
+
const properties = root?.properties;
|
|
405
|
+
if (!isRecord2(properties)) return text;
|
|
406
|
+
const types = declaredTypes(properties[key]);
|
|
407
|
+
if (types.size === 0 || types.has("string")) return text;
|
|
408
|
+
if (types.has("boolean") && (text === "true" || text === "false")) {
|
|
409
|
+
return text === "true";
|
|
410
|
+
}
|
|
411
|
+
if (NUMBER_TEXT.test(text)) {
|
|
412
|
+
const number = Number(text);
|
|
413
|
+
if (!Number.isFinite(number)) return text;
|
|
414
|
+
if (types.has("number")) return number;
|
|
415
|
+
if (types.has("integer") && Number.isInteger(number)) return number;
|
|
416
|
+
}
|
|
417
|
+
return text;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
// src/cli/json-file-text.ts
|
|
421
|
+
function jsonFileText(bytes) {
|
|
422
|
+
if (bytes[0] === 255 && bytes[1] === 254) {
|
|
423
|
+
return new TextDecoder("utf-16le").decode(bytes.subarray(2));
|
|
424
|
+
}
|
|
425
|
+
return new TextDecoder("utf-8").decode(bytes).replace(/^/, "");
|
|
426
|
+
}
|
|
427
|
+
|
|
352
428
|
// src/cli/commands/tools.ts
|
|
353
429
|
var TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS = 750;
|
|
354
430
|
var TOOL_COMMAND_TEMPLATES = {
|
|
@@ -380,9 +456,6 @@ function parseGrepTerms(query, mode) {
|
|
|
380
456
|
const matches = trimmed.match(/"([^"]+)"|'([^']+)'|\S+/g) ?? [];
|
|
381
457
|
return matches.map((term) => term.replace(/^["']|["']$/g, "").trim()).filter(Boolean);
|
|
382
458
|
}
|
|
383
|
-
function shellCommandArg(value) {
|
|
384
|
-
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
385
|
-
}
|
|
386
459
|
function zeroMatchToolGuidance(options) {
|
|
387
460
|
const categories = options.categories ?? [];
|
|
388
461
|
const query = options.query?.trim() ?? "";
|
|
@@ -395,12 +468,12 @@ function zeroMatchToolGuidance(options) {
|
|
|
395
468
|
...query ? [
|
|
396
469
|
{
|
|
397
470
|
label: "Use ranked semantic search for intent-style queries",
|
|
398
|
-
command: `deepline search -- ${
|
|
471
|
+
command: `deepline search -- ${shellArgument(query)}`
|
|
399
472
|
},
|
|
400
473
|
...options.mode === "all" ? [
|
|
401
474
|
{
|
|
402
475
|
label: "Relax grep from AND to OR matching",
|
|
403
|
-
command: `deepline tools grep --mode any -- ${
|
|
476
|
+
command: `deepline tools grep --mode any -- ${shellArgument(query)}`
|
|
404
477
|
}
|
|
405
478
|
] : []
|
|
406
479
|
] : [],
|
|
@@ -979,7 +1052,7 @@ Examples:
|
|
|
979
1052
|
process.exitCode = await narrowView();
|
|
980
1053
|
return;
|
|
981
1054
|
}
|
|
982
|
-
const { describeAnything } = await import("./describe-
|
|
1055
|
+
const { describeAnything } = await import("./describe-UYB6WDHS.mjs");
|
|
983
1056
|
process.exitCode = await describeAnything(
|
|
984
1057
|
toolId,
|
|
985
1058
|
{
|
|
@@ -2034,10 +2107,7 @@ function readJsonArgument(raw, flagName) {
|
|
|
2034
2107
|
throw new Error(`Invalid ${flagName} value: empty @file path.`);
|
|
2035
2108
|
}
|
|
2036
2109
|
try {
|
|
2037
|
-
return readFileSync2(resolveAtFilePath(filePath)
|
|
2038
|
-
/^\uFEFF/,
|
|
2039
|
-
""
|
|
2040
|
-
);
|
|
2110
|
+
return jsonFileText(readFileSync2(resolveAtFilePath(filePath)));
|
|
2041
2111
|
} catch (error) {
|
|
2042
2112
|
const message = error instanceof Error ? error.message : String(error);
|
|
2043
2113
|
throw new Error(
|
|
@@ -2081,28 +2151,32 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2081
2151
|
`Usage: deepline tools execute <toolId> [--param key=value ...] [--input '{"k":"v"}'] [--timeout <duration>] [--recover | --idempotency-key <key>] [--recovery-timeout-ms <ms>] [--out rows.csv] [--output-format auto|csv|csv_file|json|json_file] [--no-preview]`
|
|
2082
2152
|
);
|
|
2083
2153
|
}
|
|
2084
|
-
const
|
|
2154
|
+
const paramFlags = parseParamFlags(options.param ?? []);
|
|
2155
|
+
const jsonParams = {};
|
|
2085
2156
|
let outputFormat = output.requested ? "json" : "auto";
|
|
2086
2157
|
let recoveryTimeoutMs;
|
|
2087
|
-
for (const kv of options.param ?? []) {
|
|
2088
|
-
const eqIdx = kv.indexOf("=");
|
|
2089
|
-
if (eqIdx > 0) params[kv.slice(0, eqIdx)] = kv.slice(eqIdx + 1);
|
|
2090
|
-
}
|
|
2091
2158
|
if (output.legacyInput !== void 0) {
|
|
2092
2159
|
Object.assign(
|
|
2093
|
-
|
|
2160
|
+
jsonParams,
|
|
2094
2161
|
parseJsonObjectArgument(output.legacyInput, "--json")
|
|
2095
2162
|
);
|
|
2096
2163
|
}
|
|
2097
2164
|
if (options.input !== void 0) {
|
|
2098
|
-
Object.assign(
|
|
2165
|
+
Object.assign(
|
|
2166
|
+
jsonParams,
|
|
2167
|
+
parseJsonObjectArgument(options.input, "--input")
|
|
2168
|
+
);
|
|
2099
2169
|
}
|
|
2100
2170
|
if (options.payload !== void 0) {
|
|
2101
2171
|
Object.assign(
|
|
2102
|
-
|
|
2172
|
+
jsonParams,
|
|
2103
2173
|
parseJsonObjectArgument(options.payload, "--payload")
|
|
2104
2174
|
);
|
|
2105
2175
|
}
|
|
2176
|
+
const params = {
|
|
2177
|
+
...paramFlags.params,
|
|
2178
|
+
...jsonParams
|
|
2179
|
+
};
|
|
2106
2180
|
if (options.outputFormat !== void 0) {
|
|
2107
2181
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2108
2182
|
}
|
|
@@ -2124,6 +2198,10 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2124
2198
|
return {
|
|
2125
2199
|
toolId,
|
|
2126
2200
|
params,
|
|
2201
|
+
// -p values a JSON flag did not replace, which may need a typed value.
|
|
2202
|
+
typedParamCandidates: paramFlags.typedCandidates.filter(
|
|
2203
|
+
(key) => !Object.hasOwn(jsonParams, key)
|
|
2204
|
+
),
|
|
2127
2205
|
outputFormat,
|
|
2128
2206
|
noPreview: options.preview === false,
|
|
2129
2207
|
outPath: options.out !== void 0 ? resolve(options.out) : null,
|
|
@@ -2696,6 +2774,28 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2696
2774
|
}
|
|
2697
2775
|
return assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2698
2776
|
};
|
|
2777
|
+
const commandParams = { ...parsed.params };
|
|
2778
|
+
if (parsed.typedParamCandidates.length > 0) {
|
|
2779
|
+
let toolMetadata;
|
|
2780
|
+
try {
|
|
2781
|
+
toolMetadata = await readMetadata();
|
|
2782
|
+
} catch (error) {
|
|
2783
|
+
if (error instanceof DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2784
|
+
if (wantsJson) printJsonError(error);
|
|
2785
|
+
else console.error(error.message);
|
|
2786
|
+
return 2;
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
if (toolMetadata) {
|
|
2790
|
+
for (const key of parsed.typedParamCandidates) {
|
|
2791
|
+
parsed.params[key] = typedParamValue(
|
|
2792
|
+
toolMetadata.inputSchema,
|
|
2793
|
+
key,
|
|
2794
|
+
String(parsed.params[key])
|
|
2795
|
+
);
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2699
2799
|
let executionWarningsPrinted = false;
|
|
2700
2800
|
if (deferredCompatibility) {
|
|
2701
2801
|
let preflightCompatibility;
|
|
@@ -2748,7 +2848,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2748
2848
|
const responseIntent = parsed.outPath || parsed.outputFormat === "csv" || parsed.outputFormat === "csv_file" ? "row_artifact" : "raw";
|
|
2749
2849
|
const recovery = ToolCallRecovery.open({
|
|
2750
2850
|
toolId: parsed.toolId,
|
|
2751
|
-
params:
|
|
2851
|
+
params: commandParams,
|
|
2752
2852
|
responseIntent,
|
|
2753
2853
|
recover: parsed.recover,
|
|
2754
2854
|
idempotencyKey: parsed.idempotencyKey
|
|
@@ -3138,6 +3238,7 @@ inspect: ${inspection.inspect}
|
|
|
3138
3238
|
}
|
|
3139
3239
|
|
|
3140
3240
|
export {
|
|
3241
|
+
jsonFileText,
|
|
3141
3242
|
registerToolsCommands,
|
|
3142
3243
|
printMonitorTypeContract,
|
|
3143
3244
|
printCompactToolContract,
|
|
@@ -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) {
|