Buckets:
| export * as CommandPlugin from "./command" | |
| import { Effect } from "effect" | |
| import { CommandV2 } from "../command" | |
| import { Location } from "../location" | |
| import { PluginV2 } from "../plugin" | |
| import PROMPT_INITIALIZE from "./command/initialize.txt" | |
| import PROMPT_REVIEW from "./command/review.txt" | |
| export const Plugin = PluginV2.define({ | |
| id: PluginV2.ID.make("command"), | |
| effect: Effect.gen(function* () { | |
| const command = yield* CommandV2.Service | |
| const location = yield* Location.Service | |
| const transform = yield* command.transform() | |
| yield* transform((editor) => { | |
| editor.update("init", (command) => { | |
| command.template = PROMPT_INITIALIZE.replace("${path}", location.project.directory) | |
| command.description = "guided AGENTS.md setup" | |
| }) | |
| editor.update("review", (command) => { | |
| command.template = PROMPT_REVIEW.replace("${path}", location.project.directory) | |
| command.description = "review changes [commit|branch|pr], defaults to uncommitted" | |
| command.subtask = true | |
| }) | |
| }) | |
| }), | |
| }) | |
Xet Storage Details
- Size:
- 1.06 kB
- Xet hash:
- 07584cf7c1e42a41ae344b138f88961d8adf09f5b9249caa89bb34726a31f63f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.