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.
@@ -1,3 +1,7 @@
1
+ import { type ClassEntry, HAIR_COLORS, PALETTES, SKINS } from "./class-data.ts";
2
+ import { CLASSES_A } from "./classes-a.ts";
3
+ import { CLASSES_B } from "./classes-b.ts";
4
+ import { CLASSES_C } from "./classes-c.ts";
1
5
  import type {
2
6
  CharacterColors,
3
7
  CharacterSpec,
@@ -263,757 +267,10 @@ export const STATE_EXPRESSION: Readonly<Record<AvatarState, Expression>> =
263
267
  sleepy: "sleepy",
264
268
  });
265
269
 
266
- /** Heraldic palettes: the field (also the agent accent), a secondary tincture and the metal trim. */
267
- const PALETTES: Record<PaletteName, CharacterColors> = {
268
- azure: { primary: "#3b6fd8", secondary: "#eef2ff", trim: "#f0c04a" },
269
- gules: { primary: "#d8473d", secondary: "#fff1e4", trim: "#f0c04a" },
270
- vert: { primary: "#2f9e6b", secondary: "#eefbea", trim: "#f0c04a" },
271
- purpure: { primary: "#7d52cc", secondary: "#f1e9ff", trim: "#f0c04a" },
272
- amber: { primary: "#e2a02a", secondary: "#fff6dc", trim: "#d5dbe8" },
273
- sable: { primary: "#454a5c", secondary: "#e9ecf4", trim: "#f0c04a" },
274
- teal: { primary: "#1f9aa6", secondary: "#e6fbfa", trim: "#f0c04a" },
275
- rose: { primary: "#d6507f", secondary: "#ffeef3", trim: "#d5dbe8" },
276
- };
277
-
278
- /** Skin tones, light to dark. */
279
- const SKINS: readonly Hex[] = [
280
- "#f7d6b8",
281
- "#eab98c",
282
- "#d4a070",
283
- "#b9784c",
284
- "#8e5b3c",
285
- "#5c3a26",
286
- ];
287
-
288
- /** Hair swatches; a spec may carry any other hex. */
289
- const HAIR_COLORS: readonly Hex[] = [
290
- "#2b2233",
291
- "#6a4a33",
292
- "#b0562f",
293
- "#e0b45a",
294
- "#aeb4c3",
295
- "#f1f3fa",
296
- ];
297
-
298
- type ClassPreset = Omit<CharacterSpec, "v" | "class">;
299
-
300
- function preset(
301
- fields: Omit<ClassPreset, "colors" | "palette"> & { palette: PaletteName },
302
- ): ClassPreset {
303
- const { palette, ...rest } = fields;
304
- return { ...rest, colors: { ...PALETTES[palette] }, palette };
305
- }
306
-
307
- interface ClassEntry {
308
- label: string;
309
- /** The agent jobs the class suits. */
310
- jobs: string;
311
- /** English and zh-TW words that suggest the class from an agent's name and prompt. */
312
- keywords: readonly string[];
313
- preset: ClassPreset;
314
- }
315
-
316
270
  const CLASSES: Record<ClassId, ClassEntry> = {
317
- wizard: {
318
- label: "Wizard",
319
- jobs: "coordinator, planner, main assistant",
320
- keywords: [
321
- "coordinat",
322
- "orchestrat",
323
- "lead",
324
- "chief",
325
- "manager",
326
- "協調",
327
- "統籌",
328
- "總管",
329
- "主管",
330
- ],
331
- preset: preset({
332
- outfit: "robe",
333
- hat: "wizard",
334
- prop: "staff",
335
- hair: "none",
336
- beard: "full",
337
- accessory: "none",
338
- build: "regular",
339
- skin: 0,
340
- hairColor: "#f1f3fa",
341
- palette: "azure",
342
- }),
343
- },
344
- knight: {
345
- label: "Knight",
346
- jobs: "reviewer, QA gate, guardian",
347
- keywords: [
348
- "review",
349
- "qa",
350
- "quality",
351
- "gate",
352
- "lint",
353
- "guardian",
354
- "審查",
355
- "審核",
356
- "把關",
357
- "品質",
358
- ],
359
- preset: preset({
360
- outfit: "armor",
361
- hat: "helm",
362
- prop: "shield",
363
- hair: "short",
364
- beard: "none",
365
- accessory: "none",
366
- build: "regular",
367
- skin: 1,
368
- hairColor: "#6a4a33",
369
- palette: "gules",
370
- }),
371
- },
372
- scholar: {
373
- label: "Scholar",
374
- jobs: "researcher, literature review",
375
- keywords: [
376
- "research",
377
- "literature",
378
- "paper",
379
- "study",
380
- "survey",
381
- "academic",
382
- "研究",
383
- "文獻",
384
- "論文",
385
- "學者",
386
- ],
387
- preset: preset({
388
- outfit: "scholar",
389
- hat: "mortar",
390
- prop: "scroll",
391
- hair: "bun",
392
- beard: "none",
393
- accessory: "glasses",
394
- build: "slim",
395
- skin: 2,
396
- hairColor: "#2b2233",
397
- palette: "purpure",
398
- }),
399
- },
400
- smith: {
401
- label: "Smith",
402
- jobs: "coder, builder, refactorer",
403
- keywords: [
404
- "coder",
405
- "coding",
406
- "code",
407
- "builder",
408
- "implement",
409
- "develop",
410
- "refactor",
411
- "software",
412
- "程式",
413
- "開發",
414
- "實作",
415
- "重構",
416
- ],
417
- preset: preset({
418
- outfit: "apron",
419
- hat: "goggcap",
420
- prop: "hammer",
421
- hair: "short",
422
- beard: "none",
423
- accessory: "none",
424
- build: "stout",
425
- skin: 3,
426
- hairColor: "#7a4a2a",
427
- palette: "amber",
428
- }),
429
- },
430
- ranger: {
431
- label: "Ranger",
432
- jobs: "scout, web search, crawler",
433
- keywords: [
434
- "scout",
435
- "search",
436
- "crawl",
437
- "explore",
438
- "browse",
439
- "web",
440
- "搜尋",
441
- "爬蟲",
442
- "偵查",
443
- "探索",
444
- ],
445
- preset: preset({
446
- outfit: "cloak",
447
- hat: "hood",
448
- prop: "bow",
449
- hair: "none",
450
- beard: "none",
451
- accessory: "freckles",
452
- build: "slim",
453
- skin: 1,
454
- hairColor: "#a8683a",
455
- palette: "vert",
456
- }),
457
- },
458
- bard: {
459
- label: "Bard",
460
- jobs: "writer, announcer, copywriter",
461
- keywords: [
462
- "writer",
463
- "write",
464
- "copywrit",
465
- "announce",
466
- "content",
467
- "blog",
468
- "story",
469
- "poet",
470
- "寫作",
471
- "文案",
472
- "文章",
473
- "公告",
474
- ],
475
- preset: preset({
476
- outfit: "tunic",
477
- hat: "beret",
478
- prop: "lute",
479
- hair: "long",
480
- beard: "none",
481
- accessory: "none",
482
- build: "regular",
483
- skin: 4,
484
- hairColor: "#c0453d",
485
- palette: "rose",
486
- }),
487
- },
488
- alchemist: {
489
- label: "Alchemist",
490
- jobs: "data analyst, ETL, transformer",
491
- keywords: [
492
- "analyst",
493
- "data",
494
- "etl",
495
- "transform",
496
- "convert",
497
- "spreadsheet",
498
- "資料",
499
- "數據",
500
- "轉換",
501
- "分析師",
502
- ],
503
- preset: preset({
504
- outfit: "coat",
505
- hat: "goggles",
506
- prop: "flask",
507
- hair: "curly",
508
- beard: "none",
509
- accessory: "none",
510
- build: "regular",
511
- skin: 5,
512
- hairColor: "#2b2233",
513
- palette: "teal",
514
- }),
515
- },
516
- healer: {
517
- label: "Healer",
518
- jobs: "debugger, fixer, support",
519
- keywords: [
520
- "debug",
521
- "fix",
522
- "doctor",
523
- "heal",
524
- "bug",
525
- "repair",
526
- "triage",
527
- "support",
528
- "醫",
529
- "修",
530
- "除錯",
531
- "診斷",
532
- ],
533
- preset: preset({
534
- outfit: "surplice",
535
- hat: "coif",
536
- prop: "bell",
537
- hair: "none",
538
- beard: "none",
539
- accessory: "none",
540
- build: "stout",
541
- skin: 5,
542
- hairColor: "#2b2233",
543
- palette: "rose",
544
- }),
545
- },
546
- steward: {
547
- label: "Steward",
548
- jobs: "ops, billing, access keys",
549
- keywords: [
550
- "ops",
551
- "billing",
552
- "admin",
553
- "account",
554
- "access",
555
- "finance",
556
- "invoice",
557
- "procure",
558
- "帳務",
559
- "財務",
560
- "營運",
561
- "請款",
562
- "管理",
563
- ],
564
- preset: preset({
565
- outfit: "vest",
566
- hat: "tallcap",
567
- prop: "keys",
568
- hair: "short",
569
- beard: "mustache",
570
- accessory: "none",
571
- build: "stout",
572
- skin: 0,
573
- hairColor: "#8a8f9c",
574
- palette: "sable",
575
- }),
576
- },
577
- navigator: {
578
- label: "Navigator",
579
- jobs: "planner, routing, roadmap",
580
- keywords: [
581
- "planner",
582
- "planning",
583
- "roadmap",
584
- "route",
585
- "routing",
586
- "navigat",
587
- "itinerary",
588
- "規劃",
589
- "路線",
590
- "導航",
591
- "行程",
592
- ],
593
- preset: preset({
594
- outfit: "coat",
595
- hat: "tricorn",
596
- prop: "map",
597
- hair: "ponytail",
598
- beard: "none",
599
- accessory: "none",
600
- build: "slim",
601
- skin: 2,
602
- hairColor: "#6a4a33",
603
- palette: "azure",
604
- }),
605
- },
606
- seer: {
607
- label: "Seer",
608
- jobs: "forecaster, monitoring, analytics",
609
- keywords: [
610
- "forecast",
611
- "monitor",
612
- "predict",
613
- "analytics",
614
- "metric",
615
- "observab",
616
- "trend",
617
- "預測",
618
- "監控",
619
- "觀測",
620
- "趨勢",
621
- ],
622
- preset: preset({
623
- outfit: "habit",
624
- hat: "turban",
625
- prop: "telescope",
626
- hair: "none",
627
- beard: "none",
628
- accessory: "none",
629
- build: "slim",
630
- skin: 3,
631
- hairColor: "#2b2233",
632
- palette: "purpure",
633
- }),
634
- },
635
- scribe: {
636
- label: "Scribe",
637
- jobs: "documentation, notes, minutes",
638
- keywords: [
639
- "document",
640
- "docs",
641
- "notes",
642
- "minutes",
643
- "transcri",
644
- "changelog",
645
- "文件",
646
- "記錄",
647
- "紀錄",
648
- "筆記",
649
- "會議",
650
- ],
651
- preset: preset({
652
- outfit: "scholar",
653
- hat: "softcap",
654
- prop: "quill",
655
- hair: "short",
656
- beard: "none",
657
- accessory: "glasses",
658
- build: "regular",
659
- skin: 1,
660
- hairColor: "#3a2f45",
661
- palette: "sable",
662
- }),
663
- },
664
- engineer: {
665
- label: "Engineer",
666
- jobs: "devops, infra, CI",
667
- keywords: [
668
- "infra",
669
- "devops",
670
- "ci",
671
- "sre",
672
- "platform",
673
- "kubernetes",
674
- "server",
675
- "cluster",
676
- "維運",
677
- "運維",
678
- "基礎設施",
679
- "伺服器",
680
- ],
681
- preset: preset({
682
- outfit: "overalls",
683
- hat: "hardhat",
684
- prop: "wrench",
685
- hair: "braid",
686
- beard: "none",
687
- accessory: "none",
688
- build: "regular",
689
- skin: 4,
690
- hairColor: "#2b2233",
691
- palette: "amber",
692
- }),
693
- },
694
- druid: {
695
- label: "Druid",
696
- jobs: "cleanup, data hygiene, maintenance",
697
- keywords: [
698
- "cleanup",
699
- "clean",
700
- "hygiene",
701
- "maintenance",
702
- "garbage",
703
- "prune",
704
- "tidy",
705
- "清理",
706
- "整理",
707
- "維護",
708
- "保養",
709
- ],
710
- preset: preset({
711
- outfit: "cloak",
712
- hat: "wreath",
713
- prop: "spade",
714
- hair: "long",
715
- beard: "none",
716
- accessory: "none",
717
- build: "regular",
718
- skin: 4,
719
- hairColor: "#6a4a33",
720
- palette: "vert",
721
- }),
722
- },
723
- innkeeper: {
724
- label: "Innkeeper",
725
- jobs: "concierge, onboarding, scheduler",
726
- keywords: [
727
- "concierge",
728
- "onboard",
729
- "scheduler",
730
- "schedule",
731
- "host",
732
- "welcome",
733
- "reception",
734
- "接待",
735
- "迎賓",
736
- "排程",
737
- "新人",
738
- ],
739
- preset: preset({
740
- outfit: "chef",
741
- hat: "toque",
742
- prop: "ladle",
743
- hair: "none",
744
- beard: "mustache",
745
- accessory: "none",
746
- build: "stout",
747
- skin: 2,
748
- hairColor: "#2b2233",
749
- palette: "gules",
750
- }),
751
- },
752
- sentinel: {
753
- label: "Sentinel",
754
- jobs: "security, on-call, alerts",
755
- keywords: [
756
- "security",
757
- "alert",
758
- "incident",
759
- "oncall",
760
- "on-call",
761
- "vulnerab",
762
- "patrol",
763
- "資安",
764
- "安全",
765
- "告警",
766
- "警報",
767
- "值班",
768
- ],
769
- preset: preset({
770
- outfit: "plate",
771
- hat: "kettle",
772
- prop: "lantern",
773
- hair: "none",
774
- beard: "none",
775
- accessory: "scar",
776
- build: "stout",
777
- skin: 5,
778
- hairColor: "#2b2233",
779
- palette: "sable",
780
- }),
781
- },
782
- envoy: {
783
- label: "Envoy",
784
- jobs: "email, partner comms, notifications",
785
- keywords: [
786
- "email",
787
- "mail",
788
- "partner",
789
- "notif",
790
- "message",
791
- "outreach",
792
- "comms",
793
- "信件",
794
- "郵件",
795
- "通知",
796
- "聯絡",
797
- ],
798
- preset: preset({
799
- outfit: "tunic",
800
- hat: "cavalier",
801
- prop: "seal",
802
- hair: "bun",
803
- beard: "none",
804
- accessory: "none",
805
- build: "regular",
806
- skin: 1,
807
- hairColor: "#aeb4c3",
808
- palette: "purpure",
809
- }),
810
- },
811
- rogue: {
812
- label: "Rogue",
813
- jobs: "pen-tester, auditor, intel",
814
- keywords: [
815
- "pentest",
816
- "pen-test",
817
- "penetration",
818
- "auditor",
819
- "audit",
820
- "intel",
821
- "exploit",
822
- "osint",
823
- "滲透",
824
- "稽核",
825
- "情報",
826
- "紅隊",
827
- ],
828
- preset: preset({
829
- outfit: "cloak",
830
- hat: "cowl",
831
- prop: "dagger",
832
- hair: "none",
833
- beard: "none",
834
- accessory: "scar",
835
- build: "slim",
836
- skin: 0,
837
- hairColor: "#2b2233",
838
- palette: "sable",
839
- }),
840
- },
841
- monk: {
842
- label: "Monk",
843
- jobs: "long-running jobs, batch, patience",
844
- keywords: [
845
- "long-running",
846
- "batch",
847
- "patient",
848
- "background",
849
- "overnight",
850
- "meditat",
851
- "cron",
852
- "長時間",
853
- "批次",
854
- "批量",
855
- "耐心",
856
- ],
857
- preset: preset({
858
- outfit: "habit",
859
- hat: "headband",
860
- prop: "beads",
861
- hair: "none",
862
- beard: "none",
863
- accessory: "none",
864
- build: "regular",
865
- skin: 3,
866
- hairColor: "#2b2233",
867
- palette: "amber",
868
- }),
869
- },
870
- falconer: {
871
- label: "Falconer",
872
- jobs: "retrieval, fetch, RAG lookup",
873
- keywords: [
874
- "retriev",
875
- "fetch",
876
- "rag",
877
- "lookup",
878
- "vector",
879
- "embedding",
880
- "檢索",
881
- "擷取",
882
- "抓取",
883
- "查詢",
884
- ],
885
- preset: preset({
886
- outfit: "cloak",
887
- hat: "fcap",
888
- prop: "bird",
889
- hair: "short",
890
- beard: "goatee",
891
- accessory: "none",
892
- build: "slim",
893
- skin: 4,
894
- hairColor: "#2b2233",
895
- palette: "vert",
896
- }),
897
- },
898
- shipwright: {
899
- label: "Shipwright",
900
- jobs: "release, build pipeline, packaging",
901
- keywords: [
902
- "release",
903
- "ship",
904
- "packag",
905
- "publish",
906
- "deploy",
907
- "pipeline",
908
- "發版",
909
- "發布",
910
- "打包",
911
- "上線",
912
- "部署",
913
- ],
914
- preset: preset({
915
- outfit: "sailor",
916
- hat: "sailor",
917
- prop: "anchor",
918
- hair: "short",
919
- beard: "goatee",
920
- accessory: "none",
921
- build: "stout",
922
- skin: 2,
923
- hairColor: "#e0b45a",
924
- palette: "azure",
925
- }),
926
- },
927
- jester: {
928
- label: "Jester",
929
- jobs: "brainstorm, ideation, humor",
930
- keywords: [
931
- "brainstorm",
932
- "ideation",
933
- "idea",
934
- "humor",
935
- "joke",
936
- "creative",
937
- "fun",
938
- "腦力激盪",
939
- "發想",
940
- "創意",
941
- "幽默",
942
- "點子",
943
- ],
944
- preset: preset({
945
- outfit: "motley",
946
- hat: "jester",
947
- prop: "marotte",
948
- hair: "none",
949
- beard: "none",
950
- accessory: "freckles",
951
- build: "slim",
952
- skin: 0,
953
- hairColor: "#b0562f",
954
- palette: "gules",
955
- }),
956
- },
957
- paladin: {
958
- label: "Paladin",
959
- jobs: "compliance, policy, approvals",
960
- keywords: [
961
- "compliance",
962
- "policy",
963
- "approval",
964
- "approve",
965
- "govern",
966
- "legal",
967
- "ethic",
968
- "合規",
969
- "法遵",
970
- "核准",
971
- "政策",
972
- "規範",
973
- ],
974
- preset: preset({
975
- outfit: "plate",
976
- hat: "winghelm",
977
- prop: "sword",
978
- hair: "none",
979
- beard: "none",
980
- accessory: "none",
981
- build: "regular",
982
- skin: 5,
983
- hairColor: "#2b2233",
984
- palette: "amber",
985
- }),
986
- },
987
- archivist: {
988
- label: "Archivist",
989
- jobs: "knowledge base, indexing, memory",
990
- keywords: [
991
- "knowledge",
992
- "archive",
993
- "index",
994
- "memory",
995
- "wiki",
996
- "catalog",
997
- "library",
998
- "知識",
999
- "索引",
1000
- "記憶",
1001
- "歸檔",
1002
- "典藏",
1003
- ],
1004
- preset: preset({
1005
- outfit: "scholar",
1006
- hat: "none",
1007
- prop: "tome",
1008
- hair: "bun",
1009
- beard: "none",
1010
- accessory: "glasses",
1011
- build: "regular",
1012
- skin: 2,
1013
- hairColor: "#e4e7f0",
1014
- palette: "teal",
1015
- }),
1016
- },
271
+ ...CLASSES_A,
272
+ ...CLASSES_B,
273
+ ...CLASSES_C,
1017
274
  };
1018
275
 
1019
276
  export const CATALOG: Readonly<{