svamp-cli 0.1.50 → 0.1.52
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/cli.mjs +25 -22
- package/dist/{commands-D-nIO_Sf.mjs → commands-1tmye7o_.mjs} +7 -3
- package/dist/{commands-D1brd9fB.mjs → commands-CI_BVphs.mjs} +7 -3
- package/dist/{commands-DHnFOhQC.mjs → commands-DcFOU9nW.mjs} +7 -3
- package/dist/commands-DwY2B7KW.mjs +562 -0
- package/dist/index.mjs +1 -1
- package/dist/{package-BLDik3NY.mjs → package-BRivSAkK.mjs} +1 -1
- package/dist/{package-BYUO-39f.mjs → package-D7EUXtnk.mjs} +1 -1
- package/dist/{run-BE_AIJ7z.mjs → run-BYJX5syg.mjs} +1 -1
- package/dist/{run-CE4H8ZiN.mjs → run-BnnUavlu.mjs} +199 -65
- package/dist/{run-BG3279Kg.mjs → run-Bw6aGHLA.mjs} +1 -1
- package/dist/{run-4li60ojK.mjs → run-DOwarObi.mjs} +1 -1
- package/dist/{run-C0ecvcRP.mjs → run-DxISzP_V.mjs} +63 -8
- package/dist/{run-Bc83CRUn.mjs → run-eYBOEaWw.mjs} +22 -7
- package/dist/tunnel-C2_V6y3d.mjs +299 -0
- package/package.json +1 -1
- package/dist/commands-4_MiOQVp.mjs +0 -1217
- package/dist/commands-8UAWGJrC.mjs +0 -1208
- package/dist/commands-8Wmq0uak.mjs +0 -1407
- package/dist/commands-8Xn02pQg.mjs +0 -1217
- package/dist/commands-9DPsh6ku.mjs +0 -1217
- package/dist/commands-9rMB13FP.mjs +0 -1214
- package/dist/commands-B-XaqFDB.mjs +0 -1407
- package/dist/commands-B53zuBHB.mjs +0 -1217
- package/dist/commands-B7yLt11i.mjs +0 -1217
- package/dist/commands-BDVAO_N2.mjs +0 -1217
- package/dist/commands-BD_NjWJL.mjs +0 -1217
- package/dist/commands-BEhSQqTp.mjs +0 -507
- package/dist/commands-BIFQZZGw.mjs +0 -1375
- package/dist/commands-BImRR1Wr.mjs +0 -1217
- package/dist/commands-BLmRIMdf.mjs +0 -1217
- package/dist/commands-BOYo9cdy.mjs +0 -1741
- package/dist/commands-BQ_347V_.mjs +0 -1374
- package/dist/commands-BTEmyf2m.mjs +0 -1407
- package/dist/commands-BVjcCbWS.mjs +0 -1375
- package/dist/commands-BVsLRttq.mjs +0 -1217
- package/dist/commands-BVuE0VQU.mjs +0 -507
- package/dist/commands-BY09VTpk.mjs +0 -1375
- package/dist/commands-Bcdp0X-o.mjs +0 -1217
- package/dist/commands-BdnG1cqQ.mjs +0 -1217
- package/dist/commands-BdvvRQIo.mjs +0 -1415
- package/dist/commands-Bgg_dvDw.mjs +0 -1683
- package/dist/commands-Bi0zYJvj.mjs +0 -1407
- package/dist/commands-BmirUCVt.mjs +0 -1208
- package/dist/commands-BpSUbvmr.mjs +0 -1217
- package/dist/commands-BuJ6xTfc.mjs +0 -1217
- package/dist/commands-BzbYPx0f.mjs +0 -1208
- package/dist/commands-C-RtFjJl.mjs +0 -1217
- package/dist/commands-C20_f6oo.mjs +0 -1217
- package/dist/commands-C6KDr9Yp.mjs +0 -1407
- package/dist/commands-C9TOoTCv.mjs +0 -1395
- package/dist/commands-C9TdN_El.mjs +0 -1683
- package/dist/commands-CFv6lO0D.mjs +0 -1217
- package/dist/commands-CJ2n5jS2.mjs +0 -1375
- package/dist/commands-CKEKQ_5B.mjs +0 -1217
- package/dist/commands-CQz67Rm1.mjs +0 -1395
- package/dist/commands-CRZbJjqN.mjs +0 -1375
- package/dist/commands-CToIvBFX.mjs +0 -1375
- package/dist/commands-CWsfciHn.mjs +0 -1217
- package/dist/commands-CYMSyqYC.mjs +0 -1395
- package/dist/commands-CZ7KPLLJ.mjs +0 -1217
- package/dist/commands-Cc73uUnP.mjs +0 -1375
- package/dist/commands-CdMsAD1-.mjs +0 -1217
- package/dist/commands-CdyCWC3y.mjs +0 -1395
- package/dist/commands-ClVCprrK.mjs +0 -1217
- package/dist/commands-Cnmf8znA.mjs +0 -1196
- package/dist/commands-CorUNLRF.mjs +0 -1375
- package/dist/commands-Cq0oj5_v.mjs +0 -1217
- package/dist/commands-CrdvbXPI.mjs +0 -1395
- package/dist/commands-Cw2Od6mc.mjs +0 -1683
- package/dist/commands-CwC2aVzu.mjs +0 -1217
- package/dist/commands-CxSCUJCB.mjs +0 -1217
- package/dist/commands-D-PTwdZz.mjs +0 -1217
- package/dist/commands-D7-NHH5q.mjs +0 -1407
- package/dist/commands-D7kH-7Vn.mjs +0 -1217
- package/dist/commands-DBv6A3aJ.mjs +0 -507
- package/dist/commands-DD3HXakm.mjs +0 -1217
- package/dist/commands-DLoe6FyK.mjs +0 -1375
- package/dist/commands-DPbH8KF0.mjs +0 -1217
- package/dist/commands-DUAQ9MZM.mjs +0 -1217
- package/dist/commands-DVw-P6-0.mjs +0 -1407
- package/dist/commands-DVygnMsh.mjs +0 -1217
- package/dist/commands-DWira-Cz.mjs +0 -1741
- package/dist/commands-DYTdUlul.mjs +0 -1217
- package/dist/commands-DZfaDmsk.mjs +0 -1374
- package/dist/commands-Dd8cn8mW.mjs +0 -1217
- package/dist/commands-DsIoygTL.mjs +0 -1395
- package/dist/commands-Du-fdLLu.mjs +0 -969
- package/dist/commands-DuJGOq1y.mjs +0 -1217
- package/dist/commands-DwBr3sBn.mjs +0 -1217
- package/dist/commands-DwveR96q.mjs +0 -1683
- package/dist/commands-DypTF36z.mjs +0 -506
- package/dist/commands-EUMJqBCs.mjs +0 -1407
- package/dist/commands-HLu7P96l.mjs +0 -1214
- package/dist/commands-HrBaGV-C.mjs +0 -1683
- package/dist/commands-Jk5no-DX.mjs +0 -1407
- package/dist/commands-KH5dj9dv.mjs +0 -1214
- package/dist/commands-LaNHVHjc.mjs +0 -1217
- package/dist/commands-O1Q9g00y.mjs +0 -1395
- package/dist/commands-OwMfbBrU.mjs +0 -1395
- package/dist/commands-SQ0Wp_kD.mjs +0 -1217
- package/dist/commands-S_MFQ9n1.mjs +0 -354
- package/dist/commands-T3q8VKCY.mjs +0 -1407
- package/dist/commands-Ugz9TtRu.mjs +0 -1420
- package/dist/commands-Wng0OuNY.mjs +0 -1683
- package/dist/commands-YBW5jFpy.mjs +0 -1217
- package/dist/commands-Z-CbuF8E.mjs +0 -1217
- package/dist/commands-fSZOP80Z.mjs +0 -1217
- package/dist/commands-fqBuJe1b.mjs +0 -1217
- package/dist/commands-g-1n3_Rp.mjs +0 -1395
- package/dist/commands-mC0oe0lj.mjs +0 -1217
- package/dist/commands-od2hOku5.mjs +0 -1217
- package/dist/commands-otgzprjb.mjs +0 -1375
- package/dist/commands-rhHI6Wb2.mjs +0 -1420
- package/dist/commands-zGHnUXh5.mjs +0 -1217
- package/dist/package-BMCjXPI9.mjs +0 -58
- package/dist/package-BPMWPlS0.mjs +0 -57
- package/dist/package-BaGfG8vL.mjs +0 -58
- package/dist/package-BkBE6ZdN.mjs +0 -57
- package/dist/package-BufekbY1.mjs +0 -57
- package/dist/package-C1hpYMj4.mjs +0 -57
- package/dist/package-CmIBOZtY.mjs +0 -57
- package/dist/package-CmVt1kdw.mjs +0 -58
- package/dist/package-Cn6Ya4A0.mjs +0 -57
- package/dist/package-Csd530Ym.mjs +0 -57
- package/dist/package-D6mNQtUs.mjs +0 -57
- package/dist/package-DG0AkZdm.mjs +0 -58
- package/dist/package-DRO1LpXW.mjs +0 -58
- package/dist/package-Dav8qh6X.mjs +0 -57
- package/dist/package-DiA55dzE.mjs +0 -57
- package/dist/package-UwLIU765.mjs +0 -58
- package/dist/package-k3XsdP9k.mjs +0 -58
- package/dist/package-rasGC9_z.mjs +0 -58
- package/dist/run-4B1XZQB8.mjs +0 -5426
- package/dist/run-4eArMb_9.mjs +0 -1050
- package/dist/run-67wfoMuo.mjs +0 -5383
- package/dist/run-6N2IdEX7.mjs +0 -5410
- package/dist/run-6dwQnoBL.mjs +0 -1051
- package/dist/run-7iQKryzo.mjs +0 -5383
- package/dist/run-7s8lOXqB.mjs +0 -1050
- package/dist/run-8kKykzTs.mjs +0 -5367
- package/dist/run-8mLZV2lg.mjs +0 -1050
- package/dist/run-9x7I9Ck-.mjs +0 -5264
- package/dist/run-B-PWtXF-.mjs +0 -5894
- package/dist/run-B1ivovUl.mjs +0 -5964
- package/dist/run-B1l9Ed8k.mjs +0 -5403
- package/dist/run-B2zRMxE0.mjs +0 -5508
- package/dist/run-B31biy0V.mjs +0 -1050
- package/dist/run-B5o5fMMd.mjs +0 -5369
- package/dist/run-B7V-xXM7.mjs +0 -5775
- package/dist/run-B9ND6srh.mjs +0 -6154
- package/dist/run-BHZNzX1F.mjs +0 -5235
- package/dist/run-BKdOv7gX.mjs +0 -1050
- package/dist/run-BLySdZ1K.mjs +0 -5251
- package/dist/run-BOVkQfM-.mjs +0 -1050
- package/dist/run-BQ0lIare.mjs +0 -1050
- package/dist/run-BREPr7Yc.mjs +0 -5508
- package/dist/run-BTwshVk1.mjs +0 -5728
- package/dist/run-BUL3eAqT.mjs +0 -1050
- package/dist/run-BVcPemGr.mjs +0 -5947
- package/dist/run-BWqEmIiz.mjs +0 -5964
- package/dist/run-BWsDPiNe.mjs +0 -1050
- package/dist/run-BX4iy6k8.mjs +0 -1050
- package/dist/run-BXYfq8mK.mjs +0 -5836
- package/dist/run-BY12Ataq.mjs +0 -5732
- package/dist/run-BYDOX4yk.mjs +0 -5402
- package/dist/run-Bd-t6s63.mjs +0 -5373
- package/dist/run-BenYqfwQ.mjs +0 -5273
- package/dist/run-BfF4bgA3.mjs +0 -5403
- package/dist/run-Bhh05yic.mjs +0 -5369
- package/dist/run-BicITYWX.mjs +0 -6138
- package/dist/run-BieEN0Pg.mjs +0 -5761
- package/dist/run-BjEQi6PN.mjs +0 -1050
- package/dist/run-BjZ6SyFy.mjs +0 -1051
- package/dist/run-Bl8OkKyC.mjs +0 -5969
- package/dist/run-BlEFlhfn.mjs +0 -5510
- package/dist/run-BmL1m0Bk.mjs +0 -1050
- package/dist/run-Bmx5wEBF.mjs +0 -1051
- package/dist/run-BnX5Rw8x.mjs +0 -5403
- package/dist/run-BpjmHeht.mjs +0 -1050
- package/dist/run-BxTdRjCG.mjs +0 -1051
- package/dist/run-ByOVDgvx.mjs +0 -6115
- package/dist/run-BzRP6Q5t.mjs +0 -1051
- package/dist/run-C0dyMP62.mjs +0 -1051
- package/dist/run-C1lS3SwN.mjs +0 -5733
- package/dist/run-C3PAp02X.mjs +0 -5252
- package/dist/run-C3eaYQub.mjs +0 -1050
- package/dist/run-C4pdX4sY.mjs +0 -1051
- package/dist/run-C676pHe-.mjs +0 -5423
- package/dist/run-C8GkzcfP.mjs +0 -1050
- package/dist/run-C9Hrqjy_.mjs +0 -1050
- package/dist/run-CC2C8P-U.mjs +0 -6031
- package/dist/run-CCcW4asS.mjs +0 -1050
- package/dist/run-CDBKhQ1Z.mjs +0 -1051
- package/dist/run-CEB6sYzn.mjs +0 -5962
- package/dist/run-CF6aXLmA.mjs +0 -5445
- package/dist/run-CHyN5U0t.mjs +0 -1050
- package/dist/run-CIFezmkC.mjs +0 -5949
- package/dist/run-CLA9zw7J.mjs +0 -5907
- package/dist/run-COWb9ovq.mjs +0 -1050
- package/dist/run-CSUAy5T5.mjs +0 -1051
- package/dist/run-CSk7i0Hq.mjs +0 -1050
- package/dist/run-CUtqSGWJ.mjs +0 -1050
- package/dist/run-CXrEt0TM.mjs +0 -5008
- package/dist/run-CY8Y0JPW.mjs +0 -5287
- package/dist/run-CZCKBcQ-.mjs +0 -5244
- package/dist/run-CZj0sRCs.mjs +0 -1050
- package/dist/run-C_1x2cNU.mjs +0 -5381
- package/dist/run-C_8iOjO1.mjs +0 -5892
- package/dist/run-C_KIew8H.mjs +0 -1051
- package/dist/run-CajRcN3C.mjs +0 -1050
- package/dist/run-CbzXO7fw.mjs +0 -1050
- package/dist/run-CcSr4x2f.mjs +0 -1050
- package/dist/run-CcYaXgCy.mjs +0 -6091
- package/dist/run-CdihMx0V.mjs +0 -1051
- package/dist/run-Cf2Dl_ck.mjs +0 -1051
- package/dist/run-CjH1H4vq.mjs +0 -1050
- package/dist/run-CkbDK6jA.mjs +0 -1051
- package/dist/run-Ckh6JE9F.mjs +0 -1050
- package/dist/run-Ckyg9-fm.mjs +0 -6079
- package/dist/run-CqL3ZWdr.mjs +0 -5381
- package/dist/run-Csj7sJAh.mjs +0 -1050
- package/dist/run-Ct--DWF1.mjs +0 -1051
- package/dist/run-CtJRxaFC.mjs +0 -1051
- package/dist/run-CuIMdkKF.mjs +0 -6099
- package/dist/run-CuckJGM-.mjs +0 -1050
- package/dist/run-CxGAa9MH.mjs +0 -1050
- package/dist/run-CyU4-O-e.mjs +0 -5411
- package/dist/run-CymDyu2b.mjs +0 -5389
- package/dist/run-CzIY4_RE.mjs +0 -6093
- package/dist/run-D0Ha4aWt.mjs +0 -1050
- package/dist/run-D0ow-xms.mjs +0 -5905
- package/dist/run-D1PFrNZB.mjs +0 -6273
- package/dist/run-D2X3jEqg.mjs +0 -1051
- package/dist/run-D39C7Ta3.mjs +0 -1050
- package/dist/run-D3Lqxasl.mjs +0 -1051
- package/dist/run-D3bhRCCb.mjs +0 -1051
- package/dist/run-D5N42sVA.mjs +0 -1050
- package/dist/run-D691XPXy.mjs +0 -6031
- package/dist/run-D7dLDpq3.mjs +0 -5403
- package/dist/run-D8mQ_fL5.mjs +0 -1050
- package/dist/run-DA-YBjNw.mjs +0 -6018
- package/dist/run-DByI8mI0.mjs +0 -1051
- package/dist/run-DCINWip4.mjs +0 -1050
- package/dist/run-DCrZ3vke.mjs +0 -5406
- package/dist/run-DDF-tRbn.mjs +0 -5954
- package/dist/run-DGSgljJE.mjs +0 -5421
- package/dist/run-DGsXW19O.mjs +0 -5541
- package/dist/run-DHrF2xpW.mjs +0 -5776
- package/dist/run-DIB0W42M.mjs +0 -1050
- package/dist/run-DJ4k0WzZ.mjs +0 -1051
- package/dist/run-DMI83W7i.mjs +0 -5434
- package/dist/run-DNX3djCI.mjs +0 -1050
- package/dist/run-DOPaGRT2.mjs +0 -6027
- package/dist/run-DP7KSZqR.mjs +0 -1051
- package/dist/run-DQ0yljWr.mjs +0 -1050
- package/dist/run-DTkldU6a.mjs +0 -1050
- package/dist/run-DU10B3gK.mjs +0 -5728
- package/dist/run-DV86VJNG.mjs +0 -5386
- package/dist/run-DVZGKdKO.mjs +0 -1050
- package/dist/run-DWdtp6VD.mjs +0 -6136
- package/dist/run-DWzA1gZ-.mjs +0 -1050
- package/dist/run-DXJ2M19k.mjs +0 -1050
- package/dist/run-DZOeccNu.mjs +0 -5484
- package/dist/run-D_W5YF0D.mjs +0 -6046
- package/dist/run-DaReJPf8.mjs +0 -1051
- package/dist/run-DaYrEeQ9.mjs +0 -5400
- package/dist/run-DbC9-WM4.mjs +0 -1050
- package/dist/run-Dd9XkswU.mjs +0 -1051
- package/dist/run-De-wkVl3.mjs +0 -5487
- package/dist/run-DfU2luyX.mjs +0 -1050
- package/dist/run-Dfl3Ze2L.mjs +0 -5541
- package/dist/run-DfuHUDIJ.mjs +0 -1051
- package/dist/run-DfwfyFqj.mjs +0 -5975
- package/dist/run-DgUDGHZy.mjs +0 -1051
- package/dist/run-Dge2K7h1.mjs +0 -1050
- package/dist/run-Di3I0USw.mjs +0 -1050
- package/dist/run-Dm3U4FB5.mjs +0 -6018
- package/dist/run-Du0YOs48.mjs +0 -5446
- package/dist/run-DuaIQAE4.mjs +0 -5392
- package/dist/run-Dwm19YhI.mjs +0 -1050
- package/dist/run-DxM7xaBa.mjs +0 -1050
- package/dist/run-DysN-cGm.mjs +0 -1050
- package/dist/run-DzXohf8-.mjs +0 -1051
- package/dist/run-E_MwVOtN.mjs +0 -5272
- package/dist/run-FPoL2-FD.mjs +0 -5381
- package/dist/run-HU4XjZfs.mjs +0 -6023
- package/dist/run-HhiYlJuS.mjs +0 -5414
- package/dist/run-JXLlRLFb.mjs +0 -1050
- package/dist/run-K-_jahIg.mjs +0 -1051
- package/dist/run-K_S7pfZ-.mjs +0 -1050
- package/dist/run-LDiT4WF-.mjs +0 -1050
- package/dist/run-NToLJWx-.mjs +0 -5442
- package/dist/run-RBufRqbs.mjs +0 -1050
- package/dist/run-YFYpyThQ.mjs +0 -1051
- package/dist/run-YG1Pb9dY.mjs +0 -5385
- package/dist/run-ZDa17iLg.mjs +0 -6060
- package/dist/run-ZN0qMdS_.mjs +0 -1051
- package/dist/run-azpFWM6w.mjs +0 -1050
- package/dist/run-coIDvBK_.mjs +0 -6127
- package/dist/run-jLp4pbTE.mjs +0 -1050
- package/dist/run-m3oAuSg0.mjs +0 -1050
- package/dist/run-r9CAcL_U.mjs +0 -5403
- package/dist/run-v32uF2bP.mjs +0 -5378
- package/dist/run-vTsskoZc.mjs +0 -5340
- package/dist/run-vt26p5D7.mjs +0 -1050
- package/dist/run-vvQiCHpi.mjs +0 -5427
- package/dist/run-w-HVv5py.mjs +0 -5410
- package/dist/run-wpUutZ9C.mjs +0 -1051
- package/dist/run-yTjJ7noq.mjs +0 -1051
- package/dist/run-zo5GSoVC.mjs +0 -1050
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as stopDaemon, s as startDaemon, d as daemonStatus } from './run-
|
|
1
|
+
import { b as stopDaemon, s as startDaemon, d as daemonStatus } from './run-BnnUavlu.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -106,14 +106,14 @@ async function main() {
|
|
|
106
106
|
} else if (subcommand === "skills") {
|
|
107
107
|
await handleSkillsCommand();
|
|
108
108
|
} else if (subcommand === "service" || subcommand === "svc") {
|
|
109
|
-
const { handleServiceCommand } = await import('./commands-
|
|
109
|
+
const { handleServiceCommand } = await import('./commands-DwY2B7KW.mjs').then(function (n) { return n.c; });
|
|
110
110
|
await handleServiceCommand();
|
|
111
111
|
} else if (subcommand === "--help" || subcommand === "-h") {
|
|
112
112
|
printHelp();
|
|
113
113
|
} else if (!subcommand || subcommand === "start") {
|
|
114
114
|
await handleInteractiveCommand();
|
|
115
115
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
116
|
-
const pkg = await import('./package-
|
|
116
|
+
const pkg = await import('./package-D7EUXtnk.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
117
117
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
118
118
|
} else {
|
|
119
119
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -122,7 +122,7 @@ async function main() {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
async function handleInteractiveCommand() {
|
|
125
|
-
const { runInteractive } = await import('./run-
|
|
125
|
+
const { runInteractive } = await import('./run-Bw6aGHLA.mjs');
|
|
126
126
|
const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
|
|
127
127
|
let directory = process.cwd();
|
|
128
128
|
let resumeSessionId;
|
|
@@ -167,7 +167,7 @@ async function handleAgentCommand() {
|
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
169
|
if (agentArgs[0] === "list") {
|
|
170
|
-
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-
|
|
170
|
+
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-BnnUavlu.mjs').then(function (n) { return n.i; });
|
|
171
171
|
console.log("Known agents:");
|
|
172
172
|
for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
|
|
173
173
|
console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
|
|
@@ -179,7 +179,7 @@ async function handleAgentCommand() {
|
|
|
179
179
|
console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
|
-
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-
|
|
182
|
+
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-BnnUavlu.mjs').then(function (n) { return n.i; });
|
|
183
183
|
let cwd = process.cwd();
|
|
184
184
|
const filteredArgs = [];
|
|
185
185
|
for (let i = 0; i < agentArgs.length; i++) {
|
|
@@ -203,12 +203,12 @@ async function handleAgentCommand() {
|
|
|
203
203
|
console.log(`Starting ${config.agentName} agent in ${cwd}...`);
|
|
204
204
|
let backend;
|
|
205
205
|
if (KNOWN_MCP_AGENTS[config.agentName]) {
|
|
206
|
-
const { CodexMcpBackend } = await import('./run-
|
|
206
|
+
const { CodexMcpBackend } = await import('./run-BnnUavlu.mjs').then(function (n) { return n.j; });
|
|
207
207
|
backend = new CodexMcpBackend({ cwd, log: logFn });
|
|
208
208
|
} else {
|
|
209
|
-
const { AcpBackend } = await import('./run-
|
|
210
|
-
const { GeminiTransport } = await import('./run-
|
|
211
|
-
const { DefaultTransport } = await import('./run-
|
|
209
|
+
const { AcpBackend } = await import('./run-BnnUavlu.mjs').then(function (n) { return n.h; });
|
|
210
|
+
const { GeminiTransport } = await import('./run-BnnUavlu.mjs').then(function (n) { return n.G; });
|
|
211
|
+
const { DefaultTransport } = await import('./run-BnnUavlu.mjs').then(function (n) { return n.D; });
|
|
212
212
|
const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
|
|
213
213
|
backend = new AcpBackend({
|
|
214
214
|
agentName: config.agentName,
|
|
@@ -326,7 +326,7 @@ async function handleSessionCommand() {
|
|
|
326
326
|
printSessionHelp();
|
|
327
327
|
return;
|
|
328
328
|
}
|
|
329
|
-
const { sessionList, sessionSpawn, sessionStop, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionRalphStart, sessionRalphCancel, sessionRalphStatus, sessionQueueAdd, sessionQueueList, sessionQueueClear } = await import('./commands-
|
|
329
|
+
const { sessionList, sessionSpawn, sessionStop, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionRalphStart, sessionRalphCancel, sessionRalphStatus, sessionQueueAdd, sessionQueueList, sessionQueueClear } = await import('./commands-CI_BVphs.mjs');
|
|
330
330
|
const parseFlagStr = (flag, shortFlag) => {
|
|
331
331
|
for (let i = 1; i < sessionArgs.length; i++) {
|
|
332
332
|
if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
|
|
@@ -386,7 +386,7 @@ async function handleSessionCommand() {
|
|
|
386
386
|
allowDomain.push(sessionArgs[++i]);
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
const { parseShareArg } = await import('./commands-
|
|
389
|
+
const { parseShareArg } = await import('./commands-CI_BVphs.mjs');
|
|
390
390
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
391
391
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
392
392
|
message,
|
|
@@ -470,7 +470,7 @@ async function handleSessionCommand() {
|
|
|
470
470
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
471
471
|
process.exit(1);
|
|
472
472
|
}
|
|
473
|
-
const { sessionApprove } = await import('./commands-
|
|
473
|
+
const { sessionApprove } = await import('./commands-CI_BVphs.mjs');
|
|
474
474
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
475
475
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
476
476
|
json: hasFlag("--json")
|
|
@@ -480,20 +480,23 @@ async function handleSessionCommand() {
|
|
|
480
480
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
481
481
|
process.exit(1);
|
|
482
482
|
}
|
|
483
|
-
const { sessionDeny } = await import('./commands-
|
|
483
|
+
const { sessionDeny } = await import('./commands-CI_BVphs.mjs');
|
|
484
484
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
485
485
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
486
486
|
json: hasFlag("--json")
|
|
487
487
|
});
|
|
488
488
|
} else if (sessionSubcommand === "ralph-start" || sessionSubcommand === "ralph") {
|
|
489
489
|
if (!sessionArgs[1] || !sessionArgs[2]) {
|
|
490
|
-
console.error('Usage: svamp session ralph-start <session-id> "<task>" [--completion-promise TEXT] [--max-iterations N] [--cooldown N]');
|
|
490
|
+
console.error('Usage: svamp session ralph-start <session-id> "<task>" [--context-mode fresh|continue] [--completion-promise TEXT] [--max-iterations N] [--cooldown N]');
|
|
491
491
|
process.exit(1);
|
|
492
492
|
}
|
|
493
|
+
const contextModeStr = parseFlagStr("--context-mode") || parseFlagStr("--mode");
|
|
494
|
+
const contextMode = contextModeStr === "fresh" || contextModeStr === "continue" ? contextModeStr : void 0;
|
|
493
495
|
await sessionRalphStart(sessionArgs[1], sessionArgs[2], targetMachineId, {
|
|
494
496
|
completionPromise: parseFlagStr("--completion-promise"),
|
|
495
497
|
maxIterations: parseFlagInt("--max-iterations"),
|
|
496
|
-
cooldownSeconds: parseFlagInt("--cooldown")
|
|
498
|
+
cooldownSeconds: parseFlagInt("--cooldown"),
|
|
499
|
+
contextMode
|
|
497
500
|
});
|
|
498
501
|
} else if (sessionSubcommand === "ralph-cancel") {
|
|
499
502
|
if (!sessionArgs[1]) {
|
|
@@ -546,7 +549,7 @@ async function handleMachineCommand() {
|
|
|
546
549
|
return;
|
|
547
550
|
}
|
|
548
551
|
if (machineSubcommand === "share") {
|
|
549
|
-
const { machineShare } = await import('./commands-
|
|
552
|
+
const { machineShare } = await import('./commands-CI_BVphs.mjs');
|
|
550
553
|
let machineId;
|
|
551
554
|
const shareArgs = [];
|
|
552
555
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -576,7 +579,7 @@ async function handleMachineCommand() {
|
|
|
576
579
|
}
|
|
577
580
|
await machineShare(machineId, { add, remove, list, configPath, showConfig });
|
|
578
581
|
} else if (machineSubcommand === "exec") {
|
|
579
|
-
const { machineExec } = await import('./commands-
|
|
582
|
+
const { machineExec } = await import('./commands-CI_BVphs.mjs');
|
|
580
583
|
let machineId;
|
|
581
584
|
let cwd;
|
|
582
585
|
const cmdParts = [];
|
|
@@ -596,7 +599,7 @@ async function handleMachineCommand() {
|
|
|
596
599
|
}
|
|
597
600
|
await machineExec(machineId, command, cwd);
|
|
598
601
|
} else if (machineSubcommand === "info") {
|
|
599
|
-
const { machineInfo } = await import('./commands-
|
|
602
|
+
const { machineInfo } = await import('./commands-CI_BVphs.mjs');
|
|
600
603
|
let machineId;
|
|
601
604
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
602
605
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -605,7 +608,7 @@ async function handleMachineCommand() {
|
|
|
605
608
|
}
|
|
606
609
|
await machineInfo(machineId);
|
|
607
610
|
} else if (machineSubcommand === "ls") {
|
|
608
|
-
const { machineLs } = await import('./commands-
|
|
611
|
+
const { machineLs } = await import('./commands-CI_BVphs.mjs');
|
|
609
612
|
let machineId;
|
|
610
613
|
let showHidden = false;
|
|
611
614
|
let path;
|
|
@@ -1154,7 +1157,7 @@ Attach commands:
|
|
|
1154
1157
|
/info Show session status
|
|
1155
1158
|
|
|
1156
1159
|
Ralph Loop (iterative task automation):
|
|
1157
|
-
svamp session ralph-start <id> "<task>" [--completion-promise TEXT] [--max-iterations N] [--cooldown N]
|
|
1160
|
+
svamp session ralph-start <id> "<task>" [--context-mode fresh|continue] [--completion-promise TEXT] [--max-iterations N] [--cooldown N]
|
|
1158
1161
|
svamp session ralph-cancel <id>
|
|
1159
1162
|
svamp session ralph-status <id>
|
|
1160
1163
|
(alias: svamp session ralph <id> "<task>" ...)
|
|
@@ -1185,7 +1188,7 @@ Examples:
|
|
|
1185
1188
|
svamp session spawn claude -d /tmp/proj --share alice@example.com:admin
|
|
1186
1189
|
|
|
1187
1190
|
# Ralph Loop
|
|
1188
|
-
svamp session ralph-start abc1 "Fix all linting errors" --max-iterations 10
|
|
1191
|
+
svamp session ralph-start abc1 "Fix all linting errors" --context-mode fresh --max-iterations 10
|
|
1189
1192
|
`);
|
|
1190
1193
|
}
|
|
1191
1194
|
function printMachineHelp() {
|
|
@@ -2,7 +2,7 @@ import { existsSync, readFileSync } from 'node:fs';
|
|
|
2
2
|
import { execSync } from 'node:child_process';
|
|
3
3
|
import { resolve, join } from 'node:path';
|
|
4
4
|
import os from 'node:os';
|
|
5
|
-
import { l as loadSecurityContextConfig, e as resolveSecurityContext, f as buildSecurityContextFromFlags, m as mergeSecurityContexts, c as connectToHypha } from './run-
|
|
5
|
+
import { l as loadSecurityContextConfig, e as resolveSecurityContext, f as buildSecurityContextFromFlags, m as mergeSecurityContexts, c as connectToHypha } from './run-eYBOEaWw.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -958,7 +958,8 @@ async function sessionInfo(sessionId, machineId, opts) {
|
|
|
958
958
|
sessionLink: metadata.sessionLink?.url || void 0,
|
|
959
959
|
tags: metadata.tags?.length ? metadata.tags : void 0,
|
|
960
960
|
parentSessionId: metadata.parentSessionId || void 0,
|
|
961
|
-
pendingPermissions: pendingPermissions.length > 0 ? pendingPermissions : void 0
|
|
961
|
+
pendingPermissions: pendingPermissions.length > 0 ? pendingPermissions : void 0,
|
|
962
|
+
ralphLoop: metadata.ralphLoop || void 0
|
|
962
963
|
};
|
|
963
964
|
if (opts?.json) {
|
|
964
965
|
console.log(formatJson(statusData));
|
|
@@ -1606,18 +1607,21 @@ async function sessionRalphStart(sessionIdPartial, task, machineId, opts) {
|
|
|
1606
1607
|
const completionPromise = opts?.completionPromise || "DONE";
|
|
1607
1608
|
const maxIterations = opts?.maxIterations ?? 0;
|
|
1608
1609
|
const cooldownSeconds = opts?.cooldownSeconds ?? 1;
|
|
1610
|
+
const contextMode = opts?.contextMode || void 0;
|
|
1609
1611
|
await svc.updateConfig({
|
|
1610
1612
|
ralph_loop: {
|
|
1611
1613
|
task,
|
|
1612
1614
|
completion_promise: completionPromise,
|
|
1613
1615
|
max_iterations: maxIterations,
|
|
1614
|
-
cooldown_seconds: cooldownSeconds
|
|
1616
|
+
cooldown_seconds: cooldownSeconds,
|
|
1617
|
+
...contextMode ? { context_mode: contextMode } : {}
|
|
1615
1618
|
}
|
|
1616
1619
|
});
|
|
1617
1620
|
console.log(`Ralph loop started on session ${fullId.slice(0, 8)}`);
|
|
1618
1621
|
console.log(` Task: ${task.slice(0, 100)}${task.length > 100 ? "..." : ""}`);
|
|
1619
1622
|
console.log(` Completion promise: ${completionPromise}`);
|
|
1620
1623
|
console.log(` Max iterations: ${maxIterations > 0 ? maxIterations : "unlimited"}`);
|
|
1624
|
+
if (contextMode) console.log(` Context mode: ${contextMode}`);
|
|
1621
1625
|
} finally {
|
|
1622
1626
|
await server.disconnect();
|
|
1623
1627
|
}
|
|
@@ -2,7 +2,7 @@ import { existsSync, readFileSync } from 'node:fs';
|
|
|
2
2
|
import { execSync } from 'node:child_process';
|
|
3
3
|
import { resolve, join } from 'node:path';
|
|
4
4
|
import os from 'node:os';
|
|
5
|
-
import { l as loadSecurityContextConfig, e as resolveSecurityContext, f as buildSecurityContextFromFlags, m as mergeSecurityContexts, c as connectToHypha } from './run-
|
|
5
|
+
import { l as loadSecurityContextConfig, e as resolveSecurityContext, f as buildSecurityContextFromFlags, m as mergeSecurityContexts, c as connectToHypha } from './run-BnnUavlu.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -958,7 +958,8 @@ async function sessionInfo(sessionId, machineId, opts) {
|
|
|
958
958
|
sessionLink: metadata.sessionLink?.url || void 0,
|
|
959
959
|
tags: metadata.tags?.length ? metadata.tags : void 0,
|
|
960
960
|
parentSessionId: metadata.parentSessionId || void 0,
|
|
961
|
-
pendingPermissions: pendingPermissions.length > 0 ? pendingPermissions : void 0
|
|
961
|
+
pendingPermissions: pendingPermissions.length > 0 ? pendingPermissions : void 0,
|
|
962
|
+
ralphLoop: metadata.ralphLoop || void 0
|
|
962
963
|
};
|
|
963
964
|
if (opts?.json) {
|
|
964
965
|
console.log(formatJson(statusData));
|
|
@@ -1606,18 +1607,21 @@ async function sessionRalphStart(sessionIdPartial, task, machineId, opts) {
|
|
|
1606
1607
|
const completionPromise = opts?.completionPromise || "DONE";
|
|
1607
1608
|
const maxIterations = opts?.maxIterations ?? 0;
|
|
1608
1609
|
const cooldownSeconds = opts?.cooldownSeconds ?? 1;
|
|
1610
|
+
const contextMode = opts?.contextMode || void 0;
|
|
1609
1611
|
await svc.updateConfig({
|
|
1610
1612
|
ralph_loop: {
|
|
1611
1613
|
task,
|
|
1612
1614
|
completion_promise: completionPromise,
|
|
1613
1615
|
max_iterations: maxIterations,
|
|
1614
|
-
cooldown_seconds: cooldownSeconds
|
|
1616
|
+
cooldown_seconds: cooldownSeconds,
|
|
1617
|
+
...contextMode ? { context_mode: contextMode } : {}
|
|
1615
1618
|
}
|
|
1616
1619
|
});
|
|
1617
1620
|
console.log(`Ralph loop started on session ${fullId.slice(0, 8)}`);
|
|
1618
1621
|
console.log(` Task: ${task.slice(0, 100)}${task.length > 100 ? "..." : ""}`);
|
|
1619
1622
|
console.log(` Completion promise: ${completionPromise}`);
|
|
1620
1623
|
console.log(` Max iterations: ${maxIterations > 0 ? maxIterations : "unlimited"}`);
|
|
1624
|
+
if (contextMode) console.log(` Context mode: ${contextMode}`);
|
|
1621
1625
|
} finally {
|
|
1622
1626
|
await server.disconnect();
|
|
1623
1627
|
}
|
|
@@ -2,7 +2,7 @@ import { existsSync, readFileSync } from 'node:fs';
|
|
|
2
2
|
import { execSync } from 'node:child_process';
|
|
3
3
|
import { resolve, join } from 'node:path';
|
|
4
4
|
import os from 'node:os';
|
|
5
|
-
import { l as loadSecurityContextConfig, e as resolveSecurityContext, f as buildSecurityContextFromFlags, m as mergeSecurityContexts, c as connectToHypha } from './run-
|
|
5
|
+
import { l as loadSecurityContextConfig, e as resolveSecurityContext, f as buildSecurityContextFromFlags, m as mergeSecurityContexts, c as connectToHypha } from './run-DxISzP_V.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -958,7 +958,8 @@ async function sessionInfo(sessionId, machineId, opts) {
|
|
|
958
958
|
sessionLink: metadata.sessionLink?.url || void 0,
|
|
959
959
|
tags: metadata.tags?.length ? metadata.tags : void 0,
|
|
960
960
|
parentSessionId: metadata.parentSessionId || void 0,
|
|
961
|
-
pendingPermissions: pendingPermissions.length > 0 ? pendingPermissions : void 0
|
|
961
|
+
pendingPermissions: pendingPermissions.length > 0 ? pendingPermissions : void 0,
|
|
962
|
+
ralphLoop: metadata.ralphLoop || void 0
|
|
962
963
|
};
|
|
963
964
|
if (opts?.json) {
|
|
964
965
|
console.log(formatJson(statusData));
|
|
@@ -1606,18 +1607,21 @@ async function sessionRalphStart(sessionIdPartial, task, machineId, opts) {
|
|
|
1606
1607
|
const completionPromise = opts?.completionPromise || "DONE";
|
|
1607
1608
|
const maxIterations = opts?.maxIterations ?? 0;
|
|
1608
1609
|
const cooldownSeconds = opts?.cooldownSeconds ?? 1;
|
|
1610
|
+
const contextMode = opts?.contextMode || void 0;
|
|
1609
1611
|
await svc.updateConfig({
|
|
1610
1612
|
ralph_loop: {
|
|
1611
1613
|
task,
|
|
1612
1614
|
completion_promise: completionPromise,
|
|
1613
1615
|
max_iterations: maxIterations,
|
|
1614
|
-
cooldown_seconds: cooldownSeconds
|
|
1616
|
+
cooldown_seconds: cooldownSeconds,
|
|
1617
|
+
...contextMode ? { context_mode: contextMode } : {}
|
|
1615
1618
|
}
|
|
1616
1619
|
});
|
|
1617
1620
|
console.log(`Ralph loop started on session ${fullId.slice(0, 8)}`);
|
|
1618
1621
|
console.log(` Task: ${task.slice(0, 100)}${task.length > 100 ? "..." : ""}`);
|
|
1619
1622
|
console.log(` Completion promise: ${completionPromise}`);
|
|
1620
1623
|
console.log(` Max iterations: ${maxIterations > 0 ? maxIterations : "unlimited"}`);
|
|
1624
|
+
if (contextMode) console.log(` Context mode: ${contextMode}`);
|
|
1621
1625
|
} finally {
|
|
1622
1626
|
await server.disconnect();
|
|
1623
1627
|
}
|