139 Commits

Author SHA1 Message Date
0xmrpeter
c112cafa13 chore: bump version to 2026.408.4
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 23:39:19 +07:00
0xmrpeter
6b2bb29864 chore: bump version to 2026.408.3
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 17:10:16 +07:00
0xmrpeter
7835713c77 chore: bump version to 2026.408.2
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 16:31:51 +07:00
0xmrpeter
33503182b4 release: 2026.408.1 2026-04-08 00:58:50 +07:00
0xmrpeter
44b658e3db chore: bump version to 2026.407.1
fix(tests): update force_reply assertions to match removed selective flag

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 16:49:42 +07:00
0xmrpeter
aa5f25b974 chore: bump version to 2026.406.5 2026-04-06 19:17:36 +07:00
0xmrpeter
30b868995b chore: bump version to 2026.406.4 2026-04-06 18:39:09 +07:00
0xmrpeter
93d85742a1 chore: bump version to 2026.406.3 2026-04-06 17:16:33 +07:00
0xmrpeter
4495fdbf0b chore: bump version to 2026.406.2 2026-04-06 16:47:47 +07:00
0xmrpeter
65fbf5469f chore: bump version to 2026.406.1 2026-04-06 01:15:23 +07:00
0xmrpeter
e0a4ebbc72 chore: bump version to 2026.405.2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 00:11:49 +07:00
0xmrpeter
897b73354f chore: bump version to 2026.405.1
Also fix api-server test mock missing agentCatalog.load() method.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 23:11:01 +07:00
0xmrpeter
48250b7263 fix: comprehensive security hardening and reliability improvements
Address 23 issues found during full codebase review:

Security (Critical):
- Replace hand-rolled HTML sanitizer with sanitize-html library (allowlist approach)
- Fix shell injection in plugin installer (exec → execFile with array args)
- Add zip pre-extraction validation to prevent path traversal
- Block prototype pollution in config deepMerge
- Add redirect limit (max 10) and fix command injection in install-binary
- Fix token store silently swallowing save errors (revocations could be lost)

Process & Data Integrity:
- Fix cancelSession not destroying agent subprocess (process leak)
- Fix failed session registered but never cleaned up
- Fix session-store cleanup crash on null lastActiveAt
- Make config save() atomic (write-to-temp-then-rename)

Reliability:
- Isolate EventBus listener errors (one bad listener no longer breaks all)
- Fix multi-bridge relay duplicating events N times
- Fix PromptQueue abort race breaking serial execution guarantee
- Fix CommandRegistry.unregister deleting wrong plugin's command
- Add MessageTransformer session cache cleanup on disconnect
- Add TypedEmitter max buffer size (10000) to prevent unbounded growth
- Fix Draft flush() race condition losing buffer content
- Fix nodeToWebWritable event listener leak on backpressure
- Auto-cleanup exited terminals after 30s grace period
- Fix TerminalManager waitForExit TOCTOU race
- Clean up PluginContext menu items and assistant sections on plugin unload
- Only trust X-Forwarded-For for rate limiting when behind proxy
- Fix workspace cache eviction deleting all entries instead of stale ones
- Delete legacy displayVerbosity key during config migration

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 16:54:47 +07:00
0xmrpeter
91ad6c7c81 chore: bump version to 2026.404.2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 01:36:24 +07:00
0xmrpeter
0b17f88285 chore: bump version to 2026.404.1
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 01:03:38 +07:00
0xmrpeter
89c67176bc chore: bump version to 2026.403.8
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 19:06:30 +07:00
0xmrpeter
5818dbfdae chore: bump version to 2026.403.7
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 16:35:08 +07:00
0xmrpeter
a6cf76f15e chore: bump version to 2026.403.6
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 15:51:51 +07:00
0xmrpeter
ef9c6eabae chore: bump version to 2026.403.5
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 14:44:10 +07:00
0xmrpeter
7b2f0f78c1 chore: bump version to 2026.403.4
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 14:41:41 +07:00
0xmrpeter
aaf82863bb chore: bump version to 2026.403.3
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 14:15:47 +07:00
0xmrpeter
07daa1d432 chore: add ignore package for .openacpignore support 2026-04-03 12:14:23 +07:00
0xmrpeter
cb7e587382 chore: bump version to 2026.403.2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 10:58:07 +07:00
0xmrpeter
e359613e07 chore: bump version to 2026.403.1
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 10:05:25 +07:00
0xmrpeter
6743e10af3 chore: bump version to 2026.402.5
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 21:50:44 +07:00
0xmrpeter
71270591b4 chore: remove @fastify/cors dependency
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 19:02:37 +07:00
0xmrpeter
013fe12e19 chore: bump version to 2026.402.4
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 17:42:19 +07:00
0xmrpeter
dbc4d3fbfc chore: bump version to 2026.402.3
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 17:11:38 +07:00
0xmrpeter
bcaa61b969 chore: remove unused dependencies from package.json and pnpm-lock.yaml
- Deleted '@inquirer/prompts', 'p-queue', and 'shiki' from both package.json and pnpm-lock.yaml to streamline the project and reduce bloat.
2026-04-02 17:11:08 +07:00
0xmrpeter
b5d24bce5a chore: bump version to 2026.402.2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 16:32:50 +07:00
0xmrpeter
3af41aec5b chore: bump version to 2026.402.1
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 12:56:59 +07:00
0xmrpeter
b794f6976e chore(package): update dev script to use dev-loop.sh for development environment
Replaced the existing TypeScript watch command in the dev script with a call to the new dev-loop.sh script for improved development workflow.
2026-04-02 00:31:45 +07:00
0xmrpeter
303ce10aa9 chore: remove hono dependencies (viewer server merged into API server) 2026-04-01 19:17:24 +07:00
0xmrpeter
86bd6e10bf chore: bump version to 2026.401.7
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 17:26:33 +07:00
0xmrpeter
357f5ac5a1 chore: bump version to 2026.401.6
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 17:05:51 +07:00
0xmrpeter
a1472b28d5 fix: update fastify-type-provider-zod version and improve session error handling
- Changed fastify-type-provider-zod version from ^6.1.0 to ~5.1.0 in package.json and pnpm-lock.yaml for compatibility.
- Enhanced the fail method in the Session class to be idempotent, preventing multiple transitions to the error state.
- Updated tests to reflect the new behavior of the fail method, ensuring it does not throw on repeated calls.
2026-04-01 17:05:21 +07:00
0xmrpeter
4b6231c6ea chore: bump version to 2026.401.5
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 16:30:52 +07:00
0xmrpeter
4ef0e2a382 chore: bump version to 2026.401.4
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 15:56:43 +07:00
0xmrpeter
ff9c6028bb fix: dev-loop, config command, instance-context and startup improvements
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 15:48:43 +07:00
0xmrpeter
1909c179b6 chore: bump version to 2026.401.2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 13:56:46 +07:00
0xmrpeter
998fbf806a chore: bump version to 2026.41.5
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 13:44:29 +07:00
0xmrpeter
a733b1b257 feat: improve config command UX with friendlier messages
- Menu titles now show context: "Choose session mode (current: Code)"
- Success messages: "Mode switched to **Architect**."
- Better errors: "This agent does not support switching modes."
- Already-set check: "Already using **Code**." (no redundant agent call)
- Bypass status: descriptive sentences with emojis
- Already-in-state check: "Bypass is already enabled/disabled."
- Client-side bypass explains why with italic note

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 13:35:47 +07:00
0xmrpeter
e720f84dd0 fix(cli): correct plugin subcommand arg indexing and add local dir install docs
Args were off-by-one (args[2] instead of args[1]) after refactoring
the CLI dispatch. Also added help text for local directory install.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 13:09:32 +07:00
0xmrpeter
8e9f371875 chore: bump version to 2026.41.2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 12:42:01 +07:00
0xmrpeter
dcceb625d0 fix: review fixes + version bump to 2026.41.1
Review fixes:
- Clean up _pendingSkillCommands on session teardown (memory leak)
- Add .catch() to flushPendingSkillCommands (unhandled rejection)
- Extract Session.toAcpStateSnapshot() to DRY persistence logic
- Remove unnecessary `as any` casts on initialSessionResponse
- Add toAcpStateSnapshot mock to test fixtures

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 00:36:45 +07:00
0xmrpeter
6957b524a6 fix: address code review issues (route prefixes, auth, missing endpoints, teardown)
- SSE routes prefix corrected from /sse to /api/v1/sse
- POST /tokens now requires secret token auth instead of admin role
- Added GET /agents/:name endpoint
- Added GET /config/schema endpoint (zod-to-json-schema)
- Added PATCH /sessions/:id for agent switch, voice mode, dangerous mode
- Added --instance flag to remote command for multi-instance support
- Fixed app link to use host= and port= params instead of server=
- SSE adapter teardown now calls adapter.stop() and connectionManager.cleanup()

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 19:32:27 +07:00
0xmrpeter
f29c310d01 chore: add qrcode-terminal for remote access QR code generation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 19:23:00 +07:00
0xmrpeter
c60fde8777 feat(auth): implement JWT sign/verify/refresh with HMAC-SHA256
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 19:07:34 +07:00
0xmrpeter
8289b55ff2 chore: add Fastify dependencies for API server refactor 2026-03-31 18:37:09 +07:00
0xmrpeter
8557407130 chore: bump version to 2026.331.5
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 18:15:56 +07:00