@teamclaws/teamclaw 2026.8.1 → 2026.11.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.
- package/cli.mjs +46 -15
- package/dist/src/config.js +33 -2
- package/dist/src/controller/clarification-routes.js +315 -0
- package/dist/src/controller/controller-intake.js +895 -0
- package/dist/src/controller/controller-planning.js +813 -0
- package/dist/src/controller/controller-runs.js +175 -0
- package/dist/src/controller/controller-service.js +271 -40
- package/dist/src/controller/controller-tools.js +11 -6
- package/dist/src/controller/http-server.js +256 -6004
- package/dist/src/controller/kickoff-orchestrator.js +32 -6
- package/dist/src/controller/message-delivery.js +28 -0
- package/dist/src/controller/message-routes.js +114 -0
- package/dist/src/controller/orchestration-manifest.js +6 -28
- package/dist/src/controller/preview-proxy.js +98 -0
- package/dist/src/controller/profile-switch.js +289 -0
- package/dist/src/controller/project-registry.js +294 -0
- package/dist/src/controller/prompt-injector.js +19 -9
- package/dist/src/controller/repo-routes.js +63 -0
- package/dist/src/controller/role-inference.js +231 -20
- package/dist/src/controller/route-table.js +1353 -0
- package/dist/src/controller/task-assignment.js +508 -0
- package/dist/src/controller/task-cleanup.js +258 -0
- package/dist/src/controller/task-execution.js +240 -0
- package/dist/src/controller/task-results.js +461 -0
- package/dist/src/controller/task-router.js +74 -4
- package/dist/src/controller/task-routes.js +703 -0
- package/dist/src/controller/teamauto-routes.js +124 -0
- package/dist/src/controller/ui-assets.js +68 -0
- package/dist/src/controller/worker-provisioning.js +30 -4
- package/dist/src/controller/worker-routes.js +188 -0
- package/dist/src/identity.js +3 -2
- package/dist/src/interaction-contracts.js +7 -7
- package/dist/src/openclaw-workspace.js +40 -18
- package/dist/src/profile-loader.js +486 -0
- package/dist/src/profiles/banking.json +178 -0
- package/dist/src/profiles/crossborder-ecom.json +253 -0
- package/dist/src/profiles/insurance.json +157 -0
- package/dist/src/profiles/knowledge/hs-structure.md +97 -0
- package/dist/src/profiles/knowledge/incoterms-2020.md +188 -0
- package/dist/src/profiles/knowledge/vat-principles.md +85 -0
- package/dist/src/profiles/schema.json +201 -0
- package/dist/src/profiles/securities.json +137 -0
- package/dist/src/profiles/software-rd.json +264 -0
- package/dist/src/profiles/trading-co.json +200 -0
- package/dist/src/prompt-policy.js +26 -13
- package/dist/src/role-ids.js +29 -0
- package/dist/src/roles.js +54 -13
- package/dist/src/session-roles.js +14 -0
- package/dist/src/state.js +188 -10
- package/dist/src/task-executor.js +7 -17
- package/dist/src/teamauto/github-client.js +18 -0
- package/dist/src/teamauto/repo-sync.js +228 -6
- package/dist/src/teamauto/scanner.js +40 -12
- package/dist/src/teamauto/scheduler.js +231 -12
- package/dist/src/types.js +62 -15
- package/dist/src/ui/app.js +592 -24
- package/dist/src/ui/index.html +44 -11
- package/dist/src/ui/style.css +194 -0
- package/dist/src/worker/prompt-injector.js +44 -8
- package/dist/src/worker/skill-installer.js +3 -1
- package/dist/src/worker/worker-service.js +76 -3
- package/openclaw.plugin.json +28 -1
- package/package.json +3 -2
- package/src/config.ts +33 -2
- package/src/controller/clarification-routes.ts +404 -0
- package/src/controller/controller-intake.ts +1113 -0
- package/src/controller/controller-planning.ts +1029 -0
- package/src/controller/controller-runs.ts +239 -0
- package/src/controller/controller-service.ts +295 -41
- package/src/controller/controller-tools.ts +11 -7
- package/src/controller/http-server.ts +294 -6971
- package/src/controller/kickoff-orchestrator.ts +70 -7
- package/src/controller/message-delivery.ts +49 -0
- package/src/controller/message-routes.ts +137 -0
- package/src/controller/orchestration-manifest.ts +6 -29
- package/src/controller/preview-proxy.ts +127 -0
- package/src/controller/profile-switch.ts +366 -0
- package/src/controller/project-registry.ts +361 -0
- package/src/controller/prompt-injector.ts +23 -8
- package/src/controller/repo-routes.ts +91 -0
- package/src/controller/role-inference.ts +260 -22
- package/src/controller/route-table.ts +1616 -0
- package/src/controller/task-assignment.ts +618 -0
- package/src/controller/task-cleanup.ts +344 -0
- package/src/controller/task-execution.ts +356 -0
- package/src/controller/task-results.ts +544 -0
- package/src/controller/task-router.ts +98 -6
- package/src/controller/task-routes.ts +812 -0
- package/src/controller/teamauto-routes.ts +121 -0
- package/src/controller/ui-assets.ts +70 -0
- package/src/controller/websocket.ts +13 -1
- package/src/controller/worker-provisioning.ts +32 -4
- package/src/controller/worker-routes.ts +241 -0
- package/src/identity.ts +3 -2
- package/src/interaction-contracts.ts +7 -7
- package/src/openclaw-workspace.ts +44 -18
- package/src/profile-loader.ts +650 -0
- package/src/profiles/banking.json +178 -0
- package/src/profiles/crossborder-ecom.json +253 -0
- package/src/profiles/insurance.json +157 -0
- package/src/profiles/knowledge/hs-structure.md +97 -0
- package/src/profiles/knowledge/incoterms-2020.md +188 -0
- package/src/profiles/knowledge/vat-principles.md +85 -0
- package/src/profiles/schema.json +201 -0
- package/src/profiles/securities.json +137 -0
- package/src/profiles/software-rd.json +264 -0
- package/src/profiles/trading-co.json +200 -0
- package/src/prompt-policy.ts +27 -13
- package/src/role-ids.ts +31 -0
- package/src/roles.ts +60 -14
- package/src/session-roles.ts +14 -0
- package/src/state.ts +236 -9
- package/src/task-executor.ts +7 -18
- package/src/teamauto/github-client.ts +21 -0
- package/src/teamauto/repo-sync.ts +246 -6
- package/src/teamauto/scanner.ts +47 -13
- package/src/teamauto/scheduler.ts +259 -16
- package/src/teamauto/store.ts +12 -0
- package/src/types.ts +133 -16
- package/src/ui/app.js +592 -24
- package/src/ui/index.html +44 -11
- package/src/ui/style.css +194 -0
- package/src/worker/prompt-injector.ts +48 -8
- package/src/worker/skill-installer.ts +3 -1
- package/src/worker/worker-service.ts +83 -3
|
@@ -9,6 +9,9 @@ import os from "node:os";
|
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import JSON5 from "json5";
|
|
11
11
|
import type { PluginLogger } from "../api.js";
|
|
12
|
+
// Dependency-free canonical role id list (Phase 1.2); see role-ids.ts for why
|
|
13
|
+
// this module cannot value-import roles.ts.
|
|
14
|
+
import { ROLE_IDS } from "./role-ids.js";
|
|
12
15
|
|
|
13
16
|
export const TEAMCLAW_AGENT_ID = "teamclaw";
|
|
14
17
|
export const TEAMCLAW_ISOLATION_MODE_INDEPENDENT = "independent";
|
|
@@ -297,10 +300,12 @@ export type TeamClawModelReadiness = {
|
|
|
297
300
|
|
|
298
301
|
/**
|
|
299
302
|
* OpenClaw 2026.10+ moved model-provider auth out of the legacy per-agent
|
|
300
|
-
* `auth-profiles.json` file and into the host config
|
|
301
|
-
* with apiKey/auth
|
|
302
|
-
*
|
|
303
|
-
*
|
|
303
|
+
* `auth-profiles.json` file and into the host config. Two host shapes exist:
|
|
304
|
+
* 2026.10 wrote `models.providers[*]` with apiKey/auth (optionally backed by
|
|
305
|
+
* the secrets store); 2026.11 onboard writes `auth.profiles[*]` entries
|
|
306
|
+
* (`provider` + `mode`, the secret itself in the secrets store) and models
|
|
307
|
+
* reference profiles via the `<model>@<profile>` suffix. Treat either shape
|
|
308
|
+
* as ready so the readiness gate does not false-negative on current hosts.
|
|
304
309
|
*/
|
|
305
310
|
function hostConfiguredProviderAuthExists(
|
|
306
311
|
env: NodeJS.ProcessEnv = process.env,
|
|
@@ -311,14 +316,22 @@ function hostConfiguredProviderAuthExists(
|
|
|
311
316
|
const parsed = JSON.parse(readFileSync(configPath, "utf8")) as {
|
|
312
317
|
models?: { providers?: Record<string, unknown> };
|
|
313
318
|
providers?: Record<string, unknown>;
|
|
319
|
+
auth?: { profiles?: Record<string, unknown> };
|
|
314
320
|
};
|
|
315
321
|
const providers = parsed.models?.providers ?? parsed.providers ?? {};
|
|
316
|
-
|
|
322
|
+
const inlineProviderAuth = Object.values(providers).some(
|
|
317
323
|
(value) =>
|
|
318
324
|
Boolean(value) &&
|
|
319
325
|
typeof value === "object" &&
|
|
320
326
|
("apiKey" in (value as object) || "auth" in (value as object)),
|
|
321
327
|
);
|
|
328
|
+
if (inlineProviderAuth) {
|
|
329
|
+
return true;
|
|
330
|
+
}
|
|
331
|
+
const authProfiles = Object.values(parsed.auth?.profiles ?? {});
|
|
332
|
+
return authProfiles.some(
|
|
333
|
+
(value) => Boolean(value) && typeof value === "object",
|
|
334
|
+
);
|
|
322
335
|
} catch {
|
|
323
336
|
return false;
|
|
324
337
|
}
|
|
@@ -521,19 +534,32 @@ export async function updateTeamClawWorkspaceDir(
|
|
|
521
534
|
return { configPath, agentEntryPath: normalized };
|
|
522
535
|
}
|
|
523
536
|
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
+
// Phase 1.2: the catalog's id set and order derive from the canonical
|
|
538
|
+
// role-ids.ts list (openclaw-workspace.ts sits below roles.ts in the module
|
|
539
|
+
// graph, so it cannot value-import the registry itself). The labels are the
|
|
540
|
+
// compact names the model-settings dialog has always shown; they
|
|
541
|
+
// intentionally differ from the full registry labels in roles.ts (e.g.
|
|
542
|
+
// "Project Manager" vs "Product Manager"), so they stay explicit here.
|
|
543
|
+
// tests/test-role-single-source.mjs pins the derived output to the exact
|
|
544
|
+
// pre-Phase-1.2 value.
|
|
545
|
+
const TEAMCLAW_ROLE_CATALOG_LABELS: Record<string, string> = {
|
|
546
|
+
pm: "Project Manager",
|
|
547
|
+
architect: "Architect",
|
|
548
|
+
developer: "Developer",
|
|
549
|
+
qa: "QA Engineer",
|
|
550
|
+
"release-engineer": "Release Engineer",
|
|
551
|
+
"infra-engineer": "Infra Engineer",
|
|
552
|
+
devops: "DevOps Engineer",
|
|
553
|
+
"security-engineer": "Security Engineer",
|
|
554
|
+
designer: "Designer",
|
|
555
|
+
marketing: "Marketing",
|
|
556
|
+
"data-engineer": "Data Engineer",
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
export const TEAMCLAW_ROLE_CATALOG: ReadonlyArray<{ id: string; label: string }> = ROLE_IDS.map((id) => ({
|
|
560
|
+
id,
|
|
561
|
+
label: TEAMCLAW_ROLE_CATALOG_LABELS[id] ?? id,
|
|
562
|
+
}));
|
|
537
563
|
|
|
538
564
|
export type TeamClawModelCatalog = {
|
|
539
565
|
defaultModel: string;
|