deepline 0.3.578 → 0.3.579
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 +7 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +124 -57
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +43 -64
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +25 -0
- package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +83 -0
- package/dist/cli/{agents-MCU3ITQZ.js → agents-D5RZEVXQ.js} +31 -31
- package/dist/cli/{agents-LRBANBZH.mjs → agents-FJTRTYCL.mjs} +4 -4
- package/dist/cli/{auth-5BJKVYMQ.mjs → auth-OMYIDVXZ.mjs} +5 -5
- package/dist/cli/auth-Q4O7MJU4.js +44 -0
- package/dist/cli/{billing-NT57POHH.js → billing-EWFUDLQ7.js} +104 -102
- package/dist/cli/{billing-EBBI4MVL.mjs → billing-XK3LBNYS.mjs} +11 -9
- package/dist/cli/{chunk-H7DY5NQ3.mjs → chunk-27ZYRIQC.mjs} +5 -5
- package/dist/cli/{chunk-W66GXHYR.mjs → chunk-3Z4TVZE7.mjs} +1 -1
- package/dist/cli/{chunk-MXPCTF57.js → chunk-44NTNNKC.js} +11 -2
- package/dist/cli/{chunk-4LMTY4RQ.mjs → chunk-6DMGKAWO.mjs} +2 -2
- package/dist/cli/{chunk-ITYSPUKD.mjs → chunk-6EVVUVU3.mjs} +2 -2
- package/dist/cli/{chunk-4KNRCUKY.mjs → chunk-6GON36H3.mjs} +17 -14
- package/dist/cli/{chunk-A7NKOXBV.js → chunk-6MIEJJSO.js} +4 -4
- package/dist/cli/{chunk-4YSJOSBG.mjs → chunk-6NYHMXC7.mjs} +1 -1
- package/dist/cli/{chunk-PXMCPEE2.js → chunk-72TWLORR.js} +3 -3
- package/dist/cli/{chunk-3ZUKYLC6.js → chunk-7HOYKXVY.js} +8 -8
- package/dist/cli/{chunk-NEH7NZFT.js → chunk-7JMCRYXU.js} +10 -10
- package/dist/cli/{chunk-4CNHOBUO.mjs → chunk-7SZCJC4R.mjs} +2 -2
- package/dist/cli/{chunk-27HAQRGH.js → chunk-ABH6PUDZ.js} +23 -23
- package/dist/cli/{chunk-M3ITWEGS.js → chunk-AP7PIGL5.js} +41 -41
- package/dist/cli/{chunk-BPMA4S3O.js → chunk-BLEYV4BJ.js} +21 -21
- package/dist/cli/{chunk-DWUESXDD.mjs → chunk-BZ4M7OFO.mjs} +11 -1
- package/dist/cli/{chunk-5LCV36BR.js → chunk-DH736ASH.js} +20 -20
- package/dist/cli/{chunk-FYKHAT2F.mjs → chunk-DTQBQSUU.mjs} +9 -0
- package/dist/cli/{chunk-HZXF2HFF.mjs → chunk-F57NDSKT.mjs} +5 -5
- package/dist/cli/{chunk-VVZ7JZMQ.js → chunk-FKXSIIR4.js} +15 -15
- package/dist/cli/{chunk-CS36W3RL.js → chunk-G5CZDRY3.js} +26 -26
- package/dist/cli/{chunk-P35YQAUC.js → chunk-HEZW2IDK.js} +277 -274
- package/dist/cli/{chunk-AZFSCPYK.mjs → chunk-HGUFTSB5.mjs} +11 -2
- package/dist/cli/{chunk-CFLAGRWL.mjs → chunk-I2TSRLOI.mjs} +1 -1
- package/dist/cli/{chunk-OAQYLTUN.mjs → chunk-JFS4KHA3.mjs} +5 -5
- package/dist/cli/{chunk-XE66BGLB.js → chunk-K2BU67UC.js} +2 -2
- package/dist/cli/{chunk-NTHN7ODR.mjs → chunk-KIIOKQFY.mjs} +1 -1
- package/dist/cli/{chunk-IFWB4BYZ.mjs → chunk-KQAEXBVQ.mjs} +3 -3
- package/dist/cli/{chunk-RLPPLS6A.js → chunk-KWQHQG53.js} +6 -6
- package/dist/cli/{chunk-Y2TK7OXN.js → chunk-LCPJR3IY.js} +2 -2
- package/dist/cli/{chunk-W47SXEWQ.js → chunk-LQ45LCH7.js} +9 -9
- package/dist/cli/{chunk-LYZPGP3P.mjs → chunk-LV2LGW2Q.mjs} +1 -1
- package/dist/cli/{chunk-QPOJLAFT.mjs → chunk-LYBZLA6F.mjs} +2 -2
- package/dist/cli/{chunk-RWDYULX2.js → chunk-LYJ2NSHD.js} +17 -12
- package/dist/cli/{chunk-DDJN4RR6.mjs → chunk-M4YWN5BT.mjs} +4 -4
- package/dist/cli/{chunk-VMCJKGZS.mjs → chunk-N6X2UKYQ.mjs} +2 -2
- package/dist/cli/{chunk-25SSGQJJ.js → chunk-NKUXW4WB.js} +2 -2
- package/dist/cli/{chunk-CPNTDIJK.js → chunk-NOMO5GPI.js} +1 -1
- package/dist/cli/{chunk-CFG3ZM7M.mjs → chunk-NONMY5CY.mjs} +2 -2
- package/dist/cli/{chunk-24FGR73C.js → chunk-NWZU6HL4.js} +13 -13
- package/dist/cli/{chunk-HGQT6EGK.js → chunk-OOGP737I.js} +20 -20
- package/dist/cli/{chunk-ALXYCC4K.mjs → chunk-OSRATALX.mjs} +1 -1
- package/dist/cli/{chunk-ZO65VJRJ.js → chunk-PGRRMVQ5.js} +10 -1
- package/dist/cli/{chunk-J7PCSLRY.js → chunk-PLWZ3NB7.js} +5 -5
- package/dist/cli/{chunk-MXK4M7HP.js → chunk-Q4VKMF3B.js} +17 -17
- package/dist/cli/{chunk-SKHUWQZE.js → chunk-QA55PGJH.js} +17 -7
- package/dist/cli/{chunk-T2CCLYHV.mjs → chunk-S2OXA7QS.mjs} +7 -7
- package/dist/cli/{chunk-HKZN33F2.mjs → chunk-SUHCW7U5.mjs} +3 -3
- package/dist/cli/{chunk-PJXPHUAR.mjs → chunk-SZIWFQI2.mjs} +3 -3
- package/dist/cli/{chunk-7J473OJ5.mjs → chunk-TFNDOH4W.mjs} +1 -1
- package/dist/cli/{chunk-XBO4ERH6.js → chunk-TVAFWAOQ.js} +3 -3
- package/dist/cli/{chunk-UKSOIH2P.js → chunk-UYCBG75H.js} +5 -5
- package/dist/cli/{chunk-RW3URFZK.mjs → chunk-VFIIRK7S.mjs} +2 -2
- package/dist/cli/{chunk-3GF33QJJ.mjs → chunk-WQQQP3FH.mjs} +4 -4
- package/dist/cli/{chunk-G7PH2QVM.js → chunk-WWSGXX6U.js} +5 -5
- package/dist/cli/{chunk-JQPFICW3.mjs → chunk-X6LPC3SU.mjs} +1 -1
- package/dist/cli/{chunk-6UFTWNC5.mjs → chunk-XQYBBCFI.mjs} +2 -2
- package/dist/cli/{chunk-5IMWXYVB.js → chunk-XTM6NOJ6.js} +53 -53
- package/dist/cli/{chunk-XX7TZM4N.js → chunk-Y2ND6PPW.js} +48 -48
- package/dist/cli/{chunk-CSPOWVWS.mjs → chunk-YCWRKSLB.mjs} +8 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-D6XH3FY5.js +22 -0
- package/dist/cli/{concurrent-runs-help-2MHLIUC6.mjs → concurrent-runs-help-IQBZBTD5.mjs} +6 -6
- package/dist/cli/{csv-J6SRBMOT.mjs → csv-6BEOWTGM.mjs} +4 -4
- package/dist/cli/{csv-RYYDAC76.js → csv-T7TWLIGD.js} +13 -13
- package/dist/cli/{db-WK226TM7.mjs → db-FA5QGXZ7.mjs} +6 -6
- package/dist/cli/{db-5QLH6QK5.js → db-MFTUN3DF.js} +27 -27
- package/dist/cli/{describe-UBSCFPH5.mjs → describe-TITEQNVE.mjs} +21 -21
- package/dist/cli/describe-TYZ5YH3V.js +50 -0
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-XF5BNCFS.mjs → executions-DMYJJIRB.mjs} +6 -6
- package/dist/cli/{executions-AGV5V7SD.js → executions-QW3L7G7J.js} +8 -8
- package/dist/cli/{feedback-3RDEZE2M.js → feedback-6JZGE7OQ.js} +14 -14
- package/dist/cli/{feedback-LT3PDK72.mjs → feedback-WPSNSFRC.mjs} +6 -6
- package/dist/cli/{git-7VBTCCBV.mjs → git-GO65XRM3.mjs} +5 -5
- package/dist/cli/git-UGGRLGTQ.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-E7QRWMKZ.mjs → integrations-EEBPETH2.mjs} +7 -7
- package/dist/cli/{integrations-JP732FQB.js → integrations-T5JPSZXN.js} +29 -29
- package/dist/cli/{legacy-noops-UTL4W5WE.js → legacy-noops-B55OMNH7.js} +9 -9
- package/dist/cli/{legacy-noops-UFNQBPIT.mjs → legacy-noops-XDNZ46IR.mjs} +6 -6
- package/dist/cli/{mcp-5X4XFB4V.js → mcp-3YA333TQ.js} +24 -24
- package/dist/cli/{mcp-YHETA3AU.mjs → mcp-4QIUAAWS.mjs} +4 -4
- package/dist/cli/{monitors-WFVZ42OQ.mjs → monitors-BVUPS4CE.mjs} +7 -7
- package/dist/cli/{monitors-AN6KH4XY.js → monitors-FOS7MWZO.js} +100 -100
- package/dist/cli/{org-CN3XJZLA.js → org-CYM7HFLN.js} +121 -121
- package/dist/cli/{org-OMDV7WDF.mjs → org-TCMRRVFC.mjs} +6 -6
- package/dist/cli/{outcomes-I4ZTG5ND.mjs → outcomes-2JSWXWQ3.mjs} +6 -6
- package/dist/cli/{outcomes-7HCZ6K3Q.js → outcomes-VDJVP5YC.js} +14 -14
- package/dist/cli/{play-TSNBSHGA.mjs → play-CPP4EBYF.mjs} +20 -20
- package/dist/cli/{play-45VXZ57A.js → play-U3G73VIR.js} +349 -349
- package/dist/cli/{providers-RB3TT7AE.js → providers-2ZB67TK7.js} +9 -9
- package/dist/cli/{providers-4TB56ZLK.mjs → providers-RVMIX5ED.mjs} +6 -6
- package/dist/cli/{quickstart-XHZ3PG5I.mjs → quickstart-L3YO3OWZ.mjs} +4 -4
- package/dist/cli/{quickstart-ZNDM6VUD.js → quickstart-V3Y7XZ47.js} +6 -6
- package/dist/cli/{run-XNEJGAKV.js → run-M2CADJ6E.js} +49 -48
- package/dist/cli/{run-7PY4G6GB.mjs → run-PQ3Z2GOF.mjs} +27 -26
- package/dist/cli/{search-BG7KCIOG.mjs → search-QVLGI7SZ.mjs} +7 -7
- package/dist/cli/search-RHPPZZFG.js +32 -0
- package/dist/cli/{search-output-3ZBNTHGO.js → search-output-IUANVHWU.js} +8 -8
- package/dist/cli/{search-output-TWKKP2BE.mjs → search-output-PN3V7MSO.mjs} +5 -5
- package/dist/cli/{secrets-FNR6MX6A.js → secrets-AOW6F67J.js} +15 -15
- package/dist/cli/{secrets-AZZCE7E3.mjs → secrets-HK25G4K2.mjs} +6 -6
- package/dist/cli/sessions-AEGGTZ3K.js +23 -0
- package/dist/cli/{sessions-ZAMKN3AF.mjs → sessions-YN2OIAGR.mjs} +6 -6
- package/dist/cli/{settings-QGASFWV3.js → settings-6EV2FPGF.js} +85 -85
- package/dist/cli/{settings-WKWOOOI2.mjs → settings-7UW5TWSM.mjs} +12 -12
- package/dist/cli/{setup-U36W42LE.mjs → setup-BG56SHKH.mjs} +9 -9
- package/dist/cli/{setup-KUZDCR3F.js → setup-ZQPD2R5K.js} +49 -49
- package/dist/cli/skills-C6ZEZWBE.js +37 -0
- package/dist/cli/{skills-25CSZQIK.mjs → skills-MQV2TNUZ.mjs} +7 -7
- package/dist/cli/tools-PM3MC3RR.js +57 -0
- package/dist/cli/{tools-4NZQ22AA.mjs → tools-RGI4OE5T.mjs} +19 -19
- package/dist/cli/{update-CJYP36TG.mjs → update-SQKGHQKF.mjs} +9 -9
- package/dist/cli/update-ZHUPF2HT.js +37 -0
- package/dist/cli/{views-GYGE7FSV.mjs → views-734T2CXF.mjs} +6 -6
- package/dist/cli/{views-76UIPWJD.js → views-BUKVHCRD.js} +21 -21
- package/dist/cli/{workflow-LZSWALZS.mjs → workflow-JNRRBMEK.mjs} +7 -7
- package/dist/cli/{workflow-NCVXBATM.js → workflow-LPJC6RHP.js} +17 -17
- package/dist/{client-BrdMPFCM.d.ts → client-C1AubrWJ.d.ts} +1 -1
- package/dist/{client-CF-bsrtI.d.mts → client-CNYctEBh.d.mts} +1 -1
- package/dist/{client-core-DM1ZedOG.d.mts → client-core-Bb06TCx5.d.mts} +7 -0
- package/dist/{client-core-rMoUWSYM.d.ts → client-core-D6zAE46g.d.ts} +7 -0
- 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 +126 -126
- 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/auth-VSW3MTFO.js +0 -44
- package/dist/cli/concurrent-runs-help-ATT2GVTQ.js +0 -22
- package/dist/cli/describe-Q27SRQWM.js +0 -50
- package/dist/cli/git-BBTP3H7J.js +0 -26
- package/dist/cli/search-ZBU5GW4W.js +0 -32
- package/dist/cli/sessions-GCY62GAW.js +0 -23
- package/dist/cli/skills-43DHMLRW.js +0 -37
- package/dist/cli/tools-5BGKNMFU.js +0 -57
- package/dist/cli/update-CUO2MTB6.js +0 -37
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkY2ND6PPWjs = require('./chunk-Y2ND6PPW.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkOOGP737Ijs = require('./chunk-OOGP737I.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkTVAFWAOQjs = require('./chunk-TVAFWAOQ.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk6MIEJJSOjs = require('./chunk-6MIEJJSO.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
|
|
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
145
145
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
146
146
|
}
|
|
147
147
|
function resolveLocalRoot() {
|
|
148
|
-
const target =
|
|
148
|
+
const target = _chunkTVAFWAOQjs.resolveProjectPinTarget.call(void 0, );
|
|
149
149
|
if (!target.ok) {
|
|
150
150
|
throw new Error(
|
|
151
151
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
|
|
|
156
156
|
return target.dir;
|
|
157
157
|
}
|
|
158
158
|
function detectSkillsAgents(input) {
|
|
159
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
159
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunk6MIEJJSOjs.detectAgentRuntime.call(void 0, )));
|
|
160
160
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
161
161
|
if (knownAgent) return [knownAgent];
|
|
162
162
|
const roots = [
|
|
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
|
|
|
171
171
|
return detected.length > 0 ? detected : ["*"];
|
|
172
172
|
}
|
|
173
173
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
174
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
174
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkTVAFWAOQjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
175
175
|
}
|
|
176
176
|
function buildSkillsPlan(input) {
|
|
177
177
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
178
|
-
const legacyNames = [...
|
|
178
|
+
const legacyNames = [..._chunkY2ND6PPWjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
179
179
|
(a, b) => a.localeCompare(b)
|
|
180
180
|
);
|
|
181
181
|
return {
|
|
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
|
|
|
189
189
|
args: [
|
|
190
190
|
"exec",
|
|
191
191
|
"--yes",
|
|
192
|
-
`--package=${
|
|
192
|
+
`--package=${_chunkY2ND6PPWjs.SKILLS_NPX_PACKAGE}`,
|
|
193
193
|
"--",
|
|
194
194
|
"skills",
|
|
195
195
|
"remove",
|
|
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
|
|
|
205
205
|
args: [
|
|
206
206
|
"exec",
|
|
207
207
|
"--yes",
|
|
208
|
-
`--package=${
|
|
208
|
+
`--package=${_chunkY2ND6PPWjs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkY2ND6PPWjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
213
213
|
"--agent",
|
|
214
214
|
...input.agents,
|
|
215
215
|
...scopeArgs,
|
|
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
|
|
|
246
246
|
}
|
|
247
247
|
function runProcess(command, args, cwd) {
|
|
248
248
|
return new Promise((resolve, reject) => {
|
|
249
|
-
const plan =
|
|
249
|
+
const plan = _chunkY2ND6PPWjs.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -269,7 +269,7 @@ function runProcess(command, args, cwd) {
|
|
|
269
269
|
child.kill("SIGTERM");
|
|
270
270
|
reject(
|
|
271
271
|
new Error(
|
|
272
|
-
`${
|
|
272
|
+
`${_chunkY2ND6PPWjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
273
273
|
)
|
|
274
274
|
);
|
|
275
275
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -280,7 +280,7 @@ function runProcess(command, args, cwd) {
|
|
|
280
280
|
child.once("close", (code) => {
|
|
281
281
|
clearTimeout(timeout);
|
|
282
282
|
if (code && stderr.trim()) {
|
|
283
|
-
process.stderr.write(`${
|
|
283
|
+
process.stderr.write(`${_chunkY2ND6PPWjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
284
284
|
`);
|
|
285
285
|
}
|
|
286
286
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -288,7 +288,7 @@ function runProcess(command, args, cwd) {
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
async function showSkills(options, name) {
|
|
291
|
-
const baseUrl =
|
|
291
|
+
const baseUrl = _chunkTVAFWAOQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
292
292
|
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
293
293
|
try {
|
|
294
294
|
const response = await fetch(url, {
|
|
@@ -301,7 +301,7 @@ async function showSkills(options, name) {
|
|
|
301
301
|
}
|
|
302
302
|
if (name) {
|
|
303
303
|
const markdown = await response.text();
|
|
304
|
-
|
|
304
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
305
305
|
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
306
306
|
{ json: options.json, text: markdown }
|
|
307
307
|
);
|
|
@@ -311,7 +311,7 @@ async function showSkills(options, name) {
|
|
|
311
311
|
const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
|
|
312
312
|
(skill) => skill.install_surface === "v1" && skill.name
|
|
313
313
|
);
|
|
314
|
-
|
|
314
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
315
315
|
{
|
|
316
316
|
ok: true,
|
|
317
317
|
status: "completed",
|
|
@@ -328,7 +328,7 @@ Read one with: deepline skills show <name>
|
|
|
328
328
|
);
|
|
329
329
|
return 0;
|
|
330
330
|
} catch (error) {
|
|
331
|
-
|
|
331
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
332
332
|
{
|
|
333
333
|
ok: false,
|
|
334
334
|
status: "failed",
|
|
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
351
351
|
scope = normalizeScope(options.scope);
|
|
352
352
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
353
353
|
} catch (error) {
|
|
354
|
-
|
|
354
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
355
355
|
{
|
|
356
356
|
ok: false,
|
|
357
357
|
status: "failed",
|
|
@@ -363,22 +363,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
363
363
|
);
|
|
364
364
|
return 2;
|
|
365
365
|
}
|
|
366
|
-
const baseUrl =
|
|
366
|
+
const baseUrl = _chunkTVAFWAOQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
367
367
|
const catalog = {
|
|
368
|
-
skillNames: [...
|
|
369
|
-
version:
|
|
368
|
+
skillNames: [..._chunkY2ND6PPWjs.DEFAULT_SDK_SKILL_NAMES],
|
|
369
|
+
version: _chunk6MIEJJSOjs.SDK_VERSION
|
|
370
370
|
};
|
|
371
371
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
372
372
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
373
373
|
if (options.dryRun) {
|
|
374
|
-
|
|
374
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
375
375
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
376
376
|
{ json: options.json }
|
|
377
377
|
);
|
|
378
378
|
return 0;
|
|
379
379
|
}
|
|
380
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
381
|
-
|
|
380
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkY2ND6PPWjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
381
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
382
382
|
{
|
|
383
383
|
ok: true,
|
|
384
384
|
status: "current",
|
|
@@ -410,10 +410,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
410
410
|
}
|
|
411
411
|
if (scope === "local" && root) {
|
|
412
412
|
const managedNames = [
|
|
413
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
413
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkY2ND6PPWjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
414
414
|
];
|
|
415
415
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
416
|
-
|
|
416
|
+
_chunkTVAFWAOQjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
417
417
|
".deepline/",
|
|
418
418
|
...agentRoots.flatMap(
|
|
419
419
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -422,7 +422,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
422
422
|
}
|
|
423
423
|
let lease;
|
|
424
424
|
try {
|
|
425
|
-
lease = scope === "global" ? await
|
|
425
|
+
lease = scope === "global" ? await _chunkY2ND6PPWjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
426
426
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
427
427
|
onWait: () => process.stderr.write(
|
|
428
428
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -430,8 +430,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
430
430
|
}) : { release: () => {
|
|
431
431
|
} };
|
|
432
432
|
} catch (error) {
|
|
433
|
-
if (!(error instanceof
|
|
434
|
-
|
|
433
|
+
if (!(error instanceof _chunkY2ND6PPWjs.SkillsStateUnavailableError)) throw error;
|
|
434
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
435
435
|
{
|
|
436
436
|
ok: false,
|
|
437
437
|
status: "failed",
|
|
@@ -447,7 +447,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
447
447
|
return 5;
|
|
448
448
|
}
|
|
449
449
|
if (!lease) {
|
|
450
|
-
|
|
450
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
451
451
|
{
|
|
452
452
|
ok: false,
|
|
453
453
|
status: "failed",
|
|
@@ -456,7 +456,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
456
456
|
scope,
|
|
457
457
|
agents,
|
|
458
458
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
459
|
-
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${
|
|
459
|
+
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkY2ND6PPWjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
460
460
|
},
|
|
461
461
|
{ json: options.json }
|
|
462
462
|
);
|
|
@@ -505,7 +505,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
} catch (error) {
|
|
508
|
-
|
|
508
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
509
509
|
{
|
|
510
510
|
ok: false,
|
|
511
511
|
status: "failed",
|
|
@@ -521,7 +521,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
521
521
|
return 5;
|
|
522
522
|
}
|
|
523
523
|
if (missing.length > 0) {
|
|
524
|
-
|
|
524
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
525
525
|
{
|
|
526
526
|
ok: false,
|
|
527
527
|
status: "failed",
|
|
@@ -561,7 +561,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
561
561
|
{
|
|
562
562
|
schemaVersion: 1,
|
|
563
563
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
564
|
-
cliVersion:
|
|
564
|
+
cliVersion: _chunk6MIEJJSOjs.SDK_VERSION,
|
|
565
565
|
scope,
|
|
566
566
|
agents,
|
|
567
567
|
skillsVersion: plan.version,
|
|
@@ -574,9 +574,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
574
574
|
"utf8"
|
|
575
575
|
);
|
|
576
576
|
if (scope === "global") {
|
|
577
|
-
|
|
577
|
+
_chunkY2ND6PPWjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
580
580
|
{
|
|
581
581
|
ok: true,
|
|
582
582
|
status: "complete",
|
|
@@ -625,7 +625,7 @@ Examples:
|
|
|
625
625
|
"after",
|
|
626
626
|
`
|
|
627
627
|
Notes:
|
|
628
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
628
|
+
This command reinstalls current Deepline-managed skills using ${_chunkY2ND6PPWjs.SKILLS_NPX_PACKAGE},
|
|
629
629
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
630
630
|
persistent project.
|
|
631
631
|
|
|
@@ -637,13 +637,13 @@ Examples:
|
|
|
637
637
|
).action(async (options) => {
|
|
638
638
|
process.exitCode = await runSkillsCommand(options);
|
|
639
639
|
});
|
|
640
|
-
program.command(
|
|
640
|
+
program.command(_chunkY2ND6PPWjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
641
641
|
"--claim <token>",
|
|
642
642
|
"Owner token of the leases this child was started for."
|
|
643
643
|
).action(async (options) => {
|
|
644
644
|
const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
|
|
645
645
|
if (!claim) {
|
|
646
|
-
|
|
646
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
647
647
|
{
|
|
648
648
|
ok: false,
|
|
649
649
|
status: "failed",
|
|
@@ -656,7 +656,7 @@ Examples:
|
|
|
656
656
|
process.exitCode = 2;
|
|
657
657
|
return;
|
|
658
658
|
}
|
|
659
|
-
await
|
|
659
|
+
await _chunkY2ND6PPWjs.syncSdkSkillsIfNeeded.call(void 0, _chunkTVAFWAOQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
660
660
|
mode: "inline",
|
|
661
661
|
notices: "defer",
|
|
662
662
|
claim
|
|
@@ -1,30 +1,30 @@
|
|
|
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 _chunkHEZW2IDKjs = require('./chunk-HEZW2IDK.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkLYJ2NSHDjs = require('./chunk-LYJ2NSHD.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkQ4VKMF3Bjs = require('./chunk-Q4VKMF3B.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkPGRRMVQ5js = require('./chunk-PGRRMVQ5.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkUYCBG75Hjs = require('./chunk-UYCBG75H.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkOOGP737Ijs = require('./chunk-OOGP737I.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkTVAFWAOQjs = require('./chunk-TVAFWAOQ.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/describe.ts
|
|
30
30
|
var _fs = require('fs');
|
|
@@ -33,14 +33,14 @@ var _path = require('path');
|
|
|
33
33
|
// src/cli/doc-read-reporting.ts
|
|
34
34
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
35
35
|
async function reportDocRead(docId) {
|
|
36
|
-
if (
|
|
36
|
+
if (_chunkOOGP737Ijs.isFailureReportingDisabled.call(void 0, )) return;
|
|
37
37
|
try {
|
|
38
|
-
const baseUrl =
|
|
39
|
-
const apiKey =
|
|
38
|
+
const baseUrl = _chunkTVAFWAOQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
39
|
+
const apiKey = _chunkTVAFWAOQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
40
40
|
if (!apiKey) return;
|
|
41
41
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
42
42
|
method: "POST",
|
|
43
|
-
headers:
|
|
43
|
+
headers: _chunkOOGP737Ijs.failureReportHeaders.call(void 0, apiKey),
|
|
44
44
|
body: JSON.stringify({ doc_id: docId }),
|
|
45
45
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
46
46
|
});
|
|
@@ -53,22 +53,22 @@ function nothingNamed(name) {
|
|
|
53
53
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
54
54
|
}
|
|
55
55
|
function findNamed2(name, options) {
|
|
56
|
-
return
|
|
56
|
+
return _chunkQ4VKMF3Bjs.findNamed.call(void 0, name, options, cliDescribeLookups(new (0, _chunkUYCBG75Hjs.DeeplineClient)()));
|
|
57
57
|
}
|
|
58
58
|
function cliDescribeLookups(client) {
|
|
59
59
|
return {
|
|
60
|
-
...
|
|
61
|
-
dashboardOrgId:
|
|
60
|
+
..._chunkQ4VKMF3Bjs.describeLookupsFor.call(void 0, client),
|
|
61
|
+
dashboardOrgId: _chunkTVAFWAOQjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
async function describeAnything(name, options, onMissing) {
|
|
65
|
-
const client = new (0,
|
|
65
|
+
const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
|
|
66
66
|
const lookups = cliDescribeLookups(client);
|
|
67
|
-
const outcome = await
|
|
67
|
+
const outcome = await _chunkQ4VKMF3Bjs.describeName.call(void 0, name, options, {
|
|
68
68
|
...lookups,
|
|
69
69
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
70
70
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
71
|
-
seedStarterScript:
|
|
71
|
+
seedStarterScript: _chunkHEZW2IDKjs.seedToolListScript
|
|
72
72
|
});
|
|
73
73
|
if (outcome.status === "missing") {
|
|
74
74
|
if (onMissing) return onMissing();
|
|
@@ -97,18 +97,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
97
97
|
` : text;
|
|
98
98
|
_fs.writeFileSync.call(void 0, path, content);
|
|
99
99
|
const bytes = Buffer.byteLength(content);
|
|
100
|
-
|
|
100
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
101
101
|
{ path, bytes },
|
|
102
102
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
103
103
|
` }
|
|
104
104
|
);
|
|
105
105
|
return 0;
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
108
108
|
return 0;
|
|
109
109
|
}
|
|
110
110
|
function registerDescribeCommand(program) {
|
|
111
|
-
|
|
111
|
+
_chunkLYJ2NSHDjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
112
112
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
113
113
|
).addHelpText(
|
|
114
114
|
"after",
|
|
@@ -149,7 +149,7 @@ Schema size and format:
|
|
|
149
149
|
by default; the output names them, and --verbose shows them.
|
|
150
150
|
--fields email,miss_reason shows only the fields you name, plus every
|
|
151
151
|
required input, and names the rest. Use it when you know what you need.
|
|
152
|
-
A schema over ${
|
|
152
|
+
A schema over ${_chunkPGRRMVQ5js.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
|
|
153
153
|
names. A shape used more than once is printed once under Types.
|
|
154
154
|
--full-schema the normal output, with the schema not folded
|
|
155
155
|
--schema-only only the schema, not folded, and nothing else
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
rateLimitSummary,
|
|
3
3
|
schemaField,
|
|
4
4
|
schemaFields
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DTQBQSUU.mjs";
|
|
6
6
|
import {
|
|
7
7
|
exampleInputFileLine,
|
|
8
8
|
exampleJsonInput,
|
|
@@ -80,6 +80,9 @@ var CapabilityDescription = class _CapabilityDescription {
|
|
|
80
80
|
const billingSourceLabel = stringValue(
|
|
81
81
|
this.#catalogEntry.billingSourceLabel ?? this.#catalogEntry.billing_source_label
|
|
82
82
|
);
|
|
83
|
+
const credentialSource = stringValue(
|
|
84
|
+
this.#catalogEntry.credentialSource ?? this.#catalogEntry.credential_source
|
|
85
|
+
);
|
|
83
86
|
const isFree = billingSource === "free";
|
|
84
87
|
const displayText = stringValue(
|
|
85
88
|
pricing.displayText ?? pricing.display_text
|
|
@@ -99,6 +102,7 @@ var CapabilityDescription = class _CapabilityDescription {
|
|
|
99
102
|
),
|
|
100
103
|
billingSource,
|
|
101
104
|
billingSourceLabel,
|
|
105
|
+
...credentialSource ? { credentialSource } : {},
|
|
102
106
|
deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits,
|
|
103
107
|
deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd,
|
|
104
108
|
...pricing.estimatedRange && showManagedPricing ? {
|
|
@@ -460,12 +464,18 @@ function describedTool(tool, requestedToolId) {
|
|
|
460
464
|
);
|
|
461
465
|
const provider = stringField(tool, "provider");
|
|
462
466
|
const connectCommand = credentialStatus === "requires_connection" && (!byok || byok.setupUrl) && /^[a-z0-9][a-z0-9_-]*$/.test(provider) ? `deepline integrations connect ${provider} --link --json` : void 0;
|
|
467
|
+
const credentialSource = stringField(
|
|
468
|
+
tool,
|
|
469
|
+
"credentialSource",
|
|
470
|
+
"credential_source"
|
|
471
|
+
);
|
|
463
472
|
return {
|
|
464
473
|
kind: "tool",
|
|
465
474
|
id: String(contract.toolId),
|
|
466
475
|
...provider ? { provider } : {},
|
|
467
476
|
displayName,
|
|
468
477
|
description,
|
|
478
|
+
...credentialSource ? { credentialSource } : {},
|
|
469
479
|
cost: [
|
|
470
480
|
stringField(cost, "displayText"),
|
|
471
481
|
// "Free (free)" says the same thing twice, as does "Uses your provided
|
|
@@ -1,23 +1,23 @@
|
|
|
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 _chunkK2BU67UCjs = require('./chunk-K2BU67UC.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAP7PIGL5js = require('./chunk-AP7PIGL5.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkY2ND6PPWjs = require('./chunk-Y2ND6PPW.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkOOGP737Ijs = require('./chunk-OOGP737I.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkTVAFWAOQjs = require('./chunk-TVAFWAOQ.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/update.ts
|
|
23
23
|
var _child_process = require('child_process');
|
|
@@ -499,7 +499,7 @@ function normalizedNpmPrefix(value) {
|
|
|
499
499
|
}
|
|
500
500
|
function resolveNpmGlobalPrefix(env) {
|
|
501
501
|
try {
|
|
502
|
-
const plan =
|
|
502
|
+
const plan = _chunkY2ND6PPWjs.resolveShellSpawn.call(void 0,
|
|
503
503
|
"npm",
|
|
504
504
|
["prefix", "-g"],
|
|
505
505
|
process.platform,
|
|
@@ -561,8 +561,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
561
561
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
562
562
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
563
563
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
564
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
565
|
-
const npmGlobalInstallFlags =
|
|
564
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkK2BU67UCjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
565
|
+
const npmGlobalInstallFlags = _chunkK2BU67UCjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
566
566
|
const args = installPrefix ? [
|
|
567
567
|
"install",
|
|
568
568
|
"-g",
|
|
@@ -572,7 +572,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
572
572
|
packageSpec
|
|
573
573
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
574
574
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
575
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
575
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkTVAFWAOQjs.autoDetectBaseUrl.call(void 0, )
|
|
576
576
|
);
|
|
577
577
|
return {
|
|
578
578
|
kind: "npm-global",
|
|
@@ -821,7 +821,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
821
821
|
function runCommand(command, args, env = process.env) {
|
|
822
822
|
return new Promise((resolveResult) => {
|
|
823
823
|
let output = "";
|
|
824
|
-
const plan =
|
|
824
|
+
const plan = _chunkY2ND6PPWjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
825
825
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
826
826
|
windowsHide: true,
|
|
827
827
|
stdio: ["inherit", "pipe", "pipe"],
|
|
@@ -1169,7 +1169,7 @@ function normalizePinnedVersion(value) {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
async function readPinMetadata(registryUrl, version) {
|
|
1171
1171
|
const controller = new AbortController();
|
|
1172
|
-
const timeout = setTimeout(() => controller.abort(),
|
|
1172
|
+
const timeout = setTimeout(() => controller.abort(), _chunkTVAFWAOQjs.DEFAULT_TIMEOUT);
|
|
1173
1173
|
try {
|
|
1174
1174
|
const response = await fetch(
|
|
1175
1175
|
new URL(
|
|
@@ -1185,7 +1185,7 @@ async function readPinMetadata(registryUrl, version) {
|
|
|
1185
1185
|
if (!response.ok) {
|
|
1186
1186
|
return {
|
|
1187
1187
|
kind: "miss",
|
|
1188
|
-
transient:
|
|
1188
|
+
transient: _chunkTVAFWAOQjs.TRANSIENT_HTTP_STATUSES.has(response.status),
|
|
1189
1189
|
error: new Error(`${registryUrl} returned HTTP ${response.status}`)
|
|
1190
1190
|
};
|
|
1191
1191
|
}
|
|
@@ -1219,8 +1219,8 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl, retry =
|
|
|
1219
1219
|
"https://registry.npmjs.org/",
|
|
1220
1220
|
...fallbackRegistryUrl ? [fallbackRegistryUrl] : []
|
|
1221
1221
|
];
|
|
1222
|
-
const maxRetries = _nullishCoalesce(retry.maxRetries, () => (
|
|
1223
|
-
const backoffMs = _nullishCoalesce(retry.backoffMs, () => (
|
|
1222
|
+
const maxRetries = _nullishCoalesce(retry.maxRetries, () => ( _chunkTVAFWAOQjs.DEFAULT_MAX_RETRIES));
|
|
1223
|
+
const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunkTVAFWAOQjs.defaultRetryBackoffMs));
|
|
1224
1224
|
let lastError = null;
|
|
1225
1225
|
for (let round = 1; ; round += 1) {
|
|
1226
1226
|
let transientOnly = true;
|
|
@@ -1283,14 +1283,14 @@ async function resolveInstalledVersionIfLatest(plan) {
|
|
|
1283
1283
|
return null;
|
|
1284
1284
|
}
|
|
1285
1285
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1286
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1286
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkTVAFWAOQjs.autoDetectBaseUrl));
|
|
1287
1287
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1288
1288
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1289
1289
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1290
1290
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1291
1291
|
process.stdout.write = (() => true);
|
|
1292
1292
|
try {
|
|
1293
|
-
const exitCode = await
|
|
1293
|
+
const exitCode = await _chunkAP7PIGL5js.runSkillsCommand.call(void 0, { json: true });
|
|
1294
1294
|
if (exitCode !== 0) {
|
|
1295
1295
|
throw new Error(
|
|
1296
1296
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1363,7 +1363,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1363
1363
|
};
|
|
1364
1364
|
if (options.json && !options.executeWithJson) {
|
|
1365
1365
|
const upToDateVersion2 = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
|
|
1366
|
-
|
|
1366
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
1367
1367
|
{
|
|
1368
1368
|
...plan,
|
|
1369
1369
|
updated: false,
|
|
@@ -1375,7 +1375,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1375
1375
|
return 0;
|
|
1376
1376
|
}
|
|
1377
1377
|
if (options.printCommand) {
|
|
1378
|
-
|
|
1378
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
1379
1379
|
{
|
|
1380
1380
|
...plan,
|
|
1381
1381
|
render: {
|
|
@@ -1388,7 +1388,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1388
1388
|
return 0;
|
|
1389
1389
|
}
|
|
1390
1390
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1391
|
-
|
|
1391
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1392
1392
|
return 0;
|
|
1393
1393
|
}
|
|
1394
1394
|
const upToDateVersion = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
|
|
@@ -1426,7 +1426,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1426
1426
|
);
|
|
1427
1427
|
}
|
|
1428
1428
|
if (options.executeWithJson && options.json) {
|
|
1429
|
-
|
|
1429
|
+
_chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
|
|
1430
1430
|
{
|
|
1431
1431
|
ok: true,
|
|
1432
1432
|
pinnedVersion,
|
|
@@ -19,6 +19,12 @@ function featureLines(id, features) {
|
|
|
19
19
|
)
|
|
20
20
|
];
|
|
21
21
|
}
|
|
22
|
+
function credentialSourceText(source) {
|
|
23
|
+
if (source === "user") return "your own provider key";
|
|
24
|
+
if (source === "managed") return "Deepline's managed key";
|
|
25
|
+
if (source === "none") return "no provider key needed";
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
22
28
|
function byokLines(byok) {
|
|
23
29
|
if (typeof byok.supported !== "boolean") {
|
|
24
30
|
return ["BYOK: unknown (this server does not report it)"];
|
|
@@ -711,6 +717,7 @@ function describedLines(described, view) {
|
|
|
711
717
|
...described.description ? [described.description] : [],
|
|
712
718
|
...described.signature ? [`Signature: ${described.signature}`] : [],
|
|
713
719
|
...described.cost ? [`Cost: ${described.cost}`] : [],
|
|
720
|
+
...credentialSourceText(described.credentialSource) ? [`Runs on: ${credentialSourceText(described.credentialSource)}`] : [],
|
|
714
721
|
...described.guidance.map((line) => `Guidance: ${line}`),
|
|
715
722
|
...described.rateLimit ? [`Rate limit: ${described.rateLimit}`] : [],
|
|
716
723
|
...described.toolUsage?.effect ? [`Effect: ${described.toolUsage.effect}`] : [],
|
|
@@ -841,6 +848,7 @@ function describedJson(described, view) {
|
|
|
841
848
|
...described.cost ? { cost: described.cost } : {},
|
|
842
849
|
...described.rateLimit ? { rateLimit: described.rateLimit } : {},
|
|
843
850
|
...described.byok ? { byok: described.byok } : {},
|
|
851
|
+
...described.credentialSource ? { credentialSource: described.credentialSource } : {},
|
|
844
852
|
...described.connected !== void 0 ? { connected: described.connected } : {},
|
|
845
853
|
...described.credentialStatus ? { credentialStatus: described.credentialStatus } : {},
|
|
846
854
|
...described.connectCommand ? { connectCommand: described.connectCommand } : {},
|
|
@@ -989,6 +997,7 @@ function describedPlay(play) {
|
|
|
989
997
|
}
|
|
990
998
|
|
|
991
999
|
export {
|
|
1000
|
+
credentialSourceText,
|
|
992
1001
|
byokLines,
|
|
993
1002
|
SCHEMA_LINE_LIMIT,
|
|
994
1003
|
schemaField,
|