@agentistics/mcp 2.112.0 → 2.112.2
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/dist/agentistics-mcp.js +3 -50
- package/package.json +1 -1
package/dist/agentistics-mcp.js
CHANGED
|
@@ -938,9 +938,9 @@ var ANTHROPIC_EDIT_POLICY = Object.freeze({
|
|
|
938
938
|
source: "CM §7 (docs/superpowers/specs/2026-09-25-runtime-context-manager-design.md), citing " + "Anthropic's documentation that editing earlier turns can invalidate later reasoning blocks " + "(signed signature_delta, R12 §1.3); assistant-text immutability is a product rule (CM §7 line 227)."
|
|
939
939
|
});
|
|
940
940
|
// ../core/src/agentToolPolicy.ts
|
|
941
|
-
var TASKS = { capability: "localShell", host: true,
|
|
941
|
+
var TASKS = { capability: "localShell", host: true, allowance: null };
|
|
942
942
|
var GROUPS = TASKS;
|
|
943
|
-
var DATA = { host: false,
|
|
943
|
+
var DATA = { host: false, allowance: null };
|
|
944
944
|
var PREFS = DATA;
|
|
945
945
|
var AGENT_TOOL_POLICY = {
|
|
946
946
|
agentistics_tasks: { ...TASKS, risk: "R", routes: ["GET /api/tasks"], reason: "lists the board; changes nothing" },
|
|
@@ -1027,9 +1027,7 @@ var AGENT_TOOL_POLICY = {
|
|
|
1027
1027
|
agentistics_build_layout: { ...PREFS, risk: "W", routes: ["GET /api/preferences", "PUT /api/preferences"], reason: "writes a layout; reversible by another build or delete" },
|
|
1028
1028
|
agentistics_export_pdf: { ...DATA, risk: "R", routes: [], reason: "composes a local dashboard URL; calls nothing and exports nothing itself" },
|
|
1029
1029
|
agentistics_tags: { ...DATA, risk: "R", routes: ["GET /api/tags"], reason: "reads aggregate-only tag cards" },
|
|
1030
|
-
agentistics_tag_detail: { ...DATA, risk: "R", routes: ["GET /api/tags", "GET /api/tags/:id"], reason: "reads one tag aggregate (counts and sums only)" }
|
|
1031
|
-
agentistics_team_status: { ...PREFS, risk: "R", routes: ["GET /api/preferences"], reason: "reads mode and connection endpoints; returns no token" },
|
|
1032
|
-
agentistics_team_members: { ...DATA, central: "only", risk: "R", routes: ["GET /api/team/members"], reason: "reads the member list; central only" }
|
|
1030
|
+
agentistics_tag_detail: { ...DATA, risk: "R", routes: ["GET /api/tags", "GET /api/tags/:id"], reason: "reads one tag aggregate (counts and sums only)" }
|
|
1033
1031
|
};
|
|
1034
1032
|
// session-tokens.ts
|
|
1035
1033
|
function sessionHarness(s) {
|
|
@@ -2366,16 +2364,6 @@ var TOOLS = [
|
|
|
2366
2364
|
name: "agentistics_repos",
|
|
2367
2365
|
description: "List repositories, grouped by normalized git remote (independent of local path or which machine produced the session), with session/message/token/cost totals and last-active date. Sessions with no linked repository are grouped under 'unlinked'. Optionally scope to a single harness. Rows tagged source \"projections\" (read from the journal) carry personTurns (the person's turns); there `messages` is a deprecated alias of personTurns, and subagent spend is reported apart (subagentTokens, subagentCostUSD).",
|
|
2368
2366
|
inputSchema: { type: "object", properties: { harness: HARNESS_PARAM }, required: [] }
|
|
2369
|
-
},
|
|
2370
|
-
{
|
|
2371
|
-
name: "agentistics_team_status",
|
|
2372
|
-
description: "Get this machine's team-mode status: solo, central, or member. In member mode, lists its central connections (label, endpoint, connected/error state, last push). Use for 'am I connected to a team' or 'what central do I push to' questions.",
|
|
2373
|
-
inputSchema: { type: "object", properties: {}, required: [] }
|
|
2374
|
-
},
|
|
2375
|
-
{
|
|
2376
|
-
name: "agentistics_team_members",
|
|
2377
|
-
description: "List members of this team, central only: display name, online/presence status, latency, and last-seen timestamp. For usage/cost per member use agentistics_summary or agentistics_sessions against this central's own /api/data. Returns an explanatory message when this machine is not running as a central (solo/member mode).",
|
|
2378
|
-
inputSchema: { type: "object", properties: {}, required: [] }
|
|
2379
2367
|
}
|
|
2380
2368
|
];
|
|
2381
2369
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: toolsForGate(TOOLS, await nativeVisibleNow()) }));
|
|
@@ -2906,41 +2894,6 @@ async function callTool(req) {
|
|
|
2906
2894
|
metrics: (q) => fetch(`${API}/api/runtime/metrics?${q}`)
|
|
2907
2895
|
}));
|
|
2908
2896
|
}
|
|
2909
|
-
case "agentistics_team_status": {
|
|
2910
|
-
const prefs = await getPrefs();
|
|
2911
|
-
const team = prefs.team;
|
|
2912
|
-
const mode = team?.mode ?? "solo";
|
|
2913
|
-
const connections = (team?.connections ?? []).map((c) => ({
|
|
2914
|
-
id: c.id,
|
|
2915
|
-
label: c.label ?? null,
|
|
2916
|
-
endpoint: c.endpoint
|
|
2917
|
-
}));
|
|
2918
|
-
return {
|
|
2919
|
-
content: [{
|
|
2920
|
-
type: "text",
|
|
2921
|
-
text: JSON.stringify({ mode, connections }, null, 2)
|
|
2922
|
-
}]
|
|
2923
|
-
};
|
|
2924
|
-
}
|
|
2925
|
-
case "agentistics_team_members": {
|
|
2926
|
-
const res = await fetch(`${API}/api/team/members`);
|
|
2927
|
-
if (res.status === 404) {
|
|
2928
|
-
return { content: [{ type: "text", text: "This machine is not running as a central (solo or member mode) — there is no member roster here. Use agentistics_team_status to see the current mode." }] };
|
|
2929
|
-
}
|
|
2930
|
-
if (!res.ok)
|
|
2931
|
-
throw new Error(`GET /api/team/members → HTTP ${res.status}`);
|
|
2932
|
-
const data = await res.json();
|
|
2933
|
-
const members = data.members ?? [];
|
|
2934
|
-
const rows = members.map((m) => ({
|
|
2935
|
-
id: m.id,
|
|
2936
|
-
name: m.user,
|
|
2937
|
-
label: m.label,
|
|
2938
|
-
online: m.online ?? false,
|
|
2939
|
-
latencyMs: m.latencyMs ?? null,
|
|
2940
|
-
lastSeenAt: m.lastSeenAt ?? null
|
|
2941
|
-
}));
|
|
2942
|
-
return { content: [{ type: "text", text: JSON.stringify(rows, null, 2) }] };
|
|
2943
|
-
}
|
|
2944
2897
|
default:
|
|
2945
2898
|
throw new Error(`Unknown tool: ${name}`);
|
|
2946
2899
|
}
|
package/package.json
CHANGED