@teamclaws/teamclaw 2026.11.2 → 2026.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/src/controller/http-server.js +18 -0
  2. package/dist/src/controller/journal.js +68 -0
  3. package/dist/src/controller/provisioning/process-supervisor.js +58 -2
  4. package/dist/src/controller/provisioning-config.js +53 -0
  5. package/dist/src/controller/route-table.js +5 -0
  6. package/dist/src/controller/security.js +39 -0
  7. package/dist/src/controller/teamauto-routes.js +12 -0
  8. package/dist/src/controller/tunnel-manager.js +33 -1
  9. package/dist/src/controller/tunnel-routes.js +17 -1
  10. package/dist/src/controller/websocket.js +4 -0
  11. package/dist/src/controller/worker-provisioning.js +36 -0
  12. package/dist/src/state.js +77 -1
  13. package/dist/src/teamauto/github-client.js +39 -0
  14. package/dist/src/teamauto/scanner.js +9 -1
  15. package/dist/src/teamauto/scheduler.js +368 -17
  16. package/dist/src/teamauto/store.js +13 -0
  17. package/dist/src/ui/app.js +44 -0
  18. package/dist/src/ui/index.html +15 -0
  19. package/openclaw.plugin.json +1 -1
  20. package/package.json +1 -1
  21. package/src/controller/http-server.ts +18 -0
  22. package/src/controller/journal.ts +89 -0
  23. package/src/controller/provisioning/process-supervisor.ts +56 -2
  24. package/src/controller/provisioning-config.ts +54 -0
  25. package/src/controller/route-table.ts +5 -0
  26. package/src/controller/security.ts +40 -0
  27. package/src/controller/teamauto-routes.ts +12 -0
  28. package/src/controller/tunnel-manager.ts +34 -1
  29. package/src/controller/tunnel-routes.ts +18 -1
  30. package/src/controller/websocket.ts +5 -0
  31. package/src/controller/worker-provisioning.ts +34 -0
  32. package/src/state.ts +73 -2
  33. package/src/teamauto/github-client.ts +43 -0
  34. package/src/teamauto/scanner.ts +9 -1
  35. package/src/teamauto/scheduler.ts +372 -17
  36. package/src/teamauto/store.ts +40 -1
  37. package/src/ui/app.js +44 -0
  38. package/src/ui/index.html +15 -0
package/src/ui/app.js CHANGED
@@ -78,6 +78,11 @@
78
78
  "tab.workspace": "Workspace",
79
79
  "common.showOlder": "Show older ({n})",
80
80
  "tab.settings": "Settings",
81
+ "tab.activity": "Activity",
82
+ "activity.events.title": "Controller activity",
83
+ "activity.events.hint": "Live provisioning, sweeps, task routing and team events (ring buffer, last 400).",
84
+ "activity.log.title": "TeamClaw log tail",
85
+ "activity.log.all": "unfiltered",
81
86
  "settings.models.title": "Model settings",
82
87
  "settings.models.hint": "Default model and per-role overrides.",
83
88
  "settings.workers.title": "Worker scaling (hot)",
@@ -373,6 +378,11 @@
373
378
  "tab.workspace": "工作区",
374
379
  "common.showOlder": "显示更早({n})",
375
380
  "tab.settings": "设置",
381
+ "tab.activity": "活动",
382
+ "activity.events.title": "控制器活动",
383
+ "activity.events.hint": "实时的 worker 供给、sweep、任务分派与团队事件(环形缓冲,最近 400 条)。",
384
+ "activity.log.title": "TeamClaw 日志尾随",
385
+ "activity.log.all": "不过滤",
376
386
  "settings.models.title": "模型设置",
377
387
  "settings.models.hint": "默认模型与按角色覆盖。",
378
388
  "settings.workers.title": "Worker 弹性伸缩(热)",
@@ -4131,6 +4141,9 @@
4131
4141
  if (activeTab === "settings") {
4132
4142
  renderWorkerSettingsPanel();
4133
4143
  }
4144
+ if (activeTab === "activity") {
4145
+ renderActivityTab();
4146
+ }
4134
4147
  if (activeTab === "teamauto") {
4135
4148
  refreshTeamAutoTab();
4136
4149
  }
@@ -5306,6 +5319,37 @@ function renderWorkerSettingsPanel() {
5306
5319
  });
5307
5320
  }
5308
5321
 
5322
+ // Controller Activity tab (#ui-blindness): journal event stream + gateway
5323
+ // log tail. Polls only while the tab is active (no background traffic).
5324
+ var activityTimer = null;
5325
+ function renderActivityTab() {
5326
+ var journalEl = document.getElementById("activity-journal");
5327
+ if (!journalEl) return;
5328
+ function fmtTime(at) {
5329
+ var d = new Date(at);
5330
+ return ("0" + d.getHours()).slice(-2) + ":" + ("0" + d.getMinutes()).slice(-2) + ":" + ("0" + d.getSeconds()).slice(-2);
5331
+ }
5332
+ function load() {
5333
+ apiRequest("/controller/journal?limit=200").then(function (d) {
5334
+ var ev = d.events || [];
5335
+ journalEl.innerHTML = ev.length
5336
+ ? ev.map(function (e) { return escapeHtml(fmtTime(e.at) + " [" + e.type + "] " + e.summary); }).join("\n")
5337
+ : "(no events yet)";
5338
+ }).catch(function (err) { journalEl.textContent = (err && err.message) || "load failed"; });
5339
+ var all = document.getElementById("activity-log-all");
5340
+ apiRequest("/controller/log-tail?lines=200" + (all && all.checked ? "&all=1" : "")).then(function (d) {
5341
+ var logEl = document.getElementById("activity-log");
5342
+ if (logEl) {
5343
+ logEl.textContent = ((d.path || "") + "\n" + (d.lines || []).join("\n")) || "(no log lines matched)";
5344
+ logEl.scrollTop = logEl.scrollHeight;
5345
+ }
5346
+ }).catch(function () { /* transient */ });
5347
+ }
5348
+ if (activityTimer) clearInterval(activityTimer);
5349
+ load();
5350
+ activityTimer = setInterval(load, 5000);
5351
+ }
5352
+
5309
5353
  function openModelSettings() {
5310
5354
  var modal = document.querySelector("#model-settings-modal");
5311
5355
  if (!modal) return;
package/src/ui/index.html CHANGED
@@ -79,6 +79,7 @@
79
79
  </button>
80
80
  <button class="tab" data-tab="workspace"><span class="tab-label" data-i18n="tab.workspace">Workspace</span></button>
81
81
  <button class="tab" data-tab="settings"><span class="tab-label" data-i18n="tab.settings">Settings</span></button>
82
+ <button class="tab" data-tab="activity"><span class="tab-label" data-i18n="tab.activity">Activity</span></button>
82
83
  <button class="tab" data-tab="clarifications">
83
84
  <span class="tab-label" data-i18n="tab.clarifications">Clarifications</span>
84
85
  <span id="clarifications-tab-count" class="tab-badge">0</span>
@@ -151,6 +152,20 @@
151
152
  </div>
152
153
 
153
154
  <!-- Workspace Tab -->
155
+ <div id="tab-activity" class="tab-panel">
156
+ <div class="panel-note" style="padding:12px 14px">
157
+ <h3 data-i18n="activity.events.title" style="margin:0 0 6px">Controller activity</h3>
158
+ <p data-i18n="activity.events.hint" style="margin:0 0 8px;color:#666">Live provisioning, sweeps, task routing and team events (ring buffer, last 400).</p>
159
+ <div id="activity-journal" style="font:12px/1.6 ui-monospace,monospace;max-height:320px;overflow:auto;background:#f6f6f6;padding:8px;border-radius:6px;white-space:pre-wrap"></div>
160
+ </div>
161
+ <div class="panel-note" style="padding:12px 14px;margin-top:10px">
162
+ <h3 data-i18n="activity.log.title" style="margin:0 0 6px">TeamClaw log tail</h3>
163
+ <p style="margin:0 0 8px">
164
+ <label style="font-size:12px;color:#666"><input id="activity-log-all" type="checkbox" /> <span data-i18n="activity.log.all">unfiltered</span></label>
165
+ </p>
166
+ <div id="activity-log" style="font:12px/1.6 ui-monospace,monospace;max-height:420px;overflow:auto;background:#111;color:#9f9;padding:10px;border-radius:6px;white-space:pre-wrap"></div>
167
+ </div>
168
+ </div>
154
169
  <div id="tab-settings" class="tab-panel">
155
170
  <div class="panel-note" style="padding:12px 14px">
156
171
  <h3 data-i18n="settings.models.title" style="margin:0 0 6px">Model settings</h3>