pi-roundtable 0.43.0 → 0.44.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.
@@ -0,0 +1,56 @@
1
+ import type {
2
+ CharacterColors,
3
+ CharacterSpec,
4
+ Hex,
5
+ PaletteName,
6
+ } from "./spec.ts";
7
+
8
+ /** Heraldic palettes: the field (also the agent accent), a secondary tincture and the metal trim. */
9
+ export const PALETTES: Record<PaletteName, CharacterColors> = {
10
+ azure: { primary: "#3b6fd8", secondary: "#eef2ff", trim: "#f0c04a" },
11
+ gules: { primary: "#d8473d", secondary: "#fff1e4", trim: "#f0c04a" },
12
+ vert: { primary: "#2f9e6b", secondary: "#eefbea", trim: "#f0c04a" },
13
+ purpure: { primary: "#7d52cc", secondary: "#f1e9ff", trim: "#f0c04a" },
14
+ amber: { primary: "#e2a02a", secondary: "#fff6dc", trim: "#d5dbe8" },
15
+ sable: { primary: "#454a5c", secondary: "#e9ecf4", trim: "#f0c04a" },
16
+ teal: { primary: "#1f9aa6", secondary: "#e6fbfa", trim: "#f0c04a" },
17
+ rose: { primary: "#d6507f", secondary: "#ffeef3", trim: "#d5dbe8" },
18
+ };
19
+
20
+ /** Skin tones, light to dark. */
21
+ export const SKINS: readonly Hex[] = [
22
+ "#f7d6b8",
23
+ "#eab98c",
24
+ "#d4a070",
25
+ "#b9784c",
26
+ "#8e5b3c",
27
+ "#5c3a26",
28
+ ];
29
+
30
+ /** Hair swatches; a spec may carry any other hex. */
31
+ export const HAIR_COLORS: readonly Hex[] = [
32
+ "#2b2233",
33
+ "#6a4a33",
34
+ "#b0562f",
35
+ "#e0b45a",
36
+ "#aeb4c3",
37
+ "#f1f3fa",
38
+ ];
39
+
40
+ export type ClassPreset = Omit<CharacterSpec, "v" | "class">;
41
+
42
+ export function preset(
43
+ fields: Omit<ClassPreset, "colors" | "palette"> & { palette: PaletteName },
44
+ ): ClassPreset {
45
+ const { palette, ...rest } = fields;
46
+ return { ...rest, colors: { ...PALETTES[palette] }, palette };
47
+ }
48
+
49
+ export interface ClassEntry {
50
+ label: string;
51
+ /** The agent jobs the class suits. */
52
+ jobs: string;
53
+ /** English and zh-TW words that suggest the class from an agent's name and prompt. */
54
+ keywords: readonly string[];
55
+ preset: ClassPreset;
56
+ }
@@ -0,0 +1,235 @@
1
+ import type { ClassId } from "./catalog.ts";
2
+ import { type ClassEntry, preset } from "./class-data.ts";
3
+
4
+ /** Some of the classes of the catalog, by id. */
5
+ export const CLASSES_A = {
6
+ wizard: {
7
+ label: "Wizard",
8
+ jobs: "coordinator, planner, main assistant",
9
+ keywords: [
10
+ "coordinat",
11
+ "orchestrat",
12
+ "lead",
13
+ "chief",
14
+ "manager",
15
+ "協調",
16
+ "統籌",
17
+ "總管",
18
+ "主管",
19
+ ],
20
+ preset: preset({
21
+ outfit: "robe",
22
+ hat: "wizard",
23
+ prop: "staff",
24
+ hair: "none",
25
+ beard: "full",
26
+ accessory: "none",
27
+ build: "regular",
28
+ skin: 0,
29
+ hairColor: "#f1f3fa",
30
+ palette: "azure",
31
+ }),
32
+ },
33
+ knight: {
34
+ label: "Knight",
35
+ jobs: "reviewer, QA gate, guardian",
36
+ keywords: [
37
+ "review",
38
+ "qa",
39
+ "quality",
40
+ "gate",
41
+ "lint",
42
+ "guardian",
43
+ "審查",
44
+ "審核",
45
+ "把關",
46
+ "品質",
47
+ ],
48
+ preset: preset({
49
+ outfit: "armor",
50
+ hat: "helm",
51
+ prop: "shield",
52
+ hair: "short",
53
+ beard: "none",
54
+ accessory: "none",
55
+ build: "regular",
56
+ skin: 1,
57
+ hairColor: "#6a4a33",
58
+ palette: "gules",
59
+ }),
60
+ },
61
+ scholar: {
62
+ label: "Scholar",
63
+ jobs: "researcher, literature review",
64
+ keywords: [
65
+ "research",
66
+ "literature",
67
+ "paper",
68
+ "study",
69
+ "survey",
70
+ "academic",
71
+ "研究",
72
+ "文獻",
73
+ "論文",
74
+ "學者",
75
+ ],
76
+ preset: preset({
77
+ outfit: "scholar",
78
+ hat: "mortar",
79
+ prop: "scroll",
80
+ hair: "bun",
81
+ beard: "none",
82
+ accessory: "glasses",
83
+ build: "slim",
84
+ skin: 2,
85
+ hairColor: "#2b2233",
86
+ palette: "purpure",
87
+ }),
88
+ },
89
+ smith: {
90
+ label: "Smith",
91
+ jobs: "coder, builder, refactorer",
92
+ keywords: [
93
+ "coder",
94
+ "coding",
95
+ "code",
96
+ "builder",
97
+ "implement",
98
+ "develop",
99
+ "refactor",
100
+ "software",
101
+ "程式",
102
+ "開發",
103
+ "實作",
104
+ "重構",
105
+ ],
106
+ preset: preset({
107
+ outfit: "apron",
108
+ hat: "goggcap",
109
+ prop: "hammer",
110
+ hair: "short",
111
+ beard: "none",
112
+ accessory: "none",
113
+ build: "stout",
114
+ skin: 3,
115
+ hairColor: "#7a4a2a",
116
+ palette: "amber",
117
+ }),
118
+ },
119
+ ranger: {
120
+ label: "Ranger",
121
+ jobs: "scout, web search, crawler",
122
+ keywords: [
123
+ "scout",
124
+ "search",
125
+ "crawl",
126
+ "explore",
127
+ "browse",
128
+ "web",
129
+ "搜尋",
130
+ "爬蟲",
131
+ "偵查",
132
+ "探索",
133
+ ],
134
+ preset: preset({
135
+ outfit: "cloak",
136
+ hat: "hood",
137
+ prop: "bow",
138
+ hair: "none",
139
+ beard: "none",
140
+ accessory: "freckles",
141
+ build: "slim",
142
+ skin: 1,
143
+ hairColor: "#a8683a",
144
+ palette: "vert",
145
+ }),
146
+ },
147
+ bard: {
148
+ label: "Bard",
149
+ jobs: "writer, announcer, copywriter",
150
+ keywords: [
151
+ "writer",
152
+ "write",
153
+ "copywrit",
154
+ "announce",
155
+ "content",
156
+ "blog",
157
+ "story",
158
+ "poet",
159
+ "寫作",
160
+ "文案",
161
+ "文章",
162
+ "公告",
163
+ ],
164
+ preset: preset({
165
+ outfit: "tunic",
166
+ hat: "beret",
167
+ prop: "lute",
168
+ hair: "long",
169
+ beard: "none",
170
+ accessory: "none",
171
+ build: "regular",
172
+ skin: 4,
173
+ hairColor: "#c0453d",
174
+ palette: "rose",
175
+ }),
176
+ },
177
+ alchemist: {
178
+ label: "Alchemist",
179
+ jobs: "data analyst, ETL, transformer",
180
+ keywords: [
181
+ "analyst",
182
+ "data",
183
+ "etl",
184
+ "transform",
185
+ "convert",
186
+ "spreadsheet",
187
+ "資料",
188
+ "數據",
189
+ "轉換",
190
+ "分析師",
191
+ ],
192
+ preset: preset({
193
+ outfit: "coat",
194
+ hat: "goggles",
195
+ prop: "flask",
196
+ hair: "curly",
197
+ beard: "none",
198
+ accessory: "none",
199
+ build: "regular",
200
+ skin: 5,
201
+ hairColor: "#2b2233",
202
+ palette: "teal",
203
+ }),
204
+ },
205
+ healer: {
206
+ label: "Healer",
207
+ jobs: "debugger, fixer, support",
208
+ keywords: [
209
+ "debug",
210
+ "fix",
211
+ "doctor",
212
+ "heal",
213
+ "bug",
214
+ "repair",
215
+ "triage",
216
+ "support",
217
+ "醫",
218
+ "修",
219
+ "除錯",
220
+ "診斷",
221
+ ],
222
+ preset: preset({
223
+ outfit: "surplice",
224
+ hat: "coif",
225
+ prop: "bell",
226
+ hair: "none",
227
+ beard: "none",
228
+ accessory: "none",
229
+ build: "stout",
230
+ skin: 5,
231
+ hairColor: "#2b2233",
232
+ palette: "rose",
233
+ }),
234
+ },
235
+ } satisfies Partial<Record<ClassId, ClassEntry>>;
@@ -0,0 +1,242 @@
1
+ import type { ClassId } from "./catalog.ts";
2
+ import { type ClassEntry, preset } from "./class-data.ts";
3
+
4
+ /** Some of the classes of the catalog, by id. */
5
+ export const CLASSES_B = {
6
+ steward: {
7
+ label: "Steward",
8
+ jobs: "ops, billing, access keys",
9
+ keywords: [
10
+ "ops",
11
+ "billing",
12
+ "admin",
13
+ "account",
14
+ "access",
15
+ "finance",
16
+ "invoice",
17
+ "procure",
18
+ "帳務",
19
+ "財務",
20
+ "營運",
21
+ "請款",
22
+ "管理",
23
+ ],
24
+ preset: preset({
25
+ outfit: "vest",
26
+ hat: "tallcap",
27
+ prop: "keys",
28
+ hair: "short",
29
+ beard: "mustache",
30
+ accessory: "none",
31
+ build: "stout",
32
+ skin: 0,
33
+ hairColor: "#8a8f9c",
34
+ palette: "sable",
35
+ }),
36
+ },
37
+ navigator: {
38
+ label: "Navigator",
39
+ jobs: "planner, routing, roadmap",
40
+ keywords: [
41
+ "planner",
42
+ "planning",
43
+ "roadmap",
44
+ "route",
45
+ "routing",
46
+ "navigat",
47
+ "itinerary",
48
+ "規劃",
49
+ "路線",
50
+ "導航",
51
+ "行程",
52
+ ],
53
+ preset: preset({
54
+ outfit: "coat",
55
+ hat: "tricorn",
56
+ prop: "map",
57
+ hair: "ponytail",
58
+ beard: "none",
59
+ accessory: "none",
60
+ build: "slim",
61
+ skin: 2,
62
+ hairColor: "#6a4a33",
63
+ palette: "azure",
64
+ }),
65
+ },
66
+ seer: {
67
+ label: "Seer",
68
+ jobs: "forecaster, monitoring, analytics",
69
+ keywords: [
70
+ "forecast",
71
+ "monitor",
72
+ "predict",
73
+ "analytics",
74
+ "metric",
75
+ "observab",
76
+ "trend",
77
+ "預測",
78
+ "監控",
79
+ "觀測",
80
+ "趨勢",
81
+ ],
82
+ preset: preset({
83
+ outfit: "habit",
84
+ hat: "turban",
85
+ prop: "telescope",
86
+ hair: "none",
87
+ beard: "none",
88
+ accessory: "none",
89
+ build: "slim",
90
+ skin: 3,
91
+ hairColor: "#2b2233",
92
+ palette: "purpure",
93
+ }),
94
+ },
95
+ scribe: {
96
+ label: "Scribe",
97
+ jobs: "documentation, notes, minutes",
98
+ keywords: [
99
+ "document",
100
+ "docs",
101
+ "notes",
102
+ "minutes",
103
+ "transcri",
104
+ "changelog",
105
+ "文件",
106
+ "記錄",
107
+ "紀錄",
108
+ "筆記",
109
+ "會議",
110
+ ],
111
+ preset: preset({
112
+ outfit: "scholar",
113
+ hat: "softcap",
114
+ prop: "quill",
115
+ hair: "short",
116
+ beard: "none",
117
+ accessory: "glasses",
118
+ build: "regular",
119
+ skin: 1,
120
+ hairColor: "#3a2f45",
121
+ palette: "sable",
122
+ }),
123
+ },
124
+ engineer: {
125
+ label: "Engineer",
126
+ jobs: "devops, infra, CI",
127
+ keywords: [
128
+ "infra",
129
+ "devops",
130
+ "ci",
131
+ "sre",
132
+ "platform",
133
+ "kubernetes",
134
+ "server",
135
+ "cluster",
136
+ "維運",
137
+ "運維",
138
+ "基礎設施",
139
+ "伺服器",
140
+ ],
141
+ preset: preset({
142
+ outfit: "overalls",
143
+ hat: "hardhat",
144
+ prop: "wrench",
145
+ hair: "braid",
146
+ beard: "none",
147
+ accessory: "none",
148
+ build: "regular",
149
+ skin: 4,
150
+ hairColor: "#2b2233",
151
+ palette: "amber",
152
+ }),
153
+ },
154
+ druid: {
155
+ label: "Druid",
156
+ jobs: "cleanup, data hygiene, maintenance",
157
+ keywords: [
158
+ "cleanup",
159
+ "clean",
160
+ "hygiene",
161
+ "maintenance",
162
+ "garbage",
163
+ "prune",
164
+ "tidy",
165
+ "清理",
166
+ "整理",
167
+ "維護",
168
+ "保養",
169
+ ],
170
+ preset: preset({
171
+ outfit: "cloak",
172
+ hat: "wreath",
173
+ prop: "spade",
174
+ hair: "long",
175
+ beard: "none",
176
+ accessory: "none",
177
+ build: "regular",
178
+ skin: 4,
179
+ hairColor: "#6a4a33",
180
+ palette: "vert",
181
+ }),
182
+ },
183
+ innkeeper: {
184
+ label: "Innkeeper",
185
+ jobs: "concierge, onboarding, scheduler",
186
+ keywords: [
187
+ "concierge",
188
+ "onboard",
189
+ "scheduler",
190
+ "schedule",
191
+ "host",
192
+ "welcome",
193
+ "reception",
194
+ "接待",
195
+ "迎賓",
196
+ "排程",
197
+ "新人",
198
+ ],
199
+ preset: preset({
200
+ outfit: "chef",
201
+ hat: "toque",
202
+ prop: "ladle",
203
+ hair: "none",
204
+ beard: "mustache",
205
+ accessory: "none",
206
+ build: "stout",
207
+ skin: 2,
208
+ hairColor: "#2b2233",
209
+ palette: "gules",
210
+ }),
211
+ },
212
+ sentinel: {
213
+ label: "Sentinel",
214
+ jobs: "security, on-call, alerts",
215
+ keywords: [
216
+ "security",
217
+ "alert",
218
+ "incident",
219
+ "oncall",
220
+ "on-call",
221
+ "vulnerab",
222
+ "patrol",
223
+ "資安",
224
+ "安全",
225
+ "告警",
226
+ "警報",
227
+ "值班",
228
+ ],
229
+ preset: preset({
230
+ outfit: "plate",
231
+ hat: "kettle",
232
+ prop: "lantern",
233
+ hair: "none",
234
+ beard: "none",
235
+ accessory: "scar",
236
+ build: "stout",
237
+ skin: 5,
238
+ hairColor: "#2b2233",
239
+ palette: "sable",
240
+ }),
241
+ },
242
+ } satisfies Partial<Record<ClassId, ClassEntry>>;