deepline 0.3.568 → 0.3.570
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client-core.ts +20 -5
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +17 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +17 -1
- package/dist/cli/{auth-AV6JJ2Y6.mjs → auth-KHJKNEYN.mjs} +5 -5
- package/dist/cli/auth-X2LWGPF4.js +44 -0
- package/dist/cli/{billing-3RUXM4OW.js → billing-Q4BRUODF.js} +102 -102
- package/dist/cli/{billing-3RVJZROW.mjs → billing-R5AO4M3S.mjs} +9 -9
- package/dist/cli/{chunk-VVGHZ7S6.mjs → chunk-2GBOHROU.mjs} +1 -1
- package/dist/cli/{chunk-LKXBFVYU.js → chunk-2GTLZNSK.js} +53 -53
- package/dist/cli/{chunk-5KHSPLPO.js → chunk-2MXS53XJ.js} +20 -20
- package/dist/cli/{chunk-GXSJTCCG.mjs → chunk-3YHMHV6U.mjs} +4 -4
- package/dist/cli/{chunk-FQIOTHEZ.mjs → chunk-5OOGWYSR.mjs} +1 -1
- package/dist/cli/{chunk-G7GN3RGE.mjs → chunk-64MOX3SN.mjs} +15 -3
- package/dist/cli/{chunk-GLTA22I3.mjs → chunk-73RTZMDV.mjs} +84 -11
- package/dist/cli/{chunk-TSNVG3T5.mjs → chunk-77HEH4RY.mjs} +1 -1
- package/dist/cli/{chunk-SHO6BOXN.mjs → chunk-BEE5VGCL.mjs} +11 -11
- package/dist/cli/{chunk-ANRKUFUG.js → chunk-CHHXUEVC.js} +100 -100
- package/dist/cli/{chunk-RJJNXV36.js → chunk-DPZAEVPO.js} +20 -20
- package/dist/cli/{chunk-HQX2P4NH.mjs → chunk-EEUBKKJE.mjs} +1 -1
- package/dist/cli/{chunk-VIMSKO7W.mjs → chunk-EJB4V77N.mjs} +5 -5
- package/dist/cli/{chunk-VEPXXRHO.mjs → chunk-EYEPXZNS.mjs} +2 -2
- package/dist/cli/{chunk-O4FCX6BS.js → chunk-FABLUH75.js} +3 -3
- package/dist/cli/{chunk-DIPM4GTS.js → chunk-FDSQSUZF.js} +5 -5
- package/dist/cli/{chunk-RH3WIX2W.mjs → chunk-GFGXDDJH.mjs} +2 -2
- package/dist/cli/{chunk-F62RQL3X.js → chunk-GPXLMRCB.js} +3 -3
- package/dist/cli/{chunk-5SOJGKQM.mjs → chunk-HPWP2B3D.mjs} +1 -1
- package/dist/cli/{chunk-SONHOBIK.mjs → chunk-I4N62RWB.mjs} +2 -2
- package/dist/cli/{chunk-MOJOAX3X.mjs → chunk-I5EZZFQL.mjs} +3 -3
- package/dist/cli/{chunk-H4BU2RRU.js → chunk-J6M2AX3P.js} +118 -108
- package/dist/cli/{chunk-JJSKWDUI.js → chunk-J6PTH725.js} +6 -6
- package/dist/cli/{chunk-OWSTUCIB.js → chunk-JSHE4W6W.js} +5 -5
- package/dist/cli/{chunk-QVERY22Q.mjs → chunk-MH3WE5O6.mjs} +2 -2
- package/dist/cli/{chunk-BXNCAZ7G.mjs → chunk-MVHKTZCX.mjs} +1 -1
- package/dist/cli/{chunk-ZVJ2YNAH.js → chunk-N6KF6X3D.js} +15 -3
- package/dist/cli/{chunk-UPUBCTSS.js → chunk-NIO2T6OC.js} +2 -2
- package/dist/cli/{chunk-JIEUKZ7J.js → chunk-NR7QW2E7.js} +2 -2
- package/dist/cli/{chunk-4QGZUHDF.mjs → chunk-NVYQ6WCW.mjs} +5 -5
- package/dist/cli/{chunk-4PAGRUZA.js → chunk-NWAFCOUF.js} +15 -15
- package/dist/cli/{chunk-V5WFPMUC.mjs → chunk-O3ET4XR3.mjs} +4 -4
- package/dist/cli/{chunk-AAXGFMYQ.mjs → chunk-OOTXBEHG.mjs} +15 -5
- package/dist/cli/{chunk-KKIDGS7O.js → chunk-OPZHUL6T.js} +10 -10
- package/dist/cli/{chunk-RZMU7ISG.js → chunk-OV6EKORX.js} +26 -26
- package/dist/cli/{chunk-PPQHQ4J2.js → chunk-OWEUQCBZ.js} +48 -48
- package/dist/cli/{chunk-5NBR7V5U.js → chunk-PERYT4ZA.js} +1 -1
- package/dist/cli/{chunk-Y4Q4LQRX.js → chunk-PSMYOQFI.js} +13 -13
- package/dist/cli/{chunk-D2DYHEH7.js → chunk-Q4P6STRD.js} +23 -23
- package/dist/cli/{chunk-VW2EUXY2.mjs → chunk-RS6KPFQX.mjs} +5 -5
- package/dist/cli/{chunk-2BWPNLYG.js → chunk-SOZ2SB43.js} +9 -9
- package/dist/cli/{chunk-JPSKSXNS.mjs → chunk-TMT3S2JR.mjs} +2 -2
- package/dist/cli/{chunk-LQTLFFUB.mjs → chunk-TWHTVGGW.mjs} +2 -2
- package/dist/cli/{chunk-RUAEON5J.js → chunk-UDN6EYBJ.js} +4 -4
- package/dist/cli/{chunk-S2HGTJET.mjs → chunk-UWQLRBXY.mjs} +5 -5
- package/dist/cli/{chunk-WYXXJA5J.js → chunk-W26YT37U.js} +41 -41
- package/dist/cli/{chunk-TM3Z7JXT.mjs → chunk-WINZRS3A.mjs} +1 -1
- package/dist/cli/{chunk-JRTB75JO.js → chunk-WNUFRUNS.js} +95 -22
- package/dist/cli/{chunk-JT7S45KT.mjs → chunk-XHFSNMEU.mjs} +3 -3
- package/dist/cli/{chunk-7X34FUYS.js → chunk-YQP4ZUOJ.js} +7 -7
- package/dist/cli/{chunk-KMWH6VY2.mjs → chunk-YXJVYY5V.mjs} +2 -2
- package/dist/cli/{chunk-PE2XN2VM.js → chunk-ZGOCDLJQ.js} +2 -2
- package/dist/cli/{chunk-M3IMARRH.mjs → chunk-ZZ4D74UL.mjs} +1 -1
- package/dist/cli/{chunk-5KDMJLQX.js → chunk-ZZ7ZH27W.js} +5 -5
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-SJ27PPHV.mjs → concurrent-runs-help-Q26CEJ7I.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-QDURIV4N.js +22 -0
- package/dist/cli/{csv-ZN4QI6PJ.mjs → csv-6LI6HLKG.mjs} +4 -4
- package/dist/cli/{csv-BGXZKS5R.js → csv-Z34I5QIU.js} +13 -13
- package/dist/cli/{db-SVBVPMWN.mjs → db-K5GKIKQU.mjs} +6 -6
- package/dist/cli/{db-KTAZ5FBG.js → db-NUDEYQCF.js} +27 -27
- package/dist/cli/describe-BY7LKP53.js +50 -0
- package/dist/cli/{describe-4CGCRK24.mjs → describe-EB4KTEPT.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-YL5CTGWP.mjs → executions-DAGHJZEI.mjs} +6 -6
- package/dist/cli/{executions-75DO2GBS.js → executions-KHOUABZ3.js} +8 -8
- package/dist/cli/{feedback-VEA3XJM3.mjs → feedback-A57YETEA.mjs} +6 -6
- package/dist/cli/{feedback-2SMUBQZR.js → feedback-XLAWTPK2.js} +14 -14
- package/dist/cli/git-CR6PBWBH.js +26 -0
- package/dist/cli/{git-BEYEHMCX.mjs → git-U3FNR34D.mjs} +5 -5
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-RXWE6WUZ.mjs → integrations-LXUMB4RY.mjs} +7 -7
- package/dist/cli/{integrations-PIXZBU2N.js → integrations-YVOJ5D6W.js} +29 -29
- package/dist/cli/{legacy-noops-PJHP4GRU.mjs → legacy-noops-4Z2RBTHW.mjs} +6 -6
- package/dist/cli/{legacy-noops-XHVEYEJN.js → legacy-noops-IZVLGQZJ.js} +9 -9
- package/dist/cli/{mcp-276ZFIUM.js → mcp-GRGI3KYH.js} +24 -24
- package/dist/cli/{mcp-SUOIVUOM.mjs → mcp-ZHXRVV7D.mjs} +4 -4
- package/dist/cli/{monitors-AVGNLV7V.mjs → monitors-7ZVYJ3CX.mjs} +7 -7
- package/dist/cli/{monitors-DGBB7X4G.js → monitors-XFN5D6EW.js} +100 -100
- package/dist/cli/{org-U5275K5D.js → org-RWWXN5TK.js} +121 -121
- package/dist/cli/{org-WKP2BZJQ.mjs → org-YY5JTKNV.mjs} +6 -6
- package/dist/cli/{outcomes-LSCS6QE5.js → outcomes-AOZVYNJT.js} +14 -14
- package/dist/cli/{outcomes-H3RAH5ES.mjs → outcomes-MGWUZNQ6.mjs} +6 -6
- package/dist/cli/{play-7MSJU3LP.mjs → play-AJR7BT3R.mjs} +19 -19
- package/dist/cli/{play-GNT7SITC.js → play-S34KIOWS.js} +324 -324
- package/dist/cli/{providers-YDKHHCO4.mjs → providers-QRWQGVIC.mjs} +6 -6
- package/dist/cli/{providers-KTEG2ZNS.js → providers-S4WMWHBW.js} +9 -9
- package/dist/cli/{quickstart-T2NJMACU.js → quickstart-GET2M3BQ.js} +6 -6
- package/dist/cli/{quickstart-F6IH43NP.mjs → quickstart-NLAIOXVY.mjs} +4 -4
- package/dist/cli/{run-MIRJIW45.js → run-BOHHBZSI.js} +44 -44
- package/dist/cli/{run-AJB4MQGO.mjs → run-R2RYHNVS.mjs} +23 -23
- package/dist/cli/search-CZVM2OX5.js +32 -0
- package/dist/cli/{search-V6YPFL6J.mjs → search-VBIVRRRO.mjs} +7 -7
- package/dist/cli/{search-output-GGCIICSW.js → search-output-EVNRKEGZ.js} +6 -6
- package/dist/cli/{search-output-4VDZLO42.mjs → search-output-OCYIQFV6.mjs} +4 -4
- package/dist/cli/{secrets-L2VDRZDZ.js → secrets-52T2SCZ5.js} +15 -15
- package/dist/cli/{secrets-XUENPM5D.mjs → secrets-TNCO45WJ.mjs} +6 -6
- package/dist/cli/{sessions-W7LHEE35.mjs → sessions-4XE7AR3A.mjs} +6 -6
- package/dist/cli/sessions-GOHYDYMH.js +23 -0
- package/dist/cli/{settings-NB6Y53VR.js → settings-TKRF2B3K.js} +85 -85
- package/dist/cli/{settings-IVFOUU7V.mjs → settings-ZFCHR7MW.mjs} +12 -12
- package/dist/cli/{setup-2F42I4HW.js → setup-AWNE4VNL.js} +49 -49
- package/dist/cli/{setup-QUL7OO6A.mjs → setup-QY3ZML4C.mjs} +9 -9
- package/dist/cli/skills-54CGCMPF.js +37 -0
- package/dist/cli/{skills-SL3DNAH6.mjs → skills-GUGJDCFY.mjs} +7 -7
- package/dist/cli/tools-A7FEGDPX.js +57 -0
- package/dist/cli/{tools-TD5EJ2UD.mjs → tools-NBKPWOWD.mjs} +17 -17
- package/dist/cli/update-3J52CJHB.js +37 -0
- package/dist/cli/{update-Z53GM6PX.mjs → update-KLGVIBRY.mjs} +9 -9
- package/dist/cli/{views-VAQGFKXN.js → views-MDXEIVQ7.js} +21 -21
- package/dist/cli/{views-ZB6AOING.mjs → views-OEOW2EZO.mjs} +6 -6
- package/dist/cli/{workflow-OKDLEK3G.mjs → workflow-LK4SIUOM.mjs} +7 -7
- package/dist/cli/{workflow-PSIQ5HVP.js → workflow-PUSTWPW4.js} +17 -17
- package/dist/{client-D5mo-R-t.d.mts → client-ClJlqkKt.d.mts} +1 -1
- package/dist/{client-B8_eh5F-.d.ts → client-DCnExziW.d.ts} +1 -1
- package/dist/{client-core-Br12Asu-.d.ts → client-core-BKq5ZNAl.d.ts} +14 -2
- package/dist/{client-core-BPu-brbA.d.mts → client-core-DAOPQnGD.d.mts} +14 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -118
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-IPONFGG7.js +0 -44
- package/dist/cli/concurrent-runs-help-66WCD2Y4.js +0 -22
- package/dist/cli/describe-M3MOFAVN.js +0 -50
- package/dist/cli/git-XDS5BHBG.js +0 -26
- package/dist/cli/search-YPZ575MY.js +0 -32
- package/dist/cli/sessions-GJLSOVLW.js +0 -23
- package/dist/cli/skills-2KAEOH2N.js +0 -37
- package/dist/cli/tools-W6223Q4W.js +0 -57
- package/dist/cli/update-IZBYF422.js +0 -37
|
@@ -1,16 +1,19 @@
|
|
|
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 _chunkZZ7ZH27Wjs = require('./chunk-ZZ7ZH27W.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2MXS53XJjs = require('./chunk-2MXS53XJ.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkFABLUH75js = require('./chunk-FABLUH75.js');
|
|
7
10
|
|
|
8
11
|
// src/cli/commands/integration-commands.ts
|
|
9
12
|
var _commander = require('commander');
|
|
10
13
|
var _fs = require('fs');
|
|
11
14
|
var _path = require('path');
|
|
12
15
|
function printIntegrationResult(value, json, lines, nextCursor) {
|
|
13
|
-
|
|
16
|
+
_chunk2MXS53XJjs.printCommandEnvelope.call(void 0,
|
|
14
17
|
{},
|
|
15
18
|
{
|
|
16
19
|
json: json || void 0,
|
|
@@ -26,7 +29,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
|
|
|
26
29
|
return parent.command("balance <provider>", { hidden }).description(
|
|
27
30
|
"Read a fresh balance using this org\u2019s own provider connection (LeadMagic)."
|
|
28
31
|
).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
|
|
29
|
-
const balance = await new (0,
|
|
32
|
+
const balance = await new (0, _chunkZZ7ZH27Wjs.DeeplineClient)().getIntegrationBalance(
|
|
30
33
|
provider
|
|
31
34
|
);
|
|
32
35
|
printIntegrationResult(balance, options.json, [
|
|
@@ -40,7 +43,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
40
43
|
"List teammates\u2019 personal connections for this provider"
|
|
41
44
|
).option("--cursor <cursor>", "Read the next page of members").action(
|
|
42
45
|
async (options) => {
|
|
43
|
-
const client = new (0,
|
|
46
|
+
const client = new (0, _chunkZZ7ZH27Wjs.DeeplineClient)();
|
|
44
47
|
if (name === "list" && options.cursor && !options.members)
|
|
45
48
|
throw new Error(
|
|
46
49
|
"Use --cursor with --members to continue a member page."
|
|
@@ -82,7 +85,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
82
85
|
}
|
|
83
86
|
function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
|
|
84
87
|
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,
|
|
88
|
+
const page = await new (0, _chunkZZ7ZH27Wjs.DeeplineClient)().listPersonalHubSpotMembers(
|
|
86
89
|
options.cursor
|
|
87
90
|
);
|
|
88
91
|
const rows = page.members.map((member) => {
|
|
@@ -108,7 +111,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
|
|
|
108
111
|
);
|
|
109
112
|
if (options.autoName && (action !== "connect" || options.name !== void 0))
|
|
110
113
|
throw new Error("Use --auto-name with connect and omit --name.");
|
|
111
|
-
const client = new (0,
|
|
114
|
+
const client = new (0, _chunkZZ7ZH27Wjs.DeeplineClient)();
|
|
112
115
|
const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
|
|
113
116
|
const row = connections.find(
|
|
114
117
|
(connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
|
|
@@ -141,7 +144,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
141
144
|
"Print the proposed change without contacting Google or saving it"
|
|
142
145
|
).option("--json", "Print the result as JSON").action(
|
|
143
146
|
async (action, options) => {
|
|
144
|
-
const client = new (0,
|
|
147
|
+
const client = new (0, _chunkZZ7ZH27Wjs.DeeplineClient)();
|
|
145
148
|
if (action === "list") {
|
|
146
149
|
const inventory = await client.listCalendarAvailabilityConnections();
|
|
147
150
|
const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
|
|
@@ -291,7 +294,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
291
294
|
}
|
|
292
295
|
function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
|
|
293
296
|
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,
|
|
297
|
+
const page = await new (0, _chunkZZ7ZH27Wjs.DeeplineClient)().listAvailabilityCalendars(
|
|
295
298
|
options.cursor
|
|
296
299
|
);
|
|
297
300
|
printIntegrationResult(page, options.json, [
|
|
@@ -329,7 +332,12 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
329
332
|
).option(
|
|
330
333
|
"--credentials-file <path>",
|
|
331
334
|
"JSON object of credential field names and string values; keep this file private"
|
|
332
|
-
).option("--oauth", "Return an OAuth authorization URL").addOption(
|
|
335
|
+
).option("--oauth", "Return an OAuth authorization URL").addOption(
|
|
336
|
+
new (0, _commander.Option)(
|
|
337
|
+
"--org-default",
|
|
338
|
+
"Write the org default even when a workspace is selected"
|
|
339
|
+
).conflicts(["link"])
|
|
340
|
+
).addOption(new (0, _commander.Option)("--expected-connection-id <id>").hideHelp()).option("--preset <id>", "Server-defined access preset (HubSpot only)").option("--scopes <scopes>", "Comma-separated OAuth scopes").option(
|
|
333
341
|
"--optional-scopes <scopes>",
|
|
334
342
|
"Comma-separated optional OAuth scopes"
|
|
335
343
|
).option(
|
|
@@ -349,11 +357,14 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
349
357
|
"--managed requires --company-domain, --company-legal-name and --company-country."
|
|
350
358
|
);
|
|
351
359
|
}
|
|
360
|
+
const teamId2 = connectTeamId(options.orgDefault);
|
|
361
|
+
refuseManagedWorkspaceConnect(provider, teamId2);
|
|
352
362
|
if (options.dryRun) {
|
|
353
363
|
printSetupPlan(
|
|
354
364
|
{
|
|
355
365
|
provider,
|
|
356
366
|
action: "connect_managed",
|
|
367
|
+
team_id: teamId2,
|
|
357
368
|
terms_version: _nullishCoalesce(options.acceptTerms, () => ( "not accepted")),
|
|
358
369
|
company_domain: options.companyDomain
|
|
359
370
|
},
|
|
@@ -361,7 +372,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
361
372
|
);
|
|
362
373
|
return;
|
|
363
374
|
}
|
|
364
|
-
const result2 = await new (0,
|
|
375
|
+
const result2 = await new (0, _chunkZZ7ZH27Wjs.DeeplineClient)().connectManagedIntegration(
|
|
365
376
|
provider,
|
|
366
377
|
{
|
|
367
378
|
termsVersion: options.acceptTerms,
|
|
@@ -380,10 +391,11 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
380
391
|
const confirmation2 = {
|
|
381
392
|
provider,
|
|
382
393
|
credential_saved: true,
|
|
383
|
-
credential_mode: "partner_managed"
|
|
394
|
+
credential_mode: "partner_managed",
|
|
395
|
+
team_id: teamId2
|
|
384
396
|
};
|
|
385
397
|
printIntegrationResult(confirmation2, options.json, [
|
|
386
|
-
`${provider} is connected
|
|
398
|
+
`${provider} is connected with a Deepline-managed key for ${describeConnectTarget(teamId2)}. Usage is billed in Deepline credits.`
|
|
387
399
|
]);
|
|
388
400
|
return;
|
|
389
401
|
}
|
|
@@ -397,7 +409,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
397
409
|
printSetupPlan({ provider, action: "connect_link" }, options.json);
|
|
398
410
|
return;
|
|
399
411
|
}
|
|
400
|
-
const link = await new (0,
|
|
412
|
+
const link = await new (0, _chunkZZ7ZH27Wjs.DeeplineClient)().getIntegrationConnectLink(
|
|
401
413
|
provider
|
|
402
414
|
);
|
|
403
415
|
printIntegrationResult(link, options.json, [link.connect_url]);
|
|
@@ -411,11 +423,14 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
411
423
|
const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
|
|
412
424
|
if (options.scopes !== void 0 && splitScopes(options.scopes).length === 0)
|
|
413
425
|
throw new Error("scopes must contain at least one OAuth scope.");
|
|
426
|
+
const teamId2 = connectTeamId(options.orgDefault);
|
|
427
|
+
refuseMetaWorkspaceConnect(provider, teamId2);
|
|
414
428
|
if (options.dryRun) {
|
|
415
429
|
printSetupPlan(
|
|
416
430
|
{
|
|
417
431
|
provider,
|
|
418
432
|
action: "oauth",
|
|
433
|
+
team_id: teamId2,
|
|
419
434
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
420
435
|
...options.scopes !== void 0 ? { scopes: splitScopes(options.scopes) } : {},
|
|
421
436
|
...options.optionalScopes !== void 0 ? { optionalScopes: splitScopes(options.optionalScopes) } : {}
|
|
@@ -424,22 +439,31 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
424
439
|
);
|
|
425
440
|
return;
|
|
426
441
|
}
|
|
427
|
-
const result2 = await new (0,
|
|
442
|
+
const result2 = await new (0, _chunkZZ7ZH27Wjs.DeeplineClient)().startIntegrationOAuth(
|
|
428
443
|
provider,
|
|
429
444
|
{
|
|
430
445
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
431
446
|
...options.scopes !== void 0 ? { scopes: splitScopes(options.scopes) } : {},
|
|
432
|
-
...options.optionalScopes !== void 0 ? { optionalScopes: splitScopes(options.optionalScopes) } : {}
|
|
447
|
+
...options.optionalScopes !== void 0 ? { optionalScopes: splitScopes(options.optionalScopes) } : {},
|
|
448
|
+
teamId: teamId2
|
|
433
449
|
}
|
|
434
450
|
);
|
|
451
|
+
const confirmed2 = assertConnectTarget(result2, teamId2);
|
|
435
452
|
if (!result2.ok || typeof result2.redirect_url !== "string" || !result2.redirect_url)
|
|
436
453
|
throw new Error(
|
|
437
454
|
"The API did not return an OAuth authorization URL."
|
|
438
455
|
);
|
|
439
456
|
printIntegrationResult(
|
|
440
|
-
{ provider, redirect_url: result2.redirect_url },
|
|
457
|
+
{ provider, redirect_url: result2.redirect_url, team_id: teamId2 },
|
|
441
458
|
options.json,
|
|
442
|
-
[
|
|
459
|
+
[
|
|
460
|
+
result2.redirect_url,
|
|
461
|
+
connectTargetLine(
|
|
462
|
+
`This connects ${provider} for`,
|
|
463
|
+
teamId2,
|
|
464
|
+
confirmed2
|
|
465
|
+
)
|
|
466
|
+
]
|
|
443
467
|
);
|
|
444
468
|
return;
|
|
445
469
|
}
|
|
@@ -447,11 +471,14 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
447
471
|
throw new Error(
|
|
448
472
|
"Use --link for a dashboard link, --credentials-file to save credentials, or --oauth to request access."
|
|
449
473
|
);
|
|
474
|
+
const teamId = connectTeamId(options.orgDefault);
|
|
475
|
+
refuseMetaWorkspaceConnect(provider, teamId);
|
|
450
476
|
if (options.dryRun) {
|
|
451
477
|
printSetupPlan(
|
|
452
478
|
{
|
|
453
479
|
provider,
|
|
454
480
|
action: "save_credentials",
|
|
481
|
+
team_id: teamId,
|
|
455
482
|
credentials_file: options.credentialsFile,
|
|
456
483
|
...options.expectedConnectionId ? { expected_connection_id: options.expectedConnectionId } : {}
|
|
457
484
|
},
|
|
@@ -474,23 +501,69 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
474
501
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
475
502
|
);
|
|
476
503
|
}
|
|
477
|
-
const result = await new (0,
|
|
504
|
+
const result = await new (0, _chunkZZ7ZH27Wjs.DeeplineClient)().setIntegrationCredentials(
|
|
478
505
|
provider,
|
|
479
506
|
credentials,
|
|
480
|
-
{ expectedConnectionId: options.expectedConnectionId }
|
|
507
|
+
{ expectedConnectionId: options.expectedConnectionId, teamId }
|
|
481
508
|
);
|
|
482
509
|
if (!result.ok || result.credential_saved !== true) {
|
|
483
510
|
throw new Error(
|
|
484
511
|
"The API did not confirm that provider credentials were saved. Inspect the integration before retrying."
|
|
485
512
|
);
|
|
486
513
|
}
|
|
487
|
-
const
|
|
514
|
+
const confirmed = assertConnectTarget(result, teamId);
|
|
515
|
+
const confirmation = {
|
|
516
|
+
provider,
|
|
517
|
+
credential_saved: true,
|
|
518
|
+
team_id: teamId
|
|
519
|
+
};
|
|
488
520
|
printIntegrationResult(confirmation, options.json, [
|
|
489
|
-
|
|
521
|
+
connectTargetLine(
|
|
522
|
+
`Credentials saved for ${provider} in`,
|
|
523
|
+
teamId,
|
|
524
|
+
confirmed
|
|
525
|
+
)
|
|
490
526
|
]);
|
|
491
527
|
}
|
|
492
528
|
);
|
|
493
529
|
}
|
|
530
|
+
function connectTeamId(orgDefault) {
|
|
531
|
+
if (orgDefault) return null;
|
|
532
|
+
try {
|
|
533
|
+
return _nullishCoalesce(_chunkFABLUH75js.resolveConfig.call(void 0, ).workspace, () => ( null));
|
|
534
|
+
} catch (e2) {
|
|
535
|
+
return _optionalChain([process, 'access', _9 => _9.env, 'access', _10 => _10.DEEPLINE_WORKSPACE_ID, 'optionalAccess', _11 => _11.trim, 'call', _12 => _12()]) || null;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
function describeConnectTarget(teamId) {
|
|
539
|
+
return teamId ? `workspace ${teamId} (its own connection; other workspaces are unchanged)` : "the org default (used by every workspace without its own connection)";
|
|
540
|
+
}
|
|
541
|
+
function assertConnectTarget(result, teamId) {
|
|
542
|
+
if (!("team_id" in result)) return false;
|
|
543
|
+
if ((_nullishCoalesce(result.team_id, () => ( null))) !== teamId) {
|
|
544
|
+
throw new Error(
|
|
545
|
+
`The API wrote ${describeConnectTarget(_nullishCoalesce(result.team_id, () => ( null)))}, not ${describeConnectTarget(teamId)}. Inspect the integration before retrying.`
|
|
546
|
+
);
|
|
547
|
+
}
|
|
548
|
+
return true;
|
|
549
|
+
}
|
|
550
|
+
function connectTargetLine(prefix, teamId, confirmed) {
|
|
551
|
+
if (confirmed) return `${prefix} ${describeConnectTarget(teamId)}.`;
|
|
552
|
+
const requested = teamId ? `workspace ${teamId}` : "the org default";
|
|
553
|
+
return `${prefix} ${requested} (requested; this server did not confirm the target).`;
|
|
554
|
+
}
|
|
555
|
+
function refuseMetaWorkspaceConnect(provider, teamId) {
|
|
556
|
+
if (provider !== "meta_audiences" || !teamId) return;
|
|
557
|
+
throw new Error(
|
|
558
|
+
`Meta Audiences connects workspace ${teamId} with a system user token: run \`deepline org workspaces integrations set ${teamId} meta_audiences --api-key-stdin\`, or pass --org-default to connect the org default.`
|
|
559
|
+
);
|
|
560
|
+
}
|
|
561
|
+
function refuseManagedWorkspaceConnect(provider, teamId) {
|
|
562
|
+
if (!teamId) return;
|
|
563
|
+
throw new Error(
|
|
564
|
+
`A Deepline-managed ${provider} key is set up for the whole org, not workspace ${teamId}. Pass --org-default to connect the org default, or --credentials-file to give this workspace its own key.`
|
|
565
|
+
);
|
|
566
|
+
}
|
|
494
567
|
function printSetupPlan(plan, json) {
|
|
495
568
|
printIntegrationResult(
|
|
496
569
|
plan,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WINZRS3A.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I4N62RWB.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment,
|
|
10
10
|
claudeProjectsRoots,
|
|
11
11
|
coworkTranscriptFromEnvironment
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HPWP2B3D.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
import {
|
|
@@ -9,7 +9,7 @@ var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk2MXS53XJjs = require('./chunk-2MXS53XJ.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
|
|
|
250
250
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
251
251
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
252
252
|
if (typeof logicalValue === "object") {
|
|
253
|
-
return
|
|
253
|
+
return _chunk2MXS53XJjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
254
254
|
}
|
|
255
255
|
return logicalValue;
|
|
256
256
|
}
|
|
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
|
|
|
642
642
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
643
|
columns
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return _chunk2MXS53XJjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
648
|
let temp;
|
|
@@ -770,7 +770,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
770
770
|
};
|
|
771
771
|
if (options.receiptOut && !skipReceiptFile) {
|
|
772
772
|
persist(options.receiptOut, jsonText(receipt));
|
|
773
|
-
|
|
773
|
+
_chunk2MXS53XJjs.markJsonOutputHandled.call(void 0, );
|
|
774
774
|
} else {
|
|
775
775
|
printReceipt(receipt, options, {
|
|
776
776
|
data: hasData ? result.data : void 0,
|
|
@@ -939,7 +939,7 @@ function receiptText(receipt, options, extra) {
|
|
|
939
939
|
problems.push(
|
|
940
940
|
`Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
|
|
941
941
|
);
|
|
942
|
-
const diagnostic =
|
|
942
|
+
const diagnostic = _chunk2MXS53XJjs.formatCliFailureDiagnostic.call(void 0, error);
|
|
943
943
|
if (diagnostic) problems.push(...diagnostic.split("\n"));
|
|
944
944
|
if (record(error) && typeof error.recoveryFile === "string") {
|
|
945
945
|
problems.push(
|
|
@@ -1032,8 +1032,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1032
1032
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1033
1033
|
` : receiptText(receipt, options, extra);
|
|
1034
1034
|
if (options.receiptOut !== void 0) {
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
_chunk2MXS53XJjs.writeRawStderr.call(void 0, text);
|
|
1036
|
+
_chunk2MXS53XJjs.markJsonOutputHandled.call(void 0, );
|
|
1037
1037
|
} else {
|
|
1038
1038
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1039
1039
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OOTXBEHG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-77HEH4RY.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2MXS53XJjs = require('./chunk-2MXS53XJ.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunk2MXS53XJjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -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 _chunkJ6M2AX3Pjs = require('./chunk-J6M2AX3P.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFABLUH75js = require('./chunk-FABLUH75.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkJ6M2AX3Pjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkFABLUH75js.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkFABLUH75js.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkN6KF6X3Djs = require('./chunk-N6KF6X3D.js');
|
|
11
11
|
require('./chunk-H4ALLC2X.js');
|
|
12
12
|
require('./chunk-E2G2DNAB.js');
|
|
13
13
|
require('./chunk-YGCKMI5P.js');
|
|
@@ -21,4 +21,4 @@ require('./chunk-COGTRVWW.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
exports.CLI_DOC_SURFACE =
|
|
24
|
+
exports.CLI_DOC_SURFACE = _chunkN6KF6X3Djs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkN6KF6X3Djs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunkN6KF6X3Djs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunkN6KF6X3Djs.commandDocKey; exports.helpDetailFromArgv = _chunkN6KF6X3Djs.helpDetailFromArgv; exports.renderActionExplanation = _chunkN6KF6X3Djs.renderActionExplanation; exports.renderCommandExplanation = _chunkN6KF6X3Djs.renderCommandExplanation; exports.renderDocText = _chunkN6KF6X3Djs.renderDocText;
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
CONCURRENT_RUNS_HELP_COMMANDS,
|
|
3
3
|
concurrentRunsHelpStatus,
|
|
4
4
|
concurrentRunsLine
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-MH3WE5O6.mjs";
|
|
6
|
+
import "./chunk-I5EZZFQL.mjs";
|
|
7
7
|
import "./chunk-2RIKOPIM.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-I4N62RWB.mjs";
|
|
9
|
+
import "./chunk-77HEH4RY.mjs";
|
|
10
|
+
import "./chunk-HPWP2B3D.mjs";
|
|
11
11
|
import "./chunk-ASB47RXJ.mjs";
|
|
12
12
|
import "./chunk-DLIRSHV6.mjs";
|
|
13
13
|
import "./chunk-Z3A2S3QM.mjs";
|
|
14
14
|
import "./chunk-2MGZAI54.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-5OOGWYSR.mjs";
|
|
16
16
|
import "./chunk-WZYKRD7T.mjs";
|
|
17
17
|
import "./chunk-KRD6H754.mjs";
|
|
18
18
|
export {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkJSHE4W6Wjs = require('./chunk-JSHE4W6W.js');
|
|
6
|
+
require('./chunk-2GTLZNSK.js');
|
|
7
|
+
require('./chunk-H4ALLC2X.js');
|
|
8
|
+
require('./chunk-2MXS53XJ.js');
|
|
9
|
+
require('./chunk-FABLUH75.js');
|
|
10
|
+
require('./chunk-UDN6EYBJ.js');
|
|
11
|
+
require('./chunk-6VLFQZK6.js');
|
|
12
|
+
require('./chunk-XNYIZMNQ.js');
|
|
13
|
+
require('./chunk-LFQJW4S2.js');
|
|
14
|
+
require('./chunk-CFJFUVX2.js');
|
|
15
|
+
require('./chunk-PERYT4ZA.js');
|
|
16
|
+
require('./chunk-OG64RBAC.js');
|
|
17
|
+
require('./chunk-COGTRVWW.js');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.CONCURRENT_RUNS_HELP_COMMANDS = _chunkJSHE4W6Wjs.CONCURRENT_RUNS_HELP_COMMANDS; exports.concurrentRunsHelpStatus = _chunkJSHE4W6Wjs.concurrentRunsHelpStatus; exports.concurrentRunsLine = _chunkJSHE4W6Wjs.concurrentRunsLine;
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-I4N62RWB.mjs";
|
|
8
|
+
import "./chunk-77HEH4RY.mjs";
|
|
9
|
+
import "./chunk-HPWP2B3D.mjs";
|
|
10
10
|
import "./chunk-ASB47RXJ.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-Z3A2S3QM.mjs";
|
|
13
13
|
import "./chunk-2MGZAI54.mjs";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-5OOGWYSR.mjs";
|
|
15
15
|
import "./chunk-WZYKRD7T.mjs";
|
|
16
16
|
import "./chunk-KRD6H754.mjs";
|
|
17
17
|
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunk2MXS53XJjs = require('./chunk-2MXS53XJ.js');
|
|
8
|
+
require('./chunk-FABLUH75.js');
|
|
9
|
+
require('./chunk-UDN6EYBJ.js');
|
|
10
10
|
require('./chunk-6VLFQZK6.js');
|
|
11
11
|
require('./chunk-XNYIZMNQ.js');
|
|
12
12
|
require('./chunk-LFQJW4S2.js');
|
|
13
13
|
require('./chunk-CFJFUVX2.js');
|
|
14
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-PERYT4ZA.js');
|
|
15
15
|
require('./chunk-OG64RBAC.js');
|
|
16
16
|
require('./chunk-COGTRVWW.js');
|
|
17
17
|
|
|
@@ -129,7 +129,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
129
129
|
column.length,
|
|
130
130
|
...rows.map((row) => {
|
|
131
131
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
132
|
-
return (verbose ? value :
|
|
132
|
+
return (verbose ? value : _chunk2MXS53XJjs.clip.call(void 0, value, 42)).length;
|
|
133
133
|
})
|
|
134
134
|
)
|
|
135
135
|
])
|
|
@@ -139,7 +139,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
139
139
|
const body = rows.map(
|
|
140
140
|
(row) => columns.map((column) => {
|
|
141
141
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
142
|
-
const display = verbose ? raw :
|
|
142
|
+
const display = verbose ? raw : _chunk2MXS53XJjs.clip.call(void 0, raw, 42);
|
|
143
143
|
return display.padEnd(widths[column]);
|
|
144
144
|
}).join(" | ")
|
|
145
145
|
);
|
|
@@ -159,7 +159,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
159
159
|
{ exitCode: 2 }
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
|
-
const allRows =
|
|
162
|
+
const allRows = _chunk2MXS53XJjs.readCsvRows.call(void 0, csvPath);
|
|
163
163
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
164
164
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
165
165
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -172,7 +172,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
172
172
|
if (options.summary) {
|
|
173
173
|
const summaries = summarizeColumns(selected, columns);
|
|
174
174
|
if (format === "json") {
|
|
175
|
-
|
|
175
|
+
_chunk2MXS53XJjs.printJson.call(void 0, {
|
|
176
176
|
rows: summaries,
|
|
177
177
|
total_rows: selected.length,
|
|
178
178
|
source_total_rows: allRows.length
|
|
@@ -181,7 +181,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
181
181
|
}
|
|
182
182
|
const displayRows = summaryDisplayRows(summaries);
|
|
183
183
|
if (format === "csv") {
|
|
184
|
-
process.stdout.write(
|
|
184
|
+
process.stdout.write(_chunk2MXS53XJjs.csvStringFromRows.call(void 0, displayRows));
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
process.stdout.write(
|
|
@@ -196,7 +196,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
198
|
if (format === "json") {
|
|
199
|
-
|
|
199
|
+
_chunk2MXS53XJjs.printJson.call(void 0, {
|
|
200
200
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
201
201
|
});
|
|
202
202
|
return;
|
|
@@ -444,7 +444,7 @@ async function handleCsvRenderStart(options) {
|
|
|
444
444
|
if (log) {
|
|
445
445
|
detail = `
|
|
446
446
|
CSV render log:
|
|
447
|
-
${
|
|
447
|
+
${_chunk2MXS53XJjs.clip.call(void 0, log, 2e3)}`;
|
|
448
448
|
}
|
|
449
449
|
} catch (e7) {
|
|
450
450
|
}
|
|
@@ -495,7 +495,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
495
495
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
496
496
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
497
497
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
498
|
-
|
|
498
|
+
_chunk2MXS53XJjs.printCommandEnvelope.call(void 0, payload, {
|
|
499
499
|
json: options.json,
|
|
500
500
|
text: `${lines.join("\n")}
|
|
501
501
|
`
|
|
@@ -531,7 +531,7 @@ async function handleCsvRenderStop(options) {
|
|
|
531
531
|
};
|
|
532
532
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
533
533
|
` : "No running CSV render process found.\n";
|
|
534
|
-
|
|
534
|
+
_chunk2MXS53XJjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
535
535
|
}
|
|
536
536
|
async function handleCsvRender(action, options) {
|
|
537
537
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-STXDSVQZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TWHTVGGW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
planCustomerDbQuery
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OOTXBEHG.mjs";
|
|
10
10
|
import "./chunk-FZHMNK6F.mjs";
|
|
11
11
|
import "./chunk-5TYLSS4Q.mjs";
|
|
12
12
|
import "./chunk-PSX3WHIH.mjs";
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
printCommandEnvelope,
|
|
20
20
|
recordRows,
|
|
21
21
|
shouldEmitJson
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-I4N62RWB.mjs";
|
|
23
|
+
import "./chunk-77HEH4RY.mjs";
|
|
24
|
+
import "./chunk-HPWP2B3D.mjs";
|
|
25
25
|
import {
|
|
26
26
|
CustomerDbQueryOutcomeUnknownError
|
|
27
27
|
} from "./chunk-ASB47RXJ.mjs";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
DeeplineError
|
|
31
31
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
32
32
|
import "./chunk-2MGZAI54.mjs";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-5OOGWYSR.mjs";
|
|
34
34
|
import "./chunk-WZYKRD7T.mjs";
|
|
35
35
|
import "./chunk-KRD6H754.mjs";
|
|
36
36
|
|