oh-my-opencode 4.16.3 → 4.17.1
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/.agents/command/omomomo.md +1 -1
- package/.agents/command/publish.md +31 -58
- package/.agents/skills/hyperplan/SKILL.md +3 -3
- package/.agents/skills/omomomo/SKILL.md +1 -1
- package/.agents/skills/pre-publish-review/SKILL.md +1 -1
- package/.agents/skills/publish/SKILL.md +32 -59
- package/.opencode/command/omomomo.md +1 -1
- package/.opencode/command/publish.md +31 -58
- package/.opencode/skills/hyperplan/SKILL.md +3 -3
- package/.opencode/skills/pre-publish-review/SKILL.md +4 -1
- package/README.ja.md +4 -4
- package/README.ko.md +4 -4
- package/README.md +2 -2
- package/README.ru.md +4 -4
- package/README.zh-cn.md +4 -4
- package/dist/cli/index.js +195 -76
- package/dist/cli-node/index.js +195 -76
- package/dist/features/team-mode/test-support/async-test-helpers.d.ts +2 -2
- package/dist/index.js +310 -299
- package/dist/plugin/chat-message/types.d.ts +4 -0
- package/dist/plugin/command-execute-before.d.ts +1 -0
- package/dist/plugin/stop-continuation.d.ts +17 -0
- package/dist/skills/remove-ai-slops/SKILL.md +2 -2
- package/dist/skills/review-work/SKILL.md +10 -2
- package/dist/skills/start-work/SKILL.md +6 -3
- package/dist/skills/ultimate-browsing/ATTRIBUTION.md +2 -2
- package/dist/skills/ultimate-browsing/engine/templates/package.json +1 -1
- package/dist/skills/ultimate-browsing/references/chrome-stealth.md +11 -11
- package/dist/skills/ulw-plan/SKILL.md +2 -1
- package/dist/skills/ulw-plan/references/full-workflow.md +1 -1
- package/dist/skills/ulw-plan/references/intent-unclear.md +4 -4
- package/dist/skills/ulw-plan/scripts/scaffold-plan.mjs +2 -2
- package/dist/skills/visual-qa/SKILL.md +9 -5
- package/dist/tui.js +79 -32
- package/package.json +15 -14
- package/packages/git-bash-mcp/package.json +27 -0
- package/packages/lsp-daemon/dist/cli.js +7 -13
- package/packages/lsp-daemon/dist/daemon-client.js +3 -5
- package/packages/lsp-daemon/dist/index.js +12 -18
- package/packages/lsp-daemon/dist/request-routing.js +6 -8
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +3 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +1080 -1017
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/codegraph/package.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/AGENTS.md +2 -2
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/cli.js +6 -2
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/codex-hook.js +6 -2
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/src/codex-hook.ts +6 -2
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/test/cli.test.ts +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/test/codex-hook.test.ts +67 -2
- package/packages/omo-codex/plugin/components/lsp/dist/cli.js +14 -14
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/test/package-smoke.test.ts +0 -13
- package/packages/omo-codex/plugin/components/rules/bundled-rules/hephaestus/gpt-5.5.md +2 -2
- package/packages/omo-codex/plugin/components/rules/bundled-rules/hephaestus/gpt-5.6.md +3 -3
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/start-work-continuation/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/start-work-continuation/test/codex-hook.test.ts +1 -79
- package/packages/omo-codex/plugin/components/teammode/AGENTS.md +2 -2
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/SKILL.md +33 -16
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team.mjs +2 -1
- package/packages/omo-codex/plugin/components/teammode/test/v2-spawn-schema.test.ts +69 -0
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/agents/explorer.toml +2 -2
- package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-code-reviewer.toml +2 -2
- package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-gate-reviewer.toml +6 -6
- package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-qa-executor.toml +5 -5
- package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-worker-high.toml +26 -0
- package/packages/omo-codex/plugin/components/ultrawork/agents/{lazycodex-executor.toml → lazycodex-worker-low.toml} +6 -4
- package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-worker-medium.toml +26 -0
- package/packages/omo-codex/plugin/components/ultrawork/agents/librarian.toml +2 -2
- package/packages/omo-codex/plugin/components/ultrawork/agents/plan.toml +7 -7
- package/packages/omo-codex/plugin/components/ultrawork/directive.md +76 -37
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ultrawork/SKILL.md +76 -37
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/SKILL.md +2 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/full-workflow.md +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/intent-unclear.md +4 -4
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/scripts/scaffold-plan.mjs +2 -2
- package/packages/omo-codex/plugin/components/ultrawork/test/codex-hook.test.ts +25 -0
- package/packages/omo-codex/plugin/components/ultrawork/test/package-smoke.test.ts +0 -68
- package/packages/omo-codex/plugin/components/ulw-loop/AGENTS.md +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/CHANGELOG.md +2 -0
- package/packages/omo-codex/plugin/components/ulw-loop/README.md +3 -1
- package/packages/omo-codex/plugin/components/ulw-loop/directive.md +76 -37
- package/packages/omo-codex/plugin/components/ulw-loop/dist/checkpoint.js +6 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-subcommands.d.ts +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-subcommands.js +13 -2
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli.js +405 -25
- package/packages/omo-codex/plugin/components/ulw-loop/dist/codex-goal-instruction.js +12 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/domain-types.d.ts +4 -2
- package/packages/omo-codex/plugin/components/ulw-loop/dist/paths.d.ts +7 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/paths.js +16 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/plan-crud.js +1 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/quality-gate-verdicts.d.ts +6 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/quality-gate-verdicts.js +20 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/quality-gate.d.ts +1 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/quality-gate.js +12 -9
- package/packages/omo-codex/plugin/components/ulw-loop/dist/spawn-guard.d.ts +3 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/spawn-guard.js +148 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/stop-resume-hook.d.ts +2 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/stop-resume-hook.js +209 -0
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +25 -2
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +14 -15
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +30 -28
- package/packages/omo-codex/plugin/components/ulw-loop/src/checkpoint.ts +6 -1
- package/packages/omo-codex/plugin/components/ulw-loop/src/cli-subcommands.ts +14 -3
- package/packages/omo-codex/plugin/components/ulw-loop/src/cli.ts +10 -0
- package/packages/omo-codex/plugin/components/ulw-loop/src/codex-goal-instruction.ts +12 -1
- package/packages/omo-codex/plugin/components/ulw-loop/src/domain-types.ts +4 -2
- package/packages/omo-codex/plugin/components/ulw-loop/src/paths.ts +27 -1
- package/packages/omo-codex/plugin/components/ulw-loop/src/plan-crud.ts +1 -0
- package/packages/omo-codex/plugin/components/ulw-loop/src/quality-gate-verdicts.ts +23 -0
- package/packages/omo-codex/plugin/components/ulw-loop/src/quality-gate.ts +16 -9
- package/packages/omo-codex/plugin/components/ulw-loop/src/spawn-guard.ts +138 -0
- package/packages/omo-codex/plugin/components/ulw-loop/src/stop-resume-hook.ts +208 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-create-goals.test.ts +12 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-entrypoint.test.ts +4 -1
- package/packages/omo-codex/plugin/components/ulw-loop/test/codex-goal-instruction.test.ts +8 -35
- package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/quality-gate-builder.ts +24 -13
- package/packages/omo-codex/plugin/components/ulw-loop/test/package-smoke.test.ts +5 -2
- package/packages/omo-codex/plugin/components/ulw-loop/test/paths.test.ts +43 -8
- package/packages/omo-codex/plugin/components/ulw-loop/test/quality-gate.test.ts +55 -2
- package/packages/omo-codex/plugin/components/ulw-loop/test/spawn-guard.test.ts +228 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/stop-resume-hook.test.ts +193 -0
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-codegraph-init-guidance.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +18 -0
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-codegraph-bootstrap.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-start-work-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +17 -0
- package/packages/omo-codex/plugin/hooks/subagent-stop-checking-start-work-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +2 -2
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/model-catalog.json +16 -7
- package/packages/omo-codex/plugin/package-lock.json +13 -13
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/catalog.mjs +16 -7
- package/packages/omo-codex/plugin/scripts/sync-skills.mjs +8 -2
- package/packages/omo-codex/plugin/skills/init-deep/SKILL.md +2 -2
- package/packages/omo-codex/plugin/skills/refactor/SKILL.md +2 -2
- package/packages/omo-codex/plugin/skills/remove-ai-slops/SKILL.md +4 -4
- package/packages/omo-codex/plugin/skills/review-work/SKILL.md +18 -4
- package/packages/omo-codex/plugin/skills/start-work/SKILL.md +6 -3
- package/packages/omo-codex/plugin/skills/teammode/SKILL.md +33 -16
- package/packages/omo-codex/plugin/skills/teammode/scripts/team.mjs +2 -1
- package/packages/omo-codex/plugin/skills/ultimate-browsing/ATTRIBUTION.md +2 -2
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/templates/package.json +1 -1
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/chrome-stealth.md +11 -11
- package/packages/omo-codex/plugin/skills/ultrawork/SKILL.md +76 -37
- package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +14 -15
- package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +30 -28
- package/packages/omo-codex/plugin/skills/ulw-plan/SKILL.md +2 -1
- package/packages/omo-codex/plugin/skills/ulw-plan/references/full-workflow.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-plan/references/intent-unclear.md +4 -4
- package/packages/omo-codex/plugin/skills/ulw-plan/scripts/scaffold-plan.mjs +2 -2
- package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +2 -2
- package/packages/omo-codex/plugin/skills/visual-qa/SKILL.md +11 -7
- package/packages/omo-codex/plugin/test/aggregate-agents.test.mjs +76 -16
- package/packages/omo-codex/plugin/test/aggregate-hooks.test.mjs +23 -2
- package/packages/omo-codex/plugin/test/aggregate-manifest.test.mjs +1 -1
- package/packages/omo-codex/plugin/test/aggregate-model-catalog.test.mjs +4 -4
- package/packages/omo-codex/plugin/test/auto-update.test.mjs +4 -4
- package/packages/omo-codex/plugin/test/component-hook-contract-cases.mjs +2 -2
- package/packages/omo-codex/plugin/test/lcx-bug-skills.test.mjs +4 -101
- package/packages/omo-codex/plugin/test/migrate-codex-config.test.mjs +14 -14
- package/packages/omo-codex/plugin/test/sync-skills-orchestration.test.mjs +11 -0
- package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +1 -1
- package/packages/omo-codex/plugin/test/sync-skills.test.mjs +5 -3
- package/packages/omo-codex/plugin/test/teammode-transport.test.mjs +25 -0
- package/packages/omo-codex/plugin/test/ulw-plan-scope-contract.test.mjs +24 -0
- package/packages/omo-codex/plugin/test/ulw-plan-skill-contract.test.mjs +9 -40
- package/packages/omo-codex/plugin/test/ulw-research-skill-contract.test.mjs +4 -277
- package/packages/omo-codex/scripts/install-config-reasoning.test.mjs +5 -5
- package/packages/omo-codex/scripts/install-config.test.mjs +22 -3
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +98 -30
- package/packages/shared-skills/skills/remove-ai-slops/SKILL.md +2 -2
- package/packages/shared-skills/skills/review-work/SKILL.md +10 -2
- package/packages/shared-skills/skills/start-work/SKILL.md +6 -3
- package/packages/shared-skills/skills/ultimate-browsing/ATTRIBUTION.md +2 -2
- package/packages/shared-skills/skills/ultimate-browsing/engine/templates/package.json +1 -1
- package/packages/shared-skills/skills/ultimate-browsing/references/chrome-stealth.md +11 -11
- package/packages/shared-skills/skills/ulw-plan/SKILL.md +2 -1
- package/packages/shared-skills/skills/ulw-plan/references/full-workflow.md +1 -1
- package/packages/shared-skills/skills/ulw-plan/references/intent-unclear.md +4 -4
- package/packages/shared-skills/skills/ulw-plan/scripts/scaffold-plan.mjs +2 -2
- package/packages/shared-skills/skills/visual-qa/SKILL.md +9 -5
- package/dist/skills/visual-qa/scripts/skill-prompt-contract.test.ts +0 -296
- package/packages/omo-codex/plugin/components/ulw-loop/test/skill-contract.test.ts +0 -70
- package/packages/omo-codex/plugin/test/ulw-research-epistemic-contract.test.mjs +0 -98
- package/packages/shared-skills/skills/visual-qa/scripts/skill-prompt-contract.test.ts +0 -296
|
@@ -67,6 +67,31 @@ test("#given flat V2 tools are available #when the leader reads teammode #then t
|
|
|
67
67
|
assert.match(skill, /Codex App.*fallback/i);
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
+
test("#given neither transport's tools are visible #when the leader reads teammode #then search hits are revalidated and fallback is capability-aware without team state", () => {
|
|
71
|
+
const skill = readFileSync(join(root, "components", "teammode", "skills", "teammode", "SKILL.md"), "utf8");
|
|
72
|
+
|
|
73
|
+
const searchIndex = skill.indexOf("tool_search");
|
|
74
|
+
const unavailableIndex = skill.indexOf("Teammode unavailable");
|
|
75
|
+
assert.notEqual(searchIndex, -1, "skill must route hidden tools through the tool_search check");
|
|
76
|
+
assert.notEqual(unavailableIndex, -1, "skill must give the leader unavailable announcement templates");
|
|
77
|
+
assert.ok(searchIndex < unavailableIndex, "tool_search must precede the unavailable conclusion");
|
|
78
|
+
assert.match(skill, /revalidate.*COMPLETE.*compatible transport set/is, "a deferred-tool hit must be revalidated as a complete transport");
|
|
79
|
+
assert.match(skill, /another visible plain-subagent mechanism.*spawn.*communicate.*observe/is, "plain-subagent fallback requires a complete visible lifecycle");
|
|
80
|
+
assert.match(skill, /Otherwise continue serially.*capability limitation/is, "missing all transports must continue serially rather than promise workers");
|
|
81
|
+
assert.match(skill, /Do NOT run `init`/, "the fallback must not create team state");
|
|
82
|
+
assert.doesNotMatch(skill, /splitting the work across plain fire-and-forget subagents/i, "the skill must not promise unavailable plain subagents");
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
test("#given a MultiAgentV2 team #when the leader spawns members #then guidance limits calls to exposed V2 fields", () => {
|
|
86
|
+
const skill = readFileSync(join(root, "components", "teammode", "skills", "teammode", "SKILL.md"), "utf8");
|
|
87
|
+
|
|
88
|
+
assert.match(skill, /using only the V2 schema fields/i);
|
|
89
|
+
assert.match(skill, /`task_name`[\s\S]*`message`[\s\S]*`fork_turns`/);
|
|
90
|
+
assert.match(skill, /role, priority, or task-specific routing instruction in `message`/i);
|
|
91
|
+
assert.match(skill, /V2 does not accept[\s\S]*`agent_type`, `model`, `reasoning_effort`, or `service_tier`/);
|
|
92
|
+
assert.match(skill, /inherit the[\s\S]*session model/i);
|
|
93
|
+
});
|
|
94
|
+
|
|
70
95
|
test("#given MultiAgentV2 transport #when members are added and bound #then task names and canonical agent paths form the address book", () => {
|
|
71
96
|
const tempRoot = createTeamRoot("omo-codex-teammode-v2-transport-");
|
|
72
97
|
try {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
import test from "node:test";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
|
|
7
|
+
const pluginRoot = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
8
|
+
const repositoryRoot = dirname(dirname(dirname(pluginRoot)));
|
|
9
|
+
const componentReference = join(pluginRoot, "components", "ultrawork", "skills", "ulw-plan", "references", "intent-unclear.md");
|
|
10
|
+
const sharedReference = join(repositoryRoot, "packages", "shared-skills", "skills", "ulw-plan", "references", "intent-unclear.md");
|
|
11
|
+
|
|
12
|
+
test("#given an unclear auth-improvement request #when ulw-plan derives its full-scope components #then it preserves evidenced intent without inventing reduction or MFA expansion", async () => {
|
|
13
|
+
const [component, shared] = await Promise.all([
|
|
14
|
+
readFile(componentReference, "utf8"),
|
|
15
|
+
readFile(sharedReference, "utf8"),
|
|
16
|
+
]);
|
|
17
|
+
|
|
18
|
+
for (const reference of [component, shared]) {
|
|
19
|
+
assert.match(reference, /components that refine the user's requested or evidence-backed intent/i);
|
|
20
|
+
assert.match(reference, /neither collapse into an invented reduced subset nor expand into adjacent features/i);
|
|
21
|
+
assert.match(reference, /MFA is an adjacent capability.*Scope OUT unless the user asks.*evidence establishes/i);
|
|
22
|
+
assert.doesNotMatch(reference, /MFA - all four planned in full/i);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -6,47 +6,16 @@ import { fileURLToPath } from "node:url";
|
|
|
6
6
|
|
|
7
7
|
const root = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
8
8
|
|
|
9
|
-
async
|
|
9
|
+
test("#given ulw-plan skill copies #when component source and packaged copy are compared #then they are byte-identical and expose the loader-parsed name", async () => {
|
|
10
|
+
// given
|
|
10
11
|
const componentPath = join(root, "components", "ultrawork", "skills", "ulw-plan", "SKILL.md");
|
|
11
12
|
const packagedPath = join(root, "skills", "ulw-plan", "SKILL.md");
|
|
12
|
-
return [
|
|
13
|
-
{ label: "component", path: componentPath, content: await readFile(componentPath, "utf8") },
|
|
14
|
-
{ label: "packaged", path: packagedPath, content: await readFile(packagedPath, "utf8") },
|
|
15
|
-
];
|
|
16
|
-
}
|
|
17
13
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
`${copy.label}: must preserve independent spawn waves`,
|
|
26
|
-
);
|
|
27
|
-
assert.match(
|
|
28
|
-
copy.content,
|
|
29
|
-
/After the wave\s+is launched[\s\S]{0,240}multi_agent_v1\.wait_agent[\s\S]{0,240}terminal status/i,
|
|
30
|
-
`${copy.label}: must wait after the wave is launched`,
|
|
31
|
-
);
|
|
32
|
-
assert.doesNotMatch(
|
|
33
|
-
copy.content,
|
|
34
|
-
/Immediately after any `multi_agent_v1\.spawn_agent`/i,
|
|
35
|
-
`${copy.label}: must not serialize independent spawns`,
|
|
36
|
-
);
|
|
37
|
-
assert.match(copy.content, /terminal status/i, `${copy.label}: must wait until terminal status`);
|
|
38
|
-
assert.match(copy.content, /WORKING:/, `${copy.label}: must keep progress liveness guidance`);
|
|
39
|
-
assert.match(copy.content, /BLOCKED:/, `${copy.label}: must keep blocked liveness guidance`);
|
|
40
|
-
assert.match(
|
|
41
|
-
copy.content,
|
|
42
|
-
/timeout only means no new mailbox update arrived/i,
|
|
43
|
-
`${copy.label}: must frame wait timeouts as mailbox silence`,
|
|
44
|
-
);
|
|
45
|
-
assert.match(copy.content, /Fallback only when/, `${copy.label}: must keep explicit fallback conditions`);
|
|
46
|
-
assert.match(
|
|
47
|
-
copy.content,
|
|
48
|
-
/do not start dependent planning, drafting, approval-gate work, or final handoff/i,
|
|
49
|
-
`${copy.label}: must block dependent planning work before child results are integrated`,
|
|
50
|
-
);
|
|
51
|
-
}
|
|
14
|
+
// when
|
|
15
|
+
const component = await readFile(componentPath, "utf8");
|
|
16
|
+
const packaged = await readFile(packagedPath, "utf8");
|
|
17
|
+
|
|
18
|
+
// then
|
|
19
|
+
assert.equal(packaged, component);
|
|
20
|
+
assert.match(component, /^name: ulw-plan$/m);
|
|
52
21
|
});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
// allow: SIZE_OK - ULW research skill contract tests inspect one bundled prompt protocol; this release introduces the contract and future additions should split by protocol phase.
|
|
2
|
-
|
|
3
1
|
import assert from "node:assert/strict";
|
|
4
2
|
import { readFile } from "node:fs/promises";
|
|
5
3
|
import { dirname, join } from "node:path";
|
|
6
4
|
import test from "node:test";
|
|
7
5
|
import { fileURLToPath } from "node:url";
|
|
6
|
+
|
|
8
7
|
import { sharedSkillsRootPath } from "@oh-my-opencode/shared-skills";
|
|
9
8
|
|
|
10
9
|
const root = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
@@ -18,286 +17,14 @@ async function readUlwResearchCopies() {
|
|
|
18
17
|
];
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
const match = content.match(/^---\r?\n[\s\S]*?\bdescription:\s*"([\s\S]*?)"\r?\n[\s\S]*?---/);
|
|
23
|
-
assert.notEqual(match, null, "SKILL.md frontmatter description not found");
|
|
24
|
-
return match[1];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function escapeRegExp(value) {
|
|
28
|
-
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function markdownSection(content, heading, nextHeading) {
|
|
32
|
-
const headingPattern = new RegExp(`^${escapeRegExp(heading)}\\r?$`, "m");
|
|
33
|
-
const headingMatch = content.match(headingPattern);
|
|
34
|
-
assert.notEqual(headingMatch, null, `SKILL.md section not found: ${heading}`);
|
|
35
|
-
assert.notEqual(headingMatch.index, undefined, `SKILL.md section index not found: ${heading}`);
|
|
36
|
-
const bodyStart = headingMatch.index + headingMatch[0].length;
|
|
37
|
-
if (nextHeading === undefined) {
|
|
38
|
-
return content.slice(bodyStart);
|
|
39
|
-
}
|
|
40
|
-
const nextHeadingIndex = content.indexOf(`\n${nextHeading}`, bodyStart);
|
|
41
|
-
assert.notEqual(nextHeadingIndex, -1, `SKILL.md next section not found: ${nextHeading}`);
|
|
42
|
-
return content.slice(bodyStart, nextHeadingIndex);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
test("#given renamed research skill #when frontmatter is inspected #then ulw-research is the canonical name", async () => {
|
|
20
|
+
test("#given ulw-research skill copies #when frontmatter is inspected #then the loader-parsed name is ulw-research", async () => {
|
|
46
21
|
for (const copy of await readUlwResearchCopies()) {
|
|
47
22
|
assert.match(copy.content, /^name: ulw-research$/m, `${copy.label}: frontmatter must expose ulw-research`);
|
|
48
23
|
}
|
|
49
24
|
});
|
|
50
25
|
|
|
51
|
-
test("#given
|
|
52
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
53
|
-
assert.match(
|
|
54
|
-
copy.content,
|
|
55
|
-
/`ULW-RESEARCH MODE ENABLED!`/,
|
|
56
|
-
`${copy.label}: body must expose the ulw-research activation marker`,
|
|
57
|
-
);
|
|
58
|
-
assert.doesNotMatch(
|
|
59
|
-
copy.content,
|
|
60
|
-
/`ULTRARESEARCH MODE ENABLED!`/,
|
|
61
|
-
`${copy.label}: body must not expose the old ultraresearch activation marker`,
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
test("#given ulw-research skill #when scanned for non-English content #then it contains no Hangul", async () => {
|
|
67
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
68
|
-
assert.doesNotMatch(
|
|
69
|
-
copy.content,
|
|
70
|
-
/[ᄀ-ᇿ-가-힣]/,
|
|
71
|
-
`${copy.label} copy contains Hangul characters`,
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
test("#given ulw-research description #when activation policy is inspected #then it gates on explicit research demands only", async () => {
|
|
77
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
78
|
-
const description = frontmatterDescription(copy.content);
|
|
79
|
-
assert.match(description, /ulw-research/i, `${copy.label}: description must name the ulw-research trigger`);
|
|
80
|
-
if (copy.label === "shared") {
|
|
81
|
-
assert.match(description, /ultraresearch/i, `${copy.label}: description must preserve ultraresearch discoverability`);
|
|
82
|
-
} else {
|
|
83
|
-
assert.doesNotMatch(description, /ultraresearch/i, `${copy.label}: description must not expose ultraresearch`);
|
|
84
|
-
}
|
|
85
|
-
assert.match(description, /\bulw\b/i, `${copy.label}: description must preserve ulw discoverability`);
|
|
86
|
-
assert.match(description, /explicit/i, `${copy.label}: description must gate activation on explicit demand`);
|
|
87
|
-
assert.match(
|
|
88
|
-
description,
|
|
89
|
-
/ultra-precise investigation/i,
|
|
90
|
-
`${copy.label}: description must name the ultra-precise investigation trigger`,
|
|
91
|
-
);
|
|
92
|
-
assert.match(description, /\bresearch\b/i, `${copy.label}: description must name the research trigger`);
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
test("#given packaged ulw-research skill #when scanned for legacy aliases #then ultraresearch is not exposed", async () => {
|
|
97
|
-
const packaged = (await readUlwResearchCopies()).find((copy) => copy.label === "packaged");
|
|
98
|
-
assert.notEqual(packaged, undefined, "packaged copy not found");
|
|
99
|
-
assert.doesNotMatch(packaged.content, /ultraresearch/i, "packaged ulw-research must not expose ultraresearch");
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
test("#given packaged ulw-research skill #when Codex guidance is inspected #then compatibility guidance is preserved", async () => {
|
|
103
|
-
const packaged = (await readUlwResearchCopies()).find((copy) => copy.label === "packaged");
|
|
104
|
-
assert.notEqual(packaged, undefined, "packaged copy not found");
|
|
105
|
-
assert.match(packaged.content, /## Codex Harness Tool Compatibility/);
|
|
106
|
-
assert.match(packaged.content, /multi_agent_v1\.spawn_agent/);
|
|
107
|
-
assert.match(packaged.content, /multi_agent_v1\.wait_agent/);
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
test("#given ulw-research body #when authority is inspected #then it takes precedence over exploration-bounding instructions", async () => {
|
|
111
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
112
|
-
assert.match(
|
|
113
|
-
copy.content,
|
|
114
|
-
/exploration-bounding|exploration (?:caps|budgets|limits)/i,
|
|
115
|
-
`${copy.label}: body must name the exploration-bounding instructions it overrides`,
|
|
116
|
-
);
|
|
117
|
-
assert.match(
|
|
118
|
-
copy.content,
|
|
119
|
-
/supersede|override|do(?:es)? not (?:bind|apply)/i,
|
|
120
|
-
`${copy.label}: body must state precedence while the mode is active`,
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
test("#given ulw-research worker protocol #when EXPAND flow is inspected #then markers travel as message text and workers never write files", async () => {
|
|
126
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
127
|
-
assert.match(copy.content, /EXPAND/, `${copy.label}: body must keep the EXPAND marker protocol`);
|
|
128
|
-
assert.match(
|
|
129
|
-
copy.content,
|
|
130
|
-
/(?:reply|message|response) text|end (?:its|the|your) (?:reply|response|final message)/i,
|
|
131
|
-
`${copy.label}: EXPAND markers must be returned as message text`,
|
|
132
|
-
);
|
|
133
|
-
assert.match(
|
|
134
|
-
copy.content,
|
|
135
|
-
/read-only|cannot write files|never ask (?:a )?worker(?:s)? to write/i,
|
|
136
|
-
`${copy.label}: body must state the read-only worker constraint`,
|
|
137
|
-
);
|
|
138
|
-
assert.doesNotMatch(
|
|
139
|
-
copy.content,
|
|
140
|
-
/APPEND (?:your )?findings to \$SESSION_DIR/i,
|
|
141
|
-
`${copy.label}: workers must not be instructed to append session-dir files`,
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
test("#given ulw-research journaling #when ownership is inspected #then the orchestrator owns the session journal", async () => {
|
|
147
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
148
|
-
assert.match(
|
|
149
|
-
copy.content,
|
|
150
|
-
/orchestrator[\s\S]{0,200}journal|journal[\s\S]{0,200}orchestrator/i,
|
|
151
|
-
`${copy.label}: body must assign session-journal writes to the orchestrator`,
|
|
152
|
-
);
|
|
153
|
-
assert.match(copy.content, /SESSION_DIR/, `${copy.label}: body must keep the session directory protocol`);
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
test("#given ulw-research expansion loop #when stop rules are inspected #then convergence rules and a depth cap are stated", async () => {
|
|
158
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
159
|
-
assert.match(copy.content, /converg/i, `${copy.label}: body must define convergence`);
|
|
160
|
-
assert.match(copy.content, /depth/i, `${copy.label}: body must define an expansion depth cap`);
|
|
161
|
-
assert.match(
|
|
162
|
-
copy.content,
|
|
163
|
-
/minimum (?:of )?(?:2|two) expansion waves|at least (?:2|two) expansion waves/i,
|
|
164
|
-
`${copy.label}: body must require a minimum of two expansion waves before convergence`,
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
test("#given ulw-research under ultrawork #when coexistence is inspected #then marker and done-definition conflicts are resolved", async () => {
|
|
170
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
171
|
-
assert.match(copy.content, /ultrawork|\bulw\b/i, `${copy.label}: body must address ultrawork coexistence`);
|
|
172
|
-
assert.match(
|
|
173
|
-
copy.content,
|
|
174
|
-
/first(?:-| )line/i,
|
|
175
|
-
`${copy.label}: body must resolve the first-line activation marker conflict`,
|
|
176
|
-
);
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
test("#given ulw-research worker sizing #when spawn guidance is inspected #then capable-model and high-effort routing is stated", async () => {
|
|
181
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
182
|
-
assert.match(
|
|
183
|
-
copy.content,
|
|
184
|
-
/capable model|high(?:est)? (?:reasoning )?effort/i,
|
|
185
|
-
`${copy.label}: body must route research workers to a capable model or high effort`,
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
test("#given ulw-research execution substrate #when team usage is inspected #then it prefers a cooperating team with harness-native team tools", async () => {
|
|
191
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
192
|
-
assert.match(
|
|
193
|
-
copy.content,
|
|
194
|
-
/cooperating team/i,
|
|
195
|
-
`${copy.label}: body must encourage running the swarm as a cooperating team`,
|
|
196
|
-
);
|
|
197
|
-
assert.match(copy.content, /\bteammode\b/i, `${copy.label}: body must name the Codex teammode skill`);
|
|
198
|
-
assert.match(copy.content, /team_mode/i, `${copy.label}: body must name the OpenCode team_mode path`);
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
|
|
202
|
-
test("#given ulw-research team composition #when member slicing is inspected #then members map to part/ownership/perspective, never job titles", async () => {
|
|
203
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
204
|
-
assert.match(
|
|
205
|
-
copy.content,
|
|
206
|
-
/by part, ownership, or perspective/i,
|
|
207
|
-
`${copy.label}: body must compose members by part, ownership, or perspective`,
|
|
208
|
-
);
|
|
209
|
-
assert.match(
|
|
210
|
-
copy.content,
|
|
211
|
-
/never a job title|not (?:a |by )?job title/i,
|
|
212
|
-
`${copy.label}: body must forbid vague job-title members`,
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
test("#given ulw-research team communication #when the raise law is inspected #then members broadcast every lead immediately rather than hoarding", async () => {
|
|
218
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
219
|
-
assert.match(
|
|
220
|
-
copy.content,
|
|
221
|
-
/raise law|broadcast every lead/i,
|
|
222
|
-
`${copy.label}: body must state the raise/broadcast law`,
|
|
223
|
-
);
|
|
224
|
-
assert.match(copy.content, /over-communicate/i, `${copy.label}: body must demand over-communication`);
|
|
225
|
-
assert.match(
|
|
226
|
-
copy.content,
|
|
227
|
-
/the (?:moment|instant) it (?:surfaces|appears|lands)/i,
|
|
228
|
-
`${copy.label}: body must require raising leads the moment they surface`,
|
|
229
|
-
);
|
|
230
|
-
assert.match(
|
|
231
|
-
copy.content,
|
|
232
|
-
/hoard/i,
|
|
233
|
-
`${copy.label}: body must reject hoarding leads for a final dump`,
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
|
|
238
|
-
test("#given ulw-research default swarm #when team guidance is inspected #then teammode, many teammates, and hyperdebate are defaulted", async () => {
|
|
239
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
240
|
-
const teamSection = markdownSection(copy.content, "## Run the swarm as a cooperating team", "## Worker ground rules");
|
|
241
|
-
assert.match(teamSection, /default(?:s)? to teammode|teammode by default/i, `${copy.label}: teammode must be the default`);
|
|
242
|
-
assert.match(teamSection, /many teammates|larger roster|5-8 teammates|5\+ teammates/i, `${copy.label}: body must prefer many teammates`);
|
|
243
|
-
assert.match(teamSection, /hyperdebate|ultradebate/i, `${copy.label}: body must require adversarial debate`);
|
|
244
|
-
assert.match(teamSection, /skeptic|red-team|cross-critique/i, `${copy.label}: body must include a critique perspective`);
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
|
|
248
|
-
test("#given ulw-research non-code verification #when the gate is inspected #then a claim graph / verified-claims data-flow-lock exists", async () => {
|
|
249
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
250
|
-
assert.match(
|
|
251
|
-
copy.content,
|
|
252
|
-
/claim graph|verified-claims/i,
|
|
253
|
-
`${copy.label}: body must define the non-code claim-graph verification gate`,
|
|
254
|
-
);
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
|
|
258
|
-
test("#given ulw-research claim graph #when ownership is inspected #then workers never write the graph / verified-claims artifact", async () => {
|
|
259
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
260
|
-
assert.doesNotMatch(
|
|
261
|
-
copy.content,
|
|
262
|
-
/worker[^.]*\b(?:write|append|create)s?\b[^.]*(?:claim[- ]graph|verified-claims)/i,
|
|
263
|
-
`${copy.label}: workers must not be instructed to write/append/create the claim graph or verified-claims`,
|
|
264
|
-
);
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
|
|
268
|
-
test("#given ulw-research report output #when defaults are inspected #then HTML/PDF reports go through frontend, visual QA, and reviewer approval", async () => {
|
|
269
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
270
|
-
const phase0 = markdownSection(copy.content, "## Phase 0 — Decompose and open the journal", "## Phase 1 — Saturation wave");
|
|
271
|
-
const phase4 = markdownSection(copy.content, "## Phase 4 — Synthesize", "## Phase 5 — Final materials");
|
|
272
|
-
const phase5 = markdownSection(copy.content, "## Phase 5 — Final materials", "## Search craft");
|
|
273
|
-
assert.match(phase0, /Final material format:\s*<HTML\/PDF default \| explicit format \| markdown only>/, `${copy.label}: Phase 0 must track the default final-material contract`);
|
|
274
|
-
assert.match(phase4, /citation source of truth/i, `${copy.label}: Phase 4 synthesis must be a source of truth, not the default final artifact`);
|
|
275
|
-
assert.doesNotMatch(phase4, /When no report was requested, this is the deliverable/i, `${copy.label}: Phase 4 must not contradict default HTML/PDF final materials`);
|
|
276
|
-
assert.match(phase5, /Default final materials to HTML\/PDF unless the user explicitly asks/i, `${copy.label}: Phase 5 must default final materials to HTML/PDF`);
|
|
277
|
-
assert.match(phase5, /HTML first[\s\S]{0,120}PDF default/i, `${copy.label}: report output must default to HTML with PDF availability`);
|
|
278
|
-
assert.match(phase5, /\bfrontend\b/i, `${copy.label}: report assembly must load the frontend skill`);
|
|
279
|
-
assert.match(phase5, /visual-qa/i, `${copy.label}: report assembly must require visual-qa`);
|
|
280
|
-
assert.match(phase5, /ulw-loop|ULW loop/i, `${copy.label}: report QA must run under the ULW loop`);
|
|
281
|
-
assert.match(phase5, /reviewer[\s\S]{0,120}(?:approve|says no broken parts|no broken parts)/i, `${copy.label}: report completion must wait for reviewer approval`);
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
|
|
285
|
-
test("#given ulw-research final materials #when visual artifact guidance is inspected #then charts Mermaid graphs and imagegen are strongly required", async () => {
|
|
286
|
-
for (const copy of await readUlwResearchCopies()) {
|
|
287
|
-
const phase5 = markdownSection(copy.content, "## Phase 5 — Final materials", "## Search craft");
|
|
288
|
-
assert.match(phase5, /actively use charts/i, `${copy.label}: reports must strongly require charts`);
|
|
289
|
-
assert.match(phase5, /Mermaid graphs/i, `${copy.label}: reports must require Mermaid graphs`);
|
|
290
|
-
assert.match(phase5, /imagegen skill/i, `${copy.label}: reports must require imagegen visuals`);
|
|
291
|
-
assert.match(phase5, /generated (?:diagrams|visuals)|generated diagrams or editorial visuals/i, `${copy.label}: report assets must include generated visual guidance`);
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
|
-
|
|
295
|
-
test("#given ulw-research blocked sources #when escalation is inspected #then it routes through the ultimate-browsing skill", async () => {
|
|
26
|
+
test("#given ulw-research skill copies #when scanned for non-English content #then they contain no Hangul", async () => {
|
|
296
27
|
for (const copy of await readUlwResearchCopies()) {
|
|
297
|
-
assert.
|
|
298
|
-
copy.content,
|
|
299
|
-
/ultimate-browsing/,
|
|
300
|
-
`${copy.label}: body must escalate blocked sources via the ultimate-browsing skill`,
|
|
301
|
-
);
|
|
28
|
+
assert.doesNotMatch(copy.content, /[ᄀ-ᇿ-가-힣]/, `${copy.label} copy contains Hangul characters`);
|
|
302
29
|
}
|
|
303
30
|
});
|
|
@@ -22,8 +22,8 @@ test("#given empty Codex config #when script installer updates config #then sets
|
|
|
22
22
|
|
|
23
23
|
// then
|
|
24
24
|
const content = await readFile(configPath, "utf8");
|
|
25
|
-
assert.match(content, /model = "gpt-5\.
|
|
26
|
-
assert.match(content, /model_context_window =
|
|
25
|
+
assert.match(content, /model = "gpt-5\.6-sol"/);
|
|
26
|
+
assert.match(content, /model_context_window = 372000/);
|
|
27
27
|
assert.match(content, /model_reasoning_effort = "high"/);
|
|
28
28
|
assert.match(content, /plan_mode_reasoning_effort = "xhigh"/);
|
|
29
29
|
});
|
|
@@ -61,8 +61,8 @@ test("#given existing model and reasoning config #when script installer updates
|
|
|
61
61
|
assert.equal(content.match(/^model_context_window\s*=/gm)?.length, 1);
|
|
62
62
|
assert.equal(content.match(/^model_reasoning_effort\s*=/gm)?.length, 1);
|
|
63
63
|
assert.equal(content.match(/^plan_mode_reasoning_effort\s*=/gm)?.length, 1);
|
|
64
|
-
assert.match(content, /model = "gpt-5\.
|
|
65
|
-
assert.match(content, /model_context_window =
|
|
64
|
+
assert.match(content, /model = "gpt-5\.6-sol"/);
|
|
65
|
+
assert.match(content, /model_context_window = 372000/);
|
|
66
66
|
assert.match(content, /model_reasoning_effort = "high"/);
|
|
67
67
|
assert.match(content, /plan_mode_reasoning_effort = "xhigh"/);
|
|
68
68
|
assert.doesNotMatch(content, /model = "gpt-5\.2"/);
|
|
@@ -148,6 +148,6 @@ test("#given fallback model catalog #when catalog file is unavailable #then no m
|
|
|
148
148
|
const catalog = await readCodexModelCatalog(root);
|
|
149
149
|
|
|
150
150
|
// then
|
|
151
|
-
assert.equal(catalog.current.model, "gpt-5.
|
|
151
|
+
assert.equal(catalog.current.model, "gpt-5.6-sol");
|
|
152
152
|
assert.equal(catalog.managedProfiles.some((profile) => profile.model === "gpt-5.4"), false);
|
|
153
153
|
});
|
|
@@ -23,10 +23,11 @@ test("#given empty Codex config #when script installer updates config #then sets
|
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// then
|
|
26
|
+
// The stamped default model is v2-preferred, so the installer must not
|
|
27
|
+
// introduce agents.max_threads (Codex rejects it under MultiAgentV2).
|
|
26
28
|
const config = await readFile(configPath, "utf8");
|
|
27
29
|
assert.doesNotMatch(config, /^\s*multi_agent_mode\s*=/m);
|
|
28
|
-
assert.
|
|
29
|
-
assert.match(config, /max_threads = 1000/);
|
|
30
|
+
assert.doesNotMatch(config, /^\s*max_threads\s*=/m);
|
|
30
31
|
assert.match(config, /\[features\.multi_agent_v2\]/);
|
|
31
32
|
const v2Section = multiAgentV2Section(config);
|
|
32
33
|
assert.doesNotMatch(v2Section, /^enabled\s*=/m);
|
|
@@ -281,11 +282,15 @@ test("#given sisyphuslabs config without explicit source #when script installer
|
|
|
281
282
|
|
|
282
283
|
test("#given existing MultiAgentV2 table #when script installer updates config #then preserves unrelated tuning while setting subagent thread limits", async () => {
|
|
283
284
|
// given
|
|
285
|
+
// A pinned v1 model keeps this on the preserve-user-disable path; the
|
|
286
|
+
// stamped v2-preferred default would clear the disable instead.
|
|
284
287
|
const root = await mkdtemp(join(tmpdir(), "omo-codex-script-config-multi-agent-existing-"));
|
|
285
288
|
const configPath = join(root, "config.toml");
|
|
286
289
|
await writeFile(
|
|
287
290
|
configPath,
|
|
288
291
|
[
|
|
292
|
+
'model = "gpt-5.5"',
|
|
293
|
+
"",
|
|
289
294
|
"[features.multi_agent_v2]",
|
|
290
295
|
"enabled = false",
|
|
291
296
|
"usage_hint_enabled = false",
|
|
@@ -327,9 +332,11 @@ test("#given empty Codex config #when script installer updates config #then sets
|
|
|
327
332
|
});
|
|
328
333
|
|
|
329
334
|
// then
|
|
335
|
+
// The stamped default model is v2-preferred, so agents.max_threads is not
|
|
336
|
+
// introduced (Codex rejects it under MultiAgentV2).
|
|
330
337
|
const config = await readFile(configPath, "utf8");
|
|
331
338
|
const v2Section = config.slice(config.indexOf("[features.multi_agent_v2]"));
|
|
332
|
-
assert.
|
|
339
|
+
assert.doesNotMatch(config, /^\s*max_threads\s*=/m);
|
|
333
340
|
assert.match(v2Section, /max_concurrent_threads_per_session = 1000/);
|
|
334
341
|
assert.doesNotMatch(v2Section, /hide_spawn_agent_metadata/);
|
|
335
342
|
});
|
|
@@ -402,11 +409,15 @@ const v2Section = multiAgentV2Section(config);
|
|
|
402
409
|
|
|
403
410
|
test("#given legacy boolean MultiAgentV2 flag false #when script installer updates config #then normalizes to a disabled table config", async () => {
|
|
404
411
|
// given
|
|
412
|
+
// A pinned v1 model keeps the legacy boolean materializing as a disabled
|
|
413
|
+
// table; the stamped v2-preferred default would drop the disable instead.
|
|
405
414
|
const root = await mkdtemp(join(tmpdir(), "omo-codex-script-config-multi-agent-legacy-false-"));
|
|
406
415
|
const configPath = join(root, "config.toml");
|
|
407
416
|
await writeFile(
|
|
408
417
|
configPath,
|
|
409
418
|
[
|
|
419
|
+
'model = "gpt-5.5"',
|
|
420
|
+
"",
|
|
410
421
|
"[features]",
|
|
411
422
|
"multi_agent_v2 = false",
|
|
412
423
|
"plugins = false",
|
|
@@ -434,11 +445,15 @@ test("#given legacy boolean MultiAgentV2 flag false #when script installer updat
|
|
|
434
445
|
|
|
435
446
|
test("#given legacy agents max_threads #when script installer updates config #then raises the root subagent thread cap", async () => {
|
|
436
447
|
// given
|
|
448
|
+
// A pinned v1 model keeps the legacy low-cap raise path exercised; the
|
|
449
|
+
// stamped v2-preferred default would remove agents.max_threads instead.
|
|
437
450
|
const root = await mkdtemp(join(tmpdir(), "omo-codex-script-config-multi-agent-legacy-threads-"));
|
|
438
451
|
const configPath = join(root, "config.toml");
|
|
439
452
|
await writeFile(
|
|
440
453
|
configPath,
|
|
441
454
|
[
|
|
455
|
+
'model = "gpt-5.5"',
|
|
456
|
+
"",
|
|
442
457
|
"[agents]",
|
|
443
458
|
"max_threads = 16",
|
|
444
459
|
"max_depth = 4",
|
|
@@ -471,11 +486,15 @@ const v2Section = multiAgentV2Section(config);
|
|
|
471
486
|
|
|
472
487
|
test("#given managed agent role sections #when script installer updates config #then preserves role config while raising only root agents max_threads", async () => {
|
|
473
488
|
// given
|
|
489
|
+
// A pinned v1 model keeps the legacy low-cap raise path exercised; the
|
|
490
|
+
// stamped v2-preferred default would remove agents.max_threads instead.
|
|
474
491
|
const root = await mkdtemp(join(tmpdir(), "omo-codex-script-config-multi-agent-role-section-"));
|
|
475
492
|
const configPath = join(root, "config.toml");
|
|
476
493
|
await writeFile(
|
|
477
494
|
configPath,
|
|
478
495
|
[
|
|
496
|
+
'model = "gpt-5.5"',
|
|
497
|
+
"",
|
|
479
498
|
"[agents]",
|
|
480
499
|
"max_threads = 16",
|
|
481
500
|
"",
|