opencode/packages/server/src
Dax Raad d972aa9d83 feat(core): tool execute hooks, session instructions, synthetic endpoint
- V2 tool execute hooks: add `ctx.tool.execute.before/after` plugin API,
  core ToolHooks service, and registry wiring so hosted/local tool calls
  run registered before/after hooks; provider-executed calls are excluded.
- Session synthetic endpoint: add `POST /api/session/:sessionID/synthetic`
  with text/description/metadata plus regenerated Promise/Effect/JS client
  surfaces.
- SessionInstructions service: read tool discovers nearby AGENTS.md walking
  up to the Location root (exclusive) and injects them as durable synthetic
  instructions, with lazy history dedup of prior claims.
- to-llm-message: stop forwarding synthetic message metadata to the model so
  bookkeeping annotations stay model-hidden.
- schema changelog entry for synthetic metadata and the metadata leak fix.
2026-07-01 20:50:10 -04:00
..
handlers feat(core): tool execute hooks, session instructions, synthetic endpoint 2026-07-01 20:50:10 -04:00
middleware chore: merge dev into v2 (#34317) 2026-06-28 11:30:38 -04:00
api.ts refactor(protocol): extract server contracts (#33708) 2026-06-24 22:15:31 -04:00
auth.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
cors.ts refactor(core): canonicalize pty service (#32182) 2026-06-14 12:46:39 +02:00
handlers.ts feat(core): add plugin list endpoint 2026-07-01 00:53:53 -04:00
location.ts chore: merge dev into v2 (#34317) 2026-06-28 11:30:38 -04:00
pty-environment.ts chore: merge dev into v2 (#34317) 2026-06-28 11:30:38 -04:00
routes.ts fix(server): restore provider node deps after dev merge 2026-07-01 18:39:43 -04:00