deepline 0.3.489 → 0.3.490
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/direct-admission-deadline.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +10 -0
- package/dist/cli/auth-AW34RGV5.js +43 -0
- package/dist/cli/{auth-5RIU6GT7.mjs → auth-RL6LOZGC.mjs} +5 -5
- package/dist/cli/{billing-T4TMPRFS.mjs → billing-33THO76F.mjs} +6 -6
- package/dist/cli/{billing-T5MAGF25.js → billing-LIDDSOSY.js} +79 -79
- package/dist/cli/{chunk-Y3SG26KP.mjs → chunk-27IBWHR5.mjs} +4 -4
- package/dist/cli/{chunk-35N4S2E6.mjs → chunk-2HYJU4LJ.mjs} +1 -1
- package/dist/cli/{chunk-QXWE6PHI.mjs → chunk-3M5VPIRL.mjs} +2 -2
- package/dist/cli/{chunk-IAYSWZDJ.js → chunk-4IP5MLWU.js} +1 -1
- package/dist/cli/{chunk-6V7KVRR5.js → chunk-4OLXMJ2L.js} +13 -2
- package/dist/cli/{chunk-FL7NHJTS.js → chunk-63TNO23X.js} +15 -15
- package/dist/cli/{chunk-5DEJ3TLB.js → chunk-6TTPAGNX.js} +7 -7
- package/dist/cli/{chunk-LMUOUIBV.mjs → chunk-7W53Y4VH.mjs} +5 -5
- package/dist/cli/{chunk-WRJ6MEY5.mjs → chunk-A3D677RX.mjs} +1 -1
- package/dist/cli/{chunk-6FMP5XRF.js → chunk-B7MPY7WH.js} +6 -6
- package/dist/cli/{chunk-ZICPJKMP.mjs → chunk-BL5Q5JY7.mjs} +5 -5
- package/dist/cli/{chunk-TMQ3PCSY.mjs → chunk-CB7IFKXN.mjs} +2 -2
- package/dist/cli/{chunk-J7EENGKJ.mjs → chunk-CGDUFVNE.mjs} +2 -2
- package/dist/cli/{chunk-H66YVVT7.mjs → chunk-CSSOP7XG.mjs} +2 -2
- package/dist/cli/{chunk-JVHOS3K3.mjs → chunk-DEJIN4DF.mjs} +1 -1
- package/dist/cli/{chunk-RI2PLVD4.js → chunk-E26477MJ.js} +7 -7
- package/dist/cli/{chunk-UYZNRLDE.js → chunk-EPQZ42PY.js} +1 -1
- package/dist/cli/{chunk-FFDWL5N2.js → chunk-FDYCUA7A.js} +16 -16
- package/dist/cli/{chunk-K2RUSHZ7.js → chunk-FPYESYBO.js} +4 -4
- package/dist/cli/{chunk-INW22YP7.mjs → chunk-FTXIJTV2.mjs} +3 -5
- package/dist/cli/{chunk-UI67QLIR.js → chunk-HHGAY2A4.js} +53 -53
- package/dist/cli/{chunk-CSBMKHTV.js → chunk-HHTVRICE.js} +17 -17
- package/dist/cli/{chunk-LM5UIDFA.js → chunk-IFGBL3US.js} +7 -7
- package/dist/cli/{chunk-OTQ2CO6M.mjs → chunk-J5HMAZ34.mjs} +2 -2
- package/dist/cli/{chunk-2QUROYZU.mjs → chunk-JC2M6XG2.mjs} +1 -1
- package/dist/cli/{chunk-L2GMFNAO.mjs → chunk-JSYCPTG6.mjs} +3 -3
- package/dist/cli/{chunk-G7POOFBJ.mjs → chunk-JTYKW3UL.mjs} +2 -2
- package/dist/cli/{chunk-S4F2R2LO.js → chunk-L7QSZAF6.js} +9 -9
- package/dist/cli/{chunk-3S5VBG6Z.mjs → chunk-LQIKW55V.mjs} +2 -2
- package/dist/cli/{chunk-GW6HV7Z7.js → chunk-LZ37B62K.js} +7 -7
- package/dist/cli/{chunk-RACN23LT.mjs → chunk-MBQZMHE6.mjs} +18 -4
- package/dist/cli/{chunk-QJ4FWKUU.mjs → chunk-MDKAPUN2.mjs} +2 -2
- package/dist/cli/{chunk-C55LNEUF.mjs → chunk-MEYQOZPF.mjs} +1 -1
- package/dist/cli/{chunk-DHAJSTSH.mjs → chunk-NRM5OWH2.mjs} +6 -6
- package/dist/cli/{chunk-YEX3VNAY.mjs → chunk-OFCP66VS.mjs} +2 -2
- package/dist/cli/{chunk-4GWEZPZR.mjs → chunk-PIENQTDE.mjs} +1 -1
- package/dist/cli/{chunk-F3TDT57M.js → chunk-PVMN4OE2.js} +5 -5
- package/dist/cli/{chunk-VP65YKOA.js → chunk-QC6QUFKY.js} +5 -5
- package/dist/cli/{chunk-S5PMBDY6.mjs → chunk-QWJZSPCV.mjs} +12 -12
- package/dist/cli/{chunk-SZHNIKTR.js → chunk-QZPJWFGD.js} +26 -26
- package/dist/cli/{chunk-FNKSRKTA.js → chunk-SGG3TERP.js} +3 -3
- package/dist/cli/{chunk-4EFD6R2V.js → chunk-TCBYQX5N.js} +52 -38
- package/dist/cli/{chunk-Q2EIZKVX.mjs → chunk-TKLDKIJU.mjs} +12 -1
- package/dist/cli/{chunk-6PHHQDM6.mjs → chunk-TVZJ6XWM.mjs} +1 -1
- package/dist/cli/{chunk-YSB44HZB.js → chunk-UQXHBCHU.js} +2 -2
- package/dist/cli/{chunk-DY7T6VNT.js → chunk-UTKNSD6T.js} +21 -21
- package/dist/cli/{chunk-NBHCEVWY.mjs → chunk-V47SUOAE.mjs} +4 -4
- package/dist/cli/{chunk-I4NWMPT3.js → chunk-WNVZV6VK.js} +53 -53
- package/dist/cli/{chunk-R23HZ6AV.js → chunk-XSGJKXMP.js} +2 -2
- package/dist/cli/{chunk-WIKIF67Q.js → chunk-Y2KHSQEF.js} +8 -8
- package/dist/cli/{chunk-LOX3BISD.js → chunk-YNWET57Z.js} +9 -11
- package/dist/cli/{chunk-FH7ZABHW.js → chunk-YPUDIEZX.js} +261 -261
- package/dist/cli/{chunk-UZ7VPOTA.js → chunk-YYN2O43C.js} +3 -3
- package/dist/cli/{chunk-7R243PYK.mjs → chunk-Z7W6VJFN.mjs} +1 -1
- package/dist/cli/{csv-XTKN255I.js → csv-PLJNQPLE.js} +13 -13
- package/dist/cli/{csv-WAD54M7T.mjs → csv-TELSH4ND.mjs} +4 -4
- package/dist/cli/{db-2ELZMJFC.mjs → db-GISAU665.mjs} +6 -6
- package/dist/cli/{db-TTS6Y4FI.js → db-QDJ6GWF5.js} +27 -27
- package/dist/cli/{describe-Z7GWMGKU.mjs → describe-F4K54VXB.mjs} +21 -20
- package/dist/cli/describe-R6NVISAS.js +50 -0
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-2TQH54AB.mjs → executions-3QE7MRBG.mjs} +6 -6
- package/dist/cli/{executions-WUBVVJXN.js → executions-VKUTKQNN.js} +8 -8
- package/dist/cli/{feedback-6KAY4LE6.js → feedback-HH5AUYLA.js} +8 -8
- package/dist/cli/{feedback-QI75ZVF2.mjs → feedback-JU7PJGDL.mjs} +4 -4
- package/dist/cli/getting-started.d.mts +17 -2
- package/dist/cli/getting-started.d.ts +17 -2
- package/dist/cli/getting-started.js +8 -2
- package/dist/cli/getting-started.mjs +9 -3
- package/dist/cli/{git-3PI2SXVS.mjs → git-ACXH7K7D.mjs} +5 -5
- package/dist/cli/git-CXRU4CRW.js +25 -0
- package/dist/cli/index.js +138 -137
- package/dist/cli/index.mjs +41 -40
- package/dist/cli/{legacy-noops-SIDE3HLT.mjs → legacy-noops-IOAZ3YJ2.mjs} +5 -5
- package/dist/cli/{legacy-noops-BNEVRTQT.js → legacy-noops-NRPYJZOP.js} +8 -8
- package/dist/cli/{monitors-WRWVVXUZ.js → monitors-4SKMAAMR.js} +91 -91
- package/dist/cli/{monitors-BYQ5V5MX.mjs → monitors-PMQUOIOI.mjs} +7 -7
- package/dist/cli/{org-KWCSSJ3Y.js → org-WJM7X6WB.js} +72 -72
- package/dist/cli/{org-OZNDX3G2.mjs → org-XNT3W6OU.mjs} +6 -6
- package/dist/cli/{pages-OQVOMVF5.js → pages-WXY4GGZG.js} +17 -17
- package/dist/cli/{pages-DXU3TNND.mjs → pages-Y3JKBS4B.mjs} +6 -6
- package/dist/cli/{play-6D7U66KO.js → play-NKSRPIAV.js} +321 -321
- package/dist/cli/{play-ZFG4HDDX.mjs → play-NPWWAQYK.mjs} +18 -18
- package/dist/cli/{providers-4RRQIK3Q.mjs → providers-CUIKFE6F.mjs} +6 -6
- package/dist/cli/{providers-H7R3Z5HS.js → providers-VNPJHXK5.js} +9 -9
- package/dist/cli/{quickstart-FQ5E5G6O.js → quickstart-6OTS2HDR.js} +13 -13
- package/dist/cli/{quickstart-TFKRPMCH.mjs → quickstart-PJYPKFZI.mjs} +5 -5
- package/dist/cli/{run-QRDJTXKB.js → run-2DLJBYFC.js} +41 -40
- package/dist/cli/{run-GRCGGUUM.mjs → run-AGX3EUK4.mjs} +26 -25
- package/dist/cli/{search-OEVSDE3U.mjs → search-DVIEJ2UQ.mjs} +7 -7
- package/dist/cli/search-Y7VFEFJJ.js +32 -0
- package/dist/cli/{search-output-F6KBWKT2.js → search-output-PFLNDCA7.js} +6 -6
- package/dist/cli/{search-output-VK5ZDVKL.mjs → search-output-TXSIPSPS.mjs} +4 -4
- package/dist/cli/{secrets-KKAAZENS.js → secrets-O5OQTFVD.js} +15 -15
- package/dist/cli/{secrets-DCRVVQV2.mjs → secrets-OAGXFXEX.mjs} +6 -6
- package/dist/cli/{sessions-XVBIXCXU.mjs → sessions-GBR5PGB6.mjs} +5 -5
- package/dist/cli/{sessions-FDHENJVG.js → sessions-WT7P3F73.js} +6 -6
- package/dist/cli/{settings-OBVR52US.mjs → settings-KGNBIFOU.mjs} +12 -11
- package/dist/cli/{settings-36HMWFAP.js → settings-U7UNDUDB.js} +79 -78
- package/dist/cli/{setup-M6OWOPMB.js → setup-4MZNDFKM.js} +60 -55
- package/dist/cli/{setup-KFYQZYP3.mjs → setup-PYWSU4YM.mjs} +17 -12
- package/dist/cli/{skills-AZDPA6IQ.mjs → skills-7Y6OBM7Z.mjs} +10 -7
- package/dist/cli/skills-BQC2323O.js +36 -0
- package/dist/cli/tools-732SZ4KV.js +57 -0
- package/dist/cli/{tools-F6XEUK7H.mjs → tools-O7L435CR.mjs} +19 -18
- package/dist/cli/update-PCYIUORM.js +34 -0
- package/dist/cli/{update-QMGJRICE.mjs → update-SPHIBY5L.mjs} +10 -9
- package/dist/cli/{workflow-M4YPUASM.js → workflow-GTDKPIEV.js} +17 -17
- package/dist/cli/{workflow-L5WNCAPB.mjs → workflow-ZRYO5J3K.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +106 -106
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-PSIS3XA6.js +0 -43
- package/dist/cli/describe-2V7H5LJP.js +0 -49
- package/dist/cli/git-DCADFTQ6.js +0 -25
- package/dist/cli/search-2FB7WQUS.js +0 -32
- package/dist/cli/skills-URCPOKZZ.js +0 -33
- package/dist/cli/tools-4G5J5NQP.js +0 -56
- package/dist/cli/update-UWVL2OYA.js +0 -33
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OFCP66VS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-A3D677RX.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk4IP5MLWUjs = require('./chunk-4IP5MLWU.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkE26477MJjs = require('./chunk-E26477MJ.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 ${_chunk4IP5MLWUjs.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 _chunkE26477MJjs.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 _chunkE26477MJjs.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 } = _chunk4IP5MLWUjs.fieldBlockLines.call(void 0,
|
|
872
872
|
heading,
|
|
873
|
-
|
|
873
|
+
_chunk4IP5MLWUjs.schemaFields.call(void 0, fieldSchema)
|
|
874
874
|
);
|
|
875
875
|
return [
|
|
876
876
|
...lines,
|
|
@@ -11,20 +11,23 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-27IBWHR5.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OFCP66VS.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JC2M6XG2.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-A3D677RX.mjs";
|
|
28
|
+
import {
|
|
29
|
+
DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE
|
|
30
|
+
} from "./chunk-TKLDKIJU.mjs";
|
|
28
31
|
|
|
29
32
|
// src/cli/commands/skills.ts
|
|
30
33
|
import { spawn } from "child_process";
|
|
@@ -73,6 +76,16 @@ function workspaceSkillRootsForAgents(agents) {
|
|
|
73
76
|
)
|
|
74
77
|
].sort((a, b) => a.localeCompare(b));
|
|
75
78
|
}
|
|
79
|
+
function deeplineGtmCodexSkillFile(root) {
|
|
80
|
+
if (root === null) return DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE;
|
|
81
|
+
return join(
|
|
82
|
+
root,
|
|
83
|
+
WORKSPACE_SKILL_ROOTS_BY_AGENT.codex[0],
|
|
84
|
+
"skills",
|
|
85
|
+
"deepline-gtm",
|
|
86
|
+
"SKILL.md"
|
|
87
|
+
);
|
|
88
|
+
}
|
|
76
89
|
function installedSkillRoots(agent, scope, root) {
|
|
77
90
|
if (scope === "local") {
|
|
78
91
|
const dirs = root ? WORKSPACE_SKILL_ROOTS_BY_AGENT[agent] : void 0;
|
|
@@ -577,6 +590,7 @@ Examples:
|
|
|
577
590
|
|
|
578
591
|
export {
|
|
579
592
|
workspaceSkillRootsForAgents,
|
|
593
|
+
deeplineGtmCodexSkillFile,
|
|
580
594
|
missingInstalledSkills,
|
|
581
595
|
inferActiveSkillsScope,
|
|
582
596
|
detectSkillsAgents,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MEYQOZPF.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-ONONSV2Q.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OFCP66VS.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QWJZSPCV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CSSOP7XG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
10
10
|
findNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CGDUFVNE.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SCHEMA_LINE_LIMIT
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DEJIN4DF.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3M5VPIRL.mjs";
|
|
18
18
|
import {
|
|
19
19
|
printCommandEnvelope
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OFCP66VS.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
import { writeFileSync } from "fs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JC2M6XG2.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A3D677RX.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -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.490",
|
|
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 _chunk6TTPAGNXjs = require('./chunk-6TTPAGNX.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYYN2O43Cjs = require('./chunk-YYN2O43C.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunk6TTPAGNXjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkYYN2O43Cjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkYYN2O43Cjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -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 _chunk6TTPAGNXjs = require('./chunk-6TTPAGNX.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYYN2O43Cjs = require('./chunk-YYN2O43C.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 = _chunkYYN2O43Cjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunk6TTPAGNXjs.PlayClient)(
|
|
142
|
+
new (0, _chunkYYN2O43Cjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CSSOP7XG.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V47SUOAE.mjs";
|
|
10
10
|
import {
|
|
11
11
|
arrayField,
|
|
12
12
|
formatModelDescription,
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
toolInputFieldsForDisplay,
|
|
26
26
|
toolMetadataJsonForDescribe,
|
|
27
27
|
toolOutputFieldsForDisplay
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FTXIJTV2.mjs";
|
|
29
29
|
import {
|
|
30
30
|
rateLimitQualifier
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DEJIN4DF.mjs";
|
|
32
32
|
import {
|
|
33
33
|
shellQuote
|
|
34
34
|
} from "./chunk-OVDNJAJN.mjs";
|
|
@@ -48,10 +48,10 @@ import {
|
|
|
48
48
|
} from "./chunk-FIVKWNMT.mjs";
|
|
49
49
|
import {
|
|
50
50
|
DeeplineClient
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-3M5VPIRL.mjs";
|
|
52
52
|
import {
|
|
53
53
|
validateExecutionIdempotencyKey
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-MEYQOZPF.mjs";
|
|
55
55
|
import {
|
|
56
56
|
stableStringify
|
|
57
57
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -61,18 +61,18 @@ import {
|
|
|
61
61
|
maybeAutoUpdateAndRelaunch,
|
|
62
62
|
registerCompatibilityCatalog,
|
|
63
63
|
runToolExecuteStage
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-7W53Y4VH.mjs";
|
|
65
65
|
import {
|
|
66
66
|
isCliTraceEnabled,
|
|
67
67
|
recordCliTrace,
|
|
68
68
|
resolveCliMaintenancePolicy
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-2HYJU4LJ.mjs";
|
|
70
70
|
import {
|
|
71
71
|
checkSdkCompatibility,
|
|
72
72
|
enforceSdkCompatibilityResponse,
|
|
73
73
|
flushDeferredSkillsSyncNotices,
|
|
74
74
|
syncSdkSkillsIfNeeded
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-27IBWHR5.mjs";
|
|
76
76
|
import {
|
|
77
77
|
printCommandEnvelope,
|
|
78
78
|
printCompactJson,
|
|
@@ -80,12 +80,12 @@ import {
|
|
|
80
80
|
printJsonError,
|
|
81
81
|
renderCommandEnvelopeText,
|
|
82
82
|
shouldEmitJson
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-OFCP66VS.mjs";
|
|
84
84
|
import {
|
|
85
85
|
readSdkSkillsLocalVersion,
|
|
86
86
|
resolveConfig,
|
|
87
87
|
sdkCliStateDirPath
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-JC2M6XG2.mjs";
|
|
89
89
|
import {
|
|
90
90
|
DeeplineError
|
|
91
91
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1038,7 +1038,7 @@ Examples:
|
|
|
1038
1038
|
process.exitCode = await narrowView();
|
|
1039
1039
|
return;
|
|
1040
1040
|
}
|
|
1041
|
-
const { describeAnything } = await import("./describe-
|
|
1041
|
+
const { describeAnything } = await import("./describe-F4K54VXB.mjs");
|
|
1042
1042
|
process.exitCode = await describeAnything(
|
|
1043
1043
|
toolId,
|
|
1044
1044
|
{
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkE26477MJjs = require('./chunk-E26477MJ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkYYN2O43Cjs = require('./chunk-YYN2O43C.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkE26477MJjs.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkE26477MJjs.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkE26477MJjs.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkE26477MJjs.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkE26477MJjs.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkE26477MJjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkE26477MJjs.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkE26477MJjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkYYN2O43Cjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkE26477MJjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkE26477MJjs.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkE26477MJjs.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkE26477MJjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,6 +1,6 @@
|
|
|
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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkE26477MJjs = require('./chunk-E26477MJ.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkE26477MJjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkE26477MJjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|