deepline 0.3.510 → 0.3.511
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 +159 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +3 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +218 -33
- package/dist/cli/artifacts-G6JHRHY5.mjs +268 -0
- package/dist/cli/artifacts-PLF5ZUS7.js +268 -0
- package/dist/cli/{auth-USS2W3UV.mjs → auth-2XMJMDWG.mjs} +5 -5
- package/dist/cli/auth-PI2KS2CD.js +43 -0
- package/dist/cli/{billing-JCUWM5XB.mjs → billing-6C5AI42X.mjs} +7 -7
- package/dist/cli/{billing-LQQHU443.js → billing-Z3XFXP3H.js} +82 -82
- package/dist/cli/{chunk-XRLE2FPE.js → chunk-2Q4H2Y6N.js} +6 -6
- package/dist/cli/{chunk-4ZIIS6KG.js → chunk-2YVRIXVR.js} +9 -9
- package/dist/cli/{chunk-V6DLYRSO.mjs → chunk-5WTLXL6O.mjs} +1 -1
- package/dist/cli/{chunk-ZRACZKEE.mjs → chunk-77DPQI6W.mjs} +62 -0
- package/dist/cli/{chunk-CLV4T5FN.mjs → chunk-ASXOFBF7.mjs} +2 -2
- package/dist/cli/{chunk-LF3FF2B2.js → chunk-BHV7JKXQ.js} +1 -1
- package/dist/cli/{chunk-ZCYV6MZH.js → chunk-D5VWSR4D.js} +5 -5
- package/dist/cli/{chunk-F6IXWFPF.js → chunk-FAGSSIOY.js} +6 -6
- package/dist/cli/{chunk-XK3AJFYQ.js → chunk-FF25PDQ2.js} +62 -0
- package/dist/cli/{chunk-YYUVOUEH.mjs → chunk-FTT2SBBH.mjs} +5 -5
- package/dist/cli/{chunk-5N2HFB3G.js → chunk-FV4PASXH.js} +16 -16
- package/dist/cli/{chunk-6AL2VF3E.js → chunk-GD3ES3JU.js} +14 -14
- package/dist/cli/{chunk-VPJSQMWQ.js → chunk-GGQHOLH6.js} +3 -3
- package/dist/cli/{chunk-5DU7RXDW.mjs → chunk-GJWL4KTY.mjs} +4 -4
- package/dist/cli/{chunk-DMF56C6D.mjs → chunk-HLEZQDEZ.mjs} +2 -2
- package/dist/cli/{chunk-FND6GZZ4.mjs → chunk-ISY7PBIK.mjs} +5 -5
- package/dist/cli/{chunk-XJZU7KO4.js → chunk-IYWN7M4I.js} +5 -5
- package/dist/cli/{chunk-PQ56GE55.mjs → chunk-JDDKJIZU.mjs} +1 -1
- package/dist/cli/{chunk-UV524JZ5.mjs → chunk-JHBZBCU4.mjs} +1 -1
- package/dist/cli/{chunk-4NJK6P5T.js → chunk-JIY25SUX.js} +4 -4
- package/dist/cli/{chunk-XL4FFVWL.js → chunk-JYFLIQPE.js} +7 -7
- package/dist/cli/{chunk-N7FV7OM3.js → chunk-K4JB2BZP.js} +96 -96
- package/dist/cli/{chunk-EJ57CA2L.mjs → chunk-KK6NZHAJ.mjs} +1 -1
- package/dist/cli/{chunk-3LXU22UZ.js → chunk-KUDNPJ43.js} +2 -2
- package/dist/cli/{chunk-KXSOZYCS.mjs → chunk-KXGH4YUQ.mjs} +1 -1
- package/dist/cli/{chunk-HC27PYJM.js → chunk-KZBKQPSA.js} +2 -2
- package/dist/cli/{chunk-B2T7PBS6.js → chunk-LDZYGM7W.js} +41 -41
- package/dist/cli/{chunk-YDALHHUC.js → chunk-LKSJXTRP.js} +53 -53
- package/dist/cli/{chunk-QRQBKLOM.js → chunk-NVMNMKZW.js} +3 -3
- package/dist/cli/{chunk-EEQ2QQOH.js → chunk-O37BQ2CG.js} +10 -10
- package/dist/cli/{chunk-7BF4R26M.mjs → chunk-OQ4YBPOQ.mjs} +3 -3
- package/dist/cli/{chunk-B2U3LVSO.mjs → chunk-PCI4MMH7.mjs} +1 -1
- package/dist/cli/{chunk-JNECQ5QF.js → chunk-PI45LZ5B.js} +11 -11
- package/dist/cli/{chunk-ASBWPRBN.js → chunk-PUFEARWT.js} +16 -16
- package/dist/cli/{chunk-WAOLTP6R.mjs → chunk-QDWNVTTO.mjs} +2 -2
- package/dist/cli/{chunk-RHKFNEV2.mjs → chunk-RPPU3XB3.mjs} +2 -2
- package/dist/cli/{chunk-Q5EJO4TE.mjs → chunk-S5C4CWSS.mjs} +5 -5
- package/dist/cli/{chunk-563HM4D2.mjs → chunk-S6KEACD3.mjs} +6 -6
- package/dist/cli/{chunk-WC5754QJ.mjs → chunk-SI4QXATV.mjs} +5 -5
- package/dist/cli/{chunk-HOKOJGQW.mjs → chunk-VEOFISLZ.mjs} +1 -1
- package/dist/cli/{chunk-BPGFNVH2.js → chunk-VHFTN6VY.js} +44 -44
- package/dist/cli/{chunk-DEPBCRKG.mjs → chunk-VQ74WMKG.mjs} +3 -3
- package/dist/cli/{chunk-JY73USD7.js → chunk-WDBEWOU6.js} +2 -2
- package/dist/cli/{chunk-7VQKU6MS.js → chunk-XGXXNT4O.js} +270 -199
- package/dist/cli/{chunk-JVEU6MXD.mjs → chunk-XREZY4FA.mjs} +1 -1
- package/dist/cli/{chunk-OEG6VCK4.mjs → chunk-XSBGWMI6.mjs} +72 -1
- package/dist/cli/{chunk-B6Q6BHSY.mjs → chunk-XXQZYLLL.mjs} +2 -2
- package/dist/cli/{chunk-7VT7RMZ2.mjs → chunk-XZ6IZIQJ.mjs} +2 -2
- package/dist/cli/{chunk-63DHG7BM.js → chunk-YX7E2VQM.js} +26 -26
- package/dist/cli/{chunk-5MYXW6M6.mjs → chunk-ZFJ2U76O.mjs} +2 -2
- package/dist/cli/{chunk-2JXEZAJF.js → chunk-ZWGBQKW7.js} +21 -21
- package/dist/cli/{chunk-FFPLCSTZ.mjs → chunk-ZYVR4A4P.mjs} +10 -10
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-MTFVEDPU.mjs → csv-CNK6ZF3T.mjs} +4 -4
- package/dist/cli/{csv-UXFQZLZM.js → csv-S44OGG2O.js} +13 -13
- package/dist/cli/{db-3WPUYCCI.mjs → db-AVO6QJU6.mjs} +6 -6
- package/dist/cli/{db-RGWT6B7K.js → db-WKZ6EXNG.js} +27 -27
- package/dist/cli/{describe-XJY5654F.mjs → describe-2HQRT5MI.mjs} +18 -18
- package/dist/cli/describe-CCK77NER.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-PDE4V5YH.mjs → executions-DKHOR7HD.mjs} +6 -6
- package/dist/cli/{executions-IWTALFNB.js → executions-MTAHNARA.js} +8 -8
- package/dist/cli/{feedback-BMOVTPC4.mjs → feedback-K6SJS4LG.mjs} +5 -5
- package/dist/cli/{feedback-I72P4XZS.js → feedback-R2UABU3E.js} +10 -10
- package/dist/cli/{git-QJG3EF4P.mjs → git-3EPA7433.mjs} +5 -5
- package/dist/cli/git-7L3PY2A4.js +25 -0
- package/dist/cli/index.js +148 -144
- package/dist/cli/index.mjs +47 -43
- package/dist/cli/{legacy-noops-5P75CQC7.js → legacy-noops-3Q2D2F24.js} +9 -9
- package/dist/cli/{legacy-noops-MZ45GDMK.mjs → legacy-noops-66OPCJJD.mjs} +6 -6
- package/dist/cli/{monitors-VIOBUG2X.mjs → monitors-2PYPRWT4.mjs} +7 -7
- package/dist/cli/{monitors-5PHQZDZM.js → monitors-KHH4MZDF.js} +100 -100
- package/dist/cli/{org-D5RTFJNY.mjs → org-WAW3OL7B.mjs} +6 -6
- package/dist/cli/{org-B5LDVP2P.js → org-X5G36B2Q.js} +72 -72
- package/dist/cli/{pages-XWZL3YV2.mjs → pages-KABWXDGW.mjs} +6 -6
- package/dist/cli/{pages-BUJYG3JL.js → pages-XDPHCHHU.js} +18 -18
- package/dist/cli/{play-OSXLGCLZ.mjs → play-654B2HQU.mjs} +18 -18
- package/dist/cli/{play-SEC3EE7H.js → play-UE5FKQCO.js} +317 -317
- package/dist/cli/{providers-RQPUASLI.js → providers-QT2BZMJ7.js} +9 -9
- package/dist/cli/{providers-ENSURIW6.mjs → providers-SKNGX6IT.mjs} +6 -6
- package/dist/cli/{quickstart-HJTK6XWI.mjs → quickstart-BX7XMJIQ.mjs} +4 -4
- package/dist/cli/{quickstart-XDTU4MAT.js → quickstart-XWDVAQTT.js} +6 -6
- package/dist/cli/{run-GX2SU5AT.js → run-C6YYD4AK.js} +41 -41
- package/dist/cli/{run-ZMWSQAR2.mjs → run-JTU4K4MY.mjs} +23 -23
- package/dist/cli/{search-DZHZBHWT.mjs → search-NHV4Y4SX.mjs} +8 -8
- package/dist/cli/search-RIFW5JCK.js +33 -0
- package/dist/cli/{search-output-MNHAR754.mjs → search-output-AAOMFK7K.mjs} +4 -4
- package/dist/cli/{search-output-3JVZERNV.js → search-output-WLFFEGCY.js} +6 -6
- package/dist/cli/{secrets-WO2LMDQ2.js → secrets-H4WTLQJJ.js} +15 -15
- package/dist/cli/{secrets-VALVNVXB.mjs → secrets-S66PZSRO.mjs} +6 -6
- package/dist/cli/sessions-EFWO62XJ.js +18 -0
- package/dist/cli/{sessions-EPYCH3AY.mjs → sessions-PY6FJX3O.mjs} +6 -6
- package/dist/cli/{settings-W2ABZUD4.mjs → settings-V7BM42KQ.mjs} +13 -13
- package/dist/cli/{settings-OSF4O5HM.js → settings-YO4FFPN6.js} +86 -86
- package/dist/cli/{setup-DCXNQG6R.js → setup-IFZYYQ2W.js} +50 -50
- package/dist/cli/{setup-XI2ERSMQ.mjs → setup-VUBM2HMH.mjs} +10 -10
- package/dist/cli/{skills-ZO4AH2YR.mjs → skills-EYWRSQQJ.mjs} +8 -8
- package/dist/cli/skills-LFP53SWQ.js +37 -0
- package/dist/cli/tools-SR2Q7KC5.js +57 -0
- package/dist/cli/{tools-FTECXZYA.mjs → tools-VZOW4MUD.mjs} +17 -17
- package/dist/cli/update-ADZBZZZS.js +35 -0
- package/dist/cli/{update-WPFZO2JE.mjs → update-CQDJJYU2.mjs} +10 -10
- package/dist/cli/{workflow-7X75IP3D.mjs → workflow-2VRDIPF3.mjs} +7 -7
- package/dist/cli/{workflow-PKMU33LV.js → workflow-XS3JEU6X.js} +17 -17
- package/dist/{client-DMpsMNH9.d.mts → client-By7bUS8h.d.mts} +1 -1
- package/dist/{client-BlwD-G4v.d.ts → client-CmlKSBXd.d.ts} +1 -1
- package/dist/{client-core-DwBLuEkm.d.ts → client-core-BM0mKhgp.d.ts} +93 -1
- package/dist/{client-core-CITtRTbB.d.mts → client-core-BZ3tpY_J.d.mts} +93 -1
- 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 +110 -108
- 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-S2Z5YMU3.js +0 -43
- package/dist/cli/describe-LNCLA2LA.js +0 -50
- package/dist/cli/git-QWH7SPGF.js +0 -25
- package/dist/cli/search-7WPABWYO.js +0 -33
- package/dist/cli/sessions-2IA2DGWO.js +0 -18
- package/dist/cli/skills-QMD2WARJ.js +0 -37
- package/dist/cli/tools-53E6GBQU.js +0 -57
- package/dist/cli/update-PPPNR6J5.js +0 -35
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXGXXNT4Ojs = require('./chunk-XGXXNT4O.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
|
|
@@ -11,7 +11,7 @@ var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkJYFLIQPEjs = require('./chunk-JYFLIQPE.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.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 = _chunkJYFLIQPEjs.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 ? _chunkJYFLIQPEjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkJYFLIQPEjs.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");
|
|
@@ -656,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
656
656
|
"--log-level requires one of: debug, info, warn, error."
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
|
-
const parsed =
|
|
659
|
+
const parsed = _chunkXGXXNT4Ojs.parseLogLevel.call(void 0, value);
|
|
660
660
|
if (!parsed) {
|
|
661
661
|
throw new Error(
|
|
662
662
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -974,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
974
974
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
975
975
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
976
976
|
);
|
|
977
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
977
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkXGXXNT4Ojs.parseLogLevel.call(void 0, options.logLevel);
|
|
978
978
|
if (!logLevel)
|
|
979
979
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
980
980
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -988,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
988
988
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
989
989
|
logLevel = "debug";
|
|
990
990
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
991
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
992
|
-
[...fullJson ? ["--full"] : [], ...
|
|
991
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkJYFLIQPEjs.parseJsonFields.call(void 0,
|
|
992
|
+
[...fullJson ? ["--full"] : [], ..._chunkJYFLIQPEjs.jsonFieldArgs.call(void 0, options.json)],
|
|
993
993
|
"run"
|
|
994
994
|
).fields;
|
|
995
995
|
const watch = options.wait === false ? false : base.watch;
|
|
996
996
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
997
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
997
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkJYFLIQPEjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
998
998
|
const verboseLogs = Boolean(
|
|
999
999
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1000
1000
|
);
|
|
@@ -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.511",
|
|
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."
|
|
@@ -1927,6 +1927,68 @@ Cost:
|
|
|
1927
1927
|
Free.
|
|
1928
1928
|
Avoid:
|
|
1929
1929
|
Do not post a link anywhere public: it opens the page for anyone holding it.
|
|
1930
|
+
`
|
|
1931
|
+
},
|
|
1932
|
+
artifacts: {
|
|
1933
|
+
rolloutFeature: "artifacts",
|
|
1934
|
+
core: `
|
|
1935
|
+
Purpose:
|
|
1936
|
+
Show what a Play returns at a fixed URL, https://artifacts.deepline.com/<id>,
|
|
1937
|
+
and keep every run. Also called a report or dashboard; use it to turn a
|
|
1938
|
+
static artifact into one that stays current.
|
|
1939
|
+
When:
|
|
1940
|
+
To share results that change: run the Play again (or schedule it) and the
|
|
1941
|
+
artifact shows the new run. People can switch to earlier runs in the
|
|
1942
|
+
artifact itself.
|
|
1943
|
+
How output is shown:
|
|
1944
|
+
HTML output, { type: "html", content: "<h1>\u2026</h1>" }, renders as a page in a
|
|
1945
|
+
sandbox. Scripts and https requests work; links to other sites ask first.
|
|
1946
|
+
Any other output renders with Deepline's components: tables for lists of
|
|
1947
|
+
records and datasets, Markdown ({ type: "markdown", content }), images,
|
|
1948
|
+
audio, video, files, graphs, and readable values for everything else; the
|
|
1949
|
+
same conventions as Deepline's browser extension.
|
|
1950
|
+
The sequence:
|
|
1951
|
+
1. Create it: [[artifacts create --name <name> --play <play>]]. The output
|
|
1952
|
+
prints the URL and id. --input saves the input Refresh runs the Play with.
|
|
1953
|
+
2. Fill it in: [[artifacts refresh <id>]] runs the Play. A scheduled Play
|
|
1954
|
+
refreshes it automatically; every run of the Play appears in it.
|
|
1955
|
+
3. Share it: the URL opens for workspace members by default.
|
|
1956
|
+
[[artifacts set-access <id> public]] lets anyone with the URL open it.
|
|
1957
|
+
4. Manage it: [[artifacts list]], [[artifacts get <id>]],
|
|
1958
|
+
[[artifacts edit <id>]], [[artifacts runs <id>]], [[artifacts delete <id>]].
|
|
1959
|
+
Buttons in HTML output:
|
|
1960
|
+
An HTML output may declare actions beside its content,
|
|
1961
|
+
actions: [{ id, type: "run_play", play, input? }], and use
|
|
1962
|
+
<button data-deepline-action="id"> or deepline.action(id, input). A click
|
|
1963
|
+
opens a launch form where a signed-in member reviews the inputs and starts
|
|
1964
|
+
the run. Plays in this workspace only; never for public visitors.
|
|
1965
|
+
Permissions:
|
|
1966
|
+
[[artifacts permissions]] shows who may create, edit, delete, set access, and
|
|
1967
|
+
refresh; admins change them with [[artifacts permissions set]].
|
|
1968
|
+
Cost:
|
|
1969
|
+
Artifacts are free. Refresh and buttons start ordinary Play runs.
|
|
1970
|
+
Avoid:
|
|
1971
|
+
Do not return secrets in a Play whose artifact is public. Do not create a
|
|
1972
|
+
new artifact per run; one artifact keeps every run.
|
|
1973
|
+
`
|
|
1974
|
+
},
|
|
1975
|
+
"artifacts create": {
|
|
1976
|
+
rolloutFeature: "artifacts",
|
|
1977
|
+
core: `
|
|
1978
|
+
Purpose:
|
|
1979
|
+
Create an artifact that shows a Play's runs at a fixed URL.
|
|
1980
|
+
[[cli:
|
|
1981
|
+
Input:
|
|
1982
|
+
--name <name> (1-120 characters). --play <play>: a Play in this workspace,
|
|
1983
|
+
or prebuilt/<name>. --input <json|@file>: saved input for Refresh.
|
|
1984
|
+
--description <text>. --json prints JSON.
|
|
1985
|
+
]]
|
|
1986
|
+
Output (JSON):
|
|
1987
|
+
id, name, url, play, input, access (workspace).
|
|
1988
|
+
Errors (code):
|
|
1989
|
+
name_invalid, play_invalid, input_invalid, forbidden, artifacts_not_enabled.
|
|
1990
|
+
Cost:
|
|
1991
|
+
Free.
|
|
1930
1992
|
`
|
|
1931
1993
|
},
|
|
1932
1994
|
"sessions send": {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HLEZQDEZ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VEOFISLZ.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -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.511",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -1,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 _chunkXGXXNT4Ojs = require('./chunk-XGXXNT4O.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkGGQHOLH6js = require('./chunk-GGQHOLH6.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkXGXXNT4Ojs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkGGQHOLH6js.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkGGQHOLH6js.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,11 +1,11 @@
|
|
|
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 _chunkWDBEWOU6js = require('./chunk-WDBEWOU6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkVHFTN6VYjs = require('./chunk-VHFTN6VY.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunkVHFTN6VYjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkWDBEWOU6js.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkVHFTN6VYjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
|
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
32
|
if (compatibility.error) throw compatibility.error;
|
|
33
|
-
|
|
33
|
+
_chunkVHFTN6VYjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -1927,6 +1927,68 @@ Cost:
|
|
|
1927
1927
|
Free.
|
|
1928
1928
|
Avoid:
|
|
1929
1929
|
Do not post a link anywhere public: it opens the page for anyone holding it.
|
|
1930
|
+
`
|
|
1931
|
+
},
|
|
1932
|
+
artifacts: {
|
|
1933
|
+
rolloutFeature: "artifacts",
|
|
1934
|
+
core: `
|
|
1935
|
+
Purpose:
|
|
1936
|
+
Show what a Play returns at a fixed URL, https://artifacts.deepline.com/<id>,
|
|
1937
|
+
and keep every run. Also called a report or dashboard; use it to turn a
|
|
1938
|
+
static artifact into one that stays current.
|
|
1939
|
+
When:
|
|
1940
|
+
To share results that change: run the Play again (or schedule it) and the
|
|
1941
|
+
artifact shows the new run. People can switch to earlier runs in the
|
|
1942
|
+
artifact itself.
|
|
1943
|
+
How output is shown:
|
|
1944
|
+
HTML output, { type: "html", content: "<h1>\u2026</h1>" }, renders as a page in a
|
|
1945
|
+
sandbox. Scripts and https requests work; links to other sites ask first.
|
|
1946
|
+
Any other output renders with Deepline's components: tables for lists of
|
|
1947
|
+
records and datasets, Markdown ({ type: "markdown", content }), images,
|
|
1948
|
+
audio, video, files, graphs, and readable values for everything else; the
|
|
1949
|
+
same conventions as Deepline's browser extension.
|
|
1950
|
+
The sequence:
|
|
1951
|
+
1. Create it: [[artifacts create --name <name> --play <play>]]. The output
|
|
1952
|
+
prints the URL and id. --input saves the input Refresh runs the Play with.
|
|
1953
|
+
2. Fill it in: [[artifacts refresh <id>]] runs the Play. A scheduled Play
|
|
1954
|
+
refreshes it automatically; every run of the Play appears in it.
|
|
1955
|
+
3. Share it: the URL opens for workspace members by default.
|
|
1956
|
+
[[artifacts set-access <id> public]] lets anyone with the URL open it.
|
|
1957
|
+
4. Manage it: [[artifacts list]], [[artifacts get <id>]],
|
|
1958
|
+
[[artifacts edit <id>]], [[artifacts runs <id>]], [[artifacts delete <id>]].
|
|
1959
|
+
Buttons in HTML output:
|
|
1960
|
+
An HTML output may declare actions beside its content,
|
|
1961
|
+
actions: [{ id, type: "run_play", play, input? }], and use
|
|
1962
|
+
<button data-deepline-action="id"> or deepline.action(id, input). A click
|
|
1963
|
+
opens a launch form where a signed-in member reviews the inputs and starts
|
|
1964
|
+
the run. Plays in this workspace only; never for public visitors.
|
|
1965
|
+
Permissions:
|
|
1966
|
+
[[artifacts permissions]] shows who may create, edit, delete, set access, and
|
|
1967
|
+
refresh; admins change them with [[artifacts permissions set]].
|
|
1968
|
+
Cost:
|
|
1969
|
+
Artifacts are free. Refresh and buttons start ordinary Play runs.
|
|
1970
|
+
Avoid:
|
|
1971
|
+
Do not return secrets in a Play whose artifact is public. Do not create a
|
|
1972
|
+
new artifact per run; one artifact keeps every run.
|
|
1973
|
+
`
|
|
1974
|
+
},
|
|
1975
|
+
"artifacts create": {
|
|
1976
|
+
rolloutFeature: "artifacts",
|
|
1977
|
+
core: `
|
|
1978
|
+
Purpose:
|
|
1979
|
+
Create an artifact that shows a Play's runs at a fixed URL.
|
|
1980
|
+
[[cli:
|
|
1981
|
+
Input:
|
|
1982
|
+
--name <name> (1-120 characters). --play <play>: a Play in this workspace,
|
|
1983
|
+
or prebuilt/<name>. --input <json|@file>: saved input for Refresh.
|
|
1984
|
+
--description <text>. --json prints JSON.
|
|
1985
|
+
]]
|
|
1986
|
+
Output (JSON):
|
|
1987
|
+
id, name, url, play, input, access (workspace).
|
|
1988
|
+
Errors (code):
|
|
1989
|
+
name_invalid, play_invalid, input_invalid, forbidden, artifacts_not_enabled.
|
|
1990
|
+
Cost:
|
|
1991
|
+
Free.
|
|
1930
1992
|
`
|
|
1931
1993
|
},
|
|
1932
1994
|
"sessions send": {
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ISY7PBIK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S5C4CWSS.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HLEZQDEZ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VEOFISLZ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JDDKJIZU.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkK4JB2BZPjs = require('./chunk-K4JB2BZP.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2Q4H2Y6Njs = require('./chunk-2Q4H2Y6N.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,18 +14,18 @@ var _chunkTMQUMILMjs = require('./chunk-TMQUMILM.js');
|
|
|
14
14
|
var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkD5VWSR4Djs = require('./chunk-D5VWSR4D.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkGD3ES3JUjs = require('./chunk-GD3ES3JU.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkJYFLIQPEjs = require('./chunk-JYFLIQPE.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkGGQHOLH6js = require('./chunk-GGQHOLH6.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
var _fs = require('fs');
|
|
@@ -34,14 +34,14 @@ var _path = require('path');
|
|
|
34
34
|
// src/cli/doc-read-reporting.ts
|
|
35
35
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
36
36
|
async function reportDocRead(docId) {
|
|
37
|
-
if (
|
|
37
|
+
if (_chunkGD3ES3JUjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
38
38
|
try {
|
|
39
|
-
const baseUrl =
|
|
40
|
-
const apiKey =
|
|
39
|
+
const baseUrl = _chunkGGQHOLH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
40
|
+
const apiKey = _chunkGGQHOLH6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
41
41
|
if (!apiKey) return;
|
|
42
42
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
43
43
|
method: "POST",
|
|
44
|
-
headers:
|
|
44
|
+
headers: _chunkGD3ES3JUjs.failureReportHeaders.call(void 0, apiKey),
|
|
45
45
|
body: JSON.stringify({ doc_id: docId }),
|
|
46
46
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
47
47
|
});
|
|
@@ -54,16 +54,16 @@ function nothingNamed(name) {
|
|
|
54
54
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
55
55
|
}
|
|
56
56
|
function findNamed2(name, options) {
|
|
57
|
-
return _chunkTMQUMILMjs.findNamed.call(void 0, name, options, _chunkTMQUMILMjs.describeLookupsFor.call(void 0, new (0,
|
|
57
|
+
return _chunkTMQUMILMjs.findNamed.call(void 0, name, options, _chunkTMQUMILMjs.describeLookupsFor.call(void 0, new (0, _chunkD5VWSR4Djs.DeeplineClient)()));
|
|
58
58
|
}
|
|
59
59
|
async function describeAnything(name, options, onMissing) {
|
|
60
|
-
const client = new (0,
|
|
60
|
+
const client = new (0, _chunkD5VWSR4Djs.DeeplineClient)();
|
|
61
61
|
const lookups = _chunkTMQUMILMjs.describeLookupsFor.call(void 0, client);
|
|
62
62
|
const outcome = await _chunkTMQUMILMjs.describeName.call(void 0, name, options, {
|
|
63
63
|
...lookups,
|
|
64
64
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
65
65
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
66
|
-
seedStarterScript:
|
|
66
|
+
seedStarterScript: _chunkK4JB2BZPjs.seedToolListScript
|
|
67
67
|
});
|
|
68
68
|
if (outcome.status === "missing") {
|
|
69
69
|
if (onMissing) return onMissing();
|
|
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
89
89
|
` : text;
|
|
90
90
|
_fs.writeFileSync.call(void 0, path, content);
|
|
91
91
|
const bytes = Buffer.byteLength(content);
|
|
92
|
-
|
|
92
|
+
_chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
|
|
93
93
|
{ path, bytes },
|
|
94
94
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
95
95
|
` }
|
|
96
96
|
);
|
|
97
97
|
return 0;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
_chunkJYFLIQPEjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
100
100
|
return 0;
|
|
101
101
|
}
|
|
102
102
|
function registerDescribeCommand(program) {
|
|
103
|
-
|
|
103
|
+
_chunk2Q4H2Y6Njs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
104
104
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
105
105
|
).addHelpText(
|
|
106
106
|
"after",
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkGGQHOLH6js = require('./chunk-GGQHOLH6.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkJIY25SUXjs = require('./chunk-JIY25SUX.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -150,7 +150,7 @@ function buildEnvironmentContext() {
|
|
|
150
150
|
node_version: process.version,
|
|
151
151
|
runtime: "Node.js",
|
|
152
152
|
hostname: _os.hostname.call(void 0, ),
|
|
153
|
-
agent_runtime:
|
|
153
|
+
agent_runtime: _chunkJIY25SUXjs.detectAgentRuntime.call(void 0, )
|
|
154
154
|
};
|
|
155
155
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
156
156
|
const normalized = _optionalChain([process, 'access', _5 => _5.env, 'access', _6 => _6[key], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);
|
|
@@ -171,18 +171,18 @@ function buildEnvironmentContext() {
|
|
|
171
171
|
return context;
|
|
172
172
|
}
|
|
173
173
|
function failureReportHeaders(apiKey) {
|
|
174
|
-
const agentSessionId =
|
|
174
|
+
const agentSessionId = _chunkJIY25SUXjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
175
175
|
return {
|
|
176
|
-
...
|
|
176
|
+
..._chunkJIY25SUXjs.deploymentProtectionHeaders.call(void 0, ),
|
|
177
177
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
178
178
|
Authorization: `Bearer ${apiKey}`,
|
|
179
179
|
"Content-Type": "application/json",
|
|
180
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
180
|
+
"User-Agent": `deepline-ts-sdk/${_chunkJIY25SUXjs.SDK_VERSION}`,
|
|
181
181
|
"X-Deepline-Client-Family": "sdk",
|
|
182
182
|
"X-Deepline-CLI-Family": "sdk",
|
|
183
|
-
"X-Deepline-Agent-Runtime":
|
|
184
|
-
"X-Deepline-CLI-Version":
|
|
185
|
-
"X-Deepline-SDK-Version":
|
|
183
|
+
"X-Deepline-Agent-Runtime": _chunkJIY25SUXjs.detectAgentRuntime.call(void 0, ),
|
|
184
|
+
"X-Deepline-CLI-Version": _chunkJIY25SUXjs.SDK_VERSION,
|
|
185
|
+
"X-Deepline-SDK-Version": _chunkJIY25SUXjs.SDK_VERSION
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
async function postFailureReport(input) {
|
|
@@ -210,7 +210,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
210
210
|
if (isFailureReportingDisabled()) return false;
|
|
211
211
|
let apiKey = "";
|
|
212
212
|
try {
|
|
213
|
-
apiKey =
|
|
213
|
+
apiKey = _chunkGGQHOLH6js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
214
214
|
} catch (e2) {
|
|
215
215
|
return false;
|
|
216
216
|
}
|
|
@@ -237,7 +237,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
237
237
|
failure_code: failureCode2,
|
|
238
238
|
failure_stage: failureStage,
|
|
239
239
|
error_body: "Automatic Deepline skills installation failed.",
|
|
240
|
-
cli_version:
|
|
240
|
+
cli_version: _chunkJIY25SUXjs.SDK_VERSION,
|
|
241
241
|
context: {
|
|
242
242
|
environment: buildEnvironmentContext(),
|
|
243
243
|
skills_sync: {
|
|
@@ -357,7 +357,7 @@ function buildFailureReport(input) {
|
|
|
357
357
|
failure_kind: failureKind,
|
|
358
358
|
failure_code: code,
|
|
359
359
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
360
|
-
cli_version:
|
|
360
|
+
cli_version: _chunkJIY25SUXjs.SDK_VERSION,
|
|
361
361
|
context: {
|
|
362
362
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
363
363
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -377,8 +377,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
377
377
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
378
378
|
const exitCode = resolvedExitCode(input);
|
|
379
379
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
380
|
-
const baseUrl =
|
|
381
|
-
const apiKey =
|
|
380
|
+
const baseUrl = _chunkGGQHOLH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
381
|
+
const apiKey = _chunkGGQHOLH6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
382
382
|
if (!apiKey) return false;
|
|
383
383
|
return postFailureReport({
|
|
384
384
|
baseUrl,
|
|
@@ -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 _chunkJIY25SUXjs = require('./chunk-JIY25SUX.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 (_chunkJIY25SUXjs.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 _chunkJIY25SUXjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-S5C4CWSS.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HLEZQDEZ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VEOFISLZ.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JDDKJIZU.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VEOFISLZ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JDDKJIZU.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KXGH4YUQ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GJWL4KTY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S5C4CWSS.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HLEZQDEZ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VEOFISLZ.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkXGXXNT4Ojs = require('./chunk-XGXXNT4O.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkGGQHOLH6js = require('./chunk-GGQHOLH6.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkGGQHOLH6js.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkXGXXNT4Ojs.PlayClient)(
|
|
142
|
+
new (0, _chunkGGQHOLH6js.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|