deepline 0.3.459 → 0.3.460
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/context.ts +11 -20
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +51 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -1
- package/dist/cli/{auth-2RM2ZC6E.mjs → auth-HKA6ZVHQ.mjs} +4 -4
- package/dist/cli/auth-VDOCNR7H.js +40 -0
- package/dist/cli/{billing-FYF2GJ25.mjs → billing-26G44S5N.mjs} +4 -4
- package/dist/cli/{billing-4BZABEOA.js → billing-MTO2ZZ3G.js} +73 -73
- package/dist/cli/{chunk-ACCQ5OM7.js → chunk-2PBN4SZE.js} +16 -16
- package/dist/cli/{chunk-JOSOQJ5P.js → chunk-2WRO2UJ5.js} +51 -51
- package/dist/cli/{chunk-Z4YO4J4J.js → chunk-2XHWOQF4.js} +50 -50
- package/dist/cli/{chunk-Y35FCRLQ.mjs → chunk-526R2HON.mjs} +1 -1
- package/dist/cli/{chunk-U3VAYRUL.js → chunk-BHGII2D6.js} +6 -6
- package/dist/cli/{chunk-SOUQUQQE.mjs → chunk-CTRPCARW.mjs} +8 -8
- package/dist/cli/{chunk-OQW2YP3P.mjs → chunk-EJGBLXDZ.mjs} +1 -1
- package/dist/cli/{chunk-OD236M42.mjs → chunk-KADIT5NV.mjs} +2 -2
- package/dist/cli/{chunk-RLQDDJZZ.mjs → chunk-LAWEURCT.mjs} +1 -1
- package/dist/cli/{chunk-KB4XJRQW.js → chunk-LJTFZOHU.js} +8 -8
- package/dist/cli/{chunk-FFUQFRKZ.js → chunk-LMAULZLF.js} +20 -20
- package/dist/cli/{chunk-MHMRLS7W.mjs → chunk-LVJOFUU7.mjs} +3 -3
- package/dist/cli/{chunk-2JSVKNLG.js → chunk-M52JQSLK.js} +3 -3
- package/dist/cli/{chunk-BIPMJKLI.mjs → chunk-MLFR6DVF.mjs} +5 -5
- package/dist/cli/{chunk-KDDB5S6E.mjs → chunk-NH6JSJW6.mjs} +3 -3
- package/dist/cli/{chunk-S5TTNBEZ.js → chunk-NRGGFVVB.js} +35 -35
- package/dist/cli/{chunk-HU7JG4RL.mjs → chunk-OJ6RUKVT.mjs} +1 -1
- package/dist/cli/{chunk-7AGGDRNR.mjs → chunk-OMM54B3X.mjs} +1 -1
- package/dist/cli/{chunk-PI65FBEA.js → chunk-QGAWTBIR.js} +81 -81
- package/dist/cli/{chunk-VLJXYDGZ.js → chunk-QJLKYYPX.js} +4 -4
- package/dist/cli/{chunk-HUVI6EBF.js → chunk-RBTTUYZZ.js} +1 -1
- package/dist/cli/{chunk-FPPCTKV6.js → chunk-RDPTDDKX.js} +2 -2
- package/dist/cli/{chunk-5WGW57KC.mjs → chunk-RZSTT45F.mjs} +3 -3
- package/dist/cli/{chunk-LSJYTDEK.mjs → chunk-S4Q2XCGM.mjs} +1 -1
- package/dist/cli/{chunk-OY4JQBJG.js → chunk-UKFZT7RF.js} +2 -2
- package/dist/cli/{chunk-FBMVFOD7.js → chunk-VJAEA4CS.js} +8 -8
- package/dist/cli/{chunk-LGOI2BRX.js → chunk-VTODQWQA.js} +10 -10
- package/dist/cli/{chunk-7DFM5YLL.mjs → chunk-W3BE3CHK.mjs} +4 -4
- package/dist/cli/{chunk-ZAJAGMXA.mjs → chunk-XAYO3Q2X.mjs} +2 -2
- package/dist/cli/{chunk-UIKSAVAE.js → chunk-YHTQM5XI.js} +26 -26
- package/dist/cli/{chunk-5KC7RLJO.js → chunk-YS2YBSJB.js} +6 -6
- package/dist/cli/{chunk-4EBJNT5C.mjs → chunk-YULBYKAK.mjs} +2 -2
- package/dist/cli/{chunk-NLRKZJZF.mjs → chunk-YVBWO647.mjs} +2 -2
- package/dist/cli/{chunk-MNNMPS6J.mjs → chunk-ZR2RLI4O.mjs} +1 -1
- package/dist/cli/{csv-LRIV3RXE.js → csv-6FNFYJUC.js} +12 -12
- package/dist/cli/{csv-SDVEU3O5.mjs → csv-MDHT4BKK.mjs} +3 -3
- package/dist/cli/{db-NHYULZTM.mjs → db-74O3RFWY.mjs} +4 -4
- package/dist/cli/{db-JS4OEDNY.js → db-D6AMVOEW.js} +25 -25
- package/dist/cli/{describe-ZFKCZHOJ.js → describe-QW54QQNB.js} +17 -17
- package/dist/cli/{describe-H5F72Q3S.mjs → describe-TOMIAT37.mjs} +13 -13
- package/dist/cli/{executions-QPAKZTNQ.js → executions-N4FMGVSC.js} +6 -6
- package/dist/cli/{executions-25YKX4K3.mjs → executions-PVSF4HUF.mjs} +4 -4
- package/dist/cli/{feedback-Z3BES6L6.mjs → feedback-OB7NANZW.mjs} +3 -3
- package/dist/cli/{feedback-O63Z5O2R.js → feedback-WFSPCAI2.js} +7 -7
- package/dist/cli/git-4PMBJSH5.js +24 -0
- package/dist/cli/{git-V7S3IBLO.mjs → git-FHUSPAEU.mjs} +4 -4
- package/dist/cli/index.js +132 -132
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-ZLLYEGQ6.js → legacy-noops-ECHNA5HN.js} +7 -7
- package/dist/cli/{legacy-noops-VRT5WZ5I.mjs → legacy-noops-HMK4BSCI.mjs} +4 -4
- package/dist/cli/{monitors-44KSWY3M.mjs → monitors-U7VQ3EZM.mjs} +5 -5
- package/dist/cli/{monitors-T7FKIDDY.js → monitors-XLLFNENH.js} +89 -89
- package/dist/cli/{org-BZE4CGIT.mjs → org-6H3USO5M.mjs} +4 -4
- package/dist/cli/{org-KPPG2KY4.js → org-QX6ER2HN.js} +66 -66
- package/dist/cli/{play-CHTP4NKR.mjs → play-MOB2WYOR.mjs} +11 -11
- package/dist/cli/{play-M5P74N3E.js → play-WNB7HBZK.js} +284 -284
- package/dist/cli/{providers-L3PK7NHU.js → providers-7M3DISKX.js} +7 -7
- package/dist/cli/{providers-CGLPOOXA.mjs → providers-CXEZ23E2.mjs} +4 -4
- package/dist/cli/{quickstart-LJ7HELWE.js → quickstart-CLJT4AZL.js} +5 -5
- package/dist/cli/{quickstart-NWG35AKK.mjs → quickstart-ZFCHKHF6.mjs} +3 -3
- package/dist/cli/search-4CCQCTVD.js +30 -0
- package/dist/cli/{search-723TVSNC.mjs → search-FVYWYIC3.mjs} +5 -5
- package/dist/cli/{secrets-ONN3Z5Y6.mjs → secrets-WAMPTQFC.mjs} +4 -4
- package/dist/cli/{secrets-SVSSLPWB.js → secrets-YRLKZQS5.js} +13 -13
- package/dist/cli/{sessions-7LYPPYUY.js → sessions-44J6WIVU.js} +5 -5
- package/dist/cli/{sessions-3KAEYQ3U.mjs → sessions-IQ332BJH.mjs} +4 -4
- package/dist/cli/{settings-2CBJI7FY.mjs → settings-22S6NIFQ.mjs} +9 -9
- package/dist/cli/{settings-JGJZO7EX.js → settings-4IJR2I2T.js} +76 -76
- package/dist/cli/{setup-AIAOO7R4.js → setup-3FWSRNOX.js} +43 -43
- package/dist/cli/{setup-BJCBDH34.mjs → setup-OZUPKKPW.mjs} +8 -8
- package/dist/cli/{skills-7QSQPQXX.mjs → skills-5CW3NFP3.mjs} +6 -6
- package/dist/cli/skills-LMNM6B5F.js +30 -0
- package/dist/cli/tools-AGBBDJ7P.js +45 -0
- package/dist/cli/{tools-I7LYXHDR.mjs → tools-NOPBDRGW.mjs} +13 -13
- package/dist/cli/{update-LKY5OJ56.mjs → update-IBULOV7P.mjs} +8 -8
- package/dist/cli/update-U3W6USVD.js +32 -0
- package/dist/cli/{workflow-DD32BU7Y.mjs → workflow-MVZT7MWT.mjs} +5 -5
- package/dist/cli/{workflow-Y4HGE7MB.js → workflow-Z7FW6GT2.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- 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-EAFWPDJG.js +0 -40
- package/dist/cli/git-KSRP3PNB.js +0 -24
- package/dist/cli/search-PESQULBG.js +0 -30
- package/dist/cli/skills-WECIGARR.js +0 -30
- package/dist/cli/tools-HTEMYXT2.js +0 -45
- package/dist/cli/update-J4LSPXHD.js +0 -32
|
@@ -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 _chunk2WRO2UJ5js = require('./chunk-2WRO2UJ5.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 = _chunk2WRO2UJ5js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -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(); } } 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 _chunkBHGII2D6js = require('./chunk-BHGII2D6.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQJLKYYPXjs = require('./chunk-QJLKYYPX.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkQJLKYYPXjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkBHGII2D6js.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -28,7 +28,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkQJLKYYPXjs = require('./chunk-QJLKYYPX.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -649,7 +649,7 @@ var ToolCalls = class {
|
|
|
649
649
|
idempotencyKey,
|
|
650
650
|
onResponse: (response2) => {
|
|
651
651
|
lastResponse = null;
|
|
652
|
-
atomicToolsSupported = response2.headers.get(
|
|
652
|
+
atomicToolsSupported = response2.headers.get(_chunkQJLKYYPXjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
653
653
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
654
654
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
655
655
|
try {
|
|
@@ -999,8 +999,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
999
999
|
}
|
|
1000
1000
|
const receivers = _optionalChain([env, 'access', _52 => _52.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _53 => _53.trim, 'call', _54 => _54()]);
|
|
1001
1001
|
return {
|
|
1002
|
-
[
|
|
1003
|
-
...receivers ? { [
|
|
1002
|
+
[_chunkQJLKYYPXjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1003
|
+
...receivers ? { [_chunkQJLKYYPXjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1004
1004
|
};
|
|
1005
1005
|
}
|
|
1006
1006
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1071,7 +1071,7 @@ var PlayClient = class {
|
|
|
1071
1071
|
return _chunkJKVRBCZLjs.startPlayRun.call(void 0,
|
|
1072
1072
|
this.http,
|
|
1073
1073
|
resolved.request,
|
|
1074
|
-
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1074
|
+
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkQJLKYYPXjs.SDK_API_MAJOR) } : headers,
|
|
1075
1075
|
options
|
|
1076
1076
|
);
|
|
1077
1077
|
}
|
|
@@ -1137,9 +1137,9 @@ var PlayClient = class {
|
|
|
1137
1137
|
}
|
|
1138
1138
|
};
|
|
1139
1139
|
function createPlayClient(options) {
|
|
1140
|
-
const config =
|
|
1140
|
+
const config = _chunkQJLKYYPXjs.resolveConfig.call(void 0, options);
|
|
1141
1141
|
return new PlayClient(
|
|
1142
|
-
new (0,
|
|
1142
|
+
new (0, _chunkQJLKYYPXjs.HttpClient)(config),
|
|
1143
1143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
1144
1144
|
);
|
|
1145
1145
|
}
|
|
@@ -3153,7 +3153,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3153
3153
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3154
3154
|
);
|
|
3155
3155
|
}
|
|
3156
|
-
return { [
|
|
3156
|
+
return { [_chunkQJLKYYPXjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3157
3157
|
}
|
|
3158
3158
|
function sleep(ms) {
|
|
3159
3159
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -3391,9 +3391,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3391
3391
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3392
3392
|
*/
|
|
3393
3393
|
constructor(options) {
|
|
3394
|
-
this.config =
|
|
3394
|
+
this.config = _chunkQJLKYYPXjs.resolveConfig.call(void 0, options);
|
|
3395
3395
|
this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
|
|
3396
|
-
this.http = new (0,
|
|
3396
|
+
this.http = new (0, _chunkQJLKYYPXjs.HttpClient)(this.config);
|
|
3397
3397
|
this.playClient = new PlayClient(this.http, this.environment);
|
|
3398
3398
|
this.toolCalls = new ToolCalls(
|
|
3399
3399
|
this.http,
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MLFR6DVF.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RZSTT45F.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-526R2HON.mjs";
|
|
15
15
|
import {
|
|
16
16
|
SDK_VERSION,
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OMM54B3X.mjs";
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-526R2HON.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OMM54B3X.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkBHGII2D6js = require('./chunk-BHGII2D6.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQJLKYYPXjs = require('./chunk-QJLKYYPX.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 } = _chunkBHGII2D6js.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
|
+
_chunkBHGII2D6js.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 } = _chunkBHGII2D6js.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
|
+
_chunkBHGII2D6js.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 } = _chunkBHGII2D6js.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
|
+
_chunkBHGII2D6js.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 } = _chunkBHGII2D6js.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 } = _chunkBHGII2D6js.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
|
+
_chunkBHGII2D6js.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 } = _chunkBHGII2D6js.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkBHGII2D6js.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 } = _chunkBHGII2D6js.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
|
+
_chunkBHGII2D6js.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 } = _chunkBHGII2D6js.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkBHGII2D6js.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 = _chunkQJLKYYPXjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkBHGII2D6js.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkBHGII2D6js.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 } = _chunkBHGII2D6js.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
|
+
_chunkBHGII2D6js.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 } = _chunkBHGII2D6js.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
|
+
_chunkBHGII2D6js.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 } = _chunkBHGII2D6js.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRDPTDDKXjs = require('./chunk-RDPTDDKX.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk2WRO2UJ5js = require('./chunk-2WRO2UJ5.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -14,17 +14,17 @@ function usesInlinePlayAdmission(command, args) {
|
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured") {
|
|
17
|
-
if (maintenancePolicy !== "off")
|
|
18
|
-
const compatibility = await
|
|
17
|
+
if (maintenancePolicy !== "off") _chunk2WRO2UJ5js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
18
|
+
const compatibility = await _chunkRDPTDDKXjs.traceCliSpan.call(void 0,
|
|
19
19
|
"cli.sdk_compatibility",
|
|
20
20
|
{ baseUrl, command: "plays run" },
|
|
21
|
-
() =>
|
|
21
|
+
() => _chunk2WRO2UJ5js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
22
22
|
command: "plays run",
|
|
23
23
|
persistCache: maintenancePolicy !== "off"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
if (compatibility.error) throw compatibility.error;
|
|
27
|
-
|
|
27
|
+
_chunk2WRO2UJ5js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
28
28
|
quietAdvisory: true
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-526R2HON.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OMM54B3X.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-526R2HON.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OMM54B3X.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkBHGII2D6js = require('./chunk-BHGII2D6.js');
|
|
8
|
+
require('./chunk-QJLKYYPX.js');
|
|
9
9
|
require('./chunk-ALJJRZNJ.js');
|
|
10
10
|
require('./chunk-XNYIZMNQ.js');
|
|
11
11
|
require('./chunk-DIAWYWT5.js');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-RBTTUYZZ.js');
|
|
13
13
|
require('./chunk-OG64RBAC.js');
|
|
14
14
|
require('./chunk-COGTRVWW.js');
|
|
15
15
|
|
|
@@ -127,7 +127,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
127
127
|
column.length,
|
|
128
128
|
...rows.map((row) => {
|
|
129
129
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
130
|
-
return (verbose ? value :
|
|
130
|
+
return (verbose ? value : _chunkBHGII2D6js.clip.call(void 0, value, 42)).length;
|
|
131
131
|
})
|
|
132
132
|
)
|
|
133
133
|
])
|
|
@@ -137,7 +137,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
137
137
|
const body = rows.map(
|
|
138
138
|
(row) => columns.map((column) => {
|
|
139
139
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
140
|
-
const display = verbose ? raw :
|
|
140
|
+
const display = verbose ? raw : _chunkBHGII2D6js.clip.call(void 0, raw, 42);
|
|
141
141
|
return display.padEnd(widths[column]);
|
|
142
142
|
}).join(" | ")
|
|
143
143
|
);
|
|
@@ -157,7 +157,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
157
157
|
{ exitCode: 2 }
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
|
-
const allRows =
|
|
160
|
+
const allRows = _chunkBHGII2D6js.readCsvRows.call(void 0, csvPath);
|
|
161
161
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
162
162
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
163
163
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -170,7 +170,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
170
170
|
if (options.summary) {
|
|
171
171
|
const summaries = summarizeColumns(selected, columns);
|
|
172
172
|
if (format === "json") {
|
|
173
|
-
|
|
173
|
+
_chunkBHGII2D6js.printJson.call(void 0, {
|
|
174
174
|
rows: summaries,
|
|
175
175
|
total_rows: selected.length,
|
|
176
176
|
source_total_rows: allRows.length
|
|
@@ -179,7 +179,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
179
179
|
}
|
|
180
180
|
const displayRows = summaryDisplayRows(summaries);
|
|
181
181
|
if (format === "csv") {
|
|
182
|
-
process.stdout.write(
|
|
182
|
+
process.stdout.write(_chunkBHGII2D6js.csvStringFromRows.call(void 0, displayRows));
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
process.stdout.write(
|
|
@@ -194,7 +194,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
196
|
if (format === "json") {
|
|
197
|
-
|
|
197
|
+
_chunkBHGII2D6js.printJson.call(void 0, {
|
|
198
198
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
199
199
|
});
|
|
200
200
|
return;
|
|
@@ -437,7 +437,7 @@ async function handleCsvRenderStart(options) {
|
|
|
437
437
|
if (log) {
|
|
438
438
|
detail = `
|
|
439
439
|
CSV render log:
|
|
440
|
-
${
|
|
440
|
+
${_chunkBHGII2D6js.clip.call(void 0, log, 2e3)}`;
|
|
441
441
|
}
|
|
442
442
|
} catch (e7) {
|
|
443
443
|
}
|
|
@@ -488,7 +488,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
488
488
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
489
489
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
490
490
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
491
|
-
|
|
491
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, {
|
|
492
492
|
json: options.json,
|
|
493
493
|
text: `${lines.join("\n")}
|
|
494
494
|
`
|
|
@@ -524,7 +524,7 @@ async function handleCsvRenderStop(options) {
|
|
|
524
524
|
};
|
|
525
525
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
526
526
|
` : "No running CSV render process found.\n";
|
|
527
|
-
|
|
527
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
528
528
|
}
|
|
529
529
|
async function handleCsvRender(action, options) {
|
|
530
530
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-526R2HON.mjs";
|
|
8
|
+
import "./chunk-OMM54B3X.mjs";
|
|
9
9
|
import "./chunk-4QF2K7TM.mjs";
|
|
10
10
|
import "./chunk-DLIRSHV6.mjs";
|
|
11
11
|
import "./chunk-HBL4PM5Q.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-EJGBLXDZ.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
14
14
|
import "./chunk-KRD6H754.mjs";
|
|
15
15
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient,
|
|
6
6
|
planCustomerDbQuery
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZR2RLI4O.mjs";
|
|
8
8
|
import "./chunk-L2VKAASU.mjs";
|
|
9
9
|
import "./chunk-FAG4DFUC.mjs";
|
|
10
10
|
import "./chunk-EIMG75BT.mjs";
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
printCommandEnvelope,
|
|
19
19
|
recordRows,
|
|
20
20
|
shouldEmitJson
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-526R2HON.mjs";
|
|
22
|
+
import "./chunk-OMM54B3X.mjs";
|
|
23
23
|
import {
|
|
24
24
|
CustomerDbQueryOutcomeUnknownError
|
|
25
25
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -27,7 +27,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
27
27
|
import {
|
|
28
28
|
DeeplineError
|
|
29
29
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-EJGBLXDZ.mjs";
|
|
31
31
|
import "./chunk-WZYKRD7T.mjs";
|
|
32
32
|
import "./chunk-KRD6H754.mjs";
|
|
33
33
|
|