deepline 0.3.491 → 0.3.493
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 +11 -5
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +54 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +5 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +293 -110
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +104 -2
- package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +7 -2
- package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +4 -0
- package/dist/bundling-sources/shared_libs/product-notifications/content.ts +13 -0
- package/dist/bundling-sources/shared_libs/product-notifications/email.ts +49 -10
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +22 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +6 -1
- package/dist/cli/{auth-FXAC472Y.mjs → auth-3NAY3AST.mjs} +5 -5
- package/dist/cli/auth-KYQLDI6V.js +43 -0
- package/dist/cli/{billing-PDOA3KZ3.js → billing-FSB4BBBO.js} +80 -80
- package/dist/cli/{billing-UM4LE33K.mjs → billing-SBWQCC7B.mjs} +7 -7
- package/dist/cli/{chunk-HSJK6EMU.mjs → chunk-2BRTYIAH.mjs} +23 -9
- package/dist/cli/{chunk-B2TXKEED.js → chunk-2H4OFVR5.js} +5 -5
- package/dist/cli/{chunk-BCKIBVEJ.js → chunk-2I7VN65H.js} +10 -10
- package/dist/cli/{chunk-LMG7O6XJ.mjs → chunk-2IHGVAGT.mjs} +2 -2
- package/dist/cli/{chunk-5KMGKG4B.js → chunk-2NGIBJM2.js} +8 -8
- package/dist/cli/{chunk-2MW6TGNZ.mjs → chunk-3QGUWB6E.mjs} +4 -4
- package/dist/cli/{chunk-ORKLMANE.mjs → chunk-4IJFQV3O.mjs} +1 -1
- package/dist/cli/{chunk-PIPEPCRL.mjs → chunk-4NIGNT7X.mjs} +1 -1
- package/dist/cli/{chunk-H6UIS36S.mjs → chunk-5DIZ2G74.mjs} +2 -2
- package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
- package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-5WOPBX3H.mjs} +1 -1
- package/dist/cli/{chunk-KGJVDR4Q.mjs → chunk-67ZG7XZV.mjs} +3 -3
- package/dist/cli/{chunk-DUFRH43S.js → chunk-7HABWOMB.js} +261 -261
- package/dist/cli/{chunk-MN6DCV63.js → chunk-AGTXL6LZ.js} +5 -5
- package/dist/cli/{chunk-Q7G7CU4W.js → chunk-AWMCZAUR.js} +3 -3
- package/dist/cli/{chunk-HHTVRICE.js → chunk-C2MRDPA5.js} +17 -17
- package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
- package/dist/cli/{chunk-O3K22ZC7.js → chunk-DWJ4RXSA.js} +34 -11
- package/dist/cli/{chunk-MAM6ZOVS.mjs → chunk-DYP27IWC.mjs} +99 -24
- package/dist/cli/{chunk-NUOKAKZW.mjs → chunk-E5ILCMKQ.mjs} +1 -1
- package/dist/cli/{chunk-OLHWZM4A.mjs → chunk-EBAS3UT2.mjs} +6 -6
- package/dist/cli/{chunk-74H5OTRM.js → chunk-EFO5GVYS.js} +1 -1
- package/dist/cli/{chunk-X7YOVJBC.js → chunk-EYG336YV.js} +132 -57
- package/dist/cli/{chunk-YV4DP6KQ.mjs → chunk-GSC35TPZ.mjs} +2 -2
- package/dist/cli/{chunk-EPD7NSDJ.mjs → chunk-HLM2UFQ5.mjs} +13 -5
- package/dist/cli/{chunk-IG3GSBBE.js → chunk-HTUSTPP4.js} +32 -32
- package/dist/cli/{chunk-CFPFTS3A.mjs → chunk-IJJ6D5WL.mjs} +12 -12
- package/dist/cli/{chunk-TH7JLR5D.js → chunk-IJOHWGPF.js} +6 -6
- package/dist/cli/{chunk-RFSXXDH7.js → chunk-IOBPR2VO.js} +17 -17
- package/dist/cli/{chunk-HNG2U3IG.js → chunk-IOMEJKGK.js} +2 -2
- package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-IRDYBMA7.mjs} +34 -11
- package/dist/cli/{chunk-ZEZ3CZ3X.js → chunk-JO2JZUBR.js} +3 -3
- package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
- package/dist/cli/{chunk-SJOHQ2WW.js → chunk-KCDZWS2B.js} +56 -56
- package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-KGDDQMI7.mjs} +2 -2
- package/dist/cli/{chunk-OYJTLEB4.mjs → chunk-KKSKYZO4.mjs} +1 -1
- package/dist/cli/{chunk-TMAS3WH3.js → chunk-LGTZYI5B.js} +21 -21
- package/dist/cli/{chunk-SUMKWA53.js → chunk-MLEUOTEQ.js} +73 -59
- package/dist/cli/{chunk-3WRWPNHE.mjs → chunk-NALJJTPS.mjs} +5 -5
- package/dist/cli/{chunk-27MRSV6O.js → chunk-NPNAEPY4.js} +26 -26
- package/dist/cli/{chunk-AEKJZJ4R.js → chunk-NWIDPT7H.js} +4 -4
- package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
- package/dist/cli/{chunk-3FMU6F6E.js → chunk-QTPS5RLG.js} +15 -15
- package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
- package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
- package/dist/cli/{chunk-S4CYM4EC.mjs → chunk-SXD2EYAH.mjs} +6 -6
- package/dist/cli/{chunk-YNWET57Z.js → chunk-TIFRRLZT.js} +7 -7
- package/dist/cli/{chunk-6PMM7VJN.mjs → chunk-TNQOR6XQ.mjs} +1 -1
- package/dist/cli/{chunk-6UARNRXT.js → chunk-UCMY2SO2.js} +23 -15
- package/dist/cli/{chunk-X75ONMDJ.mjs → chunk-VFHIYWMC.mjs} +5 -5
- package/dist/cli/{chunk-ZX2FXZJN.js → chunk-WCZFCOMZ.js} +7 -7
- package/dist/cli/{chunk-IIO7UOVW.mjs → chunk-WTFI7BVH.mjs} +3 -3
- package/dist/cli/{chunk-I64PYCTB.js → chunk-XLE7KXE7.js} +2 -2
- package/dist/cli/{chunk-CRBBGKRH.js → chunk-XQX476QK.js} +14 -14
- package/dist/cli/{chunk-WCWVXN3R.mjs → chunk-Y3NN2UAF.mjs} +2 -2
- package/dist/cli/{chunk-3K4IAV7I.mjs → chunk-ZQH4TXM2.mjs} +2 -2
- package/dist/cli/{chunk-VC3SH4QW.mjs → chunk-ZVW7EWTC.mjs} +7 -7
- package/dist/cli/{chunk-QBOE5LEH.mjs → chunk-ZVXB7OU7.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-IGPAPAES.js → csv-DKYZE2KM.js} +13 -13
- package/dist/cli/{csv-RNMQHECI.mjs → csv-XR22YQXT.mjs} +4 -4
- package/dist/cli/{db-CKMVVGXJ.mjs → db-EOKG36YN.mjs} +7 -7
- package/dist/cli/{db-32OXM3TO.js → db-RNYRTCMV.js} +28 -28
- package/dist/cli/describe-ICFXOQBW.mjs +50 -0
- package/dist/cli/describe-RS75I33X.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-S4M4JMCU.mjs → executions-3RAOACNS.mjs} +7 -7
- package/dist/cli/{executions-PCZS7B2M.js → executions-OBWPSWH7.js} +9 -9
- package/dist/cli/{feedback-FGUJVCBS.mjs → feedback-6EQRVBKF.mjs} +4 -4
- package/dist/cli/{feedback-6EGKPZ3U.js → feedback-6GPEUBLF.js} +8 -8
- package/dist/cli/getting-started.d.mts +12 -10
- package/dist/cli/getting-started.d.ts +12 -10
- package/dist/cli/getting-started.js +4 -2
- package/dist/cli/getting-started.mjs +3 -1
- package/dist/cli/{git-LR4ARG5H.mjs → git-CVQ24DTR.mjs} +5 -5
- package/dist/cli/git-DEFE4SSB.js +25 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-S37PJ7OJ.mjs → legacy-noops-QULJZYNH.mjs} +5 -5
- package/dist/cli/{legacy-noops-VX4JEQR6.js → legacy-noops-XPOATG5V.js} +8 -8
- package/dist/cli/{monitors-H3AX6CZG.mjs → monitors-AFT5YJPZ.mjs} +49 -9
- package/dist/cli/{monitors-ADASJI72.js → monitors-OJ4CMREE.js} +169 -129
- package/dist/cli/{org-ZRJ3C56J.js → org-RKT52CSL.js} +73 -73
- package/dist/cli/{org-D3F5LUDW.mjs → org-WHKNXANG.mjs} +7 -7
- package/dist/cli/{pages-PSHU366M.mjs → pages-EEAQFGVD.mjs} +7 -7
- package/dist/cli/{pages-5TKO3644.js → pages-SOE3R667.js} +18 -18
- package/dist/cli/{play-AUDDK7XB.mjs → play-LXFWHUBP.mjs} +147 -52
- package/dist/cli/{play-VDAETQDI.js → play-OTJJ4E4T.js} +661 -566
- package/dist/cli/{providers-IURPWRWD.js → providers-RU4HIAT3.js} +10 -10
- package/dist/cli/{providers-X7YMZSKQ.mjs → providers-U3CPKTMM.mjs} +7 -7
- package/dist/cli/{quickstart-6AGWVFNX.mjs → quickstart-75AO2AJC.mjs} +5 -5
- package/dist/cli/{quickstart-Y6GFXLDV.js → quickstart-N72IVA2Y.js} +13 -13
- package/dist/cli/{run-TG7J45NS.mjs → run-IGWFL6WH.mjs} +29 -28
- package/dist/cli/{run-TQFGOXNT.js → run-MMYES3IW.js} +44 -43
- package/dist/cli/search-EQURI7SZ.js +32 -0
- package/dist/cli/{search-3G4J2GC6.mjs → search-FIYESBLZ.mjs} +8 -8
- package/dist/cli/{search-output-NPZICK5C.js → search-output-2FXN4ZWD.js} +9 -6
- package/dist/cli/{search-output-ZGNHDCLL.mjs → search-output-3I5KSW36.mjs} +7 -4
- package/dist/cli/{secrets-KTTHT4ZG.js → secrets-HCZQ6JNP.js} +16 -16
- package/dist/cli/{secrets-EAWJBRUD.mjs → secrets-O7IUQ3VT.mjs} +7 -7
- package/dist/cli/{sessions-S4YVBPAW.js → sessions-5AYTT4IW.js} +6 -6
- package/dist/cli/{sessions-D4Q3LCEQ.mjs → sessions-KY7A3EZO.mjs} +5 -5
- package/dist/cli/{settings-BAK3VOWW.js → settings-P4VFYWJK.js} +80 -80
- package/dist/cli/{settings-JUORW6NL.mjs → settings-WSMRR2GS.mjs} +13 -13
- package/dist/cli/{setup-NJPHTW32.js → setup-J7CA3EJL.js} +57 -57
- package/dist/cli/{setup-AXFGCXJE.mjs → setup-YTVKVQC7.mjs} +13 -13
- package/dist/cli/skills-KKPEGLAR.js +36 -0
- package/dist/cli/{skills-SKJVDJEF.mjs → skills-W5WY764N.mjs} +10 -10
- package/dist/cli/tools-65Y4QTW6.js +57 -0
- package/dist/cli/{tools-63THJVJZ.mjs → tools-YECI6N3N.mjs} +20 -20
- package/dist/cli/{update-KSID5F74.mjs → update-BIFBIEII.mjs} +10 -10
- package/dist/cli/update-WDG7VFOW.js +34 -0
- package/dist/cli/{workflow-BLSMWBKW.js → workflow-D2TUFFH6.js} +18 -18
- package/dist/cli/{workflow-C4B54X2Z.mjs → workflow-XZVDNARC.mjs} +8 -8
- package/dist/{client-CQgGFxAH.d.ts → client-BDB_VbE4.d.ts} +1 -1
- package/dist/{client-B4R1scm2.d.mts → client-CNzJ1LTF.d.mts} +1 -1
- package/dist/{client-core-DMvHWjub.d.mts → client-core-CSv3DlPD.d.mts} +76 -5
- package/dist/{client-core-BUNjKBKq.d.ts → client-core-xEa9x3pl.d.ts} +76 -5
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +115 -114
- 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/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +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 +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-QIDL3YCW.js +0 -43
- package/dist/cli/describe-67GMIEIO.js +0 -50
- package/dist/cli/describe-QR7I3VOF.mjs +0 -50
- package/dist/cli/git-PIH5Z5LN.js +0 -25
- package/dist/cli/search-VC43NUY7.js +0 -32
- package/dist/cli/skills-4NQZISNK.js +0 -36
- package/dist/cli/tools-BAHK33FQ.js +0 -57
- package/dist/cli/update-EMIGRGJ7.js +0 -34
|
@@ -1,23 +1,23 @@
|
|
|
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 _chunk7HABWOMBjs = require('./chunk-7HABWOMB.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUCMY2SO2js = require('./chunk-UCMY2SO2.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkC2MRDPA5js = require('./chunk-C2MRDPA5.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk2H4OFVR5js = require('./chunk-2H4OFVR5.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
var _fs = require('fs');
|
|
@@ -26,16 +26,16 @@ function nothingNamed(name) {
|
|
|
26
26
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
27
27
|
}
|
|
28
28
|
function findNamed2(name, options) {
|
|
29
|
-
return
|
|
29
|
+
return _chunkC2MRDPA5js.findNamed.call(void 0, name, options, _chunkC2MRDPA5js.describeLookupsFor.call(void 0, new (0, _chunk2H4OFVR5js.DeeplineClient)()));
|
|
30
30
|
}
|
|
31
31
|
async function describeAnything(name, options, onMissing) {
|
|
32
|
-
const client = new (0,
|
|
33
|
-
const lookups =
|
|
34
|
-
const outcome = await
|
|
32
|
+
const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
|
|
33
|
+
const lookups = _chunkC2MRDPA5js.describeLookupsFor.call(void 0, client);
|
|
34
|
+
const outcome = await _chunkC2MRDPA5js.describeName.call(void 0, name, options, {
|
|
35
35
|
...lookups,
|
|
36
36
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
37
37
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
38
|
-
seedStarterScript:
|
|
38
|
+
seedStarterScript: _chunk7HABWOMBjs.seedToolListScript
|
|
39
39
|
});
|
|
40
40
|
if (outcome.status === "missing") {
|
|
41
41
|
if (onMissing) return onMissing();
|
|
@@ -60,18 +60,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
60
60
|
` : text;
|
|
61
61
|
_fs.writeFileSync.call(void 0, path, content);
|
|
62
62
|
const bytes = Buffer.byteLength(content);
|
|
63
|
-
|
|
63
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
64
64
|
{ path, bytes },
|
|
65
65
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
66
66
|
` }
|
|
67
67
|
);
|
|
68
68
|
return 0;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
71
71
|
return 0;
|
|
72
72
|
}
|
|
73
73
|
function registerDescribeCommand(program) {
|
|
74
|
-
|
|
74
|
+
_chunkUCMY2SO2js.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
75
75
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
76
76
|
).addHelpText(
|
|
77
77
|
"after",
|
|
@@ -108,7 +108,7 @@ Schema size and format:
|
|
|
108
108
|
by default; the output names them, and --verbose shows them.
|
|
109
109
|
--fields email,miss_reason shows only the fields you name, plus every
|
|
110
110
|
required input, and names the rest. Use it when you know what you need.
|
|
111
|
-
A schema over ${
|
|
111
|
+
A schema over ${_chunkJO5FFSR7js.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
|
|
112
112
|
names. A shape used more than once is printed once under Types.
|
|
113
113
|
--full-schema the normal output, with the schema not folded
|
|
114
114
|
--schema-only only the schema, not folded, and nothing else
|
|
@@ -34,24 +34,25 @@ var DEEPLINE_GTM_STARTER_PROMPTS = [
|
|
|
34
34
|
var DEEPLINE_GTM_PRIMARY_STARTER_PROMPT = DEEPLINE_GTM_STARTER_PROMPTS[0].prompt;
|
|
35
35
|
var DEEPLINE_GTM_HANDOFF_QUESTION = "What would you like to do with Deepline?";
|
|
36
36
|
var DEEPLINE_GTM_CUSTOM_OPTION = "Tell me what you want to accomplish and I'll help you build it";
|
|
37
|
+
var DEEPLINE_GTM_GLOBAL_SKILL_ROOTS = "~/.claude/skills or ~/.agents/skills";
|
|
37
38
|
var DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE = "~/.agents/skills/deepline-gtm/SKILL.md";
|
|
38
|
-
function deeplineGtmStarterSkillStep(
|
|
39
|
-
return `Load the deepline-gtm skill first
|
|
39
|
+
function deeplineGtmStarterSkillStep(skillRoots) {
|
|
40
|
+
return `Load the deepline-gtm skill first; if it's unknown or not found, read deepline-gtm/SKILL.md from ${skillRoots}. Then run the starter command as written, adding no flags.`;
|
|
40
41
|
}
|
|
41
42
|
var DEEPLINE_GTM_STARTER_SKILL_STEP = deeplineGtmStarterSkillStep(
|
|
42
|
-
`${
|
|
43
|
+
`${DEEPLINE_GTM_GLOBAL_SKILL_ROOTS} (project .claude/skills or .agents/skills if setup reports local scope)`
|
|
43
44
|
);
|
|
44
45
|
var DEEPLINE_GTM_STARTER_OPTIONS = [
|
|
45
46
|
...DEEPLINE_GTM_STARTER_PROMPTS.map(({ prompt }) => prompt),
|
|
46
47
|
DEEPLINE_GTM_CUSTOM_OPTION
|
|
47
48
|
];
|
|
48
|
-
function deeplineGtmGettingStartedPayload(
|
|
49
|
+
function deeplineGtmGettingStartedPayload(skillRoots = DEEPLINE_GTM_GLOBAL_SKILL_ROOTS) {
|
|
49
50
|
return {
|
|
50
51
|
skill: DEEPLINE_GTM_SKILL,
|
|
51
52
|
examples: DEEPLINE_GTM_STARTER_PROMPTS,
|
|
52
53
|
question: DEEPLINE_GTM_HANDOFF_QUESTION,
|
|
53
54
|
customOption: DEEPLINE_GTM_CUSTOM_OPTION,
|
|
54
|
-
starterBehavior: deeplineGtmStarterSkillStep(
|
|
55
|
+
starterBehavior: deeplineGtmStarterSkillStep(skillRoots),
|
|
55
56
|
customProblemBehavior: "Turn the business problem into one exact /deepline-gtm prompt, show that reusable prompt, then execute it without asking the user to paste it again."
|
|
56
57
|
};
|
|
57
58
|
}
|
|
@@ -67,4 +68,5 @@ function deeplineGtmGettingStartedPayload(codexSkillFile = DEEPLINE_GTM_GLOBAL_C
|
|
|
67
68
|
|
|
68
69
|
|
|
69
70
|
|
|
70
|
-
|
|
71
|
+
|
|
72
|
+
exports.DEEPLINE_GTM_SKILL = DEEPLINE_GTM_SKILL; exports.DEEPLINE_GTM_STARTER_PROMPTS = DEEPLINE_GTM_STARTER_PROMPTS; exports.DEEPLINE_GTM_PRIMARY_STARTER_PROMPT = DEEPLINE_GTM_PRIMARY_STARTER_PROMPT; exports.DEEPLINE_GTM_HANDOFF_QUESTION = DEEPLINE_GTM_HANDOFF_QUESTION; exports.DEEPLINE_GTM_CUSTOM_OPTION = DEEPLINE_GTM_CUSTOM_OPTION; exports.DEEPLINE_GTM_GLOBAL_SKILL_ROOTS = DEEPLINE_GTM_GLOBAL_SKILL_ROOTS; exports.DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE = DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE; exports.deeplineGtmStarterSkillStep = deeplineGtmStarterSkillStep; exports.DEEPLINE_GTM_STARTER_SKILL_STEP = DEEPLINE_GTM_STARTER_SKILL_STEP; exports.DEEPLINE_GTM_STARTER_OPTIONS = DEEPLINE_GTM_STARTER_OPTIONS; exports.deeplineGtmGettingStartedPayload = deeplineGtmGettingStartedPayload;
|
|
@@ -795,6 +795,10 @@ function buildPlayDashboardUrl(baseUrl, playName) {
|
|
|
795
795
|
const encodedPlayName = encodeURIComponent(playName);
|
|
796
796
|
return `${trimmedBase}/dashboard/plays/${encodedPlayName}`;
|
|
797
797
|
}
|
|
798
|
+
function buildPlayRunUrl(baseUrl, playName, runId) {
|
|
799
|
+
const params = new URLSearchParams({ runId });
|
|
800
|
+
return `${buildPlayDashboardUrl(baseUrl, playName)}?${params.toString()}`;
|
|
801
|
+
}
|
|
798
802
|
function describedPlay(play) {
|
|
799
803
|
const reference = play.reference || play.name;
|
|
800
804
|
const starter = play.cloneEditStarter ?? cloneEditStarter(play);
|
|
@@ -861,5 +865,6 @@ export {
|
|
|
861
865
|
topLevelField,
|
|
862
866
|
describedJson,
|
|
863
867
|
buildPlayDashboardUrl,
|
|
868
|
+
buildPlayRunUrl,
|
|
864
869
|
describedPlay
|
|
865
870
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IJJ6D5WL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HLM2UFQ5.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
10
10
|
findNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KGDDQMI7.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SCHEMA_LINE_LIMIT
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SAW3FBCA.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GSC35TPZ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
printCommandEnvelope
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VFHIYWMC.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
import { writeFileSync } from "fs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -174,7 +174,7 @@ function extractorValueType(name) {
|
|
|
174
174
|
}
|
|
175
175
|
const named = NAMED_VALUE_SHAPES[definition.valueKind];
|
|
176
176
|
if (!named) return { type: "string" };
|
|
177
|
-
const { type, fields } =
|
|
177
|
+
const { type, fields } = _chunkJO5FFSR7js.schemaField.call(void 0, name, named.schema, true);
|
|
178
178
|
return { type, ...fields ? { fields } : {}, shape: named.shape };
|
|
179
179
|
}
|
|
180
180
|
function jsonSchemaOf(wrapper) {
|
|
@@ -211,7 +211,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
211
211
|
description,
|
|
212
212
|
cost: stringField(recordField(tool, "pricing"), "displayText") || void 0,
|
|
213
213
|
guidance: [],
|
|
214
|
-
inputs:
|
|
214
|
+
inputs: _chunkJO5FFSR7js.schemaFields.call(void 0,
|
|
215
215
|
recordField(tool, "payload_schema", "payloadSchema")
|
|
216
216
|
),
|
|
217
217
|
outputs: [],
|
|
@@ -248,7 +248,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
248
248
|
(path) => path.replace(/^toolResponse\.raw\./, "")
|
|
249
249
|
);
|
|
250
250
|
const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
|
|
251
|
-
const { fields, ...typed } =
|
|
251
|
+
const { fields, ...typed } = _chunkJO5FFSR7js.schemaField.call(void 0, name, node, true);
|
|
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;
|
|
@@ -308,13 +308,13 @@ function describedTool(tool, requestedToolId) {
|
|
|
308
308
|
],
|
|
309
309
|
rateLimit: withPlanRateLimit(
|
|
310
310
|
recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
|
|
311
|
-
|
|
311
|
+
_chunkJO5FFSR7js.rateLimitSummary.call(void 0,
|
|
312
312
|
recordField(contract, "executionMetadata").configuredRateLimits
|
|
313
313
|
)
|
|
314
314
|
),
|
|
315
|
-
inputs:
|
|
315
|
+
inputs: _chunkJO5FFSR7js.schemaFields.call(void 0, inputSchema),
|
|
316
316
|
outputs: [...lists, ...values].map(({ field }) => field),
|
|
317
|
-
rawResponse:
|
|
317
|
+
rawResponse: _chunkJO5FFSR7js.schemaFields.call(void 0, outputSchema),
|
|
318
318
|
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
|
|
319
319
|
};
|
|
320
320
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
|
|
10
10
|
|
|
11
11
|
// src/cli/describe-options.ts
|
|
12
12
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -24,7 +24,7 @@ function addDescribeOptions(command, options = {}) {
|
|
|
24
24
|
"Show only the in-play example, and explain how it takes inputs and returns outputs"
|
|
25
25
|
).option("--no-example", "Hide the run examples").option(
|
|
26
26
|
"--full-schema",
|
|
27
|
-
`Print every field: a long schema unfolded (over ${
|
|
27
|
+
`Print every field: a long schema unfolded (over ${_chunkJO5FFSR7js.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
|
|
28
28
|
).option(
|
|
29
29
|
"--fields <names>",
|
|
30
30
|
"Show only these fields, comma-separated, plus every required input"
|
|
@@ -247,7 +247,7 @@ function projectRunDatasetCell(value) {
|
|
|
247
247
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
248
248
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
249
249
|
if (typeof logicalValue === "object") {
|
|
250
|
-
return
|
|
250
|
+
return _chunk2I7VN65Hjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
251
251
|
}
|
|
252
252
|
return logicalValue;
|
|
253
253
|
}
|
|
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
|
|
|
642
642
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
643
|
columns
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return _chunk2I7VN65Hjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options) {
|
|
648
648
|
let temp;
|
|
@@ -868,9 +868,9 @@ function annotated(schema, values) {
|
|
|
868
868
|
function shapeLines(title, data) {
|
|
869
869
|
const schema = annotated(observedSchema(data), [data]);
|
|
870
870
|
const block = (heading, fieldSchema) => {
|
|
871
|
-
const { lines, folded } =
|
|
871
|
+
const { lines, folded } = _chunkJO5FFSR7js.fieldBlockLines.call(void 0,
|
|
872
872
|
heading,
|
|
873
|
-
|
|
873
|
+
_chunkJO5FFSR7js.schemaFields.call(void 0, fieldSchema)
|
|
874
874
|
);
|
|
875
875
|
return [
|
|
876
876
|
...lines,
|
|
@@ -892,7 +892,10 @@ function receiptText(receipt, options, extra) {
|
|
|
892
892
|
const sections = [
|
|
893
893
|
[
|
|
894
894
|
options.label ? `${headline}: ${options.label}` : headline,
|
|
895
|
-
|
|
895
|
+
// A tool call's id is its retry key; a play's is the run to look up.
|
|
896
|
+
...receipt.id ? [
|
|
897
|
+
`${_optionalChain([options, 'access', _13 => _13.label, 'optionalAccess', _14 => _14.endsWith, 'call', _15 => _15("(tool)")]) ? "Call Id" : "Run Id"}: ${receipt.id}`
|
|
898
|
+
] : [],
|
|
896
899
|
...receipt.credits !== null ? [
|
|
897
900
|
`Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}`
|
|
898
901
|
] : [],
|
|
@@ -901,14 +904,16 @@ function receiptText(receipt, options, extra) {
|
|
|
901
904
|
];
|
|
902
905
|
const { csv, json } = receipt.outputs;
|
|
903
906
|
const data = [];
|
|
907
|
+
let resultSection;
|
|
904
908
|
for (const artifact of csv) {
|
|
905
909
|
data.push(
|
|
906
910
|
`Rows: ${_nullishCoalesce(artifact.path, () => ( "stdout"))} (${artifact.rowCount} rows from ${listPath(_nullishCoalesce(artifact.source, () => ( ""))) || "the result"})`
|
|
907
911
|
);
|
|
908
912
|
}
|
|
909
913
|
if (extra.data !== void 0) {
|
|
910
|
-
const title = json ?
|
|
911
|
-
|
|
914
|
+
const title = json ? "Result:" : "Result (not saved; --json-out saves all of it):";
|
|
915
|
+
resultSection = resultLines(title, extra.data, extra.declared, options);
|
|
916
|
+
if (_optionalChain([json, 'optionalAccess', _16 => _16.path])) data.push(`Saved: ${json.path}`);
|
|
912
917
|
if (receipt.schemaFile) {
|
|
913
918
|
data.push(`Full JSON Schema: ${receipt.schemaFile}`);
|
|
914
919
|
}
|
|
@@ -949,6 +954,7 @@ function receiptText(receipt, options, extra) {
|
|
|
949
954
|
if (extra.receiptFile) {
|
|
950
955
|
sections.push([`JSON receipt: ${extra.receiptFile}`]);
|
|
951
956
|
}
|
|
957
|
+
if (resultSection) sections.push(resultSection);
|
|
952
958
|
return `${sections.map((lines) => lines.join("\n")).join("\n\n")}
|
|
953
959
|
`;
|
|
954
960
|
}
|
|
@@ -972,7 +978,7 @@ function resultLines(title, data, declared, options) {
|
|
|
972
978
|
const budget = _nullishCoalesce(options.lines, () => ( OUTLINE_LINES));
|
|
973
979
|
const indented = (lines) => lines.map((line) => ` ${line}`);
|
|
974
980
|
const more = "Not everything is shown: --lines <n> shows more, --fields <paths> picks fields, --full shows every field's type.";
|
|
975
|
-
if (_optionalChain([options, 'access',
|
|
981
|
+
if (_optionalChain([options, 'access', _17 => _17.fields, 'optionalAccess', _18 => _18.length])) {
|
|
976
982
|
const byName = new Map(
|
|
977
983
|
(_nullishCoalesce(declared, () => ( []))).map((output) => [output.name, output])
|
|
978
984
|
);
|
|
@@ -990,13 +996,13 @@ function resultLines(title, data, declared, options) {
|
|
|
990
996
|
const { missing } = picked;
|
|
991
997
|
const outline2 = value === void 0 ? null : outlineLines(value, budget);
|
|
992
998
|
return [
|
|
993
|
-
`${title}${_optionalChain([outline2, 'optionalAccess',
|
|
994
|
-
...indented(_nullishCoalesce(_optionalChain([outline2, 'optionalAccess',
|
|
999
|
+
`${title}${_optionalChain([outline2, 'optionalAccess', _19 => _19.note]) ? ` ${outline2.note}` : ""}`,
|
|
1000
|
+
...indented(_nullishCoalesce(_optionalChain([outline2, 'optionalAccess', _20 => _20.lines]), () => ( []))),
|
|
995
1001
|
...missing.map((path) => `No field at ${path}.`),
|
|
996
|
-
..._optionalChain([outline2, 'optionalAccess',
|
|
1002
|
+
..._optionalChain([outline2, 'optionalAccess', _21 => _21.cut]) ? [more] : []
|
|
997
1003
|
];
|
|
998
1004
|
}
|
|
999
|
-
if (_optionalChain([declared, 'optionalAccess',
|
|
1005
|
+
if (_optionalChain([declared, 'optionalAccess', _22 => _22.length])) {
|
|
1000
1006
|
const outline2 = outlineLines(
|
|
1001
1007
|
Object.fromEntries(declared.map(({ name, value }) => [name, value])),
|
|
1002
1008
|
budget
|
|
@@ -1008,6 +1014,8 @@ function resultLines(title, data, declared, options) {
|
|
|
1008
1014
|
outline2.cut ? more : "--full shows every field of the result; --fields <paths> picks fields."
|
|
1009
1015
|
];
|
|
1010
1016
|
}
|
|
1017
|
+
const json = _optionalChain([JSON, 'access', _23 => _23.stringify, 'call', _24 => _24(data, null, 2), 'optionalAccess', _25 => _25.split, 'call', _26 => _26("\n")]);
|
|
1018
|
+
if (json && json.length <= budget) return [title, ...json];
|
|
1011
1019
|
const outline = outlineLines(data, budget);
|
|
1012
1020
|
return [
|
|
1013
1021
|
`${title}${outline.note ? ` ${outline.note}` : ""}`,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4NIGNT7X.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TNQOR6XQ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -20,8 +20,8 @@ var RUN_FIELDS = new Set(
|
|
|
20
20
|
var ROOTS = {
|
|
21
21
|
describe: "name playKey reference displayName description pinned toolCategories tags origin ownerType canEdit canClone aliases inputSchema outputSchema staticPipeline csvInput rowOutputSchema runCommand examples cloneEditStarter currentPublishedVersion liveVersion triggerStatus triggerMetadata isDraftDirty latestRunId runtimeLimit activeScheduledPlays dashboardUrl command_context",
|
|
22
22
|
check: "kind target checked scope name exportName valid stage issues inputSchema outputSchema recognized triggers runtimeLimit limits featureFlags sourceHash artifactHash graphHash toolGetterHints exports actions diagnostics reference origin ownerType activeScheduledPlays command_context",
|
|
23
|
-
run: "schemaVersion kind run datasets actions apiVersion rateLimited dashboardUrl progress rowOutcomes steps errors error warnings result resultState execution command_context diagnostics",
|
|
24
|
-
get: "schemaVersion kind run dashboardUrl runStatus steps failures errorDetails rowOutcomes warnings failedLogs datasets result resultState actions diagnostics command_context",
|
|
23
|
+
run: "schemaVersion kind run datasets actions apiVersion rateLimited dashboardUrl runUrl progress rowOutcomes steps errors error warnings result resultState execution command_context diagnostics",
|
|
24
|
+
get: "schemaVersion kind run dashboardUrl runUrl runStatus steps failures errorDetails rowOutcomes warnings failedLogs datasets result resultState actions diagnostics command_context",
|
|
25
25
|
config: "runId contract command_context",
|
|
26
26
|
export: "runId datasets csv_path json_path format source rowCount columns notice metadata_path actions command_context"
|
|
27
27
|
};
|
|
@@ -51,7 +51,7 @@ function parseJsonFields(args, surface) {
|
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
53
|
if (parts[0] === "run" && parts[1] && !RUN_FIELDS.has(parts[1])) {
|
|
54
|
-
const hint = parts[1] === "url" ? " Use
|
|
54
|
+
const hint = parts[1] === "url" ? " Use runUrl." : parts[1] === "stats" ? " Dataset summaries are in datasets; run timing is in run.durationMs." : "";
|
|
55
55
|
throw new DeeplineError(
|
|
56
56
|
`Unknown --json run field '${parts[1]}'. Available: ${[...RUN_FIELDS].join(", ")}.${hint}`,
|
|
57
57
|
void 0,
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2H4OFVR5js = require('./chunk-2H4OFVR5.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkJO2JZUBRjs = require('./chunk-JO2JZUBR.js');
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
var _commander = require('commander');
|
|
@@ -20,7 +20,7 @@ var _fs = require('fs');
|
|
|
20
20
|
var _path = require('path');
|
|
21
21
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
22
22
|
function lastSearchPath() {
|
|
23
|
-
return _path.join.call(void 0,
|
|
23
|
+
return _path.join.call(void 0, _chunkJO2JZUBRjs.sdkCliStateDirPath.call(void 0, _chunkJO2JZUBRjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
24
24
|
}
|
|
25
25
|
function rememberSearchRef(searchRef) {
|
|
26
26
|
try {
|
|
@@ -118,7 +118,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
118
118
|
console.error("--summary-width must be an integer of at least 2.");
|
|
119
119
|
return 1;
|
|
120
120
|
}
|
|
121
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
121
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunk2H4OFVR5js.DeeplineClient)().search({
|
|
122
122
|
query,
|
|
123
123
|
types,
|
|
124
124
|
exclude,
|
|
@@ -132,8 +132,8 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
132
132
|
});
|
|
133
133
|
if (searchRef) rememberSearchRef(searchRef);
|
|
134
134
|
pointAtDescribe(result);
|
|
135
|
-
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
136
|
-
|
|
135
|
+
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-2FXN4ZWD.js")));
|
|
136
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, result, {
|
|
137
137
|
json: options.json === true,
|
|
138
138
|
text: renderSearchResults(result, summaryWidth)
|
|
139
139
|
});
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
stagePlayFiles,
|
|
21
21
|
startPlayRun,
|
|
22
22
|
submitPreparedPlayRunAdmission
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DVQHG6AM.mjs";
|
|
24
24
|
import {
|
|
25
25
|
describePlayDetail,
|
|
26
26
|
describePlayListItem
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
32
32
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
33
33
|
SDK_API_MAJOR
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-TNQOR6XQ.mjs";
|
|
35
35
|
import {
|
|
36
36
|
CustomerDbQueryOutcomeUnknownError
|
|
37
37
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -6966,7 +6966,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6966
6966
|
async waitForMonitorFleetConvergence(fleetId, options) {
|
|
6967
6967
|
const timeoutMs = Math.max(1, options?.timeoutMs ?? 10 * 6e4);
|
|
6968
6968
|
const pollIntervalMs = Math.max(1, options?.pollIntervalMs ?? 2e3);
|
|
6969
|
-
const terminal = options?.until === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded"]) : /* @__PURE__ */ new Set(["converged", "degraded", "deactivated"]);
|
|
6969
|
+
const terminal = options?.until === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded", "billing_suspended"]) : /* @__PURE__ */ new Set(["converged", "degraded", "deactivated", "billing_suspended"]);
|
|
6970
6970
|
const startedAt = Date.now();
|
|
6971
6971
|
let latest = await this.getMonitorFleet(fleetId);
|
|
6972
6972
|
while (true) {
|
|
@@ -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 _chunkKCDZWS2Bjs = require('./chunk-KCDZWS2B.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 = _chunkKCDZWS2Bjs.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,
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHTUSTPP4js = require('./chunk-HTUSTPP4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkPKV5CD3Wjs = require('./chunk-PKV5CD3W.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.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 = _chunk2I7VN65Hjs.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 ? _chunk2I7VN65Hjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk2I7VN65Hjs.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 = _chunkHTUSTPP4js.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.`
|
|
@@ -778,12 +778,12 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
778
778
|
}
|
|
779
779
|
if (arg === "--debug" && args[index + 1] && !args[index + 1].startsWith("--")) {
|
|
780
780
|
input ??= {};
|
|
781
|
-
|
|
781
|
+
_chunkPKV5CD3Wjs.setDottedInputValue.call(void 0, input, "debug", parseInputFlagValue(args[++index]));
|
|
782
782
|
continue;
|
|
783
783
|
}
|
|
784
784
|
if (arg.startsWith("--debug=")) {
|
|
785
785
|
input ??= {};
|
|
786
|
-
|
|
786
|
+
_chunkPKV5CD3Wjs.setDottedInputValue.call(void 0,
|
|
787
787
|
input,
|
|
788
788
|
"debug",
|
|
789
789
|
parseInputFlagValue(arg.slice("--debug=".length))
|
|
@@ -811,7 +811,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
811
811
|
if (arg.startsWith("--")) {
|
|
812
812
|
const { path, value } = parseInputFieldFlag(arg, args[index + 1]);
|
|
813
813
|
input ??= {};
|
|
814
|
-
|
|
814
|
+
_chunkPKV5CD3Wjs.setDottedInputValue.call(void 0, input, path, parseInputFlagValue(value));
|
|
815
815
|
if (!arg.includes("=")) {
|
|
816
816
|
index += 1;
|
|
817
817
|
}
|
|
@@ -900,7 +900,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
900
900
|
let initialInput = options.input === void 0 ? null : parseJsonInput(options.input);
|
|
901
901
|
if (typeof options.debug === "string") {
|
|
902
902
|
initialInput ??= {};
|
|
903
|
-
|
|
903
|
+
_chunkPKV5CD3Wjs.setDottedInputValue.call(void 0,
|
|
904
904
|
initialInput,
|
|
905
905
|
"debug",
|
|
906
906
|
parseInputFlagValue(options.debug)
|
|
@@ -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 : _chunkHTUSTPP4js.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 : _chunk2I7VN65Hjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunk2I7VN65Hjs.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 || _chunk2I7VN65Hjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VFHIYWMC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4NIGNT7X.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZVXB7OU7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZVW7EWTC.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|