@rubytech/create-maxy-code 0.1.264 → 0.1.266

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 (173) hide show
  1. package/package.json +1 -1
  2. package/payload/platform/lib/models/dist/index.d.ts +1 -1
  3. package/payload/platform/lib/models/dist/index.d.ts.map +1 -1
  4. package/payload/platform/lib/models/dist/index.js +5 -2
  5. package/payload/platform/lib/models/dist/index.js.map +1 -1
  6. package/payload/platform/lib/models/src/index.ts +5 -2
  7. package/payload/platform/neo4j/schema.cypher +13 -0
  8. package/payload/platform/plugins/admin/.claude-plugin/plugin.json +1 -1
  9. package/payload/platform/plugins/admin/PLUGIN.md +6 -1
  10. package/payload/platform/plugins/admin/mcp/dist/__tests__/skill-search.test.d.ts +2 -0
  11. package/payload/platform/plugins/admin/mcp/dist/__tests__/skill-search.test.d.ts.map +1 -0
  12. package/payload/platform/plugins/admin/mcp/dist/__tests__/skill-search.test.js +106 -0
  13. package/payload/platform/plugins/admin/mcp/dist/__tests__/skill-search.test.js.map +1 -0
  14. package/payload/platform/plugins/admin/mcp/dist/index.js +36 -1
  15. package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
  16. package/payload/platform/plugins/admin/mcp/dist/skill-resolution.d.ts +12 -0
  17. package/payload/platform/plugins/admin/mcp/dist/skill-resolution.d.ts.map +1 -1
  18. package/payload/platform/plugins/admin/mcp/dist/skill-resolution.js +175 -1
  19. package/payload/platform/plugins/admin/mcp/dist/skill-resolution.js.map +1 -1
  20. package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +11 -3
  21. package/payload/platform/plugins/admin/skills/public-agent-manager/SKILL.md +2 -2
  22. package/payload/platform/plugins/business-assistant/PLUGIN.md +1 -5
  23. package/payload/platform/plugins/docs/references/admin-ui.md +1 -1
  24. package/payload/platform/plugins/docs/references/voice-mirror-guide.md +9 -1
  25. package/payload/platform/plugins/memory/references/schema-base.md +1 -1
  26. package/payload/platform/plugins/memory/references/schema-construction.md +1 -1
  27. package/payload/platform/plugins/whatsapp/mcp/dist/__tests__/format-login-start.test.d.ts +2 -0
  28. package/payload/platform/plugins/whatsapp/mcp/dist/__tests__/format-login-start.test.d.ts.map +1 -0
  29. package/payload/platform/plugins/whatsapp/mcp/dist/__tests__/format-login-start.test.js +16 -0
  30. package/payload/platform/plugins/whatsapp/mcp/dist/__tests__/format-login-start.test.js.map +1 -0
  31. package/payload/platform/plugins/whatsapp/mcp/dist/format.d.ts +7 -0
  32. package/payload/platform/plugins/whatsapp/mcp/dist/format.d.ts.map +1 -0
  33. package/payload/platform/plugins/whatsapp/mcp/dist/format.js +21 -0
  34. package/payload/platform/plugins/whatsapp/mcp/dist/format.js.map +1 -0
  35. package/payload/platform/plugins/whatsapp/mcp/dist/index.js +11 -19
  36. package/payload/platform/plugins/whatsapp/mcp/dist/index.js.map +1 -1
  37. package/payload/platform/plugins/whatsapp/skills/connect-whatsapp/SKILL.md +15 -13
  38. package/payload/platform/scripts/check-skill-frontmatter.mjs +8 -5
  39. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.d.ts.map +1 -1
  40. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js +1 -0
  41. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js.map +1 -1
  42. package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts.map +1 -1
  43. package/payload/platform/services/claude-session-manager/dist/pty-spawner.js +15 -15
  44. package/payload/platform/services/claude-session-manager/dist/pty-spawner.js.map +1 -1
  45. package/payload/platform/services/claude-session-manager/dist/rc-daemon.d.ts +10 -0
  46. package/payload/platform/services/claude-session-manager/dist/rc-daemon.d.ts.map +1 -1
  47. package/payload/platform/services/claude-session-manager/dist/rc-daemon.js +59 -0
  48. package/payload/platform/services/claude-session-manager/dist/rc-daemon.js.map +1 -1
  49. package/payload/platform/templates/account.json +1 -1
  50. package/payload/platform/templates/agents/admin/IDENTITY.md +3 -3
  51. package/payload/platform/templates/specialists/agents/content-producer.md +1 -1
  52. package/payload/platform/templates/specialists/agents/librarian.md +1 -1
  53. package/payload/platform/templates/specialists/agents/research-assistant.md +1 -1
  54. package/payload/premium-plugins/venture-studio/skills/investor-data-room/SKILL.md +1 -1
  55. package/payload/premium-plugins/writer-craft/PLUGIN.md +4 -4
  56. package/payload/premium-plugins/writer-craft/mcp/dist/index.d.ts.map +1 -1
  57. package/payload/premium-plugins/writer-craft/mcp/dist/index.js +44 -9
  58. package/payload/premium-plugins/writer-craft/mcp/dist/index.js.map +1 -1
  59. package/payload/premium-plugins/writer-craft/mcp/dist/lib/voice-corpus.d.ts +31 -0
  60. package/payload/premium-plugins/writer-craft/mcp/dist/lib/voice-corpus.d.ts.map +1 -1
  61. package/payload/premium-plugins/writer-craft/mcp/dist/lib/voice-corpus.js +28 -0
  62. package/payload/premium-plugins/writer-craft/mcp/dist/lib/voice-corpus.js.map +1 -1
  63. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-distil-profile.d.ts +7 -1
  64. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-distil-profile.d.ts.map +1 -1
  65. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-distil-profile.js +93 -44
  66. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-distil-profile.js.map +1 -1
  67. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-ingest-session-text.d.ts.map +1 -1
  68. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-ingest-session-text.js +1 -0
  69. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-ingest-session-text.js.map +1 -1
  70. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-record-feedback.d.ts +7 -1
  71. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-record-feedback.d.ts.map +1 -1
  72. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-record-feedback.js +14 -3
  73. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-record-feedback.js.map +1 -1
  74. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-retrieve-conditioning.d.ts +22 -8
  75. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-retrieve-conditioning.d.ts.map +1 -1
  76. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-retrieve-conditioning.js +93 -84
  77. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-retrieve-conditioning.js.map +1 -1
  78. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-tag-content.d.ts +18 -0
  79. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-tag-content.d.ts.map +1 -1
  80. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-tag-content.js +32 -3
  81. package/payload/premium-plugins/writer-craft/mcp/dist/tools/voice-tag-content.js.map +1 -1
  82. package/payload/premium-plugins/writer-craft/mcp/scripts/smoke.mjs +35 -2
  83. package/payload/premium-plugins/writer-craft/mcp/src/index.ts +52 -10
  84. package/payload/premium-plugins/writer-craft/mcp/src/lib/voice-corpus.ts +39 -0
  85. package/payload/premium-plugins/writer-craft/mcp/src/tools/voice-distil-profile.ts +108 -44
  86. package/payload/premium-plugins/writer-craft/mcp/src/tools/voice-ingest-session-text.ts +1 -0
  87. package/payload/premium-plugins/writer-craft/mcp/src/tools/voice-record-feedback.ts +24 -4
  88. package/payload/premium-plugins/writer-craft/mcp/src/tools/voice-retrieve-conditioning.ts +136 -102
  89. package/payload/premium-plugins/writer-craft/mcp/src/tools/voice-tag-content.ts +45 -3
  90. package/payload/premium-plugins/writer-craft/skills/voice-mirror/SKILL.md +34 -23
  91. package/payload/server/{adminuser-self-heal-YC47O34W.js → adminuser-self-heal-LC7HZAC6.js} +17 -9
  92. package/payload/server/{chunk-HYQNUVGO.js → chunk-PFF6I7KP.js} +1 -8
  93. package/payload/server/{chunk-ZC63DFWF.js → chunk-SOLVVUST.js} +1 -1
  94. package/payload/server/maxy-edge.js +2 -2
  95. package/payload/server/public/assets/{AdminShell-8JLQM1Mz.js → AdminShell-BcHJy_Y2.js} +1 -1
  96. package/payload/server/public/assets/{Checkbox-CuFJh7lI.js → Checkbox-BY2lndUH.js} +1 -1
  97. package/payload/server/public/assets/{admin-D4nsdmKU.js → admin-C364q_-g.js} +1 -1
  98. package/payload/server/public/assets/{architectureDiagram-Q4EWVU46-D-ODjJS5.js → architectureDiagram-Q4EWVU46-B9ik0JyO.js} +1 -1
  99. package/payload/server/public/assets/{blockDiagram-DXYQGD6D-DFuVe8f9.js → blockDiagram-DXYQGD6D-C-w-AMRJ.js} +1 -1
  100. package/payload/server/public/assets/{browser-DIKmvDl5.js → browser-D66JrDpx.js} +1 -1
  101. package/payload/server/public/assets/{c4Diagram-AHTNJAMY-CeVLfznT.js → c4Diagram-AHTNJAMY-BH-b0NZ1.js} +1 -1
  102. package/payload/server/public/assets/channel-5xoW3jfU.js +1 -0
  103. package/payload/server/public/assets/{chunk-336JU56O-BTaLfR3a.js → chunk-336JU56O-CZHLbmJj.js} +2 -2
  104. package/payload/server/public/assets/{chunk-426QAEUC-BzTbm4pP.js → chunk-426QAEUC-Qx6Ggp9s.js} +1 -1
  105. package/payload/server/public/assets/{chunk-4TB4RGXK-SiUyOXVG.js → chunk-4TB4RGXK-J1Raz9l0.js} +1 -1
  106. package/payload/server/public/assets/{chunk-5FUZZQ4R-BcQ33LnT.js → chunk-5FUZZQ4R-D6TFnJVF.js} +1 -1
  107. package/payload/server/public/assets/{chunk-5PVQY5BW-CT7C1Tik.js → chunk-5PVQY5BW-CC5aEdzK.js} +1 -1
  108. package/payload/server/public/assets/{chunk-EDXVE4YY-CK3uI2u6.js → chunk-EDXVE4YY-Bfbcdcbt.js} +1 -1
  109. package/payload/server/public/assets/{chunk-ENJZ2VHE-Ddp8Otnw.js → chunk-ENJZ2VHE-7EKi84Dw.js} +1 -1
  110. package/payload/server/public/assets/{chunk-ICPOFSXX-DHTxymk_.js → chunk-ICPOFSXX-DIH1FT8n.js} +1 -1
  111. package/payload/server/public/assets/{chunk-OYMX7WX6-Heg3hegz.js → chunk-OYMX7WX6-MgP02n7p.js} +1 -1
  112. package/payload/server/public/assets/{chunk-U2HBQHQK-Cw2PR7aJ.js → chunk-U2HBQHQK-Cwmbq3M7.js} +1 -1
  113. package/payload/server/public/assets/{chunk-X2U36JSP-C7vBCAQQ.js → chunk-X2U36JSP-D65N3MkW.js} +1 -1
  114. package/payload/server/public/assets/{chunk-YZCP3GAM-BS8Mybh1.js → chunk-YZCP3GAM-BkCiRhSG.js} +1 -1
  115. package/payload/server/public/assets/{chunk-ZZ45TVLE-DmnbQp47.js → chunk-ZZ45TVLE-3BQY1FWN.js} +1 -1
  116. package/payload/server/public/assets/classDiagram-6PBFFD2Q-DRSNlIL5.js +1 -0
  117. package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-CYvRRfMp.js +1 -0
  118. package/payload/server/public/assets/clone-DvQUt_lq.js +1 -0
  119. package/payload/server/public/assets/{dagre-D4i6r8zi.js → dagre-DVhW13RD.js} +1 -1
  120. package/payload/server/public/assets/{dagre-KV5264BT-znWS6Wh2.js → dagre-KV5264BT-CtfjEgDz.js} +1 -1
  121. package/payload/server/public/assets/{data-CHqF4bkS.js → data-uiOcPh8T.js} +1 -1
  122. package/payload/server/public/assets/{diagram-5BDNPKRD-B6tQBN1Y.js → diagram-5BDNPKRD-C8AXEFch.js} +1 -1
  123. package/payload/server/public/assets/{diagram-G4DWMVQ6-t73WpYIY.js → diagram-G4DWMVQ6-B1P8Cwuz.js} +1 -1
  124. package/payload/server/public/assets/{diagram-MMDJMWI5-Cm63UOJm.js → diagram-MMDJMWI5-QBVBnPmO.js} +1 -1
  125. package/payload/server/public/assets/{diagram-TYMM5635-DuTSLjVB.js → diagram-TYMM5635-D2xE8fN8.js} +1 -1
  126. package/payload/server/public/assets/{erDiagram-SMLLAGMA-sbHunitX.js → erDiagram-SMLLAGMA-DMee1Yih.js} +1 -1
  127. package/payload/server/public/assets/{flowDiagram-DWJPFMVM-BWOrPuqz.js → flowDiagram-DWJPFMVM-DAd3JjoB.js} +1 -1
  128. package/payload/server/public/assets/{ganttDiagram-T4ZO3ILL-WaLMGard.js → ganttDiagram-T4ZO3ILL-Bs33CmKo.js} +1 -1
  129. package/payload/server/public/assets/{gitGraphDiagram-UUTBAWPF-CsbIgKDn.js → gitGraphDiagram-UUTBAWPF-NXc8aeps.js} +1 -1
  130. package/payload/server/public/assets/{graph-kwyPyf_b.js → graph-BSHyF267.js} +1 -1
  131. package/payload/server/public/assets/{graph-labels-pX3uIQys.js → graph-labels-D5ecmK-Z.js} +1 -1
  132. package/payload/server/public/assets/{graphlib-B8yKFZvc.js → graphlib-DN7sm5nK.js} +1 -1
  133. package/payload/server/public/assets/{infoDiagram-42DDH7IO-Bd55TzsD.js → infoDiagram-42DDH7IO-D2g5STFr.js} +1 -1
  134. package/payload/server/public/assets/{ishikawaDiagram-UXIWVN3A-BFdOsA9f.js → ishikawaDiagram-UXIWVN3A-DBgfV-LB.js} +1 -1
  135. package/payload/server/public/assets/{journeyDiagram-VCZTEJTY-CMQ5XWO9.js → journeyDiagram-VCZTEJTY-Chh9lW9P.js} +1 -1
  136. package/payload/server/public/assets/{kanban-definition-6JOO6SKY-_RpNNRN7.js → kanban-definition-6JOO6SKY-buI2AXpi.js} +1 -1
  137. package/payload/server/public/assets/{line-SkFxjGJ8.js → line-C8OFYjrW.js} +1 -1
  138. package/payload/server/public/assets/{mermaid-parser.core-Ddok2IAe.js → mermaid-parser.core-BI5Ythbv.js} +1 -1
  139. package/payload/server/public/assets/{mermaid.core-CihAjXBG.js → mermaid.core-C4dyl1Xw.js} +3 -3
  140. package/payload/server/public/assets/{mindmap-definition-QFDTVHPH-CJsq3hrO.js → mindmap-definition-QFDTVHPH-BbXKSpiv.js} +1 -1
  141. package/payload/server/public/assets/{pieDiagram-DEJITSTG-CSgg8lBB.js → pieDiagram-DEJITSTG-C8-OIoUW.js} +1 -1
  142. package/payload/server/public/assets/{public-BA9P-3ZV.js → public-DGlZwbyw.js} +3 -3
  143. package/payload/server/public/assets/{quadrantDiagram-34T5L4WZ-TtHxMQtS.js → quadrantDiagram-34T5L4WZ-HOEtpu4n.js} +1 -1
  144. package/payload/server/public/assets/{requirementDiagram-MS252O5E-DdYupKtL.js → requirementDiagram-MS252O5E-DLxjohCO.js} +1 -1
  145. package/payload/server/public/assets/{sankeyDiagram-XADWPNL6-BVfdyUnO.js → sankeyDiagram-XADWPNL6-E_O_HiFL.js} +1 -1
  146. package/payload/server/public/assets/{sequenceDiagram-FGHM5R23-aFLOua6n.js → sequenceDiagram-FGHM5R23-C3-hhAup.js} +1 -1
  147. package/payload/server/public/assets/{stateDiagram-FHFEXIEX-_3Ix8SPZ.js → stateDiagram-FHFEXIEX-BhAmQ0XX.js} +1 -1
  148. package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-Dhrf9hq_.js +1 -0
  149. package/payload/server/public/assets/{timeline-definition-GMOUNBTQ-Bs96WqZ7.js → timeline-definition-GMOUNBTQ-DpfZt7xI.js} +1 -1
  150. package/payload/server/public/assets/{useSelectionMode-L9uAHstA.css → useSelectionMode-98jrB9kD.css} +1 -1
  151. package/payload/server/public/assets/{vennDiagram-DHZGUBPP-DE_SxsN2.js → vennDiagram-DHZGUBPP-Ck2Ago5q.js} +1 -1
  152. package/payload/server/public/assets/{wardleyDiagram-NUSXRM2D-DTCdKs6v.js → wardleyDiagram-NUSXRM2D-Dgk8C9kF.js} +1 -1
  153. package/payload/server/public/assets/{xychartDiagram-5P7HB3ND-CNIrxADs.js → xychartDiagram-5P7HB3ND-BRBSl8ID.js} +1 -1
  154. package/payload/server/public/browser.html +4 -4
  155. package/payload/server/public/data.html +5 -5
  156. package/payload/server/public/graph.html +6 -6
  157. package/payload/server/public/index.html +5 -5
  158. package/payload/server/public/public.html +4 -4
  159. package/payload/server/server.js +607 -5064
  160. package/payload/platform/plugins/business-assistant/references/quote-engine.md +0 -122
  161. package/payload/platform/plugins/business-assistant/references/quote-generation.md +0 -94
  162. package/payload/platform/plugins/business-assistant/references/quoting.md +0 -85
  163. package/payload/platform/plugins/business-assistant/skills/pricing-method/SKILL.md +0 -78
  164. package/payload/platform/plugins/business-assistant/skills/pricing-method/references/learning-from-history.md +0 -51
  165. package/payload/platform/plugins/business-assistant/skills/pricing-method/references/maintenance.md +0 -32
  166. package/payload/platform/plugins/business-assistant/skills/pricing-method/references/manual-definition.md +0 -42
  167. package/payload/platform/plugins/business-assistant/skills/pricing-method/references/verification.md +0 -37
  168. package/payload/server/public/assets/channel-Db8J_1Rl.js +0 -1
  169. package/payload/server/public/assets/classDiagram-6PBFFD2Q-DjquNGFr.js +0 -1
  170. package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-CcE8sWEP.js +0 -1
  171. package/payload/server/public/assets/clone-xa7JZYoY.js +0 -1
  172. package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-eVQQEyxx.js +0 -1
  173. /package/payload/server/public/assets/{useSelectionMode-Da9Glxvu.js → useSelectionMode-80iYuGPa.js} +0 -0
@@ -87,6 +87,16 @@ export declare function parseBoltHostPort(uri: string): {
87
87
  * composer falls back to claude's own default model) but the
88
88
  * inception-model lever is logged as unset. */
89
89
  export declare function readAdminModel(accountDir: string): string | null;
90
+ /** Read account.json.effort. Returns the validated effort level, or null when
91
+ * the file is absent/unparseable, the field is empty, or the value is not a
92
+ * settings.json-accepted level (e.g. legacy `"auto"`). Null leaves the
93
+ * effortLevel key untouched so claude's own default applies. */
94
+ export declare function readAdminEffort(accountDir: string): string | null;
95
+ /** Read-merge-write settings.json so only the `effortLevel` key is owned. Every
96
+ * other key (model, hooks, permissions, …) is preserved verbatim. Mirrors
97
+ * `mergeSettingsModel`'s ownership + atomic-write contract — the file is shared
98
+ * with maxy-spawned sessions and carries the installed Stop hook. */
99
+ export declare function mergeSettingsEffortLevel(claudeConfigDir: string, effortLevel: string, logger: Logger): void;
90
100
  /** Task 578 — pre-seed RC consent. `claude rc` prompts
91
101
  * `Enable Remote Control? (y/n)` on first run; the daemon spawn is
92
102
  * headless so the prompt hangs and the supervisor restarts the child
@@ -1 +1 @@
1
- {"version":3,"file":"rc-daemon.d.ts","sourceRoot":"","sources":["../src/rc-daemon.ts"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAKpD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB;;;6EAGyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;qEAEiE;IACjE,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,eAAe,EAAE,MAAM,CAAA;IACvB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,WAAW,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd;;;;;;;;;gCAS4B;IAC5B,QAAQ,EAAE,CACR,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,MAAM,CAAC,UAAU,EACtB,SAAS,EAAE,MAAM,KACd,SAAS,CAAA;IACd;;;;gCAI4B;IAC5B,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC,CAAA;IACvF;wCACoC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,wDAAwD;IACxD,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,CAAC,EAAE,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ir) {
118
118
  return null;
119
119
  }
120
120
  }
121
+ /** Valid Claude Code `settings.json` effortLevel values. `max` is session-only
122
+ * (not accepted in settings.json); `auto` and any other string are treated as
123
+ * "unset" so the harness default governs. Mirrors the documented set
124
+ * (low/medium/high/xhigh). */
125
+ const VALID_EFFORT_LEVELS = new Set(['low', 'medium', 'high', 'xhigh']);
126
+ /** Read account.json.effort. Returns the validated effort level, or null when
127
+ * the file is absent/unparseable, the field is empty, or the value is not a
128
+ * settings.json-accepted level (e.g. legacy `"auto"`). Null leaves the
129
+ * effortLevel key untouched so claude's own default applies. */
130
+ export function readAdminEffort(accountDir) {
131
+ try {
132
+ const raw = readFileSync(join(accountDir, 'account.json'), 'utf8');
133
+ const parsed = JSON.parse(raw);
134
+ const value = typeof parsed.effort === 'string' ? parsed.effort.trim().toLowerCase() : '';
135
+ return VALID_EFFORT_LEVELS.has(value) ? value : null;
136
+ }
137
+ catch {
138
+ return null;
139
+ }
140
+ }
141
+ /** Read-merge-write settings.json so only the `effortLevel` key is owned. Every
142
+ * other key (model, hooks, permissions, …) is preserved verbatim. Mirrors
143
+ * `mergeSettingsModel`'s ownership + atomic-write contract — the file is shared
144
+ * with maxy-spawned sessions and carries the installed Stop hook. */
145
+ export function mergeSettingsEffortLevel(claudeConfigDir, effortLevel, logger) {
146
+ const settingsPath = join(claudeConfigDir, 'settings.json');
147
+ let settings = {};
148
+ try {
149
+ settings = JSON.parse(readFileSync(settingsPath, 'utf8'));
150
+ if (typeof settings !== 'object' || settings === null || Array.isArray(settings)) {
151
+ settings = {};
152
+ }
153
+ }
154
+ catch {
155
+ // absent or unparseable — start fresh; we only own the `effortLevel` key.
156
+ }
157
+ if (settings.effortLevel === effortLevel) {
158
+ logger(`${TAG} rc-daemon settings-effort already=${effortLevel} path=${settingsPath}`);
159
+ return;
160
+ }
161
+ settings.effortLevel = effortLevel;
162
+ try {
163
+ mkdirSync(dirname(settingsPath), { recursive: true });
164
+ const tmp = `${settingsPath}.${process.pid}.tmp`;
165
+ writeFileSync(tmp, JSON.stringify(settings, null, 2), 'utf8');
166
+ renameSync(tmp, settingsPath);
167
+ logger(`${TAG} rc-daemon settings-effort written effortLevel=${effortLevel} path=${settingsPath}`);
168
+ }
169
+ catch (err) {
170
+ logger(`${TAG} rc-daemon settings-effort-write-failed path=${settingsPath} err=${err instanceof Error ? err.message : String(err)}`);
171
+ }
172
+ }
121
173
  /** Task 578 — pre-seed RC consent. `claude rc` prompts
122
174
  * `Enable Remote Control? (y/n)` on first run; the daemon spawn is
123
175
  * headless so the prompt hangs and the supervisor restarts the child
@@ -271,6 +323,13 @@ export function startRcDaemon(deps) {
271
323
  else {
272
324
  deps.logger(`${TAG} rc-daemon settings-model unset reason=adminModel-absent accountDir=${deps.accountDir} (composer uses claude default)`);
273
325
  }
326
+ const adminEffort = readAdminEffort(deps.accountDir);
327
+ if (adminEffort) {
328
+ mergeSettingsEffortLevel(deps.claudeConfigDir, adminEffort, deps.logger);
329
+ }
330
+ else {
331
+ deps.logger(`${TAG} rc-daemon settings-effort unset reason=effort-absent-or-invalid accountDir=${deps.accountDir} (session uses claude default)`);
332
+ }
274
333
  // Task 578 — pre-seed RC consent so the headless `claude rc` spawn
275
334
  // does not hang at `Enable Remote Control? (y/n)`. Called here for
276
335
  // the first spawn; also re-asserted inside spawnOnce so a supervised
@@ -1 +1 @@
1
- {"version":3,"file":"rc-daemon.js","sourceRoot":"","sources":["../src/rc-daemon.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,EAAE;AACF,wEAAwE;AACxE,yEAAyE;AACzE,2EAA2E;AAC3E,2EAA2E;AAC3E,0EAA0E;AAC1E,EAAE;AACF,sEAAsE;AACtE,EAAE;AACF,sEAAsE;AACtE,2EAA2E;AAC3E,yEAAyE;AACzE,0EAA0E;AAC1E,qEAAqE;AACrE,EAAE;AACF,2EAA2E;AAC3E,6EAA6E;AAC7E,+CAA+C;AAC/C,kEAAkE;AAClE,6EAA6E;AAC7E,0EAA0E;AAC1E,kEAAk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,IAAI,OAAO,EAAE,CAAC;gBACZ,4DAA4D;gBAC5D,4DAA4D;gBAC5D,6DAA6D;gBAC7D,8DAA8D;gBAC9D,mCAAmC;gBACnC,IAAI,CAAC;oBAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;gBAAC,CAAC;gBAAC,MAAM,CAAC,CAAC,kBAAkB,CAAC,CAAC;gBAC5D,IAAI,CAAC;oBAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAA;gBAAC,CAAC;gBAAC,MAAM,CAAC,CAAC,4BAA4B,CAAC,CAAC;gBAClE,OAAO,GAAG,IAAI,CAAA;YAChB,CAAC;YACD,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,gCAAgC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAA;QACrE,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -5,7 +5,7 @@
5
5
  "publicModel": "claude-haiku-4-5",
6
6
  "outputStyle": "default",
7
7
  "thinkingView": "default",
8
- "effort": "auto",
8
+ "effort": "medium",
9
9
  "enabledPlugins": [],
10
10
  "defaultAgent": "",
11
11
  "admins": []
@@ -14,6 +14,8 @@ Authenticate the operator before anything else: ask for their PIN and submit it
14
14
 
15
15
  When a turn needs you to ground a claim about what the product is, how the platform is built, how plugins or skills or specialists work, how install or deploy runs, or any other product-architecture fact, load the platform-architecture skill and answer from its body. Cite the source URL printed above the block you drew from. The platform-architecture skill is the install catalogue, not evidence of what is installed on this account. For questions about what is enabled here — which plugins are on, which specialists you can dispatch, which models are in use — call capabilities-here and answer from its JSON; never infer install state from the catalogue body.
16
16
 
17
+ When a request needs a skill and you do not already know its exact slug, resolve intent to slug with skill-search, passing the request in plain words, then skill-load the slug it returns. Do this rather than guessing slugs through skill-find or falling back to a raw filesystem search over the plugins tree. The available-skills menu is not guaranteed to be in context after a compaction, and skill-search is the description-driven surface that does not depend on it.
18
+
17
19
  ## Before you act
18
20
 
19
21
  You may not act on a request until you know what is being asked, what is in scope and what is out, and what rules apply. When the operator's words are precise, all three are obvious and you act. When any is imprecise, stop and ask. Insist on the operator being precise and concise.
@@ -42,9 +44,7 @@ A separate voice file holds the conversational habits you have earned with this
42
44
 
43
45
  ## How you sound
44
46
 
45
- You are an AI. Say so if asked. Never pretend to be a human. Speak British English. Plain hyphens, straight quotes, three periods, no emoji. Every link in a reply is a markdown link in the form `[label](url)`, never a raw URL. Tool names, MCP prefixes, task numbers, doctrine names, and error codes belong in your reasoning, not in user-facing replies. Translate them into plain English.
46
-
47
- Speak the way you would speak in person, in short direct sentences. Plain words from everyday English. Sound like a capable professional joining a serious operation: neither performing humanity nor performing efficiency. When a sentence sounds like marketing copy, executive-coach motivation, or chatbot prose, the plainer version is the right one.
47
+ You are an AI. Say so if asked. Never pretend to be a human. Speak British English. Plain hyphens, straight quotes, three periods, no emoji. Every link in a reply is a markdown link in the form `[label](url)`, never a raw URL. Tool names, MCP prefixes, task numbers, doctrine names, and error codes belong in your reasoning, not in user-facing replies. Translate them into plain English. Speak the way you would speak in person, in short direct sentences. Plain words from everyday English. Sound like a capable professional joining a serious operation: neither performing humanity nor performing efficiency. When a sentence sounds like marketing copy, executive-coach motivation, or chatbot prose, the plainer version is the right one.
48
48
 
49
49
  Specific patterns to avoid in every reply:
50
50
  - Coaching jargon: "closing the gap", "putting your weight behind it", "what's on your plate", "what 'done well' looks like", "scaling effectiveness", "thin ground", "I should be upfront".
@@ -2,7 +2,7 @@
2
2
  name: content-producer
3
3
  description: "Author professional business documents (proposal, report, brief, memo, plan, case study, brochure), render PDFs, generate images, and publish static websites. Delegate when the operator asks for a written document, a PDF render, a generated image, or to publish a prepared website."
4
4
  summary: "Produces visual output from your graph: generates images, renders pages to PDF, and hosts static websites you upload as a zip."
5
- model: claude-opus-4-8
5
+ model: claude-opus-4-8[1m]
6
6
  tools: Bash, Read, Edit, Write, MultiEdit, Skill, mcp__plugin_memory_memory__memory-search, mcp__plugin_replicate_replicate__image-generate, mcp__plugin_browser_browser__browser-render, mcp__plugin_browser_browser__browser-navigate, mcp__plugin_browser_browser__browser-evaluate, mcp__plugin_browser_browser__browser-resize, mcp__plugin_browser_browser__browser-screenshot, mcp__plugin_browser_browser__browser-pdf-save, mcp__plugin_admin_admin__plugin-read, mcp__plugin_admin_admin__public-hostname, mcp__plugin_admin_admin__publish-site
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  name: librarian
3
3
  description: "Ingest documents (PDF, text, web pages), conversation transcripts (WhatsApp, Telegram, iMessage, Slack, meeting minutes), and LinkedIn exports into the memory graph. Delegate when the operator hands you a file or transcript that should land in the graph."
4
4
  summary: "Owns foreground ingest of documents, conversation transcripts, and external archives into the memory graph."
5
- model: claude-sonnet-4-5
5
+ model: claude-opus-4-8[1m]
6
6
  tools: mcp__plugin_memory_memory__memory-ingest-extract, mcp__plugin_memory_memory__memory-ingest, mcp__plugin_memory_memory__memory-ingest-web, mcp__plugin_memory_memory__memory-archive-write, mcp__plugin_memory_memory__memory-write, mcp__plugin_memory_memory__memory-update, mcp__plugin_memory_memory__memory-edge, mcp__plugin_memory_memory__memory-search, mcp__plugin_memory_memory__conversation-archive-list-chunks, mcp__plugin_memory_memory__conversation-archive-derive-insights, mcp__plugin_memory_memory__conversation-archive-enrich-rejection, mcp__plugin_contacts_contacts__contact-create, mcp__plugin_work_work__work-create, mcp__plugin_url-get_url-get__url-get, Read, Bash, Skill, WebFetch
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  name: research-assistant
3
3
  description: "Deep research on the web, knowledge management, and writing structured summaries with citations from multiple sources. Delegate when the operator wants you to research a topic, read web pages, combine findings into a summary, or reorganise stored knowledge."
4
4
  summary: "Researches topics online, manages your knowledge graph, and produces supporting visuals."
5
- model: claude-opus-4-7
5
+ model: claude-opus-4-8[1m]
6
6
  tools: WebSearch, WebFetch, Skill, mcp__plugin_memory_memory__memory-search, mcp__plugin_memory_memory__memory-write, mcp__plugin_memory_memory__memory-reindex, mcp__plugin_replicate_replicate__image-generate, mcp__plugin_browser_browser__browser-render, mcp__plugin_url-get_url-get__url-get
7
7
  ---
8
8
 
@@ -117,7 +117,7 @@ References: `references/data-room-structure.md` for the section-by-section purpo
117
117
 
118
118
  ## Stage 3 — Business plan synthesis
119
119
 
120
- **Before drafting any narrative prose**, call `voice-retrieve-conditioning` with `format: "article"`, `length: "long"`, and `topic` set to the venture's domain (e.g. "AI estate-agent operating system"). When the tool returns a non-null `styleCard`, the founder has a voice profile on file — condition every prose section on the style card and exemplars so the business plan reads as the founder's own writing, not generic VC boilerplate. When the tool returns `{styleCard: null, exemplars: []}` (no profile, or `writer-craft` not enabled), draft in the formal-yet-direct register implied by the section purpose statements without further conditioning. Emit narration `[investor-data-room] voice-mirror styleCardBytes=<n> exemplars=<k>` when conditioning was applied.
120
+ **Before drafting any narrative prose**, call `voice-retrieve-conditioning` with `format: "article"`, `length: "long"`, `scope: "org"`, and `topic` set to the venture's domain (e.g. "AI estate-agent operating system"). An investor document goes out under the venture's name, so it uses the **house voice** (`scope: "org"`), not any one founder's personal voice. When the tool returns a non-null `styleCard` (`status` of `ok` or `fallback-org`), condition every prose section on the style card and exemplars so the business plan reads as the house's own writing, not generic VC boilerplate. When `status` is `no-data` or `error`, draft in the formal-yet-direct register implied by the section purpose statements without further conditioning. Emit narration `[investor-data-room] voice-mirror styleCardBytes=<n> exemplars=<k>` when conditioning was applied.
121
121
 
122
122
  Generate `01-narrative/business-plan.md` with **16 sections** following the canonical structure:
123
123
 
@@ -106,10 +106,10 @@ Voice-mirror introduces five deterministic plugin tools. They route writes throu
106
106
 
107
107
  | Tool | Purpose |
108
108
  |------|---------|
109
- | `voice-tag-content` | Stamp `authorshipMode ∈ {human-only, human-led-agent-assisted, agent-led-human-reviewed, agent-only, unknown}` and `format ∈ {text, email, social-post, article, note, marketing-copy}` on one or many `:KnowledgeDocument | :Message | :SocialPost` nodes (email threads live as `:KnowledgeDocument {source:'email'}` since Task 321). Bulk-mode for backfill batches. `format` is required — the operator's editorial classification of the content. |
110
- | `voice-distil-profile` | Three modes. `mode='sample'` (default) walks the operator's full `human-only` corpus for the given `format` and returns exemplars + recent edit intents for the agent to compose a style card; cadence-guarded (≥20% growth or ≥30 days). `mode='amend'` (Task 472) reads only `nodeIds` plus the existing `:VoiceProfile.styleCard` so the agent can decide whether named documents move the profile — operator-initiated, no cadence guard. `mode='write'` persists the YAML card; supply `amendedFromNodeIds` to attribute the write to specific documents (bypasses cadence + corpus walk). Trashed nodes are excluded from every walk. Omit `format` on `'sample'` to enumerate all formats in the corpus and distil each. |
111
- | `voice-retrieve-conditioning` | Return `{styleCard, exemplars[]}` for a drafting brief. Requires `brief.format` (one of the six corpus formats). K=5 short-form (`brief.length:'short'`), K=15 long-form (`brief.length:'long'`). Token-budget bounded. Graceful degradation: empty profile → `{styleCard: null, exemplars: []}`. |
112
- | `voice-record-feedback` | Capture an operator edit on an agent draft as a `:VoiceEdit {format}` with a Haiku-summarised `intent`, linked back to the operator's per-format `:VoiceProfile` via `:FEEDBACK_FOR`. Requires `format`. |
109
+ | `voice-tag-content` | Stamp `authorshipMode ∈ {human-only, human-led-agent-assisted, agent-led-human-reviewed, agent-only, unknown}`, `format ∈ {text, email, social-post, article, note, marketing-copy}`, and `voiceAuthor` on one or many `:KnowledgeDocument | :Message | :SocialPost` nodes (email threads live as `:KnowledgeDocument {source:'email'}` since Task 321). Bulk-mode for backfill batches. `format` is required. `author` is optional omit to attribute to the tagging operator (Task 676). |
110
+ | `voice-distil-profile` | Three modes, scope-aware (Task 676: `scope='personal'` default walks one author; `scope='org'` walks the whole account onto the business). `mode='sample'` (default) walks the `human-only` corpus for the given `format`/`scope` and returns exemplars + recent edit intents for the agent to compose a style card; cadence-guarded (≥20% growth or ≥30 days). `mode='amend'` (Task 472) reads only `nodeIds` plus the existing `:VoiceProfile.styleCard` so the agent can decide whether named documents move the profile — operator-initiated, no cadence guard. `mode='write'` persists the YAML card; supply `amendedFromNodeIds` to attribute the write to specific documents (bypasses cadence + corpus walk). Trashed nodes are excluded from every walk. Omit `format` on `'sample'` to enumerate all formats in that scope's corpus and distil each. |
111
+ | `voice-retrieve-conditioning` | Return `{styleCard, exemplars[], status}` for a drafting brief. Requires `brief.format` (one of the six corpus formats). `brief.scope` (default `personal`) picks personal vs org voice; a personal request with no personal profile falls back to the org profile (`status='fallback-org'`, Task 676). K=5 short-form (`brief.length:'short'`), K=15 long-form (`brief.length:'long'`). Token-budget bounded. `status {ok, fallback-org, no-data, error}`. |
112
+ | `voice-record-feedback` | Capture an operator edit on an agent draft as a `:VoiceEdit {format, scope}` with a Haiku-summarised `intent`, linked back to the scoped per-format `:VoiceProfile` via `:FEEDBACK_FOR` (org edits → org profile; editor preserved via `:AUTHORED`, Task 676). Requires `format`. |
113
113
  | `voice-ingest-session-text` | Write operator turns from the current session as `:Message {format:'text', authorshipMode:'human-only'}` corpus nodes. The agent reads its own operator turns from context and passes them as `turns`. Deduplicates via SHA256 `contentHash`. Invoked on demand by the voice-mirror skill when the operator asks to capture this session's voice. |
114
114
 
115
115
  The non-voice skills continue to operate via existing platform tools (`memory-search` for knowledge retrieval). Structured choices are still presented as numbered lists in plain chat — the platform has no inline-UI component primitive on the admin / native-CC surface.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAmB,gBAAgB,EAAuB,MAAM,8BAA8B,CAAC;AAkZtG,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAuC,gBAAgB,EAAuB,MAAM,8BAA8B,CAAC;AA4b1H,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -3,7 +3,7 @@ initStderrTee("writer-craft");
3
3
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
4
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
5
5
  import { z } from "zod";
6
- import { voiceTagContent, AUTHORSHIP_MODES } from "./tools/voice-tag-content.js";
6
+ import { voiceTagContent, resolveVoiceAuthor, AUTHORSHIP_MODES } from "./tools/voice-tag-content.js";
7
7
  import { voiceDistilProfile } from "./tools/voice-distil-profile.js";
8
8
  import { voiceRetrieveConditioning } from "./tools/voice-retrieve-conditioning.js";
9
9
  import { voiceRecordFeedback } from "./tools/voice-record-feedback.js";
@@ -40,6 +40,11 @@ function resolveUserId() {
40
40
  }
41
41
  // Format enum schema — shared across tools that accept VoiceFormat.
42
42
  const zFormat = z.enum([...FORMAT_VALUES]).describe("Writing format: text | email | social-post | article | marketing-copy | note. One :VoiceProfile per (accountId, userId, format).");
43
+ // Scope enum schema — shared across distil / retrieve / feedback (Task 676).
44
+ const zScope = z
45
+ .enum(["personal", "org"])
46
+ .optional()
47
+ .describe("Voice scope: 'personal' (default) = the operator's own voice, distilled from their author-tagged content and anchored on :AdminUser. 'org' = the account/house voice, distilled from the whole account and anchored on :LocalBusiness under the reserved userId '__org__'.");
43
48
  server.tool("voice-tag-content", "Stamp authorshipMode and format on one or many content nodes (:KnowledgeDocument | :Message | :SocialPost) the operator owns. Email threads live as :KnowledgeDocument {source:'email'} since Task 321. Valid modes: human-only, human-led-agent-assisted, agent-led-human-reviewed, agent-only, unknown. Valid formats: text, email, social-post, article, marketing-copy, note. format is editorial — the operator chooses it per node; the tool does not infer it.", {
44
49
  nodeIds: z.array(z.string()).min(1).describe("Element IDs of nodes to tag"),
45
50
  mode: z
@@ -52,21 +57,45 @@ server.tool("voice-tag-content", "Stamp authorshipMode and format on one or many
52
57
  ])
53
58
  .describe("Authorship mode to apply"),
54
59
  format: zFormat.describe("Writing format. Required — the operator's editorial classification of the content."),
55
- }, async ({ nodeIds, mode, format }) => {
60
+ userId: z
61
+ .string()
62
+ .optional()
63
+ .describe("Operator AdminUser id. Defaults to ADMIN_USER_ID env. Used as the default author when `author` is omitted."),
64
+ author: z
65
+ .string()
66
+ .optional()
67
+ .describe("voiceAuthor userId to stamp on the nodes. Omit to attribute to the tagging operator — single-operator accounts get personal attribution for free."),
68
+ }, async ({ nodeIds, mode, format, userId, author }) => {
56
69
  if (!accountId)
57
70
  return refuseNoAccount("voice-tag-content");
71
+ let voiceAuthor;
72
+ try {
73
+ voiceAuthor = resolveVoiceAuthor(author, userId ?? resolveUserId());
74
+ }
75
+ catch (err) {
76
+ return {
77
+ content: [
78
+ {
79
+ type: "text",
80
+ text: err instanceof Error ? err.message : String(err),
81
+ },
82
+ ],
83
+ isError: true,
84
+ };
85
+ }
58
86
  try {
59
87
  const result = await voiceTagContent({
60
88
  nodeIds,
61
89
  mode: mode,
62
90
  accountId,
63
91
  format: format,
92
+ voiceAuthor,
64
93
  });
65
94
  return {
66
95
  content: [
67
96
  {
68
97
  type: "text",
69
- text: `voice-tag: mode=${mode} format=${format} updated=${result.updated} skipped=${result.skipped}`,
98
+ text: `voice-tag: mode=${mode} format=${format} author=${voiceAuthor} updated=${result.updated} skipped=${result.skipped}`,
70
99
  },
71
100
  ],
72
101
  };
@@ -83,7 +112,7 @@ server.tool("voice-tag-content", "Stamp authorshipMode and format on one or many
83
112
  };
84
113
  }
85
114
  });
86
- server.tool("voice-distil-profile", "Three-mode tool. mode='sample' (default) walks the operator's full per-format human-only corpus and returns exemplars + recent edit intents for the agent to compose a fresh style card; cadence-guarded (≥20% corpus growth OR ≥30 days). mode='amend' (Task 472) reads only the named documents plus the existing :VoiceProfile.styleCard so the agent can decide whether one or more specific documents move the profile — operator-initiated, no cadence guard. mode='write' persists the YAML style card the agent composed; supply amendedFromNodeIds to attribute the write to specific documents (Task 472, bypasses cadence + corpus walk; existing LEARNED_FROM edges remain via MERGE). Trashed nodes are excluded from every walk. When format is omitted on 'sample', enumerates all formats in the corpus and distils each.", {
115
+ server.tool("voice-distil-profile", "Three-mode tool. mode='sample' (default) walks the operator's full per-format human-only corpus and returns exemplars + recent edit intents for the agent to compose a fresh style card; cadence-guarded (≥20% corpus growth OR ≥30 days). mode='amend' (Task 472) reads only the named documents plus the existing :VoiceProfile.styleCard so the agent can decide whether one or more specific documents move the profile — operator-initiated, no cadence guard. mode='write' persists the YAML style card the agent composed; supply amendedFromNodeIds to attribute the write to specific documents (Task 472, bypasses cadence + corpus walk; existing LEARNED_FROM edges remain via MERGE). Trashed nodes are excluded from every walk. When format is omitted on 'sample', enumerates all formats in the corpus and distils each. scope (Task 676): 'personal' (default) distils the operator's author-tagged content; 'org' distils the whole account into the house voice anchored on the business.", {
87
116
  userId: z
88
117
  .string()
89
118
  .optional()
@@ -109,7 +138,8 @@ server.tool("voice-distil-profile", "Three-mode tool. mode='sample' (default) wa
109
138
  .array(z.string())
110
139
  .optional()
111
140
  .describe("Optional for mode='write' after an amend sample. ElementIds the agent decided actually moved the profile. Each becomes a LEARNED_FROM edge from the persisted :VoiceProfile. Setting this routes the write through the amend-write path (no corpus walk, cadence bypassed)."),
112
- }, async ({ userId, format, force, mode, styleCardYaml, nodeIds, amendedFromNodeIds }) => {
141
+ scope: zScope,
142
+ }, async ({ userId, format, force, mode, styleCardYaml, nodeIds, amendedFromNodeIds, scope }) => {
113
143
  if (!accountId)
114
144
  return refuseNoAccount("voice-distil-profile");
115
145
  const resolvedUserId = userId ?? resolveUserId();
@@ -134,6 +164,7 @@ server.tool("voice-distil-profile", "Three-mode tool. mode='sample' (default) wa
134
164
  styleCardYaml,
135
165
  nodeIds,
136
166
  amendedFromNodeIds,
167
+ scope: scope,
137
168
  });
138
169
  // Summarise single-format or multi-format result.
139
170
  const summariseOne = (r, fmt) => {
@@ -171,7 +202,7 @@ server.tool("voice-distil-profile", "Three-mode tool. mode='sample' (default) wa
171
202
  };
172
203
  }
173
204
  });
174
- server.tool("voice-retrieve-conditioning", "Return the operator's per-format style card and K voice-matched exemplars for a drafting brief. K=5 short-form (length='short'), K=15 long-form (length='long'). Token-budget bounded. format is required (the writing type: text|email|social-post|article|marketing-copy|note). Returns {styleCard, exemplars, status} where status is one of: 'ok' (profile and/or exemplars returned), 'no-data' (no profile exists and the corpus is empty), 'error' (the lookup failed — carries an error message). Drafting falls back to default register on both 'no-data' and 'error', but only 'no-data' means 'you have no voice profile yet' — never report no-profile on 'error'.", {
205
+ server.tool("voice-retrieve-conditioning", "Return the operator's per-format style card and K voice-matched exemplars for a drafting brief. K=5 short-form (length='short'), K=15 long-form (length='long'). Token-budget bounded. format is required (the writing type: text|email|social-post|article|marketing-copy|note). scope (Task 676): 'personal' (default) returns the caller's own voice; 'org' returns the account/house voice. A personal request with no personal profile/corpus falls back to the org profile (status 'fallback-org'). Returns {styleCard, exemplars, status} where status is one of: 'ok', 'fallback-org' (personal asked, org returned), 'no-data' (no profile and empty corpus for the scope), 'error' (lookup failed — carries a message). Drafting falls back to default register on 'no-data' and 'error' and injects the org card on 'fallback-org'; only 'no-data' means 'you have no voice profile yet' — never report no-profile on 'error'.", {
175
206
  userId: z
176
207
  .string()
177
208
  .optional()
@@ -186,8 +217,9 @@ server.tool("voice-retrieve-conditioning", "Return the operator's per-format sty
186
217
  .optional()
187
218
  .describe("K-selector: short = K=5 (16k tokens, email/post); long = K=15 (96k tokens, brochure/prospectus). Defaults to short."),
188
219
  register: z.string().optional().describe("Optional register hint"),
220
+ scope: zScope,
189
221
  tokenBudget: z.number().int().positive().optional(),
190
- }, async ({ userId, format, topic, length, register, tokenBudget }) => {
222
+ }, async ({ userId, format, topic, length, register, scope, tokenBudget }) => {
191
223
  if (!accountId)
192
224
  return refuseNoAccount("voice-retrieve-conditioning");
193
225
  const resolvedUserId = userId ?? resolveUserId();
@@ -217,6 +249,7 @@ server.tool("voice-retrieve-conditioning", "Return the operator's per-format sty
217
249
  topic,
218
250
  length: length,
219
251
  register,
252
+ scope: scope,
220
253
  },
221
254
  tokenBudget,
222
255
  });
@@ -247,7 +280,7 @@ server.tool("voice-retrieve-conditioning", "Return the operator's per-format sty
247
280
  };
248
281
  }
249
282
  });
250
- server.tool("voice-record-feedback", "Capture an operator's edit on an agent draft. Writes :VoiceEdit linked to the per-format :VoiceProfile via :FEEDBACK_FOR. The calling agent supplies `intent` (one sentence describing what changed and what voice preference it reveals — Task 424) and `format` (the writing format of the draft).", {
283
+ server.tool("voice-record-feedback", "Capture an operator's edit on an agent draft. Writes :VoiceEdit linked to the per-format :VoiceProfile via :FEEDBACK_FOR. The calling agent supplies `intent` (one sentence describing what changed and what voice preference it reveals — Task 424) and `format` (the writing format of the draft). scope (Task 676): 'org' routes the edit to the account/house profile; 'personal' (default) to the operator's own. The editor is always preserved via the AUTHORED edge.", {
251
284
  userId: z.string().optional(),
252
285
  format: zFormat.describe("Writing format of the draft being edited."),
253
286
  originalText: z.string().min(1),
@@ -258,7 +291,8 @@ server.tool("voice-record-feedback", "Capture an operator's edit on an agent dra
258
291
  .describe("One sentence summarising what changed and what voice preference it reveals — produced by the calling agent in-turn from originalText vs editedText (Task 424)."),
259
292
  skill: z.string().optional().describe("Calling skill name, for provenance"),
260
293
  brief: z.string().optional().describe("Drafting brief that produced the original"),
261
- }, async ({ userId, format, originalText, editedText, intent, skill, brief }) => {
294
+ scope: zScope,
295
+ }, async ({ userId, format, originalText, editedText, intent, skill, brief, scope }) => {
262
296
  if (!accountId)
263
297
  return refuseNoAccount("voice-record-feedback");
264
298
  const resolvedUserId = userId ?? resolveUserId();
@@ -281,6 +315,7 @@ server.tool("voice-record-feedback", "Capture an operator's edit on an agent dra
281
315
  originalText,
282
316
  editedText,
283
317
  intent,
318
+ scope: scope,
284
319
  context: { skill, brief },
285
320
  });
286
321
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AACtF,aAAa,CAAC,cAAc,CAAC,CAAC;AAE9B,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eA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E,MAAe;oBACrB,IAAI,EAAE,6EAA6E;iBACpF;aACF;YACD,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;IACD,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,sBAAsB,CAAC;YAC1C,KAAK;YACL,SAAS;YACT,MAAM,EAAE,cAAc;YACtB,SAAS;SACV,CAAC,CAAC;QACH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,4CAA4C,MAAM,CAAC,aAAa,iBAAiB,MAAM,CAAC,YAAY,cAAc,MAAM,CAAC,SAAS,IAAI,SAAS,EAAE;iBACxJ;aACF;SACF,CAAC;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,qCAAqC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;iBAC9F;aACF;YACD,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;AACH,CAAC,CACF,CAAC;AAEF,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAEhC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IAC/B,MAAM,WAAW,EAAE,CAAC;IACpB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,0DAA0D;AAC1D,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -83,4 +83,35 @@ export type VoiceFormat = (typeof FORMAT_VALUES)[number];
83
83
  * walks use this function.
84
84
  */
85
85
  export declare function voiceCorpusWhereWithFormat(format: VoiceFormat): string;
86
+ /**
87
+ * Reserved sentinel userId for the per-account org voice profile (Task 676).
88
+ *
89
+ * Keeps the `(accountId, userId, format)` UNIQUE constraint valid with no
90
+ * migration: exactly one org profile per `(account, format)`. A real
91
+ * `:AdminUser` must never hold this userId — `voice-distil-profile` surfaces
92
+ * a Neo4j constraint error (does not swallow it) if one does.
93
+ */
94
+ export declare const ORG_USER_ID = "__org__";
95
+ /**
96
+ * Voice profile scope. `personal` = one operator's own voice, keyed
97
+ * `(accountId, userId, format)` and anchored on `:AdminUser`. `org` = the
98
+ * account/house voice, keyed `(accountId, '__org__', format)` and anchored on
99
+ * `:LocalBusiness`.
100
+ */
101
+ export type VoiceScope = "personal" | "org";
102
+ /**
103
+ * The profile-key userId for a scope: the operator's own id for personal, the
104
+ * reserved sentinel for org. The single place that maps scope → key userId, so
105
+ * distillation, retrieval, and feedback agree on where an org profile lives.
106
+ */
107
+ export declare function profileUserIdForScope(scope: VoiceScope, userId: string): string;
108
+ /**
109
+ * `VOICE_CORPUS_WHERE` + format predicate + author predicate. Requires both
110
+ * `$format` and `$voiceAuthor` bound in the calling Cypher parameters.
111
+ *
112
+ * Personal distillation and personal retrieval use this to narrow the
113
+ * account-wide corpus to one author's content; org walks use the unchanged
114
+ * account-wide `voiceCorpusWhereWithFormat`.
115
+ */
116
+ export declare function voiceCorpusWhereWithFormatAndAuthor(format: VoiceFormat): string;
86
117
  //# sourceMappingURL=voice-corpus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"voice-corpus.d.ts","sourceRoot":"","sources":["../../src/lib/voice-corpus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,kBAAkB,QAU3B,CAAC;AAEL;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,yDAI1B,CAAC;AAEX;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,gFAOhB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAEtE"}
1
+ {"version":3,"file":"voice-corpus.d.ts","sourceRoot":"","sources":["../../src/lib/voice-corpus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,kBAAkB,QAU3B,CAAC;AAEL;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,yDAI1B,CAAC;AAEX;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,gFAOhB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAEtE;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,KAAK,CAAC;AAE5C;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAE/E;AAED;;;;;;;GAOG;AACH,wBAAgB,mCAAmC,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAE/E"}
@@ -107,4 +107,32 @@ export const FORMAT_VALUES = [
107
107
  export function voiceCorpusWhereWithFormat(format) {
108
108
  return `${VOICE_CORPUS_WHERE}\n AND n.format = $format`;
109
109
  }
110
+ /**
111
+ * Reserved sentinel userId for the per-account org voice profile (Task 676).
112
+ *
113
+ * Keeps the `(accountId, userId, format)` UNIQUE constraint valid with no
114
+ * migration: exactly one org profile per `(account, format)`. A real
115
+ * `:AdminUser` must never hold this userId — `voice-distil-profile` surfaces
116
+ * a Neo4j constraint error (does not swallow it) if one does.
117
+ */
118
+ export const ORG_USER_ID = "__org__";
119
+ /**
120
+ * The profile-key userId for a scope: the operator's own id for personal, the
121
+ * reserved sentinel for org. The single place that maps scope → key userId, so
122
+ * distillation, retrieval, and feedback agree on where an org profile lives.
123
+ */
124
+ export function profileUserIdForScope(scope, userId) {
125
+ return scope === "org" ? ORG_USER_ID : userId;
126
+ }
127
+ /**
128
+ * `VOICE_CORPUS_WHERE` + format predicate + author predicate. Requires both
129
+ * `$format` and `$voiceAuthor` bound in the calling Cypher parameters.
130
+ *
131
+ * Personal distillation and personal retrieval use this to narrow the
132
+ * account-wide corpus to one author's content; org walks use the unchanged
133
+ * account-wide `voiceCorpusWhereWithFormat`.
134
+ */
135
+ export function voiceCorpusWhereWithFormatAndAuthor(format) {
136
+ return `${VOICE_CORPUS_WHERE}\n AND n.format = $format\n AND n.voiceAuthor = $voiceAuthor`;
137
+ }
110
138
  //# sourceMappingURL=voice-corpus.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"voice-corpus.js","sourceRoot":"","sources":["../../src/lib/voice-corpus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa;IACtC,OAAO,UAAU,KAAK,oBAAoB,KAAK,uBAAuB,CAAC;AACzE,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;QAE1B,UAAU,CAAC,GAAG,CAAC;;;;;;cAMT,UAAU,CAAC,QAAQ,CAAC;;IAE9B,CAAC;AAEL;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,mBAAmB;IACnB,SAAS;IACT,YAAY;CACJ,CAAC;AAEX;;;;;;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,MAAM,UAAU,mCAAmC,CAAC,MAAmB;IACrE,OAAO,GAAG,kBAAkB,gEAAgE,CAAC;AAC/F,CAAC"}
@@ -1,7 +1,13 @@
1
- import { type VoiceFormat } from "../lib/voice-corpus.js";
1
+ import { type VoiceFormat, type VoiceScope } from "../lib/voice-corpus.js";
2
2
  export interface VoiceDistilProfileParams {
3
3
  accountId: string;
4
4
  userId: string;
5
+ /**
6
+ * Profile scope (Task 676). `'personal'` (default) distils the operator's
7
+ * own author-filtered corpus onto `:AdminUser`; `'org'` distils the whole
8
+ * account onto `:LocalBusiness` under the reserved sentinel userId.
9
+ */
10
+ scope?: VoiceScope;
5
11
  force?: boolean;
6
12
  /**
7
13
  * Writing format to distil. When omitted on `sample`, enumerates distinct