feat(core): add default agent plugin

This commit is contained in:
Dax Raad 2026-05-30 00:49:20 -04:00
commit f6062bd5b6
5 changed files with 239 additions and 13 deletions

View file

@ -12,10 +12,9 @@ export const Plugin = PluginV2.define({
effect: Effect.gen(function* () {
const agent = yield* AgentV2.Service
const config = yield* Config.Service
const transform = yield* agent.transform()
const files = yield* config.get()
yield* transform((editor) => {
yield* agent.update((editor) => {
const permissions = new Map<AgentV2.ID, PermissionV2.Ruleset>()
for (const file of files) {