@kynver-app/mcp-agent-os 0.3.61 → 0.3.63
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/tools/graph.d.ts +3 -0
- package/dist/tools/graph.js +32 -0
- package/dist/tools/taskflow.js +37 -2
- package/package.json +2 -2
package/dist/tools/graph.d.ts
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
* returns server-computed insights (bottlenecks, per-owner load, orphans) over
|
|
6
6
|
* the operational graph. Read-only; the Kynver route enforces session +
|
|
7
7
|
* workspace scope. Kept in its own module so server.ts stays slim.
|
|
8
|
+
*
|
|
9
|
+
* agent_os_memory_graph_expand (PR10) proxies scoped memory-entity neighborhood
|
|
10
|
+
* expansion through the authenticated app route — handles/previews only.
|
|
8
11
|
*/
|
|
9
12
|
type ToolResult = {
|
|
10
13
|
content: {
|
package/dist/tools/graph.js
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
* returns server-computed insights (bottlenecks, per-owner load, orphans) over
|
|
6
6
|
* the operational graph. Read-only; the Kynver route enforces session +
|
|
7
7
|
* workspace scope. Kept in its own module so server.ts stays slim.
|
|
8
|
+
*
|
|
9
|
+
* agent_os_memory_graph_expand (PR10) proxies scoped memory-entity neighborhood
|
|
10
|
+
* expansion through the authenticated app route — handles/previews only.
|
|
8
11
|
*/
|
|
9
12
|
import { z } from "zod";
|
|
10
13
|
import { get, post } from "../lib/kynver-client.js";
|
|
@@ -110,4 +113,33 @@ export function registerGraphTools({ register, resolveToolSlug, jsonResult }) {
|
|
|
110
113
|
source: "agent",
|
|
111
114
|
}));
|
|
112
115
|
});
|
|
116
|
+
register("agent_os_memory_graph_expand", [
|
|
117
|
+
"Expand a scoped memory-entity graph neighborhood from an opaque start handle.",
|
|
118
|
+
"Returns compact previews and expansion handles only — never raw entity IDs or full memory bodies.",
|
|
119
|
+
"Requires graph view + expansion security gates (scoped opt-in). Read-only.",
|
|
120
|
+
].join(" "), {
|
|
121
|
+
slug: z.string().optional().describe("AgentOS slug. Defaults to env/primary."),
|
|
122
|
+
startEntityHandle: z
|
|
123
|
+
.string()
|
|
124
|
+
.describe("Opaque graph entity handle (gent:…) issued by the server."),
|
|
125
|
+
grantToken: z
|
|
126
|
+
.string()
|
|
127
|
+
.describe("Signed expansion grant (kve:g:…) bound to this graph handle and envelope."),
|
|
128
|
+
purpose: z.string().describe("Why expansion is requested (audit-bound)."),
|
|
129
|
+
envelopeId: z.string().describe("Active context envelope id binding this expansion."),
|
|
130
|
+
asOf: z.string().optional().describe("Optional UTC ISO as-of instant for temporal filtering."),
|
|
131
|
+
maxDepth: z.number().int().min(1).max(2).optional(),
|
|
132
|
+
maxNodes: z.number().int().min(1).max(36).optional(),
|
|
133
|
+
}, async (args) => {
|
|
134
|
+
const slug = await resolveToolSlug(args.slug);
|
|
135
|
+
return jsonResult(await post(`/agent-os/${slug}/memory-graph/expand`, {
|
|
136
|
+
startEntityHandle: args.startEntityHandle,
|
|
137
|
+
grantToken: args.grantToken,
|
|
138
|
+
purpose: args.purpose,
|
|
139
|
+
envelopeId: args.envelopeId,
|
|
140
|
+
asOf: args.asOf,
|
|
141
|
+
maxDepth: args.maxDepth,
|
|
142
|
+
maxNodes: args.maxNodes,
|
|
143
|
+
}));
|
|
144
|
+
});
|
|
113
145
|
}
|
package/dist/tools/taskflow.js
CHANGED
|
@@ -22,11 +22,46 @@ const idSchema = {
|
|
|
22
22
|
export function registerTaskflowTools({ register, resolveToolSlug, jsonResult, }) {
|
|
23
23
|
register("agent_os_taskflow_list", [
|
|
24
24
|
"List Kynver-native managed TaskFlows projected to the openclaw adapter wire shape.",
|
|
25
|
+
"Defaults: scope=active, detail=compact (use scope=all|recent and detail=full for audits).",
|
|
26
|
+
"Supports limit/offset flow pagination; taskWindow.truncated signals the shared 1000-row board window was saturated.",
|
|
25
27
|
"Safe for verify_live — read-only.",
|
|
26
|
-
].join(" "),
|
|
28
|
+
].join(" "), {
|
|
29
|
+
...idSchema,
|
|
30
|
+
scope: z
|
|
31
|
+
.enum(["active", "recent", "all"])
|
|
32
|
+
.optional()
|
|
33
|
+
.describe("Flow inventory scope (default active — non-terminal only)"),
|
|
34
|
+
detail: z
|
|
35
|
+
.enum(["compact", "full"])
|
|
36
|
+
.optional()
|
|
37
|
+
.describe("Projection detail (default compact — pruned terminal state)"),
|
|
38
|
+
limit: z
|
|
39
|
+
.number()
|
|
40
|
+
.int()
|
|
41
|
+
.positive()
|
|
42
|
+
.max(200)
|
|
43
|
+
.optional()
|
|
44
|
+
.describe("Max flows per page (default 50, max 200)"),
|
|
45
|
+
offset: z
|
|
46
|
+
.number()
|
|
47
|
+
.int()
|
|
48
|
+
.nonnegative()
|
|
49
|
+
.optional()
|
|
50
|
+
.describe("Flow page offset (default 0)"),
|
|
51
|
+
}, async (args) => {
|
|
27
52
|
const agentOsId = args.agentOsId?.trim() ||
|
|
28
53
|
(await resolveAgentOsId(args.slug ?? (await resolveToolSlug())));
|
|
29
|
-
const
|
|
54
|
+
const params = new URLSearchParams();
|
|
55
|
+
if (args.scope)
|
|
56
|
+
params.set("scope", args.scope);
|
|
57
|
+
if (args.detail)
|
|
58
|
+
params.set("detail", args.detail);
|
|
59
|
+
if (args.limit !== undefined)
|
|
60
|
+
params.set("limit", String(args.limit));
|
|
61
|
+
if (args.offset !== undefined)
|
|
62
|
+
params.set("offset", String(args.offset));
|
|
63
|
+
const qs = params.toString();
|
|
64
|
+
const data = await get(`/agent-os/by-id/${encodeURIComponent(agentOsId)}/taskflow${qs ? `?${qs}` : ""}`);
|
|
30
65
|
return jsonResult(data);
|
|
31
66
|
});
|
|
32
67
|
register("agent_os_taskflow_get", [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kynver-app/mcp-agent-os",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Kynver Agentic OS MCP server
|
|
3
|
+
"version": "0.3.63",
|
|
4
|
+
"description": "Kynver Agentic OS MCP server — slug-keyed agent identity, goals, projects, sessions, and long-term memory",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"kynver-mcp-agent-os": "dist/index.js"
|