Repository navigation
Expand file tree
/
Copy pathtest-default-agent.mjs
More file actions
28 lines (28 loc) · 1.63 KB
/
Copy pathtest-default-agent.mjs
File metadata and controls
28 lines (28 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* default_agent promotion + agent/command injection — RETIRED with the v1
* personality (1.7.0 cut).
*
* What this suite used to pin (v1 only):
* 1. the v1 `config` hook promoting cfg.default_agent to "team" (opt-out
* default, custom/plan kept, strict-false opts out);
* 2. the v1 `config` hook INJECTING the six agents + six slash-commands into
* the config object at runtime;
* 3. the bash ask-object permission matrix the v1 loader escalated onto the
* injected team agent.
*
* On OpenCode 2.x none of these are a plugin capability:
* - a v2 plugin CANNOT create an agent or a command (AgentEditor has no `add`),
* so the six roles + six /team-* commands reach the host as config FILES
* generated by scripts/gen-v2-config.mjs, not through a config hook;
* - `default_agent` is the installer writing the key LAST (editor.default is a
* measured no-op), not a plugin promotion;
* - the permission matrix is projected as {action,resource,effect} triples.
*
* The v2 equivalents are pinned by test-v2-adapter (registration / "Team owning
* the default slot" / the permission-triple group / the gen-v2-config group).
* This file is kept as a suite so the 8-suite runner keeps its shape, and exits
* 0 with the retirement stated rather than silently deleted.
*/
console.log("test-default-agent: SKIPPED — v1 config-hook semantics (default_agent promotion + agent/command injection) removed with the v1 personality")
console.log(" v2 equivalents pinned by test-v2-adapter (registration, default slot, permission triples, gen-v2-config)")
console.log("ALL DEFAULT-AGENT TESTS PASSED (retired) ✅")