deepline 0.3.568 → 0.3.570
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/client-core.ts +20 -5
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +17 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +17 -1
- package/dist/cli/{auth-AV6JJ2Y6.mjs → auth-KHJKNEYN.mjs} +5 -5
- package/dist/cli/auth-X2LWGPF4.js +44 -0
- package/dist/cli/{billing-3RUXM4OW.js → billing-Q4BRUODF.js} +102 -102
- package/dist/cli/{billing-3RVJZROW.mjs → billing-R5AO4M3S.mjs} +9 -9
- package/dist/cli/{chunk-VVGHZ7S6.mjs → chunk-2GBOHROU.mjs} +1 -1
- package/dist/cli/{chunk-LKXBFVYU.js → chunk-2GTLZNSK.js} +53 -53
- package/dist/cli/{chunk-5KHSPLPO.js → chunk-2MXS53XJ.js} +20 -20
- package/dist/cli/{chunk-GXSJTCCG.mjs → chunk-3YHMHV6U.mjs} +4 -4
- package/dist/cli/{chunk-FQIOTHEZ.mjs → chunk-5OOGWYSR.mjs} +1 -1
- package/dist/cli/{chunk-G7GN3RGE.mjs → chunk-64MOX3SN.mjs} +15 -3
- package/dist/cli/{chunk-GLTA22I3.mjs → chunk-73RTZMDV.mjs} +84 -11
- package/dist/cli/{chunk-TSNVG3T5.mjs → chunk-77HEH4RY.mjs} +1 -1
- package/dist/cli/{chunk-SHO6BOXN.mjs → chunk-BEE5VGCL.mjs} +11 -11
- package/dist/cli/{chunk-ANRKUFUG.js → chunk-CHHXUEVC.js} +100 -100
- package/dist/cli/{chunk-RJJNXV36.js → chunk-DPZAEVPO.js} +20 -20
- package/dist/cli/{chunk-HQX2P4NH.mjs → chunk-EEUBKKJE.mjs} +1 -1
- package/dist/cli/{chunk-VIMSKO7W.mjs → chunk-EJB4V77N.mjs} +5 -5
- package/dist/cli/{chunk-VEPXXRHO.mjs → chunk-EYEPXZNS.mjs} +2 -2
- package/dist/cli/{chunk-O4FCX6BS.js → chunk-FABLUH75.js} +3 -3
- package/dist/cli/{chunk-DIPM4GTS.js → chunk-FDSQSUZF.js} +5 -5
- package/dist/cli/{chunk-RH3WIX2W.mjs → chunk-GFGXDDJH.mjs} +2 -2
- package/dist/cli/{chunk-F62RQL3X.js → chunk-GPXLMRCB.js} +3 -3
- package/dist/cli/{chunk-5SOJGKQM.mjs → chunk-HPWP2B3D.mjs} +1 -1
- package/dist/cli/{chunk-SONHOBIK.mjs → chunk-I4N62RWB.mjs} +2 -2
- package/dist/cli/{chunk-MOJOAX3X.mjs → chunk-I5EZZFQL.mjs} +3 -3
- package/dist/cli/{chunk-H4BU2RRU.js → chunk-J6M2AX3P.js} +118 -108
- package/dist/cli/{chunk-JJSKWDUI.js → chunk-J6PTH725.js} +6 -6
- package/dist/cli/{chunk-OWSTUCIB.js → chunk-JSHE4W6W.js} +5 -5
- package/dist/cli/{chunk-QVERY22Q.mjs → chunk-MH3WE5O6.mjs} +2 -2
- package/dist/cli/{chunk-BXNCAZ7G.mjs → chunk-MVHKTZCX.mjs} +1 -1
- package/dist/cli/{chunk-ZVJ2YNAH.js → chunk-N6KF6X3D.js} +15 -3
- package/dist/cli/{chunk-UPUBCTSS.js → chunk-NIO2T6OC.js} +2 -2
- package/dist/cli/{chunk-JIEUKZ7J.js → chunk-NR7QW2E7.js} +2 -2
- package/dist/cli/{chunk-4QGZUHDF.mjs → chunk-NVYQ6WCW.mjs} +5 -5
- package/dist/cli/{chunk-4PAGRUZA.js → chunk-NWAFCOUF.js} +15 -15
- package/dist/cli/{chunk-V5WFPMUC.mjs → chunk-O3ET4XR3.mjs} +4 -4
- package/dist/cli/{chunk-AAXGFMYQ.mjs → chunk-OOTXBEHG.mjs} +15 -5
- package/dist/cli/{chunk-KKIDGS7O.js → chunk-OPZHUL6T.js} +10 -10
- package/dist/cli/{chunk-RZMU7ISG.js → chunk-OV6EKORX.js} +26 -26
- package/dist/cli/{chunk-PPQHQ4J2.js → chunk-OWEUQCBZ.js} +48 -48
- package/dist/cli/{chunk-5NBR7V5U.js → chunk-PERYT4ZA.js} +1 -1
- package/dist/cli/{chunk-Y4Q4LQRX.js → chunk-PSMYOQFI.js} +13 -13
- package/dist/cli/{chunk-D2DYHEH7.js → chunk-Q4P6STRD.js} +23 -23
- package/dist/cli/{chunk-VW2EUXY2.mjs → chunk-RS6KPFQX.mjs} +5 -5
- package/dist/cli/{chunk-2BWPNLYG.js → chunk-SOZ2SB43.js} +9 -9
- package/dist/cli/{chunk-JPSKSXNS.mjs → chunk-TMT3S2JR.mjs} +2 -2
- package/dist/cli/{chunk-LQTLFFUB.mjs → chunk-TWHTVGGW.mjs} +2 -2
- package/dist/cli/{chunk-RUAEON5J.js → chunk-UDN6EYBJ.js} +4 -4
- package/dist/cli/{chunk-S2HGTJET.mjs → chunk-UWQLRBXY.mjs} +5 -5
- package/dist/cli/{chunk-WYXXJA5J.js → chunk-W26YT37U.js} +41 -41
- package/dist/cli/{chunk-TM3Z7JXT.mjs → chunk-WINZRS3A.mjs} +1 -1
- package/dist/cli/{chunk-JRTB75JO.js → chunk-WNUFRUNS.js} +95 -22
- package/dist/cli/{chunk-JT7S45KT.mjs → chunk-XHFSNMEU.mjs} +3 -3
- package/dist/cli/{chunk-7X34FUYS.js → chunk-YQP4ZUOJ.js} +7 -7
- package/dist/cli/{chunk-KMWH6VY2.mjs → chunk-YXJVYY5V.mjs} +2 -2
- package/dist/cli/{chunk-PE2XN2VM.js → chunk-ZGOCDLJQ.js} +2 -2
- package/dist/cli/{chunk-M3IMARRH.mjs → chunk-ZZ4D74UL.mjs} +1 -1
- package/dist/cli/{chunk-5KDMJLQX.js → chunk-ZZ7ZH27W.js} +5 -5
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-SJ27PPHV.mjs → concurrent-runs-help-Q26CEJ7I.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-QDURIV4N.js +22 -0
- package/dist/cli/{csv-ZN4QI6PJ.mjs → csv-6LI6HLKG.mjs} +4 -4
- package/dist/cli/{csv-BGXZKS5R.js → csv-Z34I5QIU.js} +13 -13
- package/dist/cli/{db-SVBVPMWN.mjs → db-K5GKIKQU.mjs} +6 -6
- package/dist/cli/{db-KTAZ5FBG.js → db-NUDEYQCF.js} +27 -27
- package/dist/cli/describe-BY7LKP53.js +50 -0
- package/dist/cli/{describe-4CGCRK24.mjs → describe-EB4KTEPT.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-YL5CTGWP.mjs → executions-DAGHJZEI.mjs} +6 -6
- package/dist/cli/{executions-75DO2GBS.js → executions-KHOUABZ3.js} +8 -8
- package/dist/cli/{feedback-VEA3XJM3.mjs → feedback-A57YETEA.mjs} +6 -6
- package/dist/cli/{feedback-2SMUBQZR.js → feedback-XLAWTPK2.js} +14 -14
- package/dist/cli/git-CR6PBWBH.js +26 -0
- package/dist/cli/{git-BEYEHMCX.mjs → git-U3FNR34D.mjs} +5 -5
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-RXWE6WUZ.mjs → integrations-LXUMB4RY.mjs} +7 -7
- package/dist/cli/{integrations-PIXZBU2N.js → integrations-YVOJ5D6W.js} +29 -29
- package/dist/cli/{legacy-noops-PJHP4GRU.mjs → legacy-noops-4Z2RBTHW.mjs} +6 -6
- package/dist/cli/{legacy-noops-XHVEYEJN.js → legacy-noops-IZVLGQZJ.js} +9 -9
- package/dist/cli/{mcp-276ZFIUM.js → mcp-GRGI3KYH.js} +24 -24
- package/dist/cli/{mcp-SUOIVUOM.mjs → mcp-ZHXRVV7D.mjs} +4 -4
- package/dist/cli/{monitors-AVGNLV7V.mjs → monitors-7ZVYJ3CX.mjs} +7 -7
- package/dist/cli/{monitors-DGBB7X4G.js → monitors-XFN5D6EW.js} +100 -100
- package/dist/cli/{org-U5275K5D.js → org-RWWXN5TK.js} +121 -121
- package/dist/cli/{org-WKP2BZJQ.mjs → org-YY5JTKNV.mjs} +6 -6
- package/dist/cli/{outcomes-LSCS6QE5.js → outcomes-AOZVYNJT.js} +14 -14
- package/dist/cli/{outcomes-H3RAH5ES.mjs → outcomes-MGWUZNQ6.mjs} +6 -6
- package/dist/cli/{play-7MSJU3LP.mjs → play-AJR7BT3R.mjs} +19 -19
- package/dist/cli/{play-GNT7SITC.js → play-S34KIOWS.js} +324 -324
- package/dist/cli/{providers-YDKHHCO4.mjs → providers-QRWQGVIC.mjs} +6 -6
- package/dist/cli/{providers-KTEG2ZNS.js → providers-S4WMWHBW.js} +9 -9
- package/dist/cli/{quickstart-T2NJMACU.js → quickstart-GET2M3BQ.js} +6 -6
- package/dist/cli/{quickstart-F6IH43NP.mjs → quickstart-NLAIOXVY.mjs} +4 -4
- package/dist/cli/{run-MIRJIW45.js → run-BOHHBZSI.js} +44 -44
- package/dist/cli/{run-AJB4MQGO.mjs → run-R2RYHNVS.mjs} +23 -23
- package/dist/cli/search-CZVM2OX5.js +32 -0
- package/dist/cli/{search-V6YPFL6J.mjs → search-VBIVRRRO.mjs} +7 -7
- package/dist/cli/{search-output-GGCIICSW.js → search-output-EVNRKEGZ.js} +6 -6
- package/dist/cli/{search-output-4VDZLO42.mjs → search-output-OCYIQFV6.mjs} +4 -4
- package/dist/cli/{secrets-L2VDRZDZ.js → secrets-52T2SCZ5.js} +15 -15
- package/dist/cli/{secrets-XUENPM5D.mjs → secrets-TNCO45WJ.mjs} +6 -6
- package/dist/cli/{sessions-W7LHEE35.mjs → sessions-4XE7AR3A.mjs} +6 -6
- package/dist/cli/sessions-GOHYDYMH.js +23 -0
- package/dist/cli/{settings-NB6Y53VR.js → settings-TKRF2B3K.js} +85 -85
- package/dist/cli/{settings-IVFOUU7V.mjs → settings-ZFCHR7MW.mjs} +12 -12
- package/dist/cli/{setup-2F42I4HW.js → setup-AWNE4VNL.js} +49 -49
- package/dist/cli/{setup-QUL7OO6A.mjs → setup-QY3ZML4C.mjs} +9 -9
- package/dist/cli/skills-54CGCMPF.js +37 -0
- package/dist/cli/{skills-SL3DNAH6.mjs → skills-GUGJDCFY.mjs} +7 -7
- package/dist/cli/tools-A7FEGDPX.js +57 -0
- package/dist/cli/{tools-TD5EJ2UD.mjs → tools-NBKPWOWD.mjs} +17 -17
- package/dist/cli/update-3J52CJHB.js +37 -0
- package/dist/cli/{update-Z53GM6PX.mjs → update-KLGVIBRY.mjs} +9 -9
- package/dist/cli/{views-VAQGFKXN.js → views-MDXEIVQ7.js} +21 -21
- package/dist/cli/{views-ZB6AOING.mjs → views-OEOW2EZO.mjs} +6 -6
- package/dist/cli/{workflow-OKDLEK3G.mjs → workflow-LK4SIUOM.mjs} +7 -7
- package/dist/cli/{workflow-PSIQ5HVP.js → workflow-PUSTWPW4.js} +17 -17
- package/dist/{client-D5mo-R-t.d.mts → client-ClJlqkKt.d.mts} +1 -1
- package/dist/{client-B8_eh5F-.d.ts → client-DCnExziW.d.ts} +1 -1
- package/dist/{client-core-Br12Asu-.d.ts → client-core-BKq5ZNAl.d.ts} +14 -2
- package/dist/{client-core-BPu-brbA.d.mts → client-core-DAOPQnGD.d.mts} +14 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -118
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-IPONFGG7.js +0 -44
- package/dist/cli/concurrent-runs-help-66WCD2Y4.js +0 -22
- package/dist/cli/describe-M3MOFAVN.js +0 -50
- package/dist/cli/git-XDS5BHBG.js +0 -26
- package/dist/cli/search-YPZ575MY.js +0 -32
- package/dist/cli/sessions-GJLSOVLW.js +0 -23
- package/dist/cli/skills-2KAEOH2N.js +0 -37
- package/dist/cli/tools-W6223Q4W.js +0 -57
- package/dist/cli/update-IZBYF422.js +0 -37
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNIO2T6OCjs = require('./chunk-NIO2T6OC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkOWEUQCBZjs = require('./chunk-OWEUQCBZ.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,18 +18,18 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunkOWEUQCBZjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkNIO2T6OCjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkOWEUQCBZjs.requireSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
29
29
|
})
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
|
-
|
|
32
|
+
_chunkOWEUQCBZjs.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
|
|
33
33
|
quietAdvisory: true
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2GTLZNSKjs = require('./chunk-2GTLZNSK.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkFABLUH75js = require('./chunk-FABLUH75.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
|
|
|
24
24
|
return plans ? `${here} Plan limits: ${plans}.` : here;
|
|
25
25
|
}
|
|
26
26
|
async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
|
|
27
|
-
const baseUrl =
|
|
28
|
-
const apiKey =
|
|
27
|
+
const baseUrl = _chunkFABLUH75js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
28
|
+
const apiKey = _chunkFABLUH75js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
29
29
|
if (!apiKey) return "";
|
|
30
30
|
try {
|
|
31
|
-
const { status, data } = await
|
|
31
|
+
const { status, data } = await _chunk2GTLZNSKjs.httpJson.call(void 0,
|
|
32
32
|
"GET",
|
|
33
33
|
`${baseUrl}/api/v2/billing/entitlements`,
|
|
34
34
|
apiKey,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
httpJson
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I5EZZFQL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
PRICING_PAGE_NOTE
|
|
6
6
|
} from "./chunk-2RIKOPIM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autoDetectBaseUrl,
|
|
9
9
|
resolveApiKeyForBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-77HEH4RY.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -1001,6 +1001,13 @@ Input:
|
|
|
1001
1001
|
names in the error.
|
|
1002
1002
|
--oauth prints an authorization URL. Open it in a browser signed into the
|
|
1003
1003
|
same Deepline org and finish provider consent.
|
|
1004
|
+
Credentials and OAuth write the selected workspace's own connection when a
|
|
1005
|
+
workspace is selected (global --workspace, DEEPLINE_WORKSPACE_ID, or the one
|
|
1006
|
+
saved with deepline org workspace set); other workspaces keep theirs. With
|
|
1007
|
+
no workspace selected they write the org default, which every workspace
|
|
1008
|
+
without its own connection uses. --org-default writes the org default even
|
|
1009
|
+
when a workspace is selected. --managed keys are org-wide, so inside a
|
|
1010
|
+
selected workspace --managed requires --org-default.
|
|
1004
1011
|
HubSpot: --preset read-crm, update-crm, marketing, sales-sequences, tickets, or all.
|
|
1005
1012
|
all requests every supported capability, including write and admin access.
|
|
1006
1013
|
For custom access use comma-separated --scopes and --optional-scopes instead
|
|
@@ -1010,9 +1017,12 @@ Input:
|
|
|
1010
1017
|
Output:
|
|
1011
1018
|
Link: dashboard URL, or {provider, connect_url} with --json. Share connect_url
|
|
1012
1019
|
with the org owner or admin who will finish setup in the browser.
|
|
1013
|
-
Credentials: confirmation without secret
|
|
1014
|
-
|
|
1015
|
-
|
|
1020
|
+
Credentials: confirmation naming the workspace written, without secret
|
|
1021
|
+
values; {provider, credential_saved, team_id} with --json (team_id null is
|
|
1022
|
+
the org default).
|
|
1023
|
+
OAuth: URL and the workspace it connects, or {provider, redirect_url,
|
|
1024
|
+
team_id} with --json. This does not confirm a completed connection. The
|
|
1025
|
+
browser must finish authorization.
|
|
1016
1026
|
--dry-run prints the proposed setup without starting OAuth, reading secret
|
|
1017
1027
|
file contents, or saving credentials.
|
|
1018
1028
|
Cost:
|
|
@@ -1020,6 +1030,8 @@ Cost:
|
|
|
1020
1030
|
Examples:
|
|
1021
1031
|
deepline integrations connect hubspot --link --json
|
|
1022
1032
|
deepline integrations connect heyreach --credentials-file ./heyreach.json
|
|
1033
|
+
deepline --workspace <workspace-id> integrations connect heyreach --credentials-file ./heyreach.json
|
|
1034
|
+
deepline integrations connect heyreach --credentials-file ./heyreach.json --org-default
|
|
1023
1035
|
deepline integrations connect hubspot --oauth --preset read-crm
|
|
1024
1036
|
deepline integrations connect lusha --managed --accept-terms 2026-05-01 --company-domain acme.com --company-legal-name "Acme Inc." --company-country US
|
|
1025
1037
|
`
|
|
@@ -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 _chunk2MXS53XJjs = require('./chunk-2MXS53XJ.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
|
+
_chunk2MXS53XJjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -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 _chunkOWEUQCBZjs = require('./chunk-OWEUQCBZ.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 = _chunkOWEUQCBZjs.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
|
windowsHide: true,
|
|
19
19
|
encoding: "utf8",
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EJB4V77N.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
resolveShellSpawn,
|
|
11
11
|
syncSdkSkillsIfNeeded
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UWQLRBXY.mjs";
|
|
13
13
|
import {
|
|
14
14
|
addJsonNotice,
|
|
15
15
|
isJsonOutputMode
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-I4N62RWB.mjs";
|
|
17
17
|
import {
|
|
18
18
|
resolveApiKeyForBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-77HEH4RY.mjs";
|
|
20
20
|
import {
|
|
21
21
|
SDK_VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HPWP2B3D.mjs";
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkCHHXUEVCjs = require('./chunk-CHHXUEVC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkYQP4ZUOJjs = require('./chunk-YQP4ZUOJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,16 +14,16 @@ var _chunk6ASDTHENjs = require('./chunk-6ASDTHEN.js');
|
|
|
14
14
|
var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkZZ7ZH27Wjs = require('./chunk-ZZ7ZH27W.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk2MXS53XJjs = require('./chunk-2MXS53XJ.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkFABLUH75js = require('./chunk-FABLUH75.js');
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
var _fs = require('fs');
|
|
@@ -32,14 +32,14 @@ var _path = require('path');
|
|
|
32
32
|
// src/cli/doc-read-reporting.ts
|
|
33
33
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
34
34
|
async function reportDocRead(docId) {
|
|
35
|
-
if (
|
|
35
|
+
if (_chunk2MXS53XJjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
36
36
|
try {
|
|
37
|
-
const baseUrl =
|
|
38
|
-
const apiKey =
|
|
37
|
+
const baseUrl = _chunkFABLUH75js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
38
|
+
const apiKey = _chunkFABLUH75js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
39
39
|
if (!apiKey) return;
|
|
40
40
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
41
41
|
method: "POST",
|
|
42
|
-
headers:
|
|
42
|
+
headers: _chunk2MXS53XJjs.failureReportHeaders.call(void 0, apiKey),
|
|
43
43
|
body: JSON.stringify({ doc_id: docId }),
|
|
44
44
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
45
45
|
});
|
|
@@ -52,16 +52,16 @@ function nothingNamed(name) {
|
|
|
52
52
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
53
53
|
}
|
|
54
54
|
function findNamed2(name, options) {
|
|
55
|
-
return _chunk6ASDTHENjs.findNamed.call(void 0, name, options, _chunk6ASDTHENjs.describeLookupsFor.call(void 0, new (0,
|
|
55
|
+
return _chunk6ASDTHENjs.findNamed.call(void 0, name, options, _chunk6ASDTHENjs.describeLookupsFor.call(void 0, new (0, _chunkZZ7ZH27Wjs.DeeplineClient)()));
|
|
56
56
|
}
|
|
57
57
|
async function describeAnything(name, options, onMissing) {
|
|
58
|
-
const client = new (0,
|
|
58
|
+
const client = new (0, _chunkZZ7ZH27Wjs.DeeplineClient)();
|
|
59
59
|
const lookups = _chunk6ASDTHENjs.describeLookupsFor.call(void 0, client);
|
|
60
60
|
const outcome = await _chunk6ASDTHENjs.describeName.call(void 0, name, options, {
|
|
61
61
|
...lookups,
|
|
62
62
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
63
63
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
64
|
-
seedStarterScript:
|
|
64
|
+
seedStarterScript: _chunkCHHXUEVCjs.seedToolListScript
|
|
65
65
|
});
|
|
66
66
|
if (outcome.status === "missing") {
|
|
67
67
|
if (onMissing) return onMissing();
|
|
@@ -90,18 +90,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
90
90
|
` : text;
|
|
91
91
|
_fs.writeFileSync.call(void 0, path, content);
|
|
92
92
|
const bytes = Buffer.byteLength(content);
|
|
93
|
-
|
|
93
|
+
_chunk2MXS53XJjs.printCommandEnvelope.call(void 0,
|
|
94
94
|
{ path, bytes },
|
|
95
95
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
96
96
|
` }
|
|
97
97
|
);
|
|
98
98
|
return 0;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunk2MXS53XJjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
101
101
|
return 0;
|
|
102
102
|
}
|
|
103
103
|
function registerDescribeCommand(program) {
|
|
104
|
-
|
|
104
|
+
_chunkYQP4ZUOJjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
105
105
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
106
106
|
).addHelpText(
|
|
107
107
|
"after",
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TWHTVGGW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
errorToJsonPayload,
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
resolveSdkCliFailureExitCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-I4N62RWB.mjs";
|
|
12
12
|
import {
|
|
13
13
|
resolveConfig,
|
|
14
14
|
sdkCliStateDirPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-77HEH4RY.mjs";
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
import { Option } from "commander";
|
|
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
}
|
|
135
135
|
const client = new DeeplineClient();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await import("./search-output-OCYIQFV6.mjs");
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
38
38
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
39
39
|
SDK_API_MAJOR
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-HPWP2B3D.mjs";
|
|
41
41
|
import {
|
|
42
42
|
CustomerDbQueryOutcomeUnknownError
|
|
43
43
|
} from "./chunk-ASB47RXJ.mjs";
|
|
@@ -6005,12 +6005,17 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6005
6005
|
const params = new URLSearchParams({ provider });
|
|
6006
6006
|
return this.http.get(`/api/v2/integrations/connect?${params}`);
|
|
6007
6007
|
}
|
|
6008
|
-
/**
|
|
6008
|
+
/**
|
|
6009
|
+
* Save provider-owned credential fields without starting an OAuth browser flow.
|
|
6010
|
+
* `teamId` names a workspace whose own connection this saves; absent or null
|
|
6011
|
+
* saves the org default every workspace without its own connection uses.
|
|
6012
|
+
*/
|
|
6009
6013
|
async setIntegrationCredentials(provider, credentials, options) {
|
|
6010
6014
|
return this.http.post("/api/v2/integrations/connect", {
|
|
6011
6015
|
provider,
|
|
6012
6016
|
credentials,
|
|
6013
|
-
...options?.expectedConnectionId ? { expected_connection_id: options.expectedConnectionId } : {}
|
|
6017
|
+
...options?.expectedConnectionId ? { expected_connection_id: options.expectedConnectionId } : {},
|
|
6018
|
+
...options?.teamId ? { team_id: options.teamId } : {}
|
|
6014
6019
|
});
|
|
6015
6020
|
}
|
|
6016
6021
|
/**
|
|
@@ -6039,7 +6044,11 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6039
6044
|
`/api/v2/integrations/calendar-availability/calendars?${params}`
|
|
6040
6045
|
);
|
|
6041
6046
|
}
|
|
6042
|
-
/**
|
|
6047
|
+
/**
|
|
6048
|
+
* Start provider OAuth and return the URL to open in a browser. `teamId`
|
|
6049
|
+
* names a workspace whose own connection the grant saves; absent or null
|
|
6050
|
+
* connects the org default.
|
|
6051
|
+
*/
|
|
6043
6052
|
async startIntegrationOAuth(provider, options = {}) {
|
|
6044
6053
|
const scopes = options.scopes?.map((scope) => scope.trim()).filter(Boolean);
|
|
6045
6054
|
if (scopes !== void 0 && scopes.length === 0) {
|
|
@@ -6049,7 +6058,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6049
6058
|
provider,
|
|
6050
6059
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
6051
6060
|
...scopes !== void 0 ? { scopes } : {},
|
|
6052
|
-
...options.optionalScopes !== void 0 ? { optional_scopes: options.optionalScopes } : {}
|
|
6061
|
+
...options.optionalScopes !== void 0 ? { optional_scopes: options.optionalScopes } : {},
|
|
6062
|
+
...options.teamId ? { team_id: options.teamId } : {}
|
|
6053
6063
|
});
|
|
6054
6064
|
}
|
|
6055
6065
|
/** Start the Slack OAuth flow required by product notifications. */
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZZ7ZH27Wjs = require('./chunk-ZZ7ZH27W.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk2MXS53XJjs = require('./chunk-2MXS53XJ.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkFABLUH75js = require('./chunk-FABLUH75.js');
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
var _commander = require('commander');
|
|
@@ -22,7 +22,7 @@ var _fs = require('fs');
|
|
|
22
22
|
var _path = require('path');
|
|
23
23
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
24
24
|
function lastSearchPath() {
|
|
25
|
-
return _path.join.call(void 0,
|
|
25
|
+
return _path.join.call(void 0, _chunkFABLUH75js.sdkCliStateDirPath.call(void 0, _chunkFABLUH75js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
26
26
|
}
|
|
27
27
|
function rememberSearchRef(searchRef) {
|
|
28
28
|
writeSearchRefs({ searchRef });
|
|
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
132
132
|
console.error("--summary-width must be an integer of at least 2.");
|
|
133
133
|
return 1;
|
|
134
134
|
}
|
|
135
|
-
const client = new (0,
|
|
135
|
+
const client = new (0, _chunkZZ7ZH27Wjs.DeeplineClient)();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-EVNRKEGZ.js")));
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
157
157
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
158
158
|
if (!multiple) {
|
|
159
159
|
if (searchRef) rememberSearchRef(searchRef);
|
|
160
|
-
|
|
160
|
+
_chunk2MXS53XJjs.printCommandEnvelope.call(void 0, result, { json, text });
|
|
161
161
|
return 0;
|
|
162
162
|
}
|
|
163
163
|
searches.push({ ...result, query });
|
|
@@ -171,8 +171,8 @@ ${text}`);
|
|
|
171
171
|
}
|
|
172
172
|
} catch (error) {
|
|
173
173
|
if (!multiple) throw error;
|
|
174
|
-
const payload =
|
|
175
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
174
|
+
const payload = _chunk2MXS53XJjs.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunk2MXS53XJjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
176
176
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
177
177
|
if (!json) {
|
|
178
178
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -184,7 +184,7 @@ Search failed.
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
rememberSearchRefsByTool(refs);
|
|
187
|
-
|
|
187
|
+
_chunk2MXS53XJjs.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2MXS53XJjs = require('./chunk-2MXS53XJ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFABLUH75js = require('./chunk-FABLUH75.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 } = _chunk2MXS53XJjs.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
|
+
_chunk2MXS53XJjs.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 } = _chunk2MXS53XJjs.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
|
+
_chunk2MXS53XJjs.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 } = _chunk2MXS53XJjs.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
|
+
_chunk2MXS53XJjs.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 } = _chunk2MXS53XJjs.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 } = _chunk2MXS53XJjs.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
|
+
_chunk2MXS53XJjs.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 } = _chunk2MXS53XJjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunk2MXS53XJjs.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 } = _chunk2MXS53XJjs.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
|
+
_chunk2MXS53XJjs.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 } = _chunk2MXS53XJjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunk2MXS53XJjs.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 = _chunkFABLUH75js.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunk2MXS53XJjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunk2MXS53XJjs.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 } = _chunk2MXS53XJjs.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
|
+
_chunk2MXS53XJjs.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 } = _chunk2MXS53XJjs.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
|
+
_chunk2MXS53XJjs.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 } = _chunk2MXS53XJjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunk2MXS53XJjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|