deepline 0.3.553 → 0.3.554
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/cli/{auth-I3QAU4RV.mjs → auth-HJUNW7T2.mjs} +5 -5
- package/dist/cli/auth-SP6SKZJZ.js +44 -0
- package/dist/cli/{billing-YGFFVAIC.js → billing-4TSA5HEC.js} +102 -102
- package/dist/cli/{billing-3IC54OQQ.mjs → billing-SJYRJAQ2.mjs} +9 -9
- package/dist/cli/{chunk-2B5B5KAW.js → chunk-2HMN5H54.js} +53 -50
- package/dist/cli/{chunk-72V4PDH5.mjs → chunk-2ORPFQUA.mjs} +3 -3
- package/dist/cli/{chunk-BVDKFS2T.js → chunk-2OVHNHCF.js} +2 -2
- package/dist/cli/{chunk-Z7AOIHFE.mjs → chunk-33WRQSQ2.mjs} +4 -0
- package/dist/cli/{chunk-HVI55MTK.js → chunk-3IKGZ4CG.js} +20 -10
- package/dist/cli/{chunk-INEMTYMT.mjs → chunk-3Z4VFCXO.mjs} +7 -7
- package/dist/cli/{chunk-HEBO3XNZ.js → chunk-4DOFGIEJ.js} +12 -12
- package/dist/cli/{chunk-LFOERUQY.mjs → chunk-52Q5KETX.mjs} +1 -1
- package/dist/cli/{chunk-AGLR6QVN.js → chunk-5CYZHOKI.js} +4 -4
- package/dist/cli/{chunk-HSJ6X2AQ.mjs → chunk-62AUAWQV.mjs} +4 -4
- package/dist/cli/{chunk-NDNHYONK.mjs → chunk-62HWJXST.mjs} +2 -2
- package/dist/cli/{chunk-QI5S5HWB.mjs → chunk-6EXOAT6T.mjs} +2 -2
- package/dist/cli/{chunk-Y6SP3JMI.js → chunk-7OWI736E.js} +30 -30
- package/dist/cli/{chunk-DZA7RFGL.mjs → chunk-B6HO2XWH.mjs} +13 -13
- package/dist/cli/{chunk-A7DLBE5K.mjs → chunk-BOZAP2EM.mjs} +10 -7
- package/dist/cli/chunk-BVXIGOBZ.js +32 -0
- package/dist/cli/{chunk-QG6JIWUL.mjs → chunk-D6Z6POKE.mjs} +5 -5
- package/dist/cli/{chunk-4BFTDNHU.mjs → chunk-DSKSFFK2.mjs} +1 -1
- package/dist/cli/{chunk-JLGP5XAJ.js → chunk-DUBXUAAO.js} +5 -5
- package/dist/cli/{chunk-IMX7J4DU.js → chunk-E74KGKFZ.js} +5 -5
- package/dist/cli/{chunk-YUA6HA6D.js → chunk-ECHKAC7M.js} +2 -2
- package/dist/cli/{chunk-IH6GDNKW.js → chunk-EN5NHCCQ.js} +17 -17
- package/dist/cli/{chunk-CAEBJOYU.mjs → chunk-F7CMRKSK.mjs} +1 -1
- package/dist/cli/{chunk-SBH4CKPN.js → chunk-FBAFX43W.js} +10 -10
- package/dist/cli/{chunk-GAVZ4EOD.mjs → chunk-FXQ3JKE3.mjs} +1 -1
- package/dist/cli/{chunk-55F6HNOY.mjs → chunk-GA2M3G3Y.mjs} +4 -4
- package/dist/cli/{chunk-Q6Z6N3A7.js → chunk-GHT2NDL7.js} +9 -9
- package/dist/cli/{chunk-WOCHZCUJ.js → chunk-GRZENGNE.js} +2 -2
- package/dist/cli/{chunk-7O6J6A7P.js → chunk-IVZKMJUK.js} +4 -0
- package/dist/cli/{chunk-SG3LUONJ.mjs → chunk-KVBQY4ST.mjs} +2 -2
- package/dist/cli/{chunk-AGIQDA2T.mjs → chunk-KZHBDMGF.mjs} +2 -2
- package/dist/cli/{chunk-TFEXSHPM.js → chunk-LY5MMXFF.js} +28 -14
- package/dist/cli/{chunk-RTV4RF7N.js → chunk-M7STM3MZ.js} +26 -26
- package/dist/cli/{chunk-7GEMELKI.js → chunk-OPTV7D2V.js} +431 -330
- package/dist/cli/{chunk-CACFJODG.js → chunk-OVEYWO4H.js} +8 -8
- package/dist/cli/{chunk-4HYNMXXF.mjs → chunk-PC2FTUCP.mjs} +2 -2
- package/dist/cli/{chunk-4747TPLV.js → chunk-PQQMPUCZ.js} +3 -3
- package/dist/cli/{chunk-45OAVGU6.mjs → chunk-Q7ACILL2.mjs} +2 -2
- package/dist/cli/{chunk-RMNOZKRI.mjs → chunk-RBBTCYQB.mjs} +3 -3
- package/dist/cli/{chunk-7YRJ5UC4.js → chunk-RTHMGSZX.js} +20 -20
- package/dist/cli/{chunk-OTV2UUKW.mjs → chunk-S6W6SJ6E.mjs} +1 -1
- package/dist/cli/chunk-STXDSVQZ.mjs +32 -0
- package/dist/cli/{chunk-UEVKMZLR.mjs → chunk-TGUQET3O.mjs} +14 -4
- package/dist/cli/{chunk-74RES4DS.js → chunk-TJ6HLN56.js} +5 -5
- package/dist/cli/{chunk-IUOGII7D.js → chunk-TOO3YM5N.js} +6 -6
- package/dist/cli/{chunk-UVQJYV76.mjs → chunk-UBBYHB2B.mjs} +2 -2
- package/dist/cli/{chunk-AGICYWGN.mjs → chunk-UC4BDZKI.mjs} +2 -2
- package/dist/cli/{chunk-6NE3RRRY.js → chunk-UNNOZKRT.js} +1 -1
- package/dist/cli/{chunk-FM7LPUPA.js → chunk-UOT7HPBH.js} +41 -41
- package/dist/cli/{chunk-DP2VH7CO.js → chunk-UYCZFQYQ.js} +11 -11
- package/dist/cli/{chunk-MLABYI4M.js → chunk-VIUUTEHY.js} +3 -3
- package/dist/cli/{chunk-LH5PZKER.mjs → chunk-VLO5NFH2.mjs} +1 -1
- package/dist/cli/{chunk-JJGWHITQ.mjs → chunk-VQ75KX7G.mjs} +2 -2
- package/dist/cli/{chunk-3NTP2OSG.js → chunk-VV4XGZ24.js} +13 -13
- package/dist/cli/{chunk-LRDHPOZW.js → chunk-W6CZDTIR.js} +53 -53
- package/dist/cli/{chunk-7SERLBNR.js → chunk-WL7P32PI.js} +20 -20
- package/dist/cli/{chunk-4SMCFQ23.mjs → chunk-XD3MFTHA.mjs} +1 -1
- package/dist/cli/{chunk-E7WZOX2A.mjs → chunk-XFZX6FNM.mjs} +20 -6
- package/dist/cli/{chunk-DP64MD6U.mjs → chunk-XU6QNM4D.mjs} +1 -1
- package/dist/cli/{chunk-TN4TY6TT.mjs → chunk-YCOGPOUX.mjs} +2 -2
- package/dist/cli/{chunk-XLIHTJVM.js → chunk-YQKCH4R7.js} +20 -20
- package/dist/cli/{chunk-Z6XPSHKM.mjs → chunk-YY55NYAH.mjs} +133 -32
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-DNV2X5AZ.mjs → concurrent-runs-help-O3Q5IPLF.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +22 -0
- package/dist/cli/{csv-SA6ELJY6.js → csv-4ZQ2RATI.js} +13 -13
- package/dist/cli/{csv-ZXZGHWOM.mjs → csv-Y3BFPEM6.mjs} +4 -4
- package/dist/cli/{db-A54SP6AD.mjs → db-3JYY4JNN.mjs} +7 -7
- package/dist/cli/{db-JHFEIQBU.js → db-VEIFS4M7.js} +29 -29
- package/dist/cli/describe-EVJ4MFVU.mjs +50 -0
- package/dist/cli/describe-FG625QPF.js +50 -0
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-TLFZRHBJ.js → executions-HPZXOOVX.js} +8 -8
- package/dist/cli/{executions-HL2M2DFU.mjs → executions-PCXZKEHM.mjs} +6 -6
- package/dist/cli/{feedback-QMBTNXVG.mjs → feedback-Y6VKZNY6.mjs} +6 -6
- package/dist/cli/{feedback-5UEX5UZK.js → feedback-ZKFHFVL6.js} +14 -14
- package/dist/cli/git-RUBMALLH.js +26 -0
- package/dist/cli/{git-LKGXVIVC.mjs → git-UMPR2QYC.mjs} +5 -5
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-6RUTLMN7.js → integrations-3GQCTRTF.js} +15 -15
- package/dist/cli/{integrations-FGGRVUJ7.mjs → integrations-V3TM6XAB.mjs} +7 -7
- package/dist/cli/{legacy-noops-YIPRMVXZ.mjs → legacy-noops-JZBUD7ZE.mjs} +6 -6
- package/dist/cli/{legacy-noops-J3Z7QRWZ.js → legacy-noops-VYCO7NGW.js} +9 -9
- package/dist/cli/{mcp-6LWFP7RW.js → mcp-4OIWTCE6.js} +24 -24
- package/dist/cli/{mcp-CHDYFO7F.mjs → mcp-PH4KZ76P.mjs} +4 -4
- package/dist/cli/{monitors-STM6A7OU.js → monitors-E2A6VPBY.js} +100 -100
- package/dist/cli/{monitors-UGRY2BXI.mjs → monitors-SSMGIDGX.mjs} +7 -7
- package/dist/cli/{org-3SYOUQCX.mjs → org-SFDKSK5D.mjs} +6 -6
- package/dist/cli/{org-ZOBSNSIB.js → org-WUDZGWBT.js} +121 -121
- package/dist/cli/{outcomes-Z3P2JE67.mjs → outcomes-QT7LQBPK.mjs} +6 -6
- package/dist/cli/{outcomes-H4YYAT5X.js → outcomes-Y7SZTLSL.js} +14 -14
- package/dist/cli/{play-SN5YWLS7.mjs → play-EK7KSFPL.mjs} +21 -21
- package/dist/cli/{play-SM4CW2GS.js → play-GDNHCRRR.js} +372 -372
- package/dist/cli/{providers-WZ4YBR5Y.mjs → providers-FVZLRXAU.mjs} +6 -6
- package/dist/cli/{providers-WZARYMCF.js → providers-ZKOSECLV.js} +9 -9
- package/dist/cli/{quickstart-PS4YHQJ6.js → quickstart-KSDKIXYD.js} +6 -6
- package/dist/cli/{quickstart-2575BNKA.mjs → quickstart-UJZ6PIQV.mjs} +4 -4
- package/dist/cli/{run-ZUHCZOJS.mjs → run-E7MZ7P35.mjs} +30 -28
- package/dist/cli/{run-FLZ6OTM7.js → run-PD2BBG6S.js} +51 -49
- package/dist/cli/search-TKSPTPHA.js +32 -0
- package/dist/cli/{search-HLPPKQEO.mjs → search-VTFUFTOY.mjs} +7 -7
- package/dist/cli/{search-output-RXJLU36B.js → search-output-G2AGDCOY.js} +9 -9
- package/dist/cli/{search-output-PDAXNOGP.mjs → search-output-PFVXQCWA.mjs} +6 -6
- package/dist/cli/{secrets-CGELYQ3H.mjs → secrets-7CIMEMX7.mjs} +6 -6
- package/dist/cli/{secrets-QJNG7G2Y.js → secrets-BCOQ4U7U.js} +15 -15
- package/dist/cli/sessions-4CO556VD.js +23 -0
- package/dist/cli/{sessions-ELMWVR4M.mjs → sessions-IUCQZEF7.mjs} +6 -6
- package/dist/cli/{settings-RR3LZXL7.mjs → settings-KZN62UQK.mjs} +12 -12
- package/dist/cli/{settings-44I44P5F.js → settings-REL4736M.js} +85 -85
- package/dist/cli/{setup-KGWRWH4B.mjs → setup-2P7OG3OU.mjs} +11 -14
- package/dist/cli/{setup-KTEYOCJO.js → setup-2XIVBBCS.js} +51 -54
- package/dist/cli/skills-JYT5DEY6.js +37 -0
- package/dist/cli/{skills-FPRID2I5.mjs → skills-VIGNDJKI.mjs} +7 -7
- package/dist/cli/tools-NTVUQ2TG.js +57 -0
- package/dist/cli/{tools-PI4WMDLY.mjs → tools-W3QT5EJY.mjs} +20 -20
- package/dist/cli/{update-VJOJAZ7B.mjs → update-GZVBVMY3.mjs} +9 -9
- package/dist/cli/update-TWJZPUZM.js +37 -0
- package/dist/cli/{views-OVPSINZO.mjs → views-BOGEH424.mjs} +6 -6
- package/dist/cli/{views-NTUOLNQU.js → views-TOLJNLSV.js} +21 -21
- package/dist/cli/{workflow-2UDYDM6F.js → workflow-ENWFRK5M.js} +17 -17
- package/dist/cli/{workflow-7OEFNXZC.mjs → workflow-VDG2FDQV.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +122 -122
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-MQCN7WGZ.js +0 -44
- package/dist/cli/chunk-AID3OYVJ.js +0 -8
- package/dist/cli/chunk-OVDNJAJN.mjs +0 -8
- package/dist/cli/concurrent-runs-help-CFJH4KXV.js +0 -22
- package/dist/cli/describe-PHQ33AGS.mjs +0 -50
- package/dist/cli/describe-RHJ4XRFI.js +0 -50
- package/dist/cli/git-4JWOOHBG.js +0 -26
- package/dist/cli/search-JJWVHR3N.js +0 -32
- package/dist/cli/sessions-DHTBT2GN.js +0 -23
- package/dist/cli/skills-EPZPEXI2.js +0 -37
- package/dist/cli/tools-IGQQ5TML.js +0 -57
- package/dist/cli/update-4RNCVYGE.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 _chunkDUBXUAAOjs = require('./chunk-DUBXUAAO.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.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
|
+
_chunkYQKCH4R7js.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, _chunkDUBXUAAOjs.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, _chunkDUBXUAAOjs.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, _chunkDUBXUAAOjs.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, _chunkDUBXUAAOjs.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, _chunkDUBXUAAOjs.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, _chunkDUBXUAAOjs.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, _chunkDUBXUAAOjs.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, _chunkDUBXUAAOjs.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, _chunkDUBXUAAOjs.DeeplineClient)().setIntegrationCredentials(
|
|
416
416
|
provider,
|
|
417
417
|
credentials,
|
|
418
418
|
{ expectedConnectionId: options.expectedConnectionId }
|
|
@@ -21,12 +21,12 @@ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
|
21
21
|
var _chunkCFJFUVX2js = require('./chunk-CFJFUVX2.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkUNNOZKRTjs = require('./chunk-UNNOZKRT.js');
|
|
25
25
|
|
|
26
26
|
// src/version.ts
|
|
27
|
-
var SDK_VERSION =
|
|
28
|
-
var SDK_API_MAJOR =
|
|
29
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
27
|
+
var SDK_VERSION = _chunkUNNOZKRTjs.SDK_RELEASE.version;
|
|
28
|
+
var SDK_API_MAJOR = _chunkUNNOZKRTjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
29
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkUNNOZKRTjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
30
30
|
|
|
31
31
|
// src/agent-runtime.ts
|
|
32
32
|
var _fs = require('fs');
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BOZAP2EM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UC4BDZKI.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-52Q5KETX.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-S6W6SJ6E.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6EXOAT6T.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UC4BDZKI.mjs";
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
import { Option } from "commander";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VLO5NFH2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-52Q5KETX.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -4,21 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkWL7P32PIjs = require('./chunk-WL7P32PI.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var _chunk2B5B5KAWjs = require('./chunk-2B5B5KAW.js');
|
|
12
11
|
|
|
12
|
+
var _chunk2HMN5H54js = require('./chunk-2HMN5H54.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
|
|
16
15
|
|
|
16
|
+
var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
|
|
17
17
|
|
|
18
|
-
var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
|
|
19
18
|
|
|
19
|
+
var _chunkVIUUTEHYjs = require('./chunk-VIUUTEHY.js');
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
|
|
22
|
+
var _chunk5CYZHOKIjs = require('./chunk-5CYZHOKI.js');
|
|
22
23
|
|
|
23
24
|
// src/cli/compatibility-catalog.ts
|
|
24
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -45,7 +46,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
45
46
|
async function reportAutoUpdateEvent(input) {
|
|
46
47
|
let apiKey = "";
|
|
47
48
|
try {
|
|
48
|
-
apiKey =
|
|
49
|
+
apiKey = _chunkVIUUTEHYjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
49
50
|
} catch (e2) {
|
|
50
51
|
return;
|
|
51
52
|
}
|
|
@@ -61,15 +62,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
61
62
|
headers: {
|
|
62
63
|
Authorization: `Bearer ${apiKey}`,
|
|
63
64
|
"Content-Type": "application/json",
|
|
64
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
65
|
+
"User-Agent": `deepline-ts-sdk/${_chunk5CYZHOKIjs.SDK_VERSION}`,
|
|
65
66
|
"X-Deepline-Client-Family": "sdk",
|
|
66
67
|
"X-Deepline-CLI-Family": "sdk",
|
|
67
|
-
"X-Deepline-CLI-Version":
|
|
68
|
-
"X-Deepline-SDK-Version":
|
|
68
|
+
"X-Deepline-CLI-Version": _chunk5CYZHOKIjs.SDK_VERSION,
|
|
69
|
+
"X-Deepline-SDK-Version": _chunk5CYZHOKIjs.SDK_VERSION
|
|
69
70
|
},
|
|
70
71
|
body: JSON.stringify({
|
|
71
72
|
event: input.event,
|
|
72
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
73
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk5CYZHOKIjs.SDK_VERSION,
|
|
73
74
|
target_version: input.response.latest,
|
|
74
75
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
75
76
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -88,28 +89,27 @@ function envTruthy(name) {
|
|
|
88
89
|
return value === "1" || value === "true" || value === "yes";
|
|
89
90
|
}
|
|
90
91
|
function shouldSkipSelfUpdate(policy) {
|
|
91
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
92
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkWL7P32PIjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk2HMN5H54js.isCiEnvironment.call(void 0, );
|
|
92
93
|
}
|
|
93
94
|
function isDowngradeAutoUpdateResponse(response) {
|
|
94
95
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
95
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
96
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk5CYZHOKIjs.SDK_VERSION;
|
|
96
97
|
if (!target) return false;
|
|
97
|
-
return
|
|
98
|
+
return _chunkWL7P32PIjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
98
99
|
}
|
|
99
100
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
100
101
|
return new Promise((resolve) => {
|
|
101
|
-
const command = plan.kind === "python-sidecar" ? plan.sidecarPath : _nullishCoalesce(runtime.execPath, () => ( process.execPath));
|
|
102
102
|
const argv = _nullishCoalesce(runtime.argv, () => ( process.argv));
|
|
103
|
-
const args = plan.kind === "python-sidecar" ? argv.slice(2) : argv.slice(1);
|
|
104
103
|
const platform = _nullishCoalesce(runtime.platform, () => ( process.platform));
|
|
105
|
-
const
|
|
104
|
+
const launch = plan.kind === "python-sidecar" ? _chunk2HMN5H54js.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
|
|
105
|
+
command: _nullishCoalesce(runtime.execPath, () => ( process.execPath)),
|
|
106
|
+
args: argv.slice(1),
|
|
107
|
+
shell: false
|
|
108
|
+
};
|
|
109
|
+
const child = _child_process.spawn.call(void 0, launch.command, launch.args, {
|
|
106
110
|
windowsHide: true,
|
|
107
111
|
stdio: "inherit",
|
|
108
|
-
|
|
109
|
-
// passing `C:\Program Files\...\node.exe` through cmd.exe splits it
|
|
110
|
-
// at the first space. The Python-sidecar launcher is a `.cmd` file on
|
|
111
|
-
// Windows and still needs the shell dispatch it has always used.
|
|
112
|
-
shell: plan.kind === "python-sidecar" && platform === "win32",
|
|
112
|
+
shell: launch.shell,
|
|
113
113
|
env: {
|
|
114
114
|
...process.env,
|
|
115
115
|
DEEPLINE_NO_AUTO_UPDATE: "1"
|
|
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
148
148
|
}
|
|
149
149
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
150
150
|
const target = response.latest;
|
|
151
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
151
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk5CYZHOKIjs.SDK_VERSION;
|
|
152
152
|
process.stderr.write(
|
|
153
153
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
154
154
|
`
|
|
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
156
156
|
return false;
|
|
157
157
|
}
|
|
158
158
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
159
|
-
const plan =
|
|
159
|
+
const plan = _chunkWL7P32PIjs.resolveUpdatePlan.call(void 0, {
|
|
160
160
|
packageSpec,
|
|
161
161
|
requireVerifiedNpmOwnership: true,
|
|
162
162
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
163
163
|
});
|
|
164
|
-
if (!
|
|
164
|
+
if (!_chunkWL7P32PIjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
165
165
|
return false;
|
|
166
166
|
}
|
|
167
167
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
168
168
|
deferredAutoUpdate = async () => {
|
|
169
169
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
170
170
|
};
|
|
171
|
-
if (
|
|
171
|
+
if (_chunkYQKCH4R7js.isJsonOutputMode.call(void 0, )) {
|
|
172
172
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
173
|
-
|
|
173
|
+
_chunkYQKCH4R7js.addJsonNotice.call(void 0, {
|
|
174
174
|
code: "sdk_update_queued",
|
|
175
175
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
176
176
|
});
|
|
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
183
183
|
return true;
|
|
184
184
|
}
|
|
185
185
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
186
|
-
if (!
|
|
186
|
+
if (!_chunkWL7P32PIjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
187
187
|
const autoUpdate = response.auto_update;
|
|
188
188
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
189
189
|
process.stderr.write(
|
|
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
196
196
|
event: "started",
|
|
197
197
|
installKind: plan.kind
|
|
198
198
|
});
|
|
199
|
-
const updateResult = await
|
|
199
|
+
const updateResult = await _chunkWL7P32PIjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
200
200
|
if (updateResult.status === "skipped_previous_failure") {
|
|
201
201
|
void reportAutoUpdateEvent({
|
|
202
202
|
baseUrl,
|
|
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
234
234
|
exitCode: 0
|
|
235
235
|
});
|
|
236
236
|
try {
|
|
237
|
-
await
|
|
237
|
+
await _chunk2HMN5H54js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
238
238
|
mode: "detached",
|
|
239
239
|
update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
|
|
240
240
|
afterCliUpdate: {
|
|
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
|
|
|
261
261
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
262
262
|
var activeToolExecuteCommand = null;
|
|
263
263
|
function progressLine(line) {
|
|
264
|
-
if (!
|
|
264
|
+
if (!_chunkYQKCH4R7js.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
265
265
|
}
|
|
266
266
|
function beginToolExecuteCommand() {
|
|
267
267
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -4,21 +4,22 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D6Z6POKE.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
|
+
resolveShellSpawn,
|
|
10
11
|
syncSdkSkillsIfNeeded
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BOZAP2EM.mjs";
|
|
12
13
|
import {
|
|
13
14
|
addJsonNotice,
|
|
14
15
|
isJsonOutputMode
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UC4BDZKI.mjs";
|
|
16
17
|
import {
|
|
17
18
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-52Q5KETX.mjs";
|
|
19
20
|
import {
|
|
20
21
|
SDK_VERSION
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-S6W6SJ6E.mjs";
|
|
22
23
|
|
|
23
24
|
// src/cli/compatibility-catalog.ts
|
|
24
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -98,18 +99,17 @@ function isDowngradeAutoUpdateResponse(response) {
|
|
|
98
99
|
}
|
|
99
100
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
100
101
|
return new Promise((resolve) => {
|
|
101
|
-
const command = plan.kind === "python-sidecar" ? plan.sidecarPath : runtime.execPath ?? process.execPath;
|
|
102
102
|
const argv = runtime.argv ?? process.argv;
|
|
103
|
-
const args = plan.kind === "python-sidecar" ? argv.slice(2) : argv.slice(1);
|
|
104
103
|
const platform = runtime.platform ?? process.platform;
|
|
105
|
-
const
|
|
104
|
+
const launch = plan.kind === "python-sidecar" ? resolveShellSpawn(plan.sidecarPath, argv.slice(2), platform) : {
|
|
105
|
+
command: runtime.execPath ?? process.execPath,
|
|
106
|
+
args: argv.slice(1),
|
|
107
|
+
shell: false
|
|
108
|
+
};
|
|
109
|
+
const child = spawn(launch.command, launch.args, {
|
|
106
110
|
windowsHide: true,
|
|
107
111
|
stdio: "inherit",
|
|
108
|
-
|
|
109
|
-
// passing `C:\Program Files\...\node.exe` through cmd.exe splits it
|
|
110
|
-
// at the first space. The Python-sidecar launcher is a `.cmd` file on
|
|
111
|
-
// Windows and still needs the shell dispatch it has always used.
|
|
112
|
-
shell: plan.kind === "python-sidecar" && platform === "win32",
|
|
112
|
+
shell: launch.shell,
|
|
113
113
|
env: {
|
|
114
114
|
...process.env,
|
|
115
115
|
DEEPLINE_NO_AUTO_UPDATE: "1"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DSKSFFK2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UC4BDZKI.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_MAX_RETRIES,
|
|
9
9
|
DEFAULT_SKILL_AGENTS,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
sdkCliStateDirPath,
|
|
19
19
|
skillsAgentPathSegment,
|
|
20
20
|
writeSdkSkillsLocalVersion
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-52Q5KETX.mjs";
|
|
22
22
|
import {
|
|
23
23
|
SDK_API_CONTRACT,
|
|
24
24
|
SDK_API_MAJOR,
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
deploymentProtectionHeaders,
|
|
27
27
|
detectAgentRuntime
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-S6W6SJ6E.mjs";
|
|
29
29
|
import {
|
|
30
30
|
DeeplineError
|
|
31
31
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
32
32
|
import {
|
|
33
33
|
SDK_RELEASE
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FXQ3JKE3.mjs";
|
|
35
35
|
|
|
36
36
|
// src/compat.ts
|
|
37
37
|
import { randomUUID } from "crypto";
|
|
@@ -524,8 +524,11 @@ function resolveShellSpawn(command, args, platform = process.platform, env = pro
|
|
|
524
524
|
return { command: executable, args: [...args], shell: false };
|
|
525
525
|
}
|
|
526
526
|
return {
|
|
527
|
-
command:
|
|
528
|
-
|
|
527
|
+
command: [
|
|
528
|
+
escapeCmdCommand(executable),
|
|
529
|
+
...args.map((arg) => escapeCmdArgument(arg))
|
|
530
|
+
].join(" "),
|
|
531
|
+
args: [],
|
|
529
532
|
shell: true
|
|
530
533
|
};
|
|
531
534
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/cli/shell-quote.ts
|
|
2
|
+
function shellQuote(value) {
|
|
3
|
+
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
4
|
+
}
|
|
5
|
+
function shellArgument(value, platform = process.platform) {
|
|
6
|
+
if (platform !== "win32") return shellQuote(value);
|
|
7
|
+
if (/^[A-Za-z0-9_+:./\\-][A-Za-z0-9_+=:./\\-]*$/.test(value)) return value;
|
|
8
|
+
if (!/["\u201C\u201D\u201E$`!%\\\r\n]/.test(value)) return `"${value}"`;
|
|
9
|
+
return `'${value.replace(/['\u2018\u2019\u201A\u201B]/g, (quote) => quote + quote)}'`;
|
|
10
|
+
}
|
|
11
|
+
var EXAMPLE_INPUT_FILE = "input.json";
|
|
12
|
+
function exampleJsonInput(json, platform = process.platform) {
|
|
13
|
+
if (platform !== "win32") return { argument: `--input ${shellQuote(json)}` };
|
|
14
|
+
return {
|
|
15
|
+
argument: `--input-file ${EXAMPLE_INPUT_FILE}`,
|
|
16
|
+
file: { path: EXAMPLE_INPUT_FILE, contents: json }
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function examplePlaceholderInput(platform = process.platform) {
|
|
20
|
+
return platform === "win32" ? `--input-file ${EXAMPLE_INPUT_FILE}` : `--input '{...}'`;
|
|
21
|
+
}
|
|
22
|
+
function exampleInputFileLine(file) {
|
|
23
|
+
return `Save this as ${file.path}: ${file.contents}`;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.shellQuote = shellQuote; exports.shellArgument = shellArgument; exports.exampleJsonInput = exampleJsonInput; exports.examplePlaceholderInput = examplePlaceholderInput; exports.exampleInputFileLine = exampleInputFileLine;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XD3MFTHA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-62AUAWQV.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BOZAP2EM.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UC4BDZKI.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-52Q5KETX.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/update.ts
|
|
23
23
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunkOVEYWO4Hjs = require('./chunk-OVEYWO4H.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVIUUTEHYjs = require('./chunk-VIUUTEHY.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkOVEYWO4Hjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkVIUUTEHYjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkVIUUTEHYjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -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 _chunkW6CZDTIRjs = require('./chunk-W6CZDTIR.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkVIUUTEHYjs = require('./chunk-VIUUTEHY.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 = _chunkVIUUTEHYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
28
|
+
const apiKey = _chunkVIUUTEHYjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
29
29
|
if (!apiKey) return "";
|
|
30
30
|
try {
|
|
31
|
-
const { status, data } = await
|
|
31
|
+
const { status, data } = await _chunkW6CZDTIRjs.httpJson.call(void 0,
|
|
32
32
|
"GET",
|
|
33
33
|
`${baseUrl}/api/v2/billing/entitlements`,
|
|
34
34
|
apiKey,
|
|
@@ -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 _chunk2HMN5H54js = require('./chunk-2HMN5H54.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 = _chunk2HMN5H54js.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",
|