opencode/packages/plugin/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
..
v2 feat(core): tool execute hooks, session instructions, synthetic endpoint 2026-07-01 20:50:10 -04:00
example-workspace.ts feat(core): expose workspace adaptors to plugins (#21927) 2026-04-13 13:33:13 -04:00
example.ts feat(plugin): support plugin-provided tools (#34619) 2026-06-30 13:18:56 -04:00
index.ts feat(core): update Copilot for token-based billing (#30181) 2026-06-01 14:55:23 -05:00
shell.ts re-export shell $ for plugin 2025-08-04 23:20:04 -04:00
tool.ts fix(plugin): ask in tools from plugins returns promise instead of effect (#28217) 2026-05-18 18:57:29 +00:00
tui.ts fix: stabilize v2 runtime behavior 2026-06-26 20:56:36 -04:00