@treeseed/sdk 0.13.0-rc.15 → 0.13.0-rc.16

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.
@@ -1679,7 +1679,7 @@ declare const schemas: {
1679
1679
  related_proposals?: string[] | undefined;
1680
1680
  related_decisions?: string[] | undefined;
1681
1681
  related_books?: string[] | undefined;
1682
- question_type?: "evaluation" | "research" | "implementation" | "knowledge-gap" | "strategy" | undefined;
1682
+ question_type?: "research" | "evaluation" | "implementation" | "knowledge-gap" | "strategy" | undefined;
1683
1683
  motivation?: string | undefined;
1684
1684
  primary_contributor?: string | undefined;
1685
1685
  }, {
@@ -1701,7 +1701,7 @@ declare const schemas: {
1701
1701
  related_proposals?: string[] | undefined;
1702
1702
  related_decisions?: string[] | undefined;
1703
1703
  related_books?: string[] | undefined;
1704
- question_type?: "evaluation" | "research" | "implementation" | "knowledge-gap" | "strategy" | undefined;
1704
+ question_type?: "research" | "evaluation" | "implementation" | "knowledge-gap" | "strategy" | undefined;
1705
1705
  motivation?: string | undefined;
1706
1706
  primary_contributor?: string | undefined;
1707
1707
  }>;
@@ -11744,7 +11744,7 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
11744
11744
  related_proposals?: string[] | undefined;
11745
11745
  related_decisions?: string[] | undefined;
11746
11746
  related_books?: string[] | undefined;
11747
- question_type?: "evaluation" | "research" | "implementation" | "knowledge-gap" | "strategy" | undefined;
11747
+ question_type?: "research" | "evaluation" | "implementation" | "knowledge-gap" | "strategy" | undefined;
11748
11748
  motivation?: string | undefined;
11749
11749
  primary_contributor?: string | undefined;
11750
11750
  } | {
@@ -21187,7 +21187,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
21187
21187
  related_proposals?: string[] | undefined;
21188
21188
  related_decisions?: string[] | undefined;
21189
21189
  related_books?: string[] | undefined;
21190
- question_type?: "evaluation" | "research" | "implementation" | "knowledge-gap" | "strategy" | undefined;
21190
+ question_type?: "research" | "evaluation" | "implementation" | "knowledge-gap" | "strategy" | undefined;
21191
21191
  motivation?: string | undefined;
21192
21192
  primary_contributor?: string | undefined;
21193
21193
  }, {
@@ -21209,7 +21209,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
21209
21209
  related_proposals?: string[] | undefined;
21210
21210
  related_decisions?: string[] | undefined;
21211
21211
  related_books?: string[] | undefined;
21212
- question_type?: "evaluation" | "research" | "implementation" | "knowledge-gap" | "strategy" | undefined;
21212
+ question_type?: "research" | "evaluation" | "implementation" | "knowledge-gap" | "strategy" | undefined;
21213
21213
  motivation?: string | undefined;
21214
21214
  primary_contributor?: string | undefined;
21215
21215
  }> | z.ZodObject<{
@@ -1926,7 +1926,7 @@ export declare function validatePortableContentData(model: string, value: unknow
1926
1926
  related_proposals?: string[] | undefined;
1927
1927
  related_decisions?: string[] | undefined;
1928
1928
  related_books?: string[] | undefined;
1929
- question_type?: "evaluation" | "research" | "implementation" | "knowledge-gap" | "strategy" | undefined;
1929
+ question_type?: "research" | "evaluation" | "implementation" | "knowledge-gap" | "strategy" | undefined;
1930
1930
  motivation?: string | undefined;
1931
1931
  primary_contributor?: string | undefined;
1932
1932
  } | {
@@ -255,6 +255,79 @@ export declare const CONTROL_PLANE_OPERATIONS: {
255
255
  approvalId: string;
256
256
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
257
257
  };
258
+ readonly planning: {
259
+ readonly status: ControlPlaneOperationBinding<{
260
+ decisionId: string;
261
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
262
+ readonly requestInput: ControlPlaneOperationBinding<{
263
+ decisionId: string;
264
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
265
+ readonly executionInputs: ControlPlaneOperationBinding<{
266
+ decisionId: string;
267
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
268
+ readonly createExecutionInput: ControlPlaneOperationBinding<{
269
+ decisionId: string;
270
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
271
+ readonly acceptExecutionInput: ControlPlaneOperationBinding<{
272
+ inputId: string;
273
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
274
+ readonly requestExecutionInputRevision: ControlPlaneOperationBinding<{
275
+ inputId: string;
276
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
277
+ };
278
+ readonly estimates: {
279
+ readonly create: ControlPlaneOperationBinding<{
280
+ decisionId: string;
281
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
282
+ readonly list: ControlPlaneOperationBinding<{
283
+ decisionId: string;
284
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
285
+ readonly accept: ControlPlaneOperationBinding<{
286
+ estimateId: string;
287
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
288
+ readonly reject: ControlPlaneOperationBinding<{
289
+ estimateId: string;
290
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
291
+ };
292
+ readonly assignmentGraphs: {
293
+ readonly validateAuthority: ControlPlaneOperationBinding<{}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
294
+ readonly compile: ControlPlaneOperationBinding<{
295
+ decisionId: string;
296
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
297
+ readonly list: ControlPlaneOperationBinding<{
298
+ decisionId: string;
299
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
300
+ readonly show: ControlPlaneOperationBinding<{
301
+ graphId: string;
302
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
303
+ readonly manifest: ControlPlaneOperationBinding<{
304
+ manifestId: string;
305
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
306
+ readonly createManifest: ControlPlaneOperationBinding<{
307
+ contractId: string;
308
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
309
+ readonly approveContract: ControlPlaneOperationBinding<{
310
+ contractId: string;
311
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
312
+ readonly rejectContract: ControlPlaneOperationBinding<{
313
+ contractId: string;
314
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
315
+ };
316
+ readonly research: {
317
+ readonly createWorkflow: ControlPlaneOperationBinding<{
318
+ projectId: string;
319
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
320
+ readonly workflows: ControlPlaneOperationBinding<{
321
+ projectId: string;
322
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
323
+ readonly workflow: ControlPlaneOperationBinding<{
324
+ workflowId: string;
325
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
326
+ readonly completeStage: ControlPlaneOperationBinding<{
327
+ stage: string;
328
+ workflowId: string;
329
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
330
+ };
258
331
  readonly repositories: {
259
332
  readonly githubSetup: ControlPlaneOperationBinding<{
260
333
  kind: string;
@@ -367,6 +440,28 @@ export declare const CONTROL_PLANE_OPERATIONS: {
367
440
  artifactId: string;
368
441
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
369
442
  };
443
+ readonly communications: {
444
+ readonly invocations: ControlPlaneOperationBinding<{
445
+ teamId: string;
446
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
447
+ readonly invocation: ControlPlaneOperationBinding<{
448
+ teamId: string;
449
+ invocationId: string;
450
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
451
+ readonly status: ControlPlaneOperationBinding<{
452
+ teamId: string;
453
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
454
+ readonly handoffs: ControlPlaneOperationBinding<{
455
+ teamId: string;
456
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
457
+ readonly clientActions: ControlPlaneOperationBinding<{
458
+ teamId: string;
459
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
460
+ readonly cancelInvocation: ControlPlaneOperationBinding<{
461
+ teamId: string;
462
+ invocationId: string;
463
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
464
+ };
370
465
  readonly capacity: {
371
466
  readonly availability: ControlPlaneOperationBinding<{
372
467
  teamId: string;
@@ -221,6 +221,36 @@ const CONTROL_PLANE_OPERATIONS = {
221
221
  approval: resource("governance.approvals.show", "GET", "/v1/projects/{projectId}/approvals/{approvalId}", { projectId: z.string().min(1), approvalId: z.string().min(1) }, { capability: "governance.read" }),
222
222
  decideApproval: resource("governance.approvals.decide", "POST", "/v1/projects/{projectId}/approvals/{approvalId}/decision", { projectId: z.string().min(1), approvalId: z.string().min(1) }, { capability: "governance.decide", scopes: ["treeseed:governance:write"], risk: "authority", concurrency: true })
223
223
  },
224
+ planning: {
225
+ status: resource("planning.status.show", "GET", "/v1/decisions/{decisionId}/planning-status", { decisionId: z.string().min(1) }, { capability: "planning.read", surfaces: ["rest", "mcp_resource"] }),
226
+ requestInput: resource("planning.input.requests.create", "POST", "/v1/decisions/{decisionId}/planning-input-requests", { decisionId: z.string().min(1) }, { capability: "planning.write", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"] }),
227
+ executionInputs: resource("planning.execution.inputs.list", "GET", "/v1/decisions/{decisionId}/execution-inputs", { decisionId: z.string().min(1) }, { capability: "planning.read", surfaces: ["rest", "mcp_tool", "mcp_resource"], pagination: "cursor" }),
228
+ createExecutionInput: resource("planning.execution.inputs.create", "POST", "/v1/decisions/{decisionId}/execution-inputs", { decisionId: z.string().min(1) }, { capability: "planning.write", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"] }),
229
+ acceptExecutionInput: resource("planning.execution.inputs.accept", "POST", "/v1/decision-execution-inputs/{inputId}/accept", { inputId: z.string().min(1) }, { capability: "planning.decide", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"] }),
230
+ requestExecutionInputRevision: resource("planning.execution.inputs.revision.request", "POST", "/v1/decision-execution-inputs/{inputId}/request-revision", { inputId: z.string().min(1) }, { capability: "planning.decide", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"] })
231
+ },
232
+ estimates: {
233
+ create: resource("estimates.create", "POST", "/v1/decisions/{decisionId}/estimates", { decisionId: z.string().min(1) }, { capability: "estimates.write", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"] }),
234
+ list: resource("estimates.list", "GET", "/v1/decisions/{decisionId}/estimates", { decisionId: z.string().min(1) }, { capability: "estimates.read", surfaces: ["rest", "mcp_tool", "mcp_resource"], pagination: "cursor" }),
235
+ accept: resource("estimates.accept", "POST", "/v1/structured-agent-estimates/{estimateId}/accept", { estimateId: z.string().min(1) }, { capability: "estimates.decide", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"] }),
236
+ reject: resource("estimates.reject", "POST", "/v1/structured-agent-estimates/{estimateId}/reject", { estimateId: z.string().min(1) }, { capability: "estimates.decide", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"] })
237
+ },
238
+ assignmentGraphs: {
239
+ validateAuthority: resource("assignment.graphs.authority.validate", "POST", "/v1/governance/execution-authorities/validate", {}, { capability: "assignments.read", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"] }),
240
+ compile: resource("assignment.graphs.compile", "POST", "/v1/decisions/{decisionId}/assignment-graphs/compile", { decisionId: z.string().min(1) }, { capability: "assignments.execute", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"] }),
241
+ list: resource("assignment.graphs.list", "GET", "/v1/decisions/{decisionId}/assignment-graphs", { decisionId: z.string().min(1) }, { capability: "assignments.read", surfaces: ["rest", "mcp_tool", "mcp_resource"], pagination: "cursor" }),
242
+ show: resource("assignment.graphs.show", "GET", "/v1/decision-assignment-graphs/{graphId}", { graphId: z.string().min(1) }, { capability: "assignments.read", surfaces: ["rest", "mcp_resource"] }),
243
+ manifest: resource("assignment.deliverable.manifests.show", "GET", "/v1/deliverable-manifests/{manifestId}", { manifestId: z.string().min(1) }, { capability: "assignments.read", surfaces: ["rest", "mcp_resource"] }),
244
+ createManifest: resource("assignment.deliverable.manifests.create", "POST", "/v1/deliverable-contracts/{contractId}/manifests", { contractId: z.string().min(1) }, { capability: "assignments.execute", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"] }),
245
+ approveContract: resource("assignment.deliverable.contracts.approve", "POST", "/v1/deliverable-contracts/{contractId}/approve", { contractId: z.string().min(1) }, { capability: "assignments.decide", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"] }),
246
+ rejectContract: resource("assignment.deliverable.contracts.reject", "POST", "/v1/deliverable-contracts/{contractId}/reject", { contractId: z.string().min(1) }, { capability: "assignments.decide", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"] })
247
+ },
248
+ research: {
249
+ createWorkflow: resource("research.workflows.create", "POST", "/v1/projects/{projectId}/research-workflows", { projectId: z.string().min(1) }, { capability: "research.write", scopes: ["treeseed:knowledge:write"], surfaces: ["rest", "mcp_tool"] }),
250
+ workflows: resource("research.workflows.list", "GET", "/v1/projects/{projectId}/research-workflows", { projectId: z.string().min(1) }, { capability: "research.read", surfaces: ["rest", "mcp_tool", "mcp_resource"], pagination: "cursor" }),
251
+ workflow: resource("research.workflows.show", "GET", "/v1/research-workflows/{workflowId}", { workflowId: z.string().min(1) }, { capability: "research.read", surfaces: ["rest", "mcp_resource"] }),
252
+ completeStage: resource("research.workflows.stages.complete", "POST", "/v1/research-workflows/{workflowId}/stages/{stage}/complete", { workflowId: z.string().min(1), stage: z.string().min(1) }, { capability: "research.write", scopes: ["treeseed:knowledge:write"], surfaces: ["rest", "mcp_tool"], concurrency: true })
253
+ },
224
254
  repositories: {
225
255
  githubSetup: resource("repositories.github.setup", "POST", "/v1/provider-connectors/github/{kind}/setup", { kind: z.string().min(1) }, { capability: "repositories.connect", scopes: ["treeseed:projects:write"], risk: "authority" }),
226
256
  githubCallback: resource("repositories.github.callback", "GET", "/v1/provider-connectors/github/{kind}/callback", { kind: z.string().min(1) }, { capability: "repositories.connect", scopes: [], authentication: "signed_request" }),
@@ -258,6 +288,14 @@ const CONTROL_PLANE_OPERATIONS = {
258
288
  artifacts: resource("agents.artifacts.list", "GET", "/v1/projects/{projectId}/agent-artifacts", { projectId: z.string().min(1) }, { capability: "agents.read", pagination: "cursor" }),
259
289
  artifact: resource("agents.artifacts.show", "GET", "/v1/projects/{projectId}/agent-artifacts/{artifactId}", { projectId: z.string().min(1), artifactId: z.string().min(1) }, { capability: "agents.read" })
260
290
  },
291
+ communications: {
292
+ invocations: resource("communications.invocations.list", "GET", "/v1/teams/{teamId}/agent-invocations", { teamId: z.string().min(1) }, { capability: "agents.read", surfaces: ["rest", "mcp_tool", "mcp_resource"], pagination: "cursor" }),
293
+ invocation: resource("communications.invocations.show", "GET", "/v1/teams/{teamId}/agent-invocations/{invocationId}", { teamId: z.string().min(1), invocationId: z.string().min(1) }, { capability: "agents.read", surfaces: ["rest", "mcp_resource"] }),
294
+ status: resource("communications.status.show", "GET", "/v1/teams/{teamId}/communication-status", { teamId: z.string().min(1) }, { capability: "agents.read", surfaces: ["rest", "mcp_tool", "mcp_resource"] }),
295
+ handoffs: resource("communications.handoffs.list", "GET", "/v1/teams/{teamId}/operation-handoffs", { teamId: z.string().min(1) }, { capability: "agents.read", surfaces: ["rest", "mcp_resource"], pagination: "cursor" }),
296
+ clientActions: resource("communications.client.actions.list", "GET", "/v1/teams/{teamId}/client-actions", { teamId: z.string().min(1) }, { capability: "agents.read", surfaces: ["rest", "mcp_resource"], pagination: "cursor" }),
297
+ cancelInvocation: resource("communications.invocations.cancel", "POST", "/v1/teams/{teamId}/agent-invocations/{invocationId}/cancel", { teamId: z.string().min(1), invocationId: z.string().min(1) }, { capability: "agents.execute", scopes: ["treeseed:execution"], surfaces: ["rest", "mcp_tool"], risk: "destructive", concurrency: true })
298
+ },
261
299
  capacity: {
262
300
  availability: resource("capacity.status", "GET", "/v1/teams/{teamId}/capacity/availability-sessions", { teamId: z.string().min(1) }, { capability: "capacity.read", surfaces: ["rest", "cli", "mcp_tool"], pagination: "cursor" }),
263
301
  usage: resource("capacity.usage", "GET", "/v1/teams/{teamId}/capacity/usage", { teamId: z.string().min(1) }, { capability: "capacity.read", surfaces: ["rest", "cli", "mcp_tool"] }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/sdk",
3
- "version": "0.13.0-rc.15",
3
+ "version": "0.13.0-rc.16",
4
4
  "description": "Portable TreeSeed contracts, standards, and typed remote control-plane clients.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {