test(builtin-commands): batch 15 (3 files)
This commit is contained in:
@@ -194,11 +194,11 @@ describe("REMOVE_AI_SLOPS_TEMPLATE", () => {
|
||||
expect(REMOVE_AI_SLOPS_TEMPLATE).toContain("Critical Review")
|
||||
})
|
||||
|
||||
test("should reference ai-slop-remover skill", () => {
|
||||
test("should reference the OMO remove-ai-slops skill", () => {
|
||||
//#given - the template string
|
||||
|
||||
//#when / #then
|
||||
expect(REMOVE_AI_SLOPS_TEMPLATE).toContain("ai-slop-remover")
|
||||
expect(REMOVE_AI_SLOPS_TEMPLATE).toContain("$omo:remove-ai-slops")
|
||||
})
|
||||
|
||||
test("should include safety verification checklist", () => {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import type { CommandDefinition } from "../claude-code-command-loader"
|
||||
import { isAgentRegistered } from "../claude-code-session-state"
|
||||
import type { BuiltinCommandName, BuiltinCommands } from "./types"
|
||||
import { INIT_DEEP_TEMPLATE } from "./templates/init-deep"
|
||||
import { RALPH_LOOP_TEMPLATE, ULW_LOOP_TEMPLATE, CANCEL_RALPH_TEMPLATE } from "./templates/ralph-loop"
|
||||
import { STOP_CONTINUATION_TEMPLATE } from "./templates/stop-continuation"
|
||||
import { REFACTOR_TEMPLATE, REFACTOR_TEAM_MODE_ADDENDUM } from "./templates/refactor"
|
||||
@@ -39,17 +38,6 @@ function createBuiltinCommandDefinitions(
|
||||
)
|
||||
|
||||
return {
|
||||
"init-deep": {
|
||||
description: "(builtin) Initialize hierarchical AGENTS.md knowledge base",
|
||||
template: `<command-instruction>
|
||||
${INIT_DEEP_TEMPLATE}
|
||||
</command-instruction>
|
||||
|
||||
<user-request>
|
||||
$ARGUMENTS
|
||||
</user-request>`,
|
||||
argumentHint: "[--create-new] [--max-depth=N]",
|
||||
},
|
||||
"ralph-loop": {
|
||||
description: "(builtin) Start self-referential development loop until completion",
|
||||
template: `<command-instruction>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { CommandDefinition } from "../claude-code-command-loader"
|
||||
|
||||
export type BuiltinCommandName = "init-deep" | "ralph-loop" | "cancel-ralph" | "ulw-loop" | "refactor" | "start-work" | "stop-continuation" | "handoff" | "remove-ai-slops" | "hyperplan"
|
||||
export type BuiltinCommandName = "ralph-loop" | "cancel-ralph" | "ulw-loop" | "refactor" | "start-work" | "stop-continuation" | "handoff" | "remove-ai-slops" | "hyperplan"
|
||||
|
||||
export interface BuiltinCommandConfig {
|
||||
disabled_commands?: BuiltinCommandName[]
|
||||
|
||||
Reference in New Issue
Block a user