deepline 0.3.571 → 0.3.572
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/shared_libs/play-runtime/experiment-switches.ts +11 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +28 -17
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +360 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +274 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +35 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +28 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +11 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-claim-affinity.ts +67 -43
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +23 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-listener-hint.ts +62 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +11 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +54 -5
- package/dist/cli/auth-PXIVGUVZ.js +44 -0
- package/dist/cli/{auth-ARGNQK7A.mjs → auth-YUDM3YOC.mjs} +5 -5
- package/dist/cli/{billing-KAKODYTN.js → billing-F3ZGOWKL.js} +99 -99
- package/dist/cli/{billing-QRZTHCBX.mjs → billing-O7WUC4TU.mjs} +8 -8
- package/dist/cli/{chunk-C27FK36H.js → chunk-3SFLY3T3.js} +5 -5
- package/dist/cli/{chunk-GOUKX6XD.js → chunk-43GCEVHO.js} +3 -3
- package/dist/cli/{chunk-PTM5V5FV.js → chunk-4W5EFHHY.js} +7 -7
- package/dist/cli/{chunk-2IZOCGOA.js → chunk-5EMYPLTW.js} +53 -53
- package/dist/cli/{chunk-IXFFOZZQ.js → chunk-5VUD7HGD.js} +2 -2
- package/dist/cli/{chunk-7HAYEKC4.mjs → chunk-6R57HEPF.mjs} +1 -1
- package/dist/cli/{chunk-H6QMUX7Y.mjs → chunk-72WI67H4.mjs} +2 -2
- package/dist/cli/{chunk-MFBFQUQK.js → chunk-AHNJGA6Z.js} +6 -6
- package/dist/cli/{chunk-CR6IPQBB.mjs → chunk-AJO3I3LL.mjs} +1 -1
- package/dist/cli/{chunk-UBNRPJKO.mjs → chunk-BWWDU6FN.mjs} +5 -5
- package/dist/cli/{chunk-ETGM6PIR.mjs → chunk-CYW6PE3G.mjs} +5 -5
- package/dist/cli/{chunk-Z3DSCE5F.mjs → chunk-EDAG7ZU4.mjs} +1 -1
- package/dist/cli/{chunk-FQP5VSVF.mjs → chunk-EKIWY5DD.mjs} +1 -1
- package/dist/cli/{chunk-336AHC7H.mjs → chunk-EKWDSE6H.mjs} +4 -4
- package/dist/cli/{chunk-6OP5UW7C.js → chunk-EL4LME5Y.js} +48 -48
- package/dist/cli/{chunk-7JGHNZTD.js → chunk-FGBX2WVJ.js} +4 -4
- package/dist/cli/{chunk-TJU2BECV.mjs → chunk-GX4VZL4Z.mjs} +3 -3
- package/dist/cli/{chunk-YGGHPEWP.js → chunk-HYCJNHZ4.js} +15 -15
- package/dist/cli/{chunk-QRMTITKL.mjs → chunk-I4WKB3HO.mjs} +2 -2
- package/dist/cli/{chunk-A5HDA22N.js → chunk-ITQPBWDS.js} +3 -3
- package/dist/cli/{chunk-A3IVPA6Q.mjs → chunk-JEI7PHET.mjs} +1 -1
- package/dist/cli/{chunk-J5KW2ZDB.mjs → chunk-JJEN7TRR.mjs} +1 -1
- package/dist/cli/{chunk-ILKUKEWX.js → chunk-K4LAEKHS.js} +41 -41
- package/dist/cli/{chunk-HGER4CJA.js → chunk-LBNP52C4.js} +5 -5
- package/dist/cli/{chunk-A3B54QEW.mjs → chunk-MVQ5XGRO.mjs} +3 -3
- package/dist/cli/{chunk-IFKZQCPX.js → chunk-NOKSEYMS.js} +1 -1
- package/dist/cli/{chunk-PO3NOBHU.mjs → chunk-OUVQKSVC.mjs} +1 -1
- package/dist/cli/{chunk-CITDBSXI.js → chunk-PI4TKE2B.js} +26 -26
- package/dist/cli/{chunk-WZOUXILM.mjs → chunk-PQ6PM4V6.mjs} +1 -1
- package/dist/cli/{chunk-6N3NTEJ6.js → chunk-PRDCU7BY.js} +20 -20
- package/dist/cli/{chunk-RBPR5ZNN.js → chunk-PZGK6EEB.js} +100 -100
- package/dist/cli/{chunk-CF6CSAMJ.mjs → chunk-Q6H5RRTG.mjs} +4 -4
- package/dist/cli/{chunk-UTGHPC5D.mjs → chunk-QA733N7N.mjs} +1 -1
- package/dist/cli/{chunk-VLQB65HI.js → chunk-QMIMGKR2.js} +9 -9
- package/dist/cli/{chunk-YDULFKDL.mjs → chunk-RIA73OAZ.mjs} +2 -2
- package/dist/cli/{chunk-GCE5KOJJ.mjs → chunk-SJI56XPM.mjs} +11 -11
- package/dist/cli/{chunk-GRD3DLH7.mjs → chunk-UFUXGMHL.mjs} +2 -2
- package/dist/cli/{chunk-NAGGCF6Y.js → chunk-UKD5ZBQD.js} +5 -5
- package/dist/cli/{chunk-C6XV2DPY.mjs → chunk-UMP76GYQ.mjs} +3 -3
- package/dist/cli/{chunk-VULSFPD4.mjs → chunk-UQWYDNGB.mjs} +5 -5
- package/dist/cli/{chunk-SJYLLHHZ.js → chunk-UUYB6IXC.js} +13 -13
- package/dist/cli/{chunk-Z6OUUAIV.mjs → chunk-UY6Z3XWW.mjs} +2 -2
- package/dist/cli/{chunk-CFMIWRGD.mjs → chunk-V2W7GX2I.mjs} +2 -2
- package/dist/cli/{chunk-GACQOGRS.js → chunk-VGPHXXPI.js} +15 -15
- package/dist/cli/{chunk-WOU2WS6S.js → chunk-VZ4S5JRC.js} +23 -23
- package/dist/cli/{chunk-AOMVAXGX.js → chunk-W3HLZ24Q.js} +10 -10
- package/dist/cli/{chunk-XD4MT4BH.js → chunk-W3RHISD6.js} +8 -8
- package/dist/cli/{chunk-YDM5WSXO.mjs → chunk-W742U53L.mjs} +5 -5
- package/dist/cli/{chunk-AD7BGMTL.mjs → chunk-X6F4XOT2.mjs} +2 -2
- package/dist/cli/{chunk-YQ36Z23U.js → chunk-XNJXRS3B.js} +2 -2
- package/dist/cli/{chunk-C3FHMJ4A.js → chunk-XVQE6IBS.js} +2 -2
- package/dist/cli/{chunk-73P76DCN.js → chunk-YOST7EJF.js} +20 -20
- package/dist/cli/{concurrent-runs-help-VPYB4ODC.mjs → concurrent-runs-help-5BKCGFGL.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-KGELXJIQ.js +22 -0
- package/dist/cli/{csv-GHGDSFNV.js → csv-7ZAWND7L.js} +13 -13
- package/dist/cli/{csv-RALLG3MG.mjs → csv-MO5WZZDN.mjs} +4 -4
- package/dist/cli/{db-722SKSIB.js → db-36LX7JBQ.js} +27 -27
- package/dist/cli/{db-HB65VYRR.mjs → db-OYMULINA.mjs} +6 -6
- package/dist/cli/describe-AVGE4MH6.js +50 -0
- package/dist/cli/{describe-Q6M7PUBU.mjs → describe-JLAERB6X.mjs} +18 -18
- package/dist/cli/{executions-GQNV3LNU.js → executions-AQ32J4BZ.js} +8 -8
- package/dist/cli/{executions-G3M75HW2.mjs → executions-IZAB2XNC.mjs} +6 -6
- package/dist/cli/{feedback-B43F2FBL.js → feedback-3IV54HOH.js} +14 -14
- package/dist/cli/{feedback-CSDBYSRS.mjs → feedback-WA6EBE5H.mjs} +6 -6
- package/dist/cli/{git-IZ4Y3RAW.mjs → git-OSLU6HIK.mjs} +5 -5
- package/dist/cli/git-VOFO6V5W.js +26 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-OLCUWZ6Z.js → integrations-65SYNL53.js} +29 -29
- package/dist/cli/{integrations-DT7EGM2Y.mjs → integrations-WOXFOC4M.mjs} +7 -7
- package/dist/cli/{legacy-noops-FTGNTO3U.js → legacy-noops-3SGXDAV6.js} +9 -9
- package/dist/cli/{legacy-noops-4TPT534L.mjs → legacy-noops-4FNG2JY3.mjs} +6 -6
- package/dist/cli/{mcp-3IDWLBKK.js → mcp-PX27RHCY.js} +24 -24
- package/dist/cli/{mcp-5KDJJT7M.mjs → mcp-RZLWMZHH.mjs} +4 -4
- package/dist/cli/{monitors-7GOZBKJR.js → monitors-F5BLGS4R.js} +100 -100
- package/dist/cli/{monitors-EOAA5RQO.mjs → monitors-VK2LW7VU.mjs} +7 -7
- package/dist/cli/{org-H5I56A4F.mjs → org-7AEBTN6Y.mjs} +6 -6
- package/dist/cli/{org-UJ5SWQJ5.js → org-UU3V7U4K.js} +121 -121
- package/dist/cli/{outcomes-MG57YXJX.mjs → outcomes-BWERSUJL.mjs} +6 -6
- package/dist/cli/{outcomes-24KFY2X5.js → outcomes-GCTBGPMK.js} +14 -14
- package/dist/cli/{play-PPPACSQE.js → play-7NBCCL26.js} +324 -324
- package/dist/cli/{play-MXPXRAUM.mjs → play-TX3RAAYS.mjs} +19 -19
- package/dist/cli/{providers-LTYNEXLB.js → providers-IL2IVKHB.js} +9 -9
- package/dist/cli/{providers-5ZN3MO6E.mjs → providers-KFWZXDCV.mjs} +6 -6
- package/dist/cli/{quickstart-UBDHX7PT.js → quickstart-MPA6TUK5.js} +6 -6
- package/dist/cli/{quickstart-ENDTTNLE.mjs → quickstart-RAMDGRRI.mjs} +4 -4
- package/dist/cli/{run-QJJSP35C.mjs → run-QNJSKPBN.mjs} +23 -23
- package/dist/cli/{run-6O6LQVWD.js → run-WBUSXBUS.js} +44 -44
- package/dist/cli/{search-PXZPVXDK.mjs → search-2X4P2FXR.mjs} +7 -7
- package/dist/cli/search-CJHG3VA4.js +32 -0
- package/dist/cli/{search-output-KRR4YOJX.mjs → search-output-MNJ4AQLV.mjs} +4 -4
- package/dist/cli/{search-output-H3ZQLJUF.js → search-output-P2WNCHA3.js} +6 -6
- package/dist/cli/{secrets-QZMXBI64.js → secrets-K5CNDUVR.js} +15 -15
- package/dist/cli/{secrets-HIGERL4N.mjs → secrets-XX54OU22.mjs} +6 -6
- package/dist/cli/sessions-3RMRBBJZ.js +23 -0
- package/dist/cli/{sessions-4SGQAX3F.mjs → sessions-C4GQ6ZVO.mjs} +6 -6
- package/dist/cli/{settings-UQLHVBOP.mjs → settings-7HBTADGW.mjs} +12 -12
- package/dist/cli/{settings-FFTTVDRV.js → settings-QP3DVFPS.js} +85 -85
- package/dist/cli/{setup-R5MBUG5M.mjs → setup-VPDAKY2G.mjs} +9 -9
- package/dist/cli/{setup-SS3MABJP.js → setup-X6J7U6B4.js} +49 -49
- package/dist/cli/skills-JUGXGSX2.js +37 -0
- package/dist/cli/{skills-X6PNEVWX.mjs → skills-UGY6W4AC.mjs} +7 -7
- package/dist/cli/{tools-YFW3FXAB.mjs → tools-SVBUAHDD.mjs} +17 -17
- package/dist/cli/tools-ZEI42NSP.js +57 -0
- package/dist/cli/{update-HX5BNFLQ.mjs → update-SDNKNDNW.mjs} +9 -9
- package/dist/cli/update-VC4UEGMR.js +37 -0
- package/dist/cli/{views-BGCRC22G.js → views-JBFSHQBU.js} +21 -21
- package/dist/cli/{views-FH5XL2PU.mjs → views-M6RBPC65.mjs} +6 -6
- package/dist/cli/{workflow-VLNDGNJI.mjs → workflow-RYVRAIHV.mjs} +7 -7
- package/dist/cli/{workflow-UY5PZBIK.js → workflow-UAMTGHQC.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -112
- 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-FKYYYCME.js +0 -44
- package/dist/cli/concurrent-runs-help-VUMIMYO7.js +0 -22
- package/dist/cli/describe-SG2N62VE.js +0 -50
- package/dist/cli/git-IJHKRWTR.js +0 -26
- package/dist/cli/search-TYPJWK4I.js +0 -32
- package/dist/cli/sessions-OS4ZBU4K.js +0 -23
- package/dist/cli/skills-FVDSEEUL.js +0 -37
- package/dist/cli/tools-ORTGWD63.js +0 -57
- package/dist/cli/update-RWVNNNHN.js +0 -37
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UFUXGMHL.mjs";
|
|
7
7
|
import {
|
|
8
8
|
errorToJsonPayload,
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
resolveSdkCliFailureExitCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-I4WKB3HO.mjs";
|
|
12
12
|
import {
|
|
13
13
|
resolveConfig,
|
|
14
14
|
sdkCliStateDirPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AJO3I3LL.mjs";
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
import { Option } from "commander";
|
|
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
}
|
|
135
135
|
const client = new DeeplineClient();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await import("./search-output-MNJ4AQLV.mjs");
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkCSPHSNBWjs = require('./chunk-CSPHSNBW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkW3RHISD6js = require('./chunk-W3RHISD6.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
|
|
@@ -11,7 +11,7 @@ var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkPRDCU7BYjs = require('./chunk-PRDCU7BY.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.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 = _chunkPRDCU7BYjs.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 ? _chunkPRDCU7BYjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkPRDCU7BYjs.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 = _chunkW3RHISD6js.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 : _chunkW3RHISD6js.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 : _chunkPRDCU7BYjs.parseJsonFields.call(void 0,
|
|
1008
|
+
[...fullJson ? ["--full"] : [], ..._chunkPRDCU7BYjs.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 || _chunkPRDCU7BYjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
1014
1014
|
const verboseLogs = Boolean(
|
|
1015
1015
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1016
1016
|
);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MF7PCM6C.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PQ6PM4V6.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-5TYLSS4Q.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-I4WKB3HO.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QA733N7N.mjs";
|
|
6
6
|
import {
|
|
7
7
|
registerIntegrationBalanceCommand,
|
|
8
8
|
registerIntegrationConnectCommand,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
registerLegacyHubSpotMembersCommand,
|
|
12
12
|
registerLegacyWorkspaceConnectionCommand,
|
|
13
13
|
registerWorkspaceConnectionListCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MVQ5XGRO.mjs";
|
|
15
15
|
import {
|
|
16
16
|
recentSearchRef,
|
|
17
17
|
registerDeprecatedSearchCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Q6H5RRTG.mjs";
|
|
19
19
|
import {
|
|
20
20
|
Capability,
|
|
21
21
|
arrayField,
|
|
@@ -57,29 +57,29 @@ import {
|
|
|
57
57
|
} from "./chunk-FIVKWNMT.mjs";
|
|
58
58
|
import {
|
|
59
59
|
DeeplineClient
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-UFUXGMHL.mjs";
|
|
61
61
|
import {
|
|
62
62
|
validateExecutionIdempotencyKey
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-PQ6PM4V6.mjs";
|
|
64
64
|
import {
|
|
65
65
|
beginToolExecuteCommand,
|
|
66
66
|
getToolExecuteInvocationId,
|
|
67
67
|
maybeAutoUpdateAndRelaunch,
|
|
68
68
|
registerCompatibilityCatalog,
|
|
69
69
|
runToolExecuteStage
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-BWWDU6FN.mjs";
|
|
71
71
|
import {
|
|
72
72
|
isCliTraceEnabled,
|
|
73
73
|
recordCliTrace,
|
|
74
74
|
resolveCliMaintenancePolicy
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-6R57HEPF.mjs";
|
|
76
76
|
import {
|
|
77
77
|
checkSdkCompatibility,
|
|
78
78
|
enforceSdkCompatibilityResponse,
|
|
79
79
|
flushDeferredSkillsSyncNotices,
|
|
80
80
|
requireSdkCompatibility,
|
|
81
81
|
syncSdkSkillsIfNeeded
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-CYW6PE3G.mjs";
|
|
83
83
|
import {
|
|
84
84
|
errorToJsonPayload,
|
|
85
85
|
printCommandEnvelope,
|
|
@@ -88,12 +88,12 @@ import {
|
|
|
88
88
|
printJsonError,
|
|
89
89
|
renderCommandEnvelopeText,
|
|
90
90
|
shouldEmitJson
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-I4WKB3HO.mjs";
|
|
92
92
|
import {
|
|
93
93
|
readSdkSkillsLocalVersion,
|
|
94
94
|
resolveConfig,
|
|
95
95
|
sdkCliStateDirPath
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-AJO3I3LL.mjs";
|
|
97
97
|
import {
|
|
98
98
|
DeeplineError
|
|
99
99
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -1052,7 +1052,7 @@ Examples:
|
|
|
1052
1052
|
process.exitCode = await narrowView();
|
|
1053
1053
|
return;
|
|
1054
1054
|
}
|
|
1055
|
-
const { describeAnything } = await import("./describe-
|
|
1055
|
+
const { describeAnything } = await import("./describe-JLAERB6X.mjs");
|
|
1056
1056
|
process.exitCode = await describeAnything(
|
|
1057
1057
|
toolId,
|
|
1058
1058
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PQ6PM4V6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AJO3I3LL.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -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 _chunk5EMYPLTWjs = require('./chunk-5EMYPLTW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkITQPBWDSjs = require('./chunk-ITQPBWDS.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 = _chunkITQPBWDSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
28
|
+
const apiKey = _chunkITQPBWDSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
29
29
|
if (!apiKey) return "";
|
|
30
30
|
try {
|
|
31
|
-
const { status, data } = await
|
|
31
|
+
const { status, data } = await _chunk5EMYPLTWjs.httpJson.call(void 0,
|
|
32
32
|
"GET",
|
|
33
33
|
`${baseUrl}/api/v2/billing/entitlements`,
|
|
34
34
|
apiKey,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I4WKB3HO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AJO3I3LL.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-JEI7PHET.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SJI56XPM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QA733N7N.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
} from "./chunk-BM4GE67C.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UFUXGMHL.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled,
|
|
21
21
|
printCommandEnvelope
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-I4WKB3HO.mjs";
|
|
23
23
|
import {
|
|
24
24
|
autoDetectBaseUrl,
|
|
25
25
|
resolveApiKeyForBaseUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AJO3I3LL.mjs";
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
import { writeFileSync } from "fs";
|
|
@@ -1,15 +1,15 @@
|
|
|
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 _chunkXNJXRS3Bjs = require('./chunk-XNJXRS3B.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPRDCU7BYjs = require('./chunk-PRDCU7BY.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkFGBX2WVJjs = require('./chunk-FGBX2WVJ.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
|
|
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
|
|
|
55
55
|
}
|
|
56
56
|
function listClaudeSessionFiles() {
|
|
57
57
|
const files = [];
|
|
58
|
-
for (const root of
|
|
58
|
+
for (const root of _chunkFGBX2WVJjs.claudeProjectsRoots.call(void 0, )) {
|
|
59
59
|
files.push(...listClaudeSessionFilesIn(root));
|
|
60
60
|
}
|
|
61
61
|
return files;
|
|
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
|
|
|
147
147
|
const newestFirst = listSessionFiles(agent).sort(
|
|
148
148
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
149
149
|
);
|
|
150
|
-
const sessionId =
|
|
150
|
+
const sessionId = _chunkFGBX2WVJjs.agentSessionIdFromEnvironment.call(void 0,
|
|
151
151
|
process.env,
|
|
152
152
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
153
153
|
);
|
|
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
|
|
|
156
156
|
(candidate) => candidate.sessionId === sessionId
|
|
157
157
|
);
|
|
158
158
|
if (named) return named;
|
|
159
|
-
const cowork = agent === "codex" ? null :
|
|
159
|
+
const cowork = agent === "codex" ? null : _chunkFGBX2WVJjs.coworkTranscriptFromEnvironment.call(void 0, );
|
|
160
160
|
const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
|
|
161
161
|
if (cowork && coworkStat) {
|
|
162
162
|
return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
|
|
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
|
|
|
166
166
|
), () => ( newestFirst[0])), () => ( null));
|
|
167
167
|
}
|
|
168
168
|
function feedbackAgentSessionId(agentRuntime) {
|
|
169
|
-
return _nullishCoalesce(
|
|
169
|
+
return _nullishCoalesce(_chunkFGBX2WVJjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkFGBX2WVJjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
|
|
170
170
|
}
|
|
171
171
|
function sessionStartedInDirectory(candidate, cwd) {
|
|
172
172
|
if (candidate.agent === "claude") {
|
|
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
|
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
217
217
|
function sessionSearchDescription(agent) {
|
|
218
|
-
const claude =
|
|
218
|
+
const claude = _chunkFGBX2WVJjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
|
|
219
219
|
if (agent === "claude") return claude;
|
|
220
220
|
if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
|
|
221
221
|
return `${claude} or ~/.codex/sessions/**/*.jsonl`;
|
|
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
|
|
|
472
472
|
return { encodedContent: encoded, needsChunking: true };
|
|
473
473
|
}
|
|
474
474
|
async function uploadPayload(path, payload) {
|
|
475
|
-
const { http } =
|
|
475
|
+
const { http } = _chunkPRDCU7BYjs.getAuthedHttpClient.call(void 0, );
|
|
476
476
|
return await http.post(path, payload);
|
|
477
477
|
}
|
|
478
478
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
|
|
|
550
550
|
return target.sessionId;
|
|
551
551
|
}
|
|
552
552
|
async function handleSessionsSend(options) {
|
|
553
|
-
if (
|
|
553
|
+
if (_chunkXNJXRS3Bjs.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
554
554
|
const rating = parseSessionRating(options.rating);
|
|
555
555
|
if (options.file) {
|
|
556
556
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
|
|
|
562
562
|
filename: _path.basename.call(void 0, filePath),
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
|
-
|
|
565
|
+
_chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
|
|
566
566
|
{
|
|
567
567
|
...response2,
|
|
568
568
|
ok: true,
|
|
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
|
|
|
594
594
|
labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
|
|
595
595
|
});
|
|
596
596
|
const sessionIds = built.map((session) => session.sessionId);
|
|
597
|
-
|
|
597
|
+
_chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
|
|
598
598
|
{
|
|
599
599
|
...response,
|
|
600
600
|
ok: true,
|
|
@@ -702,7 +702,7 @@ ${refreshMeta}
|
|
|
702
702
|
</body>
|
|
703
703
|
</html>`;
|
|
704
704
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
705
|
-
|
|
705
|
+
_chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
|
|
706
706
|
{
|
|
707
707
|
ok: true,
|
|
708
708
|
file: outputPath,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6R57HEPF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
enforceSdkCompatibilityResponse,
|
|
6
6
|
flushDeferredSkillsSyncNotices,
|
|
7
7
|
requireSdkCompatibility
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CYW6PE3G.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
httpJson
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UMP76GYQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
PRICING_PAGE_NOTE
|
|
6
6
|
} from "./chunk-2RIKOPIM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autoDetectBaseUrl,
|
|
9
9
|
resolveApiKeyForBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AJO3I3LL.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -1,19 +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 _chunkLBNP52C4js = require('./chunk-LBNP52C4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPRDCU7BYjs = require('./chunk-PRDCU7BY.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkITQPBWDSjs = require('./chunk-ITQPBWDS.js');
|
|
10
10
|
|
|
11
11
|
// src/cli/commands/integration-commands.ts
|
|
12
12
|
var _commander = require('commander');
|
|
13
13
|
var _fs = require('fs');
|
|
14
14
|
var _path = require('path');
|
|
15
15
|
function printIntegrationResult(value, json, lines, nextCursor) {
|
|
16
|
-
|
|
16
|
+
_chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
|
|
17
17
|
{},
|
|
18
18
|
{
|
|
19
19
|
json: json || void 0,
|
|
@@ -29,7 +29,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
|
|
|
29
29
|
return parent.command("balance <provider>", { hidden }).description(
|
|
30
30
|
"Read a fresh balance using this org\u2019s own provider connection (LeadMagic)."
|
|
31
31
|
).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
|
|
32
|
-
const balance = await new (0,
|
|
32
|
+
const balance = await new (0, _chunkLBNP52C4js.DeeplineClient)().getIntegrationBalance(
|
|
33
33
|
provider
|
|
34
34
|
);
|
|
35
35
|
printIntegrationResult(balance, options.json, [
|
|
@@ -43,7 +43,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
43
43
|
"List teammates\u2019 personal connections for this provider"
|
|
44
44
|
).option("--cursor <cursor>", "Read the next page of members").action(
|
|
45
45
|
async (options) => {
|
|
46
|
-
const client = new (0,
|
|
46
|
+
const client = new (0, _chunkLBNP52C4js.DeeplineClient)();
|
|
47
47
|
if (name === "list" && options.cursor && !options.members)
|
|
48
48
|
throw new Error(
|
|
49
49
|
"Use --cursor with --members to continue a member page."
|
|
@@ -85,7 +85,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
85
85
|
}
|
|
86
86
|
function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
|
|
87
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) => {
|
|
88
|
-
const page = await new (0,
|
|
88
|
+
const page = await new (0, _chunkLBNP52C4js.DeeplineClient)().listPersonalHubSpotMembers(
|
|
89
89
|
options.cursor
|
|
90
90
|
);
|
|
91
91
|
const rows = page.members.map((member) => {
|
|
@@ -111,7 +111,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
|
|
|
111
111
|
);
|
|
112
112
|
if (options.autoName && (action !== "connect" || options.name !== void 0))
|
|
113
113
|
throw new Error("Use --auto-name with connect and omit --name.");
|
|
114
|
-
const client = new (0,
|
|
114
|
+
const client = new (0, _chunkLBNP52C4js.DeeplineClient)();
|
|
115
115
|
const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
|
|
116
116
|
const row = connections.find(
|
|
117
117
|
(connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
|
|
@@ -144,7 +144,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
144
144
|
"Print the proposed change without contacting Google or saving it"
|
|
145
145
|
).option("--json", "Print the result as JSON").action(
|
|
146
146
|
async (action, options) => {
|
|
147
|
-
const client = new (0,
|
|
147
|
+
const client = new (0, _chunkLBNP52C4js.DeeplineClient)();
|
|
148
148
|
if (action === "list") {
|
|
149
149
|
const inventory = await client.listCalendarAvailabilityConnections();
|
|
150
150
|
const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
|
|
@@ -294,7 +294,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
294
294
|
}
|
|
295
295
|
function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
|
|
296
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) => {
|
|
297
|
-
const page = await new (0,
|
|
297
|
+
const page = await new (0, _chunkLBNP52C4js.DeeplineClient)().listAvailabilityCalendars(
|
|
298
298
|
options.cursor
|
|
299
299
|
);
|
|
300
300
|
printIntegrationResult(page, options.json, [
|
|
@@ -372,7 +372,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
372
372
|
);
|
|
373
373
|
return;
|
|
374
374
|
}
|
|
375
|
-
const result2 = await new (0,
|
|
375
|
+
const result2 = await new (0, _chunkLBNP52C4js.DeeplineClient)().connectManagedIntegration(
|
|
376
376
|
provider,
|
|
377
377
|
{
|
|
378
378
|
termsVersion: options.acceptTerms,
|
|
@@ -409,7 +409,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
409
409
|
printSetupPlan({ provider, action: "connect_link" }, options.json);
|
|
410
410
|
return;
|
|
411
411
|
}
|
|
412
|
-
const link = await new (0,
|
|
412
|
+
const link = await new (0, _chunkLBNP52C4js.DeeplineClient)().getIntegrationConnectLink(
|
|
413
413
|
provider
|
|
414
414
|
);
|
|
415
415
|
printIntegrationResult(link, options.json, [link.connect_url]);
|
|
@@ -439,7 +439,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
439
439
|
);
|
|
440
440
|
return;
|
|
441
441
|
}
|
|
442
|
-
const result2 = await new (0,
|
|
442
|
+
const result2 = await new (0, _chunkLBNP52C4js.DeeplineClient)().startIntegrationOAuth(
|
|
443
443
|
provider,
|
|
444
444
|
{
|
|
445
445
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
@@ -501,7 +501,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
501
501
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
502
502
|
);
|
|
503
503
|
}
|
|
504
|
-
const result = await new (0,
|
|
504
|
+
const result = await new (0, _chunkLBNP52C4js.DeeplineClient)().setIntegrationCredentials(
|
|
505
505
|
provider,
|
|
506
506
|
credentials,
|
|
507
507
|
{ expectedConnectionId: options.expectedConnectionId, teamId }
|
|
@@ -530,7 +530,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
530
530
|
function connectTeamId(orgDefault) {
|
|
531
531
|
if (orgDefault) return null;
|
|
532
532
|
try {
|
|
533
|
-
return _nullishCoalesce(
|
|
533
|
+
return _nullishCoalesce(_chunkITQPBWDSjs.resolveConfig.call(void 0, ).workspace, () => ( null));
|
|
534
534
|
} catch (e2) {
|
|
535
535
|
return _optionalChain([process, 'access', _9 => _9.env, 'access', _10 => _10.DEEPLINE_WORKSPACE_ID, 'optionalAccess', _11 => _11.trim, 'call', _12 => _12()]) || null;
|
|
536
536
|
}
|