@teamclaws/teamclaw 2026.3.26-2 → 2026.4.2-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +52 -8
  2. package/cli.mjs +538 -224
  3. package/index.ts +76 -27
  4. package/openclaw.plugin.json +53 -28
  5. package/package.json +5 -2
  6. package/skills/teamclaw/SKILL.md +213 -0
  7. package/skills/teamclaw/references/api-quick-ref.md +117 -0
  8. package/skills/teamclaw-setup/SKILL.md +81 -0
  9. package/skills/teamclaw-setup/references/install-modes.md +136 -0
  10. package/skills/teamclaw-setup/references/validation-checklist.md +73 -0
  11. package/src/config.ts +44 -16
  12. package/src/controller/controller-capacity.ts +2 -2
  13. package/src/controller/controller-service.ts +193 -47
  14. package/src/controller/controller-tools.ts +102 -2
  15. package/src/controller/delivery-report.ts +563 -0
  16. package/src/controller/http-server.ts +1907 -172
  17. package/src/controller/kickoff-orchestrator.ts +292 -0
  18. package/src/controller/managed-gateway-process.ts +330 -0
  19. package/src/controller/orchestration-manifest.ts +69 -1
  20. package/src/controller/preview-manager.ts +676 -0
  21. package/src/controller/prompt-injector.ts +116 -67
  22. package/src/controller/role-inference.ts +41 -0
  23. package/src/controller/websocket.ts +3 -1
  24. package/src/controller/worker-provisioning.ts +429 -74
  25. package/src/discovery.ts +1 -1
  26. package/src/git-collaboration.ts +198 -47
  27. package/src/identity.ts +12 -2
  28. package/src/interaction-contracts.ts +179 -3
  29. package/src/networking.ts +99 -0
  30. package/src/openclaw-workspace.ts +478 -11
  31. package/src/prompt-policy.ts +381 -0
  32. package/src/roles.ts +37 -36
  33. package/src/state.ts +40 -1
  34. package/src/task-executor.ts +282 -78
  35. package/src/types.ts +150 -7
  36. package/src/ui/app.js +1403 -175
  37. package/src/ui/assets/teamclaw-app-icon.png +0 -0
  38. package/src/ui/index.html +122 -40
  39. package/src/ui/style.css +829 -143
  40. package/src/worker/http-handler.ts +40 -4
  41. package/src/worker/prompt-injector.ts +9 -38
  42. package/src/worker/skill-installer.ts +2 -2
  43. package/src/worker/tools.ts +31 -5
  44. package/src/worker/worker-service.ts +49 -8
  45. package/src/workspace-browser.ts +20 -7
  46. package/src/controller/local-worker-manager.ts +0 -533
package/README.md CHANGED
@@ -5,7 +5,7 @@ TeamClaw is an **OpenClaw plugin** that turns multiple roles into a collaborativ
5
5
  It supports:
6
6
 
7
7
  - `controller` / `worker` modes
8
- - single-instance `localRoles`
8
+ - externally registered workers
9
9
  - clarifications, workspace browsing, and Web UI
10
10
  - Git-based collaboration
11
11
  - on-demand worker provisioning with `process`, `docker`, and `kubernetes`
@@ -18,6 +18,8 @@ For the easiest guided setup, run:
18
18
  npx -y @teamclaws/teamclaw install
19
19
  ```
20
20
 
21
+ The guided installer automatically uses OpenClaw's break-glass install flag for TeamClaw, because TeamClaw legitimately needs host orchestration capabilities that the built-in scanner marks as critical.
22
+
21
23
  This installer can:
22
24
 
23
25
  - install/update the TeamClaw plugin in OpenClaw
@@ -25,37 +27,79 @@ This installer can:
25
27
  - let you choose the installation mode
26
28
  - let you choose a model from the models already defined in OpenClaw
27
29
  - let you choose the OpenClaw workspace directory
30
+ - default TeamClaw to a dedicated `teamclaw` agent/workspace instead of reusing `main`
28
31
  - prefill Docker/Kubernetes provisioning with the published TeamClaw runtime image
29
32
  - prefill Docker workspace persistence with a named volume and Kubernetes persistence with a PVC name
30
33
 
34
+ By default, guided install now uses an independent TeamClaw agent/workspace layout:
35
+
36
+ - `agent:teamclaw:*` sessions
37
+ - sibling workspace such as `~/.openclaw/workspace-teamclaw`
38
+
39
+ For advanced compatibility only, you can force the legacy shared-`main` layout:
40
+
41
+ ```bash
42
+ npx -y @teamclaws/teamclaw install --agent-mode main
43
+ ```
44
+
31
45
  If you only want to install the plugin manually, use:
32
46
 
33
47
  ```bash
34
- openclaw plugins install @teamclaws/teamclaw
48
+ openclaw plugins install --dangerously-force-unsafe-install @teamclaws/teamclaw
35
49
  ```
36
50
 
37
- If you want to force the ClawHub package path once the plugin is published there, use:
51
+ If you want to force the ClawHub package path, use:
38
52
 
39
53
  ```bash
40
- openclaw plugins install clawhub:@teamclaws/teamclaw
54
+ openclaw plugins install --dangerously-force-unsafe-install clawhub:@teamclaws/teamclaw
41
55
  ```
42
56
 
43
57
  Then enable and configure TeamClaw in your `openclaw.json`.
44
58
 
45
59
  The published TeamClaw runtime image also preinstalls the `clawhub` CLI, so containerized workers can discover and install skills from ClawHub without an extra bootstrap step.
46
60
 
61
+ ## Maintainer release flow
62
+
63
+ For maintainers, TeamClaw now uses two release paths:
64
+
65
+ 1. **npm package** — published by GitHub Actions via `.github/workflows/teamclaw-plugin-npm-release.yml`
66
+ 2. **ClawHub code plugin + bundled skills** — published manually from the CLI
67
+
68
+ Before either release path, sync and validate the generated plugin manifest:
69
+
70
+ ```bash
71
+ npm --prefix src run manifest:sync
72
+ npm --prefix src run release:check
73
+ ```
74
+
75
+ Preview the ClawHub release commands without publishing:
76
+
77
+ ```bash
78
+ npm --prefix src run release:clawhub:dry-run
79
+ ```
80
+
81
+ When ready to publish to ClawHub, log in first and then run:
82
+
83
+ ```bash
84
+ clawhub login
85
+ bash scripts/teamclaw-clawhub-release.sh --publish
86
+ ```
87
+
88
+ The ClawHub release helper publishes the `@teamclaws/teamclaw` code plugin from `src/` and then publishes only the bundled skills under `src/skills/`. Update each skill's frontmatter `version:` in `src/skills/*/SKILL.md` before a real publish if that skill changed.
89
+
47
90
  ## Recommended first setup
48
91
 
49
92
  For a first-time setup, the safest path is:
50
93
 
51
- 1. Start with a single machine and `controller + localRoles`
94
+ 1. Start with single-host `process` provisioning
52
95
  2. Validate the workflow with a small smoke-test task
53
- 3. Expand to distributed or on-demand workers after the basics are working
96
+ 3. Expand to external workers, Docker, or Kubernetes after the basics are working
54
97
 
55
- ## Documentation
98
+ When on-demand provisioning is enabled, TeamClaw now treats controller startup as a readiness phase, not just a process-up check. During that warm-up, `/api/v1/health` returns a non-OK status until the controller has verified writable runtime paths and successfully brought the configured startup worker roles online.
56
99
 
57
- For complete setup and architecture details, see:
100
+ ## Documentation
58
101
 
102
+ - Website: <https://topcheer.github.io/teamclaw/>
59
103
  - Installation guide: <https://github.com/topcheer/teamclaw/blob/main/INSTALL.md>
60
104
  - Repository overview: <https://github.com/topcheer/teamclaw/blob/main/README.md>
61
105
  - Design notes: <https://github.com/topcheer/teamclaw/blob/main/DESIGN.md>