deepline 0.3.543 → 0.3.545
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 +11 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +3 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +5 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +142 -3
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +13 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +1 -1
- package/dist/cli/auth-455MB4K6.js +43 -0
- package/dist/cli/{auth-ITAELTOA.mjs → auth-VZAMAMFW.mjs} +5 -5
- package/dist/cli/{billing-33XVFDUJ.js → billing-ASZJDFH2.js} +92 -92
- package/dist/cli/{billing-WZ7RVZW4.mjs → billing-DADQUQEZ.mjs} +8 -8
- package/dist/cli/{chunk-NR3O56FT.mjs → chunk-2CBX43LP.mjs} +5 -5
- package/dist/cli/{chunk-F6VSQ5LN.js → chunk-2FF3O2Y2.js} +12 -12
- package/dist/cli/{chunk-52YK3EII.mjs → chunk-2HFSYH7V.mjs} +2 -2
- package/dist/cli/{chunk-EHUG6EUT.js → chunk-34UKDHRL.js} +26 -26
- package/dist/cli/{chunk-JXG7HWBA.mjs → chunk-3M2QH3KA.mjs} +1 -1
- package/dist/cli/{chunk-2NCJQEZH.js → chunk-3NG43NXB.js} +53 -53
- package/dist/cli/{chunk-4SKDSSPU.mjs → chunk-3TCHX7YK.mjs} +2 -2
- package/dist/cli/{chunk-5VIPTLRX.mjs → chunk-4NZ3OZNO.mjs} +1 -1
- package/dist/cli/{chunk-ZRT2PNYY.mjs → chunk-52C6W7FG.mjs} +1 -1
- package/dist/cli/{chunk-STXG2LFC.js → chunk-5YYWZ43J.js} +2 -2
- package/dist/cli/{chunk-274WKLSY.mjs → chunk-7JZ27AFH.mjs} +2 -2
- package/dist/cli/{chunk-R57UCXQG.mjs → chunk-7MFATEUC.mjs} +1 -1
- package/dist/cli/{chunk-MCBUWK5K.js → chunk-7MHBJU73.js} +22 -22
- package/dist/cli/{chunk-XFPVFWZR.mjs → chunk-7P72EGLK.mjs} +1 -1
- package/dist/cli/{chunk-TBCNL2T5.js → chunk-C6XYSTBW.js} +1 -1
- package/dist/cli/{chunk-QFRMVI4S.js → chunk-CJ7DBYEQ.js} +3 -3
- package/dist/cli/{chunk-YE3T73BV.js → chunk-CXETRZ3G.js} +10 -10
- package/dist/cli/{chunk-BGAUADV4.js → chunk-D3SXB2NX.js} +41 -41
- package/dist/cli/{chunk-UJ6GOV7K.js → chunk-DGKDCZGC.js} +13 -13
- package/dist/cli/{chunk-46BEBZ3M.js → chunk-DZTVDL2X.js} +29 -28
- package/dist/cli/{chunk-2KTGZKRE.js → chunk-EK5C2R7S.js} +15 -15
- package/dist/cli/{chunk-YJYKZ2U3.js → chunk-ERLW6RPA.js} +2 -2
- package/dist/cli/{chunk-VSJEOSYL.mjs → chunk-EWA3M54M.mjs} +1 -1
- package/dist/cli/{chunk-2LNTKICO.js → chunk-FB7UPZ6M.js} +3 -3
- package/dist/cli/{chunk-PX7XAVUC.js → chunk-G5TV6WLV.js} +19 -19
- package/dist/cli/{chunk-NHKP2NSU.js → chunk-GFRJU2KB.js} +2 -2
- package/dist/cli/{chunk-D6YAU3CF.mjs → chunk-GWDPNOA7.mjs} +2 -1
- package/dist/cli/{chunk-ZSPBJB7I.mjs → chunk-HLUNTJBO.mjs} +4 -4
- package/dist/cli/{chunk-OELJKQOL.mjs → chunk-HPX7LLAM.mjs} +2 -2
- package/dist/cli/{chunk-DI3GL3T6.js → chunk-HR5BT42R.js} +99 -99
- package/dist/cli/{chunk-3JZXU5OB.js → chunk-IYJO3RWR.js} +5 -5
- package/dist/cli/{chunk-DH43ECTN.mjs → chunk-JL5JU3LD.mjs} +2 -2
- package/dist/cli/{chunk-OAFKUHN5.mjs → chunk-KRW727W6.mjs} +4 -4
- package/dist/cli/{chunk-SYOPHFKB.mjs → chunk-KYO2FICL.mjs} +5 -5
- package/dist/cli/{chunk-FNW2SGPD.mjs → chunk-LTCEZWPZ.mjs} +2 -2
- package/dist/cli/{chunk-XBM3KABD.mjs → chunk-LWPFMYSO.mjs} +2 -2
- package/dist/cli/{chunk-NLENABRU.js → chunk-N4LADLCO.js} +6 -6
- package/dist/cli/{chunk-XSN6BAZT.mjs → chunk-NAN3A4IF.mjs} +5 -5
- package/dist/cli/{chunk-23D224GI.js → chunk-NCX2JH2F.js} +9 -9
- package/dist/cli/{chunk-DUGTPVT7.js → chunk-NZDZGK35.js} +7 -7
- package/dist/cli/{chunk-C35NLLSA.js → chunk-OGQYAJSO.js} +5 -5
- package/dist/cli/{chunk-J2F6F5GL.js → chunk-QI57XUGA.js} +5 -5
- package/dist/cli/{chunk-O2KLWUNI.js → chunk-QM7PHHYZ.js} +44 -44
- package/dist/cli/{chunk-5MN3BKNB.js → chunk-TQKHXMV3.js} +16 -16
- package/dist/cli/{chunk-SU4K4SUU.mjs → chunk-WP36UBRY.mjs} +1 -1
- package/dist/cli/{chunk-AACKPOGA.mjs → chunk-XBYQZEUE.mjs} +1 -1
- package/dist/cli/{chunk-7AUQTNLB.mjs → chunk-XGEUPU3L.mjs} +2 -2
- package/dist/cli/{chunk-HKJ26NRN.mjs → chunk-XMUPZINS.mjs} +5 -5
- package/dist/cli/{chunk-GRCFX2EG.js → chunk-YRQKRQDU.js} +4 -4
- package/dist/cli/{chunk-6SJZMMD5.mjs → chunk-YWTRCKGD.mjs} +11 -11
- package/dist/cli/{chunk-SZNJENGT.mjs → chunk-Z4Y4BLW7.mjs} +3 -3
- package/dist/cli/{chunk-W2OPPSAZ.mjs → chunk-Z7QM244Q.mjs} +3 -3
- package/dist/cli/concurrent-runs-help-GFWXOKF5.js +21 -0
- package/dist/cli/{concurrent-runs-help-Z6ODNL4E.mjs → concurrent-runs-help-YP7ALTDB.mjs} +6 -6
- package/dist/cli/{csv-SSOFTXHU.js → csv-67WT5EGR.js} +13 -13
- package/dist/cli/{csv-5QW2HPHT.mjs → csv-D5ITFSYI.mjs} +4 -4
- package/dist/cli/{db-4LK5AJNO.js → db-GZS76X7R.js} +27 -27
- package/dist/cli/{db-K2JMR6EM.mjs → db-SZYBRFYG.mjs} +6 -6
- package/dist/cli/{describe-AXHQZHTT.mjs → describe-YJ7ZLLLI.mjs} +18 -18
- package/dist/cli/describe-ZRGYAEBT.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-FY2XTX2W.mjs → executions-HMYGR32E.mjs} +6 -6
- package/dist/cli/{executions-AATJQQAQ.js → executions-O5USTYGL.js} +8 -8
- package/dist/cli/{feedback-QPVJER75.js → feedback-RHLFDCRS.js} +14 -14
- package/dist/cli/{feedback-MKBPRGS6.mjs → feedback-Z3NXWYUO.mjs} +6 -6
- package/dist/cli/{git-AGRFZR3K.mjs → git-CLFKXELB.mjs} +5 -5
- package/dist/cli/git-RC4XDATD.js +25 -0
- package/dist/cli/index.js +142 -142
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{integrations-OUQ6U33M.mjs → integrations-FOACOBQB.mjs} +7 -7
- package/dist/cli/{integrations-R6OUFZXI.js → integrations-TZ4QEQGV.js} +15 -15
- package/dist/cli/{legacy-noops-DVL2RRKL.mjs → legacy-noops-6F6Y3BV7.mjs} +6 -6
- package/dist/cli/{legacy-noops-H7INM2QN.js → legacy-noops-QRDOS33V.js} +9 -9
- package/dist/cli/{mcp-33F7D7WI.js → mcp-ETMMDDGB.js} +24 -24
- package/dist/cli/{mcp-2Z2YVOLK.mjs → mcp-UXRCWOZU.mjs} +4 -4
- package/dist/cli/{monitors-NZD2WIKK.mjs → monitors-6XEWR46R.mjs} +86 -13
- package/dist/cli/{monitors-KDUJHAKJ.js → monitors-DITT7QTV.js} +179 -106
- package/dist/cli/{org-4PQGHLEB.js → org-4DE37X3L.js} +88 -88
- package/dist/cli/{org-EJW45RUA.mjs → org-CVSSH73G.mjs} +6 -6
- package/dist/cli/{play-MLHMQL4G.js → play-RH6P45CI.js} +317 -317
- package/dist/cli/{play-3CM5RT5J.mjs → play-Y5NCHOKK.mjs} +17 -17
- package/dist/cli/{providers-YBJG7277.js → providers-DU42DLOL.js} +9 -9
- package/dist/cli/{providers-BHYBJI4R.mjs → providers-VHUHC4IZ.mjs} +6 -6
- package/dist/cli/{quickstart-LL3MR562.mjs → quickstart-HJY5YYE5.mjs} +4 -4
- package/dist/cli/{quickstart-O7L2NNGJ.js → quickstart-XJ43JLEC.js} +6 -6
- package/dist/cli/{run-OK545H5Q.mjs → run-JAIXHVH7.mjs} +23 -23
- package/dist/cli/{run-HJ2AR6CM.js → run-JXUS7QFI.js} +43 -43
- package/dist/cli/search-O5VVMXII.js +32 -0
- package/dist/cli/{search-Z5ZKMRTX.mjs → search-RDMNM2AX.mjs} +7 -7
- package/dist/cli/{search-output-SVW4DETG.js → search-output-RKAM2HBH.js} +6 -6
- package/dist/cli/{search-output-Q5VHNUWG.mjs → search-output-ZKTR3WTJ.mjs} +4 -4
- package/dist/cli/{secrets-ENQWMCB5.js → secrets-TKFVMAYX.js} +15 -15
- package/dist/cli/{secrets-QIKIEFWB.mjs → secrets-WSW3FTF6.mjs} +6 -6
- package/dist/cli/sessions-3PWFWCHO.js +22 -0
- package/dist/cli/{sessions-AETO22RF.mjs → sessions-724BK6VP.mjs} +6 -6
- package/dist/cli/{settings-OFLIFTMZ.js → settings-5LJZDAZU.js} +85 -85
- package/dist/cli/{settings-G5RGRPFV.mjs → settings-YRC7J75G.mjs} +12 -12
- package/dist/cli/{setup-QW7Y62XD.js → setup-2F3DBSOS.js} +49 -49
- package/dist/cli/{setup-G4N3X6KG.mjs → setup-STNPX5MK.mjs} +9 -9
- package/dist/cli/{skills-QRFQGHNA.mjs → skills-D5PK56FO.mjs} +7 -7
- package/dist/cli/skills-RFOMVXIT.js +36 -0
- package/dist/cli/tools-CAO6EVUW.js +57 -0
- package/dist/cli/{tools-52BH7UTF.mjs → tools-WOGWMBA3.mjs} +17 -17
- package/dist/cli/update-L4DQZY3G.js +34 -0
- package/dist/cli/{update-SDGZLAGL.mjs → update-PC6XSWMI.mjs} +9 -9
- package/dist/cli/{views-5QKAWYPI.js → views-HLCLAPWN.js} +21 -21
- package/dist/cli/{views-3BIJFJMQ.mjs → views-IIHT4RYQ.mjs} +6 -6
- package/dist/cli/{workflow-G67RPWVY.js → workflow-CCZ2A7DI.js} +17 -17
- package/dist/cli/{workflow-QAK773FR.mjs → workflow-HK4MZ7LK.mjs} +7 -7
- package/dist/{client-D1ga52xq.d.ts → client-BQ6yuSjM.d.ts} +1 -1
- package/dist/{client-bd4QQIXo.d.mts → client-DfdUc_MY.d.mts} +1 -1
- package/dist/{client-core-B6eMVx8h.d.ts → client-core-3GQ8WMuk.d.ts} +14 -0
- package/dist/{client-core-CqfWNf2Q.d.mts → client-core-ClsNRytk.d.mts} +14 -0
- 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 +114 -114
- 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-S6B5WUU5.js +0 -43
- package/dist/cli/concurrent-runs-help-E4OYD3DS.js +0 -21
- package/dist/cli/describe-AC6PLEFP.js +0 -50
- package/dist/cli/git-RUYFQEJX.js +0 -25
- package/dist/cli/search-UUNS6BCC.js +0 -32
- package/dist/cli/sessions-FNSUDERA.js +0 -22
- package/dist/cli/skills-3IXIY2IV.js +0 -36
- package/dist/cli/tools-MYBUMPKH.js +0 -57
- package/dist/cli/update-GT7574UU.js +0 -34
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
concurrentRunsLine
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-LWPFMYSO.mjs";
|
|
4
|
+
import "./chunk-Z7QM244Q.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DeeplineClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3TCHX7YK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
iterateCursorPages,
|
|
10
10
|
requireBillingIdempotencyKey
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GWDPNOA7.mjs";
|
|
12
12
|
import "./chunk-HXIR3VQL.mjs";
|
|
13
13
|
import "./chunk-LX35AXTN.mjs";
|
|
14
14
|
import "./chunk-PSX3WHIH.mjs";
|
|
@@ -29,9 +29,9 @@ import {
|
|
|
29
29
|
openInBrowser,
|
|
30
30
|
printCommandEnvelope,
|
|
31
31
|
shouldEmitJson
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-JL5JU3LD.mjs";
|
|
33
|
+
import "./chunk-7MFATEUC.mjs";
|
|
34
|
+
import "./chunk-3M2QH3KA.mjs";
|
|
35
35
|
import {
|
|
36
36
|
AuthError,
|
|
37
37
|
ConfigError
|
|
@@ -40,7 +40,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
40
40
|
import {
|
|
41
41
|
DeeplineError
|
|
42
42
|
} from "./chunk-JL2OTMSG.mjs";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-52C6W7FG.mjs";
|
|
44
44
|
import "./chunk-WZYKRD7T.mjs";
|
|
45
45
|
import "./chunk-KRD6H754.mjs";
|
|
46
46
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EWA3M54M.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JL5JU3LD.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
sdkCliStateDirPath,
|
|
15
15
|
skillsAgentPathSegment,
|
|
16
16
|
writeSdkSkillsLocalVersion
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7MFATEUC.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_API_CONTRACT,
|
|
20
20
|
SDK_API_MAJOR,
|
|
21
21
|
SDK_VERSION,
|
|
22
22
|
deploymentProtectionHeaders,
|
|
23
23
|
detectAgentRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3M2QH3KA.mjs";
|
|
25
25
|
import {
|
|
26
26
|
SDK_RELEASE
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-52C6W7FG.mjs";
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
import { randomUUID } from "crypto";
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunkIYJO3RWRjs = require('./chunk-IYJO3RWR.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
var _commander = require('commander');
|
|
10
10
|
var _fs = require('fs');
|
|
11
11
|
var _path = require('path');
|
|
12
12
|
function printIntegrationResult(value, json, lines, nextCursor) {
|
|
13
|
-
|
|
13
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
|
|
14
14
|
{},
|
|
15
15
|
{
|
|
16
16
|
json: json || void 0,
|
|
@@ -26,7 +26,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
|
|
|
26
26
|
return parent.command("balance <provider>", { hidden }).description(
|
|
27
27
|
"Read a fresh balance using this workspace\u2019s own provider connection (LeadMagic)."
|
|
28
28
|
).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
|
|
29
|
-
const balance = await new (0,
|
|
29
|
+
const balance = await new (0, _chunkIYJO3RWRjs.DeeplineClient)().getIntegrationBalance(
|
|
30
30
|
provider
|
|
31
31
|
);
|
|
32
32
|
printIntegrationResult(balance, options.json, [
|
|
@@ -42,7 +42,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
42
42
|
"List teammates\u2019 personal connections for this provider"
|
|
43
43
|
).option("--cursor <cursor>", "Read the next page of members").action(
|
|
44
44
|
async (options) => {
|
|
45
|
-
const client = new (0,
|
|
45
|
+
const client = new (0, _chunkIYJO3RWRjs.DeeplineClient)();
|
|
46
46
|
if (name === "list" && options.cursor && !options.members)
|
|
47
47
|
throw new Error(
|
|
48
48
|
"Use --cursor with --members to continue a member page."
|
|
@@ -86,7 +86,7 @@ function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
|
|
|
86
86
|
return parent.command("hubspot-members", { hidden }).description(
|
|
87
87
|
"List personal HubSpot connection status for workspace members."
|
|
88
88
|
).option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
|
|
89
|
-
const page = await new (0,
|
|
89
|
+
const page = await new (0, _chunkIYJO3RWRjs.DeeplineClient)().listPersonalHubSpotMembers(
|
|
90
90
|
options.cursor
|
|
91
91
|
);
|
|
92
92
|
const rows = page.members.map((member) => {
|
|
@@ -112,7 +112,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
|
|
|
112
112
|
);
|
|
113
113
|
if (options.autoName && (action !== "connect" || options.name !== void 0))
|
|
114
114
|
throw new Error("Use --auto-name with connect and omit --name.");
|
|
115
|
-
const client = new (0,
|
|
115
|
+
const client = new (0, _chunkIYJO3RWRjs.DeeplineClient)();
|
|
116
116
|
const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
|
|
117
117
|
const row = connections.find(
|
|
118
118
|
(connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
|
|
@@ -145,7 +145,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
145
145
|
"Print the proposed change without contacting Google or saving it"
|
|
146
146
|
).option("--json", "Print the result as JSON").action(
|
|
147
147
|
async (action, options) => {
|
|
148
|
-
const client = new (0,
|
|
148
|
+
const client = new (0, _chunkIYJO3RWRjs.DeeplineClient)();
|
|
149
149
|
if (action === "list") {
|
|
150
150
|
const inventory = await client.listCalendarAvailabilityConnections();
|
|
151
151
|
const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
|
|
@@ -295,7 +295,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
295
295
|
}
|
|
296
296
|
function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
|
|
297
297
|
return parent.command("availability-calendars", { hidden }).description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
|
|
298
|
-
const page = await new (0,
|
|
298
|
+
const page = await new (0, _chunkIYJO3RWRjs.DeeplineClient)().listAvailabilityCalendars(
|
|
299
299
|
options.cursor
|
|
300
300
|
);
|
|
301
301
|
printIntegrationResult(page, options.json, [
|
|
@@ -339,7 +339,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
339
339
|
printSetupPlan({ provider, action: "connect_link" }, options.json);
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
|
-
const link = await new (0,
|
|
342
|
+
const link = await new (0, _chunkIYJO3RWRjs.DeeplineClient)().getIntegrationConnectLink(
|
|
343
343
|
provider
|
|
344
344
|
);
|
|
345
345
|
printIntegrationResult(link, options.json, [link.connect_url]);
|
|
@@ -366,7 +366,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
366
366
|
);
|
|
367
367
|
return;
|
|
368
368
|
}
|
|
369
|
-
const result2 = await new (0,
|
|
369
|
+
const result2 = await new (0, _chunkIYJO3RWRjs.DeeplineClient)().startIntegrationOAuth(
|
|
370
370
|
provider,
|
|
371
371
|
{
|
|
372
372
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
@@ -416,7 +416,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
416
416
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
417
417
|
);
|
|
418
418
|
}
|
|
419
|
-
const result = await new (0,
|
|
419
|
+
const result = await new (0, _chunkIYJO3RWRjs.DeeplineClient)().setIntegrationCredentials(
|
|
420
420
|
provider,
|
|
421
421
|
credentials,
|
|
422
422
|
{ expectedConnectionId: options.expectedConnectionId }
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4NZ3OZNO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2CBX43LP.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkCJ7DBYEQjs = require('./chunk-CJ7DBYEQ.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 } = _chunkG5TV6WLVjs.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
|
+
_chunkG5TV6WLVjs.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 } = _chunkG5TV6WLVjs.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
|
+
_chunkG5TV6WLVjs.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 } = _chunkG5TV6WLVjs.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
|
+
_chunkG5TV6WLVjs.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 } = _chunkG5TV6WLVjs.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 } = _chunkG5TV6WLVjs.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
|
+
_chunkG5TV6WLVjs.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 } = _chunkG5TV6WLVjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkG5TV6WLVjs.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 } = _chunkG5TV6WLVjs.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
|
+
_chunkG5TV6WLVjs.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 } = _chunkG5TV6WLVjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkG5TV6WLVjs.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 = _chunkCJ7DBYEQjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkG5TV6WLVjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkG5TV6WLVjs.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 } = _chunkG5TV6WLVjs.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
|
+
_chunkG5TV6WLVjs.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 } = _chunkG5TV6WLVjs.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
|
+
_chunkG5TV6WLVjs.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 } = _chunkG5TV6WLVjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|