@teamclaws/teamclaw 2026.8.0 → 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/api.js +1 -0
- package/dist/index.js +325 -0
- package/dist/src/config.js +412 -0
- package/dist/src/controller/clarification-routes.js +315 -0
- package/dist/src/controller/controller-capacity.js +14 -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 +624 -0
- package/dist/src/controller/controller-tools.js +587 -0
- package/dist/src/controller/delivery-report.js +458 -0
- package/dist/src/controller/github-auth.js +564 -0
- package/dist/src/controller/http-server.js +284 -0
- package/dist/src/controller/kickoff-orchestrator.js +246 -0
- package/dist/src/controller/managed-gateway-process.js +286 -0
- package/dist/src/controller/message-delivery.js +28 -0
- package/dist/src/controller/message-router.js +38 -0
- package/dist/src/controller/message-routes.js +114 -0
- package/dist/src/controller/orchestration-manifest.js +151 -0
- package/dist/src/controller/preview-manager.js +586 -0
- 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 +197 -0
- package/dist/src/controller/repo-routes.js +63 -0
- package/dist/src/controller/role-inference.js +246 -0
- 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 +137 -0
- package/dist/src/controller/task-routes.js +703 -0
- package/dist/src/controller/teamauto-routes.js +124 -0
- package/dist/src/controller/tunnel-manager.js +548 -0
- package/dist/src/controller/ui-assets.js +68 -0
- package/dist/src/controller/websocket.js +42 -0
- package/dist/src/controller/worker-provisioning.js +1674 -0
- package/dist/src/controller/worker-routes.js +188 -0
- package/dist/src/discovery.js +86 -0
- package/dist/src/git-collaboration.js +694 -0
- package/dist/src/identity.js +132 -0
- package/dist/src/install-defaults.js +1 -0
- package/dist/src/interaction-contracts.js +531 -0
- package/dist/src/networking.js +91 -0
- package/dist/src/openclaw-workspace.js +925 -0
- 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 +386 -0
- package/dist/src/protocol.js +58 -0
- package/dist/src/role-ids.js +29 -0
- package/dist/src/roles.js +390 -0
- package/dist/src/session-roles.js +14 -0
- package/dist/src/state.js +361 -0
- package/dist/src/task-executor.js +1023 -0
- package/dist/src/teamauto/github-client.js +210 -0
- package/dist/src/teamauto/norms.js +85 -0
- package/dist/src/teamauto/repo-sync.js +423 -0
- package/dist/src/teamauto/scanner.js +207 -0
- package/dist/src/teamauto/schedule.js +123 -0
- package/dist/src/teamauto/scheduler.js +907 -0
- package/dist/src/teamauto/store.js +133 -0
- package/dist/src/types.js +290 -0
- package/dist/src/ui/app.js +4860 -0
- package/dist/src/ui/assets/teamclaw-app-icon.png +0 -0
- package/dist/src/ui/github-login.html +296 -0
- package/dist/src/ui/index.html +447 -0
- package/dist/src/ui/style.css +2805 -0
- package/dist/src/worker/http-handler.js +146 -0
- package/dist/src/worker/message-queue.js +24 -0
- package/dist/src/worker/prompt-injector.js +78 -0
- package/dist/src/worker/skill-installer.js +255 -0
- package/dist/src/worker/tools.js +541 -0
- package/dist/src/worker/worker-service.js +307 -0
- package/dist/src/workspace-browser.js +269 -0
- 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
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { parseJsonBody, sendError, sendJson } from "../protocol.js";
|
|
2
|
+
import { getActiveDefaultRole, getActiveProfileId, getActiveRoleIds, validateActiveRoleId, } from "../profile-loader.js";
|
|
3
|
+
import { resetTaskForFreshAttempt, serializeTask, } from "./task-execution.js";
|
|
4
|
+
import { autoAssignPendingTasks, scheduleProvisioningReconcile } from "./task-assignment.js";
|
|
5
|
+
// POST /api/v1/workers/register
|
|
6
|
+
export async function handleWorkerRegisterRequest(deps, req, res) {
|
|
7
|
+
const { logger, updateTeamState, wsServer } = deps;
|
|
8
|
+
const body = await parseJsonBody(req);
|
|
9
|
+
const workerId = typeof body.workerId === "string" ? body.workerId : "";
|
|
10
|
+
const rawRole = typeof body.role === "string" ? body.role.trim() : "";
|
|
11
|
+
const role = validateActiveRoleId(rawRole) ?? "";
|
|
12
|
+
const label = typeof body.label === "string" ? body.label : role;
|
|
13
|
+
const workerUrl = typeof body.url === "string" ? body.url : "";
|
|
14
|
+
const capabilities = Array.isArray(body.capabilities) ? body.capabilities : [];
|
|
15
|
+
const launchToken = typeof body.launchToken === "string" ? body.launchToken : undefined;
|
|
16
|
+
if (!workerId || !role || !workerUrl) {
|
|
17
|
+
// Issue #192: a role string that the ACTIVE profile does not know is
|
|
18
|
+
// the actionable failure (worker config carried an id from another
|
|
19
|
+
// profile, or the team switched profiles underneath the worker) - say
|
|
20
|
+
// so with the valid id list instead of the generic "required" 400.
|
|
21
|
+
if (workerId && !role && workerUrl && rawRole) {
|
|
22
|
+
sendError(res, 400, `role "${rawRole}" is not part of the active team profile "${getActiveProfileId()}" (valid roles: ${getActiveRoleIds().join(", ")}). ` +
|
|
23
|
+
"Update the worker's role config to one of these roles, or have the controller switch the team profile.");
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
sendError(res, 400, "workerId, role, and url are required");
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const registrationValidation = deps.workerProvisioningManager?.validateRegistration(workerId, role, launchToken);
|
|
30
|
+
if (registrationValidation && !registrationValidation.ok) {
|
|
31
|
+
sendError(res, 403, registrationValidation.reason ?? "Worker registration rejected");
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const state = updateTeamState((s) => {
|
|
35
|
+
s.workers[workerId] = {
|
|
36
|
+
id: workerId,
|
|
37
|
+
role,
|
|
38
|
+
label,
|
|
39
|
+
status: "idle",
|
|
40
|
+
transport: "http",
|
|
41
|
+
url: workerUrl,
|
|
42
|
+
lastHeartbeat: Date.now(),
|
|
43
|
+
capabilities,
|
|
44
|
+
registeredAt: Date.now(),
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
deps.workerProvisioningManager?.onWorkerRegistered(workerId);
|
|
48
|
+
wsServer.broadcastUpdate({ type: "worker:online", data: state.workers[workerId] });
|
|
49
|
+
logger.info(`Controller: worker registered - ${label} (${workerId}) at ${workerUrl}`);
|
|
50
|
+
sendJson(res, 201, { status: "registered", worker: state.workers[workerId] });
|
|
51
|
+
void autoAssignPendingTasks(deps, workerId).catch((err) => {
|
|
52
|
+
logger.warn(`Controller: failed to auto-assign after worker registration (${workerId}): ${String(err)}`);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
// DELETE /api/v1/workers/:id
|
|
56
|
+
export async function handleWorkerDeleteRequest(deps, res, pathname) {
|
|
57
|
+
const { logger, getTeamState, updateTeamState, wsServer } = deps;
|
|
58
|
+
const workerId = pathname.split("/").pop();
|
|
59
|
+
if (deps.workerProvisioningManager?.hasManagedWorker(workerId)) {
|
|
60
|
+
await deps.workerProvisioningManager.onWorkerRemoved(workerId, "worker delete requested");
|
|
61
|
+
}
|
|
62
|
+
const affectedTaskIds = [];
|
|
63
|
+
updateTeamState((s) => {
|
|
64
|
+
const worker = s.workers[workerId];
|
|
65
|
+
if (worker) {
|
|
66
|
+
worker.status = "offline";
|
|
67
|
+
worker.currentTaskId = undefined;
|
|
68
|
+
delete s.workers[workerId];
|
|
69
|
+
}
|
|
70
|
+
for (const task of Object.values(s.tasks)) {
|
|
71
|
+
if (task.assignedWorkerId === workerId &&
|
|
72
|
+
task.status !== "completed" &&
|
|
73
|
+
task.status !== "failed" &&
|
|
74
|
+
task.status !== "blocked") {
|
|
75
|
+
task.status = "pending";
|
|
76
|
+
task.assignedWorkerId = undefined;
|
|
77
|
+
resetTaskForFreshAttempt(task);
|
|
78
|
+
task.updatedAt = Date.now();
|
|
79
|
+
affectedTaskIds.push(task.id);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
await autoAssignPendingTasks(deps);
|
|
84
|
+
for (const taskId of affectedTaskIds) {
|
|
85
|
+
const task = getTeamState()?.tasks[taskId];
|
|
86
|
+
if (task) {
|
|
87
|
+
wsServer.broadcastUpdate({ type: "task:updated", data: serializeTask(task) });
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
wsServer.broadcastUpdate({ type: "worker:offline", data: { workerId } });
|
|
91
|
+
logger.info(`Controller: worker removed - ${workerId}`);
|
|
92
|
+
sendJson(res, 200, { status: "removed" });
|
|
93
|
+
}
|
|
94
|
+
// GET /api/v1/workers
|
|
95
|
+
export async function handleWorkerListRequest(deps, res) {
|
|
96
|
+
const { getTeamState } = deps;
|
|
97
|
+
const state = getTeamState();
|
|
98
|
+
const workers = state
|
|
99
|
+
? Object.values(state.workers).map((worker) => ({
|
|
100
|
+
...worker,
|
|
101
|
+
// Ghost rows from previous gateway processes (provisioned workers
|
|
102
|
+
// die with the process they ran in). The controller cleans these on
|
|
103
|
+
// startup; the flag lets the UI mark leftovers as removable.
|
|
104
|
+
staleRemovable: worker.id.startsWith("provisioned-") && worker.status === "offline",
|
|
105
|
+
}))
|
|
106
|
+
: [];
|
|
107
|
+
sendJson(res, 200, { workers });
|
|
108
|
+
}
|
|
109
|
+
// POST /api/v1/workers/:id/heartbeat
|
|
110
|
+
export async function handleWorkerHeartbeatRequest(deps, req, res, pathname) {
|
|
111
|
+
const { updateTeamState } = deps;
|
|
112
|
+
const workerId = pathname.split("/")[4];
|
|
113
|
+
const body = await parseJsonBody(req);
|
|
114
|
+
const status = typeof body.status === "string" ? body.status : "idle";
|
|
115
|
+
const currentTaskId = typeof body.currentTaskId === "string" ? body.currentTaskId : undefined;
|
|
116
|
+
updateTeamState((s) => {
|
|
117
|
+
if (s.workers[workerId]) {
|
|
118
|
+
s.workers[workerId].lastHeartbeat = Date.now();
|
|
119
|
+
s.workers[workerId].status = status;
|
|
120
|
+
s.workers[workerId].currentTaskId = currentTaskId;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
deps.workerProvisioningManager?.onWorkerHeartbeat(workerId, status);
|
|
124
|
+
if (status === "idle") {
|
|
125
|
+
await autoAssignPendingTasks(deps, workerId);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
scheduleProvisioningReconcile(deps, `heartbeat:${workerId}:${status}`);
|
|
129
|
+
}
|
|
130
|
+
sendJson(res, 200, { status: "ok" });
|
|
131
|
+
}
|
|
132
|
+
export function getEffectiveStartupReadiness(deps, state) {
|
|
133
|
+
if (!deps.workerProvisioningManager?.isEnabled()) {
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
// Both branches are already-validated RoleId sources: config roles go
|
|
137
|
+
// through parseRoleList (validateRoleIdList) and the fallback is the
|
|
138
|
+
// active profile's defaultRole — no runtime validation needed here.
|
|
139
|
+
const requiredRoles = deps.config.workerProvisioningRoles.length > 0
|
|
140
|
+
? [...new Set(deps.config.workerProvisioningRoles)]
|
|
141
|
+
: [getActiveDefaultRole()];
|
|
142
|
+
const readyWorkerIds = requiredRoles
|
|
143
|
+
.map((role) => Object.values(state?.workers ?? {}).find((worker) => worker.role === role && (worker.status === "idle" || worker.status === "busy"))?.id)
|
|
144
|
+
.filter((workerId) => Boolean(workerId));
|
|
145
|
+
if (readyWorkerIds.length === requiredRoles.length) {
|
|
146
|
+
const recorded = state?.provisioning?.startupReadiness;
|
|
147
|
+
return {
|
|
148
|
+
status: "ready",
|
|
149
|
+
startedAt: recorded?.startedAt ?? state?.createdAt ?? Date.now(),
|
|
150
|
+
checkedAt: Date.now(),
|
|
151
|
+
attempts: recorded?.attempts ?? 0,
|
|
152
|
+
requiredRoles,
|
|
153
|
+
readyWorkerIds,
|
|
154
|
+
message: recorded?.status === "ready"
|
|
155
|
+
? recorded.message
|
|
156
|
+
: `Startup provisioning ready with ${readyWorkerIds.length} warm worker(s).`,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
return state?.provisioning?.startupReadiness ?? {
|
|
160
|
+
status: "checking",
|
|
161
|
+
startedAt: state?.createdAt ?? Date.now(),
|
|
162
|
+
checkedAt: Date.now(),
|
|
163
|
+
attempts: 0,
|
|
164
|
+
requiredRoles,
|
|
165
|
+
readyWorkerIds,
|
|
166
|
+
message: `Startup provisioning warm-up is still initializing for ${requiredRoles.join(", ")}.`,
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
export function buildStartupReadinessMessage(readiness) {
|
|
170
|
+
const requiredRoles = readiness.requiredRoles.length > 0 ? readiness.requiredRoles.join(", ") : "configured startup roles";
|
|
171
|
+
if (readiness.status === "ready") {
|
|
172
|
+
return readiness.message ?? "Startup provisioning is ready.";
|
|
173
|
+
}
|
|
174
|
+
if (readiness.status === "checking") {
|
|
175
|
+
return readiness.message ?? `Startup provisioning is still warming workers for ${requiredRoles}.`;
|
|
176
|
+
}
|
|
177
|
+
return readiness.message ?? `Startup provisioning is degraded for ${requiredRoles}. Check provisioning logs and fix worker startup before retrying.`;
|
|
178
|
+
}
|
|
179
|
+
export function shouldBlockControllerUntilProvisioningReady(deps, state) {
|
|
180
|
+
const readiness = getEffectiveStartupReadiness(deps, state);
|
|
181
|
+
if (!readiness) {
|
|
182
|
+
return { blocked: false, readiness: null };
|
|
183
|
+
}
|
|
184
|
+
return {
|
|
185
|
+
blocked: readiness.status !== "ready",
|
|
186
|
+
readiness,
|
|
187
|
+
};
|
|
188
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { MDNS_TYPE } from "./protocol.js";
|
|
2
|
+
export class MDnsAdvertiser {
|
|
3
|
+
service = null;
|
|
4
|
+
advertisement = null;
|
|
5
|
+
logger;
|
|
6
|
+
constructor(logger) {
|
|
7
|
+
this.logger = logger;
|
|
8
|
+
}
|
|
9
|
+
async start(port, teamName) {
|
|
10
|
+
try {
|
|
11
|
+
const Bonjour = (await import("bonjour-service")).default;
|
|
12
|
+
this.service = new Bonjour();
|
|
13
|
+
this.advertisement = this.service.publish({
|
|
14
|
+
name: `teamclaw-${teamName}-controller`,
|
|
15
|
+
type: MDNS_TYPE,
|
|
16
|
+
port,
|
|
17
|
+
txt: { teamName },
|
|
18
|
+
});
|
|
19
|
+
this.logger.info(`mDNS: advertising teamclaw controller on port ${port}`);
|
|
20
|
+
}
|
|
21
|
+
catch (err) {
|
|
22
|
+
this.logger.warn(`mDNS: failed to start advertising: ${err instanceof Error ? err.message : String(err)}`);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
stop() {
|
|
26
|
+
if (this.advertisement) {
|
|
27
|
+
this.advertisement.stop();
|
|
28
|
+
this.advertisement = null;
|
|
29
|
+
}
|
|
30
|
+
if (this.service) {
|
|
31
|
+
this.service.destroy();
|
|
32
|
+
this.service = null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export class MDnsBrowser {
|
|
37
|
+
logger;
|
|
38
|
+
constructor(logger) {
|
|
39
|
+
this.logger = logger;
|
|
40
|
+
}
|
|
41
|
+
async browse(teamName, timeoutMs = 5000) {
|
|
42
|
+
const results = [];
|
|
43
|
+
try {
|
|
44
|
+
const Bonjour = (await import("bonjour-service")).default;
|
|
45
|
+
const bonjour = new Bonjour();
|
|
46
|
+
await new Promise((resolve) => {
|
|
47
|
+
const browser = bonjour.find({
|
|
48
|
+
type: MDNS_TYPE,
|
|
49
|
+
...(teamName ? { txt: { teamName } } : {}),
|
|
50
|
+
});
|
|
51
|
+
const timer = setTimeout(() => {
|
|
52
|
+
browser.stop();
|
|
53
|
+
bonjour.destroy();
|
|
54
|
+
resolve();
|
|
55
|
+
}, timeoutMs);
|
|
56
|
+
browser.on("up", (service) => {
|
|
57
|
+
const txtRecord = service.txt;
|
|
58
|
+
const svcTeamName = txtRecord?.teamName ?? "TeamClaw";
|
|
59
|
+
const host = Array.isArray(service.addresses) && service.addresses.length > 0
|
|
60
|
+
? service.addresses[0]
|
|
61
|
+
: (service.host ?? "localhost");
|
|
62
|
+
const port = typeof service.port === "number" ? service.port : 9527;
|
|
63
|
+
results.push({
|
|
64
|
+
name: service.name ?? "unknown",
|
|
65
|
+
host,
|
|
66
|
+
port,
|
|
67
|
+
teamName: svcTeamName,
|
|
68
|
+
});
|
|
69
|
+
this.logger.info(`mDNS: found controller at ${host}:${port} (team: ${svcTeamName})`);
|
|
70
|
+
// Found at least one result, stop browsing
|
|
71
|
+
clearTimeout(timer);
|
|
72
|
+
browser.stop();
|
|
73
|
+
bonjour.destroy();
|
|
74
|
+
resolve();
|
|
75
|
+
});
|
|
76
|
+
browser.on("error", (err) => {
|
|
77
|
+
this.logger.warn(`mDNS: browse error: ${String(err)}`);
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
catch (err) {
|
|
82
|
+
this.logger.warn(`mDNS: failed to browse: ${err instanceof Error ? err.message : String(err)}`);
|
|
83
|
+
}
|
|
84
|
+
return results;
|
|
85
|
+
}
|
|
86
|
+
}
|