@divaltor/academy 0.1.4 → 0.1.6
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/README.md +2 -2
- package/package.json +1 -1
- package/src/agents.ts +4 -4
- package/src/index.ts +3 -17
- /package/src/agents/{diana.txt → rudolf.txt} +0 -0
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ Add Academy to `opencode.jsonc`. Each agent can override its display name and co
|
|
|
26
26
|
{
|
|
27
27
|
"package": "@divaltor/academy",
|
|
28
28
|
"options": {
|
|
29
|
-
"
|
|
29
|
+
"rudolf": {
|
|
30
30
|
"name": "Emperor",
|
|
31
31
|
"color": "#8994B8",
|
|
32
32
|
},
|
|
@@ -36,7 +36,7 @@ Add Academy to `opencode.jsonc`. Each agent can override its display name and co
|
|
|
36
36
|
}
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
Colors accept six-digit hex values or OpenCode theme colors: `primary`, `secondary`, `accent`, `success`, `warning`, `error`, and `info`. You can alternatively set a color with OpenCode's native `agents.<id>.color` configuration. Custom names also update persona references.
|
|
39
|
+
Colors accept six-digit hex values or OpenCode theme colors: `primary`, `secondary`, `accent`, `success`, `warning`, `error`, and `info`. You can alternatively set a color with OpenCode's native `agents.<id>.color` configuration. Custom names also update persona references. Agent IDs are `rudolf`, `bourbon`, `agnes`, `cafe`, `dantsu`, and `bellno`. See the [plugin docs](https://opencode.ai/v2/docs/build/plugins) to learn more.
|
|
40
40
|
|
|
41
41
|
### Private GitHub repositories
|
|
42
42
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@divaltor/academy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "An OpenCode plugin that trains a Tracen Academy roster of specialist coding agents to research, build, and review.",
|
|
5
5
|
"homepage": "https://github.com/divaltor/academy#readme",
|
|
6
6
|
"bugs": {
|
package/src/agents.ts
CHANGED
|
@@ -3,7 +3,7 @@ import bellnoSystem from "./agents/bellno.txt" with { type: "text" };
|
|
|
3
3
|
import bourbonSystem from "./agents/bourbon.txt" with { type: "text" };
|
|
4
4
|
import cafeSystem from "./agents/cafe.txt" with { type: "text" };
|
|
5
5
|
import dantsuSystem from "./agents/dantsu.txt" with { type: "text" };
|
|
6
|
-
import
|
|
6
|
+
import rudolfSystem from "./agents/rudolf.txt" with { type: "text" };
|
|
7
7
|
|
|
8
8
|
interface Permission {
|
|
9
9
|
readonly action: string;
|
|
@@ -17,7 +17,7 @@ const agentIds = [
|
|
|
17
17
|
"bourbon",
|
|
18
18
|
"cafe",
|
|
19
19
|
"dantsu",
|
|
20
|
-
"
|
|
20
|
+
"rudolf",
|
|
21
21
|
] as const;
|
|
22
22
|
|
|
23
23
|
interface AcademyAgent {
|
|
@@ -44,7 +44,7 @@ export const agents: readonly AcademyAgent[] = [
|
|
|
44
44
|
color: "#6678A4",
|
|
45
45
|
description:
|
|
46
46
|
"Primary agent for scoped implementation, research, and delegation.",
|
|
47
|
-
id: "
|
|
47
|
+
id: "rudolf",
|
|
48
48
|
mode: "primary",
|
|
49
49
|
name: "Rudolf",
|
|
50
50
|
permissions: [
|
|
@@ -63,7 +63,7 @@ export const agents: readonly AcademyAgent[] = [
|
|
|
63
63
|
{ action: "subagent", effect: "allow", resource: "bellno" },
|
|
64
64
|
{ action: "subagent", effect: "allow", resource: "bourbon" },
|
|
65
65
|
],
|
|
66
|
-
system:
|
|
66
|
+
system: rudolfSystem,
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
color: "#f6c177",
|
package/src/index.ts
CHANGED
|
@@ -9,22 +9,12 @@ const AgentOptions = Schema.Struct({
|
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
const AcademyOptions = Schema.Struct({
|
|
12
|
-
agentNames: Schema.optionalKey(
|
|
13
|
-
Schema.Struct({
|
|
14
|
-
agnes: Schema.optionalKey(Schema.NonEmptyString),
|
|
15
|
-
bellno: Schema.optionalKey(Schema.NonEmptyString),
|
|
16
|
-
bourbon: Schema.optionalKey(Schema.NonEmptyString),
|
|
17
|
-
cafe: Schema.optionalKey(Schema.NonEmptyString),
|
|
18
|
-
dantsu: Schema.optionalKey(Schema.NonEmptyString),
|
|
19
|
-
diana: Schema.optionalKey(Schema.NonEmptyString),
|
|
20
|
-
})
|
|
21
|
-
),
|
|
22
12
|
agnes: Schema.optionalKey(AgentOptions),
|
|
23
13
|
bellno: Schema.optionalKey(AgentOptions),
|
|
24
14
|
bourbon: Schema.optionalKey(AgentOptions),
|
|
25
15
|
cafe: Schema.optionalKey(AgentOptions),
|
|
26
16
|
dantsu: Schema.optionalKey(AgentOptions),
|
|
27
|
-
|
|
17
|
+
rudolf: Schema.optionalKey(AgentOptions),
|
|
28
18
|
});
|
|
29
19
|
|
|
30
20
|
const setup = Effect.fn("Academy.setup")(function* setup(ctx: Plugin.Context) {
|
|
@@ -34,12 +24,8 @@ const setup = Effect.fn("Academy.setup")(function* setup(ctx: Plugin.Context) {
|
|
|
34
24
|
const options = yield* Schema.decodeUnknownEffect(AcademyOptions, {
|
|
35
25
|
onExcessProperty: "error",
|
|
36
26
|
})(ctx.options).pipe(Effect.orDie);
|
|
37
|
-
const legacyNames = options.agentNames ?? {};
|
|
38
27
|
const agentNames = new Map(
|
|
39
|
-
agents.map((agent) => [
|
|
40
|
-
agent.name,
|
|
41
|
-
options[agent.id]?.name ?? legacyNames[agent.id] ?? agent.name,
|
|
42
|
-
])
|
|
28
|
+
agents.map((agent) => [agent.name, options[agent.id]?.name ?? agent.name])
|
|
43
29
|
);
|
|
44
30
|
|
|
45
31
|
yield* ctx.mcp.transform((editor) => {
|
|
@@ -89,7 +75,7 @@ const setup = Effect.fn("Academy.setup")(function* setup(ctx: Plugin.Context) {
|
|
|
89
75
|
});
|
|
90
76
|
}
|
|
91
77
|
|
|
92
|
-
editor.default("
|
|
78
|
+
editor.default("rudolf");
|
|
93
79
|
});
|
|
94
80
|
});
|
|
95
81
|
|
|
File without changes
|