@celsoft/coordinator 0.0.0 → 0.1.0

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 (131) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +107 -0
  3. package/THIRD_PARTY_NOTICES.md +2005 -0
  4. package/agents/console.md +20 -0
  5. package/agents/free.md +110 -0
  6. package/build/0-JP6XL6LB.js +17 -0
  7. package/build/1-A52YZWNS.js +17 -0
  8. package/build/2-CLH2NM6F.js +32 -0
  9. package/build/3-4N467IB6.js +45 -0
  10. package/build/4-WL5H4LUW.js +29 -0
  11. package/build/_layout.svelte-KPUSX7LQ.js +27 -0
  12. package/build/_page.svelte-22H56UR6.js +7972 -0
  13. package/build/_page.svelte-CVWUNRQC.js +135 -0
  14. package/build/_page.svelte-LTZXBHMT.js +57 -0
  15. package/build/_server.ts-3KVBYN6P.js +20 -0
  16. package/build/_server.ts-3POPKVEM.js +47 -0
  17. package/build/_server.ts-5735T2V5.js +31 -0
  18. package/build/_server.ts-5VXGNWV2.js +38 -0
  19. package/build/_server.ts-645KP7WP.js +42 -0
  20. package/build/_server.ts-A3AA24Z2.js +28 -0
  21. package/build/_server.ts-CITUOEM6.js +58 -0
  22. package/build/_server.ts-I7HMTPOA.js +25 -0
  23. package/build/_server.ts-M5BQ4LLX.js +30 -0
  24. package/build/_server.ts-OB4O27HF.js +683 -0
  25. package/build/_server.ts-OJT7HE7M.js +15 -0
  26. package/build/_server.ts-OYGWVLZM.js +12 -0
  27. package/build/_server.ts-T75UVMQP.js +38 -0
  28. package/build/_server.ts-WYZYNHUZ.js +28 -0
  29. package/build/_server.ts-Z26EB47B.js +486 -0
  30. package/build/chunk-4CIG53L5.js +33 -0
  31. package/build/chunk-BJTJS3XY.js +338 -0
  32. package/build/chunk-F2CNWJZM.js +14 -0
  33. package/build/chunk-HGYE3UTU.js +416 -0
  34. package/build/chunk-KAYW2W7H.js +1311 -0
  35. package/build/chunk-LFP3UPCM.js +10 -0
  36. package/build/chunk-M44JEFEH.js +62 -0
  37. package/build/chunk-MC5AGLMY.js +39 -0
  38. package/build/chunk-NCZ77J5E.js +19798 -0
  39. package/build/chunk-NVNLDPUJ.js +2122 -0
  40. package/build/chunk-PDCON4KS.js +494 -0
  41. package/build/chunk-Q4OQNY5M.js +25 -0
  42. package/build/chunk-QCUOR2U5.js +75 -0
  43. package/build/chunk-R6RYZZWA.js +46 -0
  44. package/build/chunk-SOJTASZC.js +51 -0
  45. package/build/chunk-SU26PJVX.js +410 -0
  46. package/build/chunk-U5BSBG4R.js +506 -0
  47. package/build/chunk-UEKOZGRO.js +37 -0
  48. package/build/chunk-W6EFUWJ2.js +9 -0
  49. package/build/chunk-WOPREK6Q.js +117 -0
  50. package/build/chunk-WWJ3F4QS.js +127 -0
  51. package/build/chunk-ZGZJEEE3.js +1091 -0
  52. package/build/client/_app/immutable/assets/0.BGa5ZNDM.css +1 -0
  53. package/build/client/_app/immutable/chunks/BUrrLYDt.js +2 -0
  54. package/build/client/_app/immutable/chunks/BgFr_EyZ.js +4 -0
  55. package/build/client/_app/immutable/chunks/Bjy-W4x2.js +82 -0
  56. package/build/client/_app/immutable/chunks/C8qZab0y.js +56 -0
  57. package/build/client/_app/immutable/chunks/C90fLsA5.js +4 -0
  58. package/build/client/_app/immutable/chunks/CRzLMJPS.js +1 -0
  59. package/build/client/_app/immutable/chunks/DLT1iIlz.js +2 -0
  60. package/build/client/_app/immutable/chunks/pIrVVOVY.js +2 -0
  61. package/build/client/_app/immutable/entry/app.0DERehLW.js +3 -0
  62. package/build/client/_app/immutable/entry/payload.DSmR2FwN.js +2 -0
  63. package/build/client/_app/immutable/entry/start.B7srFiqh.js +3 -0
  64. package/build/client/_app/immutable/nodes/0.aD9vJoxR.js +2 -0
  65. package/build/client/_app/immutable/nodes/1.Br4FL91i.js +2 -0
  66. package/build/client/_app/immutable/nodes/2.vl6OYfu3.js +8 -0
  67. package/build/client/_app/immutable/nodes/3.VYqJOLAF.js +2 -0
  68. package/build/client/_app/immutable/nodes/4.jF9UVlFN.js +2 -0
  69. package/build/client/_app/version.json +1 -0
  70. package/build/client/apple-touch-icon.png +0 -0
  71. package/build/client/favicon.ico +0 -0
  72. package/build/client/favicon.svg +48 -0
  73. package/build/client/icon-192.png +0 -0
  74. package/build/client/icon-512.png +0 -0
  75. package/build/client/icon-maskable-512.png +0 -0
  76. package/build/client/icon.svg +44 -0
  77. package/build/client/manifest.webmanifest +15 -0
  78. package/build/error.svelte-JXZDY65F.js +51 -0
  79. package/build/handler.js +716 -0
  80. package/build/hooks.server-34IMHRKC.js +43 -0
  81. package/build/instance-NP3FJIWW.js +2967 -0
  82. package/client/client.mjs +28 -0
  83. package/client/hooks.mjs +7 -0
  84. package/client/register.mjs +5 -0
  85. package/dist/cli.js +62826 -0
  86. package/dist/port.js +36691 -0
  87. package/package.json +20 -1
  88. package/skills/agents/.claude-plugin/plugin.json +5 -0
  89. package/skills/agents/hooks/hooks.json +1 -0
  90. package/skills/agents/hooks/register.ts +57 -0
  91. package/skills/agents/skills/bus-work/SKILL.md +66 -0
  92. package/skills/agents/skills/plan/SKILL.md +98 -0
  93. package/skills/console/.claude-plugin/plugin.json +5 -0
  94. package/skills/console/hooks/hooks.json +1 -0
  95. package/skills/console/hooks/register.ts +10 -0
  96. package/skills/console/skills/bus/SKILL.md +61 -0
  97. package/skills/default/.claude-plugin/plugin.json +5 -0
  98. package/skills/default/skills/git-workflow/SKILL.md +294 -0
  99. package/skills/default/skills/git-workflow/mise-tasks/_lib.sh +107 -0
  100. package/skills/default/skills/git-workflow/mise-tasks/clone +36 -0
  101. package/skills/default/skills/git-workflow/mise-tasks/repo-list +8 -0
  102. package/skills/default/skills/git-workflow/mise-tasks/unpushed +26 -0
  103. package/skills/default/skills/git-workflow/mise-tasks/worktree-add +60 -0
  104. package/skills/default/skills/github/SKILL.md +208 -0
  105. package/skills/default/skills/github/scripts/gh-org +196 -0
  106. package/skills/default/skills/plan-page/SKILL.md +300 -0
  107. package/skills/default/skills/plan-page/assets/index.html +854 -0
  108. package/skills/default/skills/plan-page/scripts/inline +46 -0
  109. package/skills/default/skills/plan-page/scripts/stage +26 -0
  110. package/skills/default/skills/secrets/SKILL.md +134 -0
  111. package/skills/default/skills/secrets/scripts/secrets-check +87 -0
  112. package/skills/default/skills/writing-style/SKILL.md +45 -0
  113. package/skills/extra/.claude-plugin/plugin.json +5 -0
  114. package/skills/extra/skills/artifacts/SKILL.md +52 -0
  115. package/skills/extra/skills/github-actions/SKILL.md +78 -0
  116. package/skills/extra/skills/github-actions/scan +32 -0
  117. package/skills/extra/skills/markdown-review/SKILL.md +70 -0
  118. package/skills/extra/skills/markdown-review/assets/index.html +201 -0
  119. package/skills/extra/skills/markdown-review/scripts/stage +36 -0
  120. package/skills/extra/skills/mise-usage/SKILL.md +155 -0
  121. package/skills/extra/skills/plugin-authoring/SKILL.md +317 -0
  122. package/skills/extra/skills/project-conventions/SKILL.md +64 -0
  123. package/skills/extra/skills/questions/SKILL.md +156 -0
  124. package/skills/extra/skills/questions/assets/index.html +376 -0
  125. package/skills/extra/skills/questions/scripts/stage +26 -0
  126. package/skills/extra/skills/serve/SKILL.md +165 -0
  127. package/skills/extra/skills/serve/scripts/serve +268 -0
  128. package/skills/extra/skills/serve/scripts/server.py +345 -0
  129. package/skills/extra/skills/skill-dependencies/SKILL.md +65 -0
  130. package/skills/extra/skills/skill-maintenance/SKILL.md +101 -0
  131. package/skills/extra/skills/ticketing/SKILL.md +125 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 (2026-11-10)
4
+
5
+ First public release.
6
+
7
+ - One server runs a bus and a web page for Claude Code agents in Herdr: start agents on tracks in your repos, message them, answer their questions, and land their work, from your computer or your phone.
8
+ - Every agent works in a worktree of its own and reaches GitHub only through the bus, which lands its work by a push or a PR as each repo says; Landing Scripts run before, during, and after each landing.
9
+ - Agents plan before they build, publishing plans and other pages as their issue's documents, which the coordinator keeps for good and serves.
10
+ - Profiles kept in your repos set what each repo's agents get: skills from each source (shipped, attached folders, npx skills, marketplace plugins), event handlers, and actions.
11
+ - Runs on macOS and Linux; `npx @celsoft/coordinator init <folder>` makes a coordinator folder.
package/README.md ADDED
@@ -0,0 +1,107 @@
1
+ <img src="https://cdn.jsdelivr.net/npm/@celsoft/coordinator/build/client/icon-192.png" alt="" width="96" height="96">
2
+
3
+ # Coordinator
4
+
5
+ A bus and a web page for Claude Code agents running in [Herdr](https://herdr.dev).
6
+ You start agents on tracks in your repos, message them, answer their questions, and land their work, from one page on your computer or your phone.
7
+
8
+ ## What you need
9
+
10
+ - **macOS or Linux** (WSL counts as Linux).
11
+ - **Node 22** or newer.
12
+ - **Claude Code** 2.1.316 or newer, signed in.
13
+ - **Herdr**, running: every agent runs in a Herdr tab.
14
+ - **git** 2.41 or newer.
15
+ - **gh**, the GitHub CLI: it holds each GitHub login's token, and the page signs it in to each login your repos need.
16
+ - **Tailscale** (optional): when it is installed and connected, the page is also served on your tailnet, so your phone reaches it.
17
+
18
+ `npx coordinator check` in a coordinator folder says what is missing and how to get it.
19
+
20
+ ## Make a coordinator folder
21
+
22
+ Every coordinator lives in a folder of its own: one pinned version, and its private `.coord` folder.
23
+
24
+ ```sh
25
+ npx @celsoft/coordinator init ~/coordinator
26
+ cd ~/coordinator
27
+ npm start
28
+ ```
29
+
30
+ - `init` installs the coordinator into the folder at exactly its own version, chooses free ports, and checks this machine (`--no-check` skips the check).
31
+ - `--development DIR` names where your repos are (default `~/Development`): clones live in `DIR/repos/<org>/<repo>`, and agents work in `DIR/worktrees/<track>/<org>/<repo>`.
32
+ - `npm start` runs the server in a Herdr tab of its own and prints the page's address.
33
+ - `npm run pair` prints a one-time code; type it on the page to pair that browser.
34
+
35
+ Several folders can run side by side, each on its own version, ports, and pairing.
36
+ Give each its own development folder, or its own tracks, so their worktrees never meet.
37
+
38
+ ## Every day
39
+
40
+ Run these inside the folder.
41
+
42
+ | Command | What it does |
43
+ | --- | --- |
44
+ | `npm start` | Start the server in a Herdr tab of its own. |
45
+ | `npm stop` | Stop it. Agents keep running in Herdr, and the next start picks them up. |
46
+ | `npm restart` | Stop, then start: after an upgrade. |
47
+ | `npm run status` | Whether it runs, its version, its address, and its agents. |
48
+ | `npm run open` | Open the page, with a pairing code; over SSH it only prints the link, so no browser opens on the remote machine. |
49
+ | `npm run pair` | A one-time code for pairing a browser. |
50
+ | `npm run revoke` | Sign out every paired browser. |
51
+ | `npm run logs` | The server's log; `npm run logs -- -f` follows it. |
52
+ | `npm run agent -- <org/repo> <track>` | Start an agent on a track. |
53
+ | `npm run check` | What this machine needs, and how to get it. |
54
+
55
+ `npx coordinator <command>` does the same inside the folder.
56
+ Outside a coordinator folder, `npx coordinator` would fetch another package of that name, so use the npm scripts, or `npx @celsoft/coordinator`.
57
+
58
+ ## GitHub logins
59
+
60
+ Settings, GitHub lists the GitHub logins your repos use: each one's SSH key, the name and email its commits carry, and its orgs.
61
+ Add one there, or set an org's login from its panel on the Repos page.
62
+ The page signs gh in with a one-time code, makes a key or uses one in `~/.ssh`, and puts it on the account.
63
+ The server checks each login at start and writes it into every repo of its orgs it keeps, so commits and pushes there, yours too, use the right account.
64
+ For a clone it does not keep, `npx coordinator git apply` inside the clone does the same.
65
+
66
+ ## What is in .coord
67
+
68
+ `.coord` is readable by you alone, and the server sets it back at every start if anything in it is not.
69
+
70
+ - **`config.toml`:** what you choose: ports, development folder, your name, Agent plugins, the console, and the throttle. Edit it by hand or in the page's settings.
71
+ - **`state/`:** what the bus records: its Sessions, Messages, issues, and repos, your pairing, and each agent's launch files. Written by the server only.
72
+ - **`logs/`:** what happened, rotated. Safe to delete.
73
+ - **`agents/`:** Agent Types of your own, added to the ones the coordinator ships, or replacing one by its name.
74
+
75
+ ## Your skills
76
+
77
+ Agents load the coordinator's own skills and nothing of yours, unless you name your plugin folders in the **Agent plugins** setting, separated by commas (`~/my-skills`, for example).
78
+ Agents call you by the **Your name** setting, your account's full name until you set it; your address on the bus is always `user`.
79
+
80
+ ## Upgrading
81
+
82
+ ```sh
83
+ npm install @celsoft/coordinator@<version>
84
+ npm restart
85
+ ```
86
+
87
+ Only that folder changes.
88
+ The first time a new version starts, it upgrades `.coord`'s files and keeps a copy of each as it was, named for its old format, such as `bus.json.format-7.bak`.
89
+ An older version refuses files a newer one upgraded and names those copies; copy one back to go back.
90
+
91
+ ## Moving a folder
92
+
93
+ Stop the server, move the folder anywhere, and start it again.
94
+ Running agents are told the new place; their skills load from the old one until they are resumed.
95
+ Carried to another machine, the bus keeps its history, issues, and settings, and tells you what stayed behind: running agents' conversations, repos to clone again, branches never pushed, and your pairing.
96
+
97
+ ## What agents can do
98
+
99
+ Agents are Claude Code sessions with broad permissions in their worktrees: they read and write files and run commands there, in auto mode.
100
+ They reach GitHub only through the bus: it pushes their work or opens its PR with your gh accounts, and they may only read with gh themselves.
101
+ Each one asks you before it builds and before it lands, unless you free its leash.
102
+ Drafting issue titles and track names asks Claude Haiku, on your own Claude account.
103
+
104
+ ## Uninstalling
105
+
106
+ Stop the server and delete the folder.
107
+ Its agents' worktrees stay in your development folder, its Herdr tabs stay open, and, if Tailscale served the page, `tailscale serve status` shows the port to turn off.