deepline 0.3.510 → 0.3.512
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 +159 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +39 -3
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +9 -3
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +35 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +241 -34
- package/dist/cli/artifacts-5IGM3EYP.js +268 -0
- package/dist/cli/artifacts-YSYWQFQQ.mjs +268 -0
- package/dist/cli/{auth-USS2W3UV.mjs → auth-4MVWCUXS.mjs} +5 -5
- package/dist/cli/auth-M3AJBJ3O.js +43 -0
- package/dist/cli/{billing-LQQHU443.js → billing-OYYHWNVS.js} +82 -82
- package/dist/cli/{billing-JCUWM5XB.mjs → billing-SZXRENPC.mjs} +7 -7
- package/dist/cli/{chunk-RHKFNEV2.mjs → chunk-2BS6BRGH.mjs} +2 -2
- package/dist/cli/{chunk-WAOLTP6R.mjs → chunk-2R6M62UO.mjs} +2 -2
- package/dist/cli/{chunk-YYUVOUEH.mjs → chunk-32UMZXCZ.mjs} +5 -5
- package/dist/cli/{chunk-7BF4R26M.mjs → chunk-3INAN6EK.mjs} +3 -3
- package/dist/cli/{chunk-BPGFNVH2.js → chunk-4DSRBHN6.js} +44 -44
- package/dist/cli/{chunk-EEQ2QQOH.js → chunk-4QR64X2S.js} +10 -10
- package/dist/cli/{chunk-JY73USD7.js → chunk-4ZDHGAE6.js} +2 -2
- package/dist/cli/{chunk-KXSOZYCS.mjs → chunk-5XLU47DG.mjs} +1 -1
- package/dist/cli/{chunk-ZRACZKEE.mjs → chunk-77DPQI6W.mjs} +62 -0
- package/dist/cli/{chunk-YDALHHUC.js → chunk-7U3WY2F3.js} +53 -53
- package/dist/cli/{chunk-DMF56C6D.mjs → chunk-AATUAFD2.mjs} +2 -2
- package/dist/cli/{chunk-XJZU7KO4.js → chunk-AVYI522S.js} +5 -5
- package/dist/cli/{chunk-LF3FF2B2.js → chunk-BP4XEO6Z.js} +1 -1
- package/dist/cli/{chunk-7VT7RMZ2.mjs → chunk-DJ4FD5DR.mjs} +2 -2
- package/dist/cli/{chunk-CLV4T5FN.mjs → chunk-EQAKPIGI.mjs} +2 -2
- package/dist/cli/{chunk-XK3AJFYQ.js → chunk-FF25PDQ2.js} +62 -0
- package/dist/cli/{chunk-B6Q6BHSY.mjs → chunk-FJPJ6SO3.mjs} +2 -2
- package/dist/cli/{chunk-UV524JZ5.mjs → chunk-GJMIW4Q6.mjs} +1 -1
- package/dist/cli/{chunk-5MYXW6M6.mjs → chunk-HA5NSCTH.mjs} +2 -2
- package/dist/cli/{chunk-63DHG7BM.js → chunk-HCMFRAYT.js} +26 -26
- package/dist/cli/{chunk-FND6GZZ4.mjs → chunk-I6OK54YK.mjs} +5 -5
- package/dist/cli/{chunk-F6IXWFPF.js → chunk-IMC2HQ6V.js} +6 -6
- package/dist/cli/{chunk-DEPBCRKG.mjs → chunk-JDD6OLWN.mjs} +3 -3
- package/dist/cli/{chunk-EJ57CA2L.mjs → chunk-JH7JISQ2.mjs} +1 -1
- package/dist/cli/{chunk-XRLE2FPE.js → chunk-JKLFRDQ6.js} +6 -6
- package/dist/cli/{chunk-7VQKU6MS.js → chunk-JU35QU3Z.js} +270 -199
- package/dist/cli/{chunk-ZCYV6MZH.js → chunk-KBM5T6UV.js} +5 -5
- package/dist/cli/{chunk-VPJSQMWQ.js → chunk-L7CAOWHY.js} +3 -3
- package/dist/cli/{chunk-B2U3LVSO.mjs → chunk-LYOWQKGN.mjs} +1 -1
- package/dist/cli/{chunk-HOKOJGQW.mjs → chunk-MQ5GBB7V.mjs} +1 -1
- package/dist/cli/{chunk-OEG6VCK4.mjs → chunk-MTSHUN2R.mjs} +72 -1
- package/dist/cli/{chunk-ASBWPRBN.js → chunk-O24VWLOY.js} +16 -16
- package/dist/cli/{chunk-HC27PYJM.js → chunk-OU6AK63V.js} +2 -2
- package/dist/cli/{chunk-563HM4D2.mjs → chunk-P3RYPSOQ.mjs} +6 -6
- package/dist/cli/{chunk-6AL2VF3E.js → chunk-PJCPFF7J.js} +14 -14
- package/dist/cli/{chunk-4ZIIS6KG.js → chunk-Q72Q3ZWB.js} +9 -9
- package/dist/cli/{chunk-JNECQ5QF.js → chunk-RR6G6ZCT.js} +11 -11
- package/dist/cli/{chunk-Q5EJO4TE.mjs → chunk-RXZRZEW7.mjs} +5 -5
- package/dist/cli/{chunk-WC5754QJ.mjs → chunk-T3SUWKUT.mjs} +5 -5
- package/dist/cli/{chunk-QRQBKLOM.js → chunk-TKN2TRW5.js} +3 -3
- package/dist/cli/{chunk-PQ56GE55.mjs → chunk-TNQ5MF6K.mjs} +1 -1
- package/dist/cli/{chunk-B2T7PBS6.js → chunk-V6FQRUPJ.js} +41 -41
- package/dist/cli/{chunk-3LXU22UZ.js → chunk-VGCNLFER.js} +2 -2
- package/dist/cli/{chunk-XL4FFVWL.js → chunk-VZN6D23P.js} +7 -7
- package/dist/cli/{chunk-5N2HFB3G.js → chunk-W7DAWILZ.js} +16 -16
- package/dist/cli/{chunk-2JXEZAJF.js → chunk-WDCOUJQ5.js} +21 -21
- package/dist/cli/{chunk-FFPLCSTZ.mjs → chunk-XKFWY4IK.mjs} +10 -10
- package/dist/cli/{chunk-V6DLYRSO.mjs → chunk-YJN55ZWG.mjs} +1 -1
- package/dist/cli/{chunk-JVEU6MXD.mjs → chunk-YNMHIJC5.mjs} +1 -1
- package/dist/cli/{chunk-N7FV7OM3.js → chunk-ZLHIQU2G.js} +96 -96
- package/dist/cli/{chunk-5DU7RXDW.mjs → chunk-ZVYMGTZ7.mjs} +4 -4
- package/dist/cli/{chunk-4NJK6P5T.js → chunk-ZZ7SVWKR.js} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-MTFVEDPU.mjs → csv-AY4KT3NZ.mjs} +4 -4
- package/dist/cli/{csv-UXFQZLZM.js → csv-YR2E5HNM.js} +13 -13
- package/dist/cli/{db-3WPUYCCI.mjs → db-IMYD3OCM.mjs} +6 -6
- package/dist/cli/{db-RGWT6B7K.js → db-YKV6564I.js} +27 -27
- package/dist/cli/{describe-XJY5654F.mjs → describe-72GI2Q6T.mjs} +18 -18
- package/dist/cli/describe-UFGHQBM7.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-PDE4V5YH.mjs → executions-2YO6KIP3.mjs} +6 -6
- package/dist/cli/{executions-IWTALFNB.js → executions-OSNL5CSU.js} +8 -8
- package/dist/cli/{feedback-BMOVTPC4.mjs → feedback-SYDNAT62.mjs} +5 -5
- package/dist/cli/{feedback-I72P4XZS.js → feedback-WSA7YTKS.js} +10 -10
- package/dist/cli/{git-QJG3EF4P.mjs → git-WBH7N3EF.mjs} +5 -5
- package/dist/cli/git-YYOW4CYQ.js +25 -0
- package/dist/cli/index.js +148 -144
- package/dist/cli/index.mjs +47 -43
- package/dist/cli/{legacy-noops-5P75CQC7.js → legacy-noops-BZPLWY5C.js} +9 -9
- package/dist/cli/{legacy-noops-MZ45GDMK.mjs → legacy-noops-USZM4ZXF.mjs} +6 -6
- package/dist/cli/{monitors-VIOBUG2X.mjs → monitors-6HOZMLEV.mjs} +7 -7
- package/dist/cli/{monitors-5PHQZDZM.js → monitors-XHXAMMYC.js} +100 -100
- package/dist/cli/{org-B5LDVP2P.js → org-BAAOAZF3.js} +72 -72
- package/dist/cli/{org-D5RTFJNY.mjs → org-LT3DICB4.mjs} +6 -6
- package/dist/cli/{pages-BUJYG3JL.js → pages-7NP4PKLA.js} +18 -18
- package/dist/cli/{pages-XWZL3YV2.mjs → pages-MOCSTZZQ.mjs} +6 -6
- package/dist/cli/{play-SEC3EE7H.js → play-CGUL22GL.js} +317 -317
- package/dist/cli/{play-OSXLGCLZ.mjs → play-MGJ7B7RL.mjs} +18 -18
- package/dist/cli/{providers-RQPUASLI.js → providers-5LCUHKX2.js} +9 -9
- package/dist/cli/{providers-ENSURIW6.mjs → providers-AOWBHJ24.mjs} +6 -6
- package/dist/cli/{quickstart-XDTU4MAT.js → quickstart-7YZUT7GO.js} +6 -6
- package/dist/cli/{quickstart-HJTK6XWI.mjs → quickstart-Z6NA2CCM.mjs} +4 -4
- package/dist/cli/{run-ZMWSQAR2.mjs → run-7QGBNUKE.mjs} +23 -23
- package/dist/cli/{run-GX2SU5AT.js → run-M66ILCWL.js} +41 -41
- package/dist/cli/search-OZQH5VMI.js +33 -0
- package/dist/cli/{search-DZHZBHWT.mjs → search-Z2T3B4V4.mjs} +8 -8
- package/dist/cli/{search-output-3JVZERNV.js → search-output-6OHPSJGK.js} +6 -6
- package/dist/cli/{search-output-MNHAR754.mjs → search-output-MLHVBRIR.mjs} +4 -4
- package/dist/cli/{secrets-WO2LMDQ2.js → secrets-T7MW2DMK.js} +15 -15
- package/dist/cli/{secrets-VALVNVXB.mjs → secrets-VBSILT5H.mjs} +6 -6
- package/dist/cli/{sessions-EPYCH3AY.mjs → sessions-KNITGDLS.mjs} +6 -6
- package/dist/cli/sessions-XKEIBOTP.js +18 -0
- package/dist/cli/{settings-W2ABZUD4.mjs → settings-NBZRRKZS.mjs} +13 -13
- package/dist/cli/{settings-OSF4O5HM.js → settings-OSEBDBKR.js} +86 -86
- package/dist/cli/{setup-DCXNQG6R.js → setup-7DZPC6FC.js} +50 -50
- package/dist/cli/{setup-XI2ERSMQ.mjs → setup-WTEQPZ5I.mjs} +10 -10
- package/dist/cli/{skills-ZO4AH2YR.mjs → skills-JMD2MNJZ.mjs} +8 -8
- package/dist/cli/skills-R6RO6MQF.js +37 -0
- package/dist/cli/{tools-FTECXZYA.mjs → tools-LK5BM2Z7.mjs} +17 -17
- package/dist/cli/tools-NBBDUNPR.js +57 -0
- package/dist/cli/update-BI2ABPGX.js +35 -0
- package/dist/cli/{update-WPFZO2JE.mjs → update-IVUSIA2E.mjs} +10 -10
- package/dist/cli/{workflow-7X75IP3D.mjs → workflow-4QP6G54M.mjs} +7 -7
- package/dist/cli/{workflow-PKMU33LV.js → workflow-GY374FMJ.js} +17 -17
- package/dist/{client-DMpsMNH9.d.mts → client-By7bUS8h.d.mts} +1 -1
- package/dist/{client-BlwD-G4v.d.ts → client-CmlKSBXd.d.ts} +1 -1
- package/dist/{client-core-DwBLuEkm.d.ts → client-core-BM0mKhgp.d.ts} +93 -1
- package/dist/{client-core-CITtRTbB.d.mts → client-core-BZ3tpY_J.d.mts} +93 -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 -108
- 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/dist/viewer/viewer.js +16 -7
- package/package.json +1 -1
- package/dist/cli/auth-S2Z5YMU3.js +0 -43
- package/dist/cli/describe-LNCLA2LA.js +0 -50
- package/dist/cli/git-QWH7SPGF.js +0 -25
- package/dist/cli/search-7WPABWYO.js +0 -33
- package/dist/cli/sessions-2IA2DGWO.js +0 -18
- package/dist/cli/skills-QMD2WARJ.js +0 -37
- package/dist/cli/tools-53E6GBQU.js +0 -57
- package/dist/cli/update-PPPNR6J5.js +0 -35
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkVZN6D23Pjs = require('./chunk-VZN6D23P.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkXL4FFVWLjs = require('./chunk-XL4FFVWL.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkL7CAOWHYjs = require('./chunk-L7CAOWHY.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkZZ7SVWKRjs = require('./chunk-ZZ7SVWKR.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.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 _chunkL7CAOWHYjs.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 = _chunkL7CAOWHYjs.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 `${_chunkL7CAOWHYjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkL7CAOWHYjs.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 _chunkZZ7SVWKRjs.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[_chunkL7CAOWHYjs.HOST_URL_ENV] ? { [_chunkL7CAOWHYjs.HOST_URL_ENV]: values[_chunkL7CAOWHYjs.HOST_URL_ENV] } : {},
|
|
198
|
+
...values[_chunkL7CAOWHYjs.API_KEY_ENV] ? { [_chunkL7CAOWHYjs.API_KEY_ENV]: values[_chunkL7CAOWHYjs.API_KEY_ENV] } : {},
|
|
199
|
+
...values[_chunkL7CAOWHYjs.ACTIVE_ORG_ID_ENV] ? { [_chunkL7CAOWHYjs.ACTIVE_ORG_ID_ENV]: values[_chunkL7CAOWHYjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
200
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkL7CAOWHYjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkL7CAOWHYjs.ACTIVE_ORG_NAME_ENV]: values[_chunkL7CAOWHYjs.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, _chunkL7CAOWHYjs.FEATURES_ENV) ? { [_chunkL7CAOWHYjs.FEATURES_ENV]: values[_chunkL7CAOWHYjs.FEATURES_ENV] } : {}
|
|
203
203
|
};
|
|
204
204
|
if (scope === "folder") {
|
|
205
|
-
|
|
205
|
+
_chunkL7CAOWHYjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
206
206
|
} else {
|
|
207
|
-
|
|
207
|
+
_chunkL7CAOWHYjs.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
|
+
[_chunkL7CAOWHYjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
216
|
+
[_chunkL7CAOWHYjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
217
|
+
..._chunkL7CAOWHYjs.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/${_chunkZZ7SVWKRjs.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": _chunkZZ7SVWKRjs.detectAgentRuntime.call(void 0, ),
|
|
227
|
+
"X-Deepline-CLI-Version": _chunkZZ7SVWKRjs.SDK_VERSION,
|
|
228
|
+
"X-Deepline-SDK-Version": _chunkZZ7SVWKRjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-API-Contract": _chunkZZ7SVWKRjs.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 = _chunkZZ7SVWKRjs.networkCauseCode.call(void 0, failure);
|
|
269
269
|
throw Object.assign(
|
|
270
270
|
new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
271
|
-
|
|
271
|
+
_chunkZZ7SVWKRjs.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" ? _chunkL7CAOWHYjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkL7CAOWHYjs.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 = _chunkL7CAOWHYjs.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
|
+
[_chunkL7CAOWHYjs.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" && _chunkZZ7SVWKRjs.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) _chunkVZN6D23Pjs.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
|
+
[_chunkL7CAOWHYjs.HOST_URL_ENV]: baseUrl,
|
|
538
|
+
[_chunkL7CAOWHYjs.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 = _chunkL7CAOWHYjs.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" ? _chunkL7CAOWHYjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkL7CAOWHYjs.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
|
+
[_chunkL7CAOWHYjs.HOST_URL_ENV]: baseUrl,
|
|
627
|
+
[_chunkL7CAOWHYjs.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 = _chunkL7CAOWHYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
652
|
+
const apiKey = _chunkL7CAOWHYjs.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 = _chunkL7CAOWHYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
676
676
|
const reveal = args.includes("--reveal");
|
|
677
|
-
const jsonOutput =
|
|
677
|
+
const jsonOutput = _chunkVZN6D23Pjs.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" ? _chunkL7CAOWHYjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkL7CAOWHYjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkL7CAOWHYjs.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
|
+
_chunkVZN6D23Pjs.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
|
+
_chunkVZN6D23Pjs.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
|
+
_chunkVZN6D23Pjs.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, () => ( (_chunkL7CAOWHYjs.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
|
+
[_chunkL7CAOWHYjs.HOST_URL_ENV]: baseUrl,
|
|
835
|
+
[_chunkL7CAOWHYjs.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 = _chunkL7CAOWHYjs.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" || _chunkL7CAOWHYjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
849
|
+
saveEnvValues(_chunkL7CAOWHYjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
850
850
|
}
|
|
851
|
-
|
|
851
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
852
852
|
{
|
|
853
853
|
...payload,
|
|
854
|
-
...
|
|
855
|
-
command_context:
|
|
854
|
+
..._chunkZZ7SVWKRjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
855
|
+
command_context: _chunkL7CAOWHYjs.resolveCliCommandContext.call(void 0,
|
|
856
856
|
{ baseUrl, apiKey },
|
|
857
857
|
resolvedAuthScope
|
|
858
858
|
)
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MQ5GBB7V.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TNQ5MF6K.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -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 _chunkJU35QU3Zjs = require('./chunk-JU35QU3Z.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkL7CAOWHYjs = require('./chunk-L7CAOWHY.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 = _chunkL7CAOWHYjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkJU35QU3Zjs.PlayClient)(
|
|
142
|
+
new (0, _chunkL7CAOWHYjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -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.512",
|
|
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,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MTSHUN2R.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MQ5GBB7V.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AATUAFD2.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MQ5GBB7V.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1927,6 +1927,68 @@ Cost:
|
|
|
1927
1927
|
Free.
|
|
1928
1928
|
Avoid:
|
|
1929
1929
|
Do not post a link anywhere public: it opens the page for anyone holding it.
|
|
1930
|
+
`
|
|
1931
|
+
},
|
|
1932
|
+
artifacts: {
|
|
1933
|
+
rolloutFeature: "artifacts",
|
|
1934
|
+
core: `
|
|
1935
|
+
Purpose:
|
|
1936
|
+
Show what a Play returns at a fixed URL, https://artifacts.deepline.com/<id>,
|
|
1937
|
+
and keep every run. Also called a report or dashboard; use it to turn a
|
|
1938
|
+
static artifact into one that stays current.
|
|
1939
|
+
When:
|
|
1940
|
+
To share results that change: run the Play again (or schedule it) and the
|
|
1941
|
+
artifact shows the new run. People can switch to earlier runs in the
|
|
1942
|
+
artifact itself.
|
|
1943
|
+
How output is shown:
|
|
1944
|
+
HTML output, { type: "html", content: "<h1>\u2026</h1>" }, renders as a page in a
|
|
1945
|
+
sandbox. Scripts and https requests work; links to other sites ask first.
|
|
1946
|
+
Any other output renders with Deepline's components: tables for lists of
|
|
1947
|
+
records and datasets, Markdown ({ type: "markdown", content }), images,
|
|
1948
|
+
audio, video, files, graphs, and readable values for everything else; the
|
|
1949
|
+
same conventions as Deepline's browser extension.
|
|
1950
|
+
The sequence:
|
|
1951
|
+
1. Create it: [[artifacts create --name <name> --play <play>]]. The output
|
|
1952
|
+
prints the URL and id. --input saves the input Refresh runs the Play with.
|
|
1953
|
+
2. Fill it in: [[artifacts refresh <id>]] runs the Play. A scheduled Play
|
|
1954
|
+
refreshes it automatically; every run of the Play appears in it.
|
|
1955
|
+
3. Share it: the URL opens for workspace members by default.
|
|
1956
|
+
[[artifacts set-access <id> public]] lets anyone with the URL open it.
|
|
1957
|
+
4. Manage it: [[artifacts list]], [[artifacts get <id>]],
|
|
1958
|
+
[[artifacts edit <id>]], [[artifacts runs <id>]], [[artifacts delete <id>]].
|
|
1959
|
+
Buttons in HTML output:
|
|
1960
|
+
An HTML output may declare actions beside its content,
|
|
1961
|
+
actions: [{ id, type: "run_play", play, input? }], and use
|
|
1962
|
+
<button data-deepline-action="id"> or deepline.action(id, input). A click
|
|
1963
|
+
opens a launch form where a signed-in member reviews the inputs and starts
|
|
1964
|
+
the run. Plays in this workspace only; never for public visitors.
|
|
1965
|
+
Permissions:
|
|
1966
|
+
[[artifacts permissions]] shows who may create, edit, delete, set access, and
|
|
1967
|
+
refresh; admins change them with [[artifacts permissions set]].
|
|
1968
|
+
Cost:
|
|
1969
|
+
Artifacts are free. Refresh and buttons start ordinary Play runs.
|
|
1970
|
+
Avoid:
|
|
1971
|
+
Do not return secrets in a Play whose artifact is public. Do not create a
|
|
1972
|
+
new artifact per run; one artifact keeps every run.
|
|
1973
|
+
`
|
|
1974
|
+
},
|
|
1975
|
+
"artifacts create": {
|
|
1976
|
+
rolloutFeature: "artifacts",
|
|
1977
|
+
core: `
|
|
1978
|
+
Purpose:
|
|
1979
|
+
Create an artifact that shows a Play's runs at a fixed URL.
|
|
1980
|
+
[[cli:
|
|
1981
|
+
Input:
|
|
1982
|
+
--name <name> (1-120 characters). --play <play>: a Play in this workspace,
|
|
1983
|
+
or prebuilt/<name>. --input <json|@file>: saved input for Refresh.
|
|
1984
|
+
--description <text>. --json prints JSON.
|
|
1985
|
+
]]
|
|
1986
|
+
Output (JSON):
|
|
1987
|
+
id, name, url, play, input, access (workspace).
|
|
1988
|
+
Errors (code):
|
|
1989
|
+
name_invalid, play_invalid, input_invalid, forbidden, artifacts_not_enabled.
|
|
1990
|
+
Cost:
|
|
1991
|
+
Free.
|
|
1930
1992
|
`
|
|
1931
1993
|
},
|
|
1932
1994
|
"sessions send": {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JH7JISQ2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RXZRZEW7.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MTSHUN2R.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MQ5GBB7V.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|