deepline 0.3.554 → 0.3.556
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/sdk/src/types.ts +8 -2
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -0
- package/dist/cli/auth-HA7TI6SA.js +44 -0
- package/dist/cli/{auth-HJUNW7T2.mjs → auth-MT7DWCZO.mjs} +5 -5
- package/dist/cli/{billing-4TSA5HEC.js → billing-3HHUTNME.js} +102 -102
- package/dist/cli/{billing-SJYRJAQ2.mjs → billing-4NOM52PO.mjs} +9 -9
- package/dist/cli/{chunk-VV4XGZ24.js → chunk-2NZQ432X.js} +13 -13
- package/dist/cli/{chunk-6EXOAT6T.mjs → chunk-2ZS5PZB6.mjs} +2 -2
- package/dist/cli/{chunk-M7STM3MZ.js → chunk-3R6RBAQW.js} +26 -26
- package/dist/cli/{chunk-TJ6HLN56.js → chunk-4HSPHSUB.js} +5 -5
- package/dist/cli/{chunk-GRZENGNE.js → chunk-4U5HIMZY.js} +2 -2
- package/dist/cli/{chunk-TOO3YM5N.js → chunk-7ERE37SK.js} +6 -6
- package/dist/cli/{chunk-5CYZHOKI.js → chunk-7MD36QLK.js} +4 -4
- package/dist/cli/{chunk-BOZAP2EM.mjs → chunk-ASMHON7N.mjs} +5 -5
- package/dist/cli/{chunk-VQ75KX7G.mjs → chunk-ASOLVHDL.mjs} +2 -2
- package/dist/cli/{chunk-2ORPFQUA.mjs → chunk-B4RWCBU5.mjs} +3 -3
- package/dist/cli/{chunk-33WRQSQ2.mjs → chunk-BTKVXI3G.mjs} +3 -2
- package/dist/cli/{chunk-B6HO2XWH.mjs → chunk-C2XLKCRH.mjs} +5 -5
- package/dist/cli/{chunk-3Z4VFCXO.mjs → chunk-C4GWTN3J.mjs} +5 -5
- package/dist/cli/{chunk-2OVHNHCF.js → chunk-CJF7AFBD.js} +2 -2
- package/dist/cli/{chunk-2HMN5H54.js → chunk-CZ2RJTAQ.js} +48 -48
- package/dist/cli/{chunk-UBBYHB2B.mjs → chunk-DAQQL743.mjs} +2 -2
- package/dist/cli/{chunk-UNNOZKRT.js → chunk-DAS66RGZ.js} +1 -1
- package/dist/cli/{chunk-GHT2NDL7.js → chunk-F5CE3JZQ.js} +9 -9
- package/dist/cli/{chunk-OVEYWO4H.js → chunk-FFXLMJ5O.js} +8 -8
- package/dist/cli/{chunk-RBBTCYQB.mjs → chunk-FQYEHUVR.mjs} +3 -3
- package/dist/cli/{chunk-OPTV7D2V.js → chunk-G6BX5VJN.js} +100 -100
- package/dist/cli/{chunk-E74KGKFZ.js → chunk-GY4S6A72.js} +5 -5
- package/dist/cli/{chunk-RTHMGSZX.js → chunk-GZFYLAXJ.js} +15 -15
- package/dist/cli/{chunk-62HWJXST.mjs → chunk-HJO3MZ4M.mjs} +2 -2
- package/dist/cli/{chunk-YY55NYAH.mjs → chunk-IFHMGEDN.mjs} +11 -11
- package/dist/cli/{chunk-KZHBDMGF.mjs → chunk-JRYF5W3A.mjs} +2 -2
- package/dist/cli/{chunk-FBAFX43W.js → chunk-K4IPTGU5.js} +10 -10
- package/dist/cli/{chunk-XD3MFTHA.mjs → chunk-KA77KT46.mjs} +1 -1
- package/dist/cli/{chunk-UYCZFQYQ.js → chunk-KN3NETDA.js} +10 -8
- package/dist/cli/{chunk-UC4BDZKI.mjs → chunk-KNOS6H4E.mjs} +2 -2
- package/dist/cli/{chunk-ECHKAC7M.js → chunk-KONNXKKX.js} +2 -2
- package/dist/cli/{chunk-7OWI736E.js → chunk-KUDSTDSL.js} +23 -23
- package/dist/cli/{chunk-DSKSFFK2.mjs → chunk-L57JAXHI.mjs} +1 -1
- package/dist/cli/{chunk-W6CZDTIR.js → chunk-LU3OLGF3.js} +53 -53
- package/dist/cli/{chunk-S6W6SJ6E.mjs → chunk-LW2FKVCQ.mjs} +1 -1
- package/dist/cli/{chunk-FXQ3JKE3.mjs → chunk-MUIJGT2B.mjs} +1 -1
- package/dist/cli/{chunk-DUBXUAAO.js → chunk-N6LM2Q6V.js} +5 -5
- package/dist/cli/{chunk-VIUUTEHY.js → chunk-NGB2VSGB.js} +3 -3
- package/dist/cli/{chunk-XU6QNM4D.mjs → chunk-O7QRNMSW.mjs} +1 -1
- package/dist/cli/{chunk-62AUAWQV.mjs → chunk-P6ZIR4QD.mjs} +4 -4
- package/dist/cli/{chunk-YQKCH4R7.js → chunk-PWQ3IUD4.js} +20 -20
- package/dist/cli/{chunk-F7CMRKSK.mjs → chunk-QGQPVPJN.mjs} +1 -1
- package/dist/cli/{chunk-4DOFGIEJ.js → chunk-QVNX6AC3.js} +12 -12
- package/dist/cli/{chunk-WL7P32PI.js → chunk-SWVGAIJD.js} +20 -20
- package/dist/cli/{chunk-YCOGPOUX.mjs → chunk-UERLY7PX.mjs} +2 -2
- package/dist/cli/{chunk-PQQMPUCZ.js → chunk-UO7NPJEK.js} +3 -3
- package/dist/cli/{chunk-VLO5NFH2.mjs → chunk-UYPXQFJ4.mjs} +1 -1
- package/dist/cli/{chunk-Q7ACILL2.mjs → chunk-VCYPHVUE.mjs} +2 -2
- package/dist/cli/{chunk-GA2M3G3Y.mjs → chunk-VQZQCPCA.mjs} +4 -4
- package/dist/cli/{chunk-D6Z6POKE.mjs → chunk-W5JM2QCI.mjs} +5 -5
- package/dist/cli/{chunk-UOT7HPBH.js → chunk-YGW2CSB7.js} +41 -41
- package/dist/cli/{chunk-IVZKMJUK.js → chunk-YI4ADWTN.js} +3 -2
- package/dist/cli/{chunk-KVBQY4ST.mjs → chunk-YO2FDGAN.mjs} +4 -2
- package/dist/cli/{chunk-52Q5KETX.mjs → chunk-ZGOTBBY3.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-O3Q5IPLF.mjs → concurrent-runs-help-AFJDK2SY.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-ZHOCLINF.js +22 -0
- package/dist/cli/{csv-Y3BFPEM6.mjs → csv-CATF6MZU.mjs} +4 -4
- package/dist/cli/{csv-4ZQ2RATI.js → csv-NTNQLQXG.js} +13 -13
- package/dist/cli/{db-VEIFS4M7.js → db-IKFKNLW5.js} +27 -27
- package/dist/cli/{db-3JYY4JNN.mjs → db-U3FK4FFM.mjs} +6 -6
- package/dist/cli/{describe-EVJ4MFVU.mjs → describe-F7OQQ7IO.mjs} +18 -18
- package/dist/cli/describe-ZHNZ4H6S.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-HPZXOOVX.js → executions-3TA5SATU.js} +8 -8
- package/dist/cli/{executions-PCXZKEHM.mjs → executions-6KUA7RPH.mjs} +6 -6
- package/dist/cli/{feedback-ZKFHFVL6.js → feedback-GX7RVC4O.js} +14 -14
- package/dist/cli/{feedback-Y6VKZNY6.mjs → feedback-U5I6UTJG.mjs} +6 -6
- package/dist/cli/git-6DK7N4V7.js +26 -0
- package/dist/cli/{git-UMPR2QYC.mjs → git-DYNKPPNT.mjs} +5 -5
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-V3TM6XAB.mjs → integrations-7FATBEB5.mjs} +7 -7
- package/dist/cli/{integrations-3GQCTRTF.js → integrations-PQX2FRPT.js} +15 -15
- package/dist/cli/{legacy-noops-VYCO7NGW.js → legacy-noops-JNXQWYUR.js} +9 -9
- package/dist/cli/{legacy-noops-JZBUD7ZE.mjs → legacy-noops-ODATBQUL.mjs} +6 -6
- package/dist/cli/{mcp-4OIWTCE6.js → mcp-RXBXC4HW.js} +24 -24
- package/dist/cli/{mcp-PH4KZ76P.mjs → mcp-UDNG33WQ.mjs} +4 -4
- package/dist/cli/{monitors-SSMGIDGX.mjs → monitors-L56QYFRW.mjs} +7 -7
- package/dist/cli/{monitors-E2A6VPBY.js → monitors-NDAGIRO4.js} +100 -100
- package/dist/cli/{org-SFDKSK5D.mjs → org-EA5DL5I7.mjs} +6 -6
- package/dist/cli/{org-WUDZGWBT.js → org-Q47O5ZTI.js} +121 -121
- package/dist/cli/{outcomes-Y7SZTLSL.js → outcomes-27ENBTWE.js} +14 -14
- package/dist/cli/{outcomes-QT7LQBPK.mjs → outcomes-773GPYXN.mjs} +6 -6
- package/dist/cli/{play-GDNHCRRR.js → play-BOZIT25U.js} +339 -327
- package/dist/cli/{play-EK7KSFPL.mjs → play-O6RGVBT7.mjs} +34 -22
- package/dist/cli/{providers-FVZLRXAU.mjs → providers-OOKYSLMJ.mjs} +6 -6
- package/dist/cli/{providers-ZKOSECLV.js → providers-S2E5IGFO.js} +9 -9
- package/dist/cli/{quickstart-UJZ6PIQV.mjs → quickstart-7GVZ7YCQ.mjs} +4 -4
- package/dist/cli/{quickstart-KSDKIXYD.js → quickstart-YXKRRK43.js} +6 -6
- package/dist/cli/{run-E7MZ7P35.mjs → run-3QGOVUHF.mjs} +27 -33
- package/dist/cli/{run-PD2BBG6S.js → run-7DXBARRO.js} +48 -54
- package/dist/cli/search-4DZYX3FR.js +32 -0
- package/dist/cli/{search-VTFUFTOY.mjs → search-5UIB4QSG.mjs} +7 -7
- package/dist/cli/{search-output-G2AGDCOY.js → search-output-C7ZPRC2B.js} +6 -6
- package/dist/cli/{search-output-PFVXQCWA.mjs → search-output-MSUN3KPW.mjs} +4 -4
- package/dist/cli/{secrets-BCOQ4U7U.js → secrets-FU3DFFB6.js} +15 -15
- package/dist/cli/{secrets-7CIMEMX7.mjs → secrets-JYJS2VHO.mjs} +6 -6
- package/dist/cli/sessions-E2IX3GU7.js +23 -0
- package/dist/cli/{sessions-IUCQZEF7.mjs → sessions-JBD64DOX.mjs} +6 -6
- package/dist/cli/{settings-KZN62UQK.mjs → settings-4KFYWSJI.mjs} +12 -12
- package/dist/cli/{settings-REL4736M.js → settings-GDJGQXKT.js} +85 -85
- package/dist/cli/{setup-2P7OG3OU.mjs → setup-46VMBV3K.mjs} +9 -9
- package/dist/cli/{setup-2XIVBBCS.js → setup-OKLUCTU7.js} +49 -49
- package/dist/cli/skills-GJS4Q7NU.js +37 -0
- package/dist/cli/{skills-VIGNDJKI.mjs → skills-XRJNXEEA.mjs} +7 -7
- package/dist/cli/tools-LICQXFYA.js +57 -0
- package/dist/cli/{tools-W3QT5EJY.mjs → tools-WEBVZN3X.mjs} +17 -17
- package/dist/cli/update-3XH3NVVY.js +37 -0
- package/dist/cli/{update-GZVBVMY3.mjs → update-RKTYJ6BO.mjs} +9 -9
- package/dist/cli/{views-BOGEH424.mjs → views-VTOQ4U75.mjs} +6 -6
- package/dist/cli/{views-TOLJNLSV.js → views-XLAPDQXQ.js} +21 -21
- package/dist/cli/{workflow-ENWFRK5M.js → workflow-HH4XVYPN.js} +17 -17
- package/dist/cli/{workflow-VDG2FDQV.mjs → workflow-RCO4R46B.mjs} +7 -7
- package/dist/{client-B8f7RNF8.d.mts → client-1ogYQqUw.d.mts} +1 -1
- package/dist/{client-C5TgXmJQ.d.ts → client-BoayTB7p.d.ts} +1 -1
- package/dist/{client-core-SLLGBTht.d.mts → client-core-Ch8CXaX4.d.mts} +8 -2
- package/dist/{client-core-p0sOxnkl.d.ts → client-core-DySw9x_E.d.ts} +8 -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-SP6SKZJZ.js +0 -44
- package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +0 -22
- package/dist/cli/describe-FG625QPF.js +0 -50
- package/dist/cli/git-RUBMALLH.js +0 -26
- package/dist/cli/search-TKSPTPHA.js +0 -32
- package/dist/cli/sessions-4CO556VD.js +0 -23
- package/dist/cli/skills-JYT5DEY6.js +0 -37
- package/dist/cli/tools-NTVUQ2TG.js +0 -57
- package/dist/cli/update-TWJZPUZM.js +0 -37
|
@@ -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 _chunkN6LM2Q6Vjs = require('./chunk-N6LM2Q6V.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.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
|
+
_chunkPWQ3IUD4js.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 org\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, _chunkN6LM2Q6Vjs.DeeplineClient)().getIntegrationBalance(
|
|
30
30
|
provider
|
|
31
31
|
);
|
|
32
32
|
printIntegrationResult(balance, options.json, [
|
|
@@ -40,7 +40,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
40
40
|
"List teammates\u2019 personal connections for this provider"
|
|
41
41
|
).option("--cursor <cursor>", "Read the next page of members").action(
|
|
42
42
|
async (options) => {
|
|
43
|
-
const client = new (0,
|
|
43
|
+
const client = new (0, _chunkN6LM2Q6Vjs.DeeplineClient)();
|
|
44
44
|
if (name === "list" && options.cursor && !options.members)
|
|
45
45
|
throw new Error(
|
|
46
46
|
"Use --cursor with --members to continue a member page."
|
|
@@ -82,7 +82,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
82
82
|
}
|
|
83
83
|
function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
|
|
84
84
|
return parent.command("hubspot-members", { hidden }).description("List personal HubSpot connection status for org members.").option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
|
|
85
|
-
const page = await new (0,
|
|
85
|
+
const page = await new (0, _chunkN6LM2Q6Vjs.DeeplineClient)().listPersonalHubSpotMembers(
|
|
86
86
|
options.cursor
|
|
87
87
|
);
|
|
88
88
|
const rows = page.members.map((member) => {
|
|
@@ -108,7 +108,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
|
|
|
108
108
|
);
|
|
109
109
|
if (options.autoName && (action !== "connect" || options.name !== void 0))
|
|
110
110
|
throw new Error("Use --auto-name with connect and omit --name.");
|
|
111
|
-
const client = new (0,
|
|
111
|
+
const client = new (0, _chunkN6LM2Q6Vjs.DeeplineClient)();
|
|
112
112
|
const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
|
|
113
113
|
const row = connections.find(
|
|
114
114
|
(connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
|
|
@@ -141,7 +141,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
141
141
|
"Print the proposed change without contacting Google or saving it"
|
|
142
142
|
).option("--json", "Print the result as JSON").action(
|
|
143
143
|
async (action, options) => {
|
|
144
|
-
const client = new (0,
|
|
144
|
+
const client = new (0, _chunkN6LM2Q6Vjs.DeeplineClient)();
|
|
145
145
|
if (action === "list") {
|
|
146
146
|
const inventory = await client.listCalendarAvailabilityConnections();
|
|
147
147
|
const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
|
|
@@ -291,7 +291,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
291
291
|
}
|
|
292
292
|
function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
|
|
293
293
|
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) => {
|
|
294
|
-
const page = await new (0,
|
|
294
|
+
const page = await new (0, _chunkN6LM2Q6Vjs.DeeplineClient)().listAvailabilityCalendars(
|
|
295
295
|
options.cursor
|
|
296
296
|
);
|
|
297
297
|
printIntegrationResult(page, options.json, [
|
|
@@ -335,7 +335,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
335
335
|
printSetupPlan({ provider, action: "connect_link" }, options.json);
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
|
-
const link = await new (0,
|
|
338
|
+
const link = await new (0, _chunkN6LM2Q6Vjs.DeeplineClient)().getIntegrationConnectLink(
|
|
339
339
|
provider
|
|
340
340
|
);
|
|
341
341
|
printIntegrationResult(link, options.json, [link.connect_url]);
|
|
@@ -362,7 +362,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
362
362
|
);
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
|
-
const result2 = await new (0,
|
|
365
|
+
const result2 = await new (0, _chunkN6LM2Q6Vjs.DeeplineClient)().startIntegrationOAuth(
|
|
366
366
|
provider,
|
|
367
367
|
{
|
|
368
368
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
@@ -412,7 +412,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
412
412
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
413
413
|
);
|
|
414
414
|
}
|
|
415
|
-
const result = await new (0,
|
|
415
|
+
const result = await new (0, _chunkN6LM2Q6Vjs.DeeplineClient)().setIntegrationCredentials(
|
|
416
416
|
provider,
|
|
417
417
|
credentials,
|
|
418
418
|
{ expectedConnectionId: options.expectedConnectionId }
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKONNXKKXjs = require('./chunk-KONNXKKX.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYGW2CSB7js = require('./chunk-YGW2CSB7.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkCZ2RJTAQjs = require('./chunk-CZ2RJTAQ.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkNGB2VSGBjs = require('./chunk-NGB2VSGB.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/update.ts
|
|
23
23
|
var _child_process = require('child_process');
|
|
@@ -499,7 +499,7 @@ function normalizedNpmPrefix(value) {
|
|
|
499
499
|
}
|
|
500
500
|
function resolveNpmGlobalPrefix(env) {
|
|
501
501
|
try {
|
|
502
|
-
const plan =
|
|
502
|
+
const plan = _chunkCZ2RJTAQjs.resolveShellSpawn.call(void 0,
|
|
503
503
|
"npm",
|
|
504
504
|
["prefix", "-g"],
|
|
505
505
|
process.platform,
|
|
@@ -561,8 +561,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
561
561
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
562
562
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
563
563
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
564
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
565
|
-
const npmGlobalInstallFlags =
|
|
564
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkKONNXKKXjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
565
|
+
const npmGlobalInstallFlags = _chunkKONNXKKXjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
566
566
|
const args = installPrefix ? [
|
|
567
567
|
"install",
|
|
568
568
|
"-g",
|
|
@@ -572,7 +572,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
572
572
|
packageSpec
|
|
573
573
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
574
574
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
575
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
575
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, )
|
|
576
576
|
);
|
|
577
577
|
return {
|
|
578
578
|
kind: "npm-global",
|
|
@@ -821,7 +821,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
821
821
|
function runCommand(command, args, env = process.env) {
|
|
822
822
|
return new Promise((resolveResult) => {
|
|
823
823
|
let output = "";
|
|
824
|
-
const plan =
|
|
824
|
+
const plan = _chunkCZ2RJTAQjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
825
825
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
826
826
|
windowsHide: true,
|
|
827
827
|
stdio: ["inherit", "pipe", "pipe"],
|
|
@@ -1169,7 +1169,7 @@ function normalizePinnedVersion(value) {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
async function readPinMetadata(registryUrl, version) {
|
|
1171
1171
|
const controller = new AbortController();
|
|
1172
|
-
const timeout = setTimeout(() => controller.abort(),
|
|
1172
|
+
const timeout = setTimeout(() => controller.abort(), _chunkNGB2VSGBjs.DEFAULT_TIMEOUT);
|
|
1173
1173
|
try {
|
|
1174
1174
|
const response = await fetch(
|
|
1175
1175
|
new URL(
|
|
@@ -1185,7 +1185,7 @@ async function readPinMetadata(registryUrl, version) {
|
|
|
1185
1185
|
if (!response.ok) {
|
|
1186
1186
|
return {
|
|
1187
1187
|
kind: "miss",
|
|
1188
|
-
transient:
|
|
1188
|
+
transient: _chunkNGB2VSGBjs.TRANSIENT_HTTP_STATUSES.has(response.status),
|
|
1189
1189
|
error: new Error(`${registryUrl} returned HTTP ${response.status}`)
|
|
1190
1190
|
};
|
|
1191
1191
|
}
|
|
@@ -1219,8 +1219,8 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl, retry =
|
|
|
1219
1219
|
"https://registry.npmjs.org/",
|
|
1220
1220
|
...fallbackRegistryUrl ? [fallbackRegistryUrl] : []
|
|
1221
1221
|
];
|
|
1222
|
-
const maxRetries = _nullishCoalesce(retry.maxRetries, () => (
|
|
1223
|
-
const backoffMs = _nullishCoalesce(retry.backoffMs, () => (
|
|
1222
|
+
const maxRetries = _nullishCoalesce(retry.maxRetries, () => ( _chunkNGB2VSGBjs.DEFAULT_MAX_RETRIES));
|
|
1223
|
+
const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunkNGB2VSGBjs.defaultRetryBackoffMs));
|
|
1224
1224
|
let lastError = null;
|
|
1225
1225
|
for (let round = 1; ; round += 1) {
|
|
1226
1226
|
let transientOnly = true;
|
|
@@ -1283,14 +1283,14 @@ async function resolveInstalledVersionIfLatest(plan) {
|
|
|
1283
1283
|
return null;
|
|
1284
1284
|
}
|
|
1285
1285
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1286
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1286
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkNGB2VSGBjs.autoDetectBaseUrl));
|
|
1287
1287
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1288
1288
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1289
1289
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1290
1290
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1291
1291
|
process.stdout.write = (() => true);
|
|
1292
1292
|
try {
|
|
1293
|
-
const exitCode = await
|
|
1293
|
+
const exitCode = await _chunkYGW2CSB7js.runSkillsCommand.call(void 0, { json: true });
|
|
1294
1294
|
if (exitCode !== 0) {
|
|
1295
1295
|
throw new Error(
|
|
1296
1296
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1363,7 +1363,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1363
1363
|
};
|
|
1364
1364
|
if (options.json && !options.executeWithJson) {
|
|
1365
1365
|
const upToDateVersion2 = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
|
|
1366
|
-
|
|
1366
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
1367
1367
|
{
|
|
1368
1368
|
...plan,
|
|
1369
1369
|
updated: false,
|
|
@@ -1375,7 +1375,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1375
1375
|
return 0;
|
|
1376
1376
|
}
|
|
1377
1377
|
if (options.printCommand) {
|
|
1378
|
-
|
|
1378
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
1379
1379
|
{
|
|
1380
1380
|
...plan,
|
|
1381
1381
|
render: {
|
|
@@ -1388,7 +1388,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1388
1388
|
return 0;
|
|
1389
1389
|
}
|
|
1390
1390
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1391
|
-
|
|
1391
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1392
1392
|
return 0;
|
|
1393
1393
|
}
|
|
1394
1394
|
const upToDateVersion = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
|
|
@@ -1426,7 +1426,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1426
1426
|
);
|
|
1427
1427
|
}
|
|
1428
1428
|
if (options.executeWithJson && options.json) {
|
|
1429
|
-
|
|
1429
|
+
_chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
|
|
1430
1430
|
{
|
|
1431
1431
|
ok: true,
|
|
1432
1432
|
pinnedVersion,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QGQPVPJN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
enforceSdkCompatibilityResponse,
|
|
6
6
|
flushDeferredSkillsSyncNotices,
|
|
7
7
|
requireSdkCompatibility
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ASMHON7N.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,6 +1,6 @@
|
|
|
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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkPWQ3IUD4js.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkPWQ3IUD4js.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
httpJson
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B4RWCBU5.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-ZGOTBBY3.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2ZS5PZB6.mjs";
|
|
7
7
|
import {
|
|
8
8
|
errorToJsonPayload,
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
resolveSdkCliFailureExitCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KNOS6H4E.mjs";
|
|
12
12
|
import {
|
|
13
13
|
resolveConfig,
|
|
14
14
|
sdkCliStateDirPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZGOTBBY3.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-MSUN3KPW.mjs");
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KA77KT46.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P6ZIR4QD.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ASMHON7N.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KNOS6H4E.mjs";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_MAX_RETRIES,
|
|
16
16
|
DEFAULT_TIMEOUT,
|
|
17
17
|
TRANSIENT_HTTP_STATUSES,
|
|
18
18
|
autoDetectBaseUrl,
|
|
19
19
|
defaultRetryBackoffMs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZGOTBBY3.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/update.ts
|
|
23
23
|
import { spawn, spawnSync } from "child_process";
|