deepline 0.3.466 → 0.3.468
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/client-core.ts +41 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +325 -44
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +15 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +51 -6
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +37 -1
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +2 -1
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +22 -1
- package/dist/cli/{auth-HYIPYSKK.mjs → auth-CXQRTOBC.mjs} +5 -5
- package/dist/cli/auth-MDWIVGZQ.js +41 -0
- package/dist/cli/{billing-5S6SGBUP.mjs → billing-HDKO5VQI.mjs} +44 -6
- package/dist/cli/{billing-NG62QGPT.js → billing-JSIPTXM6.js} +115 -77
- package/dist/cli/{chunk-EOKUL6XS.js → chunk-2NE3LCEA.js} +5 -5
- package/dist/cli/{chunk-22BKA2QL.js → chunk-37Z2W7OS.js} +26 -26
- package/dist/cli/{chunk-7YDN6AEK.mjs → chunk-3RGWTKK3.mjs} +10 -0
- package/dist/cli/{chunk-LDEJ4NUP.js → chunk-54CKAYKK.js} +13 -13
- package/dist/cli/{chunk-RGRSUMN6.js → chunk-54SVGPMK.js} +5 -5
- package/dist/cli/{chunk-B7BNWOG6.js → chunk-5RXVB6UK.js} +3 -3
- package/dist/cli/{chunk-QMHBWFU5.mjs → chunk-6PN2RUXL.mjs} +1 -1
- package/dist/cli/{chunk-MTH7WIE3.js → chunk-747ZYPXB.js} +53 -53
- package/dist/cli/{chunk-UHAKSLL2.mjs → chunk-7PBIHKB4.mjs} +11 -1
- package/dist/cli/{chunk-R2SQN2CD.js → chunk-AXTZID4V.js} +6 -6
- package/dist/cli/{chunk-IEQPOBTK.mjs → chunk-CHD7NMZD.mjs} +1 -1
- package/dist/cli/{chunk-V27TVT7P.mjs → chunk-CXYMJSRQ.mjs} +1 -1
- package/dist/cli/{chunk-NJ6KQLMO.mjs → chunk-DDUCF63F.mjs} +11 -11
- package/dist/cli/{chunk-CMXFOZVG.js → chunk-DQHMXKDT.js} +258 -258
- package/dist/cli/{chunk-ZBWKWMSH.js → chunk-ECY6QP3M.js} +16 -16
- package/dist/cli/{chunk-H5MYPDO2.mjs → chunk-EOWMLNCV.mjs} +1 -1
- package/dist/cli/{chunk-YHPUJI7G.mjs → chunk-ERQJLYIS.mjs} +5 -5
- package/dist/cli/{chunk-A7MWUG5H.js → chunk-EXXXRDCC.js} +1 -1
- package/dist/cli/{chunk-5EUJKY3G.mjs → chunk-F3YSH2CY.mjs} +3 -3
- package/dist/cli/{chunk-7IWYO475.js → chunk-F52TY2QC.js} +21 -21
- package/dist/cli/{chunk-QZKSG7XZ.js → chunk-FLH4D33O.js} +36 -36
- package/dist/cli/{chunk-QWMXP2IP.mjs → chunk-FPFBYOR6.mjs} +2 -2
- package/dist/cli/{chunk-OGCAGZXO.mjs → chunk-FVYAEBGO.mjs} +23 -2
- package/dist/cli/{chunk-F6H74EFB.mjs → chunk-GCHTTVC7.mjs} +2 -2
- package/dist/cli/{chunk-HIMV32ZX.js → chunk-HNP5V5BN.js} +23 -2
- package/dist/cli/{chunk-PEUWKPY4.js → chunk-LQ2KVMOD.js} +4 -4
- package/dist/cli/{chunk-6CYRIFZ3.mjs → chunk-NOQRM7LV.mjs} +2 -2
- package/dist/cli/{chunk-JLZKF7EY.js → chunk-NPZBE64X.js} +11 -1
- package/dist/cli/{chunk-VSEKVRAP.mjs → chunk-NZQPALPW.mjs} +2 -2
- package/dist/cli/{chunk-NYNNNOJW.js → chunk-OAF5U6SN.js} +51 -51
- package/dist/cli/{chunk-46YQQOTC.mjs → chunk-PZZNEIE3.mjs} +5 -5
- package/dist/cli/{chunk-6R36QIG4.mjs → chunk-Q7NNU6KB.mjs} +4 -4
- package/dist/cli/{chunk-VVCMP45C.js → chunk-QI2LOENC.js} +3 -3
- package/dist/cli/{chunk-RCMT6AZ5.mjs → chunk-QKGHYF7A.mjs} +1 -1
- package/dist/cli/{chunk-OB5NON4G.js → chunk-QWJ3V3GI.js} +8 -8
- package/dist/cli/{chunk-4QJ63YHC.js → chunk-RSMFUWCP.js} +8 -8
- package/dist/cli/{chunk-WKOWXTDR.mjs → chunk-SFWU7IJJ.mjs} +2 -2
- package/dist/cli/{chunk-L3U44YVO.js → chunk-T5GRG37B.js} +5 -5
- package/dist/cli/{chunk-JLE5UYZV.mjs → chunk-TNOTKGZC.mjs} +2 -2
- package/dist/cli/{chunk-RSXOGXGX.mjs → chunk-TVDBGEVP.mjs} +1 -1
- package/dist/cli/{chunk-SWUSDFG2.js → chunk-U37BWQZH.js} +9 -9
- package/dist/cli/{chunk-7QITO7XO.mjs → chunk-UA42Q7R3.mjs} +4 -4
- package/dist/cli/{chunk-QTTYIPFY.mjs → chunk-UNLLMHY7.mjs} +1 -1
- package/dist/cli/{chunk-FWHRCZET.mjs → chunk-UU4GMU7A.mjs} +5 -5
- package/dist/cli/{chunk-6P4OYABU.js → chunk-V6OMS7E2.js} +6 -6
- package/dist/cli/{chunk-RRCVAVM7.js → chunk-VPCS5KOF.js} +2 -2
- package/dist/cli/{chunk-SQFBLBYC.mjs → chunk-WNS5YEZN.mjs} +2 -2
- package/dist/cli/{chunk-MUQAKLBP.mjs → chunk-X3RAGNNZ.mjs} +1 -1
- package/dist/cli/{chunk-W4XWGNW4.mjs → chunk-X4U763KU.mjs} +3 -3
- package/dist/cli/{chunk-I2TCWIW2.mjs → chunk-XSX6TJUA.mjs} +1 -1
- package/dist/cli/{chunk-HOFXQYRF.js → chunk-YD2KV7RT.js} +7 -7
- package/dist/cli/{chunk-NQH7E3F2.js → chunk-YI6TIURR.js} +3 -3
- package/dist/cli/{chunk-5BEKJUOK.js → chunk-ZA6UUGOZ.js} +2 -2
- package/dist/cli/{chunk-3DVJ2IPG.js → chunk-ZJRHPVJU.js} +183 -173
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-AD2DLLLL.js → csv-EIXI4D7F.js} +13 -13
- package/dist/cli/{csv-ZGZX2IIP.mjs → csv-H2656YID.mjs} +4 -4
- package/dist/cli/{db-NBY4LHAY.js → db-7AQJE7CP.js} +27 -27
- package/dist/cli/{db-LUFEKPEK.mjs → db-CABNKWAS.mjs} +6 -6
- package/dist/cli/{describe-MLXMC47U.mjs → describe-5RUFO5ZR.mjs} +20 -20
- package/dist/cli/describe-ODBO2AMO.js +48 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-JKVWM3P4.mjs → executions-4GUJEBEC.mjs} +6 -6
- package/dist/cli/{executions-HDJMKNBR.js → executions-OHOBXCPD.js} +8 -8
- package/dist/cli/{feedback-VXMP7HDF.js → feedback-JIJWTK2H.js} +8 -8
- package/dist/cli/{feedback-7E5Z4ZO5.mjs → feedback-N3CSL3OV.mjs} +4 -4
- package/dist/cli/git-TWNEROIX.js +25 -0
- package/dist/cli/{git-UFMRAGMY.mjs → git-Z5DTMOAQ.mjs} +5 -5
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-BDULCVGD.mjs → legacy-noops-XTLI64KX.mjs} +5 -5
- package/dist/cli/{legacy-noops-4QKREY4K.js → legacy-noops-ZEJRXMTS.js} +8 -8
- package/dist/cli/{monitors-S6TDJYCK.mjs → monitors-3MDJEWZB.mjs} +7 -7
- package/dist/cli/{monitors-LNNSTELC.js → monitors-E3TTJB3S.js} +91 -91
- package/dist/cli/{org-OWM3IGOK.js → org-722NMZ4T.js} +113 -72
- package/dist/cli/{org-EEEMWKQ2.mjs → org-AJUXWQ6P.mjs} +51 -10
- package/dist/cli/{pages-7JF6AKDI.js → pages-CPCWTTPD.js} +17 -17
- package/dist/cli/{pages-ZYYMQUDX.mjs → pages-Y6AC7PBJ.mjs} +6 -6
- package/dist/cli/{play-WLAFXAHR.js → play-ACQ54HNN.js} +305 -305
- package/dist/cli/{play-5Z3E7KL6.mjs → play-TYHP7UNL.mjs} +18 -18
- package/dist/cli/{providers-JUT7IYD3.mjs → providers-BSXILLKJ.mjs} +6 -6
- package/dist/cli/{providers-TTDFQQU2.js → providers-UDG7V7WU.js} +9 -9
- package/dist/cli/{quickstart-P4TL4NWJ.mjs → quickstart-66MNFG2G.mjs} +4 -4
- package/dist/cli/{quickstart-OZYEGICI.js → quickstart-ZW7VOPFN.js} +6 -6
- package/dist/cli/{run-CM6OZUBR.mjs → run-JSAI5PRF.mjs} +25 -25
- package/dist/cli/{run-BYGE4LUB.js → run-KPS3O2VA.js} +40 -40
- package/dist/cli/{search-RZRJ73YL.mjs → search-GQGB3JIE.mjs} +7 -7
- package/dist/cli/search-JUXEQ5HQ.js +32 -0
- package/dist/cli/{secrets-DHI6ZMKE.mjs → secrets-LGGKGT3A.mjs} +6 -6
- package/dist/cli/{secrets-XLTN3SCL.js → secrets-UVQKUCBM.js} +15 -15
- package/dist/cli/{sessions-MZD5WZBT.mjs → sessions-JYPDKPVA.mjs} +5 -5
- package/dist/cli/{sessions-6NCQQXVK.js → sessions-MPZ42HUS.js} +6 -6
- package/dist/cli/{settings-S6GQ4XFZ.mjs → settings-5UVSGJ72.mjs} +11 -11
- package/dist/cli/{settings-JJH72W5V.js → settings-E7VTIIRT.js} +78 -78
- package/dist/cli/{setup-ZJ4G54XN.mjs → setup-FM6VKRER.mjs} +9 -9
- package/dist/cli/{setup-3BIOG6N2.js → setup-NQ5BQ3ZY.js} +44 -44
- package/dist/cli/skills-OLIMNV35.js +31 -0
- package/dist/cli/{skills-FBH4REPB.mjs → skills-WOCXEASX.mjs} +7 -7
- package/dist/cli/tools-IZNJT6RU.js +55 -0
- package/dist/cli/{tools-J6YGZTD5.mjs → tools-QZRDZS45.mjs} +18 -18
- package/dist/cli/update-4JVVAYI4.js +33 -0
- package/dist/cli/{update-6CSRALIQ.mjs → update-OW2FEGGG.mjs} +9 -9
- package/dist/cli/{workflow-2ETKYSJV.js → workflow-QJM2ELOS.js} +17 -17
- package/dist/cli/{workflow-3ATSB7HQ.mjs → workflow-QRGUHBKL.mjs} +7 -7
- package/dist/{client-BClp2yrq.d.ts → client-B3tlWsw7.d.ts} +1 -1
- package/dist/{client-ADFHNtFM.d.mts → client-CdJR18SJ.d.mts} +1 -1
- package/dist/{client-core-DWLmmJWo.d.mts → client-core-ByJD7QXj.d.mts} +24 -2
- package/dist/{client-core-BFU73Ttw.d.ts → client-core-CxHBKfE5.d.ts} +24 -2
- package/dist/{compiler-manifest-Cs17yO-H.d.ts → compiler-manifest-D5dARg3M.d.mts} +64 -10
- package/dist/{compiler-manifest-Cs17yO-H.d.mts → compiler-manifest-D5dARg3M.d.ts} +64 -10
- package/dist/{errors-Dee-QpVS.d.ts → errors-BtHHzWL8.d.ts} +1 -1
- package/dist/{errors-qNfvQuRB.d.mts → errors-BveMVPwA.d.mts} +1 -1
- package/dist/{index-BTqNNXmC.d.mts → index-BboApDGD.d.mts} +1 -1
- package/dist/{index-DXTh1Lxe.d.ts → index-C6sovoYP.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +277 -76
- package/dist/index.mjs +239 -38
- package/dist/install-integrity.json +114 -114
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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 +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-Y3UTWD3W.js +0 -41
- package/dist/cli/describe-Z66CQESH.js +0 -48
- package/dist/cli/git-NNSJKW3V.js +0 -25
- package/dist/cli/search-RIG4LTCS.js +0 -32
- package/dist/cli/skills-ODISCL7S.js +0 -31
- package/dist/cli/tools-IHBHDI4P.js +0 -55
- package/dist/cli/update-5O3HDR5O.js +0 -33
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkV6OMS7E2js = require('./chunk-V6OMS7E2.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -31,7 +31,7 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkV6OMS7E2js.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
@@ -131,18 +131,18 @@ async function findNamed(reference, options, lookups) {
|
|
|
131
131
|
const features = toolFeatures(record);
|
|
132
132
|
return {
|
|
133
133
|
described: {
|
|
134
|
-
...
|
|
134
|
+
..._chunkV6OMS7E2js.describedTool.call(void 0, record, name),
|
|
135
135
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
136
136
|
// it is a feature, described with --feature byok.
|
|
137
137
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
138
138
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
139
139
|
},
|
|
140
|
-
record:
|
|
140
|
+
record: _chunkV6OMS7E2js.toolMetadataJsonForDescribe.call(void 0,
|
|
141
141
|
record,
|
|
142
142
|
name,
|
|
143
143
|
lookups.seedStarterScript
|
|
144
144
|
),
|
|
145
|
-
schemas:
|
|
145
|
+
schemas: _chunkV6OMS7E2js.publicToolSchemas.call(void 0, record),
|
|
146
146
|
feature: (featureName, value) => {
|
|
147
147
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
148
148
|
return feature ? describeFeature(record, feature, value, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7PBIHKB4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TVDBGEVP.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZJRHPVJUjs = require('./chunk-ZJRHPVJU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkJKVRBCZLjs = require('./chunk-JKVRBCZL.js');
|
|
@@ -11,7 +11,7 @@ var _chunkJKVRBCZLjs = require('./chunk-JKVRBCZL.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
|
|
|
579
579
|
return raw;
|
|
580
580
|
}
|
|
581
581
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
582
|
-
const selection =
|
|
582
|
+
const selection = _chunkYD2KV7RTjs.parseJsonFields.call(void 0, args, "run");
|
|
583
583
|
args = selection.args;
|
|
584
584
|
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.";
|
|
585
585
|
let filePath = null;
|
|
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
591
591
|
let revisionSelector = null;
|
|
592
592
|
const watch = !args.includes("--no-wait");
|
|
593
593
|
const dryRun = args.includes("--dry-run");
|
|
594
|
-
let jsonOutput = dryRun ?
|
|
594
|
+
let jsonOutput = dryRun ? _chunkYD2KV7RTjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkYD2KV7RTjs.argsWantJson.call(void 0, args);
|
|
595
595
|
const fullJson = args.includes("--full");
|
|
596
596
|
const force = args.includes("--force");
|
|
597
597
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
654
654
|
"--log-level requires one of: debug, info, warn, error."
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
|
-
const parsed =
|
|
657
|
+
const parsed = _chunkZJRHPVJUjs.parseLogLevel.call(void 0, value);
|
|
658
658
|
if (!parsed) {
|
|
659
659
|
throw new Error(
|
|
660
660
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
972
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
973
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
974
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
975
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkZJRHPVJUjs.parseLogLevel.call(void 0, options.logLevel);
|
|
976
976
|
if (!logLevel)
|
|
977
977
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
978
978
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
986
986
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
987
987
|
logLevel = "debug";
|
|
988
988
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
989
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
990
|
-
[...fullJson ? ["--full"] : [], ...
|
|
989
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkYD2KV7RTjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkYD2KV7RTjs.jsonFieldArgs.call(void 0, options.json)],
|
|
991
991
|
"run"
|
|
992
992
|
).fields;
|
|
993
993
|
const watch = options.wait === false ? false : base.watch;
|
|
994
994
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
995
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
995
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkYD2KV7RTjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Q7NNU6KB.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NOQRM7LV.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TVDBGEVP.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CHD7NMZD.mjs";
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
import { spawn } from "child_process";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DDUCF63F.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6PN2RUXL.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
10
10
|
findNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-X3RAGNNZ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SCHEMA_LINE_LIMIT
|
|
14
14
|
} from "./chunk-JVHOS3K3.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GCHTTVC7.mjs";
|
|
18
18
|
import {
|
|
19
19
|
printCommandEnvelope
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NOQRM7LV.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
import { writeFileSync } from "fs";
|
|
@@ -16,7 +16,7 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkNPZBE64Xjs = require('./chunk-NPZBE64X.js');
|
|
20
20
|
|
|
21
21
|
// src/cli/described-tool.ts
|
|
22
22
|
function isPlayLikeTool(tool) {
|
|
@@ -161,12 +161,12 @@ function schemaNodeAt(schema, path) {
|
|
|
161
161
|
return node;
|
|
162
162
|
}
|
|
163
163
|
var NAMED_VALUE_SHAPES = {
|
|
164
|
-
email_status: { shape: "EmailStatus", schema:
|
|
165
|
-
job_change: { shape: "JobChange", schema:
|
|
164
|
+
email_status: { shape: "EmailStatus", schema: _chunkNPZBE64Xjs.EMAIL_STATUS_JSON_SCHEMA },
|
|
165
|
+
job_change: { shape: "JobChange", schema: _chunkNPZBE64Xjs.JOB_CHANGE_JSON_SCHEMA }
|
|
166
166
|
};
|
|
167
167
|
function extractorValueType(name) {
|
|
168
|
-
if (!
|
|
169
|
-
const definition =
|
|
168
|
+
if (!_chunkNPZBE64Xjs.isDeeplineExtractorTarget.call(void 0, name)) return void 0;
|
|
169
|
+
const definition = _chunkNPZBE64Xjs.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS[name];
|
|
170
170
|
if (definition.enum) {
|
|
171
171
|
return {
|
|
172
172
|
type: definition.enum.map((value) => JSON.stringify(value)).join(" | ")
|
|
@@ -252,7 +252,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
252
252
|
const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
|
|
253
253
|
const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
|
|
254
254
|
const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
|
|
255
|
-
const means = kind === "extractedValues" ?
|
|
255
|
+
const means = kind === "extractedValues" ? _chunkNPZBE64Xjs.fieldOfName.call(void 0,
|
|
256
256
|
name,
|
|
257
257
|
stringField(_nullishCoalesce(declared[name], () => ( {})), "means") || void 0
|
|
258
258
|
) : void 0;
|
|
@@ -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 _chunk747ZYPXBjs = require('./chunk-747ZYPXB.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 = _chunk747ZYPXBjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NOQRM7LV.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TVDBGEVP.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NOQRM7LV.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TVDBGEVP.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
detectAgentRuntime
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CHD7NMZD.mjs";
|
|
31
31
|
|
|
32
32
|
// src/cli/commands/auth.ts
|
|
33
33
|
import {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYI6TIURRjs = require('./chunk-YI6TIURR.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkLQ2KVMODjs = require('./chunk-LQ2KVMOD.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -290,8 +290,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
290
290
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
291
291
|
var defaultBrowserCommandRunner = childProcess;
|
|
292
292
|
function getAuthedHttpClient() {
|
|
293
|
-
const config =
|
|
294
|
-
return { config, http: new (0,
|
|
293
|
+
const config = _chunkYI6TIURRjs.resolveConfig.call(void 0, );
|
|
294
|
+
return { config, http: new (0, _chunkYI6TIURRjs.HttpClient)(config) };
|
|
295
295
|
}
|
|
296
296
|
function stableOsUserId() {
|
|
297
297
|
try {
|
|
@@ -631,7 +631,7 @@ function collectLocalEnvInfo() {
|
|
|
631
631
|
os: `${process.platform} ${process.arch}`,
|
|
632
632
|
node_version: process.version,
|
|
633
633
|
home_dir: homeDir,
|
|
634
|
-
agent_runtime:
|
|
634
|
+
agent_runtime: _chunkLQ2KVMODjs.detectAgentRuntime.call(void 0, )
|
|
635
635
|
};
|
|
636
636
|
const env = process.env;
|
|
637
637
|
const optional = {
|
|
@@ -878,9 +878,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
878
878
|
}
|
|
879
879
|
function withAgentCommandContext(value) {
|
|
880
880
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
881
|
-
return
|
|
881
|
+
return _chunkLQ2KVMODjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
882
882
|
...valueRecord,
|
|
883
|
-
command_context:
|
|
883
|
+
command_context: _chunkYI6TIURRjs.resolveCliCommandContext.call(void 0, )
|
|
884
884
|
} : value;
|
|
885
885
|
}
|
|
886
886
|
function printJson(value, fields) {
|
|
@@ -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 _chunkLQ2KVMODjs = require('./chunk-LQ2KVMOD.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkLQ2KVMODjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkLQ2KVMODjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -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 _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.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
|
+
_chunkYD2KV7RTjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|