deepline 0.3.482 → 0.3.483
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/cli/{auth-R5GFDAMI.mjs → auth-2NXF6Q3Q.mjs} +5 -5
- package/dist/cli/auth-JHQKM6QY.js +43 -0
- package/dist/cli/{billing-DXKVQPTC.js → billing-5PW4L5WD.js} +79 -79
- package/dist/cli/{billing-SO5SFQFC.mjs → billing-W2Y4EOZP.mjs} +6 -6
- package/dist/cli/{chunk-DYHBKFCW.mjs → chunk-25IGCYJP.mjs} +3 -3
- package/dist/cli/{chunk-3EN2BLAS.js → chunk-2JWG2H2N.js} +1 -1
- package/dist/cli/{chunk-Y4Y2QUFL.js → chunk-2MKX3HV3.js} +5 -5
- package/dist/cli/{chunk-LKFQERA6.js → chunk-2T4OSJEH.js} +21 -21
- package/dist/cli/{chunk-JLI7SK55.mjs → chunk-4X23YY2E.mjs} +5 -5
- package/dist/cli/chunk-5AEDYVB6.mjs +6 -0
- package/dist/cli/{chunk-SFZCKYTD.js → chunk-5ICAG4RE.js} +9 -9
- package/dist/cli/{chunk-UVU4OCYO.js → chunk-5JCXS4MP.js} +5 -5
- package/dist/cli/{chunk-OVSSKTXG.js → chunk-5LHU7NUS.js} +3 -3
- package/dist/cli/{chunk-DZRHML3J.js → chunk-62XGOB2D.js} +26 -26
- package/dist/cli/{chunk-NXTZ4UNI.js → chunk-75IIHFN6.js} +4 -4
- package/dist/cli/{chunk-LVOEZVDW.mjs → chunk-7APXZ3CX.mjs} +2 -2
- package/dist/cli/{chunk-M6B2OZGA.js → chunk-7TKLISLM.js} +3 -3
- package/dist/cli/{chunk-RCWBWM5J.mjs → chunk-AWAFYRFV.mjs} +1 -1
- package/dist/cli/{chunk-RLYJ4O6Q.js → chunk-B7HQL77V.js} +53 -53
- package/dist/cli/{chunk-RLG2MNXH.mjs → chunk-C3LJSOQ6.mjs} +4 -4
- package/dist/cli/chunk-D3BCSAN7.js +6 -0
- package/dist/cli/{chunk-AEMPAR6L.js → chunk-DS455RPF.js} +3 -3
- package/dist/cli/{chunk-G7N2DYQL.mjs → chunk-EDMCD7MX.mjs} +5 -5
- package/dist/cli/{chunk-QCIG6V26.mjs → chunk-EGHYGTJM.mjs} +1 -1
- package/dist/cli/{chunk-LMLN7R7X.mjs → chunk-FAZTLYJO.mjs} +2 -2
- package/dist/cli/{chunk-EC2QPBSZ.mjs → chunk-FGEC5SWP.mjs} +4 -4
- package/dist/cli/{chunk-5MHCTVMM.mjs → chunk-FK47YUPC.mjs} +1 -1
- package/dist/cli/{chunk-Y6OKWGAM.mjs → chunk-GGJQ4HJW.mjs} +2 -2
- package/dist/cli/{chunk-OO6HA5OT.js → chunk-GONUMUBM.js} +7 -7
- package/dist/cli/{chunk-BK3XMHPF.mjs → chunk-GRE3ID5E.mjs} +1 -1
- package/dist/cli/{chunk-SKBXTN5F.mjs → chunk-IEV5UWPN.mjs} +1 -1
- package/dist/cli/chunk-ISP7ZENV.mjs +200 -0
- package/dist/cli/{chunk-7SZUHFJ6.mjs → chunk-J7S3DJB4.mjs} +2 -2
- package/dist/cli/{chunk-AJT436SK.mjs → chunk-JJSLEMQQ.mjs} +1 -1
- package/dist/cli/{chunk-2KC3MJP5.mjs → chunk-JYEZ6BWX.mjs} +2 -2
- package/dist/cli/{chunk-BHID34HA.js → chunk-MYB6JVSD.js} +16 -16
- package/dist/cli/{chunk-AZRG5NWV.mjs → chunk-NREZRYPU.mjs} +2 -2
- package/dist/cli/{chunk-4V34YMLU.js → chunk-PHDEQ6W3.js} +6 -6
- package/dist/cli/{chunk-FKGA7VKL.mjs → chunk-PRL7EKJZ.mjs} +4 -4
- package/dist/cli/{chunk-YT6GV6RP.js → chunk-QSYA6VE4.js} +2 -2
- package/dist/cli/{chunk-FUVJPW7O.js → chunk-R2OR4RHV.js} +8 -8
- package/dist/cli/{chunk-DM7APZWK.mjs → chunk-S24CK3CJ.mjs} +2 -2
- package/dist/cli/{chunk-KDJZXX7I.mjs → chunk-SCPFOH5Z.mjs} +1 -1
- package/dist/cli/{chunk-6NF7S5WY.js → chunk-T5GZZJ7O.js} +6 -6
- package/dist/cli/{chunk-HYS35M6H.mjs → chunk-UDF2CY4D.mjs} +10 -10
- package/dist/cli/{chunk-ETJSPSOQ.js → chunk-UGBZ6MCR.js} +2 -2
- package/dist/cli/{chunk-MFNEJOQG.js → chunk-UY7OXFVU.js} +10 -10
- package/dist/cli/{chunk-2ZIUCN5I.js → chunk-VFEW53L5.js} +93 -93
- package/dist/cli/{chunk-VU2PUAEH.js → chunk-WI2HNYQX.js} +53 -53
- package/dist/cli/{chunk-AZUDSDZX.js → chunk-WKB6Y43W.js} +37 -37
- package/dist/cli/chunk-XRIQN6EP.js +200 -0
- package/dist/cli/{chunk-FQFAWIRK.mjs → chunk-YL64JIQ7.mjs} +1 -1
- package/dist/cli/{csv-IC3XJ4PV.mjs → csv-DIFVIR23.mjs} +4 -4
- package/dist/cli/{csv-UWFQLI3K.js → csv-EKEFLUIW.js} +13 -13
- package/dist/cli/{db-RIPJQYF3.mjs → db-DOW4EVEU.mjs} +6 -6
- package/dist/cli/{db-PT73YDEP.js → db-S7DDRUHX.js} +27 -27
- package/dist/cli/{describe-GHI2MTDW.mjs → describe-KSZFOWKV.mjs} +18 -17
- package/dist/cli/describe-RXYQCJRR.js +49 -0
- package/dist/cli/{executions-QUOWVXCU.js → executions-3DU5IXB6.js} +8 -8
- package/dist/cli/{executions-XUJBZF5H.mjs → executions-CAG7YC5K.mjs} +6 -6
- package/dist/cli/{feedback-JOZ7QNGH.mjs → feedback-BQMPTE47.mjs} +4 -4
- package/dist/cli/{feedback-UDZ7BFB3.js → feedback-I65JMCP2.js} +8 -8
- package/dist/cli/git-ADIABNMQ.js +25 -0
- package/dist/cli/{git-O67OED4L.mjs → git-UQUCD7XZ.mjs} +5 -5
- package/dist/cli/index.js +138 -138
- package/dist/cli/index.mjs +42 -42
- package/dist/cli/{legacy-noops-T2G2TKO2.mjs → legacy-noops-JXKLHUI3.mjs} +5 -5
- package/dist/cli/{legacy-noops-ZFD6Z2ID.js → legacy-noops-OLNT2BG5.js} +8 -8
- package/dist/cli/{monitors-WSH4I37O.mjs → monitors-DLTHHAFQ.mjs} +7 -7
- package/dist/cli/{monitors-QPWEWJW7.js → monitors-Z5X56AZN.js} +91 -91
- package/dist/cli/{org-FVM465Q4.mjs → org-6EZZHD3M.mjs} +6 -6
- package/dist/cli/{org-PZOFC4P3.js → org-XBHJLKUG.js} +72 -72
- package/dist/cli/{pages-A5SLKL6L.mjs → pages-MYXROSVK.mjs} +6 -6
- package/dist/cli/{pages-UMDOU2WF.js → pages-XVJ34SCN.js} +17 -17
- package/dist/cli/{play-XKJLIZQE.mjs → play-5PV4LAHE.mjs} +26 -22
- package/dist/cli/{play-AFGL5D7B.js → play-ACC4T2XQ.js} +495 -491
- package/dist/cli/{providers-A2EIHS3P.mjs → providers-2DLUGIFF.mjs} +6 -6
- package/dist/cli/{providers-CQDRM62K.js → providers-JCI3KNE4.js} +9 -9
- package/dist/cli/{quickstart-BJ2XCUVV.mjs → quickstart-NSL3C76K.mjs} +4 -4
- package/dist/cli/{quickstart-NMJLH7T6.js → quickstart-PDSQEDLD.js} +6 -6
- package/dist/cli/{run-S4XTJADQ.js → run-UCFMHOQC.js} +37 -36
- package/dist/cli/{run-63I5M3ID.mjs → run-X5MXCM4P.mjs} +26 -25
- package/dist/cli/{search-DUIWWZ56.mjs → search-RPEMXV6N.mjs} +8 -8
- package/dist/cli/search-YILJZD36.js +32 -0
- package/dist/cli/{chunk-EDBQIPMG.mjs → search-output-6UO47B7G.mjs} +14 -194
- package/dist/cli/{chunk-UXQZLXHZ.js → search-output-MZH3HLVE.js} +14 -194
- package/dist/cli/{secrets-FK4PQJ6U.mjs → secrets-NLEQURD3.mjs} +6 -6
- package/dist/cli/{secrets-Q6QEWCAT.js → secrets-UFBASYGY.js} +15 -15
- package/dist/cli/{sessions-QJSN6AUL.mjs → sessions-3ALFLWVU.mjs} +5 -5
- package/dist/cli/{sessions-KF6JPKFK.js → sessions-JYH4DBEE.js} +6 -6
- package/dist/cli/{settings-PIKGA5PF.js → settings-MQYKNAMB.js} +78 -78
- package/dist/cli/{settings-UIQP5ERC.mjs → settings-YPRILREA.mjs} +11 -11
- package/dist/cli/{setup-ROKA4M5X.js → setup-5IGSHH4E.js} +47 -47
- package/dist/cli/{setup-4CALCNAA.mjs → setup-DK4GM227.mjs} +9 -9
- package/dist/cli/skills-I4IUZN3U.js +33 -0
- package/dist/cli/{skills-SQKRC7W4.mjs → skills-KYBZH3IT.mjs} +7 -7
- package/dist/cli/{tools-B6J53QS2.mjs → tools-4B2MHNBN.mjs} +17 -16
- package/dist/cli/tools-NLZR7ABS.js +56 -0
- package/dist/cli/update-RVDEUJTE.js +33 -0
- package/dist/cli/{update-MVKCAJJV.mjs → update-S6VEO7NB.mjs} +9 -9
- package/dist/cli/{workflow-VH2H4VS3.js → workflow-FU2XVPUK.js} +17 -17
- package/dist/cli/{workflow-3BO5WPZO.mjs → workflow-KXZZYFEF.mjs} +7 -7
- package/dist/index.js +10 -10
- package/dist/index.mjs +10 -10
- package/dist/install-integrity.json +100 -96
- package/dist/plays/bundle-play-file.mjs +6 -6
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-Q5VRDGL4.js +0 -43
- package/dist/cli/describe-72RFB7RS.js +0 -48
- package/dist/cli/git-A6SU7ITW.js +0 -25
- package/dist/cli/search-ACCI4VYH.js +0 -32
- package/dist/cli/skills-GZQSDPZX.js +0 -33
- package/dist/cli/tools-5C7ZVTDG.js +0 -55
- package/dist/cli/update-PR4QP7JN.js +0 -33
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkGONUMUBMjs = require('./chunk-GONUMUBM.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkOO6HA5OTjs = require('./chunk-OO6HA5OT.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk5LHU7NUSjs = require('./chunk-5LHU7NUS.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk75IIHFN6js = require('./chunk-75IIHFN6.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 _chunk5LHU7NUSjs.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 = _chunk5LHU7NUSjs.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 `${_chunk5LHU7NUSjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunk5LHU7NUSjs.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 _chunk75IIHFN6js.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[_chunk5LHU7NUSjs.HOST_URL_ENV] ? { [_chunk5LHU7NUSjs.HOST_URL_ENV]: values[_chunk5LHU7NUSjs.HOST_URL_ENV] } : {},
|
|
198
|
+
...values[_chunk5LHU7NUSjs.API_KEY_ENV] ? { [_chunk5LHU7NUSjs.API_KEY_ENV]: values[_chunk5LHU7NUSjs.API_KEY_ENV] } : {},
|
|
199
|
+
...values[_chunk5LHU7NUSjs.ACTIVE_ORG_ID_ENV] ? { [_chunk5LHU7NUSjs.ACTIVE_ORG_ID_ENV]: values[_chunk5LHU7NUSjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
200
|
+
...Object.prototype.hasOwnProperty.call(values, _chunk5LHU7NUSjs.ACTIVE_ORG_NAME_ENV) ? { [_chunk5LHU7NUSjs.ACTIVE_ORG_NAME_ENV]: values[_chunk5LHU7NUSjs.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, _chunk5LHU7NUSjs.FEATURES_ENV) ? { [_chunk5LHU7NUSjs.FEATURES_ENV]: values[_chunk5LHU7NUSjs.FEATURES_ENV] } : {}
|
|
203
203
|
};
|
|
204
204
|
if (scope === "folder") {
|
|
205
|
-
|
|
205
|
+
_chunk5LHU7NUSjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
206
206
|
} else {
|
|
207
|
-
|
|
207
|
+
_chunk5LHU7NUSjs.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
|
+
[_chunk5LHU7NUSjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
216
|
+
[_chunk5LHU7NUSjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
217
|
+
..._chunk5LHU7NUSjs.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/${_chunk75IIHFN6js.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": _chunk75IIHFN6js.detectAgentRuntime.call(void 0, ),
|
|
227
|
+
"X-Deepline-CLI-Version": _chunk75IIHFN6js.SDK_VERSION,
|
|
228
|
+
"X-Deepline-SDK-Version": _chunk75IIHFN6js.SDK_VERSION,
|
|
229
|
+
"X-Deepline-API-Contract": _chunk75IIHFN6js.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 = _chunk75IIHFN6js.networkCauseCode.call(void 0, failure);
|
|
269
269
|
throw Object.assign(
|
|
270
270
|
new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
271
|
-
|
|
271
|
+
_chunk75IIHFN6js.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" ? _chunk5LHU7NUSjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk5LHU7NUSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
289
289
|
if (!apiKey) return;
|
|
290
290
|
try {
|
|
291
291
|
await httpJson(
|
|
@@ -398,7 +398,7 @@ async function reportApprovalLinkShown(baseUrl, claim, mode) {
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
async function handleRegister(args, options) {
|
|
401
|
-
const baseUrl =
|
|
401
|
+
const baseUrl = _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
402
402
|
let orgName = "";
|
|
403
403
|
let orgId = "";
|
|
404
404
|
let agentName = "";
|
|
@@ -457,19 +457,19 @@ async function handleRegister(args, options) {
|
|
|
457
457
|
savePendingClaim(baseUrl, pendingClaim);
|
|
458
458
|
saveEnvValues(
|
|
459
459
|
{
|
|
460
|
-
[
|
|
460
|
+
[_chunk5LHU7NUSjs.HOST_URL_ENV]: baseUrl
|
|
461
461
|
},
|
|
462
462
|
baseUrl,
|
|
463
463
|
authScope
|
|
464
464
|
);
|
|
465
465
|
}
|
|
466
466
|
if (claimUrl) {
|
|
467
|
-
const shouldOpen = waitMode !== "no" &&
|
|
467
|
+
const shouldOpen = waitMode !== "no" && _chunk75IIHFN6js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
468
468
|
console.log(
|
|
469
469
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
470
470
|
);
|
|
471
471
|
console.log(` ${claimUrl}`);
|
|
472
|
-
if (shouldOpen)
|
|
472
|
+
if (shouldOpen) _chunkGONUMUBMjs.openInBrowser.call(void 0, claimUrl);
|
|
473
473
|
if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
|
|
474
474
|
await reportApprovalLinkShown(
|
|
475
475
|
baseUrl,
|
|
@@ -519,8 +519,8 @@ async function handleRegister(args, options) {
|
|
|
519
519
|
if (apiKey) {
|
|
520
520
|
saveEnvValues(
|
|
521
521
|
{
|
|
522
|
-
[
|
|
523
|
-
[
|
|
522
|
+
[_chunk5LHU7NUSjs.HOST_URL_ENV]: baseUrl,
|
|
523
|
+
[_chunk5LHU7NUSjs.API_KEY_ENV]: apiKey,
|
|
524
524
|
...activeOrgEnvValues(statusData)
|
|
525
525
|
},
|
|
526
526
|
baseUrl,
|
|
@@ -542,7 +542,7 @@ async function handleRegister(args, options) {
|
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
async function handleWait(args) {
|
|
545
|
-
const baseUrl =
|
|
545
|
+
const baseUrl = _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
546
546
|
let timeoutSeconds = 300;
|
|
547
547
|
let requestedScope;
|
|
548
548
|
if (args.includes("--auth-scope")) {
|
|
@@ -566,7 +566,7 @@ async function handleWait(args) {
|
|
|
566
566
|
const authScope = resumed.scope;
|
|
567
567
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
|
|
568
568
|
if (!pendingClaim) {
|
|
569
|
-
const scopedApiKey = authScope === "folder" ?
|
|
569
|
+
const scopedApiKey = authScope === "folder" ? _chunk5LHU7NUSjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk5LHU7NUSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
570
570
|
if (scopedApiKey) {
|
|
571
571
|
console.log("Already connected.");
|
|
572
572
|
return EXIT_OK;
|
|
@@ -609,8 +609,8 @@ async function handleWait(args) {
|
|
|
609
609
|
if (apiKey) {
|
|
610
610
|
saveEnvValues(
|
|
611
611
|
{
|
|
612
|
-
[
|
|
613
|
-
[
|
|
612
|
+
[_chunk5LHU7NUSjs.HOST_URL_ENV]: baseUrl,
|
|
613
|
+
[_chunk5LHU7NUSjs.API_KEY_ENV]: apiKey,
|
|
614
614
|
...activeOrgEnvValues(data)
|
|
615
615
|
},
|
|
616
616
|
baseUrl,
|
|
@@ -634,8 +634,8 @@ async function handleWait(args) {
|
|
|
634
634
|
return EXIT_AUTH;
|
|
635
635
|
}
|
|
636
636
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
637
|
-
const baseUrl =
|
|
638
|
-
const apiKey =
|
|
637
|
+
const baseUrl = _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
638
|
+
const apiKey = _chunk5LHU7NUSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
639
639
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
640
640
|
try {
|
|
641
641
|
const { status, data } = await httpJson(
|
|
@@ -658,9 +658,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
async function handleStatus(args) {
|
|
661
|
-
const baseUrl =
|
|
661
|
+
const baseUrl = _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
662
662
|
const reveal = args.includes("--reveal");
|
|
663
|
-
const jsonOutput =
|
|
663
|
+
const jsonOutput = _chunkGONUMUBMjs.argsWantJson.call(void 0, args);
|
|
664
664
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
665
665
|
let authScope = null;
|
|
666
666
|
if (hasExplicitAuthScope) {
|
|
@@ -701,14 +701,14 @@ async function handleStatus(args) {
|
|
|
701
701
|
};
|
|
702
702
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
703
703
|
}
|
|
704
|
-
const apiKey = authScope === "folder" ?
|
|
704
|
+
const apiKey = authScope === "folder" ? _chunk5LHU7NUSjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk5LHU7NUSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk5LHU7NUSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
705
705
|
if (!apiKey) {
|
|
706
706
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
707
707
|
baseUrl,
|
|
708
708
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
709
709
|
);
|
|
710
710
|
if (pendingClaim) {
|
|
711
|
-
|
|
711
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
712
712
|
{
|
|
713
713
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
714
714
|
status: "pending",
|
|
@@ -729,7 +729,7 @@ async function handleStatus(args) {
|
|
|
729
729
|
);
|
|
730
730
|
return EXIT_OK;
|
|
731
731
|
}
|
|
732
|
-
|
|
732
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
733
733
|
{
|
|
734
734
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
735
735
|
status: "not connected",
|
|
@@ -762,7 +762,7 @@ async function handleStatus(args) {
|
|
|
762
762
|
}
|
|
763
763
|
);
|
|
764
764
|
if (status === 401 || status === 403) {
|
|
765
|
-
|
|
765
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
766
766
|
{
|
|
767
767
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
768
768
|
status: "unauthorized",
|
|
@@ -789,7 +789,7 @@ async function handleStatus(args) {
|
|
|
789
789
|
console.error(`Auth status error (status ${status}).`);
|
|
790
790
|
return EXIT_SERVER;
|
|
791
791
|
}
|
|
792
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
792
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunk5LHU7NUSjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
793
793
|
clearSatisfiedPendingClaim(
|
|
794
794
|
baseUrl,
|
|
795
795
|
resolvedAuthScope,
|
|
@@ -817,28 +817,28 @@ async function handleStatus(args) {
|
|
|
817
817
|
if (apiKeyResp) {
|
|
818
818
|
saveEnvValues(
|
|
819
819
|
{
|
|
820
|
-
[
|
|
821
|
-
[
|
|
820
|
+
[_chunk5LHU7NUSjs.HOST_URL_ENV]: baseUrl,
|
|
821
|
+
[_chunk5LHU7NUSjs.API_KEY_ENV]: apiKeyResp,
|
|
822
822
|
...activeOrgEnvValues(data)
|
|
823
823
|
},
|
|
824
824
|
baseUrl,
|
|
825
825
|
resolvedAuthScope
|
|
826
826
|
);
|
|
827
827
|
if (resolvedAuthScope === "folder") {
|
|
828
|
-
const target =
|
|
828
|
+
const target = _chunk5LHU7NUSjs.resolveProjectPinTarget.call(void 0, );
|
|
829
829
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
830
830
|
} else {
|
|
831
831
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
835
|
-
saveEnvValues(
|
|
834
|
+
} else if (resolvedAuthScope === "folder" || _chunk5LHU7NUSjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
835
|
+
saveEnvValues(_chunk5LHU7NUSjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
836
836
|
}
|
|
837
|
-
|
|
837
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
838
838
|
{
|
|
839
839
|
...payload,
|
|
840
|
-
...
|
|
841
|
-
command_context:
|
|
840
|
+
..._chunk75IIHFN6js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
841
|
+
command_context: _chunk5LHU7NUSjs.resolveCliCommandContext.call(void 0,
|
|
842
842
|
{ baseUrl, apiKey },
|
|
843
843
|
resolvedAuthScope
|
|
844
844
|
)
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkB7HQL77Vjs = require('./chunk-B7HQL77V.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkGONUMUBMjs = require('./chunk-GONUMUBM.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk5LHU7NUSjs = require('./chunk-5LHU7NUS.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk75IIHFN6js = require('./chunk-75IIHFN6.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
var _child_process = require('child_process');
|
|
@@ -132,7 +132,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
132
132
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
133
133
|
}
|
|
134
134
|
function resolveLocalRoot() {
|
|
135
|
-
const target =
|
|
135
|
+
const target = _chunk5LHU7NUSjs.resolveProjectPinTarget.call(void 0, );
|
|
136
136
|
if (!target.ok) {
|
|
137
137
|
throw new Error(
|
|
138
138
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -143,7 +143,7 @@ function resolveLocalRoot() {
|
|
|
143
143
|
return target.dir;
|
|
144
144
|
}
|
|
145
145
|
function detectSkillsAgents(input) {
|
|
146
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
146
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunk75IIHFN6js.detectAgentRuntime.call(void 0, )));
|
|
147
147
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
148
148
|
if (knownAgent) return [knownAgent];
|
|
149
149
|
const roots = [
|
|
@@ -158,11 +158,11 @@ function detectSkillsAgents(input) {
|
|
|
158
158
|
return detected.length > 0 ? detected : ["*"];
|
|
159
159
|
}
|
|
160
160
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
161
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
161
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk5LHU7NUSjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
162
162
|
}
|
|
163
163
|
function buildSkillsPlan(input) {
|
|
164
164
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
165
|
-
const legacyNames = [...
|
|
165
|
+
const legacyNames = [..._chunkB7HQL77Vjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
166
166
|
(a, b) => a.localeCompare(b)
|
|
167
167
|
);
|
|
168
168
|
return {
|
|
@@ -176,7 +176,7 @@ function buildSkillsPlan(input) {
|
|
|
176
176
|
args: [
|
|
177
177
|
"exec",
|
|
178
178
|
"--yes",
|
|
179
|
-
`--package=${
|
|
179
|
+
`--package=${_chunkB7HQL77Vjs.SKILLS_NPX_PACKAGE}`,
|
|
180
180
|
"--",
|
|
181
181
|
"skills",
|
|
182
182
|
"remove",
|
|
@@ -192,11 +192,11 @@ function buildSkillsPlan(input) {
|
|
|
192
192
|
args: [
|
|
193
193
|
"exec",
|
|
194
194
|
"--yes",
|
|
195
|
-
`--package=${
|
|
195
|
+
`--package=${_chunkB7HQL77Vjs.SKILLS_NPX_PACKAGE}`,
|
|
196
196
|
"--",
|
|
197
197
|
"skills",
|
|
198
198
|
"add",
|
|
199
|
-
|
|
199
|
+
_chunkB7HQL77Vjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
200
200
|
"--agent",
|
|
201
201
|
...input.agents,
|
|
202
202
|
...scopeArgs,
|
|
@@ -233,7 +233,7 @@ function readSkillsInstallState(path) {
|
|
|
233
233
|
}
|
|
234
234
|
function runProcess(command, args, cwd) {
|
|
235
235
|
return new Promise((resolve, reject) => {
|
|
236
|
-
const plan =
|
|
236
|
+
const plan = _chunkB7HQL77Vjs.resolveShellSpawn.call(void 0,
|
|
237
237
|
command,
|
|
238
238
|
args,
|
|
239
239
|
process.platform,
|
|
@@ -255,7 +255,7 @@ function runProcess(command, args, cwd) {
|
|
|
255
255
|
child.kill("SIGTERM");
|
|
256
256
|
reject(
|
|
257
257
|
new Error(
|
|
258
|
-
`${
|
|
258
|
+
`${_chunkB7HQL77Vjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
259
259
|
)
|
|
260
260
|
);
|
|
261
261
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -266,7 +266,7 @@ function runProcess(command, args, cwd) {
|
|
|
266
266
|
child.once("close", (code) => {
|
|
267
267
|
clearTimeout(timeout);
|
|
268
268
|
if (code && stderr.trim()) {
|
|
269
|
-
process.stderr.write(`${
|
|
269
|
+
process.stderr.write(`${_chunkB7HQL77Vjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
270
270
|
`);
|
|
271
271
|
}
|
|
272
272
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -280,7 +280,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
280
280
|
scope = normalizeScope(options.scope);
|
|
281
281
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
282
282
|
} catch (error) {
|
|
283
|
-
|
|
283
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
284
284
|
{
|
|
285
285
|
ok: false,
|
|
286
286
|
status: "failed",
|
|
@@ -292,22 +292,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
292
292
|
);
|
|
293
293
|
return 2;
|
|
294
294
|
}
|
|
295
|
-
const baseUrl =
|
|
295
|
+
const baseUrl = _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
296
296
|
const catalog = {
|
|
297
|
-
skillNames: [...
|
|
298
|
-
version:
|
|
297
|
+
skillNames: [..._chunkB7HQL77Vjs.DEFAULT_SDK_SKILL_NAMES],
|
|
298
|
+
version: _chunk75IIHFN6js.SDK_VERSION
|
|
299
299
|
};
|
|
300
300
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
301
301
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
302
302
|
if (options.dryRun) {
|
|
303
|
-
|
|
303
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
304
304
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
305
305
|
{ json: options.json }
|
|
306
306
|
);
|
|
307
307
|
return 0;
|
|
308
308
|
}
|
|
309
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
310
|
-
|
|
309
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkB7HQL77Vjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
310
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
311
311
|
{
|
|
312
312
|
ok: true,
|
|
313
313
|
status: "current",
|
|
@@ -339,10 +339,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
339
339
|
}
|
|
340
340
|
if (scope === "local" && root) {
|
|
341
341
|
const managedNames = [
|
|
342
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
342
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkB7HQL77Vjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
343
343
|
];
|
|
344
344
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
345
|
-
|
|
345
|
+
_chunk5LHU7NUSjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
346
346
|
".deepline/",
|
|
347
347
|
...agentRoots.flatMap(
|
|
348
348
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
351
351
|
}
|
|
352
352
|
let lease;
|
|
353
353
|
try {
|
|
354
|
-
lease = scope === "global" ? await
|
|
354
|
+
lease = scope === "global" ? await _chunkB7HQL77Vjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
355
355
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
356
356
|
onWait: () => process.stderr.write(
|
|
357
357
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -359,8 +359,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
359
359
|
}) : { release: () => {
|
|
360
360
|
} };
|
|
361
361
|
} catch (error) {
|
|
362
|
-
if (!(error instanceof
|
|
363
|
-
|
|
362
|
+
if (!(error instanceof _chunkB7HQL77Vjs.SkillsStateUnavailableError)) throw error;
|
|
363
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
364
364
|
{
|
|
365
365
|
ok: false,
|
|
366
366
|
status: "failed",
|
|
@@ -376,7 +376,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
376
376
|
return 5;
|
|
377
377
|
}
|
|
378
378
|
if (!lease) {
|
|
379
|
-
|
|
379
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
380
380
|
{
|
|
381
381
|
ok: false,
|
|
382
382
|
status: "failed",
|
|
@@ -385,7 +385,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
385
385
|
scope,
|
|
386
386
|
agents,
|
|
387
387
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
388
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
388
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkB7HQL77Vjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
389
389
|
},
|
|
390
390
|
{ json: options.json }
|
|
391
391
|
);
|
|
@@ -434,7 +434,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
} catch (error) {
|
|
437
|
-
|
|
437
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
438
438
|
{
|
|
439
439
|
ok: false,
|
|
440
440
|
status: "failed",
|
|
@@ -450,7 +450,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
450
450
|
return 5;
|
|
451
451
|
}
|
|
452
452
|
if (missing.length > 0) {
|
|
453
|
-
|
|
453
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
454
454
|
{
|
|
455
455
|
ok: false,
|
|
456
456
|
status: "failed",
|
|
@@ -490,7 +490,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
490
490
|
{
|
|
491
491
|
schemaVersion: 1,
|
|
492
492
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
493
|
-
cliVersion:
|
|
493
|
+
cliVersion: _chunk75IIHFN6js.SDK_VERSION,
|
|
494
494
|
scope,
|
|
495
495
|
agents,
|
|
496
496
|
skillsVersion: plan.version,
|
|
@@ -503,9 +503,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
503
503
|
"utf8"
|
|
504
504
|
);
|
|
505
505
|
if (scope === "global") {
|
|
506
|
-
|
|
506
|
+
_chunkB7HQL77Vjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
507
507
|
}
|
|
508
|
-
|
|
508
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
509
509
|
{
|
|
510
510
|
ok: true,
|
|
511
511
|
status: "complete",
|
|
@@ -536,7 +536,7 @@ function registerSkillsCommand(program) {
|
|
|
536
536
|
"after",
|
|
537
537
|
`
|
|
538
538
|
Notes:
|
|
539
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
539
|
+
This command reinstalls current Deepline-managed skills using ${_chunkB7HQL77Vjs.SKILLS_NPX_PACKAGE},
|
|
540
540
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
541
541
|
persistent project.
|
|
542
542
|
|
|
@@ -548,13 +548,13 @@ Examples:
|
|
|
548
548
|
).action(async (options) => {
|
|
549
549
|
process.exitCode = await runSkillsCommand(options);
|
|
550
550
|
});
|
|
551
|
-
program.command(
|
|
551
|
+
program.command(_chunkB7HQL77Vjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
552
552
|
"--claim <token>",
|
|
553
553
|
"Owner token of the leases this child was started for."
|
|
554
554
|
).action(async (options) => {
|
|
555
555
|
const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
|
|
556
556
|
if (!claim) {
|
|
557
|
-
|
|
557
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
558
558
|
{
|
|
559
559
|
ok: false,
|
|
560
560
|
status: "failed",
|
|
@@ -567,7 +567,7 @@ Examples:
|
|
|
567
567
|
process.exitCode = 2;
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
570
|
-
await
|
|
570
|
+
await _chunkB7HQL77Vjs.syncSdkSkillsIfNeeded.call(void 0, _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
571
571
|
mode: "inline",
|
|
572
572
|
notices: "defer",
|
|
573
573
|
claim
|