@treeseed/sdk 0.13.0-rc.64 → 0.13.0-rc.66
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/.treeseed-build-complete.json +1 -1
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +304 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.js +44 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +9 -0
- package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.d.ts +25 -0
- package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.js +67 -0
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +36 -36
- package/dist/agent-capacity/validation/agent-definition-schema.js +2 -0
- package/dist/capacity/agents/agent-capacity.d.ts +2 -0
- package/dist/capacity/agents/agent-capacity.js +2 -0
- package/dist/capacity-provider/capability-ontology.d.ts +296 -7
- package/dist/capacity-provider/capability-ontology.js +23 -1
- package/dist/content/validation/agent-operational-content-schemas.d.ts +338 -16
- package/dist/content/validation/agent-operational-content-schemas.js +18 -3
- package/dist/content/validation/content-model-schemas.d.ts +428 -89
- package/dist/content/validation/portable-content-data.d.ts +26 -9
- package/dist/deployment/schemas.d.ts +352 -0
- package/dist/deployment/schemas.js +30 -0
- package/dist/entrypoints/clients/control-plane-client.js +5 -3
- package/dist/graph/context-query-contracts.d.ts +16 -1
- package/dist/graph/context-query-contracts.js +5 -0
- package/dist/model-registry/agent-operational-models.js +1 -1
- package/dist/operator-contracts/canonical-command-tree.js +16 -1
- package/dist/operator-contracts/catalog/communication-operations.d.ts +4 -4
- package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +127 -0
- package/dist/operator-contracts/catalog/knowledge-share-operations.js +25 -0
- package/dist/operator-contracts/communication/contracts.d.ts +12 -12
- package/dist/operator-contracts/control-plane-operations.d.ts +129 -4
- package/dist/operator-contracts/control-plane-operations.js +2 -0
- package/dist/operator-contracts/index.d.ts +1 -0
- package/dist/operator-contracts/index.js +1 -0
- package/dist/operator-contracts/knowledge/contracts.d.ts +130 -0
- package/dist/operator-contracts/knowledge/contracts.js +39 -0
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ const data = (key, alias = key) => field(key, { aliases: alias === key ? [] : [a
|
|
|
23
23
|
function buildAgentOperationalModelRegistry(repoRoot) {
|
|
24
24
|
const lifecycle = { id: id(), title: title(), status: field("status", { filterable: true, contentKeys: ["status"], writeContentKey: "status" }), team_id: ref("team_id", "teamId"), project_id: ref("project_id", "projectId"), workday_id: ref("workday_id", "workdayId"), assignment_id: ref("assignment_id", "assignmentId"), updated_at: updated() };
|
|
25
25
|
return {
|
|
26
|
-
agent_context_query: model({ name: "agent_context_query", aliases: ["agent_context_queries"], collection: "agent-context-queries", entityType: "AgentContextQuery", repoRoot, fields: { id: id(), title: title(), description: data("description"), revision: data("revision"), maturity: data("maturity"), purpose: data("purpose"), query: data("query"), target: data("target"), scope: data("scope"), code_scopes: data("code_scopes", "codeScopes"), relations: refs("relations", "relations"), depth: data("depth"), result_limit: data("result_limit", "resultLimit"), context_budget: data("context_budget", "contextBudget"), token_budget: data("token_budget", "tokenBudget"), format: data("format"), filters: data("filters"),
|
|
26
|
+
agent_context_query: model({ name: "agent_context_query", aliases: ["agent_context_queries"], collection: "agent-context-queries", entityType: "AgentContextQuery", repoRoot, fields: { id: id(), title: title(), description: data("description"), revision: data("revision"), maturity: data("maturity"), purpose: data("purpose"), query: data("query"), target: data("target"), scope: data("scope"), code_scopes: data("code_scopes", "codeScopes"), relations: refs("relations", "relations"), depth: data("depth"), result_limit: data("result_limit", "resultLimit"), context_budget: data("context_budget", "contextBudget"), token_budget: data("token_budget", "tokenBudget"), format: data("format"), filters: data("filters"), sources: data("sources"), requirement: data("requirement"), priority: data("priority"), minimum_budget: data("minimum_budget", "minimumBudget"), maximum_budget: data("maximum_budget", "maximumBudget"), summarization: data("summarization") } }),
|
|
27
27
|
agent_context_query_set: model({ name: "agent_context_query_set", aliases: ["agent_context_query_sets"], collection: "agent-context-query-sets", entityType: "AgentContextQuerySet", repoRoot, fields: { id: id(), title: title(), description: data("description"), revision: data("revision"), query_refs: refs("query_refs", "queryRefs"), merge_policy: data("merge_policy", "mergePolicy") }, references: [{ field: "query_refs", edgeType: "REFERENCES", targetModels: ["agent_context_query"], multiple: true }] }),
|
|
28
28
|
agent_instruction_template: model({ name: "agent_instruction_template", aliases: ["agent_instruction_templates"], collection: "agent-instruction-templates", entityType: "AgentInstructionTemplate", repoRoot, fields: { id: id(), title: title(), description: data("description"), revision: data("revision"), kind: data("kind"), instructions: data("instructions"), output_skeleton: data("output_skeleton", "outputSkeleton"), variables: refs("variables", "variables"), applies_to_profiles: refs("applies_to_profiles", "appliesToProfiles") } }),
|
|
29
29
|
discussion_topic: model({ name: "discussion_topic", aliases: ["discussion_topics"], collection: "discussion-topics", entityType: "DiscussionTopic", repoRoot, fields: { id: id(), title: title(), description: data("description"), slug: field("slug", { filterable: true, contentKeys: ["slug"], writeContentKey: "slug" }), group_ids: refs("group_ids", "groupIds"), parent_topic_id: ref("parent_topic_id", "parentTopicId"), status: field("status", { filterable: true, contentKeys: ["status"], writeContentKey: "status" }) }, references: [{ field: "parent_topic_id", edgeType: "PARENT_OF", targetModels: ["discussion_topic"] }] }),
|
|
@@ -80,6 +80,7 @@ const operationBindings = {
|
|
|
80
80
|
"host bootstrap enroll": local("local.host.bootstrap.enroll"),
|
|
81
81
|
"host reset": local("local.host.reset"),
|
|
82
82
|
"host uninstall": local("local.host.uninstall"),
|
|
83
|
+
"host initialize": local("local.host.initialize"),
|
|
83
84
|
"dev session start": local("local.dev.session.start"),
|
|
84
85
|
"dev session stop": local("local.dev.session.stop"),
|
|
85
86
|
"dev use": local("local.dev.use"),
|
|
@@ -217,6 +218,19 @@ function hostUninstall() {
|
|
|
217
218
|
value.resultSchemaId = "treeseed.host-uninstall-result/v1";
|
|
218
219
|
return value;
|
|
219
220
|
}
|
|
221
|
+
function hostInitialize() {
|
|
222
|
+
const value = leaf("initialize", "mutation", void 0, "authority");
|
|
223
|
+
if (value.nodeType !== "leaf") throw new Error("Host initialize must be a leaf command.");
|
|
224
|
+
value.description = "Initialize the generic host foundation from an immutable catalog-bound profile.";
|
|
225
|
+
value.options = [
|
|
226
|
+
...value.options ?? [],
|
|
227
|
+
{ name: "--profile", description: "Catalog-bound host initialization profile.", type: "string", required: true },
|
|
228
|
+
{ name: "--confirm", description: "Confirm installation of the reviewed profile plan.", type: "boolean" },
|
|
229
|
+
{ name: "--yes", description: "Confirm non-interactive execution after reviewing the plan.", type: "boolean" }
|
|
230
|
+
];
|
|
231
|
+
value.resultSchemaId = "treeseed.host-initialization-result/v1";
|
|
232
|
+
return value;
|
|
233
|
+
}
|
|
220
234
|
function hostSecurityInitialize() {
|
|
221
235
|
const value = leaf("initialize", "mutation", void 0, "credential");
|
|
222
236
|
if (value.nodeType !== "leaf") throw new Error("Host security initialization must be a leaf command.");
|
|
@@ -295,7 +309,7 @@ function libraryRead(segment, extraArguments = [], extraOptions = []) {
|
|
|
295
309
|
description: `${segment[0].toUpperCase()}${segment.slice(1)} project library knowledge.`,
|
|
296
310
|
kind: "read",
|
|
297
311
|
arguments: ["project", ...extraArguments].map((name) => ({ name, description: `${name} value.`, required: true })),
|
|
298
|
-
options: [{ name: "--ref", description: "
|
|
312
|
+
options: [{ name: "--ref", description: "Earlier historical revision; omit for the current library.", type: "string" }, ...extraOptions],
|
|
299
313
|
resultSchemaId: `treeseed.command.library.${segment}/v1`,
|
|
300
314
|
execution: local(`local.library.${segment}`)
|
|
301
315
|
};
|
|
@@ -369,6 +383,7 @@ const commandTree = {
|
|
|
369
383
|
developmentCommand("verify", "mutation", void 0, [{ name: "--session", description: "Development session identity.", type: "string" }, { name: "--candidate", description: "Candidate identity.", type: "string" }])
|
|
370
384
|
]),
|
|
371
385
|
branch("host", [
|
|
386
|
+
hostInitialize(),
|
|
372
387
|
leaf("status"),
|
|
373
388
|
leaf("doctor"),
|
|
374
389
|
leaf("plan"),
|
|
@@ -14,6 +14,7 @@ export declare function communicationOperations(): {
|
|
|
14
14
|
projectId: string;
|
|
15
15
|
invocationId: string | null;
|
|
16
16
|
completedAt: string | null;
|
|
17
|
+
requirement: "required" | "optional";
|
|
17
18
|
agentSlug: string;
|
|
18
19
|
capacity: {
|
|
19
20
|
status: string | null;
|
|
@@ -57,7 +58,6 @@ export declare function communicationOperations(): {
|
|
|
57
58
|
agentDefinition: string;
|
|
58
59
|
chatProfile: string;
|
|
59
60
|
};
|
|
60
|
-
requirement: "required" | "optional";
|
|
61
61
|
parentInvocationId: string | null;
|
|
62
62
|
depth: number;
|
|
63
63
|
requestedAt: string;
|
|
@@ -78,9 +78,9 @@ export declare function communicationOperations(): {
|
|
|
78
78
|
createdAt: string;
|
|
79
79
|
assignmentId: string | null;
|
|
80
80
|
invocationId: string;
|
|
81
|
+
requirement: "required" | "optional";
|
|
81
82
|
agentSlug: string;
|
|
82
83
|
projectSlug: string;
|
|
83
|
-
requirement: "required" | "optional";
|
|
84
84
|
messageRef: string;
|
|
85
85
|
markdown: string;
|
|
86
86
|
}[];
|
|
@@ -131,6 +131,7 @@ export declare function communicationOperations(): {
|
|
|
131
131
|
projectId: string;
|
|
132
132
|
invocationId: string | null;
|
|
133
133
|
completedAt: string | null;
|
|
134
|
+
requirement: "required" | "optional";
|
|
134
135
|
agentSlug: string;
|
|
135
136
|
capacity: {
|
|
136
137
|
status: string | null;
|
|
@@ -174,7 +175,6 @@ export declare function communicationOperations(): {
|
|
|
174
175
|
agentDefinition: string;
|
|
175
176
|
chatProfile: string;
|
|
176
177
|
};
|
|
177
|
-
requirement: "required" | "optional";
|
|
178
178
|
parentInvocationId: string | null;
|
|
179
179
|
depth: number;
|
|
180
180
|
requestedAt: string;
|
|
@@ -195,9 +195,9 @@ export declare function communicationOperations(): {
|
|
|
195
195
|
createdAt: string;
|
|
196
196
|
assignmentId: string | null;
|
|
197
197
|
invocationId: string;
|
|
198
|
+
requirement: "required" | "optional";
|
|
198
199
|
agentSlug: string;
|
|
199
200
|
projectSlug: string;
|
|
200
|
-
requirement: "required" | "optional";
|
|
201
201
|
messageRef: string;
|
|
202
202
|
markdown: string;
|
|
203
203
|
}[];
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export declare function knowledgeShareOperations(): {
|
|
2
|
+
shares: {
|
|
3
|
+
list: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
4
|
+
teamId: string;
|
|
5
|
+
}, {}, undefined, {
|
|
6
|
+
items: {
|
|
7
|
+
status: "revoked" | "active" | "expired";
|
|
8
|
+
schemaVersion: "treeseed.knowledge-share/v1";
|
|
9
|
+
id: string;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
targetTeamId: string;
|
|
13
|
+
projectIds: string[];
|
|
14
|
+
sourceTeamId: string;
|
|
15
|
+
revokedAt: string | null;
|
|
16
|
+
expiresAt?: string | null | undefined;
|
|
17
|
+
operations?: ("read" | "context" | "query" | "graph")[] | undefined;
|
|
18
|
+
paths?: string[] | undefined;
|
|
19
|
+
contentModels?: string[] | undefined;
|
|
20
|
+
}[];
|
|
21
|
+
}>;
|
|
22
|
+
show: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
23
|
+
teamId: string;
|
|
24
|
+
shareId: string;
|
|
25
|
+
}, {}, undefined, {
|
|
26
|
+
status: "revoked" | "active" | "expired";
|
|
27
|
+
schemaVersion: "treeseed.knowledge-share/v1";
|
|
28
|
+
id: string;
|
|
29
|
+
createdAt: string;
|
|
30
|
+
updatedAt: string;
|
|
31
|
+
targetTeamId: string;
|
|
32
|
+
projectIds: string[];
|
|
33
|
+
sourceTeamId: string;
|
|
34
|
+
revokedAt: string | null;
|
|
35
|
+
expiresAt?: string | null | undefined;
|
|
36
|
+
operations?: ("read" | "context" | "query" | "graph")[] | undefined;
|
|
37
|
+
paths?: string[] | undefined;
|
|
38
|
+
contentModels?: string[] | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
grant: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
41
|
+
teamId: string;
|
|
42
|
+
}, {}, {
|
|
43
|
+
targetTeamId: string;
|
|
44
|
+
projectIds: string[];
|
|
45
|
+
expiresAt?: string | null | undefined;
|
|
46
|
+
operations?: ("read" | "context" | "query" | "graph")[] | undefined;
|
|
47
|
+
paths?: string[] | undefined;
|
|
48
|
+
contentModels?: string[] | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
status: "revoked" | "active" | "expired";
|
|
51
|
+
schemaVersion: "treeseed.knowledge-share/v1";
|
|
52
|
+
id: string;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
targetTeamId: string;
|
|
56
|
+
projectIds: string[];
|
|
57
|
+
sourceTeamId: string;
|
|
58
|
+
revokedAt: string | null;
|
|
59
|
+
expiresAt?: string | null | undefined;
|
|
60
|
+
operations?: ("read" | "context" | "query" | "graph")[] | undefined;
|
|
61
|
+
paths?: string[] | undefined;
|
|
62
|
+
contentModels?: string[] | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
revoke: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
65
|
+
teamId: string;
|
|
66
|
+
shareId: string;
|
|
67
|
+
}, {}, {}, {
|
|
68
|
+
status: "revoked" | "active" | "expired";
|
|
69
|
+
schemaVersion: "treeseed.knowledge-share/v1";
|
|
70
|
+
id: string;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
updatedAt: string;
|
|
73
|
+
targetTeamId: string;
|
|
74
|
+
projectIds: string[];
|
|
75
|
+
sourceTeamId: string;
|
|
76
|
+
revokedAt: string | null;
|
|
77
|
+
expiresAt?: string | null | undefined;
|
|
78
|
+
operations?: ("read" | "context" | "query" | "graph")[] | undefined;
|
|
79
|
+
paths?: string[] | undefined;
|
|
80
|
+
contentModels?: string[] | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
};
|
|
83
|
+
teamSearch: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
84
|
+
teamId: string;
|
|
85
|
+
}, {}, {
|
|
86
|
+
request: Record<string, unknown>;
|
|
87
|
+
projectIds?: string[] | undefined;
|
|
88
|
+
projectSlugs?: string[] | undefined;
|
|
89
|
+
sharedSources?: {
|
|
90
|
+
teamId: string;
|
|
91
|
+
projectIds?: string[] | undefined;
|
|
92
|
+
}[] | undefined;
|
|
93
|
+
}, Record<string, unknown>>;
|
|
94
|
+
teamQuery: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
95
|
+
teamId: string;
|
|
96
|
+
}, {}, {
|
|
97
|
+
request: Record<string, unknown>;
|
|
98
|
+
projectIds?: string[] | undefined;
|
|
99
|
+
projectSlugs?: string[] | undefined;
|
|
100
|
+
sharedSources?: {
|
|
101
|
+
teamId: string;
|
|
102
|
+
projectIds?: string[] | undefined;
|
|
103
|
+
}[] | undefined;
|
|
104
|
+
}, Record<string, unknown>>;
|
|
105
|
+
teamContext: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
106
|
+
teamId: string;
|
|
107
|
+
}, {}, {
|
|
108
|
+
request: Record<string, unknown>;
|
|
109
|
+
projectIds?: string[] | undefined;
|
|
110
|
+
projectSlugs?: string[] | undefined;
|
|
111
|
+
sharedSources?: {
|
|
112
|
+
teamId: string;
|
|
113
|
+
projectIds?: string[] | undefined;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
}, Record<string, unknown>>;
|
|
116
|
+
teamGraph: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
117
|
+
teamId: string;
|
|
118
|
+
}, {}, {
|
|
119
|
+
request: Record<string, unknown>;
|
|
120
|
+
projectIds?: string[] | undefined;
|
|
121
|
+
projectSlugs?: string[] | undefined;
|
|
122
|
+
sharedSources?: {
|
|
123
|
+
teamId: string;
|
|
124
|
+
projectIds?: string[] | undefined;
|
|
125
|
+
}[] | undefined;
|
|
126
|
+
}, Record<string, unknown>>;
|
|
127
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { defineOperation as define } from "../operation-builder.js";
|
|
3
|
+
import { knowledgeShareGrantInputSchema, knowledgeShareSchema, teamKnowledgeRequestSchema } from "../knowledge/contracts.js";
|
|
4
|
+
const none = z.undefined(), empty = z.object({}).strict(), teamPath = z.object({ teamId: z.string().min(1) }).strict();
|
|
5
|
+
const sharePath = z.object({ teamId: z.string().min(1), shareId: z.string().min(1) }).strict();
|
|
6
|
+
const parameters = (operationId) => `treeseed.${operationId}.parameters/v1`;
|
|
7
|
+
const readDescriptor = (operationId, path) => ({ operationId, description: `Read ${operationId}.`, rest: { method: "GET", path }, parameters: parameters(operationId), capability: "knowledge.read", authentication: "oauth", oauthScopes: ["treeseed:read"], kind: "read", riskClass: "ordinary", confirmation: "never", surfaces: ["rest", "cli", "mcp_tool"], cacheScope: "principal", pagination: "none" });
|
|
8
|
+
const execute = (operationId, path) => define({ operationId, description: `Execute ${operationId} across authorized team knowledge.`, rest: { method: "POST", path }, parameters: parameters(operationId), capability: "knowledge.read", authentication: "oauth", oauthScopes: ["treeseed:read"], kind: "read", riskClass: "ordinary", confirmation: "never", surfaces: ["rest", "mcp_tool"], cacheScope: "none", pagination: "none" }, { path: teamPath, query: empty, body: teamKnowledgeRequestSchema, output: z.record(z.unknown()) });
|
|
9
|
+
function knowledgeShareOperations() {
|
|
10
|
+
return {
|
|
11
|
+
shares: {
|
|
12
|
+
list: define(readDescriptor("knowledge.shares.list", "/v1/teams/{teamId}/knowledge/shares"), { path: teamPath, query: empty, body: none, output: z.object({ items: z.array(knowledgeShareSchema) }).strict() }),
|
|
13
|
+
show: define(readDescriptor("knowledge.shares.show", "/v1/teams/{teamId}/knowledge/shares/{shareId}"), { path: sharePath, query: empty, body: none, output: knowledgeShareSchema }),
|
|
14
|
+
grant: define({ operationId: "knowledge.shares.grant", description: "Grant bounded read-only knowledge access to another team.", rest: { method: "POST", path: "/v1/teams/{teamId}/knowledge/shares" }, parameters: parameters("knowledge.shares.grant"), capability: "knowledge.share", authentication: "oauth", oauthScopes: ["treeseed:projects:write"], kind: "mutation", riskClass: "authority", confirmation: "input_required", surfaces: ["rest", "cli", "mcp_tool"], cacheScope: "none", pagination: "none" }, { path: teamPath, query: empty, body: knowledgeShareGrantInputSchema, output: knowledgeShareSchema }),
|
|
15
|
+
revoke: define({ operationId: "knowledge.shares.revoke", description: "Revoke a cross-team knowledge share.", rest: { method: "DELETE", path: "/v1/teams/{teamId}/knowledge/shares/{shareId}" }, parameters: parameters("knowledge.shares.revoke"), capability: "knowledge.share", authentication: "oauth", oauthScopes: ["treeseed:projects:write"], kind: "mutation", riskClass: "authority", confirmation: "input_required", surfaces: ["rest", "cli", "mcp_tool"], cacheScope: "none", pagination: "none" }, { path: sharePath, query: empty, body: empty, output: knowledgeShareSchema })
|
|
16
|
+
},
|
|
17
|
+
teamSearch: execute("knowledge.team.search", "/v1/teams/{teamId}/knowledge/search"),
|
|
18
|
+
teamQuery: execute("knowledge.team.query", "/v1/teams/{teamId}/knowledge/query"),
|
|
19
|
+
teamContext: execute("knowledge.team.context", "/v1/teams/{teamId}/knowledge/context"),
|
|
20
|
+
teamGraph: execute("knowledge.team.graph", "/v1/teams/{teamId}/knowledge/graph")
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
knowledgeShareOperations
|
|
25
|
+
};
|
|
@@ -324,6 +324,7 @@ export declare const communicationTargetSchema: z.ZodObject<{
|
|
|
324
324
|
projectId: string;
|
|
325
325
|
invocationId: string | null;
|
|
326
326
|
completedAt: string | null;
|
|
327
|
+
requirement: "required" | "optional";
|
|
327
328
|
agentSlug: string;
|
|
328
329
|
capacity: {
|
|
329
330
|
status: string | null;
|
|
@@ -367,7 +368,6 @@ export declare const communicationTargetSchema: z.ZodObject<{
|
|
|
367
368
|
agentDefinition: string;
|
|
368
369
|
chatProfile: string;
|
|
369
370
|
};
|
|
370
|
-
requirement: "required" | "optional";
|
|
371
371
|
parentInvocationId: string | null;
|
|
372
372
|
depth: number;
|
|
373
373
|
requestedAt: string;
|
|
@@ -383,6 +383,7 @@ export declare const communicationTargetSchema: z.ZodObject<{
|
|
|
383
383
|
projectId: string;
|
|
384
384
|
invocationId: string | null;
|
|
385
385
|
completedAt: string | null;
|
|
386
|
+
requirement: "required" | "optional";
|
|
386
387
|
agentSlug: string;
|
|
387
388
|
capacity: {
|
|
388
389
|
status: string | null;
|
|
@@ -426,7 +427,6 @@ export declare const communicationTargetSchema: z.ZodObject<{
|
|
|
426
427
|
agentDefinition: string;
|
|
427
428
|
chatProfile: string;
|
|
428
429
|
};
|
|
429
|
-
requirement: "required" | "optional";
|
|
430
430
|
parentInvocationId: string | null;
|
|
431
431
|
depth: number;
|
|
432
432
|
requestedAt: string;
|
|
@@ -456,9 +456,9 @@ export declare const communicationResponseSchema: z.ZodObject<{
|
|
|
456
456
|
createdAt: string;
|
|
457
457
|
assignmentId: string | null;
|
|
458
458
|
invocationId: string;
|
|
459
|
+
requirement: "required" | "optional";
|
|
459
460
|
agentSlug: string;
|
|
460
461
|
projectSlug: string;
|
|
461
|
-
requirement: "required" | "optional";
|
|
462
462
|
messageRef: string;
|
|
463
463
|
markdown: string;
|
|
464
464
|
}, {
|
|
@@ -467,9 +467,9 @@ export declare const communicationResponseSchema: z.ZodObject<{
|
|
|
467
467
|
createdAt: string;
|
|
468
468
|
assignmentId: string | null;
|
|
469
469
|
invocationId: string;
|
|
470
|
+
requirement: "required" | "optional";
|
|
470
471
|
agentSlug: string;
|
|
471
472
|
projectSlug: string;
|
|
472
|
-
requirement: "required" | "optional";
|
|
473
473
|
messageRef: string;
|
|
474
474
|
markdown: string;
|
|
475
475
|
}>;
|
|
@@ -669,6 +669,7 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
669
669
|
projectId: string;
|
|
670
670
|
invocationId: string | null;
|
|
671
671
|
completedAt: string | null;
|
|
672
|
+
requirement: "required" | "optional";
|
|
672
673
|
agentSlug: string;
|
|
673
674
|
capacity: {
|
|
674
675
|
status: string | null;
|
|
@@ -712,7 +713,6 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
712
713
|
agentDefinition: string;
|
|
713
714
|
chatProfile: string;
|
|
714
715
|
};
|
|
715
|
-
requirement: "required" | "optional";
|
|
716
716
|
parentInvocationId: string | null;
|
|
717
717
|
depth: number;
|
|
718
718
|
requestedAt: string;
|
|
@@ -728,6 +728,7 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
728
728
|
projectId: string;
|
|
729
729
|
invocationId: string | null;
|
|
730
730
|
completedAt: string | null;
|
|
731
|
+
requirement: "required" | "optional";
|
|
731
732
|
agentSlug: string;
|
|
732
733
|
capacity: {
|
|
733
734
|
status: string | null;
|
|
@@ -771,7 +772,6 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
771
772
|
agentDefinition: string;
|
|
772
773
|
chatProfile: string;
|
|
773
774
|
};
|
|
774
|
-
requirement: "required" | "optional";
|
|
775
775
|
parentInvocationId: string | null;
|
|
776
776
|
depth: number;
|
|
777
777
|
requestedAt: string;
|
|
@@ -801,9 +801,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
801
801
|
createdAt: string;
|
|
802
802
|
assignmentId: string | null;
|
|
803
803
|
invocationId: string;
|
|
804
|
+
requirement: "required" | "optional";
|
|
804
805
|
agentSlug: string;
|
|
805
806
|
projectSlug: string;
|
|
806
|
-
requirement: "required" | "optional";
|
|
807
807
|
messageRef: string;
|
|
808
808
|
markdown: string;
|
|
809
809
|
}, {
|
|
@@ -812,9 +812,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
812
812
|
createdAt: string;
|
|
813
813
|
assignmentId: string | null;
|
|
814
814
|
invocationId: string;
|
|
815
|
+
requirement: "required" | "optional";
|
|
815
816
|
agentSlug: string;
|
|
816
817
|
projectSlug: string;
|
|
817
|
-
requirement: "required" | "optional";
|
|
818
818
|
messageRef: string;
|
|
819
819
|
markdown: string;
|
|
820
820
|
}>, "many">;
|
|
@@ -892,6 +892,7 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
892
892
|
projectId: string;
|
|
893
893
|
invocationId: string | null;
|
|
894
894
|
completedAt: string | null;
|
|
895
|
+
requirement: "required" | "optional";
|
|
895
896
|
agentSlug: string;
|
|
896
897
|
capacity: {
|
|
897
898
|
status: string | null;
|
|
@@ -935,7 +936,6 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
935
936
|
agentDefinition: string;
|
|
936
937
|
chatProfile: string;
|
|
937
938
|
};
|
|
938
|
-
requirement: "required" | "optional";
|
|
939
939
|
parentInvocationId: string | null;
|
|
940
940
|
depth: number;
|
|
941
941
|
requestedAt: string;
|
|
@@ -956,9 +956,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
956
956
|
createdAt: string;
|
|
957
957
|
assignmentId: string | null;
|
|
958
958
|
invocationId: string;
|
|
959
|
+
requirement: "required" | "optional";
|
|
959
960
|
agentSlug: string;
|
|
960
961
|
projectSlug: string;
|
|
961
|
-
requirement: "required" | "optional";
|
|
962
962
|
messageRef: string;
|
|
963
963
|
markdown: string;
|
|
964
964
|
}[];
|
|
@@ -1003,6 +1003,7 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
1003
1003
|
projectId: string;
|
|
1004
1004
|
invocationId: string | null;
|
|
1005
1005
|
completedAt: string | null;
|
|
1006
|
+
requirement: "required" | "optional";
|
|
1006
1007
|
agentSlug: string;
|
|
1007
1008
|
capacity: {
|
|
1008
1009
|
status: string | null;
|
|
@@ -1046,7 +1047,6 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
1046
1047
|
agentDefinition: string;
|
|
1047
1048
|
chatProfile: string;
|
|
1048
1049
|
};
|
|
1049
|
-
requirement: "required" | "optional";
|
|
1050
1050
|
parentInvocationId: string | null;
|
|
1051
1051
|
depth: number;
|
|
1052
1052
|
requestedAt: string;
|
|
@@ -1067,9 +1067,9 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
1067
1067
|
createdAt: string;
|
|
1068
1068
|
assignmentId: string | null;
|
|
1069
1069
|
invocationId: string;
|
|
1070
|
+
requirement: "required" | "optional";
|
|
1070
1071
|
agentSlug: string;
|
|
1071
1072
|
projectSlug: string;
|
|
1072
|
-
requirement: "required" | "optional";
|
|
1073
1073
|
messageRef: string;
|
|
1074
1074
|
markdown: string;
|
|
1075
1075
|
}[];
|
|
@@ -645,6 +645,131 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
645
645
|
readonly publishReview: import("./control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
646
646
|
reviewId: string;
|
|
647
647
|
}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
|
|
648
|
+
readonly shares: {
|
|
649
|
+
list: import("./control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
650
|
+
teamId: string;
|
|
651
|
+
}, {}, undefined, {
|
|
652
|
+
items: {
|
|
653
|
+
status: "revoked" | "active" | "expired";
|
|
654
|
+
schemaVersion: "treeseed.knowledge-share/v1";
|
|
655
|
+
id: string;
|
|
656
|
+
createdAt: string;
|
|
657
|
+
updatedAt: string;
|
|
658
|
+
targetTeamId: string;
|
|
659
|
+
projectIds: string[];
|
|
660
|
+
sourceTeamId: string;
|
|
661
|
+
revokedAt: string | null;
|
|
662
|
+
expiresAt?: string | null | undefined;
|
|
663
|
+
operations?: ("read" | "context" | "query" | "graph")[] | undefined;
|
|
664
|
+
paths?: string[] | undefined;
|
|
665
|
+
contentModels?: string[] | undefined;
|
|
666
|
+
}[];
|
|
667
|
+
}>;
|
|
668
|
+
show: import("./control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
669
|
+
teamId: string;
|
|
670
|
+
shareId: string;
|
|
671
|
+
}, {}, undefined, {
|
|
672
|
+
status: "revoked" | "active" | "expired";
|
|
673
|
+
schemaVersion: "treeseed.knowledge-share/v1";
|
|
674
|
+
id: string;
|
|
675
|
+
createdAt: string;
|
|
676
|
+
updatedAt: string;
|
|
677
|
+
targetTeamId: string;
|
|
678
|
+
projectIds: string[];
|
|
679
|
+
sourceTeamId: string;
|
|
680
|
+
revokedAt: string | null;
|
|
681
|
+
expiresAt?: string | null | undefined;
|
|
682
|
+
operations?: ("read" | "context" | "query" | "graph")[] | undefined;
|
|
683
|
+
paths?: string[] | undefined;
|
|
684
|
+
contentModels?: string[] | undefined;
|
|
685
|
+
}>;
|
|
686
|
+
grant: import("./control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
687
|
+
teamId: string;
|
|
688
|
+
}, {}, {
|
|
689
|
+
targetTeamId: string;
|
|
690
|
+
projectIds: string[];
|
|
691
|
+
expiresAt?: string | null | undefined;
|
|
692
|
+
operations?: ("read" | "context" | "query" | "graph")[] | undefined;
|
|
693
|
+
paths?: string[] | undefined;
|
|
694
|
+
contentModels?: string[] | undefined;
|
|
695
|
+
}, {
|
|
696
|
+
status: "revoked" | "active" | "expired";
|
|
697
|
+
schemaVersion: "treeseed.knowledge-share/v1";
|
|
698
|
+
id: string;
|
|
699
|
+
createdAt: string;
|
|
700
|
+
updatedAt: string;
|
|
701
|
+
targetTeamId: string;
|
|
702
|
+
projectIds: string[];
|
|
703
|
+
sourceTeamId: string;
|
|
704
|
+
revokedAt: string | null;
|
|
705
|
+
expiresAt?: string | null | undefined;
|
|
706
|
+
operations?: ("read" | "context" | "query" | "graph")[] | undefined;
|
|
707
|
+
paths?: string[] | undefined;
|
|
708
|
+
contentModels?: string[] | undefined;
|
|
709
|
+
}>;
|
|
710
|
+
revoke: import("./control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
711
|
+
teamId: string;
|
|
712
|
+
shareId: string;
|
|
713
|
+
}, {}, {}, {
|
|
714
|
+
status: "revoked" | "active" | "expired";
|
|
715
|
+
schemaVersion: "treeseed.knowledge-share/v1";
|
|
716
|
+
id: string;
|
|
717
|
+
createdAt: string;
|
|
718
|
+
updatedAt: string;
|
|
719
|
+
targetTeamId: string;
|
|
720
|
+
projectIds: string[];
|
|
721
|
+
sourceTeamId: string;
|
|
722
|
+
revokedAt: string | null;
|
|
723
|
+
expiresAt?: string | null | undefined;
|
|
724
|
+
operations?: ("read" | "context" | "query" | "graph")[] | undefined;
|
|
725
|
+
paths?: string[] | undefined;
|
|
726
|
+
contentModels?: string[] | undefined;
|
|
727
|
+
}>;
|
|
728
|
+
};
|
|
729
|
+
readonly teamSearch: import("./control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
730
|
+
teamId: string;
|
|
731
|
+
}, {}, {
|
|
732
|
+
request: Record<string, unknown>;
|
|
733
|
+
projectIds?: string[] | undefined;
|
|
734
|
+
projectSlugs?: string[] | undefined;
|
|
735
|
+
sharedSources?: {
|
|
736
|
+
teamId: string;
|
|
737
|
+
projectIds?: string[] | undefined;
|
|
738
|
+
}[] | undefined;
|
|
739
|
+
}, Record<string, unknown>>;
|
|
740
|
+
readonly teamQuery: import("./control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
741
|
+
teamId: string;
|
|
742
|
+
}, {}, {
|
|
743
|
+
request: Record<string, unknown>;
|
|
744
|
+
projectIds?: string[] | undefined;
|
|
745
|
+
projectSlugs?: string[] | undefined;
|
|
746
|
+
sharedSources?: {
|
|
747
|
+
teamId: string;
|
|
748
|
+
projectIds?: string[] | undefined;
|
|
749
|
+
}[] | undefined;
|
|
750
|
+
}, Record<string, unknown>>;
|
|
751
|
+
readonly teamContext: import("./control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
752
|
+
teamId: string;
|
|
753
|
+
}, {}, {
|
|
754
|
+
request: Record<string, unknown>;
|
|
755
|
+
projectIds?: string[] | undefined;
|
|
756
|
+
projectSlugs?: string[] | undefined;
|
|
757
|
+
sharedSources?: {
|
|
758
|
+
teamId: string;
|
|
759
|
+
projectIds?: string[] | undefined;
|
|
760
|
+
}[] | undefined;
|
|
761
|
+
}, Record<string, unknown>>;
|
|
762
|
+
readonly teamGraph: import("./control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
763
|
+
teamId: string;
|
|
764
|
+
}, {}, {
|
|
765
|
+
request: Record<string, unknown>;
|
|
766
|
+
projectIds?: string[] | undefined;
|
|
767
|
+
projectSlugs?: string[] | undefined;
|
|
768
|
+
sharedSources?: {
|
|
769
|
+
teamId: string;
|
|
770
|
+
projectIds?: string[] | undefined;
|
|
771
|
+
}[] | undefined;
|
|
772
|
+
}, Record<string, unknown>>;
|
|
648
773
|
};
|
|
649
774
|
readonly governance: {
|
|
650
775
|
readonly proposals: import("./control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
@@ -933,6 +1058,7 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
933
1058
|
projectId: string;
|
|
934
1059
|
invocationId: string | null;
|
|
935
1060
|
completedAt: string | null;
|
|
1061
|
+
requirement: "required" | "optional";
|
|
936
1062
|
agentSlug: string;
|
|
937
1063
|
capacity: {
|
|
938
1064
|
status: string | null;
|
|
@@ -976,7 +1102,6 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
976
1102
|
agentDefinition: string;
|
|
977
1103
|
chatProfile: string;
|
|
978
1104
|
};
|
|
979
|
-
requirement: "required" | "optional";
|
|
980
1105
|
parentInvocationId: string | null;
|
|
981
1106
|
depth: number;
|
|
982
1107
|
requestedAt: string;
|
|
@@ -997,9 +1122,9 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
997
1122
|
createdAt: string;
|
|
998
1123
|
assignmentId: string | null;
|
|
999
1124
|
invocationId: string;
|
|
1125
|
+
requirement: "required" | "optional";
|
|
1000
1126
|
agentSlug: string;
|
|
1001
1127
|
projectSlug: string;
|
|
1002
|
-
requirement: "required" | "optional";
|
|
1003
1128
|
messageRef: string;
|
|
1004
1129
|
markdown: string;
|
|
1005
1130
|
}[];
|
|
@@ -1050,6 +1175,7 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
1050
1175
|
projectId: string;
|
|
1051
1176
|
invocationId: string | null;
|
|
1052
1177
|
completedAt: string | null;
|
|
1178
|
+
requirement: "required" | "optional";
|
|
1053
1179
|
agentSlug: string;
|
|
1054
1180
|
capacity: {
|
|
1055
1181
|
status: string | null;
|
|
@@ -1093,7 +1219,6 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
1093
1219
|
agentDefinition: string;
|
|
1094
1220
|
chatProfile: string;
|
|
1095
1221
|
};
|
|
1096
|
-
requirement: "required" | "optional";
|
|
1097
1222
|
parentInvocationId: string | null;
|
|
1098
1223
|
depth: number;
|
|
1099
1224
|
requestedAt: string;
|
|
@@ -1114,9 +1239,9 @@ export declare const CONTROL_PLANE_OPERATIONS: {
|
|
|
1114
1239
|
createdAt: string;
|
|
1115
1240
|
assignmentId: string | null;
|
|
1116
1241
|
invocationId: string;
|
|
1242
|
+
requirement: "required" | "optional";
|
|
1117
1243
|
agentSlug: string;
|
|
1118
1244
|
projectSlug: string;
|
|
1119
|
-
requirement: "required" | "optional";
|
|
1120
1245
|
messageRef: string;
|
|
1121
1246
|
markdown: string;
|
|
1122
1247
|
}[];
|
|
@@ -5,6 +5,7 @@ import { inboxOperations } from "./catalog/inbox-operations.js";
|
|
|
5
5
|
import { adminAccountOperations, adminTeamOperations } from "./catalog/admin-account-team-operations.js";
|
|
6
6
|
import { TREEAI_CONTROL_PLANE_OPERATIONS } from "./catalog/treeai-operations.js";
|
|
7
7
|
import { capabilityOntologyOperations } from "./catalog/capability-ontology-operations.js";
|
|
8
|
+
import { knowledgeShareOperations } from "./catalog/knowledge-share-operations.js";
|
|
8
9
|
import { buildControlPlaneCatalog, flattenControlPlaneOperations } from "./catalog/control-plane-catalog.js";
|
|
9
10
|
const empty = z.object({}).strict();
|
|
10
11
|
const none = z.undefined();
|
|
@@ -187,6 +188,7 @@ const CONTROL_PLANE_OPERATIONS = {
|
|
|
187
188
|
updateStatus: resource("discussions.status.update", "POST", "/v1/discussions/{discussionId}/status", { discussionId: z.string().min(1) }, { capability: "discussions.write", scopes: ["treeseed:knowledge:write"], concurrency: true })
|
|
188
189
|
},
|
|
189
190
|
knowledge: {
|
|
191
|
+
...knowledgeShareOperations(),
|
|
190
192
|
library: resource("knowledge.library.list", "GET", "/v1/knowledge/library", {}, { capability: "knowledge.read", surfaces: ["rest", "mcp_tool", "mcp_resource"], pagination: "cursor" }),
|
|
191
193
|
reader: resource("knowledge.reader.show", "GET", "/v1/knowledge/reader", {}, { capability: "knowledge.read", surfaces: ["rest", "mcp_resource"] }),
|
|
192
194
|
context: resource("knowledge.context.show", "GET", "/v1/knowledge/context", {}, { capability: "knowledge.read", surfaces: ["rest", "mcp_tool"] }),
|
|
@@ -9,5 +9,6 @@ export * from './oauth.js';
|
|
|
9
9
|
export * from './communication/contracts.js';
|
|
10
10
|
export * from './communication/addressing.js';
|
|
11
11
|
export * from './inbox/contracts.js';
|
|
12
|
+
export * from './knowledge/contracts.js';
|
|
12
13
|
export * from '../capacity-provider/capability-ontology.js';
|
|
13
14
|
export * from './seed/seed-bundle.js';
|
|
@@ -9,5 +9,6 @@ export * from "./oauth.js";
|
|
|
9
9
|
export * from "./communication/contracts.js";
|
|
10
10
|
export * from "./communication/addressing.js";
|
|
11
11
|
export * from "./inbox/contracts.js";
|
|
12
|
+
export * from "./knowledge/contracts.js";
|
|
12
13
|
export * from "../capacity-provider/capability-ontology.js";
|
|
13
14
|
export * from "./seed/seed-bundle.js";
|