|
2 | 2 | * Install Commands |
3 | 3 | */ |
4 | 4 |
|
5 | | -import { Args, Command, Options, Prompt } from "@effect/cli"; |
| 5 | +import { Command, Options, Prompt } from "@effect/cli"; |
6 | 6 | import { FileSystem } from "@effect/platform"; |
7 | 7 | import { Console, Effect, Option } from "effect"; |
8 | 8 | import path from "node:path"; |
9 | 9 | import { Display } from "../services/display/index.js"; |
10 | 10 | import { Install, InstalledRule } from "../services/install/index.js"; |
11 | 11 | import { colorize } from "../utils.js"; |
12 | | -import { DisabledFeatureError, UnsupportedToolError } from "../errors.js"; |
| 12 | +import { UnsupportedToolError } from "../errors.js"; |
13 | 13 |
|
14 | 14 | /** |
15 | 15 | * install:add - Add rules to AI tool configuration |
16 | 16 | */ |
17 | 17 | export const installAddCommand = Command.make("add", { |
18 | 18 | options: { |
19 | 19 | tool: Options.text("tool").pipe( |
20 | | - Options.withDescription("The AI tool to add rules for (cursor, agents, etc.)") |
| 20 | + Options.withDescription("The AI tool to install rules for (cursor, agents, vscode, windsurf)") |
21 | 21 | ), |
22 | 22 | skillLevel: Options.optional( |
23 | 23 | Options.text("skill-level").pipe( |
@@ -146,56 +146,6 @@ export const installAddCommand = Command.make("add", { |
146 | 146 | ) |
147 | 147 | ); |
148 | 148 |
|
149 | | -/** |
150 | | - * install:remove - Remove installed rules |
151 | | - */ |
152 | | -export const installRemoveCommand = Command.make("remove", { |
153 | | - args: { |
154 | | - ruleId: Args.optional(Args.text({ name: "rule-id" })) |
155 | | - } |
156 | | -}).pipe( |
157 | | - Command.withDescription("Temporarily disabled until server-backed tool config installation is implemented."), |
158 | | - Command.withHandler(({ args }) => |
159 | | - Effect.gen(function* () { |
160 | | - yield* Display.showError( |
161 | | - "The install remove workflow is disabled for launch because tool-file injection is not implemented yet." |
162 | | - ); |
163 | | - yield* Display.showInfo( |
164 | | - "Re-enable 'install remove' after server-backed injection and uninstall support is implemented." |
165 | | - ); |
166 | | - return yield* Effect.fail(new DisabledFeatureError({ |
167 | | - feature: "install remove", |
168 | | - reason: "Tool-file injection is not implemented yet", |
169 | | - })); |
170 | | - }) |
171 | | - ) |
172 | | -); |
173 | | - |
174 | | -/** |
175 | | - * install:diff - Compare installed rule with latest |
176 | | - */ |
177 | | -export const installDiffCommand = Command.make("diff", { |
178 | | - args: { |
179 | | - ruleId: Args.text({ name: "rule-id" }) |
180 | | - } |
181 | | -}).pipe( |
182 | | - Command.withDescription("Temporarily disabled until server-backed tool config installation is implemented."), |
183 | | - Command.withHandler(({ args }) => |
184 | | - Effect.gen(function* () { |
185 | | - yield* Display.showError( |
186 | | - "The install diff workflow is disabled for launch because tool-file injection is not implemented yet." |
187 | | - ); |
188 | | - yield* Display.showInfo( |
189 | | - "Re-enable 'install diff' after server-backed source of truth and file-level diffing are implemented." |
190 | | - ); |
191 | | - return yield* Effect.fail(new DisabledFeatureError({ |
192 | | - feature: "install diff", |
193 | | - reason: "Server-backed source of truth and file-level diffing are not implemented yet", |
194 | | - })); |
195 | | - }) |
196 | | - ) |
197 | | -); |
198 | | - |
199 | 149 | /** |
200 | 150 | * Display installed rules or message if none exist |
201 | 151 | */ |
|
0 commit comments