deepline 0.3.521 → 0.3.523
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client-core.ts +118 -0
- package/dist/bundling-sources/sdk/src/index.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +47 -18
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/db-session-renewal.ts +209 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +24 -7
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +38 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +92 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +96 -25
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +139 -17
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +26 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +145 -5
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +190 -10
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +85 -5
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +21 -11
- package/dist/cli/{artifacts-TYPU37IU.mjs → artifacts-RBHR2DG4.mjs} +6 -6
- package/dist/cli/{artifacts-JGH464N2.js → artifacts-RZTS2JHZ.js} +18 -18
- package/dist/cli/auth-DPWYFQR5.js +43 -0
- package/dist/cli/{auth-XPQT6NUB.mjs → auth-ENQUQS56.mjs} +5 -5
- package/dist/cli/{billing-47AMHOMP.mjs → billing-6A27ULCX.mjs} +7 -7
- package/dist/cli/{billing-6D4KXBFJ.js → billing-6HONTJOY.js} +82 -82
- package/dist/cli/{chunk-DY6634MN.js → chunk-2BRDHM4S.js} +9 -9
- package/dist/cli/{chunk-LGU2NIOT.js → chunk-326WVSWS.js} +108 -96
- package/dist/cli/{chunk-UAZKOH3J.js → chunk-36LQQL5C.js} +5 -5
- package/dist/cli/{chunk-VYY5V4M5.js → chunk-4NWY7JBB.js} +11 -11
- package/dist/cli/{chunk-2DQPB5HT.mjs → chunk-4V63IJCL.mjs} +5 -5
- package/dist/cli/{chunk-4MONKWYE.mjs → chunk-5WFQXAD4.mjs} +5 -5
- package/dist/cli/{chunk-A6USUS4L.mjs → chunk-6DBRBWHC.mjs} +2 -2
- package/dist/cli/{chunk-4I7I5CGB.mjs → chunk-6OZ2WSHD.mjs} +1 -1
- package/dist/cli/{chunk-MD43YAL6.js → chunk-7GNKAACY.js} +6 -6
- package/dist/cli/{chunk-7IYDCHTG.mjs → chunk-7M5FRSFP.mjs} +2 -2
- package/dist/cli/{chunk-HHBJJYKL.mjs → chunk-DNXP3D5H.mjs} +5 -5
- package/dist/cli/{chunk-4DB6JV7X.mjs → chunk-F3WRLFFM.mjs} +2 -2
- package/dist/cli/{chunk-AMVKLEPH.js → chunk-FBMOBNJY.js} +2 -2
- package/dist/cli/{chunk-EZNZDOAG.mjs → chunk-H7275EZU.mjs} +5 -5
- package/dist/cli/{chunk-CBBCUYIN.mjs → chunk-HSVGP4CI.mjs} +2 -2
- package/dist/cli/{chunk-FTZX4QZN.js → chunk-HUC5SGJQ.js} +2 -2
- package/dist/cli/{chunk-4MN65FRF.js → chunk-HUIFUE4L.js} +53 -53
- package/dist/cli/{chunk-5T7QKHQL.mjs → chunk-I62LJ7NU.mjs} +1 -1
- package/dist/cli/{chunk-EW3EAEWZ.js → chunk-IEVXYHGJ.js} +5 -5
- package/dist/cli/{chunk-E4ZS2B2J.mjs → chunk-JCTTXLAZ.mjs} +1 -1
- package/dist/cli/{chunk-LNBMEFOI.mjs → chunk-JGZQBDYG.mjs} +4 -4
- package/dist/cli/{chunk-GNYSODBR.js → chunk-JMMNCJ7Z.js} +1 -1
- package/dist/cli/{chunk-7AUXX6M5.mjs → chunk-JVEFMOY2.mjs} +1 -1
- package/dist/cli/{chunk-3Q7HEEH2.js → chunk-K326BEVR.js} +10 -10
- package/dist/cli/{chunk-TBIWR7M2.mjs → chunk-KILRUAXF.mjs} +1 -1
- package/dist/cli/{chunk-6UHYXNCP.mjs → chunk-LZL6V5M5.mjs} +2 -2
- package/dist/cli/{chunk-EILHJRPW.js → chunk-MCXPJYBN.js} +3 -3
- package/dist/cli/{chunk-VE6FHVXZ.mjs → chunk-MHTRYBXY.mjs} +78 -1
- package/dist/cli/{chunk-VSH3AE5E.js → chunk-MT3WG3KR.js} +16 -16
- package/dist/cli/{chunk-PUKWFJXW.js → chunk-MZROKQV3.js} +44 -44
- package/dist/cli/{chunk-QGTWGHYD.js → chunk-N5MLEXZ7.js} +50 -8
- package/dist/cli/{chunk-ZO2XJVFH.mjs → chunk-NWTMQGPP.mjs} +6 -6
- package/dist/cli/{chunk-6V2RI3AL.mjs → chunk-PCORO245.mjs} +2 -2
- package/dist/cli/{chunk-MRU4N33M.js → chunk-PESMXAUG.js} +6 -6
- package/dist/cli/{chunk-4GGXAYKI.mjs → chunk-QMBL5ZIQ.mjs} +3 -3
- package/dist/cli/{chunk-A2B5AAU3.mjs → chunk-QOO5W5XS.mjs} +22 -10
- package/dist/cli/{chunk-HRWVEIAX.mjs → chunk-QSAC3IVI.mjs} +1 -1
- package/dist/cli/{chunk-HYR34KFA.js → chunk-QYXIODWH.js} +78 -1
- package/dist/cli/{chunk-Y7IR4LBU.mjs → chunk-RKREB7MU.mjs} +3 -3
- package/dist/cli/{chunk-JFQJNYTB.js → chunk-RQN4PHRE.js} +16 -16
- package/dist/cli/{chunk-6DCBTJZP.js → chunk-S4YKRH3W.js} +3 -3
- package/dist/cli/{chunk-ULW2KBKL.js → chunk-SBGKKOCC.js} +26 -26
- package/dist/cli/{chunk-DQURY3WH.mjs → chunk-SXTVJIGB.mjs} +1 -1
- package/dist/cli/{chunk-7LRALARF.mjs → chunk-U6DLLV3S.mjs} +1 -1
- package/dist/cli/{chunk-NNDAVVBG.mjs → chunk-UH3EAFFN.mjs} +2 -2
- package/dist/cli/{chunk-HSFLMTED.js → chunk-UQN4VTZL.js} +4 -4
- package/dist/cli/{chunk-HD3KYCDC.js → chunk-V46J3UTM.js} +7 -7
- package/dist/cli/{chunk-WL6WPW6X.js → chunk-WGVJA4I5.js} +14 -14
- package/dist/cli/{chunk-FQJFONFT.mjs → chunk-WVQOXYTQ.mjs} +44 -2
- package/dist/cli/{chunk-Y23TOHNV.js → chunk-XVXEARHC.js} +41 -41
- package/dist/cli/{chunk-6N72GHAV.js → chunk-XYL26236.js} +2 -2
- package/dist/cli/{chunk-YROP3H6T.js → chunk-ZWN4RXC2.js} +22 -22
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-5TM2OSYP.js → csv-UBACJK75.js} +13 -13
- package/dist/cli/{csv-PM3WDXDF.mjs → csv-YFJ2JLUP.mjs} +4 -4
- package/dist/cli/{db-3LJ32FZM.js → db-2ZPA2LZ7.js} +27 -27
- package/dist/cli/{db-5P72NPRL.mjs → db-NKGYTAQO.mjs} +6 -6
- package/dist/cli/{describe-ZLCMBGHG.mjs → describe-GX7DRKWZ.mjs} +18 -18
- package/dist/cli/describe-WQZF7MEG.js +50 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-JMFL6AV7.mjs → executions-HTHQ7KKD.mjs} +6 -6
- package/dist/cli/{executions-4AJ5TQVY.js → executions-NXMRGPIL.js} +8 -8
- package/dist/cli/{feedback-I2BLXMGH.js → feedback-TGVQACRO.js} +10 -10
- package/dist/cli/{feedback-DKMG2QB7.mjs → feedback-USP4T34P.mjs} +5 -5
- package/dist/cli/{git-ARG223MY.mjs → git-KUONEHCD.mjs} +5 -5
- package/dist/cli/git-X3SCQREB.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-N7SVA7PL.js → legacy-noops-2JY3CQ24.js} +9 -9
- package/dist/cli/{legacy-noops-24LOAOZN.mjs → legacy-noops-B2GMHU42.mjs} +6 -6
- package/dist/cli/{monitors-RYQFWM2T.mjs → monitors-2OVBZJ6Z.mjs} +7 -7
- package/dist/cli/{monitors-XNCYLOJM.js → monitors-XI6I52AX.js} +100 -100
- package/dist/cli/{org-I33TKZXF.js → org-5TUQ2H6Y.js} +235 -72
- package/dist/cli/{org-ORIH56E5.mjs → org-BNJW764Y.mjs} +169 -6
- package/dist/cli/{pages-ME43HSBL.mjs → pages-QC3TQIPW.mjs} +6 -6
- package/dist/cli/{pages-2UXXGIMF.js → pages-UXCLX53Y.js} +18 -18
- package/dist/cli/{play-XEKNY46M.mjs → play-45PPG5SZ.mjs} +18 -18
- package/dist/cli/{play-F4QOFU37.js → play-KRWMZ7FG.js} +317 -317
- package/dist/cli/{providers-XKU44G74.mjs → providers-JDT35MRL.mjs} +6 -6
- package/dist/cli/{providers-E7DPCBNX.js → providers-RBUJ72Y3.js} +9 -9
- package/dist/cli/{quickstart-J7NVEXV5.mjs → quickstart-GD2SWGAC.mjs} +4 -4
- package/dist/cli/{quickstart-ICLF2F6A.js → quickstart-JZ4Q3HFT.js} +6 -6
- package/dist/cli/{run-HJMHUQBN.js → run-JEAHA367.js} +41 -41
- package/dist/cli/{run-MQ5ZONGL.mjs → run-KIZ3HBI2.mjs} +23 -23
- package/dist/cli/{search-GGRC77CV.mjs → search-5UFNXHFK.mjs} +8 -8
- package/dist/cli/search-6JULJMD7.js +33 -0
- package/dist/cli/{search-output-NY4GDBRU.mjs → search-output-HAXPKQO6.mjs} +4 -4
- package/dist/cli/{search-output-MXZTZI2P.js → search-output-W3RDSVLE.js} +6 -6
- package/dist/cli/{secrets-FA37G4Q2.mjs → secrets-JAWT66B2.mjs} +6 -6
- package/dist/cli/{secrets-PFESG72B.js → secrets-PC7C2Q32.js} +15 -15
- package/dist/cli/{sessions-BLLXPETU.mjs → sessions-325V7G35.mjs} +6 -6
- package/dist/cli/sessions-WFUCOJHZ.js +18 -0
- package/dist/cli/{settings-U26S7MPH.mjs → settings-FKHTA65P.mjs} +13 -13
- package/dist/cli/{settings-32VPG4Z2.js → settings-RGU6Y2QR.js} +86 -86
- package/dist/cli/{setup-4AXBCX7C.mjs → setup-43GOYTFC.mjs} +10 -10
- package/dist/cli/{setup-R6NSENH7.js → setup-ZMZ7HU2I.js} +50 -50
- package/dist/cli/skills-3XTQ6FFM.js +37 -0
- package/dist/cli/{skills-JUH7AVUL.mjs → skills-Q2VAHSXM.mjs} +8 -8
- package/dist/cli/{tools-FOYLU3FH.mjs → tools-BUH7ZWDS.mjs} +17 -17
- package/dist/cli/tools-UK2R4YXQ.js +57 -0
- package/dist/cli/{update-FUVX22VM.mjs → update-JFALWOHD.mjs} +10 -10
- package/dist/cli/update-LNKPHS54.js +35 -0
- package/dist/cli/{workflow-QLT22BLT.mjs → workflow-ISJKLY6X.mjs} +7 -7
- package/dist/cli/{workflow-JACZW4GJ.js → workflow-YELST32A.js} +17 -17
- package/dist/{client-DA71-2_u.d.mts → client-C2N7MofG.d.mts} +1 -1
- package/dist/{client-B-2Am2y6.d.ts → client-C7lTRJjw.d.ts} +1 -1
- package/dist/{client-core-BXbds1cb.d.mts → client-core-BTkDSKGn.d.mts} +79 -2
- package/dist/{client-core-C0IzDKMJ.d.ts → client-core-hmhBi7Ib.d.ts} +79 -2
- package/dist/{compiler-manifest-B4mIIbw7.d.ts → compiler-manifest-DsxsQP-T.d.mts} +14 -7
- package/dist/{compiler-manifest-B4mIIbw7.d.mts → compiler-manifest-DsxsQP-T.d.ts} +14 -7
- package/dist/{errors-Gj9i5Rkd.d.ts → errors-Bk5h1D-C.d.ts} +1 -1
- package/dist/{errors-C2F4qzAq.d.mts → errors-qdJUVQ3g.d.mts} +1 -1
- package/dist/{index-5JZBufdF.d.mts → index-PaupwX1B.d.mts} +1 -1
- package/dist/{index-BXtSj8bv.d.ts → index-bL66eHYz.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +117 -116
- 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 +7 -5
- 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 +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-JWR3VSNT.js +0 -43
- package/dist/cli/describe-GRS3IRSX.js +0 -50
- package/dist/cli/git-2LNT43A2.js +0 -25
- package/dist/cli/search-V6IBJ4TX.js +0 -33
- package/dist/cli/sessions-DNFTQOQH.js +0 -18
- package/dist/cli/skills-G4ZE3OS5.js +0 -37
- package/dist/cli/tools-27LHZFJD.js +0 -57
- package/dist/cli/update-KNZ7N242.js +0 -35
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkV46J3UTMjs = require('./chunk-V46J3UTM.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkHD3KYCDCjs = require('./chunk-HD3KYCDC.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkMCXPJYBNjs = require('./chunk-MCXPJYBN.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkUQN4VTZLjs = require('./chunk-UQN4VTZL.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.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 _chunkMCXPJYBNjs.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 = _chunkMCXPJYBNjs.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 `${_chunkMCXPJYBNjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkMCXPJYBNjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
90
90
|
}
|
|
91
91
|
function savePendingClaim(baseUrl, claim) {
|
|
92
92
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -190,21 +190,21 @@ function parseRegisterWaitMode(args) {
|
|
|
190
190
|
function shouldWaitForRegisterClaim(mode) {
|
|
191
191
|
if (mode === "yes") return true;
|
|
192
192
|
if (mode === "no") return false;
|
|
193
|
-
return
|
|
193
|
+
return _chunkUQN4VTZLjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
194
194
|
}
|
|
195
195
|
function saveEnvValues(values, baseUrl, scope) {
|
|
196
196
|
const filtered = {
|
|
197
|
-
...values[
|
|
198
|
-
...values[
|
|
199
|
-
...values[
|
|
200
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
197
|
+
...values[_chunkMCXPJYBNjs.HOST_URL_ENV] ? { [_chunkMCXPJYBNjs.HOST_URL_ENV]: values[_chunkMCXPJYBNjs.HOST_URL_ENV] } : {},
|
|
198
|
+
...values[_chunkMCXPJYBNjs.API_KEY_ENV] ? { [_chunkMCXPJYBNjs.API_KEY_ENV]: values[_chunkMCXPJYBNjs.API_KEY_ENV] } : {},
|
|
199
|
+
...values[_chunkMCXPJYBNjs.ACTIVE_ORG_ID_ENV] ? { [_chunkMCXPJYBNjs.ACTIVE_ORG_ID_ENV]: values[_chunkMCXPJYBNjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
200
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkMCXPJYBNjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkMCXPJYBNjs.ACTIVE_ORG_NAME_ENV]: values[_chunkMCXPJYBNjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
201
201
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
202
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
202
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkMCXPJYBNjs.FEATURES_ENV) ? { [_chunkMCXPJYBNjs.FEATURES_ENV]: values[_chunkMCXPJYBNjs.FEATURES_ENV] } : {}
|
|
203
203
|
};
|
|
204
204
|
if (scope === "folder") {
|
|
205
|
-
|
|
205
|
+
_chunkMCXPJYBNjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
206
206
|
} else {
|
|
207
|
-
|
|
207
|
+
_chunkMCXPJYBNjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
function activeOrgEnvValues(data) {
|
|
@@ -212,21 +212,21 @@ function activeOrgEnvValues(data) {
|
|
|
212
212
|
if (!orgId) return {};
|
|
213
213
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
214
214
|
return {
|
|
215
|
-
[
|
|
216
|
-
[
|
|
217
|
-
...
|
|
215
|
+
[_chunkMCXPJYBNjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
216
|
+
[_chunkMCXPJYBNjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
217
|
+
..._chunkMCXPJYBNjs.featureEnvValues.call(void 0, data)
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
221
221
|
const headers = {
|
|
222
222
|
"Content-Type": "application/json",
|
|
223
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
223
|
+
"User-Agent": `deepline-ts-sdk/${_chunkUQN4VTZLjs.SDK_VERSION}`,
|
|
224
224
|
"X-Deepline-Client-Family": "sdk",
|
|
225
225
|
"X-Deepline-CLI-Family": "sdk",
|
|
226
|
-
"X-Deepline-Agent-Runtime":
|
|
227
|
-
"X-Deepline-CLI-Version":
|
|
228
|
-
"X-Deepline-SDK-Version":
|
|
229
|
-
"X-Deepline-API-Contract":
|
|
226
|
+
"X-Deepline-Agent-Runtime": _chunkUQN4VTZLjs.detectAgentRuntime.call(void 0, ),
|
|
227
|
+
"X-Deepline-CLI-Version": _chunkUQN4VTZLjs.SDK_VERSION,
|
|
228
|
+
"X-Deepline-SDK-Version": _chunkUQN4VTZLjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-API-Contract": _chunkUQN4VTZLjs.SDK_API_CONTRACT
|
|
230
230
|
};
|
|
231
231
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
232
232
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -265,10 +265,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
265
265
|
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
266
266
|
throw failure;
|
|
267
267
|
}
|
|
268
|
-
const causeCode =
|
|
268
|
+
const causeCode = _chunkUQN4VTZLjs.networkCauseCode.call(void 0, failure);
|
|
269
269
|
throw Object.assign(
|
|
270
270
|
new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
271
|
-
|
|
271
|
+
_chunkUQN4VTZLjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
|
|
272
272
|
void 0,
|
|
273
273
|
"NETWORK_ERROR",
|
|
274
274
|
causeCode ? { causeCode } : void 0
|
|
@@ -285,7 +285,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
285
285
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
286
286
|
}
|
|
287
287
|
async function reportSetupCompleted(input) {
|
|
288
|
-
const apiKey = input.authScope === "folder" ?
|
|
288
|
+
const apiKey = input.authScope === "folder" ? _chunkMCXPJYBNjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkMCXPJYBNjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
289
289
|
if (!apiKey) return;
|
|
290
290
|
try {
|
|
291
291
|
await httpJson(
|
|
@@ -414,7 +414,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
|
|
|
414
414
|
return EXIT_SERVER;
|
|
415
415
|
}
|
|
416
416
|
async function handleRegister(args, options) {
|
|
417
|
-
const baseUrl =
|
|
417
|
+
const baseUrl = _chunkMCXPJYBNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
418
418
|
let orgName = "";
|
|
419
419
|
let orgId = "";
|
|
420
420
|
let agentName = "";
|
|
@@ -473,19 +473,19 @@ async function handleRegister(args, options) {
|
|
|
473
473
|
savePendingClaim(baseUrl, pendingClaim);
|
|
474
474
|
saveEnvValues(
|
|
475
475
|
{
|
|
476
|
-
[
|
|
476
|
+
[_chunkMCXPJYBNjs.HOST_URL_ENV]: baseUrl
|
|
477
477
|
},
|
|
478
478
|
baseUrl,
|
|
479
479
|
authScope
|
|
480
480
|
);
|
|
481
481
|
}
|
|
482
482
|
if (claimUrl) {
|
|
483
|
-
const shouldOpen = waitMode !== "no" &&
|
|
483
|
+
const shouldOpen = waitMode !== "no" && _chunkUQN4VTZLjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
484
484
|
console.log(
|
|
485
485
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
486
486
|
);
|
|
487
487
|
console.log(` ${claimUrl}`);
|
|
488
|
-
if (shouldOpen)
|
|
488
|
+
if (shouldOpen) _chunkV46J3UTMjs.openInBrowser.call(void 0, claimUrl);
|
|
489
489
|
if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
|
|
490
490
|
await reportApprovalLinkShown(
|
|
491
491
|
baseUrl,
|
|
@@ -534,8 +534,8 @@ async function handleRegister(args, options) {
|
|
|
534
534
|
if (apiKey) {
|
|
535
535
|
saveEnvValues(
|
|
536
536
|
{
|
|
537
|
-
[
|
|
538
|
-
[
|
|
537
|
+
[_chunkMCXPJYBNjs.HOST_URL_ENV]: baseUrl,
|
|
538
|
+
[_chunkMCXPJYBNjs.API_KEY_ENV]: apiKey,
|
|
539
539
|
...activeOrgEnvValues(statusData)
|
|
540
540
|
},
|
|
541
541
|
baseUrl,
|
|
@@ -557,7 +557,7 @@ async function handleRegister(args, options) {
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
async function handleWait(args) {
|
|
560
|
-
const baseUrl =
|
|
560
|
+
const baseUrl = _chunkMCXPJYBNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
561
561
|
let timeoutSeconds = 300;
|
|
562
562
|
let requestedScope;
|
|
563
563
|
if (args.includes("--auth-scope")) {
|
|
@@ -581,7 +581,7 @@ async function handleWait(args) {
|
|
|
581
581
|
const authScope = resumed.scope;
|
|
582
582
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
|
|
583
583
|
if (!pendingClaim) {
|
|
584
|
-
const scopedApiKey = authScope === "folder" ?
|
|
584
|
+
const scopedApiKey = authScope === "folder" ? _chunkMCXPJYBNjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkMCXPJYBNjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
585
585
|
if (scopedApiKey) {
|
|
586
586
|
console.log("Already connected.");
|
|
587
587
|
return EXIT_OK;
|
|
@@ -623,8 +623,8 @@ async function handleWait(args) {
|
|
|
623
623
|
if (apiKey) {
|
|
624
624
|
saveEnvValues(
|
|
625
625
|
{
|
|
626
|
-
[
|
|
627
|
-
[
|
|
626
|
+
[_chunkMCXPJYBNjs.HOST_URL_ENV]: baseUrl,
|
|
627
|
+
[_chunkMCXPJYBNjs.API_KEY_ENV]: apiKey,
|
|
628
628
|
...activeOrgEnvValues(data)
|
|
629
629
|
},
|
|
630
630
|
baseUrl,
|
|
@@ -648,8 +648,8 @@ async function handleWait(args) {
|
|
|
648
648
|
return EXIT_AUTH;
|
|
649
649
|
}
|
|
650
650
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
651
|
-
const baseUrl =
|
|
652
|
-
const apiKey =
|
|
651
|
+
const baseUrl = _chunkMCXPJYBNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
652
|
+
const apiKey = _chunkMCXPJYBNjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
653
653
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
654
654
|
try {
|
|
655
655
|
const { status, data } = await httpJson(
|
|
@@ -672,9 +672,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
async function handleStatus(args) {
|
|
675
|
-
const baseUrl =
|
|
675
|
+
const baseUrl = _chunkMCXPJYBNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
676
676
|
const reveal = args.includes("--reveal");
|
|
677
|
-
const jsonOutput =
|
|
677
|
+
const jsonOutput = _chunkV46J3UTMjs.argsWantJson.call(void 0, args);
|
|
678
678
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
679
679
|
let authScope = null;
|
|
680
680
|
if (hasExplicitAuthScope) {
|
|
@@ -715,14 +715,14 @@ async function handleStatus(args) {
|
|
|
715
715
|
};
|
|
716
716
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
717
717
|
}
|
|
718
|
-
const apiKey = authScope === "folder" ?
|
|
718
|
+
const apiKey = authScope === "folder" ? _chunkMCXPJYBNjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkMCXPJYBNjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkMCXPJYBNjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
719
719
|
if (!apiKey) {
|
|
720
720
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
721
721
|
baseUrl,
|
|
722
722
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
723
723
|
);
|
|
724
724
|
if (pendingClaim) {
|
|
725
|
-
|
|
725
|
+
_chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
|
|
726
726
|
{
|
|
727
727
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
728
728
|
status: "pending",
|
|
@@ -743,7 +743,7 @@ async function handleStatus(args) {
|
|
|
743
743
|
);
|
|
744
744
|
return EXIT_OK;
|
|
745
745
|
}
|
|
746
|
-
|
|
746
|
+
_chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
|
|
747
747
|
{
|
|
748
748
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
749
749
|
status: "not connected",
|
|
@@ -776,7 +776,7 @@ async function handleStatus(args) {
|
|
|
776
776
|
}
|
|
777
777
|
);
|
|
778
778
|
if (status === 401 || status === 403) {
|
|
779
|
-
|
|
779
|
+
_chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
|
|
780
780
|
{
|
|
781
781
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
782
782
|
status: "unauthorized",
|
|
@@ -803,7 +803,7 @@ async function handleStatus(args) {
|
|
|
803
803
|
console.error(`Auth status error (status ${status}).`);
|
|
804
804
|
return EXIT_SERVER;
|
|
805
805
|
}
|
|
806
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
806
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkMCXPJYBNjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
807
807
|
clearSatisfiedPendingClaim(
|
|
808
808
|
baseUrl,
|
|
809
809
|
resolvedAuthScope,
|
|
@@ -831,28 +831,28 @@ async function handleStatus(args) {
|
|
|
831
831
|
if (apiKeyResp) {
|
|
832
832
|
saveEnvValues(
|
|
833
833
|
{
|
|
834
|
-
[
|
|
835
|
-
[
|
|
834
|
+
[_chunkMCXPJYBNjs.HOST_URL_ENV]: baseUrl,
|
|
835
|
+
[_chunkMCXPJYBNjs.API_KEY_ENV]: apiKeyResp,
|
|
836
836
|
...activeOrgEnvValues(data)
|
|
837
837
|
},
|
|
838
838
|
baseUrl,
|
|
839
839
|
resolvedAuthScope
|
|
840
840
|
);
|
|
841
841
|
if (resolvedAuthScope === "folder") {
|
|
842
|
-
const target =
|
|
842
|
+
const target = _chunkMCXPJYBNjs.resolveProjectPinTarget.call(void 0, );
|
|
843
843
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
844
844
|
} else {
|
|
845
845
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
849
|
-
saveEnvValues(
|
|
848
|
+
} else if (resolvedAuthScope === "folder" || _chunkMCXPJYBNjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
849
|
+
saveEnvValues(_chunkMCXPJYBNjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
850
850
|
}
|
|
851
|
-
|
|
851
|
+
_chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
|
|
852
852
|
{
|
|
853
853
|
...payload,
|
|
854
|
-
...
|
|
855
|
-
command_context:
|
|
854
|
+
..._chunkUQN4VTZLjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
855
|
+
command_context: _chunkMCXPJYBNjs.resolveCliCommandContext.call(void 0,
|
|
856
856
|
{ baseUrl, apiKey },
|
|
857
857
|
resolvedAuthScope
|
|
858
858
|
)
|
|
@@ -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 _chunkN5MLEXZ7js = require('./chunk-N5MLEXZ7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkMCXPJYBNjs = require('./chunk-MCXPJYBN.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 = _chunkMCXPJYBNjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkN5MLEXZ7js.PlayClient)(
|
|
142
|
+
new (0, _chunkMCXPJYBNjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4V63IJCL.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6DBRBWHC.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SXTVJIGB.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JCTTXLAZ.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.523",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.523",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkFBMOBNJYjs = require('./chunk-FBMOBNJY.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkV46J3UTMjs = require('./chunk-V46J3UTM.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkUQN4VTZLjs = require('./chunk-UQN4VTZL.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/commands/sessions.ts
|
|
13
13
|
|
|
@@ -142,7 +142,7 @@ function currentSessionFile(agent) {
|
|
|
142
142
|
const newestFirst = listSessionFiles(agent).sort(
|
|
143
143
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
144
144
|
);
|
|
145
|
-
const sessionId =
|
|
145
|
+
const sessionId = _chunkUQN4VTZLjs.agentSessionIdFromEnvironment.call(void 0,
|
|
146
146
|
process.env,
|
|
147
147
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
148
148
|
);
|
|
@@ -454,7 +454,7 @@ function buildSessionUploadContent(raw) {
|
|
|
454
454
|
return { encodedContent: encoded, needsChunking: true };
|
|
455
455
|
}
|
|
456
456
|
async function uploadPayload(path, payload) {
|
|
457
|
-
const { http } =
|
|
457
|
+
const { http } = _chunkV46J3UTMjs.getAuthedHttpClient.call(void 0, );
|
|
458
458
|
return await http.post(path, payload);
|
|
459
459
|
}
|
|
460
460
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -487,7 +487,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
487
487
|
...options.rating ? { rating: options.rating } : {}
|
|
488
488
|
});
|
|
489
489
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
490
|
-
|
|
490
|
+
_chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
|
|
491
491
|
{
|
|
492
492
|
...response,
|
|
493
493
|
ok: true,
|
|
@@ -508,7 +508,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
510
|
async function handleSessionsSend(options) {
|
|
511
|
-
if (
|
|
511
|
+
if (_chunkFBMOBNJYjs.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
512
512
|
const rating = parseSessionRating(options.rating);
|
|
513
513
|
if (options.file) {
|
|
514
514
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -520,7 +520,7 @@ async function handleSessionsSend(options) {
|
|
|
520
520
|
filename: _path.basename.call(void 0, filePath),
|
|
521
521
|
...rating ? { rating } : {}
|
|
522
522
|
});
|
|
523
|
-
|
|
523
|
+
_chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
|
|
524
524
|
{
|
|
525
525
|
...response2,
|
|
526
526
|
ok: true,
|
|
@@ -570,7 +570,7 @@ async function handleSessionsSend(options) {
|
|
|
570
570
|
...rating ? { rating } : {}
|
|
571
571
|
});
|
|
572
572
|
const sessionIds = built.map((session) => session.sessionId);
|
|
573
|
-
|
|
573
|
+
_chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
|
|
574
574
|
{
|
|
575
575
|
...response,
|
|
576
576
|
ok: true,
|
|
@@ -678,7 +678,7 @@ ${refreshMeta}
|
|
|
678
678
|
</body>
|
|
679
679
|
</html>`;
|
|
680
680
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
681
|
-
|
|
681
|
+
_chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
|
|
682
682
|
{
|
|
683
683
|
ok: true,
|
|
684
684
|
file: outputPath,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoDetectBaseUrl,
|
|
3
3
|
resolveApiKeyForBaseUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SXTVJIGB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SDK_VERSION,
|
|
7
7
|
agentSessionIdFromEnvironment,
|
|
8
8
|
deploymentProtectionHeaders,
|
|
9
9
|
detectAgentRuntime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JCTTXLAZ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
DeeplineError
|
|
13
13
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUQN4VTZLjs = require('./chunk-UQN4VTZL.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkUQN4VTZLjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkUQN4VTZLjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -60,6 +60,60 @@ Existing member roles retain their permissions, including Play authoring. Only o
|
|
|
60
60
|
and the last owner cannot be removed. Read-only tools may still spend credits.
|
|
61
61
|
Output: ok, memberId, and the stored role.
|
|
62
62
|
Cost: This command does not spend credits.`
|
|
63
|
+
},
|
|
64
|
+
"org service-accounts list": {
|
|
65
|
+
core: `Purpose: List the workspace's service accounts: members that are not people and own API keys,
|
|
66
|
+
so production credentials keep working when people leave.
|
|
67
|
+
Input: none.
|
|
68
|
+
Output: serviceAccounts (id, name, role, activeKeyCount, lastUsedAt, createdAt; keys with id, keyPrefix,
|
|
69
|
+
keyLast4, createdAt, and lastUsedAt for admins, null for other members). Never key material.
|
|
70
|
+
Cost: Does not spend credits.`
|
|
71
|
+
},
|
|
72
|
+
"org service-accounts create": {
|
|
73
|
+
core: `Purpose: Create a service account. Requires an admin grant.
|
|
74
|
+
Input: a name (1 to 64 characters, unique in the workspace ignoring case) and --role read, run, or member.
|
|
75
|
+
Service accounts cannot be admins or owners and cannot sign in.
|
|
76
|
+
Example: deepline org service-accounts create prod-pipeline --role run
|
|
77
|
+
Output: serviceAccount (id, name, role). Create its one key next with org service-accounts keys create <id>.
|
|
78
|
+
Cost: Does not spend credits.`
|
|
79
|
+
},
|
|
80
|
+
"org service-accounts set-role": {
|
|
81
|
+
core: `Purpose: Change a service account's role. Requires an admin grant.
|
|
82
|
+
Input: a service account id from org service-accounts list, then read, run, or member.
|
|
83
|
+
The service account's key uses the new role on its next request.
|
|
84
|
+
Output: serviceAccount with the stored role.
|
|
85
|
+
Cost: Does not spend credits.`
|
|
86
|
+
},
|
|
87
|
+
"org service-accounts delete": {
|
|
88
|
+
core: `Purpose: Delete a service account. Requires an admin grant.
|
|
89
|
+
Input: a service account id from org service-accounts list.
|
|
90
|
+
Revokes its key and removes its workspace membership. Deleting twice is a no-op.
|
|
91
|
+
Output: id and revokedKeyCount.
|
|
92
|
+
Cost: Does not spend credits.`
|
|
93
|
+
},
|
|
94
|
+
"org service-accounts keys create": {
|
|
95
|
+
core: `Purpose: Create the API key for a service account that has none. Requires an admin grant.
|
|
96
|
+
A service account holds one active key; this fails with SERVICE_ACCOUNT_KEY_EXISTS while it has one.
|
|
97
|
+
Input: a service account id from org service-accounts list.
|
|
98
|
+
Output: apiKey (shown once; Deepline stores only its hash) and key (id, keyPrefix, keyLast4).
|
|
99
|
+
Store apiKey in your secret manager and set it as DEEPLINE_API_KEY where the job runs.
|
|
100
|
+
Cost: Does not spend credits.`
|
|
101
|
+
},
|
|
102
|
+
"org service-accounts keys rotate": {
|
|
103
|
+
core: `Purpose: Replace a service account's API key. Requires an admin grant.
|
|
104
|
+
Input: a service account id from org service-accounts list.
|
|
105
|
+
In one step the active key is revoked and a new one issued; requests with the old key fail from then on,
|
|
106
|
+
so update DEEPLINE_API_KEY where the job runs right away. Not retried automatically: if the response is
|
|
107
|
+
lost, run org service-accounts list to see which key is active, and rotate again if you lack it.
|
|
108
|
+
Output: apiKey (shown once), key (id, keyPrefix, keyLast4), and revokedKeyIds.
|
|
109
|
+
Cost: Does not spend credits.`
|
|
110
|
+
},
|
|
111
|
+
"org service-accounts keys revoke": {
|
|
112
|
+
core: `Purpose: Revoke a service account's key without replacing it. Requires an admin grant.
|
|
113
|
+
Input: a service account id, then a key id, both from org service-accounts list.
|
|
114
|
+
Requests with the key fail from then on. Revoking a revoked key is a no-op.
|
|
115
|
+
Output: keyId and status.
|
|
116
|
+
Cost: Does not spend credits.`
|
|
63
117
|
},
|
|
64
118
|
"": {
|
|
65
119
|
core: `
|
|
@@ -536,6 +590,26 @@ The sequence:
|
|
|
536
590
|
Cost:
|
|
537
591
|
search, describe, list, and grep are free. Running a tool can spend
|
|
538
592
|
credits; [[cli:run <id> --dry-run]][[mcp:deepline_describe_tool]] shows the price.
|
|
593
|
+
`
|
|
594
|
+
},
|
|
595
|
+
"tools balance": {
|
|
596
|
+
core: `
|
|
597
|
+
Purpose:
|
|
598
|
+
Read the active workspace's connected LeadMagic account balance.
|
|
599
|
+
Output:
|
|
600
|
+
Provider credits, unit, source and observedAt timestamp. [[cli:--json returns the same fields]][[mcp:The API returns these fields]]
|
|
601
|
+
as GET /api/v2/integrations/balance?provider=leadmagic.
|
|
602
|
+
Every lookup is fresh; no cached balance is returned on failure. Missing or
|
|
603
|
+
inactive BYOK connections fail without using a managed account.
|
|
604
|
+
Provider credits are separate from Deepline charges. Tool receipts expose
|
|
605
|
+
BYOK facts in responseMeta.provider_usage (legacy meta.provider_usage),
|
|
606
|
+
including array results. Missing, invalid and conflicting values are null
|
|
607
|
+
with an explicit status; zero means the provider reported zero. Native
|
|
608
|
+
X-Credits-Cost and X-Credits-Remaining take precedence over body counters.
|
|
609
|
+
Cost:
|
|
610
|
+
The LeadMagic credit lookup is free. No Deepline credits are charged.
|
|
611
|
+
Examples:
|
|
612
|
+
[[cli:deepline tools balance leadmagic --json]]
|
|
539
613
|
`
|
|
540
614
|
},
|
|
541
615
|
"tools connect": {
|
|
@@ -876,7 +950,10 @@ Authoring rules:
|
|
|
876
950
|
provider call and no provider charge; Play compute still applies. This
|
|
877
951
|
holds for every tool: a positive window on a write, send or purchase
|
|
878
952
|
skips a repeat of it on purpose, so use 0 for a repeat and re-read after a
|
|
879
|
-
write with 0.
|
|
953
|
+
write with 0. Only these need 0: event waits, Google Workspace tools,
|
|
954
|
+
Customer DB SQL that changes data, live datasets, fetch other than
|
|
955
|
+
GET/HEAD/OPTIONS, and customerDb.query;
|
|
956
|
+
[[cli:plays check]][[mcp:deepline_check_play]] names the fix. A repeat is skipped only after an earlier call has finished:
|
|
880
957
|
overlapping calls both run, so a send that must happen once needs a
|
|
881
958
|
provider idempotency key. Failed, empty and unfinished answers are never
|
|
882
959
|
reused, so a retry runs again. Resuming a run returns its own finished calls whatever
|