feat(core): add default agent plugin
This commit is contained in:
parent
181e58f50a
commit
f6062bd5b6
5 changed files with 239 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue