alphacouncil-agent 0.9.2 → 0.9.4

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.
Files changed (79) hide show
  1. package/.claude/commands/alpha.md +22 -3
  2. package/.claude-plugin/marketplace.json +2 -2
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/.codex-plugin/plugin.json +1 -1
  5. package/.grok/commands/alpha.md +22 -3
  6. package/.opencode/command/alpha.md +22 -3
  7. package/AGENTS.md +27 -4
  8. package/CHANGELOG.md +67 -0
  9. package/CLAUDE.md +41 -7
  10. package/README.ja.md +21 -11
  11. package/README.md +35 -11
  12. package/README.zh-CN.md +31 -11
  13. package/commands/alpha.md +22 -3
  14. package/data/build-profile.v1.json +1 -1
  15. package/data/master-selector-method-locales.v1.mjs +286 -0
  16. package/docs/INSTALL.md +43 -6
  17. package/docs/releases/v0.9.3.md +86 -0
  18. package/docs/releases/v0.9.4.md +79 -0
  19. package/docs/report-contract.md +50 -1
  20. package/knowledge/ai-assisted-solo/experiments/runs/a.json +4 -4
  21. package/knowledge/ai-assisted-solo/experiments/runs/b.json +2 -2
  22. package/knowledge/ai-assisted-solo/experiments/runs/c.json +2 -2
  23. package/knowledge/ai-assisted-solo/experiments/runs/d13.json +16 -16
  24. package/knowledge/ai-assisted-solo/experiments/runs/d26.json +29 -29
  25. package/knowledge/ai-assisted-solo/experiments/runs/e-d13.json +19 -19
  26. package/knowledge/ai-assisted-solo/experiments/runs/e-d26.json +32 -32
  27. package/knowledge/ai-assisted-solo/experiments/runs/h_ai_reference.json +33 -33
  28. package/knowledge/ai-assisted-solo/experiments/simulation-input.json +79 -79
  29. package/knowledge/ai-assisted-solo/experiments/simulation-manifest.json +19 -19
  30. package/knowledge/solo-test/masters/master_ackman/manifest.json +14 -4
  31. package/knowledge/solo-test/masters/master_aschenbrenner/manifest.json +14 -4
  32. package/knowledge/solo-test/masters/master_asness/manifest.json +14 -4
  33. package/knowledge/solo-test/masters/master_buffett/manifest.json +14 -4
  34. package/knowledge/solo-test/masters/master_burry/manifest.json +14 -4
  35. package/knowledge/solo-test/masters/master_cathie_wood/manifest.json +14 -4
  36. package/knowledge/solo-test/masters/master_dalio/manifest.json +14 -4
  37. package/knowledge/solo-test/masters/master_damodaran/manifest.json +14 -4
  38. package/knowledge/solo-test/masters/master_druckenmiller/manifest.json +14 -4
  39. package/knowledge/solo-test/masters/master_duan_yongping/manifest.json +14 -4
  40. package/knowledge/solo-test/masters/master_fisher/manifest.json +14 -4
  41. package/knowledge/solo-test/masters/master_forensic_short/manifest.json +14 -4
  42. package/knowledge/solo-test/masters/master_graham/manifest.json +14 -4
  43. package/knowledge/solo-test/masters/master_jhunjhunwala/manifest.json +14 -4
  44. package/knowledge/solo-test/masters/master_klarman/manifest.json +14 -4
  45. package/knowledge/solo-test/masters/master_li_lu/manifest.json +14 -4
  46. package/knowledge/solo-test/masters/master_lynch/manifest.json +14 -4
  47. package/knowledge/solo-test/masters/master_marks/manifest.json +14 -4
  48. package/knowledge/solo-test/masters/master_munger/manifest.json +14 -4
  49. package/knowledge/solo-test/masters/master_natenberg/manifest.json +14 -4
  50. package/knowledge/solo-test/masters/master_pabrai/manifest.json +14 -4
  51. package/knowledge/solo-test/masters/master_simons/manifest.json +14 -4
  52. package/knowledge/solo-test/masters/master_sinclair/manifest.json +14 -4
  53. package/knowledge/solo-test/masters/master_soros/manifest.json +14 -4
  54. package/knowledge/solo-test/masters/master_taleb/manifest.json +14 -4
  55. package/knowledge/solo-test/masters/master_thorp/manifest.json +14 -4
  56. package/mcp/lib/codex.mjs +3 -3
  57. package/mcp/lib/constants.mjs +61 -25
  58. package/mcp/lib/council-options.mjs +95 -40
  59. package/mcp/lib/council-selection.mjs +95 -9
  60. package/mcp/lib/gates.mjs +78 -11
  61. package/mcp/lib/lang.mjs +109 -2
  62. package/mcp/lib/markdown.mjs +444 -135
  63. package/mcp/lib/master-catalog.mjs +28 -3
  64. package/mcp/lib/orchestrator.mjs +952 -265
  65. package/mcp/lib/packets.mjs +173 -20
  66. package/mcp/lib/personas/engine.mjs +30 -30
  67. package/mcp/lib/personas-v3/compiler.mjs +2 -0
  68. package/mcp/lib/personas-v3/loader.mjs +10 -7
  69. package/mcp/lib/personas-v3/source-acquisition.mjs +10 -3
  70. package/mcp/lib/prompts.mjs +33 -0
  71. package/mcp/lib/rpc.mjs +75 -33
  72. package/mcp/lib/run-store.mjs +23 -0
  73. package/package.json +2 -2
  74. package/schemas/persona-v3.schema.json +37 -2
  75. package/scripts/lib/packaged-host-parity.mjs +54 -5
  76. package/scripts/lib/persona-v3-solo-test-packs.mjs +31 -5
  77. package/scripts/package-smoke.mjs +31 -12
  78. package/scripts/run-tests.mjs +23 -2
  79. package/skills/alphacouncil-agent/SKILL.md +50 -7
@@ -8,6 +8,8 @@
8
8
  * while that migration is underway.
9
9
  */
10
10
 
11
+ import { MASTER_SELECTOR_METHOD_LOCALES } from "../../data/master-selector-method-locales.v1.mjs";
12
+
11
13
  const CARDS = Object.freeze({
12
14
  master_aschenbrenner: {
13
15
  zh: ["Leopold Aschenbrenner,关注 AI 扩张、算力和国家安全的研究者", "研究算力、电力、资本开支和技术时间线是否被市场正确定价。", "AI 基础设施、半导体、电力和长期技术扩散"],
@@ -116,15 +118,38 @@ const CARDS = Object.freeze({
116
118
  });
117
119
 
118
120
  function langKey(language) {
119
- return /中文|chinese|zh/i.test(String(language || "")) ? "zh" : "en";
121
+ const text = String(language || "");
122
+ if (/中文|chinese|zh/i.test(text)) return "zh";
123
+ if (/日本語|japanese|ja/i.test(text)) return "ja";
124
+ if (/한국어|korean|ko/i.test(text)) return "ko";
125
+ return "en";
120
126
  }
121
127
 
122
128
  export function selectorCard(persona, language = "English") {
123
129
  const key = langKey(language);
124
130
  const fallbackTags = (persona?.philosophy_tags || persona?.tags || []).join(", ") || persona?.id || "method lens";
125
- const [identity, method, bestFor] = CARDS[persona?.id]?.[key] || (key === "zh"
131
+ let card = CARDS[persona?.id]?.[key];
132
+ if (!card && (key === "ja" || key === "ko") && MASTER_SELECTOR_METHOD_LOCALES[persona?.id]?.[key]) {
133
+ const title = persona?.title?.en || persona?.id;
134
+ card = key === "ja"
135
+ ? [
136
+ `${title}。プロジェクト派生で、人による方法帰属の審査を受けていない暫定メソッド視点。本人の発言や現在の見解ではない。`,
137
+ MASTER_SELECTOR_METHOD_LOCALES[persona.id][key],
138
+ `適用領域(安定タグ):${fallbackTags}`,
139
+ ]
140
+ : [
141
+ `${title}. 프로젝트에서 파생되었고 방법 귀속에 대한 인적 심사를 거치지 않은 임시 방법론 관점이다. 본인의 발언이나 현재 견해가 아니다.`,
142
+ MASTER_SELECTOR_METHOD_LOCALES[persona.id][key],
143
+ `적합 영역(안정 태그): ${fallbackTags}`,
144
+ ];
145
+ }
146
+ const [identity, method, bestFor] = card || (key === "zh"
126
147
  ? [`${persona?.title?.zh || persona?.id}方法视角`, `重点检查:${fallbackTags}。`, "适用于其公开方法能够覆盖的问题"]
127
- : [`${persona?.title?.en || persona?.id} method lens`, `Focuses on: ${fallbackTags}.`, "Questions within the method's documented scope"]);
148
+ : key === "ja"
149
+ ? [`${persona?.title?.en || persona?.id}の方法視点`, `重点項目:${fallbackTags}`, "文書化された方法の範囲内の問いに適用"]
150
+ : key === "ko"
151
+ ? [`${persona?.title?.en || persona?.id} 방법론 관점`, `중점 점검: ${fallbackTags}`, "문서화된 방법 범위의 질문에 적용"]
152
+ : [`${persona?.title?.en || persona?.id} method lens`, `Focuses on: ${fallbackTags}.`, "Questions within the method's documented scope"]);
128
153
  return { identity, method, best_for: bestFor };
129
154
  }
130
155