fix(builtin-commands): pin hyperplan roster contract
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import { afterEach, beforeEach, describe, test, expect } from "bun:test"
|
||||
import { loadBuiltinCommands } from "./commands"
|
||||
import { HANDOFF_TEMPLATE } from "./templates/handoff"
|
||||
import { HYPERPLAN_TEMPLATE } from "./templates/hyperplan"
|
||||
import { REFACTOR_TEMPLATE, REFACTOR_TEAM_MODE_ADDENDUM } from "./templates/refactor"
|
||||
import { REMOVE_AI_SLOPS_TEMPLATE, REMOVE_AI_SLOPS_TEAM_MODE_ADDENDUM } from "./templates/remove-ai-slops"
|
||||
import type { BuiltinCommandName } from "./types"
|
||||
@@ -104,6 +105,28 @@ describe("loadBuiltinCommands", () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe("HYPERPLAN_TEMPLATE", () => {
|
||||
test("should hard-code the adversarial team categories for slash command execution", () => {
|
||||
//#given - the slash command template owns /hyperplan execution context
|
||||
|
||||
//#when / #then
|
||||
expect(HYPERPLAN_TEMPLATE).toContain("unspecified-low")
|
||||
expect(HYPERPLAN_TEMPLATE).toContain("unspecified-high")
|
||||
expect(HYPERPLAN_TEMPLATE).toContain("artistry")
|
||||
expect(HYPERPLAN_TEMPLATE).toContain("ultrabrain")
|
||||
})
|
||||
|
||||
test("should make deep conditional instead of requiring it unconditionally", () => {
|
||||
//#given - deep may be disabled by user category config
|
||||
|
||||
//#when / #then
|
||||
expect(HYPERPLAN_TEMPLATE).toContain("deep")
|
||||
expect(HYPERPLAN_TEMPLATE).toContain("only if")
|
||||
expect(HYPERPLAN_TEMPLATE).toContain("enabled")
|
||||
expect(HYPERPLAN_TEMPLATE).toContain("retry")
|
||||
})
|
||||
})
|
||||
|
||||
describe("loadBuiltinCommands - remove-ai-slops", () => {
|
||||
test("should include remove-ai-slops command in loaded commands", () => {
|
||||
//#given
|
||||
|
||||
Reference in New Issue
Block a user