deepline 0.3.302 → 0.3.304
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/play-runtime/app-runtime-api.ts +31 -1
- package/dist/bundling-sources/shared_libs/play-runtime/execute-server-timing.ts +30 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +144 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +82 -0
- package/dist/bundling-sources/shared_libs/plays/tool-response-contract.ts +25 -0
- package/dist/cli/auth-UBWZC26A.js +31 -0
- package/dist/cli/{auth-WHKDFARX.mjs → auth-YKJHKHIQ.mjs} +4 -4
- package/dist/cli/{billing-IMFI76GS.js → billing-EOIKAZES.js} +71 -71
- package/dist/cli/{billing-7C66HEMK.mjs → billing-XEEW5SV2.mjs} +5 -5
- package/dist/cli/{chunk-AIIVF62D.mjs → chunk-35SCWK4Y.mjs} +1 -1
- package/dist/cli/{chunk-JCS5TPNY.mjs → chunk-4NIQA6S7.mjs} +1 -1
- package/dist/cli/{chunk-2TCHWWRP.mjs → chunk-7HYH533G.mjs} +1 -1
- package/dist/cli/{chunk-OTAGK5MS.js → chunk-7NQJDQPH.js} +48 -48
- package/dist/cli/{chunk-A4UUUINX.mjs → chunk-7OXXCRGZ.mjs} +1 -1
- package/dist/cli/{chunk-GHYU5YWJ.mjs → chunk-7QV545D7.mjs} +1 -1
- package/dist/cli/{chunk-DTGPHQFC.mjs → chunk-AOUGAM72.mjs} +2 -2
- package/dist/cli/{chunk-NRIVXKMQ.js → chunk-BBXO7APG.js} +6 -6
- package/dist/cli/{chunk-KEPIGAJS.js → chunk-DNBJRKVE.js} +57 -57
- package/dist/cli/{chunk-AAZBNN6N.js → chunk-DOCDA2YP.js} +4 -4
- package/dist/cli/{chunk-5FKCLTLS.js → chunk-FDEU7UY7.js} +11 -11
- package/dist/cli/{chunk-V4WVYW3G.mjs → chunk-IHT6XITB.mjs} +2 -2
- package/dist/cli/{chunk-KI5DPDF2.js → chunk-INOSSTSG.js} +15 -15
- package/dist/cli/{chunk-TVBPWUII.mjs → chunk-JKY2QANB.mjs} +4 -4
- package/dist/cli/{chunk-S6XS2ABF.mjs → chunk-JZWC4ES6.mjs} +2 -2
- package/dist/cli/{chunk-OUREAAOT.js → chunk-KP5TOAI4.js} +6 -6
- package/dist/cli/{chunk-7AXKBZWF.js → chunk-NC4JXVVS.js} +2 -2
- package/dist/cli/{chunk-J2PPXZE4.js → chunk-NJS3RHQO.js} +6 -6
- package/dist/cli/{chunk-PZOHVTQ3.mjs → chunk-NW7I3LDU.mjs} +3 -3
- package/dist/cli/{chunk-YLVIJZ2W.mjs → chunk-TABL2Q6H.mjs} +2 -2
- package/dist/cli/{chunk-JX3CNS4W.js → chunk-USJBSNRI.js} +26 -26
- package/dist/cli/{chunk-GONRLVV3.js → chunk-W7INSYJS.js} +9 -9
- package/dist/cli/{chunk-GWIY7C7U.mjs → chunk-YJ2QYYB5.mjs} +1 -1
- package/dist/cli/{chunk-GXYR7DV4.js → chunk-ZQSQCHG3.js} +1 -1
- package/dist/cli/{client-M7OBRULN.mjs → client-FZPHVNWV.mjs} +4 -4
- package/dist/cli/client-IMFLPCD7.js +20 -0
- package/dist/cli/{csv-SAJB2PYV.js → csv-ANJ4KSHF.js} +12 -12
- package/dist/cli/{csv-AKVUO3PP.mjs → csv-CCHVZPRD.mjs} +3 -3
- package/dist/cli/{db-AASVDGJB.js → db-AE3MLMRF.js} +21 -21
- package/dist/cli/{db-KREGQID3.mjs → db-JFVR6STL.mjs} +5 -5
- package/dist/cli/{executions-XSKRZWVG.js → executions-DGX53UEW.js} +7 -7
- package/dist/cli/{executions-YL5UM6BY.mjs → executions-WNXCURLN.mjs} +5 -5
- package/dist/cli/{feedback-XZNAGHZ4.js → feedback-DGEFG6JI.js} +6 -6
- package/dist/cli/{feedback-ITNK5A5V.mjs → feedback-L4A66OA2.mjs} +3 -3
- package/dist/cli/git-6QWUB6CR.js +23 -0
- package/dist/cli/{git-IXYZ5H7T.mjs → git-LIZ3FGVR.mjs} +4 -4
- package/dist/cli/index.d.mts +1 -6
- package/dist/cli/index.d.ts +1 -6
- package/dist/cli/index.js +100 -87
- package/dist/cli/index.mjs +54 -41
- package/dist/cli/{legacy-noops-BJZ3P455.js → legacy-noops-L7GGGAOR.js} +7 -7
- package/dist/cli/{legacy-noops-MT5VFDXS.mjs → legacy-noops-UCKGOSJA.mjs} +4 -4
- package/dist/cli/{monitors-XU62FCBX.js → monitors-NGACMMWV.js} +86 -86
- package/dist/cli/{monitors-QL4XDOQT.mjs → monitors-NLMFDD4C.mjs} +5 -5
- package/dist/cli/{org-NKFPS763.mjs → org-2OW6TPHF.mjs} +5 -5
- package/dist/cli/{org-6WSIPHVV.js → org-FJSCZ6S3.js} +61 -61
- package/dist/cli/{play-RZO7CZKL.js → play-GJC4AIAX.js} +229 -227
- package/dist/cli/{play-CKL7RDIS.mjs → play-ZZ4AQLL5.mjs} +21 -19
- package/dist/cli/{providers-UKNXDCPJ.mjs → providers-6BJNJUSG.mjs} +5 -5
- package/dist/cli/{providers-PQPH374E.js → providers-D7KLXB4S.js} +8 -8
- package/dist/cli/{proxy-env-M4ZHXHRL.mjs → proxy-env-NWUIGWS3.mjs} +34 -17
- package/dist/cli/{proxy-env-EBANZHPV.js → proxy-env-ZV2WZFAT.js} +37 -20
- package/dist/cli/{quickstart-3FFTESEL.js → quickstart-6WYRYZJZ.js} +5 -5
- package/dist/cli/{quickstart-JUTTMWIC.mjs → quickstart-FH4NGHEJ.mjs} +3 -3
- package/dist/cli/search-KOSJMN3U.js +18 -0
- package/dist/cli/{search-WGBQ5LE5.mjs → search-SUT5XFI6.mjs} +6 -6
- package/dist/cli/{secrets-EV6IOJLN.mjs → secrets-QK5QP4YU.mjs} +5 -5
- package/dist/cli/{secrets-GGQRCGLA.js → secrets-Y2OI2P7O.js} +14 -14
- package/dist/cli/{sessions-VZJ23U7E.js → sessions-MLDROWXY.js} +5 -5
- package/dist/cli/{sessions-HL3Q22O5.mjs → sessions-VQKZHOQJ.mjs} +4 -4
- package/dist/cli/{settings-LJB5VZWM.js → settings-6WOSPHBC.js} +75 -75
- package/dist/cli/{settings-M5MSM7U6.mjs → settings-SPUINZYG.mjs} +8 -8
- package/dist/cli/{setup-ASOUDNYM.js → setup-E2UJV6PW.js} +41 -41
- package/dist/cli/{setup-ZURYYFBI.mjs → setup-ZE2SDMC4.mjs} +6 -6
- package/dist/cli/skills-J3QIHO5L.js +28 -0
- package/dist/cli/{skills-4SRVGVA6.mjs → skills-OJYRPY2N.mjs} +4 -4
- package/dist/cli/{tools-UNDZCH7R.js → tools-BNHRVKLA.js} +51 -51
- package/dist/cli/{tools-UEFB5OPX.mjs → tools-O6EIDEKW.mjs} +6 -6
- package/dist/cli/{update-WUIQXM5B.mjs → update-NWESWMYF.mjs} +6 -6
- package/dist/cli/update-TDOIF3C4.js +28 -0
- package/dist/cli/{workflow-FUXRNNWD.js → workflow-SAJAOPYE.js} +16 -16
- package/dist/cli/{workflow-BCXLF24Z.mjs → workflow-YJHXDD57.mjs} +6 -6
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +74 -74
- package/dist/plays/bundle-play-file.mjs +2 -2
- 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/package.json +1 -1
- package/dist/cli/auth-ZJDK7HFJ.js +0 -31
- package/dist/cli/client-FVPE6PB4.js +0 -20
- package/dist/cli/git-IOUJDZDJ.js +0 -23
- package/dist/cli/search-TKLHBKKK.js +0 -18
- package/dist/cli/skills-KMGB73LN.js +0 -28
- package/dist/cli/update-4AZ7S666.js +0 -28
- /package/dist/cli/{chunk-GVUJJJ5G.mjs → chunk-6IKARAYD.mjs} +0 -0
- /package/dist/cli/{chunk-6A3TJUWC.js → chunk-S6R3OX7B.js} +0 -0
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
15
15
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
16
16
|
resolveConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7QV545D7.mjs";
|
|
18
18
|
import {
|
|
19
19
|
PLAY_RUNTIME_BACKENDS,
|
|
20
20
|
RAW_V2_TOOL_RESPONSE_CONTRACT,
|
|
21
21
|
legacyRawFromToolResponseRawV2,
|
|
22
22
|
providerMetaFromToolResponseRawV2
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6IKARAYD.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError,
|
|
26
26
|
TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
|
|
@@ -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 _chunkBBXO7APGjs = require('./chunk-BBXO7APG.js');
|
|
5
5
|
|
|
6
6
|
// src/cli/commands/sessions.ts
|
|
7
7
|
|
|
@@ -420,7 +420,7 @@ function buildSessionUploadContent(raw) {
|
|
|
420
420
|
return { encodedContent: encoded, needsChunking: true };
|
|
421
421
|
}
|
|
422
422
|
async function uploadPayload(path, payload) {
|
|
423
|
-
const { http } =
|
|
423
|
+
const { http } = _chunkBBXO7APGjs.getAuthedHttpClient.call(void 0, );
|
|
424
424
|
return await http.post(path, payload);
|
|
425
425
|
}
|
|
426
426
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -452,7 +452,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
452
452
|
environments: sessions.map(() => detectShellContext()),
|
|
453
453
|
...options.rating ? { rating: options.rating } : {}
|
|
454
454
|
});
|
|
455
|
-
|
|
455
|
+
_chunkBBXO7APGjs.printCommandEnvelope.call(void 0,
|
|
456
456
|
{
|
|
457
457
|
...response,
|
|
458
458
|
ok: true,
|
|
@@ -481,7 +481,7 @@ async function handleSessionsSend(options) {
|
|
|
481
481
|
filename: _path.basename.call(void 0, filePath),
|
|
482
482
|
...rating ? { rating } : {}
|
|
483
483
|
});
|
|
484
|
-
|
|
484
|
+
_chunkBBXO7APGjs.printCommandEnvelope.call(void 0,
|
|
485
485
|
{
|
|
486
486
|
...response2,
|
|
487
487
|
ok: true,
|
|
@@ -530,7 +530,7 @@ async function handleSessionsSend(options) {
|
|
|
530
530
|
environment: detectShellContext(),
|
|
531
531
|
...rating ? { rating } : {}
|
|
532
532
|
});
|
|
533
|
-
|
|
533
|
+
_chunkBBXO7APGjs.printCommandEnvelope.call(void 0,
|
|
534
534
|
{
|
|
535
535
|
...response,
|
|
536
536
|
ok: true,
|
|
@@ -635,7 +635,7 @@ ${refreshMeta}
|
|
|
635
635
|
</body>
|
|
636
636
|
</html>`;
|
|
637
637
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
638
|
-
|
|
638
|
+
_chunkBBXO7APGjs.printCommandEnvelope.call(void 0,
|
|
639
639
|
{
|
|
640
640
|
ok: true,
|
|
641
641
|
file: outputPath,
|
|
@@ -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 _chunkDNBJRKVEjs = require('./chunk-DNBJRKVE.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 = _chunkDNBJRKVEjs.resolveShellSpawn.call(void 0, "npm", ["--version"]);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -1,20 +1,20 @@
|
|
|
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 _chunkFDEU7UY7js = require('./chunk-FDEU7UY7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBBXO7APGjs = require('./chunk-BBXO7APG.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkDOCDA2YPjs = require('./chunk-DOCDA2YP.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/search-ref.ts
|
|
13
13
|
var _fs = require('fs');
|
|
14
14
|
var _path = require('path');
|
|
15
15
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
16
16
|
function lastSearchPath() {
|
|
17
|
-
return _path.join.call(void 0,
|
|
17
|
+
return _path.join.call(void 0, _chunkDOCDA2YPjs.sdkCliStateDirPath.call(void 0, _chunkDOCDA2YPjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
18
18
|
}
|
|
19
19
|
function rememberSearchRef(searchRef) {
|
|
20
20
|
try {
|
|
@@ -82,7 +82,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
82
82
|
console.error(USAGE);
|
|
83
83
|
return 1;
|
|
84
84
|
}
|
|
85
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
85
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkFDEU7UY7js.DeeplineClient)().search({
|
|
86
86
|
query,
|
|
87
87
|
types,
|
|
88
88
|
exclude,
|
|
@@ -95,7 +95,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
95
95
|
includeSearchDebug: Boolean(options.includeSearchDebug)
|
|
96
96
|
});
|
|
97
97
|
if (searchRef) rememberSearchRef(searchRef);
|
|
98
|
-
|
|
98
|
+
_chunkBBXO7APGjs.printCommandEnvelope.call(void 0, result, {
|
|
99
99
|
json: options.json === true
|
|
100
100
|
});
|
|
101
101
|
return 0;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JZWC4ES6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-35SCWK4Y.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
sdkCliStateDirPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7QV545D7.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/search-ref.ts
|
|
13
13
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-35SCWK4Y.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7QV545D7.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkBBXO7APGjs = require('./chunk-BBXO7APG.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkDOCDA2YPjs = require('./chunk-DOCDA2YP.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 } = _chunkBBXO7APGjs.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
|
+
_chunkBBXO7APGjs.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 } = _chunkBBXO7APGjs.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
|
+
_chunkBBXO7APGjs.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 } = _chunkBBXO7APGjs.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
|
+
_chunkBBXO7APGjs.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 } = _chunkBBXO7APGjs.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 } = _chunkBBXO7APGjs.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
|
+
_chunkBBXO7APGjs.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 } = _chunkBBXO7APGjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkBBXO7APGjs.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 } = _chunkBBXO7APGjs.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
|
+
_chunkBBXO7APGjs.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 } = _chunkBBXO7APGjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkBBXO7APGjs.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 = _chunkDOCDA2YPjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkBBXO7APGjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkBBXO7APGjs.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 } = _chunkBBXO7APGjs.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
|
+
_chunkBBXO7APGjs.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 } = _chunkBBXO7APGjs.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
|
+
_chunkBBXO7APGjs.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 } = _chunkBBXO7APGjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkBBXO7APGjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -10,7 +10,7 @@ var _chunkZDO3TO3Mjs = require('./chunk-ZDO3TO3M.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkS6R3OX7Bjs = require('./chunk-S6R3OX7B.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -55,9 +55,9 @@ function buildPlayContractCompatibility(input) {
|
|
|
55
55
|
runtimeBackend: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _ => _.runtimeBackend]), () => ( null)),
|
|
56
56
|
toolErrorSchemaVersion: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _2 => _2.toolErrorSchemaVersion]), () => ( _chunk7P5AA3SNjs.TOOL_EXECUTION_ERROR_SCHEMA_VERSION)),
|
|
57
57
|
authoringContractEdition: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _3 => _3.authoringContractEdition]), () => ( _chunkZDO3TO3Mjs.PLAY_AUTHORING_CONTRACT_EDITION)),
|
|
58
|
-
toolResponseContract: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _4 => _4.toolResponseContract]), () => (
|
|
59
|
-
toolResponseReceiptRevision:
|
|
60
|
-
_nullishCoalesce(_optionalChain([input, 'optionalAccess', _5 => _5.toolResponseReceiptRevision]), () => (
|
|
58
|
+
toolResponseContract: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _4 => _4.toolResponseContract]), () => ( _chunkS6R3OX7Bjs.RAW_V2_TOOL_RESPONSE_CONTRACT)),
|
|
59
|
+
toolResponseReceiptRevision: _chunkS6R3OX7Bjs.normalizeToolResponseReceiptRevision.call(void 0,
|
|
60
|
+
_nullishCoalesce(_optionalChain([input, 'optionalAccess', _5 => _5.toolResponseReceiptRevision]), () => ( _chunkS6R3OX7Bjs.RAW_V2_TOOL_RESPONSE_RECEIPT_REVISION))
|
|
61
61
|
)
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -2629,7 +2629,7 @@ async function writeArtifactCache(artifact, adapter) {
|
|
|
2629
2629
|
/* turbopackIgnore: true */
|
|
2630
2630
|
artifactCachePath(
|
|
2631
2631
|
artifact.graphHash,
|
|
2632
|
-
_nullishCoalesce(artifact.artifactKind, () => (
|
|
2632
|
+
_nullishCoalesce(artifact.artifactKind, () => ( _chunkS6R3OX7Bjs.PLAY_ARTIFACT_KINDS.cjsNode20)),
|
|
2633
2633
|
adapter
|
|
2634
2634
|
),
|
|
2635
2635
|
JSON.stringify(artifact),
|
|
@@ -2714,7 +2714,7 @@ async function runEsbuildForCjsNode(entryFile, customerSourceFilePaths, imported
|
|
|
2714
2714
|
}
|
|
2715
2715
|
async function bundlePlayFile(filePath, options) {
|
|
2716
2716
|
const adapter = options.adapter;
|
|
2717
|
-
const target = _nullishCoalesce(options.target, () => (
|
|
2717
|
+
const target = _nullishCoalesce(options.target, () => ( _chunkS6R3OX7Bjs.PLAY_ARTIFACT_KINDS.cjsNode20));
|
|
2718
2718
|
const exportName = _optionalChain([options, 'access', _98 => _98.exportName, 'optionalAccess', _99 => _99.trim, 'call', _100 => _100()]) || "default";
|
|
2719
2719
|
assertValidExportName(exportName);
|
|
2720
2720
|
const absolutePath = await normalizeLocalPath(filePath);
|
|
@@ -2932,8 +2932,8 @@ var PLAY_RUNTIME_PROVIDERS = {
|
|
|
2932
2932
|
// Server runs execute on Daytona; the local-dev/test shape swaps the runner
|
|
2933
2933
|
// axis to local_process (same as the local profile) via an explicit
|
|
2934
2934
|
// runtimeBackend override at submit while tests drive local_process.
|
|
2935
|
-
runner:
|
|
2936
|
-
artifactKind:
|
|
2935
|
+
runner: _chunkS6R3OX7Bjs.PLAY_RUNTIME_BACKENDS.daytona,
|
|
2936
|
+
artifactKind: _chunkS6R3OX7Bjs.PLAY_ARTIFACT_KINDS.cjsNode20,
|
|
2937
2937
|
label: "Absurd (Postgres-native durable) scheduler + one-shot Daytona runner"
|
|
2938
2938
|
}
|
|
2939
2939
|
};
|
|
@@ -3417,7 +3417,7 @@ async function bundlePlayFile2(filePath, options = {}) {
|
|
|
3417
3417
|
}
|
|
3418
3418
|
async function bundleDeployPlayFile(entryFile, options) {
|
|
3419
3419
|
return bundlePlayFile(entryFile, {
|
|
3420
|
-
target:
|
|
3420
|
+
target: _chunkS6R3OX7Bjs.PLAY_ARTIFACT_KINDS.cjsNode20,
|
|
3421
3421
|
adapter: {
|
|
3422
3422
|
...createSdkPlayBundlingAdapter(),
|
|
3423
3423
|
sourceIdentityRoot: options.sourceIdentityRoot,
|
|
@@ -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.304",
|
|
53
53
|
updateSummary: "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.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
MONITOR_JOB_PHASES,
|
|
4
4
|
MONITOR_JOB_RECONCILIATION_STATES,
|
|
5
5
|
MONITOR_JOB_STATES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JZWC4ES6.mjs";
|
|
7
7
|
import "./chunk-CBVIJSHF.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-7QV545D7.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-7OXXCRGZ.mjs";
|
|
11
|
+
import "./chunk-6IKARAYD.mjs";
|
|
12
12
|
import "./chunk-NXGCO4JB.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
14
14
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkFDEU7UY7js = require('./chunk-FDEU7UY7.js');
|
|
7
|
+
require('./chunk-LA46MMTL.js');
|
|
8
|
+
require('./chunk-DOCDA2YP.js');
|
|
9
|
+
require('./chunk-XNYIZMNQ.js');
|
|
10
|
+
require('./chunk-ZQSQCHG3.js');
|
|
11
|
+
require('./chunk-S6R3OX7B.js');
|
|
12
|
+
require('./chunk-7P5AA3SN.js');
|
|
13
|
+
require('./chunk-OG64RBAC.js');
|
|
14
|
+
require('./chunk-COGTRVWW.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.DeeplineClient = _chunkFDEU7UY7js.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunkFDEU7UY7js.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkFDEU7UY7js.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkFDEU7UY7js.MONITOR_JOB_STATES;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkBBXO7APGjs = require('./chunk-BBXO7APG.js');
|
|
8
|
+
require('./chunk-DOCDA2YP.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-ZQSQCHG3.js');
|
|
11
11
|
require('./chunk-7P5AA3SN.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
@@ -126,7 +126,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
126
126
|
column.length,
|
|
127
127
|
...rows.map((row) => {
|
|
128
128
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
129
|
-
return (verbose ? value :
|
|
129
|
+
return (verbose ? value : _chunkBBXO7APGjs.clip.call(void 0, value, 42)).length;
|
|
130
130
|
})
|
|
131
131
|
)
|
|
132
132
|
])
|
|
@@ -136,7 +136,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
136
136
|
const body = rows.map(
|
|
137
137
|
(row) => columns.map((column) => {
|
|
138
138
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
139
|
-
const display = verbose ? raw :
|
|
139
|
+
const display = verbose ? raw : _chunkBBXO7APGjs.clip.call(void 0, raw, 42);
|
|
140
140
|
return display.padEnd(widths[column]);
|
|
141
141
|
}).join(" | ")
|
|
142
142
|
);
|
|
@@ -156,7 +156,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
156
156
|
{ exitCode: 2 }
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
|
-
const allRows =
|
|
159
|
+
const allRows = _chunkBBXO7APGjs.readCsvRows.call(void 0, csvPath);
|
|
160
160
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
161
161
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
162
162
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -169,7 +169,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
169
169
|
if (options.summary) {
|
|
170
170
|
const summaries = summarizeColumns(selected, columns);
|
|
171
171
|
if (format === "json") {
|
|
172
|
-
|
|
172
|
+
_chunkBBXO7APGjs.printJson.call(void 0, {
|
|
173
173
|
rows: summaries,
|
|
174
174
|
total_rows: selected.length,
|
|
175
175
|
source_total_rows: allRows.length
|
|
@@ -178,7 +178,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
178
178
|
}
|
|
179
179
|
const displayRows = summaryDisplayRows(summaries);
|
|
180
180
|
if (format === "csv") {
|
|
181
|
-
process.stdout.write(
|
|
181
|
+
process.stdout.write(_chunkBBXO7APGjs.csvStringFromRows.call(void 0, displayRows));
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
process.stdout.write(
|
|
@@ -193,7 +193,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
if (format === "json") {
|
|
196
|
-
|
|
196
|
+
_chunkBBXO7APGjs.printJson.call(void 0, {
|
|
197
197
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
198
198
|
});
|
|
199
199
|
return;
|
|
@@ -436,7 +436,7 @@ async function handleCsvRenderStart(options) {
|
|
|
436
436
|
if (log) {
|
|
437
437
|
detail = `
|
|
438
438
|
CSV render log:
|
|
439
|
-
${
|
|
439
|
+
${_chunkBBXO7APGjs.clip.call(void 0, log, 2e3)}`;
|
|
440
440
|
}
|
|
441
441
|
} catch (e7) {
|
|
442
442
|
}
|
|
@@ -487,7 +487,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
487
487
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
488
488
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
489
489
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
490
|
-
|
|
490
|
+
_chunkBBXO7APGjs.printCommandEnvelope.call(void 0, payload, {
|
|
491
491
|
json: options.json,
|
|
492
492
|
text: `${lines.join("\n")}
|
|
493
493
|
`
|
|
@@ -523,7 +523,7 @@ async function handleCsvRenderStop(options) {
|
|
|
523
523
|
};
|
|
524
524
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
525
525
|
` : "No running CSV render process found.\n";
|
|
526
|
-
|
|
526
|
+
_chunkBBXO7APGjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
527
527
|
}
|
|
528
528
|
async function handleCsvRender(action, options) {
|
|
529
529
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-35SCWK4Y.mjs";
|
|
8
|
+
import "./chunk-7QV545D7.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-7OXXCRGZ.mjs";
|
|
11
11
|
import "./chunk-NXGCO4JB.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|