@0xdevabir/enhance 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1377,13 +1377,14 @@ program.name("enhance").description("AI prompt middleware \u2014 upgrades vague
|
|
|
1377
1377
|
program.command("setup").description("Install the /enhance slash command for Claude Code, OpenCode, and Codex CLI").option("--force", "Overwrite existing installations").option("--all", "Install for all supported tools even if not detected in PATH").action(async (opts) => {
|
|
1378
1378
|
await runSetup(opts);
|
|
1379
1379
|
});
|
|
1380
|
-
program.
|
|
1380
|
+
program.argument("[prompt]", "Prompt to enhance and send to AI").addHelpText("after", `
|
|
1381
1381
|
Examples:
|
|
1382
1382
|
enhance "build a login page"
|
|
1383
1383
|
enhance "fix the auth bug" --dry-run
|
|
1384
1384
|
enhance "create dashboard" --confirm --verbose
|
|
1385
1385
|
enhance "refactor user service" --provider codex
|
|
1386
|
-
enhance "add auth" --action add --feature auth
|
|
1386
|
+
enhance "add auth" --action add --feature auth
|
|
1387
|
+
enhance "add payments" --iteration 1`).option("-p, --provider <name>", "AI provider: claude | codex | opencode").option("--dry-run", "Print enhanced prompt without sending to AI").option("--print-prompt", "Print enhanced prompt before sending to AI").option("--preview", "Color-coded prompt preview with per-section token counts").option("--verbose", "Show detected stack, intent, and context stats").option("--confirm", "Show detected intent and ask for approval before enhancing").option("--plan", "Decompose complex task into sequential sub-prompts (uses AI)").option("--iteration <n>", "Angle iteration: 0=completeness, 1=production, 2=dx, 3=alternative", "0").option("--action <action>", "Override detected action (create|fix|refactor|explain|add|delete)").option("--entity <entity>", "Override detected entity (page|component|api|hook|util|config|style)").option("--feature <feature>", "Override detected feature (auth|payment|user|upload|...)").action(async (rawPrompt, opts) => {
|
|
1387
1388
|
if (!rawPrompt) {
|
|
1388
1389
|
program.help();
|
|
1389
1390
|
return;
|