deepline 0.3.509 → 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/monitors/org-monitor-limits.ts +7 -2
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +3 -3
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +94 -43
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +111 -27
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/runtime-topology.ts +79 -6
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +80 -6
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-transient-retry.ts +571 -0
- 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-6IR2QH4N.mjs → auth-2XMJMDWG.mjs} +5 -5
- package/dist/cli/auth-PI2KS2CD.js +43 -0
- package/dist/cli/{billing-WEWHH6ST.mjs → billing-6C5AI42X.mjs} +7 -7
- package/dist/cli/{billing-SYBK3ZYU.js → billing-Z3XFXP3H.js} +82 -82
- package/dist/cli/{chunk-JZJNA57M.js → chunk-2Q4H2Y6N.js} +6 -6
- package/dist/cli/{chunk-VTVZ7EUA.js → chunk-2YVRIXVR.js} +9 -9
- package/dist/cli/{chunk-RSKAPLST.mjs → chunk-5WTLXL6O.mjs} +1 -1
- package/dist/cli/{chunk-YJM3NOME.mjs → chunk-77DPQI6W.mjs} +94 -10
- package/dist/cli/{chunk-FNLGMMJJ.mjs → chunk-ASXOFBF7.mjs} +2 -2
- package/dist/cli/{chunk-AO63MXT6.js → chunk-BHV7JKXQ.js} +1 -1
- package/dist/cli/{chunk-RA2NKHV5.js → chunk-D5VWSR4D.js} +5 -5
- package/dist/cli/{chunk-CMSPA5VX.js → chunk-FAGSSIOY.js} +6 -6
- package/dist/cli/{chunk-J5P4PDRT.js → chunk-FF25PDQ2.js} +94 -10
- package/dist/cli/{chunk-SEQIB5WJ.mjs → chunk-FTT2SBBH.mjs} +5 -5
- package/dist/cli/{chunk-5Y3I5LEQ.js → chunk-FV4PASXH.js} +16 -16
- package/dist/cli/{chunk-GTAU4C44.js → chunk-GD3ES3JU.js} +14 -14
- package/dist/cli/{chunk-HMAETS53.js → chunk-GGQHOLH6.js} +3 -3
- package/dist/cli/{chunk-T67NAGSD.mjs → chunk-GJWL4KTY.mjs} +4 -4
- package/dist/cli/{chunk-6KBVQ76G.mjs → chunk-HLEZQDEZ.mjs} +2 -2
- package/dist/cli/{chunk-WJ6H2W3O.mjs → chunk-ISY7PBIK.mjs} +5 -5
- package/dist/cli/{chunk-AD45WJHN.js → chunk-IYWN7M4I.js} +5 -5
- package/dist/cli/{chunk-3CZHC24N.mjs → chunk-JDDKJIZU.mjs} +1 -1
- package/dist/cli/{chunk-E3HWUGDT.mjs → chunk-JHBZBCU4.mjs} +1 -1
- package/dist/cli/{chunk-7KALZEDZ.js → chunk-JIY25SUX.js} +4 -4
- package/dist/cli/{chunk-726UDAV2.js → chunk-JYFLIQPE.js} +7 -7
- package/dist/cli/{chunk-DGOSW42X.js → chunk-K4JB2BZP.js} +96 -96
- package/dist/cli/{chunk-XEQH65DT.mjs → chunk-KK6NZHAJ.mjs} +1 -1
- package/dist/cli/chunk-KUDNPJ43.js +77 -0
- package/dist/cli/{chunk-IZW7IOD6.mjs → chunk-KXGH4YUQ.mjs} +1 -1
- package/dist/cli/{chunk-Q7G6WORO.js → chunk-KZBKQPSA.js} +2 -2
- package/dist/cli/{chunk-4DVANPBN.js → chunk-LDZYGM7W.js} +41 -41
- package/dist/cli/{chunk-XPKBYMJH.js → chunk-LKSJXTRP.js} +53 -53
- package/dist/cli/{chunk-Q5UO2ENN.js → chunk-NVMNMKZW.js} +3 -3
- package/dist/cli/{chunk-VZ773N7G.js → chunk-O37BQ2CG.js} +21 -10
- package/dist/cli/{chunk-OOD5LGUS.mjs → chunk-OQ4YBPOQ.mjs} +3 -3
- package/dist/cli/{chunk-UART6FGK.mjs → chunk-PCI4MMH7.mjs} +1 -1
- package/dist/cli/{chunk-2ZJRCAHG.js → chunk-PI45LZ5B.js} +11 -11
- package/dist/cli/{chunk-O527H5GY.js → chunk-PUFEARWT.js} +16 -16
- package/dist/cli/{chunk-25MAOMVS.mjs → chunk-QDWNVTTO.mjs} +2 -2
- package/dist/cli/{chunk-WUKNKFB3.mjs → chunk-RPPU3XB3.mjs} +2 -2
- package/dist/cli/{chunk-XIBNY6H6.mjs → chunk-S5C4CWSS.mjs} +5 -5
- package/dist/cli/{chunk-2U7Z4LFG.mjs → chunk-S6KEACD3.mjs} +6 -6
- package/dist/cli/{chunk-Y4M5HPQV.mjs → chunk-SI4QXATV.mjs} +5 -5
- package/dist/cli/{chunk-R2KNJMOY.mjs → chunk-VEOFISLZ.mjs} +1 -1
- package/dist/cli/{chunk-Z2LVZDO5.js → chunk-VHFTN6VY.js} +44 -44
- package/dist/cli/{chunk-54YPOG5W.mjs → chunk-VQ74WMKG.mjs} +15 -4
- package/dist/cli/{chunk-ZXGMWXZW.js → chunk-WDBEWOU6.js} +2 -2
- package/dist/cli/{chunk-6TBRWRJ2.js → chunk-XGXXNT4O.js} +270 -199
- package/dist/cli/chunk-XREZY4FA.mjs +77 -0
- package/dist/cli/{chunk-K2RCVD7S.mjs → chunk-XSBGWMI6.mjs} +72 -1
- package/dist/cli/{chunk-S7JEF2MR.mjs → chunk-XXQZYLLL.mjs} +2 -2
- package/dist/cli/{chunk-EEEWADSR.mjs → chunk-XZ6IZIQJ.mjs} +2 -2
- package/dist/cli/{chunk-WPBTWRKG.js → chunk-YX7E2VQM.js} +26 -26
- package/dist/cli/{chunk-FQCIYGQY.mjs → chunk-ZFJ2U76O.mjs} +2 -2
- package/dist/cli/{chunk-7NMPGX3W.js → chunk-ZWGBQKW7.js} +21 -21
- package/dist/cli/{chunk-VH522HUP.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-4LAJ2ZKG.mjs → csv-CNK6ZF3T.mjs} +4 -4
- package/dist/cli/{csv-5KNONIAX.js → csv-S44OGG2O.js} +13 -13
- package/dist/cli/{db-BEVCJI66.mjs → db-AVO6QJU6.mjs} +6 -6
- package/dist/cli/{db-5PEXOSN3.js → db-WKZ6EXNG.js} +27 -27
- package/dist/cli/{describe-TDJIUSD6.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-KXCPU6YC.mjs → executions-DKHOR7HD.mjs} +6 -6
- package/dist/cli/{executions-36GV3A27.js → executions-MTAHNARA.js} +8 -8
- package/dist/cli/{feedback-GEUUT4S7.mjs → feedback-K6SJS4LG.mjs} +11 -7
- package/dist/cli/{feedback-SPQABV33.js → feedback-R2UABU3E.js} +15 -11
- package/dist/cli/{git-AE36X2R6.mjs → git-3EPA7433.mjs} +5 -5
- package/dist/cli/git-7L3PY2A4.js +25 -0
- package/dist/cli/index.js +177 -156
- package/dist/cli/index.mjs +80 -59
- package/dist/cli/{legacy-noops-TKPHN7WT.js → legacy-noops-3Q2D2F24.js} +9 -8
- package/dist/cli/{legacy-noops-LUEDAK7J.mjs → legacy-noops-66OPCJJD.mjs} +6 -5
- package/dist/cli/{monitors-JHJZ5XG7.mjs → monitors-2PYPRWT4.mjs} +7 -7
- package/dist/cli/{monitors-B2EAIGZI.js → monitors-KHH4MZDF.js} +100 -100
- package/dist/cli/{org-GUICCEBZ.mjs → org-WAW3OL7B.mjs} +6 -6
- package/dist/cli/{org-PYCPXEAU.js → org-X5G36B2Q.js} +72 -72
- package/dist/cli/{pages-Y2XI36HY.mjs → pages-KABWXDGW.mjs} +6 -6
- package/dist/cli/{pages-CV4TQNFY.js → pages-XDPHCHHU.js} +18 -18
- package/dist/cli/{play-VWCQNGZZ.mjs → play-654B2HQU.mjs} +18 -18
- package/dist/cli/{play-MTVK66JK.js → play-UE5FKQCO.js} +317 -317
- package/dist/cli/{providers-N72BUCXZ.js → providers-QT2BZMJ7.js} +9 -9
- package/dist/cli/{providers-ZOZTST3A.mjs → providers-SKNGX6IT.mjs} +6 -6
- package/dist/cli/{quickstart-DXIC3NHS.mjs → quickstart-BX7XMJIQ.mjs} +4 -4
- package/dist/cli/{quickstart-FK53VZB3.js → quickstart-XWDVAQTT.js} +6 -6
- package/dist/cli/{run-NNAYDCEN.js → run-C6YYD4AK.js} +41 -41
- package/dist/cli/{run-IL2KI33N.mjs → run-JTU4K4MY.mjs} +23 -23
- package/dist/cli/{search-7IPVMQCO.mjs → search-NHV4Y4SX.mjs} +8 -8
- package/dist/cli/search-RIFW5JCK.js +33 -0
- package/dist/cli/{search-output-ZY2GE35S.mjs → search-output-AAOMFK7K.mjs} +4 -4
- package/dist/cli/{search-output-YHTWLSDE.js → search-output-WLFFEGCY.js} +6 -6
- package/dist/cli/{secrets-ZML76SH2.js → secrets-H4WTLQJJ.js} +15 -15
- package/dist/cli/{secrets-BGUMHDZ7.mjs → secrets-S66PZSRO.mjs} +6 -6
- package/dist/cli/sessions-EFWO62XJ.js +18 -0
- package/dist/cli/{sessions-F5XO6HZJ.mjs → sessions-PY6FJX3O.mjs} +6 -5
- package/dist/cli/{settings-73SMIICV.mjs → settings-V7BM42KQ.mjs} +39 -12
- package/dist/cli/{settings-TOX2P5M5.js → settings-YO4FFPN6.js} +109 -82
- package/dist/cli/{setup-DNFHFQ7N.js → setup-IFZYYQ2W.js} +50 -50
- package/dist/cli/{setup-FDJZYBMS.mjs → setup-VUBM2HMH.mjs} +10 -10
- package/dist/cli/{skills-6HJ2IAY6.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-4FJIIE4R.mjs → tools-VZOW4MUD.mjs} +17 -17
- package/dist/cli/update-ADZBZZZS.js +35 -0
- package/dist/cli/{update-UMRPPILV.mjs → update-CQDJJYU2.mjs} +10 -10
- package/dist/cli/{workflow-LSFOG5VU.mjs → workflow-2VRDIPF3.mjs} +7 -7
- package/dist/cli/{workflow-SK3BUHB4.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 +111 -106
- 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-SUTQ4SZQ.js +0 -43
- package/dist/cli/describe-ZB6G6DOV.js +0 -50
- package/dist/cli/git-UX7L6R32.js +0 -25
- package/dist/cli/search-OZHP5ZE2.js +0 -33
- package/dist/cli/sessions-WDINUUZ3.js +0 -17
- package/dist/cli/skills-NE7WN5PP.js +0 -37
- package/dist/cli/tools-ETX4MNNO.js +0 -57
- package/dist/cli/update-N2DMPSUH.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": {
|
|
@@ -1935,10 +1997,11 @@ Purpose:
|
|
|
1935
1997
|
Upload an agent session transcript, or a file, to Deepline so the team can
|
|
1936
1998
|
see how a task went.
|
|
1937
1999
|
When:
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
2000
|
+
Send only with the user's approval and pass [[--requested]]. If the feedback
|
|
2001
|
+
setting is off, send only when the user explicitly requests a session upload
|
|
2002
|
+
without being prompted. Otherwise, ask once in its own message at the end
|
|
2003
|
+
of the task or alongside a user-requested feedback report. When the upload
|
|
2004
|
+
succeeds, tell the user: "Session sent to Deepline. Rating: <rating>".
|
|
1942
2005
|
[[cli:
|
|
1943
2006
|
Input:
|
|
1944
2007
|
--current-session (the calling agent's session, else the newest one started
|
|
@@ -1949,7 +2012,8 @@ Input:
|
|
|
1949
2012
|
user's goal was met without product problems; poor when it was missed, or
|
|
1950
2013
|
a product failure, bug, or avoidable friction (including a substantial
|
|
1951
2014
|
workaround) got in the way; neutral when partly met or unclear. A session
|
|
1952
|
-
that produced a feedback report is usually poor or neutral. --
|
|
2015
|
+
that produced a feedback report is usually poor or neutral. --requested is
|
|
2016
|
+
required when the feedback setting is ask or off. --json.
|
|
1953
2017
|
]]
|
|
1954
2018
|
Output (JSON):
|
|
1955
2019
|
A confirmation envelope with uploaded and session_ids; the text form names
|
|
@@ -1962,6 +2026,21 @@ Avoid:
|
|
|
1962
2026
|
~/mnt/.claude/projects: when no session files are found and that directory
|
|
1963
2027
|
exists, link it to ~/.claude/projects and retry, or pass the newest
|
|
1964
2028
|
transcript there with [[--file]].
|
|
2029
|
+
`
|
|
2030
|
+
},
|
|
2031
|
+
"settings feedback": {
|
|
2032
|
+
core: `
|
|
2033
|
+
Purpose:
|
|
2034
|
+
Show the local feedback preference. The default is ask, which requires
|
|
2035
|
+
--requested to send feedback or a session.
|
|
2036
|
+
Input:
|
|
2037
|
+
Run deepline settings feedback ask to require approval,
|
|
2038
|
+
deepline settings feedback on to allow sending without --requested, or
|
|
2039
|
+
deepline settings feedback off to send only when the user explicitly requests
|
|
2040
|
+
it without being prompted. Agents must get user approval before turning
|
|
2041
|
+
feedback on.
|
|
2042
|
+
Cost:
|
|
2043
|
+
Free.
|
|
1965
2044
|
`
|
|
1966
2045
|
},
|
|
1967
2046
|
"feedback send": {
|
|
@@ -1970,10 +2049,14 @@ Purpose:
|
|
|
1970
2049
|
Send a bug report or product feedback to the Deepline team. The calling
|
|
1971
2050
|
agent's session id is attached, so a report can be matched to a transcript.
|
|
1972
2051
|
When:
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
2052
|
+
Confirm the report text with the user before sending with [[--requested]].
|
|
2053
|
+
When the feedback setting is off, send only if the user explicitly requests
|
|
2054
|
+
it without being prompted. In ask mode (the default), ask the user if they
|
|
2055
|
+
want to send the report and offer to share the session with [[sessions send]]
|
|
2056
|
+
if they agree.
|
|
2057
|
+
When the setting is on, send unasked only for friction Deepline could act on
|
|
2058
|
+
and only if the user allows external reporting. Examples include
|
|
2059
|
+
a play far slower than its input size,
|
|
1977
2060
|
earlier comparable runs, or visible progress would suggest, or one that
|
|
1978
2061
|
looks stuck; or an ordinary result that took avoidable discovery,
|
|
1979
2062
|
conversion, id extraction, retries, exports, or a manual workaround. Send
|
|
@@ -1986,7 +2069,8 @@ Input:
|
|
|
1986
2069
|
that reproduced it>" and --payload <json or text> attach a repro.
|
|
1987
2070
|
--error-outcome terminal when an error stopped the task, continued when
|
|
1988
2071
|
work went on, including through a workaround; omit it when no error
|
|
1989
|
-
occurred. --requested
|
|
2072
|
+
occurred. Pass --requested when the user requested or approved the report.
|
|
2073
|
+
--json.
|
|
1990
2074
|
Put the evidence in the text. A slow run: the goal, the play and run id,
|
|
1991
2075
|
input size, observed duration, status changes or polling count, and what
|
|
1992
2076
|
you expected. Extra steps: the goal, the command path you took, the
|
|
@@ -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": {
|
|
@@ -1935,10 +1997,11 @@ Purpose:
|
|
|
1935
1997
|
Upload an agent session transcript, or a file, to Deepline so the team can
|
|
1936
1998
|
see how a task went.
|
|
1937
1999
|
When:
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
2000
|
+
Send only with the user's approval and pass [[--requested]]. If the feedback
|
|
2001
|
+
setting is off, send only when the user explicitly requests a session upload
|
|
2002
|
+
without being prompted. Otherwise, ask once in its own message at the end
|
|
2003
|
+
of the task or alongside a user-requested feedback report. When the upload
|
|
2004
|
+
succeeds, tell the user: "Session sent to Deepline. Rating: <rating>".
|
|
1942
2005
|
[[cli:
|
|
1943
2006
|
Input:
|
|
1944
2007
|
--current-session (the calling agent's session, else the newest one started
|
|
@@ -1949,7 +2012,8 @@ Input:
|
|
|
1949
2012
|
user's goal was met without product problems; poor when it was missed, or
|
|
1950
2013
|
a product failure, bug, or avoidable friction (including a substantial
|
|
1951
2014
|
workaround) got in the way; neutral when partly met or unclear. A session
|
|
1952
|
-
that produced a feedback report is usually poor or neutral. --
|
|
2015
|
+
that produced a feedback report is usually poor or neutral. --requested is
|
|
2016
|
+
required when the feedback setting is ask or off. --json.
|
|
1953
2017
|
]]
|
|
1954
2018
|
Output (JSON):
|
|
1955
2019
|
A confirmation envelope with uploaded and session_ids; the text form names
|
|
@@ -1962,6 +2026,21 @@ Avoid:
|
|
|
1962
2026
|
~/mnt/.claude/projects: when no session files are found and that directory
|
|
1963
2027
|
exists, link it to ~/.claude/projects and retry, or pass the newest
|
|
1964
2028
|
transcript there with [[--file]].
|
|
2029
|
+
`
|
|
2030
|
+
},
|
|
2031
|
+
"settings feedback": {
|
|
2032
|
+
core: `
|
|
2033
|
+
Purpose:
|
|
2034
|
+
Show the local feedback preference. The default is ask, which requires
|
|
2035
|
+
--requested to send feedback or a session.
|
|
2036
|
+
Input:
|
|
2037
|
+
Run deepline settings feedback ask to require approval,
|
|
2038
|
+
deepline settings feedback on to allow sending without --requested, or
|
|
2039
|
+
deepline settings feedback off to send only when the user explicitly requests
|
|
2040
|
+
it without being prompted. Agents must get user approval before turning
|
|
2041
|
+
feedback on.
|
|
2042
|
+
Cost:
|
|
2043
|
+
Free.
|
|
1965
2044
|
`
|
|
1966
2045
|
},
|
|
1967
2046
|
"feedback send": {
|
|
@@ -1970,10 +2049,14 @@ Purpose:
|
|
|
1970
2049
|
Send a bug report or product feedback to the Deepline team. The calling
|
|
1971
2050
|
agent's session id is attached, so a report can be matched to a transcript.
|
|
1972
2051
|
When:
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
2052
|
+
Confirm the report text with the user before sending with [[--requested]].
|
|
2053
|
+
When the feedback setting is off, send only if the user explicitly requests
|
|
2054
|
+
it without being prompted. In ask mode (the default), ask the user if they
|
|
2055
|
+
want to send the report and offer to share the session with [[sessions send]]
|
|
2056
|
+
if they agree.
|
|
2057
|
+
When the setting is on, send unasked only for friction Deepline could act on
|
|
2058
|
+
and only if the user allows external reporting. Examples include
|
|
2059
|
+
a play far slower than its input size,
|
|
1977
2060
|
earlier comparable runs, or visible progress would suggest, or one that
|
|
1978
2061
|
looks stuck; or an ordinary result that took avoidable discovery,
|
|
1979
2062
|
conversion, id extraction, retries, exports, or a manual workaround. Send
|
|
@@ -1986,7 +2069,8 @@ Input:
|
|
|
1986
2069
|
that reproduced it>" and --payload <json or text> attach a repro.
|
|
1987
2070
|
--error-outcome terminal when an error stopped the task, continued when
|
|
1988
2071
|
work went on, including through a workaround; omit it when no error
|
|
1989
|
-
occurred. --requested
|
|
2072
|
+
occurred. Pass --requested when the user requested or approved the report.
|
|
2073
|
+
--json.
|
|
1990
2074
|
Put the evidence in the text. A slow run: the goal, the play and run id,
|
|
1991
2075
|
input size, observed duration, status changes or polling count, and what
|
|
1992
2076
|
you expected. Extra steps: the goal, the command path you took, the
|
|
@@ -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",
|