deepline 0.3.523 → 0.3.524
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 +60 -60
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +60 -14
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-delivery.ts +9 -3
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +359 -22
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +388 -13
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +28 -0
- package/dist/cli/auth-OKPHHMMP.js +43 -0
- package/dist/cli/{auth-ENQUQS56.mjs → auth-QXJMVLPN.mjs} +5 -5
- package/dist/cli/{billing-6HONTJOY.js → billing-N5R4HTHT.js} +82 -82
- package/dist/cli/{billing-6A27ULCX.mjs → billing-SNSIFM4B.mjs} +7 -7
- package/dist/cli/{chunk-326WVSWS.js → chunk-2ZWNIS54.js} +98 -98
- package/dist/cli/{chunk-JGZQBDYG.mjs → chunk-2ZX7XSAQ.mjs} +4 -4
- package/dist/cli/{chunk-6DBRBWHC.mjs → chunk-3WWTBQHC.mjs} +2 -2
- package/dist/cli/{chunk-KILRUAXF.mjs → chunk-536TGWR6.mjs} +1 -1
- package/dist/cli/{chunk-MZROKQV3.js → chunk-66N76YZG.js} +44 -44
- package/dist/cli/{chunk-IEVXYHGJ.js → chunk-7E6B7VMS.js} +5 -5
- package/dist/cli/{chunk-QYXIODWH.js → chunk-7OQGZBDG.js} +31 -23
- package/dist/cli/{chunk-4NWY7JBB.js → chunk-7QM6DNR4.js} +11 -11
- package/dist/cli/{chunk-HUC5SGJQ.js → chunk-ANKD3AIR.js} +2 -2
- package/dist/cli/{chunk-2BRDHM4S.js → chunk-ATATJNJ6.js} +9 -9
- package/dist/cli/{chunk-QSAC3IVI.mjs → chunk-BXIQD2IY.mjs} +1 -1
- package/dist/cli/{chunk-S4YKRH3W.js → chunk-BXVYVIMB.js} +3 -3
- package/dist/cli/{chunk-NWTMQGPP.mjs → chunk-CH7JVSA7.mjs} +6 -6
- package/dist/cli/{chunk-4V63IJCL.mjs → chunk-EO55Y4QW.mjs} +5 -5
- package/dist/cli/{chunk-FBMOBNJY.js → chunk-EQNAQENZ.js} +2 -2
- package/dist/cli/{chunk-QOO5W5XS.mjs → chunk-FXTV5B3D.mjs} +10 -10
- package/dist/cli/{chunk-HSVGP4CI.mjs → chunk-GMO3JDZA.mjs} +2 -2
- package/dist/cli/{chunk-V46J3UTM.js → chunk-GTGJBZVH.js} +7 -7
- package/dist/cli/{chunk-WVQOXYTQ.mjs → chunk-HLAFGQPV.mjs} +33 -33
- package/dist/cli/{chunk-PESMXAUG.js → chunk-HTYT2OHB.js} +6 -6
- package/dist/cli/{chunk-ZWN4RXC2.js → chunk-I75VRGQG.js} +22 -22
- package/dist/cli/{chunk-PCORO245.mjs → chunk-II3BJKCH.mjs} +2 -2
- package/dist/cli/{chunk-WGVJA4I5.js → chunk-JDIQBZ6O.js} +14 -14
- package/dist/cli/{chunk-UH3EAFFN.mjs → chunk-KKPBCB6D.mjs} +2 -2
- package/dist/cli/{chunk-RKREB7MU.mjs → chunk-KSQXBLRW.mjs} +3 -3
- package/dist/cli/{chunk-36LQQL5C.js → chunk-LRWDZDBS.js} +5 -5
- package/dist/cli/{chunk-SXTVJIGB.mjs → chunk-MW3YMPD2.mjs} +1 -1
- package/dist/cli/{chunk-5WFQXAD4.mjs → chunk-NUC7ZVDG.mjs} +5 -5
- package/dist/cli/{chunk-UQN4VTZL.js → chunk-OCT4SUJA.js} +4 -4
- package/dist/cli/{chunk-JCTTXLAZ.mjs → chunk-OQ5G7RFQ.mjs} +1 -1
- package/dist/cli/{chunk-XVXEARHC.js → chunk-PFKKZVFK.js} +41 -41
- package/dist/cli/{chunk-F3WRLFFM.mjs → chunk-PFKWKWUJ.mjs} +2 -2
- package/dist/cli/{chunk-I62LJ7NU.mjs → chunk-R457IMHJ.mjs} +1 -1
- package/dist/cli/{chunk-JVEFMOY2.mjs → chunk-RIX26ZJD.mjs} +1 -1
- package/dist/cli/{chunk-QMBL5ZIQ.mjs → chunk-RTDX5NNN.mjs} +3 -3
- package/dist/cli/{chunk-K326BEVR.js → chunk-RUULUCBP.js} +10 -10
- package/dist/cli/{chunk-MCXPJYBN.js → chunk-SF4QJVBE.js} +3 -3
- package/dist/cli/{chunk-HUIFUE4L.js → chunk-SMWFOGUT.js} +53 -53
- package/dist/cli/{chunk-LZL6V5M5.mjs → chunk-T43FF5PF.mjs} +2 -2
- package/dist/cli/{chunk-JMMNCJ7Z.js → chunk-TZTWH53O.js} +1 -1
- package/dist/cli/{chunk-U6DLLV3S.mjs → chunk-V2YIBBVT.mjs} +1 -1
- package/dist/cli/{chunk-XYL26236.js → chunk-V4RJ57MA.js} +2 -2
- package/dist/cli/{chunk-N5MLEXZ7.js → chunk-V7KUBDEB.js} +39 -39
- package/dist/cli/{chunk-MT3WG3KR.js → chunk-VHTVXS5A.js} +16 -16
- package/dist/cli/{chunk-H7275EZU.mjs → chunk-WCVIPZWX.mjs} +5 -5
- package/dist/cli/{chunk-SBGKKOCC.js → chunk-WOEPDSO3.js} +26 -26
- package/dist/cli/{chunk-MHTRYBXY.mjs → chunk-XURWFEXM.mjs} +31 -23
- package/dist/cli/{chunk-7M5FRSFP.mjs → chunk-YCIXY66B.mjs} +2 -2
- package/dist/cli/{chunk-6OZ2WSHD.mjs → chunk-YGOI5ZE5.mjs} +1 -1
- package/dist/cli/{chunk-DNXP3D5H.mjs → chunk-YKFW3NNA.mjs} +5 -5
- package/dist/cli/{chunk-7GNKAACY.js → chunk-YXVYPYIP.js} +6 -6
- package/dist/cli/{chunk-RQN4PHRE.js → chunk-Z4MOEQSY.js} +16 -16
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-YFJ2JLUP.mjs → csv-HT2JBCW2.mjs} +4 -4
- package/dist/cli/{csv-UBACJK75.js → csv-Q2LWKXAV.js} +13 -13
- package/dist/cli/{db-NKGYTAQO.mjs → db-CS3XQ2LX.mjs} +6 -6
- package/dist/cli/{db-2ZPA2LZ7.js → db-XEV4WEE4.js} +27 -27
- package/dist/cli/describe-5G5NXO5E.js +50 -0
- package/dist/cli/{describe-GX7DRKWZ.mjs → describe-OUTXLDGZ.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-NXMRGPIL.js → executions-JCC34WAD.js} +8 -8
- package/dist/cli/{executions-HTHQ7KKD.mjs → executions-L6XFG5MP.mjs} +6 -6
- package/dist/cli/{feedback-USP4T34P.mjs → feedback-AWBDO5I6.mjs} +5 -5
- package/dist/cli/{feedback-TGVQACRO.js → feedback-HV2M2G7N.js} +10 -10
- package/dist/cli/git-GDPTG52F.js +25 -0
- package/dist/cli/{git-KUONEHCD.mjs → git-S4LRXTRX.mjs} +5 -5
- package/dist/cli/index.js +146 -146
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{legacy-noops-B2GMHU42.mjs → legacy-noops-7MOKBL4O.mjs} +6 -6
- package/dist/cli/{legacy-noops-2JY3CQ24.js → legacy-noops-RGSZUD6V.js} +9 -9
- package/dist/cli/{monitors-XI6I52AX.js → monitors-JEFM2C5W.js} +100 -100
- package/dist/cli/{monitors-2OVBZJ6Z.mjs → monitors-XQNXDZPQ.mjs} +7 -7
- package/dist/cli/{org-5TUQ2H6Y.js → org-GYLA5V32.js} +86 -86
- package/dist/cli/{org-BNJW764Y.mjs → org-KTMJZGTN.mjs} +6 -6
- package/dist/cli/{pages-UXCLX53Y.js → pages-RY4U7OCL.js} +18 -18
- package/dist/cli/{pages-QC3TQIPW.mjs → pages-WOMU2T2O.mjs} +6 -6
- package/dist/cli/{play-KRWMZ7FG.js → play-2Q6MWJ3D.js} +363 -323
- package/dist/cli/{play-45PPG5SZ.mjs → play-KOYGGNYS.mjs} +64 -24
- package/dist/cli/{providers-JDT35MRL.mjs → providers-7YKDITJC.mjs} +6 -6
- package/dist/cli/{providers-RBUJ72Y3.js → providers-HOIRHMN2.js} +9 -9
- package/dist/cli/{quickstart-JZ4Q3HFT.js → quickstart-OWCJOSQA.js} +6 -6
- package/dist/cli/{quickstart-GD2SWGAC.mjs → quickstart-RDXHSMVX.mjs} +4 -4
- package/dist/cli/{run-JEAHA367.js → run-MT2ABKO5.js} +41 -41
- package/dist/cli/{run-KIZ3HBI2.mjs → run-RT73NDP5.mjs} +23 -23
- package/dist/cli/search-7VBA6IGS.js +33 -0
- package/dist/cli/{search-5UFNXHFK.mjs → search-CJPKIGSA.mjs} +8 -8
- package/dist/cli/{search-output-HAXPKQO6.mjs → search-output-AREMA544.mjs} +4 -4
- package/dist/cli/{search-output-W3RDSVLE.js → search-output-OSBZ7WK6.js} +6 -6
- package/dist/cli/{secrets-JAWT66B2.mjs → secrets-BTIY2FEJ.mjs} +6 -6
- package/dist/cli/{secrets-PC7C2Q32.js → secrets-OV6KH633.js} +15 -15
- package/dist/cli/{sessions-325V7G35.mjs → sessions-3CO3ZFOD.mjs} +6 -6
- package/dist/cli/sessions-B3WNEWRW.js +18 -0
- package/dist/cli/{settings-FKHTA65P.mjs → settings-7BQIC7QN.mjs} +13 -13
- package/dist/cli/{settings-RGU6Y2QR.js → settings-LBIECYDB.js} +86 -86
- package/dist/cli/{setup-ZMZ7HU2I.js → setup-QZE7QR3F.js} +50 -50
- package/dist/cli/{setup-43GOYTFC.mjs → setup-XPTSNNES.mjs} +10 -10
- package/dist/cli/{skills-Q2VAHSXM.mjs → skills-TGGKIQLT.mjs} +8 -8
- package/dist/cli/skills-TXBRTWEV.js +37 -0
- package/dist/cli/{tools-BUH7ZWDS.mjs → tools-MKIFX2TQ.mjs} +17 -17
- package/dist/cli/tools-RZJV4X3J.js +57 -0
- package/dist/cli/{update-JFALWOHD.mjs → update-5R3D3WNH.mjs} +10 -10
- package/dist/cli/update-YWGGPWUA.js +35 -0
- package/dist/cli/{artifacts-RBHR2DG4.mjs → views-VHKDHHUP.mjs} +76 -76
- package/dist/cli/views-VPWEINIA.js +270 -0
- package/dist/cli/{workflow-YELST32A.js → workflow-7K2VEQ4V.js} +17 -17
- package/dist/cli/{workflow-ISJKLY6X.mjs → workflow-D5DF65N6.mjs} +7 -7
- package/dist/{client-C2N7MofG.d.mts → client-C5_6W8yd.d.mts} +1 -1
- package/dist/{client-core-hmhBi7Ib.d.ts → client-core-B-GPfmaC.d.ts} +43 -43
- package/dist/{client-core-BTkDSKGn.d.mts → client-core-Dob428Z4.d.mts} +43 -43
- package/dist/{client-C7lTRJjw.d.ts → client-iXW4TOat.d.ts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +110 -110
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/artifacts-RZTS2JHZ.js +0 -270
- package/dist/cli/auth-DPWYFQR5.js +0 -43
- package/dist/cli/describe-WQZF7MEG.js +0 -50
- package/dist/cli/git-X3SCQREB.js +0 -25
- package/dist/cli/search-6JULJMD7.js +0 -33
- package/dist/cli/sessions-WFUCOJHZ.js +0 -18
- package/dist/cli/skills-3XTQ6FFM.js +0 -37
- package/dist/cli/tools-UK2R4YXQ.js +0 -57
- package/dist/cli/update-LNKPHS54.js +0 -35
|
@@ -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 _chunkOCT4SUJAjs = require('./chunk-OCT4SUJA.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 (_chunkOCT4SUJAjs.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 _chunkOCT4SUJAjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkV46J3UTMjs = require('./chunk-V46J3UTM.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkSF4QJVBEjs = require('./chunk-SF4QJVBE.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkOCT4SUJAjs = require('./chunk-OCT4SUJA.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 _chunkSF4QJVBEjs.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 = _chunkSF4QJVBEjs.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 `${_chunkSF4QJVBEjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkSF4QJVBEjs.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 _chunkOCT4SUJAjs.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[_chunkSF4QJVBEjs.HOST_URL_ENV] ? { [_chunkSF4QJVBEjs.HOST_URL_ENV]: values[_chunkSF4QJVBEjs.HOST_URL_ENV] } : {},
|
|
198
|
+
...values[_chunkSF4QJVBEjs.API_KEY_ENV] ? { [_chunkSF4QJVBEjs.API_KEY_ENV]: values[_chunkSF4QJVBEjs.API_KEY_ENV] } : {},
|
|
199
|
+
...values[_chunkSF4QJVBEjs.ACTIVE_ORG_ID_ENV] ? { [_chunkSF4QJVBEjs.ACTIVE_ORG_ID_ENV]: values[_chunkSF4QJVBEjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
200
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkSF4QJVBEjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkSF4QJVBEjs.ACTIVE_ORG_NAME_ENV]: values[_chunkSF4QJVBEjs.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, _chunkSF4QJVBEjs.FEATURES_ENV) ? { [_chunkSF4QJVBEjs.FEATURES_ENV]: values[_chunkSF4QJVBEjs.FEATURES_ENV] } : {}
|
|
203
203
|
};
|
|
204
204
|
if (scope === "folder") {
|
|
205
|
-
|
|
205
|
+
_chunkSF4QJVBEjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
206
206
|
} else {
|
|
207
|
-
|
|
207
|
+
_chunkSF4QJVBEjs.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
|
+
[_chunkSF4QJVBEjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
216
|
+
[_chunkSF4QJVBEjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
217
|
+
..._chunkSF4QJVBEjs.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/${_chunkOCT4SUJAjs.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": _chunkOCT4SUJAjs.detectAgentRuntime.call(void 0, ),
|
|
227
|
+
"X-Deepline-CLI-Version": _chunkOCT4SUJAjs.SDK_VERSION,
|
|
228
|
+
"X-Deepline-SDK-Version": _chunkOCT4SUJAjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-API-Contract": _chunkOCT4SUJAjs.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 = _chunkOCT4SUJAjs.networkCauseCode.call(void 0, failure);
|
|
269
269
|
throw Object.assign(
|
|
270
270
|
new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
271
|
-
|
|
271
|
+
_chunkOCT4SUJAjs.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" ? _chunkSF4QJVBEjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkSF4QJVBEjs.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 = _chunkSF4QJVBEjs.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
|
+
[_chunkSF4QJVBEjs.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" && _chunkOCT4SUJAjs.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) _chunkGTGJBZVHjs.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
|
+
[_chunkSF4QJVBEjs.HOST_URL_ENV]: baseUrl,
|
|
538
|
+
[_chunkSF4QJVBEjs.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 = _chunkSF4QJVBEjs.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" ? _chunkSF4QJVBEjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkSF4QJVBEjs.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
|
+
[_chunkSF4QJVBEjs.HOST_URL_ENV]: baseUrl,
|
|
627
|
+
[_chunkSF4QJVBEjs.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 = _chunkSF4QJVBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
652
|
+
const apiKey = _chunkSF4QJVBEjs.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 = _chunkSF4QJVBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
676
676
|
const reveal = args.includes("--reveal");
|
|
677
|
-
const jsonOutput =
|
|
677
|
+
const jsonOutput = _chunkGTGJBZVHjs.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" ? _chunkSF4QJVBEjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkSF4QJVBEjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkSF4QJVBEjs.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
|
+
_chunkGTGJBZVHjs.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
|
+
_chunkGTGJBZVHjs.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
|
+
_chunkGTGJBZVHjs.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, () => ( (_chunkSF4QJVBEjs.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
|
+
[_chunkSF4QJVBEjs.HOST_URL_ENV]: baseUrl,
|
|
835
|
+
[_chunkSF4QJVBEjs.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 = _chunkSF4QJVBEjs.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" || _chunkSF4QJVBEjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
849
|
+
saveEnvValues(_chunkSF4QJVBEjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
850
850
|
}
|
|
851
|
-
|
|
851
|
+
_chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
|
|
852
852
|
{
|
|
853
853
|
...payload,
|
|
854
|
-
...
|
|
855
|
-
command_context:
|
|
854
|
+
..._chunkOCT4SUJAjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
855
|
+
command_context: _chunkSF4QJVBEjs.resolveCliCommandContext.call(void 0,
|
|
856
856
|
{ baseUrl, apiKey },
|
|
857
857
|
resolvedAuthScope
|
|
858
858
|
)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoDetectBaseUrl,
|
|
3
3
|
resolveApiKeyForBaseUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MW3YMPD2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SDK_VERSION,
|
|
7
7
|
agentSessionIdFromEnvironment,
|
|
8
8
|
deploymentProtectionHeaders,
|
|
9
9
|
detectAgentRuntime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OQ5G7RFQ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
DeeplineError
|
|
13
13
|
} from "./chunk-ZPGGW27Q.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.524",
|
|
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,6 +1,6 @@
|
|
|
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 _chunk66N76YZGjs = require('./chunk-66N76YZG.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunk66N76YZGjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkOCT4SUJAjs = require('./chunk-OCT4SUJA.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
|
|
@@ -674,7 +674,7 @@ var ToolCalls = class {
|
|
|
674
674
|
idempotencyKey,
|
|
675
675
|
onResponse: (response2) => {
|
|
676
676
|
lastResponse = null;
|
|
677
|
-
atomicToolsSupported = response2.headers.get(
|
|
677
|
+
atomicToolsSupported = response2.headers.get(_chunkOCT4SUJAjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
678
678
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
679
679
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
680
680
|
try {
|
|
@@ -1060,8 +1060,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
const receivers = _optionalChain([env, 'access', _55 => _55.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _56 => _56.trim, 'call', _57 => _57()]);
|
|
1062
1062
|
return {
|
|
1063
|
-
[
|
|
1064
|
-
...receivers ? { [
|
|
1063
|
+
[_chunkOCT4SUJAjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1064
|
+
...receivers ? { [_chunkOCT4SUJAjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1065
1065
|
};
|
|
1066
1066
|
}
|
|
1067
1067
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1132,7 +1132,7 @@ var PlayClient = class {
|
|
|
1132
1132
|
return _chunk2KHUFWTKjs.startPlayRun.call(void 0,
|
|
1133
1133
|
this.http,
|
|
1134
1134
|
resolved.request,
|
|
1135
|
-
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1135
|
+
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkOCT4SUJAjs.SDK_API_MAJOR) } : headers,
|
|
1136
1136
|
options
|
|
1137
1137
|
);
|
|
1138
1138
|
}
|
|
@@ -3229,7 +3229,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3229
3229
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3230
3230
|
);
|
|
3231
3231
|
}
|
|
3232
|
-
return { [
|
|
3232
|
+
return { [_chunkOCT4SUJAjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3233
3233
|
}
|
|
3234
3234
|
function sleep(ms) {
|
|
3235
3235
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -3747,75 +3747,75 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3747
3747
|
);
|
|
3748
3748
|
}
|
|
3749
3749
|
// ——————————————————————————————————————————————————————————
|
|
3750
|
-
//
|
|
3750
|
+
// Views
|
|
3751
3751
|
// ——————————————————————————————————————————————————————————
|
|
3752
|
-
/** List this workspace's
|
|
3753
|
-
async
|
|
3752
|
+
/** List this workspace's views, most recently changed first. */
|
|
3753
|
+
async listViews(input) {
|
|
3754
3754
|
const params = new URLSearchParams();
|
|
3755
3755
|
if (_optionalChain([input, 'optionalAccess', _164 => _164.cursor])) params.set("cursor", input.cursor);
|
|
3756
3756
|
if (_optionalChain([input, 'optionalAccess', _165 => _165.limit])) params.set("limit", String(input.limit));
|
|
3757
3757
|
const query = params.size > 0 ? `?${params}` : "";
|
|
3758
|
-
return await this.http.get(`/api/v2/
|
|
3758
|
+
return await this.http.get(`/api/v2/views${query}`);
|
|
3759
3759
|
}
|
|
3760
|
-
/** One
|
|
3761
|
-
async
|
|
3760
|
+
/** One view and what the caller may do with it. */
|
|
3761
|
+
async getView(id) {
|
|
3762
3762
|
return await this.http.get(
|
|
3763
|
-
`/api/v2/
|
|
3763
|
+
`/api/v2/views/${encodeURIComponent(id)}`
|
|
3764
3764
|
);
|
|
3765
3765
|
}
|
|
3766
|
-
/** Create
|
|
3767
|
-
async
|
|
3768
|
-
return await this.http.post("/api/v2/
|
|
3766
|
+
/** Create a view that shows a Play's runs at a fixed URL. */
|
|
3767
|
+
async createView(input) {
|
|
3768
|
+
return await this.http.post("/api/v2/views", input);
|
|
3769
3769
|
}
|
|
3770
3770
|
/** Change the name, description, Play, or saved input. */
|
|
3771
|
-
async
|
|
3771
|
+
async updateView(id, input) {
|
|
3772
3772
|
return await this.http.patch(
|
|
3773
|
-
`/api/v2/
|
|
3773
|
+
`/api/v2/views/${encodeURIComponent(id)}`,
|
|
3774
3774
|
input
|
|
3775
3775
|
);
|
|
3776
3776
|
}
|
|
3777
|
-
/** Who can open
|
|
3778
|
-
async
|
|
3777
|
+
/** Who can open a view: workspace members, or anyone with its URL. */
|
|
3778
|
+
async setViewAccess(id, access) {
|
|
3779
3779
|
return await this.http.post(
|
|
3780
|
-
`/api/v2/
|
|
3780
|
+
`/api/v2/views/${encodeURIComponent(id)}/access`,
|
|
3781
3781
|
{ access }
|
|
3782
3782
|
);
|
|
3783
3783
|
}
|
|
3784
|
-
/** Every run of the
|
|
3785
|
-
async
|
|
3784
|
+
/** Every run of the view's Play, newest first. */
|
|
3785
|
+
async listViewRuns(id, input) {
|
|
3786
3786
|
const params = new URLSearchParams();
|
|
3787
3787
|
if (_optionalChain([input, 'optionalAccess', _166 => _166.limit])) params.set("limit", String(input.limit));
|
|
3788
3788
|
if (_optionalChain([input, 'optionalAccess', _167 => _167.offset])) params.set("offset", String(input.offset));
|
|
3789
3789
|
const query = params.size > 0 ? `?${params}` : "";
|
|
3790
3790
|
return await this.http.get(
|
|
3791
|
-
`/api/v2/
|
|
3791
|
+
`/api/v2/views/${encodeURIComponent(id)}/runs${query}`
|
|
3792
3792
|
);
|
|
3793
3793
|
}
|
|
3794
3794
|
/**
|
|
3795
|
-
* Refresh
|
|
3796
|
-
* goes through the normal run API; the
|
|
3795
|
+
* Refresh a view: run its Play with its saved input (or `input`). The run
|
|
3796
|
+
* goes through the normal run API; the view shows it when it finishes.
|
|
3797
3797
|
*/
|
|
3798
|
-
async
|
|
3799
|
-
const intent = await this.http.post(`/api/v2/
|
|
3798
|
+
async refreshView(id, input) {
|
|
3799
|
+
const intent = await this.http.post(`/api/v2/views/${encodeURIComponent(id)}/refresh`, {});
|
|
3800
3800
|
const started = await this.startPlayRun({
|
|
3801
3801
|
name: intent.play,
|
|
3802
3802
|
input: _nullishCoalesce(input, () => ( intent.input))
|
|
3803
3803
|
});
|
|
3804
|
-
return { ...started,
|
|
3804
|
+
return { ...started, view: intent.id };
|
|
3805
3805
|
}
|
|
3806
|
-
/** Delete
|
|
3807
|
-
async
|
|
3806
|
+
/** Delete a view. Its Play and runs are not touched. */
|
|
3807
|
+
async deleteView(id) {
|
|
3808
3808
|
return await this.http.delete(
|
|
3809
|
-
`/api/v2/
|
|
3809
|
+
`/api/v2/views/${encodeURIComponent(id)}`
|
|
3810
3810
|
);
|
|
3811
3811
|
}
|
|
3812
|
-
/** The workspace
|
|
3813
|
-
async
|
|
3814
|
-
return await this.http.get("/api/v2/
|
|
3812
|
+
/** The workspace view rules and what the caller may do. */
|
|
3813
|
+
async getViewPermissions() {
|
|
3814
|
+
return await this.http.get("/api/v2/views/permissions");
|
|
3815
3815
|
}
|
|
3816
|
-
/** Change
|
|
3817
|
-
async
|
|
3818
|
-
return await this.http.put("/api/v2/
|
|
3816
|
+
/** Change view rules. Admins only; omitted verbs keep their rule. */
|
|
3817
|
+
async setViewPermissions(rules) {
|
|
3818
|
+
return await this.http.put("/api/v2/views/permissions", { rules });
|
|
3819
3819
|
}
|
|
3820
3820
|
/** List secret metadata visible to the current workspace. */
|
|
3821
3821
|
async listSecrets() {
|
|
@@ -4156,7 +4156,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4156
4156
|
);
|
|
4157
4157
|
const headers = _optionalChain([options, 'optionalAccess', _188 => _188.cliAdmission]) ? {
|
|
4158
4158
|
...runtimeHeaders,
|
|
4159
|
-
"X-Deepline-API-Major": String(
|
|
4159
|
+
"X-Deepline-API-Major": String(_chunkOCT4SUJAjs.SDK_API_MAJOR)
|
|
4160
4160
|
} : runtimeHeaders;
|
|
4161
4161
|
const http = this.http;
|
|
4162
4162
|
let submitted = false;
|