deepline 0.3.428 → 0.3.430
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/integration-contracts/billing-entitlements.ts +22 -0
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +11 -8
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +2 -2
- package/dist/cli/auth-OAK76MZS.js +40 -0
- package/dist/cli/{auth-ZABHDJT3.mjs → auth-TQ6HZBPI.mjs} +4 -4
- package/dist/cli/{billing-AKHWV3MV.mjs → billing-XJXA44X5.mjs} +10 -5
- package/dist/cli/{billing-FUG6Q7SL.js → billing-XTJCA6KF.js} +79 -74
- package/dist/cli/{chunk-ACGNIHLS.js → chunk-2TWBFXWH.js} +20 -20
- package/dist/cli/{chunk-ZRZC6WWR.mjs → chunk-2VOTRAHO.mjs} +1 -1
- package/dist/cli/{chunk-EPHQBWED.js → chunk-4NVJEG6K.js} +26 -26
- package/dist/cli/{chunk-PQY6VEEL.mjs → chunk-4R545AO3.mjs} +2 -2
- package/dist/cli/{chunk-2LLDHR5C.mjs → chunk-AHUSKKDG.mjs} +1 -1
- package/dist/cli/{chunk-TZZ73X6X.mjs → chunk-AUGEGDPO.mjs} +2 -2
- package/dist/cli/{chunk-YHRS6XTB.js → chunk-BBWDU3D5.js} +2 -2
- package/dist/cli/{chunk-MCGTLMDV.js → chunk-CSBYEPJI.js} +2 -2
- package/dist/cli/{chunk-D6UO4WN3.js → chunk-E546F74V.js} +79 -79
- package/dist/cli/{chunk-6E4IYB3I.js → chunk-EKT4FLA4.js} +6 -6
- package/dist/cli/{chunk-S5M6ZEKW.mjs → chunk-EM744RIR.mjs} +3 -3
- package/dist/cli/{chunk-6AX4NTKV.mjs → chunk-FE34BAP6.mjs} +2 -2
- package/dist/cli/{chunk-DLCQIK5H.js → chunk-FZ73XHSU.js} +10 -10
- package/dist/cli/{chunk-QATVL6X3.js → chunk-JKOUIBTD.js} +16 -16
- package/dist/cli/{chunk-JFXX4SQV.js → chunk-JMTJEPWU.js} +8 -8
- package/dist/cli/{chunk-D33GOTFE.mjs → chunk-KKXF6L3D.mjs} +4 -4
- package/dist/cli/{chunk-PA6TQR75.js → chunk-LNQEBCTW.js} +4 -4
- package/dist/cli/{chunk-Z7URKNIZ.mjs → chunk-OKCYUSQW.mjs} +1 -1
- package/dist/cli/{chunk-2BQUML3X.mjs → chunk-PH2FUNEJ.mjs} +2 -2
- package/dist/cli/{chunk-3YUXZMTE.js → chunk-PTGJD7EH.js} +8 -8
- package/dist/cli/{chunk-XM52HE7B.mjs → chunk-QJQDK4BQ.mjs} +3 -3
- package/dist/cli/{chunk-FHKQTCC4.mjs → chunk-RB3QFQMO.mjs} +1 -1
- package/dist/cli/{chunk-MBHTTATW.mjs → chunk-SV7N6OLB.mjs} +2 -2
- package/dist/cli/{chunk-6S6WXN63.js → chunk-T6S3GT5F.js} +1 -1
- package/dist/cli/{chunk-NNZFHUV3.mjs → chunk-TIUSTHSJ.mjs} +3 -3
- package/dist/cli/{chunk-4QNMO7DK.js → chunk-TTRFTUQ3.js} +2 -2
- package/dist/cli/{chunk-XQY5BDGY.js → chunk-UIDYVJYW.js} +6 -6
- package/dist/cli/{chunk-IQUHUR72.mjs → chunk-V35KYXHC.mjs} +1 -1
- package/dist/cli/{chunk-3J7FZHJA.mjs → chunk-WHEH2GEA.mjs} +1 -1
- package/dist/cli/{chunk-EU2VT52L.js → chunk-WPGJ3XNI.js} +52 -52
- package/dist/cli/{chunk-5FJG4APE.mjs → chunk-YAXZQFVM.mjs} +5 -5
- package/dist/cli/{chunk-SAY6IYJA.mjs → chunk-YOVCI5LP.mjs} +8 -8
- package/dist/cli/{chunk-F5HARRY4.js → chunk-ZLVQPXMG.js} +35 -35
- package/dist/cli/{chunk-UJ3HL3W2.js → chunk-ZNC65U6P.js} +50 -50
- package/dist/cli/{csv-A5GRNUFM.js → csv-FSO52YQ2.js} +12 -12
- package/dist/cli/{csv-IMRHD3VV.mjs → csv-QPV7472B.mjs} +3 -3
- package/dist/cli/{db-XKGAEZPP.mjs → db-U7BFCR7L.mjs} +4 -4
- package/dist/cli/{db-6W2XVIWB.js → db-W45QQTMX.js} +25 -25
- package/dist/cli/{describe-226ZOVOL.mjs → describe-Q27T6S5D.mjs} +12 -12
- package/dist/cli/{describe-QVHO24JP.js → describe-WA3X2FS4.js} +16 -16
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-35YPXQ3R.mjs → executions-KSUQC3PR.mjs} +4 -4
- package/dist/cli/{executions-6JTC3A4Z.js → executions-R4PNHW4I.js} +6 -6
- package/dist/cli/{feedback-UP2MK5EU.js → feedback-SEBEU3ON.js} +7 -7
- package/dist/cli/{feedback-M6WLA3CD.mjs → feedback-XV6CPH3L.mjs} +3 -3
- package/dist/cli/git-AHISFYL3.js +24 -0
- package/dist/cli/{git-7EPDO7IK.mjs → git-JA3Z3VSQ.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-CSHWJ5PI.js → legacy-noops-I5BSQYD5.js} +7 -7
- package/dist/cli/{legacy-noops-PUN3XKGB.mjs → legacy-noops-IFFVKM6D.mjs} +4 -4
- package/dist/cli/{monitors-OADIHUZT.mjs → monitors-2HUBFPZ4.mjs} +4 -4
- package/dist/cli/{monitors-I4LEOVPV.js → monitors-BED4ZHQX.js} +84 -84
- package/dist/cli/{org-XCQD6GYA.mjs → org-7KHAOMG3.mjs} +4 -4
- package/dist/cli/{org-EVRPU7YU.js → org-KBAWY5VZ.js} +64 -64
- package/dist/cli/{play-AOSMIPDJ.js → play-VVFKKNQP.js} +301 -301
- package/dist/cli/{play-FFGDT6V3.mjs → play-ZOVQLLBH.mjs} +11 -11
- package/dist/cli/{providers-LZ7HI3ZS.js → providers-J72IJJ2Q.js} +7 -7
- package/dist/cli/{providers-NMK7TKSJ.mjs → providers-UCKMIGIQ.mjs} +4 -4
- package/dist/cli/{quickstart-IKNDABRN.js → quickstart-3PUK5N7Z.js} +5 -5
- package/dist/cli/{quickstart-4DGYWMTT.mjs → quickstart-JV4ILEMI.mjs} +3 -3
- package/dist/cli/{search-4H4Y4HWQ.mjs → search-26VHUJNX.mjs} +5 -5
- package/dist/cli/search-ZG77YAQ6.js +30 -0
- package/dist/cli/{secrets-VUNWQ6EH.js → secrets-QDOQQ7UK.js} +13 -13
- package/dist/cli/{secrets-BFOXOQRA.mjs → secrets-XWSUTLI5.mjs} +4 -4
- package/dist/cli/{sessions-UOE3SVYP.mjs → sessions-2LNUKAAG.mjs} +4 -4
- package/dist/cli/{sessions-LEQFHXIK.js → sessions-XKBVY4GN.js} +5 -5
- package/dist/cli/{settings-OS24T5VT.js → settings-ST2VREJE.js} +75 -75
- package/dist/cli/{settings-QHEY5BCS.mjs → settings-YRI2IOGN.mjs} +8 -8
- package/dist/cli/{setup-R7LZOV43.mjs → setup-552JZJI3.mjs} +7 -7
- package/dist/cli/{setup-LC3QKIC7.js → setup-VPRXUVJL.js} +42 -42
- package/dist/cli/skills-UDMRMI6C.js +29 -0
- package/dist/cli/{skills-YRGVE2TH.mjs → skills-UFRAQLOT.mjs} +5 -5
- package/dist/cli/{tools-FJ4O7OFR.mjs → tools-27ZL5GVS.mjs} +12 -12
- package/dist/cli/tools-SR2CN3VP.js +44 -0
- package/dist/cli/update-HS45ZLBY.js +31 -0
- package/dist/cli/{update-ISWK43K2.mjs → update-T5PK5V3I.mjs} +7 -7
- package/dist/cli/{workflow-U2U5NA4B.js → workflow-GO2BBGKL.js} +15 -15
- package/dist/cli/{workflow-N4CTCDSS.mjs → workflow-ZJO2FFWQ.mjs} +5 -5
- package/dist/{client-ChLTwy9x.d.mts → client-BuCrTjW6.d.mts} +1 -1
- package/dist/{client---03YXeB.d.ts → client-C0VoQB5b.d.ts} +1 -1
- package/dist/{compiler-manifest-DaFuA1ki.d.mts → compiler-manifest-D0Gl9gLn.d.mts} +22 -0
- package/dist/{compiler-manifest-DaFuA1ki.d.ts → compiler-manifest-D0Gl9gLn.d.ts} +22 -0
- package/dist/{index-0yS9ihly.d.mts → index-Bub1jys9.d.mts} +1 -1
- package/dist/{index-CRAScKPg.d.ts → index-VyHDAshm.d.ts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +86 -86
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +1 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +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-JNCOOTY4.js +0 -40
- package/dist/cli/git-BZOIQ4FW.js +0 -24
- package/dist/cli/search-DFZO2D3W.js +0 -30
- package/dist/cli/skills-CX45Z2JV.js +0 -29
- package/dist/cli/tools-2X5ZZDT3.js +0 -44
- package/dist/cli/update-OSTL25HV.js +0 -31
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJKOUIBTDjs = require('./chunk-JKOUIBTD.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkWPGJ3XNIjs = require('./chunk-WPGJ3XNI.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkUIDYVJYWjs = require('./chunk-UIDYVJYW.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkLNQEBCTWjs = require('./chunk-LNQEBCTW.js');
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -42,7 +42,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
42
42
|
async function reportAutoUpdateEvent(input) {
|
|
43
43
|
let apiKey = "";
|
|
44
44
|
try {
|
|
45
|
-
apiKey =
|
|
45
|
+
apiKey = _chunkLNQEBCTWjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
46
46
|
} catch (e2) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
@@ -58,15 +58,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
58
58
|
headers: {
|
|
59
59
|
Authorization: `Bearer ${apiKey}`,
|
|
60
60
|
"Content-Type": "application/json",
|
|
61
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
61
|
+
"User-Agent": `deepline-ts-sdk/${_chunkLNQEBCTWjs.SDK_VERSION}`,
|
|
62
62
|
"X-Deepline-Client-Family": "sdk",
|
|
63
63
|
"X-Deepline-CLI-Family": "sdk",
|
|
64
|
-
"X-Deepline-CLI-Version":
|
|
65
|
-
"X-Deepline-SDK-Version":
|
|
64
|
+
"X-Deepline-CLI-Version": _chunkLNQEBCTWjs.SDK_VERSION,
|
|
65
|
+
"X-Deepline-SDK-Version": _chunkLNQEBCTWjs.SDK_VERSION
|
|
66
66
|
},
|
|
67
67
|
body: JSON.stringify({
|
|
68
68
|
event: input.event,
|
|
69
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
69
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkLNQEBCTWjs.SDK_VERSION,
|
|
70
70
|
target_version: input.response.latest,
|
|
71
71
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
72
72
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -85,13 +85,13 @@ function envTruthy(name) {
|
|
|
85
85
|
return value === "1" || value === "true" || value === "yes";
|
|
86
86
|
}
|
|
87
87
|
function shouldSkipSelfUpdate(policy) {
|
|
88
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
88
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkJKOUIBTDjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkWPGJ3XNIjs.isCiEnvironment.call(void 0, );
|
|
89
89
|
}
|
|
90
90
|
function isDowngradeAutoUpdateResponse(response) {
|
|
91
91
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
92
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
92
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkLNQEBCTWjs.SDK_VERSION;
|
|
93
93
|
if (!target) return false;
|
|
94
|
-
return
|
|
94
|
+
return _chunkJKOUIBTDjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
95
95
|
}
|
|
96
96
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
97
97
|
return new Promise((resolve) => {
|
|
@@ -144,7 +144,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
144
144
|
}
|
|
145
145
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
146
146
|
const target = response.latest;
|
|
147
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
147
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkLNQEBCTWjs.SDK_VERSION;
|
|
148
148
|
process.stderr.write(
|
|
149
149
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
150
150
|
`
|
|
@@ -152,21 +152,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
152
152
|
return false;
|
|
153
153
|
}
|
|
154
154
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
155
|
-
const plan =
|
|
155
|
+
const plan = _chunkJKOUIBTDjs.resolveUpdatePlan.call(void 0, {
|
|
156
156
|
packageSpec,
|
|
157
157
|
requireVerifiedNpmOwnership: true,
|
|
158
158
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
159
159
|
});
|
|
160
|
-
if (!
|
|
160
|
+
if (!_chunkJKOUIBTDjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
161
161
|
return false;
|
|
162
162
|
}
|
|
163
163
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
164
164
|
deferredAutoUpdate = async () => {
|
|
165
165
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
166
166
|
};
|
|
167
|
-
if (
|
|
167
|
+
if (_chunkUIDYVJYWjs.isJsonOutputMode.call(void 0, )) {
|
|
168
168
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
169
|
-
|
|
169
|
+
_chunkUIDYVJYWjs.addJsonNotice.call(void 0, {
|
|
170
170
|
code: "sdk_update_queued",
|
|
171
171
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
172
172
|
});
|
|
@@ -179,7 +179,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
179
179
|
return true;
|
|
180
180
|
}
|
|
181
181
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
182
|
-
if (!
|
|
182
|
+
if (!_chunkJKOUIBTDjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
183
183
|
const autoUpdate = response.auto_update;
|
|
184
184
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
185
185
|
process.stderr.write(
|
|
@@ -192,7 +192,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
192
192
|
event: "started",
|
|
193
193
|
installKind: plan.kind
|
|
194
194
|
});
|
|
195
|
-
const updateResult = await
|
|
195
|
+
const updateResult = await _chunkJKOUIBTDjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
196
196
|
if (updateResult.status === "skipped_previous_failure") {
|
|
197
197
|
void reportAutoUpdateEvent({
|
|
198
198
|
baseUrl,
|
|
@@ -243,7 +243,7 @@ var _crypto = require('crypto');
|
|
|
243
243
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
244
244
|
var activeToolExecuteCommand = null;
|
|
245
245
|
function progressLine(line) {
|
|
246
|
-
if (!
|
|
246
|
+
if (!_chunkUIDYVJYWjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
247
247
|
}
|
|
248
248
|
function beginToolExecuteCommand() {
|
|
249
249
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkUIDYVJYWjs = require('./chunk-UIDYVJYW.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkLNQEBCTWjs = require('./chunk-LNQEBCTW.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 } = _chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.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 } = _chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.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 } = _chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.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 } = _chunkUIDYVJYWjs.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 } = _chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.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 } = _chunkUIDYVJYWjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkUIDYVJYWjs.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 } = _chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.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 } = _chunkUIDYVJYWjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkUIDYVJYWjs.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 = _chunkLNQEBCTWjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkUIDYVJYWjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkUIDYVJYWjs.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 } = _chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.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 } = _chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.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 } = _chunkUIDYVJYWjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OKCYUSQW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V35KYXHC.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AHUSKKDG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EM744RIR.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1768,8 +1768,8 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
|
|
|
1768
1768
|
" run(options?: DatasetRunOptions<InputRow>): Promise<PlayDataset<OutputRow>>;",
|
|
1769
1769
|
"};",
|
|
1770
1770
|
"export type PlayReferenceLike<TInput extends Record<string, unknown> = Record<string, unknown>> = ({ readonly playName: string; readonly name?: string } | { readonly name: string; readonly playName?: string }) & { readonly __inputType?: TInput };",
|
|
1771
|
-
"export type BillingBenefitValues = { quickenrichUnlimited: { enabled: boolean; requestsPerMinute: number } };",
|
|
1772
|
-
"export type BillingEntitlements = { org_id: string; as_of: number; plan: { sku: string; name: string; catalog_revision: string | null; included_credits: number; interval: 'month' | 'year' | null } | null; benefits: { quickenrichUnlimited?: { status: 'active' | 'past_due'; value: BillingBenefitValues['quickenrichUnlimited']; expiresAt?: number } }; effective_limits: { quickenrichUnlimited?: { baseline: number; effective: number; source: 'plan' | 'override'; override_expires_at?: number } } };",
|
|
1771
|
+
"export type BillingBenefitValues = { quickenrichUnlimited: { enabled: boolean; requestsPerMinute: number }; peopleSearch: { enabled: boolean; requestsPerMinute: number; profilesPerMonth: number; overageCreditsPerProfile?: number } };",
|
|
1772
|
+
"export type BillingEntitlements = { org_id: string; as_of: number; plan: { sku: string; name: string; catalog_revision: string | null; included_credits: number; interval: 'month' | 'year' | null } | null; benefits: { quickenrichUnlimited?: { status: 'active' | 'past_due'; value: BillingBenefitValues['quickenrichUnlimited']; expiresAt?: number }; peopleSearch?: { status: 'active'; value: BillingBenefitValues['peopleSearch']; expiresAt?: number; usage: { month: string; periodStartsAt?: number; resetsAt?: number; resetsOn?: 'calendar_month' | 'billing_cycle'; limit: number; consumed: number; remaining: number } } }; effective_limits: { quickenrichUnlimited?: { baseline: number; effective: number; source: 'plan' | 'override'; override_expires_at?: number } } };",
|
|
1773
1773
|
"export interface DeeplinePlayRuntimeContext {",
|
|
1774
1774
|
" billing: { entitlements(): Promise<BillingEntitlements> };",
|
|
1775
1775
|
" csv<T = Record<string, unknown>>(path: string | CsvInput<T & object>, options?: CsvOptions): Promise<PlayDataset<T>>;",
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUIDYVJYWjs = require('./chunk-UIDYVJYW.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkUIDYVJYWjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|