magpie-agent-console 1.1.0 → 1.2.0
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/README.md +19 -2
- package/app/app.css +1 -1
- package/app/app.js +90 -89
- package/daemon/dist/main.js +1224 -150
- package/daemon/dist/main.js.map +1 -1
- package/index.mjs +4 -0
- package/package.json +3 -2
package/index.mjs
CHANGED
|
@@ -266,6 +266,7 @@ function installExitHook() {
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
function createHost(port) {
|
|
269
|
+
const gatePort = port;
|
|
269
270
|
const p = paths();
|
|
270
271
|
const log = makeLogger(p);
|
|
271
272
|
// Gate key: written to session.js; even if leaked it only buys one navigation to the daemon
|
|
@@ -331,6 +332,9 @@ function createHost(port) {
|
|
|
331
332
|
p.dataRoot,
|
|
332
333
|
"--parent-pid",
|
|
333
334
|
String(process.pid),
|
|
335
|
+
// the preview proxy refuses the gate's port
|
|
336
|
+
"--gate-port",
|
|
337
|
+
String(gatePort),
|
|
334
338
|
],
|
|
335
339
|
{
|
|
336
340
|
// The token goes through an environment variable, not the command line (command lines are visible to other users on the machine)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magpie-agent-console",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A Magpie page plugin that drives local Agent CLIs (Claude Code, Codex, Cursor, and others) with a persistent daemon and a structured timeline.",
|
|
5
5
|
"author": "qingnian108",
|
|
6
6
|
"homepage": "https://github.com/qingnian108/magpie-agent-console",
|
|
@@ -63,7 +63,8 @@
|
|
|
63
63
|
"e2e:v1": "node scripts/e2e-v1.mjs",
|
|
64
64
|
"shot:v1": "node scripts/shot-v1.mjs",
|
|
65
65
|
"verify:build": "node scripts/verify-build.mjs",
|
|
66
|
-
"test:real": "vitest run --config vitest.real.config.ts"
|
|
66
|
+
"test:real": "vitest run --config vitest.real.config.ts",
|
|
67
|
+
"test:preview-attack": "node scripts/preview-attack.mjs"
|
|
67
68
|
},
|
|
68
69
|
"engines": {
|
|
69
70
|
"node": ">=20",
|