codex-coordination 0.0.0-stage → 0.5.2

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 (299) hide show
  1. package/.agents/plugins/marketplace.json +16 -0
  2. package/CHANGELOG.md +163 -0
  3. package/LICENSE +201 -0
  4. package/NOTICE +26 -0
  5. package/README.md +114 -2
  6. package/README.zh-CN.md +128 -0
  7. package/docs/AMP-INTEGRATION.md +107 -0
  8. package/docs/AMP-INVENTORY.json +57868 -0
  9. package/docs/COORDINATION-TOOLS.md +75 -0
  10. package/docs/LIVE-TOOL-TEST-2026-11-03.md +139 -0
  11. package/docs/NOTIFICATIONS.md +28 -0
  12. package/docs/PROTOCOL.md +79 -0
  13. package/package.json +99 -4
  14. package/playwright.config.ts +9 -0
  15. package/plugins/codex-coordination/.codex-plugin/plugin.json +51 -0
  16. package/plugins/codex-coordination/.mcp.json +43 -0
  17. package/plugins/codex-coordination/README.md +21 -0
  18. package/plugins/codex-coordination/app/THIRD_PARTY_LICENSES.md +782 -0
  19. package/plugins/codex-coordination/app/index.html +173 -0
  20. package/plugins/codex-coordination/assets/COORDINATION_THIRD_PARTY_LICENSES.md +2844 -0
  21. package/plugins/codex-coordination/assets/THIRD_PARTY_LICENSES.md +1871 -0
  22. package/plugins/codex-coordination/assets/composer-icon.svg +13 -0
  23. package/plugins/codex-coordination/assets/logo.svg +19 -0
  24. package/plugins/codex-coordination/mcp/amp/api.mjs +359 -0
  25. package/plugins/codex-coordination/mcp/amp/artifacts.mjs +50 -0
  26. package/plugins/codex-coordination/mcp/amp/cognitive.mjs +134 -0
  27. package/plugins/codex-coordination/mcp/amp/config.mjs +22 -0
  28. package/plugins/codex-coordination/mcp/amp/connections.mjs +287 -0
  29. package/plugins/codex-coordination/mcp/amp/file-ports.mjs +65 -0
  30. package/plugins/codex-coordination/mcp/amp/hooks.mjs +57 -0
  31. package/plugins/codex-coordination/mcp/amp/host-client.mjs +50 -0
  32. package/plugins/codex-coordination/mcp/amp/host.mjs +1425 -0
  33. package/plugins/codex-coordination/mcp/amp/keys.mjs +155 -0
  34. package/plugins/codex-coordination/mcp/amp/registries.mjs +256 -0
  35. package/plugins/codex-coordination/mcp/amp/retrieval.mjs +463 -0
  36. package/plugins/codex-coordination/mcp/amp/runtime.mjs +352400 -0
  37. package/plugins/codex-coordination/mcp/amp/schemas.mjs +1710 -0
  38. package/plugins/codex-coordination/mcp/amp/search-process.mjs +63 -0
  39. package/plugins/codex-coordination/mcp/amp/search.mjs +399 -0
  40. package/plugins/codex-coordination/mcp/amp/workspace.mjs +820 -0
  41. package/plugins/codex-coordination/mcp/contracts.mjs +18 -0
  42. package/plugins/codex-coordination/mcp/coordination/host.mjs +432 -0
  43. package/plugins/codex-coordination/mcp/coordination/runtime.mjs +148783 -0
  44. package/plugins/codex-coordination/mcp/coordination/schema.mjs +1131 -0
  45. package/plugins/codex-coordination/mcp/coordination/tools.mjs +1157 -0
  46. package/plugins/codex-coordination/mcp/guidance.mjs +8 -0
  47. package/plugins/codex-coordination/mcp/lib/amp.mjs +606 -0
  48. package/plugins/codex-coordination/mcp/lib/check.mjs +244 -0
  49. package/plugins/codex-coordination/mcp/lib/collaboration.mjs +245 -0
  50. package/plugins/codex-coordination/mcp/lib/dashboard.mjs +31 -0
  51. package/plugins/codex-coordination/mcp/lib/goals.mjs +212 -0
  52. package/plugins/codex-coordination/mcp/lib/plans.mjs +454 -0
  53. package/plugins/codex-coordination/mcp/lib/protocol.mjs +8245 -0
  54. package/plugins/codex-coordination/mcp/lib/status.mjs +110 -0
  55. package/plugins/codex-coordination/mcp/lib/store.mjs +337 -0
  56. package/plugins/codex-coordination/mcp/lib/tools.mjs +541 -0
  57. package/plugins/codex-coordination/mcp/server.mjs +7944 -0
  58. package/plugins/codex-coordination/scripts/launch-mcp.cmd +43 -0
  59. package/plugins/codex-coordination/skills/amp-collaboration/SKILL.md +16 -0
  60. package/plugins/codex-coordination/skills/amp-delegation/SKILL.md +18 -0
  61. package/plugins/codex-coordination/skills/amp-duties/SKILL.md +22 -0
  62. package/plugins/codex-coordination/skills/amp-goals/SKILL.md +22 -0
  63. package/plugins/codex-coordination/skills/amp-handoffs/SKILL.md +22 -0
  64. package/plugins/codex-coordination/skills/amp-missions/SKILL.md +22 -0
  65. package/plugins/codex-coordination/skills/amp-planning/SKILL.md +18 -0
  66. package/plugins/codex-coordination/skills/amp-plans/SKILL.md +24 -0
  67. package/plugins/codex-coordination/skills/amp-runtime/SKILL.md +42 -0
  68. package/plugins/codex-coordination/skills/coordination-audit/SKILL.md +87 -0
  69. package/plugins/codex-coordination/skills/coordination-goals/SKILL.md +77 -0
  70. package/plugins/codex-coordination/skills/coordination-handoffs/SKILL.md +86 -0
  71. package/plugins/codex-coordination/skills/coordination-planning/SKILL.md +108 -0
  72. package/scripts/amp-conformance.mjs +435 -0
  73. package/scripts/amp-search-smoke.mjs +57 -0
  74. package/scripts/amp-snapshot.mjs +74 -0
  75. package/scripts/build-coordination.mjs +60 -0
  76. package/scripts/build.mjs +49 -0
  77. package/scripts/context-benchmark.mjs +19 -0
  78. package/scripts/inventory-amp.mjs +68 -0
  79. package/scripts/inventory-coordination.mjs +16 -0
  80. package/scripts/mcp-smoke.mjs +422 -0
  81. package/scripts/package-smoke.mjs +18 -0
  82. package/scripts/validate.mjs +236 -0
  83. package/src/app/AmpWorkbench.tsx +63 -0
  84. package/src/app/Dashboard.tsx +161 -0
  85. package/src/app/Notifications.tsx +70 -0
  86. package/src/app/bridge.ts +35 -0
  87. package/src/app/index.html +5 -0
  88. package/src/app/main.tsx +6 -0
  89. package/src/app/style.css +59 -0
  90. package/src/mcp/amp/api.mts +318 -0
  91. package/src/mcp/amp/artifacts.mts +41 -0
  92. package/src/mcp/amp/catalog.json +1 -0
  93. package/src/mcp/amp/cognitive.mts +98 -0
  94. package/src/mcp/amp/config.mts +32 -0
  95. package/src/mcp/amp/connections.mts +212 -0
  96. package/src/mcp/amp/file-ports.mts +52 -0
  97. package/src/mcp/amp/hooks.mts +45 -0
  98. package/src/mcp/amp/host-client.mts +27 -0
  99. package/src/mcp/amp/host.mts +360 -0
  100. package/src/mcp/amp/keys.mts +129 -0
  101. package/src/mcp/amp/registries.mts +195 -0
  102. package/src/mcp/amp/retrieval.mts +119 -0
  103. package/src/mcp/amp/runtime.mts +64 -0
  104. package/src/mcp/amp/schemas.mts +36 -0
  105. package/src/mcp/amp/search-process.mts +41 -0
  106. package/src/mcp/amp/search.mts +48 -0
  107. package/src/mcp/amp/workspace.mts +123 -0
  108. package/src/mcp/contracts.mts +75 -0
  109. package/src/mcp/coordination/catalog.json +1117 -0
  110. package/src/mcp/coordination/host.mts +73 -0
  111. package/src/mcp/coordination/runtime.d.mts +10 -0
  112. package/src/mcp/coordination/schema.mts +7 -0
  113. package/src/mcp/coordination/tools.mts +31 -0
  114. package/src/mcp/guidance.mts +1 -0
  115. package/src/mcp/lib/amp.mts +394 -0
  116. package/src/mcp/lib/check.mts +279 -0
  117. package/src/mcp/lib/collaboration.mts +348 -0
  118. package/src/mcp/lib/dashboard.mts +22 -0
  119. package/src/mcp/lib/goals.mts +286 -0
  120. package/src/mcp/lib/plans.mts +548 -0
  121. package/src/mcp/lib/protocol.mts +43 -0
  122. package/src/mcp/lib/status.mts +154 -0
  123. package/src/mcp/lib/store.mts +520 -0
  124. package/src/mcp/lib/tools.mts +628 -0
  125. package/src/mcp/server.mts +286 -0
  126. package/test/amp-connections.test.mjs +141 -0
  127. package/test/amp-domains.test.mjs +265 -0
  128. package/test/amp-host.test.mjs +110 -0
  129. package/test/amp.test.mjs +142 -0
  130. package/test/browser/dashboard.spec.ts +168 -0
  131. package/test/check.test.mjs +145 -0
  132. package/test/collaboration.test.mjs +198 -0
  133. package/test/coordination-tools.test.mjs +104 -0
  134. package/test/goals.test.mjs +142 -0
  135. package/test/helpers.mjs +164 -0
  136. package/test/plans.test.mjs +209 -0
  137. package/test/protocol.test.mjs +62 -0
  138. package/test/retrieval.test.mjs +63 -0
  139. package/test/store.test.mjs +147 -0
  140. package/tsconfig.app.json +24 -0
  141. package/tsconfig.json +23 -0
  142. package/vendor/coordination-runtime/LICENSE +201 -0
  143. package/vendor/coordination-runtime/NOTICE +12 -0
  144. package/vendor/coordination-runtime/SNAPSHOT.json +642 -0
  145. package/vendor/coordination-runtime/entry.ts +71 -0
  146. package/vendor/coordination-runtime/fs-async.ts +8 -0
  147. package/vendor/coordination-runtime/fs-guard.ts +19 -0
  148. package/vendor/coordination-runtime/fs-sync.ts +10 -0
  149. package/vendor/coordination-runtime/locale/en.json +6 -0
  150. package/vendor/coordination-runtime/locale/zh.json +6 -0
  151. package/vendor/coordination-runtime/package.json +123 -0
  152. package/vendor/coordination-runtime/src/host/adapters/sqlite/executionStore.ts +87 -0
  153. package/vendor/coordination-runtime/src/host/adapters/sqlite/professionStore.ts +120 -0
  154. package/vendor/coordination-runtime/src/host/adapters/sqlite/traceStore.ts +66 -0
  155. package/vendor/coordination-runtime/src/host/adapters/sqlite/turnStore.ts +126 -0
  156. package/vendor/coordination-runtime/src/host/amp.ts +1729 -0
  157. package/vendor/coordination-runtime/src/host/ampCollaboration.ts +192 -0
  158. package/vendor/coordination-runtime/src/host/ampCollaborationTools.ts +166 -0
  159. package/vendor/coordination-runtime/src/host/ampExtensions.ts +276 -0
  160. package/vendor/coordination-runtime/src/host/ampPlanning.ts +549 -0
  161. package/vendor/coordination-runtime/src/host/ampPlanningTools.ts +248 -0
  162. package/vendor/coordination-runtime/src/host/ampRoutes.ts +375 -0
  163. package/vendor/coordination-runtime/src/host/ampScope.ts +251 -0
  164. package/vendor/coordination-runtime/src/host/ampSkills.ts +316 -0
  165. package/vendor/coordination-runtime/src/host/ampStore.ts +262 -0
  166. package/vendor/coordination-runtime/src/host/ampSubagents.ts +81 -0
  167. package/vendor/coordination-runtime/src/host/approve.ts +248 -0
  168. package/vendor/coordination-runtime/src/host/approveTools.ts +201 -0
  169. package/vendor/coordination-runtime/src/host/bayesian.ts +1105 -0
  170. package/vendor/coordination-runtime/src/host/cache.ts +296 -0
  171. package/vendor/coordination-runtime/src/host/cacheStrategy.ts +710 -0
  172. package/vendor/coordination-runtime/src/host/chain.ts +1697 -0
  173. package/vendor/coordination-runtime/src/host/cognition.ts +630 -0
  174. package/vendor/coordination-runtime/src/host/command.ts +201 -0
  175. package/vendor/coordination-runtime/src/host/compact.ts +210 -0
  176. package/vendor/coordination-runtime/src/host/compactionState.ts +88 -0
  177. package/vendor/coordination-runtime/src/host/comprehension.ts +1980 -0
  178. package/vendor/coordination-runtime/src/host/config.ts +557 -0
  179. package/vendor/coordination-runtime/src/host/control.ts +811 -0
  180. package/vendor/coordination-runtime/src/host/controlRoutes.ts +300 -0
  181. package/vendor/coordination-runtime/src/host/controlTools.ts +646 -0
  182. package/vendor/coordination-runtime/src/host/coordination.ts +1555 -0
  183. package/vendor/coordination-runtime/src/host/database.ts +1482 -0
  184. package/vendor/coordination-runtime/src/host/directive.ts +84 -0
  185. package/vendor/coordination-runtime/src/host/dsh.ts +690 -0
  186. package/vendor/coordination-runtime/src/host/emotion.ts +900 -0
  187. package/vendor/coordination-runtime/src/host/environment.ts +252 -0
  188. package/vendor/coordination-runtime/src/host/executionStore.ts +18 -0
  189. package/vendor/coordination-runtime/src/host/fileGate.ts +389 -0
  190. package/vendor/coordination-runtime/src/host/goal.ts +168 -0
  191. package/vendor/coordination-runtime/src/host/graphIndex.ts +145 -0
  192. package/vendor/coordination-runtime/src/host/graphStore.ts +619 -0
  193. package/vendor/coordination-runtime/src/host/graphView.ts +5205 -0
  194. package/vendor/coordination-runtime/src/host/handle.ts +50 -0
  195. package/vendor/coordination-runtime/src/host/harnessSync.ts +474 -0
  196. package/vendor/coordination-runtime/src/host/knowledge.ts +305 -0
  197. package/vendor/coordination-runtime/src/host/leanSchemas.ts +66 -0
  198. package/vendor/coordination-runtime/src/host/learning.ts +546 -0
  199. package/vendor/coordination-runtime/src/host/modelBrand.ts +289 -0
  200. package/vendor/coordination-runtime/src/host/module.ts +355 -0
  201. package/vendor/coordination-runtime/src/host/nodeRegistry.ts +629 -0
  202. package/vendor/coordination-runtime/src/host/notify.ts +306 -0
  203. package/vendor/coordination-runtime/src/host/notifyTools.ts +215 -0
  204. package/vendor/coordination-runtime/src/host/orchestration.ts +1101 -0
  205. package/vendor/coordination-runtime/src/host/organization.ts +586 -0
  206. package/vendor/coordination-runtime/src/host/parseService.ts +1540 -0
  207. package/vendor/coordination-runtime/src/host/permission.ts +547 -0
  208. package/vendor/coordination-runtime/src/host/plan.ts +1172 -0
  209. package/vendor/coordination-runtime/src/host/predict.ts +624 -0
  210. package/vendor/coordination-runtime/src/host/profession.ts +447 -0
  211. package/vendor/coordination-runtime/src/host/professionStore.ts +49 -0
  212. package/vendor/coordination-runtime/src/host/provider.ts +446 -0
  213. package/vendor/coordination-runtime/src/host/proxyAdapter.ts +308 -0
  214. package/vendor/coordination-runtime/src/host/proxyService.ts +881 -0
  215. package/vendor/coordination-runtime/src/host/resource.ts +830 -0
  216. package/vendor/coordination-runtime/src/host/row.ts +372 -0
  217. package/vendor/coordination-runtime/src/host/score.ts +206 -0
  218. package/vendor/coordination-runtime/src/host/search.ts +354 -0
  219. package/vendor/coordination-runtime/src/host/searchTools.ts +179 -0
  220. package/vendor/coordination-runtime/src/host/selection.ts +863 -0
  221. package/vendor/coordination-runtime/src/host/session.ts +109 -0
  222. package/vendor/coordination-runtime/src/host/settingsStore.ts +88 -0
  223. package/vendor/coordination-runtime/src/host/stateCard.ts +164 -0
  224. package/vendor/coordination-runtime/src/host/takeover.ts +309 -0
  225. package/vendor/coordination-runtime/src/host/takeoverGate.ts +706 -0
  226. package/vendor/coordination-runtime/src/host/texSync.ts +125 -0
  227. package/vendor/coordination-runtime/src/host/text/book.ts +887 -0
  228. package/vendor/coordination-runtime/src/host/text/cFamily.ts +1769 -0
  229. package/vendor/coordination-runtime/src/host/text/cache.ts +170 -0
  230. package/vendor/coordination-runtime/src/host/text/dependency.ts +325 -0
  231. package/vendor/coordination-runtime/src/host/text/formula.ts +1353 -0
  232. package/vendor/coordination-runtime/src/host/text/index.ts +186 -0
  233. package/vendor/coordination-runtime/src/host/text/java.ts +1535 -0
  234. package/vendor/coordination-runtime/src/host/text/javascript.ts +2408 -0
  235. package/vendor/coordination-runtime/src/host/text/markup.ts +3589 -0
  236. package/vendor/coordination-runtime/src/host/text/maven.ts +673 -0
  237. package/vendor/coordination-runtime/src/host/text/npm.ts +581 -0
  238. package/vendor/coordination-runtime/src/host/text/office.ts +1635 -0
  239. package/vendor/coordination-runtime/src/host/text/parser.ts +1827 -0
  240. package/vendor/coordination-runtime/src/host/text/php.ts +1458 -0
  241. package/vendor/coordination-runtime/src/host/text/python.ts +1131 -0
  242. package/vendor/coordination-runtime/src/host/text/rust.ts +1392 -0
  243. package/vendor/coordination-runtime/src/host/text/sentence.ts +349 -0
  244. package/vendor/coordination-runtime/src/host/text/tex.ts +1278 -0
  245. package/vendor/coordination-runtime/src/host/text/tokenizer.ts +528 -0
  246. package/vendor/coordination-runtime/src/host/token.ts +1393 -0
  247. package/vendor/coordination-runtime/src/host/toolCatalog.ts +197 -0
  248. package/vendor/coordination-runtime/src/host/toolProfiles.ts +58 -0
  249. package/vendor/coordination-runtime/src/host/toolTiming.ts +78 -0
  250. package/vendor/coordination-runtime/src/host/tools.ts +4180 -0
  251. package/vendor/coordination-runtime/src/host/trace.ts +125 -0
  252. package/vendor/coordination-runtime/src/host/tracePort.ts +24 -0
  253. package/vendor/coordination-runtime/src/host/traceStore.ts +9 -0
  254. package/vendor/coordination-runtime/src/host/turn.ts +450 -0
  255. package/vendor/coordination-runtime/src/host/turnStore.ts +55 -0
  256. package/vendor/coordination-runtime/src/host/workspaceTools.ts +337 -0
  257. package/vendor/coordination-runtime/src/protocol/canonical.ts +39 -0
  258. package/vendor/coordination-runtime/src/protocol/envelope.ts +624 -0
  259. package/vendor/coordination-runtime/src/protocol/errors.ts +47 -0
  260. package/vendor/coordination-runtime/src/protocol/frame.ts +543 -0
  261. package/vendor/coordination-runtime/src/protocol/ids.ts +33 -0
  262. package/vendor/coordination-runtime/src/protocol/index.ts +29 -0
  263. package/vendor/coordination-runtime/src/protocol/ledger.ts +926 -0
  264. package/vendor/coordination-runtime/src/protocol/manifest.ts +278 -0
  265. package/vendor/coordination-runtime/src/protocol/plan.ts +224 -0
  266. package/vendor/coordination-runtime/src/protocol/receipt.ts +235 -0
  267. package/vendor/coordination-runtime/src/protocol/sha256.ts +18 -0
  268. package/vendor/coordination-runtime/src/protocol/social.ts +274 -0
  269. package/vendor/coordination-runtime/src/protocol/types.ts +144 -0
  270. package/vendor/coordination-runtime/src/protocol/warrant.ts +344 -0
  271. package/vendor/coordination-runtime/src/shared/about.ts +431 -0
  272. package/vendor/coordination-runtime/src/shared/ampInsights.ts +33 -0
  273. package/vendor/coordination-runtime/src/shared/ampScope.ts +20 -0
  274. package/vendor/coordination-runtime/src/shared/approve.ts +65 -0
  275. package/vendor/coordination-runtime/src/shared/ast.ts +622 -0
  276. package/vendor/coordination-runtime/src/shared/control.ts +253 -0
  277. package/vendor/coordination-runtime/src/shared/entity.ts +996 -0
  278. package/vendor/coordination-runtime/src/shared/enum.ts +579 -0
  279. package/vendor/coordination-runtime/src/shared/error.ts +180 -0
  280. package/vendor/coordination-runtime/src/shared/graph.ts +381 -0
  281. package/vendor/coordination-runtime/src/shared/grid.ts +404 -0
  282. package/vendor/coordination-runtime/src/shared/hash.ts +231 -0
  283. package/vendor/coordination-runtime/src/shared/heap.ts +324 -0
  284. package/vendor/coordination-runtime/src/shared/i18n.ts +3332 -0
  285. package/vendor/coordination-runtime/src/shared/jsonSafe.ts +136 -0
  286. package/vendor/coordination-runtime/src/shared/list.ts +358 -0
  287. package/vendor/coordination-runtime/src/shared/lru.ts +882 -0
  288. package/vendor/coordination-runtime/src/shared/map.ts +276 -0
  289. package/vendor/coordination-runtime/src/shared/node.ts +102 -0
  290. package/vendor/coordination-runtime/src/shared/nodeRecord.ts +232 -0
  291. package/vendor/coordination-runtime/src/shared/notification.ts +103 -0
  292. package/vendor/coordination-runtime/src/shared/redblack.ts +662 -0
  293. package/vendor/coordination-runtime/src/shared/selection.ts +973 -0
  294. package/vendor/coordination-runtime/src/shared/service.ts +437 -0
  295. package/vendor/coordination-runtime/src/shared/set.ts +288 -0
  296. package/vendor/coordination-runtime/src/shared/stack.ts +309 -0
  297. package/vendor/coordination-runtime/src/shared/tree.ts +835 -0
  298. package/vendor/coordination-runtime/src/shared/trie.ts +212 -0
  299. package/vite.config.ts +48 -0
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "codex-coordination",
3
+ "interface": {
4
+ "displayName": "Codex Coordination"
5
+ },
6
+ "plugins": [
7
+ {
8
+ "name": "codex-coordination",
9
+ "source": {
10
+ "source": "local",
11
+ "path": "./plugins/codex-coordination"
12
+ },
13
+ "category": "Productivity"
14
+ }
15
+ ]
16
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,163 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ Keep a Changelog; the project adheres to Semantic Versioning.
5
+
6
+ ## [0.5.2] — 2026-11-03
7
+
8
+ - Add npm funding metadata and the GitHub Sponsors configuration for eloyhere. This is an npm metadata release; the bundled Codex plugin remains 0.5.1 with unchanged runtime behavior.
9
+
10
+ ## [0.5.1] — 2026-11-03
11
+
12
+ - Render coordination_notification with Periodicity Snackbar, Popover, Dialog and Alert, including anchors, severity, multiline messages, durations and dismiss-only actions.
13
+ - Share agent-delivered and workbench notifications through a deduplicated display queue; support notification-only MCP App views.
14
+ - Add production bridge checks for all four surfaces, dismissal, timed closure, queue order, replay deduplication and initial notification delivery.
15
+
16
+ ## [0.5.0] — 2026-11-03
17
+
18
+ - Copy all 24 agent tool implementations and eight workflow skills from deepseek-coordination 0.23.2, keeping formal coordination_* names. Verify a 152-file source snapshot before every build; retain licenses and notices.
19
+ - Add coordination_project over native AMP. Merge colliding goal/plan/workspace interfaces with their existing parameter forms; preserve the original JSON ledger and all 60 canonical AMP definitions. The combined surface has 98 tools and 13 skills.
20
+ - Bind copied file operations to AMP authorization, commands and approvals to correlated MCP host decisions, notifications to MCP results/UI, and search plus knowledge-file metadata to the existing AMP Elasticsearch backend.
21
+ - Add coordination_context search/read/detail/metrics: exact tool discovery, one-call native reading/settlement, compact default pages, durable full-result references, explicit file/target line ranges and static catalog/projection accounting.
22
+ - Shorten server guidance, compact JSON transport text and workspace diagnostics, and expose every named tool in the React workbench.
23
+ - Preserve explicit boundaries for DSH-only composer, native-child and conversation-compaction ports. Measure output characters separately from unknown Codex token/cache usage.
24
+
25
+ ## [0.4.1] — 2026-11-03
26
+
27
+ - Upgrade to AMP 0.6.3, which caches immutable input digests during compiler scanning and preserves the exact original revision/source bytes.
28
+ - Exclude this plugin's explicitly marked generated server bundles from semantic scans, retaining paged filesystem access and TypeScript source indexing.
29
+ - Add optional scan phase timings under CODEX_COORDINATION_DEBUG and a generated-bundle regression check. Fix first binding of this repository exceeding the MCP timeout.
30
+ - Advertise positional JSON argument types explicitly so MCP hosts can pass numbers, objects and nested arrays without stringifying them.
31
+
32
+ ## [0.4.0] — 2026-11-03
33
+
34
+ - Import published AMP 0.6.2, including its compiler, Markdown, Office and TeX scanners; reuse native search and domain algorithms.
35
+ - Expose all 60 canonical AMP agent service definitions unchanged, nine host adapters and the existing seven coordination tools.
36
+ - Make all 16 registry families editable and connect their native consumers, including parser dispatch, SQL dialects, cognitive behaviors and tool aliases. Persist versions and replayable edits.
37
+ - Add native context settlement, schema artifacts, evidence, warrants, calibration, attention, delegation, governance, workflows, signed envelopes, key lifecycle and durable domain resource access.
38
+ - Bind configured MCP HTTP/stdio, A2A, AMP team and cooperation transports with native catalog pins, budgets, receipts and correlated host approval.
39
+ - Integrate native CognitiveRuntime, KernelRuntime and GovernedTask with SQLite sessions, turns, outbox and measured provider usage.
40
+ - Add the React / Periodicity AMP workbench, private host configuration, search process lifecycle and capability/configuration documentation.
41
+
42
+ ## [0.3.1] — 2026-11-03
43
+
44
+ ### Fixed
45
+
46
+ - Restore Periodicity React's default button and card ripple effects by removing
47
+ the wrapper overrides that disabled them.
48
+ - Publish a new plugin cache version so the repaired UI can be installed without
49
+ replacing the active 0.3.0 cache directory.
50
+
51
+ ## [0.3.0] — 2026-11-03
52
+
53
+ ### Changed
54
+
55
+ - Migrate server source to strict TypeScript under `src/mcp`, retaining generated
56
+ installable `.mjs` output and compatibility with version 2 ledgers.
57
+ - Import `attention-manifest-protocol@0.6.0` directly from npm for canonical JSON,
58
+ digests, cloning, goal lifecycle, plan preconditions, schemas and snapshot
59
+ verification. Bundle runtime dependencies; require Node.js 24+.
60
+ - Run AMP conformance against the installed npm package by default, retaining
61
+ optional `--amp` checkout comparisons.
62
+
63
+ ### Added
64
+
65
+ - React 19 / `periodicity-react@0.1.15` dashboard with goals, plans, handoffs,
66
+ attention records, audits, filtering, snapshot export and JSON validation.
67
+ - MCP Apps HTML resource, thread entrypoint, structured tool results, host theme
68
+ and safe-area integration, plus a loopback read-only development preview.
69
+ - `coordination_protocol` for schema discovery, validation, and immutable
70
+ frame/receipt recording; `coordination_dashboard` for opening the interface.
71
+ - Lockfile, separate server/UI builds, third-party license output and browser
72
+ checks of responsive layouts and the production MCP Apps bridge.
73
+
74
+ ## [0.2.0] — 2026-11-03
75
+
76
+ The ledger now emits strict AMP v0.1 artifacts instead of AMP-shaped
77
+ approximations.
78
+
79
+ ### Added
80
+
81
+ - **AMP chain** (`mcp/lib/store.mjs`): entries are `{seq, kind, payload, prev, hash}`
82
+ with `hash = digestOf({seq, kind, payload, prev})`, `seq` from zero and
83
+ `seq 0` linked to `sha256:` + 64 zeros. The advisory `at` timestamp is host
84
+ metadata and is excluded from the hash.
85
+ - **`ledger-snapshot` export** (`snapshotOf`, `verifySnapshot`): `coordination_check`
86
+ with `action:"snapshot"` returns the artifact and refuses a chain that does not
87
+ verify; `scripts/amp-snapshot.mjs` writes the same value to
88
+ `<workspace>/.codex-coordination/ledger-snapshot.json`.
89
+ - **Reference conformance** (`scripts/amp-conformance.mjs`): imports
90
+ `attention-manifest-protocol` 0.5.0, compares `canonicalJson`/`digestOf` byte for
91
+ byte, validates every emitted Goal and Plan against `plan.schema.json`, validates
92
+ the snapshot against `ledger-snapshot.schema.json`, and verifies the chain with
93
+ the reference's own `verifySnapshot`.
94
+ - **Strict canonical JSON**: RFC 8785-style ordering plus rejection of
95
+ `undefined`, non-finite numbers, `-0`, unpaired surrogates, sparse arrays and
96
+ class instances.
97
+ - **Strict input validation**: `requireExactKeys` rejects unknown and missing
98
+ fields; AMP spellings (`commitment_window`, `abandon_if`) are required and
99
+ camelCase is rejected with the field to use instead.
100
+
101
+ ### Changed
102
+
103
+ - **Goals** are stored as a strict AMP `Goal` artifact plus AMP's `GoalLifecycle`;
104
+ tool results return `goal` (the artifact) beside `lifecycle`, `createdAt`,
105
+ `updatedAt` and `history`.
106
+ - **Plans** are strict AMP `Plan` artifacts: `goal` and `abandon_if` are required,
107
+ `edges` are derived, `commitment_window` is 1–5, `budget` defaults to `{}`, and
108
+ `status`/`created` are stamped by the server. Every mutation appends the updated
109
+ artifact.
110
+ - **Duties** are explicitly host projections: no `amp`/`kind` fields, recorded in
111
+ the chain as bounded `duty.assigned` / `duty.transitioned` events.
112
+ - **Goal transitions** are chained as `event` entries (the artifact does not
113
+ change), **plan mutations** as updated `plan` entries.
114
+ - Ledger document version is **2**; chain truncation was removed, because a
115
+ truncated chain cannot verify from genesis.
116
+
117
+ ### Removed
118
+
119
+ - The 0.1 journal shape (`{seq, at, type, id, data, prev, digest}`) and its
120
+ unprefixed hex digests. A 0.1 ledger is refused with `INVALID_STATE` rather than
121
+ re-chained.
122
+
123
+ ## [0.1.0] — 2026-11-03
124
+
125
+ First release: a working Codex plugin, not a scaffold.
126
+
127
+ ### Added
128
+
129
+ - **Local marketplace** (`.agents/plugins/marketplace.json`) listing the plugin,
130
+ so `codex plugin marketplace add <path>` is the whole installation.
131
+ - **Plugin manifest** with interface metadata, four skills and one MCP server.
132
+ - **MCP server** (`mcp/server.mjs`): stdio, one JSON object per line, JSON-RPC
133
+ 2.0, sequential dispatch, protocol negotiation across `2025-06-18`,
134
+ `2025-03-26` and `2024-11-05`, and no third-party dependencies.
135
+ - **Ledger store** (`mcp/lib/store.mjs`): one `<workspace>/.codex-coordination/
136
+ ledger.json`, atomic temp-file rename, per-ledger serialisation, and an
137
+ append-only SHA-256 journal that verifies after truncation.
138
+ - **Goals** (`mcp/lib/goals.mjs`): AMP Goal objects with mandatory observable
139
+ checks, the five-state lifecycle, and an `achieved` gate over linked plans.
140
+ - **Plans** (`mcp/lib/plans.mjs`): up to 12 tasks, dependencies declared on the
141
+ task and edges derived, Kahn cycle detection, predecessor gates, automatic
142
+ draft → committed → executing promotion.
143
+ - **Handoffs** (`mcp/lib/collaboration.mjs`): owner/assignee duties, the
144
+ assignee-only and owner-only moves, evidence required on submit and review
145
+ required on verify.
146
+ - **Audit** (`mcp/lib/check.mjs`): chain verification plus structural
147
+ violations and warnings, with stable violation codes.
148
+ - **Five MCP tools**: `coordination_status`, `coordination_goal`,
149
+ `coordination_plan`, `coordination_handoff`, `coordination_check`.
150
+ - **Four skills**: `coordination-goals`, `coordination-planning`,
151
+ `coordination-handoffs`, `coordination-audit` (bilingual body notes).
152
+ - **Windows launcher** that resolves Node from `NODE_EXE`, `PATH`, the Codex
153
+ bundled runtime, or the standard install directory.
154
+ - **Tooling**: `scripts/validate.mjs` (manifests, skill frontmatter, tool
155
+ references), `scripts/mcp-smoke.mjs` (real stdio handshake, tool calls, a
156
+ tampered-digest check), and 30 `node:test` unit tests.
157
+
158
+ ### Notes
159
+
160
+ - Identity is declared, not authenticated; the README and `docs/PROTOCOL.md`
161
+ say so where a reader might otherwise assume a security boundary.
162
+ - No `achieved`/`done`/`verified` transition runs the corresponding check. The
163
+ tools record assertions and enforce structure only.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,26 @@
1
+ codex-coordination
2
+ Copyright 2026 Eloy Kim
3
+
4
+ Licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ This product imports attention-manifest-protocol 0.6.3 from npm, Copyright
7
+ 2026 Eloy Kim, licensed under Apache-2.0. It bundles the published protocol,
8
+ scanner, registry, search, runtime, governance, signing and domain implementations,
9
+ together with all published JSON Schemas. AMP wire version is 0.1.
10
+ Host bindings and authorization boundaries are described in docs/AMP-INTEGRATION.md.
11
+
12
+ At the user's request, this product includes a source snapshot of
13
+ deepseek-coordination 0.23.2, Copyright 2026 Eloy Kim, under Apache-2.0.
14
+ Its 24 agent tool implementations and eight skills are ported with separate
15
+ Codex host adapters. Source hashes and boundaries are documented in
16
+ docs/COORDINATION-TOOLS.md. Original notices and bundled dependency licenses are
17
+ retained in assets/COORDINATION_THIRD_PARTY_LICENSES.md inside the plugin.
18
+
19
+ The React interface uses periodicity-react 0.1.15 (Apache-2.0), React and React
20
+ DOM (MIT), and the MCP Apps client SDK. Published schemas are validated with
21
+ Ajv and ajv-formats (MIT). Build tools bundle dependencies for installation;
22
+ the server runtime does not fetch code from npm.
23
+
24
+ Bundled server license texts and upstream notices are retained in
25
+ plugins/codex-coordination/assets/THIRD_PARTY_LICENSES.md. Bundled frontend
26
+ license texts are in plugins/codex-coordination/app/THIRD_PARTY_LICENSES.md.
package/README.md CHANGED
@@ -1,3 +1,115 @@
1
- # Temporary Holding Version
1
+ # codex-coordination
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A Codex plugin with a **TypeScript MCP server**, a **React 19 dashboard**, and 13 workflow skills. The server imports **attention-manifest-protocol 0.6.3 from npm**; the interface uses **periodicity-react 0.1.15**, including its default ripple effects.
4
+
5
+ **English** · [简体中文](README.zh-CN.md)
6
+
7
+ It exposes AMP's 60 original service tools, nine host adapters and the original coordination tools, plus all 24 coordination agent tools and coordination_project (overlapping names are merged): 98 tools total. Native registries, structured scanning, Elasticsearch search, context, governance, signing, delegation, connections and cognitive runtimes use AMP implementations. The **AMP 能力** dashboard tab calls the same tools. See [capability mapping and configuration](docs/AMP-INTEGRATION.md).
8
+
9
+ Goals, plans, handoffs, attention frames and receipts remain compatible with the existing version 2 `.codex-coordination/ledger.json` and AMP wire version `0.1`. Native AMP control and domain state use host-owned SQLite databases.
10
+
11
+ ## Develop
12
+
13
+ Requires Node.js **24+** and npm.
14
+
15
+ ```powershell
16
+ npm ci
17
+ npm run build
18
+ npm run dev
19
+ ```
20
+
21
+ Open the local Vite URL, enter an absolute repository path, and inspect its real ledger. Browser development preview permits reading, auditing, snapshot export and schema validation. Recording changes uses the Codex MCP connection.
22
+
23
+ ```powershell
24
+ npx playwright install chromium
25
+ npm run check
26
+ ```
27
+
28
+ `check` runs strict TypeScript checks, both builds, plugin validation, unit tests, stdio MCP smoke tests, npm AMP conformance and browser tests at desktop/tablet/mobile widths. `npm run conformance -- --amp <checkout>` can additionally compare an explicit protocol checkout; its default is the installed npm package.
29
+
30
+ ## Install in Codex
31
+
32
+ Install the published repository marketplace (the bundled marketplace launcher currently targets Windows):
33
+
34
+ ```sh
35
+ codex plugin marketplace add eloyhere/codex-coordination --ref v0.5.1
36
+ codex plugin add codex-coordination@codex-coordination
37
+ ```
38
+
39
+ The npm package also includes the compiled server, UI, skills and marketplace:
40
+
41
+ ```sh
42
+ npm install codex-coordination@0.5.1
43
+ codex plugin marketplace add ./node_modules/codex-coordination
44
+ codex plugin add codex-coordination@codex-coordination
45
+ ```
46
+
47
+ For a standalone stdio MCP command, use `npx -y codex-coordination@0.5.1`. This starts the MCP server; it does not register a plugin marketplace automatically.
48
+
49
+ Build before installing from source:
50
+
51
+ ```powershell
52
+ npm ci
53
+ npm run build
54
+ codex plugin marketplace add R:\project\codex-coordination
55
+ codex plugin add codex-coordination@codex-coordination
56
+ ```
57
+
58
+ Start a new chat after installing or reloading the plugin. In chat, ask Codex to open `coordination_dashboard` for the repository, or open Coordination from the chat's app entrypoint and enter the repository path. The React view is an MCP App resource, served through the local stdio process. It needs a host that supports MCP Apps; the ordinary tools also work without the interface.
59
+
60
+ The plugin contains built server modules and one self-contained HTML app. Its runtime dependencies are bundled during development, so the installed plugin does not run `npm install` or access npm. Keep Node.js 24+ available; the included Windows launcher also searches for the Codex-bundled runtime. On macOS/Linux, change `.mcp.json` to invoke `node mcp/server.mjs` from the plugin directory.
61
+
62
+ ## Tools
63
+
64
+ | Tool | Purpose |
65
+ | --- | --- |
66
+ | `coordination_status` | Bounded ledger summary and next actions |
67
+ | `coordination_goal` | Create, list, read and advance observable goals |
68
+ | `coordination_plan` | Create and advance bounded dependency-aware plans |
69
+ | `coordination_handoff` | Assign, accept, start, submit and review duties |
70
+ | `coordination_check` | Audit consistency or export an AMP snapshot |
71
+ | `coordination_protocol` | Discover schemas, validate AMP artifacts, record/list frames and receipts |
72
+ | `coordination_dashboard` | Open the React view, inspect data and run audits |
73
+
74
+ The original ledger forms above take an absolute `workspace`, except that the dashboard entrypoint also accepts `{}`. Goal/plan calls without workspace use the copied workspace-bound interface; [all named tools and compatibility rules](docs/COORDINATION-TOOLS.md) are documented separately. Native AMP tools first bind a repository through `coordination_workspace`; credentials remain in the host.
75
+
76
+ The nine host adapters are `coordination_workspace`, `coordination_registry`, `coordination_context`, `coordination_amp`, `coordination_artifacts`, `coordination_keys`, `coordination_connections`, `coordination_runtime` and `coordination_hooks`. Start with `coordination_amp` action `describe` for the module catalog and original signatures. The bundled `amp-runtime` skill explains discovery, editable registries and resource handles.
77
+
78
+ `coordination_protocol` supports `describe`, `validate`, `record`, and `list`. Validation covers all 28 published JSON Schema root kinds. Its legacy ledger recording accepts immutable **frames and receipts only**; goal/plan writes retain their lifecycle tools. `coordination_artifacts` records other schema kinds in the native store. A repeated kind/id conflicts instead of overwriting history. List results are newest first, with a limit of 1–50.
79
+
80
+ ```json
81
+ {
82
+ "workspace": "R:\\project\\my-project",
83
+ "action": "record",
84
+ "artifact": {
85
+ "amp": "0.1", "kind": "receipt", "id": "build-result",
86
+ "op": "act", "at": "2026-11-03T00:00:00Z",
87
+ "usage": {}, "outcome": "success", "note": "Build exit code was 0"
88
+ }
89
+ }
90
+ ```
91
+
92
+ Only record observed outcomes. Frame/receipt fields are caller assertions: schema validation and the hash chain do not authenticate identities, measure usage, or prove evidence. A frame's `digest` retains the protocol's caller-provided meaning; the host computes the enclosing chain hash separately. [Protocol scope](docs/PROTOCOL.md) describes the boundaries.
93
+
94
+ ## Source and build
95
+
96
+ | Path | Responsibility |
97
+ | --- | --- |
98
+ | `src/mcp/*.mts`, `src/mcp/lib/*.mts` | TypeScript server and host adapter; edit these files |
99
+ | `src/mcp/contracts.mts` | Shared server/UI data contracts |
100
+ | `src/app/` | React dashboard, MCP Apps bridge and styling |
101
+ | `scripts/build.mjs` | Bundle npm runtime dependencies while retaining shared store identity |
102
+ | `vite.config.ts` | Single-file UI build and local read-only preview |
103
+ | `plugins/codex-coordination/mcp/` | Generated installable server output |
104
+ | `plugins/codex-coordination/app/index.html` | Generated MCP App resource |
105
+ | `src/mcp/amp/` | Native AMP host adapters, generated export/signature catalog |
106
+ | `plugins/codex-coordination/skills/` | 13 coordination and AMP workflow skills |
107
+ | `test/`, `test/browser/` | Ledger, integration and real browser regression checks |
108
+
109
+ Run `npm run build` after source changes; generated files are retained for marketplace installation. `npm run serve` starts the built stdio service. `npm run snapshot -- --help` documents standalone snapshot export.
110
+
111
+ ## Privacy and limits
112
+
113
+ Repository operations stay inside the selected authorized root. Host credentials, signing keys and native state stay in the host directory; configured search, model and protocol endpoints may receive requests. Endpoint metadata cannot grant a network connection. The Vite preview binds to loopback and accepts only read/validate operations. Keep one writer per legacy JSON ledger; cross-process locking is not provided there. Declared handoff identities are not authentication. Native sessions and signed operations have their own AMP authorization rules.
114
+
115
+ Apache-2.0. See [LICENSE](LICENSE), [NOTICE](NOTICE), and the bundled dependency notices under the plugin assets.
@@ -0,0 +1,128 @@
1
+ # codex-coordination
2
+
3
+ Agent 可调用 `coordination_notification`,在插件界面显示 snackbar、popover、dialog 或 alert,支持严重程度、位置、自动关闭和关闭按钮。参见 [通知用法](docs/NOTIFICATIONS.md)。
4
+
5
+ 一个包含 **TypeScript MCP 服务、React 19 界面与十三个工作流 skill** 的 Codex 插件。服务直接从 npm 导入 **attention-manifest-protocol 0.6.3**,界面使用 **periodicity-react 0.1.15** 并保留默认 ripple 特效。
6
+
7
+ **简体中文** · [English](README.md)
8
+
9
+ 插件提供 AMP 原有的 60 个服务工具、9 个宿主适配工具和原有 7 个协调工具,合并 24 个 coordination agent 工具及 coordination_project,并处理同名兼容后,共 **98 个工具**。注册中心、结构扫描、Elasticsearch 搜索、上下文、治理、签名、委派、连接与认知运行时直接使用 AMP 实现。界面的 **AMP 能力** 标签页调用同一组工具。完整入口与配置见 [AMP 接入说明](docs/AMP-INTEGRATION.md)。
10
+
11
+ 原有目标、计划、交接、注意帧与回执仍保存在 `.codex-coordination/ledger.json`,兼容 version 2 台账和 AMP wire tag `0.1`。AMP 原生控制和领域状态使用宿主侧 SQLite。
12
+
13
+ ## 开发
14
+
15
+ 需要 **Node.js 24+** 与 npm。
16
+
17
+ ```powershell
18
+ npm ci
19
+ npm run build
20
+ npm run dev
21
+ ```
22
+
23
+ 打开 Vite 输出的本地地址,输入仓库绝对路径,即可查看真实台账。浏览器开发预览支持读取、审计、导出快照与校验协议对象;追加记录通过 Codex 中的 MCP 连接完成。
24
+
25
+ ```powershell
26
+ npx playwright install chromium
27
+ npm run check
28
+ ```
29
+
30
+ `check` 依次执行严格 TypeScript 检查、前后端构建、插件结构检查、单元测试、stdio MCP 冒烟测试、npm AMP 一致性检查,以及桌面、平板和手机宽度的浏览器测试。
31
+
32
+ `npm run conformance` 默认对照已安装的 npm 协议包;也可以用 `npm run conformance -- --amp <协议仓库路径>` 对照指定源码仓库。
33
+
34
+ ## 安装到 Codex
35
+
36
+ 从已发布的仓库自定义市场安装(当前随包市场启动器面向 Windows):
37
+
38
+ ```sh
39
+ codex plugin marketplace add eloyhere/codex-coordination --ref v0.5.1
40
+ codex plugin add codex-coordination@codex-coordination
41
+ ```
42
+
43
+ npm 包也包含编译后的服务、界面、skills 和市场目录:
44
+
45
+ ```sh
46
+ npm install codex-coordination@0.5.1
47
+ codex plugin marketplace add ./node_modules/codex-coordination
48
+ codex plugin add codex-coordination@codex-coordination
49
+ ```
50
+
51
+ 仅需 stdio MCP 服务时可运行 `npx -y codex-coordination@0.5.1`;它不会自动注册插件市场。仓库自定义市场与 OpenAI 官方公共目录是不同的分发渠道。
52
+
53
+ 从源码安装前先构建:
54
+
55
+ ```powershell
56
+ npm ci
57
+ npm run build
58
+ codex plugin marketplace add R:\project\codex-coordination
59
+ codex plugin add codex-coordination@codex-coordination
60
+ ```
61
+
62
+ 安装或重新加载后新开一个聊天。可以请 Codex 调用 `coordination_dashboard` 打开当前仓库的界面,也可以从聊天的应用入口打开 Coordination,再输入仓库路径。
63
+
64
+ React 界面作为 MCP App 资源由本地 stdio 服务提供,需要宿主支持 MCP Apps;普通工具可以独立使用。构建产物包含服务模块和一个内联脚本、样式的 HTML 文件,npm 依赖在开发时打包,安装后的插件无需执行 `npm install` 或访问 npm。
65
+
66
+ Windows 启动器会寻找 PATH、`NODE_EXE` 或 Codex 自带的 Node 运行时。macOS/Linux 可将 `.mcp.json` 改为在插件目录运行 `node mcp/server.mjs`。运行时需要 Node.js 24+。
67
+
68
+ ## 工具
69
+
70
+ | 工具 | 用途 |
71
+ | --- | --- |
72
+ | `coordination_status` | 有界台账概览与下一步动作 |
73
+ | `coordination_goal` | 创建、读取、列出和推进可观察目标 |
74
+ | `coordination_plan` | 创建和推进带依赖约束的有界计划 |
75
+ | `coordination_handoff` | 指派、接受、开始、提交及验收交接 |
76
+ | `coordination_check` | 审计台账或导出 AMP 快照 |
77
+ | `coordination_protocol` | 发现 schema、校验对象、追加及列出注意帧与回执 |
78
+ | `coordination_dashboard` | 打开 React 界面、查看记录及执行审计 |
79
+
80
+ 上表的旧台账模式要求传入绝对 `workspace`,界面入口也接受 `{}`。goal/plan 不带 workspace 时使用迁入的工作区绑定接口;[完整工具清单与兼容规则](docs/COORDINATION-TOOLS.md) 单独说明。AMP 原生工具先通过 `coordination_workspace` 绑定仓库,认证凭证由宿主持有。
81
+
82
+ 9 个宿主工具分别是 `coordination_workspace`、`coordination_registry`、`coordination_context`、`coordination_amp`、`coordination_artifacts`、`coordination_keys`、`coordination_connections`、`coordination_runtime` 和 `coordination_hooks`。从 `coordination_amp` 的 `describe` 查询模块、原始签名与绑定方式;新增的 `amp-runtime` skill 说明实际调用流程。
83
+
84
+ `coordination_protocol` 的 action:
85
+
86
+ - `describe`:查询 npm 协议版本、支持的类型;传 `kind` 时返回对应 schema。
87
+ - `validate`:覆盖协议包发布的全部 28 种 JSON Schema 根对象;快照还通过协议包自己的摘要链校验。其他类型的持久化通过 `coordination_artifacts` 进入原生对象存储。
88
+ - `record`:仅追加不可变的注意帧和回执,同 kind/id 重复会冲突。目标和计划仍通过原有生命周期工具写入。
89
+ - `list`:倒序读取注意帧和回执,可按 kind 筛选,limit 为 1–50。
90
+
91
+ 追加回执示例:
92
+
93
+ ```json
94
+ {
95
+ "workspace": "R:\\project\\my-project",
96
+ "action": "record",
97
+ "artifact": {
98
+ "amp": "0.1", "kind": "receipt", "id": "build-result",
99
+ "op": "act", "at": "2026-11-03T00:00:00Z",
100
+ "usage": {}, "outcome": "success", "note": "构建退出码为 0"
101
+ }
102
+ }
103
+ ```
104
+
105
+ 只记录实际观察到的结果。注意帧和回执中的字段属于调用者声明;schema 和摘要链不证明证据真实,不认证身份,也不会自动计量 token 或时间。注意帧的 `digest` 保留协议中调用者提供的含义,宿主另外计算外层台账链摘要。完整范围见 [协议说明](docs/PROTOCOL.md)。
106
+
107
+ ## 代码结构
108
+
109
+ | 路径 | 职责 |
110
+ | --- | --- |
111
+ | `src/mcp/*.mts`、`src/mcp/lib/*.mts` | TypeScript 服务和 Codex 适配层,修改这里的源码 |
112
+ | `src/mcp/contracts.mts` | 前后端共享数据契约 |
113
+ | `src/app/` | React 界面、MCP Apps 桥接与样式 |
114
+ | `scripts/build.mjs` | 打包 npm 运行时依赖,保留台账事务队列的模块共享关系 |
115
+ | `vite.config.ts` | 单文件界面构建、本机只读预览接口 |
116
+ | `plugins/codex-coordination/mcp/` | 生成的可安装服务产物 |
117
+ | `plugins/codex-coordination/app/index.html` | 生成的 MCP App 资源 |
118
+ | `src/mcp/amp/` | AMP 宿主适配、生成的导出与签名目录 |
119
+ | `plugins/codex-coordination/skills/` | 十三个协调与 AMP 工作流技能 |
120
+ | `test/`、`test/browser/` | 台账、协议、工具和浏览器回归检查 |
121
+
122
+ 修改源码后运行 `npm run build`。保留生成产物,便于 Codex marketplace 安装。`npm run serve` 启动构建后的 stdio 服务;`npm run snapshot -- --help` 查看独立导出命令。
123
+
124
+ ## 数据与边界
125
+
126
+ 仓库操作限制在选定的授权根目录,宿主凭证、签名私钥与原生状态保存在宿主目录。配置的搜索、模型和协议服务可以接收请求,单独编辑 endpoint 元数据不会授予网络连接。本地 Vite 预览只监听 loopback,仅开放读取和校验操作。旧 JSON 台账没有跨进程锁,同一工作区应只运行一个写入服务。交接身份属于声明;原生会话及签名操作使用 AMP 各自的授权机制。
127
+
128
+ Apache-2.0。参见 [LICENSE](LICENSE)、[NOTICE](NOTICE) 和插件 assets 中的依赖许可证。