@agentistics/mcp 2.128.0 → 2.129.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/dist/agentistics-mcp.js +28 -0
- package/package.json +1 -1
package/dist/agentistics-mcp.js
CHANGED
|
@@ -1007,6 +1007,12 @@ var AGENT_TOOL_POLICY = {
|
|
|
1007
1007
|
routes: ["POST /api/session-message"],
|
|
1008
1008
|
reason: "types a message into another session through the composer path; additive, rate-limited, sender verified"
|
|
1009
1009
|
},
|
|
1010
|
+
agentistics_session_role: {
|
|
1011
|
+
...GROUPS,
|
|
1012
|
+
risk: "W",
|
|
1013
|
+
routes: ["POST /api/session-roles"],
|
|
1014
|
+
reason: "sets a session label (role + title prefix) and types a one-line note; reversible by setting auto; a session may only touch itself or the sessions it started"
|
|
1015
|
+
},
|
|
1010
1016
|
agentistics_summary: { ...DATA, capability: "localTranscripts", host: true, risk: "R", routes: ["GET /api/data", "GET /api/runtime/metrics"], reason: "reads computed metrics" },
|
|
1011
1017
|
agentistics_harnesses: { ...DATA, capability: "localTranscripts", host: true, risk: "R", routes: ["GET /api/data", "GET /api/runtime/metrics"], reason: "reads computed metrics per harness" },
|
|
1012
1018
|
agentistics_plan_limits: { ...DATA, capability: "localTranscripts", host: true, risk: "R", routes: ["GET /api/plan-limits"], reason: "reads subscription windows and routing guidance; does not start work" },
|
|
@@ -1034,6 +1040,7 @@ var AGENT_TOOL_POLICY = {
|
|
|
1034
1040
|
// ../core/src/dataPatch.ts
|
|
1035
1041
|
var blocked = new Set(["__proto__", "constructor", "prototype"]);
|
|
1036
1042
|
// ../core/src/planLimits.ts
|
|
1043
|
+
var DAY_MS = 24 * 60 * 60000;
|
|
1037
1044
|
var PLAN_WINDOW_MS = {
|
|
1038
1045
|
"5h": 5 * 60 * 60000,
|
|
1039
1046
|
week: 7 * 24 * 60 * 60000
|
|
@@ -2268,6 +2275,18 @@ var TOOLS = [
|
|
|
2268
2275
|
required: ["to", "kind", "body"]
|
|
2269
2276
|
}
|
|
2270
2277
|
},
|
|
2278
|
+
{
|
|
2279
|
+
name: "agentistics_session_role",
|
|
2280
|
+
description: 'Get or set a session\'s ROLE (leader | worker | auto). With no `ref` it is YOUR OWN session. Setting `leader` stores the role, renames the session to "[ LEADER ] - <title>" ("[ LÍDER ] - …" in a Portuguese UI) keeping the user\'s title, and the briefing then tells the model it is a leader; `worker`/`auto` strip the prefix. Use it to declare yourself leader when the work grows to several fronts — do not rename the session by hand. Setting ANOTHER session\'s role works only for sessions you started yourself. Idempotent. With no `role` it just reports the current one and the role line.',
|
|
2281
|
+
inputSchema: {
|
|
2282
|
+
type: "object",
|
|
2283
|
+
properties: {
|
|
2284
|
+
ref: { type: "string", description: "A session reference (managed id, conversation id, exact title or unique id prefix). Omit for your own session." },
|
|
2285
|
+
role: { type: "string", enum: ["leader", "worker", "auto"], description: "The role to set. Omit to read it." }
|
|
2286
|
+
},
|
|
2287
|
+
required: []
|
|
2288
|
+
}
|
|
2289
|
+
},
|
|
2271
2290
|
{
|
|
2272
2291
|
name: "agentistics_summary",
|
|
2273
2292
|
description: "Get an overview of AI coding usage metrics (across all tracked harnesses — Claude Code, Codex, Gemini, Copilot, Antigravity — or scoped to one): total tokens, estimated cost, sessions, streak, most used model, and top project. Good starting point for any metrics question.",
|
|
@@ -2699,6 +2718,15 @@ async function callTool(req) {
|
|
|
2699
2718
|
});
|
|
2700
2719
|
return { content: [{ type: "text", text: JSON.stringify(body, null, 2) }] };
|
|
2701
2720
|
}
|
|
2721
|
+
case "agentistics_session_role": {
|
|
2722
|
+
const a = args;
|
|
2723
|
+
const body = await apiSend("POST", "/api/session-roles", {
|
|
2724
|
+
...a?.ref ? { ref: a.ref } : {},
|
|
2725
|
+
...a?.role !== undefined ? { role: a.role } : {},
|
|
2726
|
+
session: sessionProof(process.env)
|
|
2727
|
+
});
|
|
2728
|
+
return { content: [{ type: "text", text: JSON.stringify(body, null, 2) }] };
|
|
2729
|
+
}
|
|
2702
2730
|
case "agentistics_session_message": {
|
|
2703
2731
|
const a = args;
|
|
2704
2732
|
const body = await apiSend("POST", "/api/session-message", {
|
package/package.json
CHANGED