deepline 0.3.545 → 0.3.546
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/errors.ts +1 -1
- package/dist/bundling-sources/sdk/src/http-core.ts +41 -12
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +2 -2
- package/dist/bundling-sources/shared_libs/play-data-plane/contracts.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +27 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/fleet-sandbox-sweep.ts +40 -3
- package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +19 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +18 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +441 -103
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +322 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +200 -64
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +65 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +5 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +32 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +206 -12
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +30 -2
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +30 -1
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +35 -2
- package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +35 -1
- package/dist/bundling-sources/shared_libs/security/email-domain.ts +19 -0
- package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +2 -0
- package/dist/cli/{auth-VZAMAMFW.mjs → auth-KFWG72AZ.mjs} +6 -6
- package/dist/cli/auth-W32GMYND.js +43 -0
- package/dist/cli/{billing-DADQUQEZ.mjs → billing-MMZ336HO.mjs} +10 -10
- package/dist/cli/{billing-ASZJDFH2.js → billing-OQVOAZ4S.js} +98 -98
- package/dist/cli/{chunk-HLUNTJBO.mjs → chunk-3DUNNZB6.mjs} +4 -4
- package/dist/cli/{chunk-YRQKRQDU.js → chunk-4AZLGNXV.js} +36 -26
- package/dist/cli/{chunk-Y3T5GWYK.mjs → chunk-5OEFXAKP.mjs} +5 -1
- package/dist/cli/{chunk-ERLW6RPA.js → chunk-5V7NZKGG.js} +2 -2
- package/dist/cli/{chunk-34UKDHRL.js → chunk-5VNQMVCU.js} +26 -26
- package/dist/cli/{chunk-DZTVDL2X.js → chunk-5W4ENHWM.js} +12 -12
- package/dist/cli/{chunk-7JZ27AFH.mjs → chunk-6FBDTYR2.mjs} +2 -2
- package/dist/cli/{chunk-QM7PHHYZ.js → chunk-6LG7MLJ2.js} +44 -44
- package/dist/cli/{chunk-7MFATEUC.mjs → chunk-6Y5TU3R7.mjs} +2 -2
- package/dist/cli/{chunk-52C6W7FG.mjs → chunk-7MY7KWJS.mjs} +1 -1
- package/dist/cli/{chunk-7P72EGLK.mjs → chunk-7ZW67ME6.mjs} +1 -1
- package/dist/cli/{chunk-TQKHXMV3.js → chunk-BTFUAGHC.js} +16 -16
- package/dist/cli/{chunk-LWPFMYSO.mjs → chunk-EEG46QZY.mjs} +2 -2
- package/dist/cli/{chunk-NCX2JH2F.js → chunk-EEJHB76U.js} +9 -9
- package/dist/cli/{chunk-2GJZLIKW.js → chunk-EITMD3A5.js} +1 -1
- package/dist/cli/{chunk-DGKDCZGC.js → chunk-F2VEFMU5.js} +13 -13
- package/dist/cli/{chunk-4JQEAYN3.js → chunk-F5YQXCP3.js} +5 -1
- package/dist/cli/{chunk-2CBX43LP.mjs → chunk-GOOF7E2B.mjs} +5 -5
- package/dist/cli/{chunk-YWTRCKGD.mjs → chunk-GYTSDSQD.mjs} +11 -11
- package/dist/cli/{chunk-G5TV6WLV.js → chunk-H7Q5IDO3.js} +19 -19
- package/dist/cli/{chunk-3TCHX7YK.mjs → chunk-HJR2DDJS.mjs} +2 -2
- package/dist/cli/{chunk-OGQYAJSO.js → chunk-IVWU7SJC.js} +5 -5
- package/dist/cli/{chunk-XGEUPU3L.mjs → chunk-J65HJCJO.mjs} +2 -2
- package/dist/cli/{chunk-Z4Y4BLW7.mjs → chunk-JA633HRV.mjs} +3 -3
- package/dist/cli/{chunk-LTCEZWPZ.mjs → chunk-JARZ47OP.mjs} +2 -2
- package/dist/cli/{chunk-5YYWZ43J.js → chunk-JCH4UNNS.js} +2 -2
- package/dist/cli/{chunk-7MHBJU73.js → chunk-JCWNF44W.js} +22 -22
- package/dist/cli/{chunk-C6XYSTBW.js → chunk-JVOUQFHT.js} +1 -1
- package/dist/cli/{chunk-HR5BT42R.js → chunk-JYG4XZLT.js} +99 -99
- package/dist/cli/{chunk-KYO2FICL.mjs → chunk-K2XELBPF.mjs} +5 -5
- package/dist/cli/{chunk-2HFSYH7V.mjs → chunk-KUK7ARXA.mjs} +2 -2
- package/dist/cli/{chunk-WP36UBRY.mjs → chunk-LHE2TSV6.mjs} +1 -1
- package/dist/cli/{chunk-N4LADLCO.js → chunk-LIJKRDDG.js} +6 -6
- package/dist/cli/{chunk-KRW727W6.mjs → chunk-LX2TC3HO.mjs} +4 -4
- package/dist/cli/{chunk-QI57XUGA.js → chunk-MEGHIX4M.js} +5 -5
- package/dist/cli/{chunk-Z7QM244Q.mjs → chunk-MI7X6V6V.mjs} +3 -3
- package/dist/cli/{chunk-CJ7DBYEQ.js → chunk-MXQP7CXZ.js} +8 -8
- package/dist/cli/{chunk-GFRJU2KB.js → chunk-ND7SFRQL.js} +2 -2
- package/dist/cli/{chunk-CQBIO6HW.mjs → chunk-NURW5XH4.mjs} +1 -1
- package/dist/cli/{chunk-GWDPNOA7.mjs → chunk-OAKWSLKS.mjs} +2 -2
- package/dist/cli/{chunk-XBYQZEUE.mjs → chunk-P7A3H6G5.mjs} +1 -1
- package/dist/cli/{chunk-NZDZGK35.js → chunk-PMDHY2YK.js} +7 -7
- package/dist/cli/{chunk-4NZ3OZNO.mjs → chunk-PU3ZAG6V.mjs} +1 -1
- package/dist/cli/{chunk-3M2QH3KA.mjs → chunk-RO66FPTS.mjs} +22 -12
- package/dist/cli/{chunk-3NG43NXB.js → chunk-SH32HL7I.js} +53 -53
- package/dist/cli/{chunk-IYJO3RWR.js → chunk-SYTWWVIQ.js} +5 -5
- package/dist/cli/{chunk-FB7UPZ6M.js → chunk-TBWYZOSV.js} +3 -3
- package/dist/cli/{chunk-CXETRZ3G.js → chunk-UQJBV5PM.js} +10 -10
- package/dist/cli/{chunk-HPX7LLAM.mjs → chunk-UREAIHUU.mjs} +2 -2
- package/dist/cli/{chunk-2FF3O2Y2.js → chunk-VAT2SXFF.js} +12 -12
- package/dist/cli/{chunk-NAN3A4IF.mjs → chunk-VPERQ3U6.mjs} +5 -5
- package/dist/cli/{chunk-XMUPZINS.mjs → chunk-VTK3HGMN.mjs} +5 -5
- package/dist/cli/{chunk-JL5JU3LD.mjs → chunk-VXTTAYOT.mjs} +2 -2
- package/dist/cli/{chunk-EK5C2R7S.js → chunk-WKHPLBJK.js} +15 -15
- package/dist/cli/{chunk-EWA3M54M.mjs → chunk-X5KOHDJN.mjs} +1 -1
- package/dist/cli/{chunk-D3SXB2NX.js → chunk-Z3UEBFIN.js} +41 -41
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-6QT7ZR4W.js +21 -0
- package/dist/cli/{concurrent-runs-help-YP7ALTDB.mjs → concurrent-runs-help-C2O5YKQA.mjs} +7 -7
- package/dist/cli/{csv-67WT5EGR.js → csv-MJDNOIQJ.js} +14 -14
- package/dist/cli/{csv-D5ITFSYI.mjs → csv-Z4DNGR54.mjs} +5 -5
- package/dist/cli/{db-SZYBRFYG.mjs → db-4RL2BNOF.mjs} +7 -7
- package/dist/cli/{db-GZS76X7R.js → db-S5QVPK5E.js} +32 -32
- package/dist/cli/{describe-YJ7ZLLLI.mjs → describe-L4P5SZLQ.mjs} +19 -19
- package/dist/cli/describe-VLU2LUDJ.js +50 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +1 -1
- package/dist/cli/describe-core.mjs +1 -1
- package/dist/cli/{executions-O5USTYGL.js → executions-MFZ2Z36O.js} +9 -9
- package/dist/cli/{executions-HMYGR32E.mjs → executions-RR6O3XK5.mjs} +7 -7
- package/dist/cli/{feedback-Z3NXWYUO.mjs → feedback-EQBQ3ABB.mjs} +7 -7
- package/dist/cli/{feedback-RHLFDCRS.js → feedback-YDAG7VH2.js} +15 -15
- package/dist/cli/git-E6W44F5M.js +25 -0
- package/dist/cli/{git-CLFKXELB.mjs → git-YGLCCU35.mjs} +6 -6
- package/dist/cli/index.js +150 -150
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-FOACOBQB.mjs → integrations-FWYXSBHK.mjs} +8 -8
- package/dist/cli/{integrations-TZ4QEQGV.js → integrations-IQXYMRMW.js} +16 -16
- package/dist/cli/{legacy-noops-6F6Y3BV7.mjs → legacy-noops-I4YRIX5F.mjs} +7 -7
- package/dist/cli/{legacy-noops-QRDOS33V.js → legacy-noops-U7LI7UXC.js} +10 -10
- package/dist/cli/{mcp-ETMMDDGB.js → mcp-GX2UKKWU.js} +25 -25
- package/dist/cli/{mcp-UXRCWOZU.mjs → mcp-QJBMB6VS.mjs} +5 -5
- package/dist/cli/{monitors-DITT7QTV.js → monitors-WCJYINGX.js} +102 -102
- package/dist/cli/{monitors-6XEWR46R.mjs → monitors-Z6EGKYJP.mjs} +8 -8
- package/dist/cli/{org-4DE37X3L.js → org-7SKG423N.js} +89 -89
- package/dist/cli/{org-CVSSH73G.mjs → org-NNHICBR2.mjs} +7 -7
- package/dist/cli/{play-RH6P45CI.js → play-4P4DTG3Q.js} +318 -318
- package/dist/cli/{play-Y5NCHOKK.mjs → play-CXDFPJ7Z.mjs} +18 -18
- package/dist/cli/{providers-DU42DLOL.js → providers-EE4TUE3O.js} +10 -10
- package/dist/cli/{providers-VHUHC4IZ.mjs → providers-VQLQ7DTR.mjs} +7 -7
- package/dist/cli/{quickstart-HJY5YYE5.mjs → quickstart-IYNJRB5G.mjs} +5 -5
- package/dist/cli/{quickstart-XJ43JLEC.js → quickstart-RVXHK4WA.js} +7 -7
- package/dist/cli/{run-JXUS7QFI.js → run-R3F34KU3.js} +44 -44
- package/dist/cli/{run-JAIXHVH7.mjs → run-VBQPPMEX.mjs} +24 -24
- package/dist/cli/{search-RDMNM2AX.mjs → search-B7R62HX5.mjs} +8 -8
- package/dist/cli/search-UUVFXZRA.js +32 -0
- package/dist/cli/{search-output-ZKTR3WTJ.mjs → search-output-LNQQXIGZ.mjs} +5 -5
- package/dist/cli/{search-output-RKAM2HBH.js → search-output-LWHWEPOT.js} +7 -7
- package/dist/cli/{secrets-WSW3FTF6.mjs → secrets-NM3VAJLO.mjs} +7 -7
- package/dist/cli/{secrets-TKFVMAYX.js → secrets-QBOZ7WTD.js} +16 -16
- package/dist/cli/sessions-K3PD73Q2.js +22 -0
- package/dist/cli/{sessions-724BK6VP.mjs → sessions-R5BSIJ4I.mjs} +7 -7
- package/dist/cli/{settings-5LJZDAZU.js → settings-POYWKNRD.js} +86 -86
- package/dist/cli/{settings-YRC7J75G.mjs → settings-S4PN7WLY.mjs} +13 -13
- package/dist/cli/{setup-STNPX5MK.mjs → setup-PFLXVBTL.mjs} +10 -10
- package/dist/cli/{setup-2F3DBSOS.js → setup-VHB4Z654.js} +50 -50
- package/dist/cli/skills-QNE2EYT3.js +36 -0
- package/dist/cli/{skills-D5PK56FO.mjs → skills-W2TELEU7.mjs} +8 -8
- package/dist/cli/tools-3RLI4HGF.js +57 -0
- package/dist/cli/{tools-WOGWMBA3.mjs → tools-M4FA6N3Y.mjs} +18 -18
- package/dist/cli/update-UT6KIW2W.js +34 -0
- package/dist/cli/{update-PC6XSWMI.mjs → update-W7LIHEA7.mjs} +10 -10
- package/dist/cli/{views-HLCLAPWN.js → views-DJXAGD7V.js} +22 -22
- package/dist/cli/{views-IIHT4RYQ.mjs → views-KTVPV6UP.mjs} +7 -7
- package/dist/cli/{workflow-HK4MZ7LK.mjs → workflow-LGKCRODX.mjs} +8 -8
- package/dist/cli/{workflow-CCZ2A7DI.js → workflow-NVZDJKH2.js} +18 -18
- package/dist/{client-BQ6yuSjM.d.ts → client-CCyWJqAI.d.ts} +1 -1
- package/dist/{client-DfdUc_MY.d.mts → client-Tp1LSULB.d.mts} +1 -1
- package/dist/{client-core-3GQ8WMuk.d.ts → client-core-BpYiYEfu.d.ts} +1 -1
- package/dist/{client-core-ClsNRytk.d.mts → client-core-D8eCZz3O.d.mts} +1 -1
- package/dist/{compiler-manifest-BWFtsQIC.d.mts → compiler-manifest-EBWEUj0b.d.mts} +35 -0
- package/dist/{compiler-manifest-BWFtsQIC.d.ts → compiler-manifest-EBWEUj0b.d.ts} +35 -0
- package/dist/{errors-Lm9_vJHZ.d.ts → errors-CParKUQR.d.mts} +2 -2
- package/dist/{errors-CwKXXtuu.d.mts → errors-Qt0OTA7_.d.ts} +2 -2
- package/dist/{index-DjwsAt82.d.mts → index-BMUVCNp7.d.mts} +1 -1
- package/dist/{index-3vJ-V9yw.d.ts → index-CoqDkIw0.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +126 -124
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +20 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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 +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +10 -10
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-455MB4K6.js +0 -43
- package/dist/cli/concurrent-runs-help-GFWXOKF5.js +0 -21
- package/dist/cli/describe-ZRGYAEBT.js +0 -50
- package/dist/cli/git-RC4XDATD.js +0 -25
- package/dist/cli/search-O5VVMXII.js +0 -32
- package/dist/cli/sessions-3PWFWCHO.js +0 -22
- package/dist/cli/skills-RFOMVXIT.js +0 -36
- package/dist/cli/tools-CAO6EVUW.js +0 -57
- package/dist/cli/update-L4DQZY3G.js +0 -34
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkMXQP7CXZjs = require('./chunk-MXQP7CXZ.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk4AZLGNXVjs = require('./chunk-4AZLGNXV.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
|
|
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
|
|
|
60
60
|
return `Service notice: ${banner.message}`;
|
|
61
61
|
}
|
|
62
62
|
function envFilePath(baseUrl) {
|
|
63
|
-
return
|
|
63
|
+
return _chunkMXQP7CXZjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
64
64
|
}
|
|
65
65
|
function normalizeAuthScope(value) {
|
|
66
66
|
if (!value || value === "global") return "global";
|
|
@@ -73,7 +73,7 @@ function parseAuthScope(args) {
|
|
|
73
73
|
}
|
|
74
74
|
function pendingClaimPath(baseUrl, scope) {
|
|
75
75
|
if (scope === "folder") {
|
|
76
|
-
const target =
|
|
76
|
+
const target = _chunkMXQP7CXZjs.resolveProjectPinTarget.call(void 0, );
|
|
77
77
|
if (!target.ok) {
|
|
78
78
|
throw new Error(
|
|
79
79
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -83,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
83
83
|
}
|
|
84
84
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
85
85
|
}
|
|
86
|
-
return `${
|
|
86
|
+
return `${_chunkMXQP7CXZjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkMXQP7CXZjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
90
90
|
}
|
|
91
91
|
function savePendingClaim(baseUrl, claim) {
|
|
92
92
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -191,21 +191,21 @@ function parseRegisterWaitMode(args) {
|
|
|
191
191
|
function shouldWaitForRegisterClaim(mode) {
|
|
192
192
|
if (mode === "yes") return true;
|
|
193
193
|
if (mode === "no") return false;
|
|
194
|
-
return
|
|
194
|
+
return _chunk4AZLGNXVjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
195
195
|
}
|
|
196
196
|
function saveEnvValues(values, baseUrl, scope) {
|
|
197
197
|
const filtered = {
|
|
198
|
-
...values[
|
|
199
|
-
...values[
|
|
200
|
-
...values[
|
|
201
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
198
|
+
...values[_chunkMXQP7CXZjs.HOST_URL_ENV] ? { [_chunkMXQP7CXZjs.HOST_URL_ENV]: values[_chunkMXQP7CXZjs.HOST_URL_ENV] } : {},
|
|
199
|
+
...values[_chunkMXQP7CXZjs.API_KEY_ENV] ? { [_chunkMXQP7CXZjs.API_KEY_ENV]: values[_chunkMXQP7CXZjs.API_KEY_ENV] } : {},
|
|
200
|
+
...values[_chunkMXQP7CXZjs.ACTIVE_ORG_ID_ENV] ? { [_chunkMXQP7CXZjs.ACTIVE_ORG_ID_ENV]: values[_chunkMXQP7CXZjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
201
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkMXQP7CXZjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkMXQP7CXZjs.ACTIVE_ORG_NAME_ENV]: values[_chunkMXQP7CXZjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
202
202
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
203
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
203
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkMXQP7CXZjs.FEATURES_ENV) ? { [_chunkMXQP7CXZjs.FEATURES_ENV]: values[_chunkMXQP7CXZjs.FEATURES_ENV] } : {}
|
|
204
204
|
};
|
|
205
205
|
if (scope === "folder") {
|
|
206
|
-
|
|
206
|
+
_chunkMXQP7CXZjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
207
207
|
} else {
|
|
208
|
-
|
|
208
|
+
_chunkMXQP7CXZjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
function activeOrgEnvValues(data) {
|
|
@@ -213,21 +213,21 @@ function activeOrgEnvValues(data) {
|
|
|
213
213
|
if (!orgId) return {};
|
|
214
214
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
215
215
|
return {
|
|
216
|
-
[
|
|
217
|
-
[
|
|
218
|
-
...
|
|
216
|
+
[_chunkMXQP7CXZjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
217
|
+
[_chunkMXQP7CXZjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
218
|
+
..._chunkMXQP7CXZjs.featureEnvValues.call(void 0, data)
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
222
222
|
const headers = {
|
|
223
223
|
"Content-Type": "application/json",
|
|
224
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
224
|
+
"User-Agent": `deepline-ts-sdk/${_chunk4AZLGNXVjs.SDK_VERSION}`,
|
|
225
225
|
"X-Deepline-Client-Family": "sdk",
|
|
226
226
|
"X-Deepline-CLI-Family": "sdk",
|
|
227
|
-
"X-Deepline-Agent-Runtime":
|
|
228
|
-
"X-Deepline-CLI-Version":
|
|
229
|
-
"X-Deepline-SDK-Version":
|
|
230
|
-
"X-Deepline-API-Contract":
|
|
227
|
+
"X-Deepline-Agent-Runtime": _chunk4AZLGNXVjs.detectAgentRuntime.call(void 0, ),
|
|
228
|
+
"X-Deepline-CLI-Version": _chunk4AZLGNXVjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-SDK-Version": _chunk4AZLGNXVjs.SDK_VERSION,
|
|
230
|
+
"X-Deepline-API-Contract": _chunk4AZLGNXVjs.SDK_API_CONTRACT
|
|
231
231
|
};
|
|
232
232
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
233
233
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -266,10 +266,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
266
266
|
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
267
267
|
throw failure;
|
|
268
268
|
}
|
|
269
|
-
const causeCode =
|
|
269
|
+
const causeCode = _chunk4AZLGNXVjs.networkCauseCode.call(void 0, failure);
|
|
270
270
|
throw Object.assign(
|
|
271
271
|
new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
272
|
-
|
|
272
|
+
_chunk4AZLGNXVjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
|
|
273
273
|
void 0,
|
|
274
274
|
"NETWORK_ERROR",
|
|
275
275
|
causeCode ? { causeCode } : void 0
|
|
@@ -286,7 +286,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
286
286
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
287
287
|
}
|
|
288
288
|
async function reportSetupCompleted(input) {
|
|
289
|
-
const apiKey = input.authScope === "folder" ?
|
|
289
|
+
const apiKey = input.authScope === "folder" ? _chunkMXQP7CXZjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkMXQP7CXZjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
290
290
|
if (!apiKey) return;
|
|
291
291
|
try {
|
|
292
292
|
await httpJson(
|
|
@@ -415,7 +415,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
|
|
|
415
415
|
return EXIT_SERVER;
|
|
416
416
|
}
|
|
417
417
|
async function handleRegister(args, options) {
|
|
418
|
-
const baseUrl =
|
|
418
|
+
const baseUrl = _chunkMXQP7CXZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
419
419
|
let orgName = "";
|
|
420
420
|
let orgId = "";
|
|
421
421
|
let agentName = "";
|
|
@@ -486,14 +486,14 @@ async function handleRegister(args, options) {
|
|
|
486
486
|
savePendingClaim(baseUrl, pendingClaim);
|
|
487
487
|
saveEnvValues(
|
|
488
488
|
{
|
|
489
|
-
[
|
|
489
|
+
[_chunkMXQP7CXZjs.HOST_URL_ENV]: baseUrl
|
|
490
490
|
},
|
|
491
491
|
baseUrl,
|
|
492
492
|
authScope
|
|
493
493
|
);
|
|
494
494
|
}
|
|
495
495
|
if (claimUrl && !_optionalChain([options, 'optionalAccess', _16 => _16.delegatedApproval])) {
|
|
496
|
-
const shouldOpen = waitMode !== "no" &&
|
|
496
|
+
const shouldOpen = waitMode !== "no" && _chunk4AZLGNXVjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
497
497
|
console.log(" Open this approval page in your browser:");
|
|
498
498
|
console.log(` ${claimUrl}`);
|
|
499
499
|
if (pendingClaim.device) {
|
|
@@ -501,7 +501,7 @@ async function handleRegister(args, options) {
|
|
|
501
501
|
` Click Approve if the page shows ${pendingClaim.device.userCode}.`
|
|
502
502
|
);
|
|
503
503
|
}
|
|
504
|
-
const opened = shouldOpen &&
|
|
504
|
+
const opened = shouldOpen && _chunkH7Q5IDO3js.openInBrowser.call(void 0, claimUrl) === "opened";
|
|
505
505
|
if (claimToken && pendingClaim.approvalLinkReporting) {
|
|
506
506
|
await reportApprovalLinkShown(
|
|
507
507
|
baseUrl,
|
|
@@ -554,8 +554,8 @@ async function handleRegister(args, options) {
|
|
|
554
554
|
if (apiKey) {
|
|
555
555
|
saveEnvValues(
|
|
556
556
|
{
|
|
557
|
-
[
|
|
558
|
-
[
|
|
557
|
+
[_chunkMXQP7CXZjs.HOST_URL_ENV]: baseUrl,
|
|
558
|
+
[_chunkMXQP7CXZjs.API_KEY_ENV]: apiKey,
|
|
559
559
|
...activeOrgEnvValues(statusData)
|
|
560
560
|
},
|
|
561
561
|
baseUrl,
|
|
@@ -577,7 +577,7 @@ async function handleRegister(args, options) {
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
async function handleWait(args, options) {
|
|
580
|
-
const baseUrl =
|
|
580
|
+
const baseUrl = _chunkMXQP7CXZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
581
581
|
let timeoutSeconds = 300;
|
|
582
582
|
let requestedScope;
|
|
583
583
|
if (args.includes("--auth-scope")) {
|
|
@@ -601,7 +601,7 @@ async function handleWait(args, options) {
|
|
|
601
601
|
const authScope = resumed.scope;
|
|
602
602
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _18 => _18.claimToken]), () => ( ""));
|
|
603
603
|
if (!pendingClaim) {
|
|
604
|
-
const scopedApiKey = authScope === "folder" ?
|
|
604
|
+
const scopedApiKey = authScope === "folder" ? _chunkMXQP7CXZjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkMXQP7CXZjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
605
605
|
if (scopedApiKey) {
|
|
606
606
|
if (!_optionalChain([options, 'optionalAccess', _19 => _19.quiet])) console.log("Already connected.");
|
|
607
607
|
return EXIT_OK;
|
|
@@ -664,8 +664,8 @@ async function handleWait(args, options) {
|
|
|
664
664
|
if (apiKey) {
|
|
665
665
|
saveEnvValues(
|
|
666
666
|
{
|
|
667
|
-
[
|
|
668
|
-
[
|
|
667
|
+
[_chunkMXQP7CXZjs.HOST_URL_ENV]: baseUrl,
|
|
668
|
+
[_chunkMXQP7CXZjs.API_KEY_ENV]: apiKey,
|
|
669
669
|
...activeOrgEnvValues(data)
|
|
670
670
|
},
|
|
671
671
|
baseUrl,
|
|
@@ -695,8 +695,8 @@ async function handleWait(args, options) {
|
|
|
695
695
|
return EXIT_AUTH;
|
|
696
696
|
}
|
|
697
697
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
698
|
-
const baseUrl =
|
|
699
|
-
const apiKey =
|
|
698
|
+
const baseUrl = _chunkMXQP7CXZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
699
|
+
const apiKey = _chunkMXQP7CXZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
700
700
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
701
701
|
try {
|
|
702
702
|
const { status, data } = await httpJson(
|
|
@@ -719,9 +719,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
async function handleStatus(args) {
|
|
722
|
-
const baseUrl =
|
|
722
|
+
const baseUrl = _chunkMXQP7CXZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
723
723
|
const reveal = args.includes("--reveal");
|
|
724
|
-
const jsonOutput =
|
|
724
|
+
const jsonOutput = _chunkH7Q5IDO3js.argsWantJson.call(void 0, args);
|
|
725
725
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
726
726
|
let authScope = null;
|
|
727
727
|
if (hasExplicitAuthScope) {
|
|
@@ -762,14 +762,14 @@ async function handleStatus(args) {
|
|
|
762
762
|
};
|
|
763
763
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
764
764
|
}
|
|
765
|
-
const apiKey = authScope === "folder" ?
|
|
765
|
+
const apiKey = authScope === "folder" ? _chunkMXQP7CXZjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkMXQP7CXZjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkMXQP7CXZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
766
766
|
if (!apiKey) {
|
|
767
767
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
768
768
|
baseUrl,
|
|
769
769
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
770
770
|
);
|
|
771
771
|
if (pendingClaim) {
|
|
772
|
-
|
|
772
|
+
_chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
|
|
773
773
|
{
|
|
774
774
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
775
775
|
status: "pending",
|
|
@@ -799,7 +799,7 @@ async function handleStatus(args) {
|
|
|
799
799
|
);
|
|
800
800
|
return EXIT_OK;
|
|
801
801
|
}
|
|
802
|
-
|
|
802
|
+
_chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
|
|
803
803
|
{
|
|
804
804
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
805
805
|
status: "not connected",
|
|
@@ -832,7 +832,7 @@ async function handleStatus(args) {
|
|
|
832
832
|
}
|
|
833
833
|
);
|
|
834
834
|
if (status === 401 || status === 403) {
|
|
835
|
-
|
|
835
|
+
_chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
|
|
836
836
|
{
|
|
837
837
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
838
838
|
status: "unauthorized",
|
|
@@ -859,7 +859,7 @@ async function handleStatus(args) {
|
|
|
859
859
|
console.error(`Auth status error (status ${status}).`);
|
|
860
860
|
return EXIT_SERVER;
|
|
861
861
|
}
|
|
862
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
862
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkMXQP7CXZjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
863
863
|
clearSatisfiedPendingClaim(
|
|
864
864
|
baseUrl,
|
|
865
865
|
resolvedAuthScope,
|
|
@@ -887,28 +887,28 @@ async function handleStatus(args) {
|
|
|
887
887
|
if (apiKeyResp) {
|
|
888
888
|
saveEnvValues(
|
|
889
889
|
{
|
|
890
|
-
[
|
|
891
|
-
[
|
|
890
|
+
[_chunkMXQP7CXZjs.HOST_URL_ENV]: baseUrl,
|
|
891
|
+
[_chunkMXQP7CXZjs.API_KEY_ENV]: apiKeyResp,
|
|
892
892
|
...activeOrgEnvValues(data)
|
|
893
893
|
},
|
|
894
894
|
baseUrl,
|
|
895
895
|
resolvedAuthScope
|
|
896
896
|
);
|
|
897
897
|
if (resolvedAuthScope === "folder") {
|
|
898
|
-
const target =
|
|
898
|
+
const target = _chunkMXQP7CXZjs.resolveProjectPinTarget.call(void 0, );
|
|
899
899
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
900
900
|
} else {
|
|
901
901
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
905
|
-
saveEnvValues(
|
|
904
|
+
} else if (resolvedAuthScope === "folder" || _chunkMXQP7CXZjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
905
|
+
saveEnvValues(_chunkMXQP7CXZjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
906
906
|
}
|
|
907
|
-
|
|
907
|
+
_chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
|
|
908
908
|
{
|
|
909
909
|
...payload,
|
|
910
|
-
...
|
|
911
|
-
command_context:
|
|
910
|
+
..._chunk4AZLGNXVjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
911
|
+
command_context: _chunkMXQP7CXZjs.resolveCliCommandContext.call(void 0,
|
|
912
912
|
{ baseUrl, apiKey },
|
|
913
913
|
resolvedAuthScope
|
|
914
914
|
)
|
|
@@ -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 _chunk5W4ENHWMjs = require('./chunk-5W4ENHWM.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkMXQP7CXZjs = require('./chunk-MXQP7CXZ.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunk5W4ENHWMjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkMXQP7CXZjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkMXQP7CXZjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkH7Q5IDO3js.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkH7Q5IDO3js.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSYTWWVIQjs = require('./chunk-SYTWWVIQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkMXQP7CXZjs = require('./chunk-MXQP7CXZ.js');
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
var _commander = require('commander');
|
|
@@ -22,7 +22,7 @@ var _fs = require('fs');
|
|
|
22
22
|
var _path = require('path');
|
|
23
23
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
24
24
|
function lastSearchPath() {
|
|
25
|
-
return _path.join.call(void 0,
|
|
25
|
+
return _path.join.call(void 0, _chunkMXQP7CXZjs.sdkCliStateDirPath.call(void 0, _chunkMXQP7CXZjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
26
26
|
}
|
|
27
27
|
function rememberSearchRef(searchRef) {
|
|
28
28
|
writeSearchRefs({ searchRef });
|
|
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
132
132
|
console.error("--summary-width must be an integer of at least 2.");
|
|
133
133
|
return 1;
|
|
134
134
|
}
|
|
135
|
-
const client = new (0,
|
|
135
|
+
const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-LWHWEPOT.js")));
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
157
157
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
158
158
|
if (!multiple) {
|
|
159
159
|
if (searchRef) rememberSearchRef(searchRef);
|
|
160
|
-
|
|
160
|
+
_chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, result, { json, text });
|
|
161
161
|
return 0;
|
|
162
162
|
}
|
|
163
163
|
searches.push({ ...result, query });
|
|
@@ -171,8 +171,8 @@ ${text}`);
|
|
|
171
171
|
}
|
|
172
172
|
} catch (error) {
|
|
173
173
|
if (!multiple) throw error;
|
|
174
|
-
const payload =
|
|
175
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
174
|
+
const payload = _chunkH7Q5IDO3js.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkH7Q5IDO3js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
176
176
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
177
177
|
if (!json) {
|
|
178
178
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -184,7 +184,7 @@ Search failed.
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
rememberSearchRefsByTool(refs);
|
|
187
|
-
|
|
187
|
+
_chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-Z7SXGOIQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OAKWSLKS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-LX35AXTN.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VXTTAYOT.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-JL2OTMSG.mjs";
|
|
@@ -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 _chunkSYTWWVIQjs = require('./chunk-SYTWWVIQ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.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
|
+
_chunkH7Q5IDO3js.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, _chunkSYTWWVIQjs.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, _chunkSYTWWVIQjs.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, _chunkSYTWWVIQjs.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, _chunkSYTWWVIQjs.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, _chunkSYTWWVIQjs.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, _chunkSYTWWVIQjs.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, _chunkSYTWWVIQjs.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, _chunkSYTWWVIQjs.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, _chunkSYTWWVIQjs.DeeplineClient)().setIntegrationCredentials(
|
|
420
420
|
provider,
|
|
421
421
|
credentials,
|
|
422
422
|
{ expectedConnectionId: options.expectedConnectionId }
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VTK3HGMN.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
syncSdkSkillsIfNeeded
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GOOF7E2B.mjs";
|
|
12
12
|
import {
|
|
13
13
|
addJsonNotice,
|
|
14
14
|
isJsonOutputMode
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VXTTAYOT.mjs";
|
|
16
16
|
import {
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6Y5TU3R7.mjs";
|
|
19
19
|
import {
|
|
20
20
|
SDK_VERSION
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RO66FPTS.mjs";
|
|
22
22
|
|
|
23
23
|
// src/cli/compatibility-catalog.ts
|
|
24
24
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P7A3H6G5.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3DUNNZB6.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GOOF7E2B.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VXTTAYOT.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6Y5TU3R7.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
resolveApiKeyForBaseUrl,
|
|
5
5
|
resolveCliCommandContext,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6Y5TU3R7.mjs";
|
|
8
8
|
import {
|
|
9
9
|
SDK_VERSION,
|
|
10
10
|
agentSessionIdFromEnvironment,
|
|
11
11
|
deploymentProtectionHeaders,
|
|
12
12
|
detectAgentRuntime
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RO66FPTS.mjs";
|
|
14
14
|
import {
|
|
15
15
|
DeeplineError,
|
|
16
16
|
normalizeToolExecutionFailure,
|