deepline 0.3.496 → 0.3.497
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/plays/docflow.ts +9 -2
- package/dist/cli/auth-553ZBCPJ.js +43 -0
- package/dist/cli/{auth-EU4EFRDJ.mjs → auth-OAKBFUQD.mjs} +5 -5
- package/dist/cli/{billing-GMVH3RBX.mjs → billing-AM6D2KN5.mjs} +6 -6
- package/dist/cli/{billing-4JJLTVK4.js → billing-FUB6HQZ5.js} +79 -79
- package/dist/cli/{chunk-6QIAEXRH.mjs → chunk-3DHPKENA.mjs} +1 -1
- package/dist/cli/{chunk-O36ZPHJG.mjs → chunk-3IVAGF4P.mjs} +10 -10
- package/dist/cli/{chunk-AOBAVBSX.js → chunk-3KG2FUU4.js} +7 -7
- package/dist/cli/{chunk-4NKAM4GX.mjs → chunk-4MR7LZXF.mjs} +2 -2
- package/dist/cli/{chunk-3KA466RV.mjs → chunk-5GXYXU45.mjs} +1 -1
- package/dist/cli/{chunk-SH6HOR25.mjs → chunk-5IBHSACU.mjs} +2 -2
- package/dist/cli/{chunk-5YSIHOGV.js → chunk-6TA2H7CY.js} +26 -26
- package/dist/cli/{chunk-J55ZM5CK.js → chunk-77IAUCTB.js} +3 -3
- package/dist/cli/{chunk-PHVRS56F.js → chunk-7FFNSYMJ.js} +9 -9
- package/dist/cli/{chunk-W7DZ6UGP.js → chunk-7RBIOOCQ.js} +3 -3
- package/dist/cli/{chunk-QN6IULFT.js → chunk-A66Y2LCW.js} +53 -53
- package/dist/cli/{chunk-5GK6J7MH.js → chunk-B4Q3EBQX.js} +5 -5
- package/dist/cli/{chunk-73CBLBNP.js → chunk-BBHGJE73.js} +1 -1
- package/dist/cli/{chunk-MWQ3WQ4Q.js → chunk-BRUDMG56.js} +41 -41
- package/dist/cli/{chunk-WEGGJMNF.js → chunk-DKSTMQ3F.js} +21 -21
- package/dist/cli/{chunk-E3KXXJWR.mjs → chunk-EWQ3KY5U.mjs} +6 -6
- package/dist/cli/{chunk-WTZ7Y3IZ.mjs → chunk-FISH2MI2.mjs} +2 -2
- package/dist/cli/{chunk-UTG3STCR.js → chunk-FVS5MJQ5.js} +3 -3
- package/dist/cli/{chunk-5M4PLPTR.mjs → chunk-HRODQDTB.mjs} +1 -1
- package/dist/cli/{chunk-UT3ORL35.mjs → chunk-IURXJPGH.mjs} +3 -3
- package/dist/cli/{chunk-JEPNE4N5.js → chunk-JDFYCHNV.js} +5 -5
- package/dist/cli/{chunk-U6SE6757.mjs → chunk-KFJV3BZX.mjs} +1 -1
- package/dist/cli/{chunk-FXPICCUU.mjs → chunk-KUX3HYJI.mjs} +1 -1
- package/dist/cli/{chunk-CNMIYEB4.mjs → chunk-LPCK5KK5.mjs} +2 -2
- package/dist/cli/{chunk-YHFW7MBT.mjs → chunk-M2WIEW2E.mjs} +1 -1
- package/dist/cli/{chunk-7U6W3CKT.mjs → chunk-MBOAXLWC.mjs} +4 -4
- package/dist/cli/{chunk-EX4JEFYI.js → chunk-OEI6HXMK.js} +16 -16
- package/dist/cli/{chunk-HIAFBOYA.js → chunk-OWDK2PVH.js} +8 -8
- package/dist/cli/{chunk-R4H5MCG4.mjs → chunk-SJID5WMV.mjs} +4 -4
- package/dist/cli/{chunk-QEBQIGXP.js → chunk-SJM7MKOE.js} +2 -2
- package/dist/cli/{chunk-GRIHMNYM.js → chunk-SLS3HUVC.js} +4 -4
- package/dist/cli/{chunk-DFW6P6ZN.mjs → chunk-TGAYN34A.mjs} +2 -2
- package/dist/cli/{chunk-QYXUZX5N.mjs → chunk-THD6KA67.mjs} +4 -4
- package/dist/cli/{chunk-IXPZROZX.mjs → chunk-UETGYJYH.mjs} +2 -2
- package/dist/cli/{chunk-QZ7I4NZZ.js → chunk-UV7AT2D4.js} +2 -2
- package/dist/cli/{chunk-Z27R2BG7.js → chunk-V2EVSEUD.js} +16 -16
- package/dist/cli/{chunk-WCBZHSC4.mjs → chunk-VMOVB2FN.mjs} +5 -5
- package/dist/cli/{chunk-KKI5GWED.js → chunk-WKCMARFR.js} +94 -94
- package/dist/cli/{chunk-3HIPDJWJ.js → chunk-WXW7YJDO.js} +53 -53
- package/dist/cli/{chunk-IMWJRBV5.mjs → chunk-WZ3A35ZD.mjs} +1 -1
- package/dist/cli/{chunk-ZL4Q4T3G.js → chunk-XLYJ7MJX.js} +7 -7
- package/dist/cli/{chunk-6UUZM4FY.mjs → chunk-XNLXHU6L.mjs} +5 -5
- package/dist/cli/{chunk-7NBDLK3N.mjs → chunk-XX7WLKOQ.mjs} +1 -1
- package/dist/cli/{chunk-7Q7VPFPR.mjs → chunk-YQ66NC4J.mjs} +2 -2
- package/dist/cli/{chunk-GKZUGHDK.js → chunk-YUEFDOME.js} +6 -6
- package/dist/cli/{chunk-JU4LIA2T.js → chunk-ZLYKN4AJ.js} +7 -7
- package/dist/cli/{csv-JWBLNEPC.js → csv-PMBYKVUU.js} +13 -13
- package/dist/cli/{csv-ET7ESAPM.mjs → csv-U2GOFP3M.mjs} +4 -4
- package/dist/cli/{db-4PIWQPR6.mjs → db-DKFOTZGZ.mjs} +6 -6
- package/dist/cli/{db-3ZGQXWTQ.js → db-GREVTMIR.js} +27 -27
- package/dist/cli/describe-BL5NNHV5.js +50 -0
- package/dist/cli/{describe-OREUCFC2.mjs → describe-SWXA6L62.mjs} +17 -17
- package/dist/cli/{executions-YR545MRU.js → executions-2RRAESQK.js} +8 -8
- package/dist/cli/{executions-HW6PMZOF.mjs → executions-EBRFC5JR.mjs} +6 -6
- package/dist/cli/{feedback-B2FJ6HPA.mjs → feedback-4A57QLX2.mjs} +4 -4
- package/dist/cli/{feedback-FNVHJQEC.js → feedback-N6ML7IRH.js} +8 -8
- package/dist/cli/{git-CCNPW3CA.mjs → git-6D2WQPOS.mjs} +5 -5
- package/dist/cli/git-7TSX5V57.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-VJLCXTPB.mjs → legacy-noops-CL5QWXGH.mjs} +5 -5
- package/dist/cli/{legacy-noops-2EBZS45D.js → legacy-noops-DXRJARNC.js} +8 -8
- package/dist/cli/{monitors-4AMETRW7.mjs → monitors-SGMEGGJO.mjs} +7 -7
- package/dist/cli/{monitors-JNWKPCN5.js → monitors-XWKDVHYL.js} +95 -95
- package/dist/cli/{org-LO6GSCCG.mjs → org-55BI5RQF.mjs} +6 -6
- package/dist/cli/{org-7FUHVFYU.js → org-QKQ57PDN.js} +72 -72
- package/dist/cli/{pages-TT4TZOOV.js → pages-FOIR5UH4.js} +18 -18
- package/dist/cli/{pages-PJ32M2PU.mjs → pages-LM4QACOM.mjs} +6 -6
- package/dist/cli/{play-QJEZAIZB.mjs → play-7VA26O6E.mjs} +34 -30
- package/dist/cli/{play-VN7DFYDP.js → play-S44FXGD7.js} +330 -326
- package/dist/cli/{providers-24ER3SND.mjs → providers-QAVIR5E2.mjs} +6 -6
- package/dist/cli/{providers-IDFN2FCR.js → providers-RDSHID7C.js} +9 -9
- package/dist/cli/{quickstart-AQDCRVUQ.js → quickstart-EREQPM3G.js} +6 -6
- package/dist/cli/{quickstart-FKENQU34.mjs → quickstart-IL4HQYE4.mjs} +4 -4
- package/dist/cli/{run-KXMRE5ZD.mjs → run-4XZNJR7N.mjs} +22 -22
- package/dist/cli/{run-HCASJQZY.js → run-TBUUV5EG.js} +36 -36
- package/dist/cli/search-GCANFVVZ.js +32 -0
- package/dist/cli/{search-3F2T33OE.mjs → search-SYT5UT5G.mjs} +7 -7
- package/dist/cli/{search-output-GFCEGNCJ.js → search-output-5F3EEQ34.js} +6 -6
- package/dist/cli/{search-output-U6PM5KAH.mjs → search-output-Y3IKZ3TX.mjs} +4 -4
- package/dist/cli/{secrets-ZZSOVXOX.mjs → secrets-AKAU2N3K.mjs} +6 -6
- package/dist/cli/{secrets-KYVUP755.js → secrets-PZWJ2ES5.js} +15 -15
- package/dist/cli/{sessions-7JFKTUQS.js → sessions-UMHA7K23.js} +6 -6
- package/dist/cli/{sessions-4Z62CVHL.mjs → sessions-Z5C26IS7.mjs} +5 -5
- package/dist/cli/{settings-OXG7IRVC.mjs → settings-S5BM3SVI.mjs} +11 -11
- package/dist/cli/{settings-X4PSK4EW.js → settings-WGJYWTJZ.js} +78 -78
- package/dist/cli/{setup-NCJEDW4W.js → setup-6K6ERKOH.js} +49 -49
- package/dist/cli/{setup-RB7JE6KA.mjs → setup-E4HRXP2X.mjs} +9 -9
- package/dist/cli/{skills-D4BR2WU2.mjs → skills-HIZA7YAN.mjs} +7 -7
- package/dist/cli/skills-J3GQHHHL.js +36 -0
- package/dist/cli/{tools-CEOD7VD5.mjs → tools-FS5S6BT7.mjs} +16 -16
- package/dist/cli/tools-RZYKMOUX.js +57 -0
- package/dist/cli/{update-UKUMQ6FC.mjs → update-4CJPTG3L.mjs} +9 -9
- package/dist/cli/update-CATZW7GA.js +34 -0
- package/dist/cli/{workflow-LFWQWZKS.js → workflow-TYSZ5JWS.js} +17 -17
- package/dist/cli/{workflow-EKKTTSCJ.mjs → workflow-UMSXOIOS.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +98 -98
- 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-SHWC5FMY.js +0 -43
- package/dist/cli/describe-KO3OQBIR.js +0 -50
- package/dist/cli/git-X2QJ2B5O.js +0 -25
- package/dist/cli/search-OGY6SQDJ.js +0 -32
- package/dist/cli/skills-WWWFRDCA.js +0 -36
- package/dist/cli/tools-QMSAA3LC.js +0 -57
- package/dist/cli/update-HTDFPN7L.js +0 -34
|
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkSLS3HUVCjs = require('./chunk-SLS3HUVC.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -652,7 +652,7 @@ var ToolCalls = class {
|
|
|
652
652
|
idempotencyKey,
|
|
653
653
|
onResponse: (response2) => {
|
|
654
654
|
lastResponse = null;
|
|
655
|
-
atomicToolsSupported = response2.headers.get(
|
|
655
|
+
atomicToolsSupported = response2.headers.get(_chunkSLS3HUVCjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
656
656
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
657
657
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
658
658
|
try {
|
|
@@ -1031,8 +1031,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
const receivers = _optionalChain([env, 'access', _52 => _52.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _53 => _53.trim, 'call', _54 => _54()]);
|
|
1033
1033
|
return {
|
|
1034
|
-
[
|
|
1035
|
-
...receivers ? { [
|
|
1034
|
+
[_chunkSLS3HUVCjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1035
|
+
...receivers ? { [_chunkSLS3HUVCjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
1038
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1103,7 +1103,7 @@ var PlayClient = class {
|
|
|
1103
1103
|
return _chunkEQR5O2D2js.startPlayRun.call(void 0,
|
|
1104
1104
|
this.http,
|
|
1105
1105
|
resolved.request,
|
|
1106
|
-
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1106
|
+
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkSLS3HUVCjs.SDK_API_MAJOR) } : headers,
|
|
1107
1107
|
options
|
|
1108
1108
|
);
|
|
1109
1109
|
}
|
|
@@ -3200,7 +3200,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3200
3200
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3201
3201
|
);
|
|
3202
3202
|
}
|
|
3203
|
-
return { [
|
|
3203
|
+
return { [_chunkSLS3HUVCjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3204
3204
|
}
|
|
3205
3205
|
function sleep(ms) {
|
|
3206
3206
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4011,7 +4011,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4011
4011
|
);
|
|
4012
4012
|
const headers = _optionalChain([options, 'optionalAccess', _181 => _181.cliAdmission]) ? {
|
|
4013
4013
|
...runtimeHeaders,
|
|
4014
|
-
"X-Deepline-API-Major": String(
|
|
4014
|
+
"X-Deepline-API-Major": String(_chunkSLS3HUVCjs.SDK_API_MAJOR)
|
|
4015
4015
|
} : runtimeHeaders;
|
|
4016
4016
|
const http = this.http;
|
|
4017
4017
|
let submitted = false;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HRODQDTB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XX7WLKOQ.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -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.497",
|
|
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,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M2WIEW2E.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-THD6KA67.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXLYJ7MJXjs = require('./chunk-XLYJ7MJX.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk77IAUCTBjs = require('./chunk-77IAUCTB.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 } = _chunkXLYJ7MJXjs.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
|
+
_chunkXLYJ7MJXjs.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 } = _chunkXLYJ7MJXjs.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
|
+
_chunkXLYJ7MJXjs.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 } = _chunkXLYJ7MJXjs.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
|
+
_chunkXLYJ7MJXjs.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 } = _chunkXLYJ7MJXjs.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 } = _chunkXLYJ7MJXjs.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
|
+
_chunkXLYJ7MJXjs.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 } = _chunkXLYJ7MJXjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkXLYJ7MJXjs.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 } = _chunkXLYJ7MJXjs.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
|
+
_chunkXLYJ7MJXjs.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 } = _chunkXLYJ7MJXjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkXLYJ7MJXjs.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 = _chunk77IAUCTBjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkXLYJ7MJXjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkXLYJ7MJXjs.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 } = _chunkXLYJ7MJXjs.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
|
+
_chunkXLYJ7MJXjs.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 } = _chunkXLYJ7MJXjs.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
|
+
_chunkXLYJ7MJXjs.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 } = _chunkXLYJ7MJXjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSLS3HUVCjs = require('./chunk-SLS3HUVC.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkSLS3HUVCjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkSLS3HUVCjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3KG2FUU4js = require('./chunk-3KG2FUU4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkEQR5O2D2js = require('./chunk-EQR5O2D2.js');
|
|
@@ -11,7 +11,7 @@ var _chunkEQR5O2D2js = require('./chunk-EQR5O2D2.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkXLYJ7MJXjs = require('./chunk-XLYJ7MJX.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 = _chunkXLYJ7MJXjs.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 ? _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkXLYJ7MJXjs.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 = _chunk3KG2FUU4js.parseLogLevel.call(void 0, value);
|
|
658
658
|
if (!parsed) {
|
|
659
659
|
throw new Error(
|
|
660
660
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
972
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
973
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
974
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
975
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk3KG2FUU4js.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 : _chunkXLYJ7MJXjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkXLYJ7MJXjs.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 || _chunkXLYJ7MJXjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|
|
@@ -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 _chunkXLYJ7MJXjs = require('./chunk-XLYJ7MJX.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 && !_chunkXLYJ7MJXjs.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 (_chunkXLYJ7MJXjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|