deepline 0.3.549 → 0.3.551
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 +22 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/tool-connection.ts +42 -0
- package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +31 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +187 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +70 -19
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +854 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +15 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +6 -2
- package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +43 -0
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +1 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +38 -5
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +16 -0
- package/dist/cli/auth-B4PI7GVY.js +43 -0
- package/dist/cli/{auth-YENF525S.mjs → auth-E7BH4GMJ.mjs} +5 -5
- package/dist/cli/{billing-52GAHIDZ.js → billing-DNQAZGX7.js} +99 -99
- package/dist/cli/{billing-XPXB27G7.mjs → billing-OXKU462W.mjs} +10 -10
- package/dist/cli/chunk-2RIKOPIM.mjs +9 -0
- package/dist/cli/{chunk-L6UMWAAY.mjs → chunk-2UXDHFSF.mjs} +1 -1
- package/dist/cli/{chunk-XYIECA7M.js → chunk-2WFPHBR4.js} +30 -8
- package/dist/cli/{chunk-HWCIU3KY.js → chunk-2ZYRBMQM.js} +23 -22
- package/dist/cli/{chunk-NVALIJQS.js → chunk-3G6QZACZ.js} +23 -20
- package/dist/cli/{chunk-BPBPY42E.js → chunk-3KYBDAR3.js} +7 -7
- package/dist/cli/{chunk-DCTEH6N5.mjs → chunk-3T65J5RG.mjs} +2 -2
- package/dist/cli/{chunk-DIRLEJJX.js → chunk-44I675YK.js} +42 -41
- package/dist/cli/{chunk-LP2VNGG3.mjs → chunk-44KSACJW.mjs} +2 -2
- package/dist/cli/{chunk-X4RGDE4J.mjs → chunk-4D3WIZST.mjs} +1 -1
- package/dist/cli/{chunk-7FY7AHR6.js → chunk-4OMAGJ6U.js} +2 -2
- package/dist/cli/{chunk-TYOAOSDL.js → chunk-54EEYLTF.js} +3 -3
- package/dist/cli/{chunk-PLAJ6HPD.mjs → chunk-5IL7SC45.mjs} +2 -2
- package/dist/cli/{chunk-XS72HELO.mjs → chunk-5S6PHKRV.mjs} +2 -1
- package/dist/cli/{chunk-4HSSPT73.js → chunk-5VVSEU67.js} +6 -6
- package/dist/cli/{chunk-ANOTB6V3.mjs → chunk-6PWJKMFQ.mjs} +5 -4
- package/dist/cli/{chunk-MAE3AKDR.mjs → chunk-7DOQ3OEX.mjs} +17 -8
- package/dist/cli/{chunk-RMKRZJOS.js → chunk-7RSIFA72.js} +18 -16
- package/dist/cli/{chunk-4AUV5QJF.mjs → chunk-7WQNWJQW.mjs} +7 -5
- package/dist/cli/{chunk-6P7TGCHQ.mjs → chunk-BGBJV26E.mjs} +10 -3
- package/dist/cli/{chunk-UGVXHT62.mjs → chunk-BIIJATTX.mjs} +2 -2
- package/dist/cli/{chunk-ADWMIZCB.js → chunk-C4CUZH57.js} +20 -11
- package/dist/cli/{chunk-PQX4WTBY.mjs → chunk-CLRAANWH.mjs} +1 -1
- package/dist/cli/{chunk-XPYCNA43.js → chunk-COGREZAO.js} +48 -44
- package/dist/cli/{chunk-QUELC3B2.js → chunk-CQ6JYQSW.js} +10 -10
- package/dist/cli/{chunk-Z3DKJOUL.mjs → chunk-D6M5HFBB.mjs} +1 -1
- package/dist/cli/{chunk-W77LBYF3.mjs → chunk-E64HFB4L.mjs} +13 -13
- package/dist/cli/{chunk-BDOLPGHD.mjs → chunk-FOTGUFVK.mjs} +3 -3
- package/dist/cli/{chunk-4QUWXUUJ.mjs → chunk-GGB3JYCW.mjs} +3 -2
- package/dist/cli/{chunk-7AOFSZJM.mjs → chunk-GGGAEVCX.mjs} +23 -1
- package/dist/cli/{chunk-PLJCY35C.mjs → chunk-GVYLCCKN.mjs} +1 -1
- package/dist/cli/{chunk-UV4RU2TE.js → chunk-H4ALLC2X.js} +2 -0
- package/dist/cli/{chunk-V5WPYOAE.mjs → chunk-HEHVGEZV.mjs} +10 -7
- package/dist/cli/{chunk-AZSVDAXT.mjs → chunk-I4VKGNAQ.mjs} +9 -5
- package/dist/cli/{chunk-RKF263LR.js → chunk-KWSH5T7K.js} +25 -18
- package/dist/cli/{chunk-4DJNXAPH.js → chunk-LPJPCGT3.js} +8 -8
- package/dist/cli/{chunk-Y5SKYU5X.mjs → chunk-MNSTCJMX.mjs} +3 -3
- package/dist/cli/{chunk-Y5MDCPWA.js → chunk-MR5LTVHD.js} +53 -53
- package/dist/cli/{chunk-LMFTDDAM.mjs → chunk-MXGA6JFI.mjs} +2 -2
- package/dist/cli/{chunk-BDUZJX4V.js → chunk-NMWGZD6Y.js} +26 -26
- package/dist/cli/{chunk-5622PYAP.js → chunk-PACD5DGC.js} +4 -4
- package/dist/cli/{chunk-CX4KGWCH.mjs → chunk-PM7MO62Y.mjs} +3 -3
- package/dist/cli/{chunk-ETLEPHLT.js → chunk-POLUE7D5.js} +11 -11
- package/dist/cli/{chunk-VLAJGF27.js → chunk-PPSDCN6C.js} +3 -2
- package/dist/cli/{chunk-KBMBNUUW.js → chunk-QM6Y6S4E.js} +5 -5
- package/dist/cli/{chunk-YX7BX2FA.mjs → chunk-RE5MJBEV.mjs} +2 -2
- package/dist/cli/{chunk-5CXE22BI.mjs → chunk-S7IZWGUA.mjs} +2 -2
- package/dist/cli/{chunk-OWX4AAJ4.js → chunk-T2B5BVZE.js} +13 -13
- package/dist/cli/{chunk-3IUQNHIG.js → chunk-UDXULACQ.js} +3 -3
- package/dist/cli/{chunk-ECWOIXAV.js → chunk-UPMRIVZB.js} +14 -12
- package/dist/cli/{chunk-U6KHWIAO.mjs → chunk-V6SCP4B7.mjs} +1 -1
- package/dist/cli/{chunk-V7WMNX4R.js → chunk-VTGG2RT3.js} +1 -1
- package/dist/cli/{chunk-QIZBUY2N.mjs → chunk-VWLHRZFG.mjs} +4 -4
- package/dist/cli/{chunk-YZTS3XA7.js → chunk-W2ZWQUHT.js} +2 -2
- package/dist/cli/{chunk-5T37KQNG.mjs → chunk-W425ERWN.mjs} +6 -5
- package/dist/cli/{chunk-GWNYLIF7.mjs → chunk-WEHCBH5R.mjs} +4 -2
- package/dist/cli/{chunk-CXFOYRI4.js → chunk-WKBHUB6R.js} +270 -270
- package/dist/cli/{chunk-SVNAP2QI.js → chunk-XYE5XPGF.js} +9 -9
- package/dist/cli/{chunk-HPSCRVTM.js → chunk-Z2FIOG3V.js} +12 -12
- package/dist/cli/{chunk-KTZ3VU6S.js → chunk-ZCDKE4UH.js} +5 -5
- package/dist/cli/{chunk-QGKX2WBZ.js → chunk-ZDQFBJPO.js} +20 -19
- package/dist/cli/{chunk-J6FINSAK.mjs → chunk-ZMNGZ6XS.mjs} +1 -1
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/{concurrent-runs-help-OYSLW55L.mjs → concurrent-runs-help-C6L6I5OR.mjs} +7 -7
- package/dist/cli/concurrent-runs-help-JEFQZTJI.js +21 -0
- package/dist/cli/{csv-FRO3UFMQ.js → csv-QMF4FWE7.js} +19 -14
- package/dist/cli/{csv-TFCTUYF2.mjs → csv-SYSDXFEM.mjs} +10 -5
- package/dist/cli/{db-NHVZBT2H.mjs → db-Q7HURWRZ.mjs} +6 -6
- package/dist/cli/{db-SNFNRVZJ.js → db-YSHPPA4H.js} +27 -27
- package/dist/cli/describe-PXTSBJTL.js +50 -0
- package/dist/cli/{describe-OVFPRJJL.mjs → describe-YGMQBV44.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-HWMH2LTC.mjs → executions-G7U3VUXN.mjs} +6 -6
- package/dist/cli/{executions-RZLKKPZV.js → executions-MWBC5TAW.js} +8 -8
- package/dist/cli/{feedback-WD4JVF77.mjs → feedback-GMHIFLBJ.mjs} +6 -6
- package/dist/cli/{feedback-3D5OROCI.js → feedback-SD55OY6H.js} +14 -14
- package/dist/cli/{git-RYUKBCUZ.mjs → git-HPE45OPD.mjs} +5 -5
- package/dist/cli/git-I3JV7IGH.js +25 -0
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-KJPFCEXL.mjs → integrations-2W4MGIQR.mjs} +7 -7
- package/dist/cli/{integrations-Y7OK23DW.js → integrations-HFKVBY6G.js} +15 -15
- package/dist/cli/{legacy-noops-2PU2ZVEP.mjs → legacy-noops-GZYKNU2Z.mjs} +6 -6
- package/dist/cli/{legacy-noops-G7ZY7K3K.js → legacy-noops-SXVNDEXN.js} +9 -9
- package/dist/cli/{mcp-D7F2RSOI.mjs → mcp-BWA6KULG.mjs} +4 -4
- package/dist/cli/{mcp-GILBYX72.js → mcp-PJRHQHHU.js} +24 -24
- package/dist/cli/{monitors-OXNHOT3C.js → monitors-K2WSI6CR.js} +100 -100
- package/dist/cli/{monitors-IK5KXY2H.mjs → monitors-SYQKCATO.mjs} +7 -7
- package/dist/cli/{org-L5D7EISU.mjs → org-5KD7X7IA.mjs} +6 -6
- package/dist/cli/{org-OYM3UNTP.js → org-YQ2CR32B.js} +88 -88
- package/dist/cli/{play-YK22QPYO.js → play-SZXY2F2S.js} +352 -341
- package/dist/cli/{play-PK6QO3WX.mjs → play-TTMABJEI.mjs} +40 -29
- package/dist/cli/{providers-Z6MNJDCG.mjs → providers-GQIOMRQO.mjs} +6 -6
- package/dist/cli/{providers-5CYP7P4N.js → providers-YDHCTZAF.js} +9 -9
- package/dist/cli/{quickstart-2YKETYJY.js → quickstart-BNYOXQXG.js} +6 -6
- package/dist/cli/{quickstart-2I73XQXB.mjs → quickstart-PHSSMKCA.mjs} +4 -4
- package/dist/cli/{run-KGQ6TUBB.mjs → run-74C3C75C.mjs} +26 -26
- package/dist/cli/{run-YVSEAVE5.js → run-GFIAZXVL.js} +47 -47
- package/dist/cli/search-2RRRF4LW.js +32 -0
- package/dist/cli/{search-V2HPN6FU.mjs → search-3SWUB7KX.mjs} +7 -7
- package/dist/cli/{search-output-BUSANFRN.js → search-output-6JF3S4TP.js} +43 -13
- package/dist/cli/{search-output-OCTOSDEO.mjs → search-output-K2SWHVHQ.mjs} +40 -10
- package/dist/cli/{secrets-WZGRBWI5.mjs → secrets-2M4XWEKE.mjs} +6 -6
- package/dist/cli/{secrets-VDKTHCVB.js → secrets-2SAKLH2H.js} +15 -15
- package/dist/cli/{sessions-5DTN55DZ.mjs → sessions-A64BCXTO.mjs} +6 -6
- package/dist/cli/sessions-SBH27JNW.js +22 -0
- package/dist/cli/{settings-A7VSNOLI.js → settings-HV64WIJF.js} +85 -85
- package/dist/cli/{settings-BK5FPQ3X.mjs → settings-SVGEC3FI.mjs} +12 -12
- package/dist/cli/{setup-LLQVPZTP.mjs → setup-EDC3NEJ3.mjs} +15 -10
- package/dist/cli/{setup-NV27CYQ5.js → setup-FHXOLQGQ.js} +55 -50
- package/dist/cli/{skills-IV6HK4XA.mjs → skills-3HGHZMXB.mjs} +7 -7
- package/dist/cli/skills-Y3SRLOYD.js +36 -0
- package/dist/cli/tools-OFYPUPUV.js +57 -0
- package/dist/cli/{tools-4FKPCRD7.mjs → tools-P2QS6A6Q.mjs} +19 -19
- package/dist/cli/{update-MH5M746E.mjs → update-552BYQM4.mjs} +9 -9
- package/dist/cli/update-SOUSCLB7.js +34 -0
- package/dist/cli/{views-KXC4JDT7.mjs → views-LD5HXJYY.mjs} +6 -6
- package/dist/cli/{views-JW44TCGL.js → views-PA25NAE3.js} +21 -21
- package/dist/cli/{workflow-F5AHL2ET.js → workflow-FIDBUQV6.js} +17 -17
- package/dist/cli/{workflow-FI4DL7ZI.mjs → workflow-LDYFGBYP.mjs} +7 -7
- package/dist/{client-BEJqhQAj.d.mts → client-DuDFiJDU.d.mts} +1 -1
- package/dist/{client-core-BPYuWfBC.d.ts → client-core-CJRzLanv.d.ts} +93 -4
- package/dist/{client-core-BqetRxx-.d.mts → client-core-DydMQOft.d.mts} +93 -4
- package/dist/{client-Ceo295L2.d.ts → client-t9HZAkFD.d.ts} +1 -1
- 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 +124 -124
- 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-UVEZIP3H.js +0 -43
- package/dist/cli/chunk-NIPLY25A.mjs +0 -7
- package/dist/cli/concurrent-runs-help-74AFW3BD.js +0 -21
- package/dist/cli/describe-2JCOC4AK.js +0 -50
- package/dist/cli/git-GCCPCUWJ.js +0 -25
- package/dist/cli/search-YG3UIZ6A.js +0 -32
- package/dist/cli/sessions-NSPT6LHT.js +0 -22
- package/dist/cli/skills-UA5E4DA3.js +0 -36
- package/dist/cli/tools-NJVPAG37.js +0 -57
- package/dist/cli/update-DKX27XZB.js +0 -34
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkCSPHSNBWjs = require('./chunk-CSPHSNBW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkLPJPCGT3js = require('./chunk-LPJPCGT3.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkSL6MYJYMjs = require('./chunk-SL6MYJYM.js');
|
|
@@ -11,7 +11,7 @@ var _chunkSL6MYJYMjs = require('./chunk-SL6MYJYM.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
|
|
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
|
|
|
581
581
|
return raw;
|
|
582
582
|
}
|
|
583
583
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
584
|
-
const selection =
|
|
584
|
+
const selection = _chunkZDQFBJPOjs.parseJsonFields.call(void 0, args, "run");
|
|
585
585
|
args = selection.args;
|
|
586
586
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
587
587
|
let filePath = null;
|
|
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
593
593
|
let revisionSelector = null;
|
|
594
594
|
const watch = !args.includes("--no-wait");
|
|
595
595
|
const dryRun = args.includes("--dry-run");
|
|
596
|
-
let jsonOutput = dryRun ?
|
|
596
|
+
let jsonOutput = dryRun ? _chunkZDQFBJPOjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkZDQFBJPOjs.argsWantJson.call(void 0, args);
|
|
597
597
|
const fullJson = args.includes("--full");
|
|
598
598
|
const force = args.includes("--force") || args.includes("--from-start");
|
|
599
599
|
const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
|
|
@@ -657,7 +657,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
657
657
|
"--log-level requires one of: debug, info, warn, error."
|
|
658
658
|
);
|
|
659
659
|
}
|
|
660
|
-
const parsed =
|
|
660
|
+
const parsed = _chunkLPJPCGT3js.parseLogLevel.call(void 0, value);
|
|
661
661
|
if (!parsed) {
|
|
662
662
|
throw new Error(
|
|
663
663
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -990,7 +990,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
990
990
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
991
991
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
992
992
|
);
|
|
993
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
993
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkLPJPCGT3js.parseLogLevel.call(void 0, options.logLevel);
|
|
994
994
|
if (!logLevel)
|
|
995
995
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
996
996
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -1004,13 +1004,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
1004
1004
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
1005
1005
|
logLevel = "debug";
|
|
1006
1006
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
1007
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
1008
|
-
[...fullJson ? ["--full"] : [], ...
|
|
1007
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkZDQFBJPOjs.parseJsonFields.call(void 0,
|
|
1008
|
+
[...fullJson ? ["--full"] : [], ..._chunkZDQFBJPOjs.jsonFieldArgs.call(void 0, options.json)],
|
|
1009
1009
|
"run"
|
|
1010
1010
|
).fields;
|
|
1011
1011
|
const watch = options.wait === false ? false : base.watch;
|
|
1012
1012
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
1013
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
1013
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkZDQFBJPOjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
1014
1014
|
const verboseLogs = Boolean(
|
|
1015
1015
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1016
1016
|
);
|
|
@@ -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 _chunkQM6Y6S4Ejs = require('./chunk-QM6Y6S4E.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.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
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
14
14
|
{},
|
|
15
15
|
{
|
|
16
16
|
json: json || void 0,
|
|
@@ -26,7 +26,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
|
|
|
26
26
|
return parent.command("balance <provider>", { hidden }).description(
|
|
27
27
|
"Read a fresh balance using this workspace\u2019s own provider connection (LeadMagic)."
|
|
28
28
|
).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
|
|
29
|
-
const balance = await new (0,
|
|
29
|
+
const balance = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().getIntegrationBalance(
|
|
30
30
|
provider
|
|
31
31
|
);
|
|
32
32
|
printIntegrationResult(balance, options.json, [
|
|
@@ -42,7 +42,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
42
42
|
"List teammates\u2019 personal connections for this provider"
|
|
43
43
|
).option("--cursor <cursor>", "Read the next page of members").action(
|
|
44
44
|
async (options) => {
|
|
45
|
-
const client = new (0,
|
|
45
|
+
const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
|
|
46
46
|
if (name === "list" && options.cursor && !options.members)
|
|
47
47
|
throw new Error(
|
|
48
48
|
"Use --cursor with --members to continue a member page."
|
|
@@ -86,7 +86,7 @@ function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
|
|
|
86
86
|
return parent.command("hubspot-members", { hidden }).description(
|
|
87
87
|
"List personal HubSpot connection status for workspace members."
|
|
88
88
|
).option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
|
|
89
|
-
const page = await new (0,
|
|
89
|
+
const page = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().listPersonalHubSpotMembers(
|
|
90
90
|
options.cursor
|
|
91
91
|
);
|
|
92
92
|
const rows = page.members.map((member) => {
|
|
@@ -112,7 +112,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
|
|
|
112
112
|
);
|
|
113
113
|
if (options.autoName && (action !== "connect" || options.name !== void 0))
|
|
114
114
|
throw new Error("Use --auto-name with connect and omit --name.");
|
|
115
|
-
const client = new (0,
|
|
115
|
+
const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
|
|
116
116
|
const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
|
|
117
117
|
const row = connections.find(
|
|
118
118
|
(connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
|
|
@@ -145,7 +145,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
145
145
|
"Print the proposed change without contacting Google or saving it"
|
|
146
146
|
).option("--json", "Print the result as JSON").action(
|
|
147
147
|
async (action, options) => {
|
|
148
|
-
const client = new (0,
|
|
148
|
+
const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
|
|
149
149
|
if (action === "list") {
|
|
150
150
|
const inventory = await client.listCalendarAvailabilityConnections();
|
|
151
151
|
const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
|
|
@@ -295,7 +295,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
295
295
|
}
|
|
296
296
|
function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
|
|
297
297
|
return parent.command("availability-calendars", { hidden }).description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
|
|
298
|
-
const page = await new (0,
|
|
298
|
+
const page = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().listAvailabilityCalendars(
|
|
299
299
|
options.cursor
|
|
300
300
|
);
|
|
301
301
|
printIntegrationResult(page, options.json, [
|
|
@@ -339,7 +339,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
339
339
|
printSetupPlan({ provider, action: "connect_link" }, options.json);
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
|
-
const link = await new (0,
|
|
342
|
+
const link = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().getIntegrationConnectLink(
|
|
343
343
|
provider
|
|
344
344
|
);
|
|
345
345
|
printIntegrationResult(link, options.json, [link.connect_url]);
|
|
@@ -366,7 +366,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
366
366
|
);
|
|
367
367
|
return;
|
|
368
368
|
}
|
|
369
|
-
const result2 = await new (0,
|
|
369
|
+
const result2 = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().startIntegrationOAuth(
|
|
370
370
|
provider,
|
|
371
371
|
{
|
|
372
372
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
@@ -416,7 +416,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
416
416
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
417
417
|
);
|
|
418
418
|
}
|
|
419
|
-
const result = await new (0,
|
|
419
|
+
const result = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().setIntegrationCredentials(
|
|
420
420
|
provider,
|
|
421
421
|
credentials,
|
|
422
422
|
{ expectedConnectionId: options.expectedConnectionId }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLPJPCGT3js = require('./chunk-LPJPCGT3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkUDXULACQjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkLPJPCGT3js.PlayClient)(
|
|
142
|
+
new (0, _chunkUDXULACQjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkPACD5DGCjs = require('./chunk-PACD5DGC.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -330,7 +330,7 @@ function buildEnvironmentContext() {
|
|
|
330
330
|
node_version: process.version,
|
|
331
331
|
runtime: "Node.js",
|
|
332
332
|
hostname: _os.hostname.call(void 0, ),
|
|
333
|
-
agent_runtime:
|
|
333
|
+
agent_runtime: _chunkPACD5DGCjs.detectAgentRuntime.call(void 0, )
|
|
334
334
|
};
|
|
335
335
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
336
336
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -351,18 +351,18 @@ function buildEnvironmentContext() {
|
|
|
351
351
|
return context;
|
|
352
352
|
}
|
|
353
353
|
function failureReportHeaders(apiKey) {
|
|
354
|
-
const agentSessionId =
|
|
354
|
+
const agentSessionId = _chunkPACD5DGCjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
355
355
|
return {
|
|
356
|
-
...
|
|
356
|
+
..._chunkPACD5DGCjs.deploymentProtectionHeaders.call(void 0, ),
|
|
357
357
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
358
358
|
Authorization: `Bearer ${apiKey}`,
|
|
359
359
|
"Content-Type": "application/json",
|
|
360
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
360
|
+
"User-Agent": `deepline-ts-sdk/${_chunkPACD5DGCjs.SDK_VERSION}`,
|
|
361
361
|
"X-Deepline-Client-Family": "sdk",
|
|
362
362
|
"X-Deepline-CLI-Family": "sdk",
|
|
363
|
-
"X-Deepline-Agent-Runtime":
|
|
364
|
-
"X-Deepline-CLI-Version":
|
|
365
|
-
"X-Deepline-SDK-Version":
|
|
363
|
+
"X-Deepline-Agent-Runtime": _chunkPACD5DGCjs.detectAgentRuntime.call(void 0, ),
|
|
364
|
+
"X-Deepline-CLI-Version": _chunkPACD5DGCjs.SDK_VERSION,
|
|
365
|
+
"X-Deepline-SDK-Version": _chunkPACD5DGCjs.SDK_VERSION
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
async function postFailureReport(input) {
|
|
@@ -390,7 +390,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
390
390
|
if (isFailureReportingDisabled()) return false;
|
|
391
391
|
let apiKey = "";
|
|
392
392
|
try {
|
|
393
|
-
apiKey =
|
|
393
|
+
apiKey = _chunkUDXULACQjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
394
394
|
} catch (e2) {
|
|
395
395
|
return false;
|
|
396
396
|
}
|
|
@@ -417,7 +417,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
417
417
|
failure_code: failureCode2,
|
|
418
418
|
failure_stage: failureStage,
|
|
419
419
|
error_body: "Automatic Deepline skills installation failed.",
|
|
420
|
-
cli_version:
|
|
420
|
+
cli_version: _chunkPACD5DGCjs.SDK_VERSION,
|
|
421
421
|
context: {
|
|
422
422
|
environment: buildEnvironmentContext(),
|
|
423
423
|
skills_sync: {
|
|
@@ -537,7 +537,7 @@ function buildFailureReport(input) {
|
|
|
537
537
|
failure_kind: failureKind,
|
|
538
538
|
failure_code: code,
|
|
539
539
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
540
|
-
cli_version:
|
|
540
|
+
cli_version: _chunkPACD5DGCjs.SDK_VERSION,
|
|
541
541
|
context: {
|
|
542
542
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
543
543
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -557,8 +557,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
557
557
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
558
558
|
const exitCode = resolvedExitCode(input);
|
|
559
559
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
560
|
-
const baseUrl =
|
|
561
|
-
const apiKey =
|
|
560
|
+
const baseUrl = _chunkUDXULACQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
561
|
+
const apiKey = _chunkUDXULACQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
562
562
|
if (!apiKey) return false;
|
|
563
563
|
return postFailureReport({
|
|
564
564
|
baseUrl,
|
|
@@ -682,8 +682,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
682
682
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
683
683
|
var defaultBrowserCommandRunner = childProcess;
|
|
684
684
|
function getAuthedHttpClient() {
|
|
685
|
-
const config =
|
|
686
|
-
return { config, http: new (0,
|
|
685
|
+
const config = _chunkUDXULACQjs.resolveConfig.call(void 0, );
|
|
686
|
+
return { config, http: new (0, _chunkUDXULACQjs.HttpClient)(config) };
|
|
687
687
|
}
|
|
688
688
|
function stableOsUserId() {
|
|
689
689
|
try {
|
|
@@ -1004,6 +1004,7 @@ function openInBrowser(url, options = {}) {
|
|
|
1004
1004
|
if (!allowFocus) return "failed";
|
|
1005
1005
|
if (process.platform === "win32") {
|
|
1006
1006
|
childProcess.execFileSync("cmd.exe", ["/c", "start", "", targetUrl], {
|
|
1007
|
+
windowsHide: true,
|
|
1007
1008
|
stdio: "ignore"
|
|
1008
1009
|
});
|
|
1009
1010
|
return "opened";
|
|
@@ -1023,7 +1024,7 @@ function collectLocalEnvInfo() {
|
|
|
1023
1024
|
os: `${process.platform} ${process.arch}`,
|
|
1024
1025
|
node_version: process.version,
|
|
1025
1026
|
home_dir: homeDir,
|
|
1026
|
-
agent_runtime:
|
|
1027
|
+
agent_runtime: _chunkPACD5DGCjs.detectAgentRuntime.call(void 0, )
|
|
1027
1028
|
};
|
|
1028
1029
|
const env = process.env;
|
|
1029
1030
|
const optional = {
|
|
@@ -1270,9 +1271,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1270
1271
|
}
|
|
1271
1272
|
function withAgentCommandContext(value) {
|
|
1272
1273
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1273
|
-
return
|
|
1274
|
+
return _chunkPACD5DGCjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1274
1275
|
...valueRecord,
|
|
1275
|
-
command_context:
|
|
1276
|
+
command_context: _chunkUDXULACQjs.resolveCliCommandContext.call(void 0, )
|
|
1276
1277
|
} : value;
|
|
1277
1278
|
}
|
|
1278
1279
|
function printJson(value, fields, options = {}) {
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
10
|
+
var _chunkC4CUZH57js = require('./chunk-C4CUZH57.js');
|
|
11
|
+
require('./chunk-H4ALLC2X.js');
|
|
12
12
|
require('./chunk-R7J7CJPZ.js');
|
|
13
13
|
require('./chunk-YGCKMI5P.js');
|
|
14
14
|
require('./chunk-COGTRVWW.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 = _chunkC4CUZH57js.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkC4CUZH57js.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunkC4CUZH57js.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunkC4CUZH57js.commandDocKey; exports.helpDetailFromArgv = _chunkC4CUZH57js.helpDetailFromArgv; exports.renderActionExplanation = _chunkC4CUZH57js.renderActionExplanation; exports.renderCommandExplanation = _chunkC4CUZH57js.renderCommandExplanation; exports.renderDocText = _chunkC4CUZH57js.renderDocText;
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
renderActionExplanation,
|
|
8
8
|
renderCommandExplanation,
|
|
9
9
|
renderDocText
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-7DOQ3OEX.mjs";
|
|
11
|
+
import "./chunk-2RIKOPIM.mjs";
|
|
12
12
|
import "./chunk-5LUF4LAR.mjs";
|
|
13
13
|
import "./chunk-7I4B6V2S.mjs";
|
|
14
14
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
CONCURRENT_RUNS_HELP_COMMANDS,
|
|
3
3
|
concurrentRunsHelpStatus,
|
|
4
4
|
concurrentRunsLine
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-FOTGUFVK.mjs";
|
|
6
|
+
import "./chunk-MNSTCJMX.mjs";
|
|
7
|
+
import "./chunk-2RIKOPIM.mjs";
|
|
8
|
+
import "./chunk-GGB3JYCW.mjs";
|
|
9
|
+
import "./chunk-V6SCP4B7.mjs";
|
|
10
|
+
import "./chunk-4D3WIZST.mjs";
|
|
11
11
|
import "./chunk-NURW5XH4.mjs";
|
|
12
12
|
import "./chunk-DLIRSHV6.mjs";
|
|
13
13
|
import "./chunk-JL2OTMSG.mjs";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-2UXDHFSF.mjs";
|
|
15
15
|
import "./chunk-WZYKRD7T.mjs";
|
|
16
16
|
import "./chunk-KRD6H754.mjs";
|
|
17
17
|
export {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunk3KYBDAR3js = require('./chunk-3KYBDAR3.js');
|
|
6
|
+
require('./chunk-MR5LTVHD.js');
|
|
7
|
+
require('./chunk-H4ALLC2X.js');
|
|
8
|
+
require('./chunk-ZDQFBJPO.js');
|
|
9
|
+
require('./chunk-UDXULACQ.js');
|
|
10
|
+
require('./chunk-PACD5DGC.js');
|
|
11
|
+
require('./chunk-EITMD3A5.js');
|
|
12
|
+
require('./chunk-XNYIZMNQ.js');
|
|
13
|
+
require('./chunk-BBTKAASQ.js');
|
|
14
|
+
require('./chunk-VTGG2RT3.js');
|
|
15
|
+
require('./chunk-OG64RBAC.js');
|
|
16
|
+
require('./chunk-COGTRVWW.js');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
exports.CONCURRENT_RUNS_HELP_COMMANDS = _chunk3KYBDAR3js.CONCURRENT_RUNS_HELP_COMMANDS; exports.concurrentRunsHelpStatus = _chunk3KYBDAR3js.concurrentRunsHelpStatus; exports.concurrentRunsLine = _chunk3KYBDAR3js.concurrentRunsLine;
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
|
|
8
|
+
require('./chunk-UDXULACQ.js');
|
|
9
|
+
require('./chunk-PACD5DGC.js');
|
|
10
10
|
require('./chunk-EITMD3A5.js');
|
|
11
11
|
require('./chunk-XNYIZMNQ.js');
|
|
12
12
|
require('./chunk-BBTKAASQ.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-VTGG2RT3.js');
|
|
14
14
|
require('./chunk-OG64RBAC.js');
|
|
15
15
|
require('./chunk-COGTRVWW.js');
|
|
16
16
|
|
|
@@ -128,7 +128,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
128
128
|
column.length,
|
|
129
129
|
...rows.map((row) => {
|
|
130
130
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
131
|
-
return (verbose ? value :
|
|
131
|
+
return (verbose ? value : _chunkZDQFBJPOjs.clip.call(void 0, value, 42)).length;
|
|
132
132
|
})
|
|
133
133
|
)
|
|
134
134
|
])
|
|
@@ -138,7 +138,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
138
138
|
const body = rows.map(
|
|
139
139
|
(row) => columns.map((column) => {
|
|
140
140
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
141
|
-
const display = verbose ? raw :
|
|
141
|
+
const display = verbose ? raw : _chunkZDQFBJPOjs.clip.call(void 0, raw, 42);
|
|
142
142
|
return display.padEnd(widths[column]);
|
|
143
143
|
}).join(" | ")
|
|
144
144
|
);
|
|
@@ -158,7 +158,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
158
158
|
{ exitCode: 2 }
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
|
-
const allRows =
|
|
161
|
+
const allRows = _chunkZDQFBJPOjs.readCsvRows.call(void 0, csvPath);
|
|
162
162
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
163
163
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
164
164
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -171,7 +171,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
171
171
|
if (options.summary) {
|
|
172
172
|
const summaries = summarizeColumns(selected, columns);
|
|
173
173
|
if (format === "json") {
|
|
174
|
-
|
|
174
|
+
_chunkZDQFBJPOjs.printJson.call(void 0, {
|
|
175
175
|
rows: summaries,
|
|
176
176
|
total_rows: selected.length,
|
|
177
177
|
source_total_rows: allRows.length
|
|
@@ -180,7 +180,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
180
180
|
}
|
|
181
181
|
const displayRows = summaryDisplayRows(summaries);
|
|
182
182
|
if (format === "csv") {
|
|
183
|
-
process.stdout.write(
|
|
183
|
+
process.stdout.write(_chunkZDQFBJPOjs.csvStringFromRows.call(void 0, displayRows));
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
process.stdout.write(
|
|
@@ -195,7 +195,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
197
|
if (format === "json") {
|
|
198
|
-
|
|
198
|
+
_chunkZDQFBJPOjs.printJson.call(void 0, {
|
|
199
199
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
200
200
|
});
|
|
201
201
|
return;
|
|
@@ -355,7 +355,11 @@ process.on('SIGINT', () => server.close(() => process.exit(0)));
|
|
|
355
355
|
async function openBrowser(url) {
|
|
356
356
|
const opener = process.platform === "darwin" ? "open" : process.platform === "win32" ? "cmd" : "xdg-open";
|
|
357
357
|
const args = process.platform === "win32" ? ["/c", "start", "", url] : [url];
|
|
358
|
-
const child = _child_process.spawn.call(void 0, opener, args, {
|
|
358
|
+
const child = _child_process.spawn.call(void 0, opener, args, {
|
|
359
|
+
windowsHide: true,
|
|
360
|
+
detached: true,
|
|
361
|
+
stdio: "ignore"
|
|
362
|
+
});
|
|
359
363
|
child.on("error", () => {
|
|
360
364
|
});
|
|
361
365
|
child.unref();
|
|
@@ -407,6 +411,7 @@ async function handleCsvRenderStart(options) {
|
|
|
407
411
|
const logFd = _fs.openSync.call(void 0, logPath, "w");
|
|
408
412
|
const token = _crypto.randomUUID.call(void 0, );
|
|
409
413
|
const child = _child_process.spawn.call(void 0, process.execPath, ["-e", CSV_RENDER_SERVER_SOURCE], {
|
|
414
|
+
windowsHide: true,
|
|
410
415
|
detached: true,
|
|
411
416
|
stdio: ["ignore", logFd, logFd],
|
|
412
417
|
env: {
|
|
@@ -438,7 +443,7 @@ async function handleCsvRenderStart(options) {
|
|
|
438
443
|
if (log) {
|
|
439
444
|
detail = `
|
|
440
445
|
CSV render log:
|
|
441
|
-
${
|
|
446
|
+
${_chunkZDQFBJPOjs.clip.call(void 0, log, 2e3)}`;
|
|
442
447
|
}
|
|
443
448
|
} catch (e7) {
|
|
444
449
|
}
|
|
@@ -489,7 +494,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
489
494
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
490
495
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
491
496
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
492
|
-
|
|
497
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0, payload, {
|
|
493
498
|
json: options.json,
|
|
494
499
|
text: `${lines.join("\n")}
|
|
495
500
|
`
|
|
@@ -525,7 +530,7 @@ async function handleCsvRenderStop(options) {
|
|
|
525
530
|
};
|
|
526
531
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
527
532
|
` : "No running CSV render process found.\n";
|
|
528
|
-
|
|
533
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
529
534
|
}
|
|
530
535
|
async function handleCsvRender(action, options) {
|
|
531
536
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-GGB3JYCW.mjs";
|
|
8
|
+
import "./chunk-V6SCP4B7.mjs";
|
|
9
|
+
import "./chunk-4D3WIZST.mjs";
|
|
10
10
|
import "./chunk-NURW5XH4.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-JL2OTMSG.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-2UXDHFSF.mjs";
|
|
14
14
|
import "./chunk-WZYKRD7T.mjs";
|
|
15
15
|
import "./chunk-KRD6H754.mjs";
|
|
16
16
|
|
|
@@ -355,7 +355,11 @@ process.on('SIGINT', () => server.close(() => process.exit(0)));
|
|
|
355
355
|
async function openBrowser(url) {
|
|
356
356
|
const opener = process.platform === "darwin" ? "open" : process.platform === "win32" ? "cmd" : "xdg-open";
|
|
357
357
|
const args = process.platform === "win32" ? ["/c", "start", "", url] : [url];
|
|
358
|
-
const child = spawn(opener, args, {
|
|
358
|
+
const child = spawn(opener, args, {
|
|
359
|
+
windowsHide: true,
|
|
360
|
+
detached: true,
|
|
361
|
+
stdio: "ignore"
|
|
362
|
+
});
|
|
359
363
|
child.on("error", () => {
|
|
360
364
|
});
|
|
361
365
|
child.unref();
|
|
@@ -407,6 +411,7 @@ async function handleCsvRenderStart(options) {
|
|
|
407
411
|
const logFd = openSync(logPath, "w");
|
|
408
412
|
const token = randomUUID();
|
|
409
413
|
const child = spawn(process.execPath, ["-e", CSV_RENDER_SERVER_SOURCE], {
|
|
414
|
+
windowsHide: true,
|
|
410
415
|
detached: true,
|
|
411
416
|
stdio: ["ignore", logFd, logFd],
|
|
412
417
|
env: {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-OVDNJAJN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3T65J5RG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
planCustomerDbQuery
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZMNGZ6XS.mjs";
|
|
10
10
|
import "./chunk-FZHMNK6F.mjs";
|
|
11
11
|
import "./chunk-LX35AXTN.mjs";
|
|
12
12
|
import "./chunk-PSX3WHIH.mjs";
|
|
@@ -20,9 +20,9 @@ import {
|
|
|
20
20
|
printCommandEnvelope,
|
|
21
21
|
recordRows,
|
|
22
22
|
shouldEmitJson
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-GGB3JYCW.mjs";
|
|
24
|
+
import "./chunk-V6SCP4B7.mjs";
|
|
25
|
+
import "./chunk-4D3WIZST.mjs";
|
|
26
26
|
import {
|
|
27
27
|
CustomerDbQueryOutcomeUnknownError
|
|
28
28
|
} from "./chunk-NURW5XH4.mjs";
|
|
@@ -30,7 +30,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
30
30
|
import {
|
|
31
31
|
DeeplineError
|
|
32
32
|
} from "./chunk-JL2OTMSG.mjs";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-2UXDHFSF.mjs";
|
|
34
34
|
import "./chunk-WZYKRD7T.mjs";
|
|
35
35
|
import "./chunk-KRD6H754.mjs";
|
|
36
36
|
|