@treeseed/sdk 0.13.0-rc.121 → 0.13.0-rc.123
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/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +2365 -1275
- package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +94 -28
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +38 -38
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.d.ts +2 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.js +13 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +2 -59
- package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +126 -1
- package/dist/agent-capacity/contracts/capacity/providers/supply-policy.js +35 -1
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +2 -4
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +22 -16
- package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.d.ts +3 -42
- package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.js +8 -8
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +244 -85
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +54 -19
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +216 -70
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.js +19 -0
- package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
- package/dist/agent-capacity/contracts/configuration/configuration.js +0 -2
- package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +55 -55
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +119 -23
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.js +16 -0
- package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
- package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
- package/dist/agent-capacity/contracts/support/execution-graph.d.ts +496 -292
- package/dist/agent-capacity/contracts/support/execution-graph.js +21 -19
- package/dist/agent-capacity/contracts/support/financial-records.d.ts +3 -6
- package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
- package/dist/agent-capacity/grant.d.ts +34 -0
- package/dist/agent-capacity/grant.js +4 -0
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1178 -1152
- package/dist/agent-capacity/validation/agent-definition-schema.js +21 -28
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +10 -10
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
- package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
- package/dist/agent-capacity/validation/assignment-records.js +49 -35
- package/dist/agent-capacity/validation/configuration.d.ts +1 -1
- package/dist/agent-capacity/validation/configuration.js +2 -6
- package/dist/agent-capacity/validation/grant.d.ts +11 -0
- package/dist/agent-capacity/validation/grant.js +31 -0
- package/dist/capacity/agents/agent-capacity.d.ts +3 -4
- package/dist/capacity/agents/agent-capacity.js +2 -3
- package/dist/capacity-provider/capability-ontology.d.ts +150 -150
- package/dist/capacity-provider/client.d.ts +15 -9
- package/dist/capacity-provider/client.js +1 -10
- package/dist/capacity-provider/contracts/capacity-facts.d.ts +0 -1
- package/dist/capacity-provider/contracts/environment-profiles.d.ts +44 -44
- package/dist/capacity-provider/contracts/governance.d.ts +2 -17
- package/dist/capacity-provider/contracts/index.d.ts +2 -0
- package/dist/capacity-provider/contracts/index.js +2 -0
- package/dist/capacity-provider/core-capability-catalog.d.ts +7 -7
- package/dist/capacity-provider/environment-catalog.d.ts +188 -188
- package/dist/capacity-provider/environment-catalog.js +1 -1
- package/dist/capacity-provider/install-configuration.d.ts +2 -2
- package/dist/capacity-provider/sandbox-contracts.d.ts +92 -92
- package/dist/capacity-provider/source-workspace.d.ts +166 -68
- package/dist/capacity-provider/source-workspace.js +5 -1
- package/dist/capacity-provider/validation.d.ts +10 -2
- package/dist/capacity-provider/validation.js +52 -22
- package/dist/content/validation/agent-operational-content-schemas.d.ts +144 -142
- package/dist/content/validation/agent-operational-content-schemas.js +2 -0
- package/dist/content/validation/auxiliary-content-schemas.d.ts +158 -158
- package/dist/content/validation/content-model-schemas.d.ts +9105 -5295
- package/dist/content/validation/content-model-schemas.js +192 -115
- package/dist/content/validation/portable-content-data.d.ts +411 -238
- package/dist/content/validation/portable-content-data.js +6 -1
- package/dist/content/validation/schema-constraints.d.ts +78 -0
- package/dist/content/validation/schema-constraints.js +149 -0
- package/dist/deployment/ai/storage.d.ts +24 -24
- package/dist/deployment/ai-hosting.d.ts +18 -18
- package/dist/deployment/ai-instance.d.ts +16 -16
- package/dist/deployment/ai-mode.d.ts +92 -92
- package/dist/deployment/hosted-topology-template.d.ts +44 -44
- package/dist/deployment/hosted-topology.d.ts +335 -335
- package/dist/deployment/postgres/contracts.d.ts +52 -52
- package/dist/deployment/postgres/transfer.d.ts +6 -6
- package/dist/deployment/schemas.d.ts +1114 -1114
- package/dist/development/schemas.d.ts +633 -633
- package/dist/graph/context-query-contracts.js +1 -1
- package/dist/guarantees/index.d.ts +26 -2
- package/dist/identity/contracts.js +6 -1
- package/dist/knowledge/contracts.d.ts +9 -2
- package/dist/knowledge/contracts.js +2 -2
- package/dist/model-registry/discussion-models.js +0 -1
- package/dist/operator-contracts/canonical-command-tree.js +25 -9
- package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +29 -29
- package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +30 -30
- package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +15 -13
- package/dist/operator-contracts/catalog/communication-operations.d.ts +176 -158
- package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +67 -67
- package/dist/operator-contracts/catalog/inbox-operations.d.ts +65 -65
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +6 -6
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +2 -1
- package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +10 -10
- package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +3 -3
- package/dist/operator-contracts/catalog/services/secret-operations.d.ts +16 -8
- package/dist/operator-contracts/catalog/services/secret-operations.js +2 -1
- package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +11 -11
- package/dist/operator-contracts/catalog/workdays/selection-commands.js +3 -0
- package/dist/operator-contracts/communication/contracts.d.ts +537 -395
- package/dist/operator-contracts/communication/contracts.js +6 -1
- package/dist/operator-contracts/control-plane-operation.d.ts +7 -0
- package/dist/operator-contracts/control-plane-operation.js +6 -0
- package/dist/operator-contracts/control-plane-operations.d.ts +631 -610
- package/dist/operator-contracts/control-plane-operations.js +26 -12
- package/dist/operator-contracts/inbox/contracts.d.ts +229 -229
- package/dist/operator-contracts/knowledge/contracts.d.ts +16 -16
- package/dist/operator-contracts/mcp.js +4 -3
- package/dist/operator-contracts/workday-lifecycle.d.ts +192 -0
- package/dist/operator-contracts/workday-lifecycle.js +109 -45
- package/dist/platform/agent-schema-verification.d.ts +3 -0
- package/dist/platform/agent-schema-verification.js +377 -0
- package/dist/platform/contracts.d.ts +72 -72
- package/dist/platform/schemas.d.ts +144 -36
- package/dist/platform/schemas.js +26 -0
- package/dist/platform/verification.js +10 -0
- package/dist/sdk-types/support/planning-policy.d.ts +1 -1
- package/dist/sdk-types/support/sdk-search-request.d.ts +2 -2
- package/dist/secrets-capability/secret-contracts.d.ts +2 -2
- package/dist/secrets-capability/shared-access.d.ts +3 -3
- package/dist/secrets-capability/shared-resources.d.ts +50 -50
- package/dist/secrets-capability/vault-contracts.d.ts +2 -2
- package/dist/security/encrypted-envelope.d.ts +14 -14
- package/dist/treedx/client.d.ts +4 -4
- package/dist/treedx/index.d.ts +1 -1
- package/dist/treedx/index.js +1 -0
- package/dist/treedx/types.d.ts +286 -0
- package/dist/treedx/types.js +44 -0
- package/guarantees/agent/golden/component-boundaries.guarantee.yaml +12 -0
- package/guarantees/agent/golden/product-custody.guarantee.yaml +12 -0
- package/guarantees/agent/golden/product.guarantee.yaml +12 -0
- package/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +837 -0
- package/guarantees/agent/golden/scenes/product-custody.scene.yaml +53 -0
- package/guarantees/agent/golden/scenes/product.scene.yaml +8 -0
- package/guarantees/verifiers/golden.verifiers.yaml +1429 -0
- package/package.json +9 -3
- package/tests/acceptance/golden-product.test.ts +205 -0
- package/tests/acceptance/golden-product.ts +404 -0
- package/tests/acceptance/product/base-red.ts +73 -0
- package/tests/acceptance/product/documentation-examples.ts +68 -0
- package/tests/acceptance/product/intent-runtime.ts +145 -0
- package/tests/acceptance/product/release-output.ts +160 -0
- package/tests/acceptance/product/research-artifact.ts +87 -0
- package/tests/acceptance/product/research-revision.ts +82 -0
- package/tests/acceptance/product/research-source.ts +91 -0
- package/tests/acceptance/product/test-chain.ts +192 -0
- package/treeseed.package.yaml +147 -0
- package/dist/.treeseed-build-complete.json +0 -1
- package/dist/agent-capacity/allocation.d.ts +0 -183
- package/dist/agent-capacity/allocation.js +0 -5
- package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
- package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
- package/dist/agent-capacity/artifacts.d.ts +0 -123
- package/dist/agent-capacity/artifacts.js +0 -39
- package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -227
- package/dist/agent-capacity/contracts/support/decision-work.js +0 -0
- package/dist/agent-capacity/validation/allocation.d.ts +0 -12
- package/dist/agent-capacity/validation/allocation.js +0 -115
|
@@ -24,147 +24,147 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
24
24
|
id: string;
|
|
25
25
|
name: string;
|
|
26
26
|
schemaVersion: "treeseed.agent/v1";
|
|
27
|
-
capabilities: string[];
|
|
28
27
|
purpose: string;
|
|
28
|
+
responsibilities: string[];
|
|
29
|
+
agentClass: string;
|
|
30
|
+
capabilities: string[];
|
|
29
31
|
context: {
|
|
30
32
|
include: string[];
|
|
31
33
|
};
|
|
32
|
-
agentClass: string;
|
|
33
|
-
responsibilities: string[];
|
|
34
34
|
activityProfiles: {
|
|
35
35
|
planning?: {
|
|
36
|
-
prompt: {
|
|
37
|
-
system: string;
|
|
38
|
-
instructions?: string[] | undefined;
|
|
39
|
-
};
|
|
40
|
-
handler: string;
|
|
41
36
|
permissions: {
|
|
42
37
|
content: {
|
|
43
|
-
read: ("agent" | "
|
|
44
|
-
write: ("agent" | "
|
|
38
|
+
read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
39
|
+
write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
45
40
|
};
|
|
46
|
-
tools: ("
|
|
41
|
+
tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
|
|
42
|
+
};
|
|
43
|
+
handler: string;
|
|
44
|
+
prompt: {
|
|
45
|
+
system: string;
|
|
46
|
+
instructions?: string[] | undefined;
|
|
47
47
|
};
|
|
48
48
|
dependsOn?: {
|
|
49
49
|
agents?: string[] | undefined;
|
|
50
50
|
events?: "workday-closing"[] | undefined;
|
|
51
51
|
} | undefined;
|
|
52
|
-
parameters?: Record<string, unknown> | undefined;
|
|
53
52
|
additionalContext?: string[] | undefined;
|
|
53
|
+
parameters?: Record<string, unknown> | undefined;
|
|
54
54
|
} | undefined;
|
|
55
|
-
|
|
56
|
-
prompt: {
|
|
57
|
-
system: string;
|
|
58
|
-
instructions?: string[] | undefined;
|
|
59
|
-
};
|
|
60
|
-
handler: string;
|
|
55
|
+
estimating?: {
|
|
61
56
|
permissions: {
|
|
62
57
|
content: {
|
|
63
|
-
read: ("agent" | "
|
|
64
|
-
write: ("agent" | "
|
|
58
|
+
read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
59
|
+
write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
65
60
|
};
|
|
66
|
-
tools: ("
|
|
61
|
+
tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
|
|
62
|
+
};
|
|
63
|
+
handler: string;
|
|
64
|
+
prompt: {
|
|
65
|
+
system: string;
|
|
66
|
+
instructions?: string[] | undefined;
|
|
67
67
|
};
|
|
68
68
|
dependsOn?: {
|
|
69
69
|
agents?: string[] | undefined;
|
|
70
70
|
events?: "workday-closing"[] | undefined;
|
|
71
71
|
} | undefined;
|
|
72
|
-
parameters?: Record<string, unknown> | undefined;
|
|
73
72
|
additionalContext?: string[] | undefined;
|
|
73
|
+
parameters?: Record<string, unknown> | undefined;
|
|
74
74
|
} | undefined;
|
|
75
|
-
|
|
76
|
-
prompt: {
|
|
77
|
-
system: string;
|
|
78
|
-
instructions?: string[] | undefined;
|
|
79
|
-
};
|
|
80
|
-
handler: string;
|
|
75
|
+
acting?: {
|
|
81
76
|
permissions: {
|
|
82
77
|
content: {
|
|
83
|
-
read: ("agent" | "
|
|
84
|
-
write: ("agent" | "
|
|
78
|
+
read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
79
|
+
write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
85
80
|
};
|
|
86
|
-
tools: ("
|
|
81
|
+
tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
|
|
82
|
+
};
|
|
83
|
+
handler: string;
|
|
84
|
+
prompt: {
|
|
85
|
+
system: string;
|
|
86
|
+
instructions?: string[] | undefined;
|
|
87
87
|
};
|
|
88
88
|
dependsOn?: {
|
|
89
89
|
agents?: string[] | undefined;
|
|
90
90
|
events?: "workday-closing"[] | undefined;
|
|
91
91
|
} | undefined;
|
|
92
|
-
parameters?: Record<string, unknown> | undefined;
|
|
93
92
|
additionalContext?: string[] | undefined;
|
|
93
|
+
parameters?: Record<string, unknown> | undefined;
|
|
94
94
|
} | undefined;
|
|
95
95
|
reviewing?: {
|
|
96
|
-
prompt: {
|
|
97
|
-
system: string;
|
|
98
|
-
instructions?: string[] | undefined;
|
|
99
|
-
};
|
|
100
|
-
handler: string;
|
|
101
96
|
permissions: {
|
|
102
97
|
content: {
|
|
103
|
-
read: ("agent" | "
|
|
104
|
-
write: ("agent" | "
|
|
98
|
+
read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
99
|
+
write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
105
100
|
};
|
|
106
|
-
tools: ("
|
|
101
|
+
tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
|
|
102
|
+
};
|
|
103
|
+
handler: string;
|
|
104
|
+
prompt: {
|
|
105
|
+
system: string;
|
|
106
|
+
instructions?: string[] | undefined;
|
|
107
107
|
};
|
|
108
108
|
dependsOn?: {
|
|
109
109
|
agents?: string[] | undefined;
|
|
110
110
|
events?: "workday-closing"[] | undefined;
|
|
111
111
|
} | undefined;
|
|
112
|
-
parameters?: Record<string, unknown> | undefined;
|
|
113
112
|
additionalContext?: string[] | undefined;
|
|
113
|
+
parameters?: Record<string, unknown> | undefined;
|
|
114
114
|
} | undefined;
|
|
115
115
|
reporting?: {
|
|
116
|
-
prompt: {
|
|
117
|
-
system: string;
|
|
118
|
-
instructions?: string[] | undefined;
|
|
119
|
-
};
|
|
120
|
-
handler: string;
|
|
121
116
|
permissions: {
|
|
122
117
|
content: {
|
|
123
|
-
read: ("agent" | "
|
|
124
|
-
write: ("agent" | "
|
|
118
|
+
read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
119
|
+
write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
125
120
|
};
|
|
126
|
-
tools: ("
|
|
121
|
+
tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
|
|
122
|
+
};
|
|
123
|
+
handler: string;
|
|
124
|
+
prompt: {
|
|
125
|
+
system: string;
|
|
126
|
+
instructions?: string[] | undefined;
|
|
127
127
|
};
|
|
128
128
|
dependsOn?: {
|
|
129
129
|
agents?: string[] | undefined;
|
|
130
130
|
events?: "workday-closing"[] | undefined;
|
|
131
131
|
} | undefined;
|
|
132
|
-
parameters?: Record<string, unknown> | undefined;
|
|
133
132
|
additionalContext?: string[] | undefined;
|
|
133
|
+
parameters?: Record<string, unknown> | undefined;
|
|
134
134
|
} | undefined;
|
|
135
135
|
chat?: {
|
|
136
|
-
prompt: {
|
|
137
|
-
system: string;
|
|
138
|
-
instructions?: string[] | undefined;
|
|
139
|
-
};
|
|
140
|
-
handler: string;
|
|
141
136
|
permissions: {
|
|
142
137
|
content: {
|
|
143
|
-
read: ("agent" | "
|
|
144
|
-
write: ("agent" | "
|
|
138
|
+
read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
139
|
+
write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
145
140
|
};
|
|
146
|
-
tools: ("
|
|
141
|
+
tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
|
|
142
|
+
};
|
|
143
|
+
handler: string;
|
|
144
|
+
prompt: {
|
|
145
|
+
system: string;
|
|
146
|
+
instructions?: string[] | undefined;
|
|
147
147
|
};
|
|
148
148
|
dependsOn?: {
|
|
149
149
|
agents?: string[] | undefined;
|
|
150
150
|
events?: "workday-closing"[] | undefined;
|
|
151
151
|
} | undefined;
|
|
152
|
-
parameters?: Record<string, unknown> | undefined;
|
|
153
152
|
additionalContext?: string[] | undefined;
|
|
153
|
+
parameters?: Record<string, unknown> | undefined;
|
|
154
154
|
} | undefined;
|
|
155
155
|
};
|
|
156
156
|
} | {
|
|
157
157
|
status: string;
|
|
158
|
+
title: string;
|
|
159
|
+
summary: string;
|
|
160
|
+
startedAt: Date;
|
|
158
161
|
slug: string;
|
|
159
|
-
visibility: "team" | "public" | "private" | "authenticated";
|
|
160
162
|
projectId: string;
|
|
161
|
-
environment: string;
|
|
162
|
-
startedAt: Date;
|
|
163
|
-
summary: string;
|
|
164
|
-
workDayId: string;
|
|
165
163
|
metadata: Record<string, unknown>;
|
|
166
|
-
|
|
164
|
+
environment: string;
|
|
165
|
+
visibility: "team" | "private" | "public" | "authenticated";
|
|
167
166
|
changedFiles: string[];
|
|
167
|
+
workDayId: string;
|
|
168
168
|
reportVersion: string;
|
|
169
169
|
reportKind: string;
|
|
170
170
|
workdayState: string;
|
|
@@ -176,13 +176,13 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
176
176
|
priorityItemCount: number;
|
|
177
177
|
priorityItems: {
|
|
178
178
|
id: string;
|
|
179
|
-
model: string;
|
|
180
179
|
priority: number;
|
|
180
|
+
model: string;
|
|
181
181
|
status?: string | undefined;
|
|
182
|
-
slug?: string | undefined;
|
|
183
|
-
reason?: string | undefined;
|
|
184
182
|
title?: string | undefined;
|
|
183
|
+
slug?: string | undefined;
|
|
185
184
|
estimatedCredits?: number | undefined;
|
|
185
|
+
reason?: string | undefined;
|
|
186
186
|
}[];
|
|
187
187
|
totalTasks: number;
|
|
188
188
|
completedTasks: number;
|
|
@@ -194,11 +194,11 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
194
194
|
changedFiles: string[];
|
|
195
195
|
type?: string | undefined;
|
|
196
196
|
state?: string | undefined;
|
|
197
|
+
priority?: number | undefined;
|
|
197
198
|
createdAt?: Date | undefined;
|
|
198
|
-
completedAt?: Date | undefined;
|
|
199
|
-
idempotencyKey?: string | undefined;
|
|
200
199
|
startedAt?: Date | undefined;
|
|
201
|
-
|
|
200
|
+
idempotencyKey?: string | undefined;
|
|
201
|
+
completedAt?: Date | undefined;
|
|
202
202
|
agentId?: string | undefined;
|
|
203
203
|
lastErrorCode?: string | null | undefined;
|
|
204
204
|
lastErrorMessage?: string | null | undefined;
|
|
@@ -210,26 +210,30 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
210
210
|
deploymentKind: string;
|
|
211
211
|
id?: string | undefined;
|
|
212
212
|
createdAt?: Date | undefined;
|
|
213
|
-
startedAt?: Date | undefined;
|
|
214
213
|
commitSha?: string | null | undefined;
|
|
214
|
+
startedAt?: Date | undefined;
|
|
215
215
|
finishedAt?: Date | undefined;
|
|
216
216
|
sourceRef?: string | null | undefined;
|
|
217
217
|
releaseTag?: string | null | undefined;
|
|
218
218
|
}[];
|
|
219
219
|
scaleDecision: Record<string, unknown>;
|
|
220
220
|
scaleResult: Record<string, unknown>;
|
|
221
|
-
teamId?: string | undefined;
|
|
222
221
|
createdAt?: Date | undefined;
|
|
222
|
+
teamId?: string | undefined;
|
|
223
223
|
endedAt?: Date | null | undefined;
|
|
224
224
|
prioritySnapshotId?: string | null | undefined;
|
|
225
225
|
} | {
|
|
226
|
-
status: "
|
|
226
|
+
status: "archived" | "draft" | "live";
|
|
227
227
|
audience: string[];
|
|
228
|
-
|
|
228
|
+
title: string;
|
|
229
229
|
description: string;
|
|
230
230
|
summary: string;
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
slug: string;
|
|
232
|
+
offer: {
|
|
233
|
+
priceModel: "subscription" | "free" | "private" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external";
|
|
234
|
+
license?: string | undefined;
|
|
235
|
+
support?: string | undefined;
|
|
236
|
+
};
|
|
233
237
|
featured: boolean;
|
|
234
238
|
listingEnabled: boolean;
|
|
235
239
|
category: string;
|
|
@@ -259,25 +263,21 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
259
263
|
bucket?: string | undefined;
|
|
260
264
|
publicUrl?: string | undefined;
|
|
261
265
|
};
|
|
262
|
-
mode: "
|
|
266
|
+
mode: "packaged" | "git" | "r2";
|
|
263
267
|
hooksPolicy: "disabled" | "builtin_only" | "trusted_only";
|
|
264
268
|
supportsReconcile: boolean;
|
|
265
269
|
};
|
|
266
|
-
offer: {
|
|
267
|
-
priceModel: "private" | "external" | "free" | "contact" | "one_time" | "one_time_current_version" | "subscription" | "subscription_updates" | "professional_hosting" | "scoped_contract";
|
|
268
|
-
support?: string | undefined;
|
|
269
|
-
license?: string | undefined;
|
|
270
|
-
};
|
|
271
270
|
relatedBooks: string[];
|
|
272
271
|
relatedKnowledge: string[];
|
|
272
|
+
relatedObjectives: string[];
|
|
273
273
|
teamId?: string | undefined;
|
|
274
274
|
sourceRef?: string | undefined;
|
|
275
275
|
} | {
|
|
276
|
-
kind: "workday" | "handler" | "
|
|
276
|
+
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
277
277
|
agent: string;
|
|
278
278
|
id: string;
|
|
279
|
-
trigger: Record<string, unknown>;
|
|
280
279
|
groupIds: string[];
|
|
280
|
+
trigger: Record<string, unknown>;
|
|
281
281
|
expect: {
|
|
282
282
|
semanticArtifacts?: {
|
|
283
283
|
id: string;
|
|
@@ -293,11 +293,11 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
293
293
|
[k: string]: unknown;
|
|
294
294
|
};
|
|
295
295
|
contextQueryRefs: string[];
|
|
296
|
-
fixture?: string | undefined;
|
|
297
296
|
budget?: {
|
|
298
297
|
maxTokens: number;
|
|
299
298
|
maxContextItems: number;
|
|
300
299
|
} | undefined;
|
|
300
|
+
fixture?: string | undefined;
|
|
301
301
|
queryRef?: {
|
|
302
302
|
id: string;
|
|
303
303
|
revision: number;
|
|
@@ -318,6 +318,19 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
318
318
|
maxLatencyMs?: number | undefined;
|
|
319
319
|
} | {
|
|
320
320
|
id: string;
|
|
321
|
+
format: "map" | "summary" | "list" | "brief" | "full" | "sources";
|
|
322
|
+
title: string;
|
|
323
|
+
description: string;
|
|
324
|
+
target: {
|
|
325
|
+
kind: "code" | "content" | "mixed" | "graph";
|
|
326
|
+
models?: string[] | undefined;
|
|
327
|
+
paths?: string[] | undefined;
|
|
328
|
+
};
|
|
329
|
+
query: string;
|
|
330
|
+
revision: number;
|
|
331
|
+
purpose: string;
|
|
332
|
+
priority: number;
|
|
333
|
+
requirement: "required" | "preferred";
|
|
321
334
|
sources: ({
|
|
322
335
|
scope: "current-project";
|
|
323
336
|
} | {
|
|
@@ -331,20 +344,7 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
331
344
|
scope: "shared-team";
|
|
332
345
|
projectIds: string[];
|
|
333
346
|
})[];
|
|
334
|
-
purpose: string;
|
|
335
|
-
target: {
|
|
336
|
-
kind: "code" | "content" | "graph" | "mixed";
|
|
337
|
-
models?: string[] | undefined;
|
|
338
|
-
paths?: string[] | undefined;
|
|
339
|
-
};
|
|
340
|
-
description: string;
|
|
341
|
-
revision: number;
|
|
342
|
-
requirement: "required" | "preferred";
|
|
343
|
-
format: "map" | "sources" | "list" | "summary" | "full" | "brief";
|
|
344
|
-
query: string;
|
|
345
347
|
depth: number;
|
|
346
|
-
title: string;
|
|
347
|
-
priority: number;
|
|
348
348
|
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
349
349
|
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
350
350
|
resultLimit: number;
|
|
@@ -361,9 +361,9 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
361
361
|
maximumBudget?: number | undefined;
|
|
362
362
|
} | {
|
|
363
363
|
id: string;
|
|
364
|
+
title: string;
|
|
364
365
|
description: string;
|
|
365
366
|
revision: number;
|
|
366
|
-
title: string;
|
|
367
367
|
queryRefs: {
|
|
368
368
|
id: string;
|
|
369
369
|
revision: number;
|
|
@@ -372,29 +372,28 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
372
372
|
} | {
|
|
373
373
|
kind: "message" | "status" | "summary" | "plan";
|
|
374
374
|
id: string;
|
|
375
|
-
|
|
375
|
+
title: string;
|
|
376
376
|
description: string;
|
|
377
377
|
revision: number;
|
|
378
|
-
|
|
378
|
+
variables: string[];
|
|
379
379
|
instructions: string;
|
|
380
380
|
appliesToProfiles: string[];
|
|
381
381
|
outputSkeleton?: string | undefined;
|
|
382
382
|
} | {
|
|
383
383
|
status: "active" | "archived";
|
|
384
384
|
id: string;
|
|
385
|
-
slug: string;
|
|
386
|
-
description: string;
|
|
387
385
|
title: string;
|
|
386
|
+
description: string;
|
|
387
|
+
slug: string;
|
|
388
388
|
groupIds: string[];
|
|
389
389
|
parentTopicId?: string | undefined;
|
|
390
390
|
} | {
|
|
391
391
|
status: string;
|
|
392
392
|
id: string;
|
|
393
|
-
projectId: string;
|
|
394
|
-
teamId: string;
|
|
395
|
-
createdAt: Date;
|
|
396
|
-
outcome: "passed" | "failed" | "needs-revision";
|
|
397
393
|
title: string;
|
|
394
|
+
createdAt: Date;
|
|
395
|
+
teamId: string;
|
|
396
|
+
projectId: string;
|
|
398
397
|
agentId: string;
|
|
399
398
|
contextQueryRefs: {
|
|
400
399
|
id: string;
|
|
@@ -414,199 +413,239 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
414
413
|
revision: number;
|
|
415
414
|
}[];
|
|
416
415
|
evaluatorId: string;
|
|
416
|
+
outcome: "failed" | "passed" | "needs-revision";
|
|
417
417
|
criteria: {
|
|
418
418
|
id: string;
|
|
419
|
-
outcome: "
|
|
419
|
+
outcome: "failed" | "passed" | "not-applicable";
|
|
420
420
|
evidenceRefs: string[];
|
|
421
421
|
notes?: string | undefined;
|
|
422
422
|
}[];
|
|
423
|
-
assignmentId?: string | undefined;
|
|
424
423
|
description?: string | undefined;
|
|
425
424
|
updatedAt?: Date | undefined;
|
|
425
|
+
assignmentId?: string | undefined;
|
|
426
426
|
workdayId?: string | undefined;
|
|
427
427
|
score?: number | undefined;
|
|
428
428
|
} | {
|
|
429
429
|
status: "ready" | "draft" | "discussing" | "decided" | "withdrawn";
|
|
430
430
|
id: string;
|
|
431
431
|
schemaVersion: "treeseed.proposal/v1";
|
|
432
|
-
projectId: string;
|
|
433
|
-
request: string;
|
|
434
432
|
title: string;
|
|
433
|
+
request: string;
|
|
434
|
+
projectId: string;
|
|
435
435
|
summary?: string | undefined;
|
|
436
436
|
evidenceRefs?: {
|
|
437
437
|
id: string;
|
|
438
438
|
model: string;
|
|
439
|
-
store: "
|
|
439
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
440
440
|
path?: string | undefined;
|
|
441
|
-
|
|
441
|
+
anchor?: string | undefined;
|
|
442
442
|
commit?: string | undefined;
|
|
443
|
+
repository?: string | undefined;
|
|
444
|
+
revision?: number | undefined;
|
|
443
445
|
digest?: string | undefined;
|
|
444
|
-
anchor?: string | undefined;
|
|
445
446
|
url?: string | undefined;
|
|
446
|
-
revision?: number | undefined;
|
|
447
447
|
startLine?: number | undefined;
|
|
448
448
|
endLine?: number | undefined;
|
|
449
449
|
}[] | undefined;
|
|
450
450
|
objectiveRefs?: {
|
|
451
451
|
id: string;
|
|
452
452
|
model: string;
|
|
453
|
-
store: "
|
|
453
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
454
454
|
path?: string | undefined;
|
|
455
|
-
|
|
455
|
+
anchor?: string | undefined;
|
|
456
456
|
commit?: string | undefined;
|
|
457
|
+
repository?: string | undefined;
|
|
458
|
+
revision?: number | undefined;
|
|
457
459
|
digest?: string | undefined;
|
|
458
|
-
anchor?: string | undefined;
|
|
459
460
|
url?: string | undefined;
|
|
460
|
-
revision?: number | undefined;
|
|
461
461
|
startLine?: number | undefined;
|
|
462
462
|
endLine?: number | undefined;
|
|
463
463
|
}[] | undefined;
|
|
464
464
|
discussionRef?: {
|
|
465
465
|
id: string;
|
|
466
466
|
model: string;
|
|
467
|
-
store: "
|
|
467
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
468
468
|
path?: string | undefined;
|
|
469
|
-
|
|
469
|
+
anchor?: string | undefined;
|
|
470
470
|
commit?: string | undefined;
|
|
471
|
+
repository?: string | undefined;
|
|
472
|
+
revision?: number | undefined;
|
|
471
473
|
digest?: string | undefined;
|
|
472
|
-
anchor?: string | undefined;
|
|
473
474
|
url?: string | undefined;
|
|
474
|
-
revision?: number | undefined;
|
|
475
475
|
startLine?: number | undefined;
|
|
476
476
|
endLine?: number | undefined;
|
|
477
477
|
} | undefined;
|
|
478
478
|
executionPlan?: {
|
|
479
479
|
workItems: {
|
|
480
480
|
id: string;
|
|
481
|
-
requiredCapabilities: string[];
|
|
482
|
-
dependsOn: string[];
|
|
483
|
-
activity: "acting";
|
|
484
481
|
objective: string;
|
|
485
|
-
workspace: "git" | "treedx" | "read-only";
|
|
486
|
-
review: "required" | "none";
|
|
487
482
|
agentClass: string;
|
|
483
|
+
review: "required" | "none";
|
|
484
|
+
dependsOn: string[];
|
|
485
|
+
activity: "acting";
|
|
488
486
|
acceptanceCriteria: string[];
|
|
487
|
+
workspace: "read-only" | "treedx" | "git";
|
|
489
488
|
requestedPermissions: {
|
|
490
489
|
content: {
|
|
491
|
-
read: ("agent" | "
|
|
492
|
-
write: ("agent" | "
|
|
490
|
+
read: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
491
|
+
write: ("agent" | "note" | "question" | "proposal" | "decision" | "book" | "knowledge" | "objective" | "discussion" | "discussion-message")[];
|
|
493
492
|
};
|
|
494
|
-
tools: ("
|
|
493
|
+
tools: ("discussion" | "source.read" | "source.write" | "verification" | "release")[];
|
|
495
494
|
};
|
|
496
495
|
estimate?: {
|
|
497
|
-
minimumSeconds: number;
|
|
498
496
|
expectedSeconds: number;
|
|
499
497
|
maximumSeconds: number;
|
|
500
498
|
rationale?: string | undefined;
|
|
501
499
|
} | undefined;
|
|
500
|
+
priority?: number | undefined;
|
|
501
|
+
requiredCapabilities?: string[] | undefined;
|
|
502
502
|
contextRefs?: {
|
|
503
503
|
id: string;
|
|
504
504
|
model: string;
|
|
505
|
-
store: "
|
|
505
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
506
506
|
path?: string | undefined;
|
|
507
|
-
|
|
507
|
+
anchor?: string | undefined;
|
|
508
508
|
commit?: string | undefined;
|
|
509
|
+
repository?: string | undefined;
|
|
510
|
+
revision?: number | undefined;
|
|
509
511
|
digest?: string | undefined;
|
|
510
|
-
anchor?: string | undefined;
|
|
511
512
|
url?: string | undefined;
|
|
512
|
-
revision?: number | undefined;
|
|
513
513
|
startLine?: number | undefined;
|
|
514
514
|
endLine?: number | undefined;
|
|
515
515
|
}[] | undefined;
|
|
516
|
-
maximumReviewCycles?: number | undefined;
|
|
517
516
|
reviewEstimate?: {
|
|
518
|
-
minimumSeconds: number;
|
|
519
517
|
expectedSeconds: number;
|
|
520
518
|
maximumSeconds: number;
|
|
521
519
|
rationale?: string | undefined;
|
|
522
520
|
} | undefined;
|
|
521
|
+
maximumReviewCycles?: number | undefined;
|
|
523
522
|
}[];
|
|
524
523
|
} | undefined;
|
|
525
524
|
} | {
|
|
526
525
|
title: string;
|
|
527
|
-
status?: "
|
|
526
|
+
status?: "planned" | "live" | "in progress" | "exploratory" | "speculative" | undefined;
|
|
528
527
|
audience?: string[] | undefined;
|
|
529
|
-
slug?: string | undefined;
|
|
530
528
|
description?: string | undefined;
|
|
531
|
-
stage?: string | undefined;
|
|
532
529
|
summary?: string | undefined;
|
|
533
530
|
updated_at?: Date | undefined;
|
|
531
|
+
slug?: string | undefined;
|
|
534
532
|
page_layout?: "article" | "bridge" | undefined;
|
|
533
|
+
stage?: string | undefined;
|
|
535
534
|
} | {
|
|
536
535
|
id: string;
|
|
537
536
|
schemaVersion: "treeseed.note/v1";
|
|
538
|
-
projectId: string;
|
|
539
537
|
createdAt: string;
|
|
540
|
-
classification: "research" | "feedback" | "workday-report" | "general";
|
|
541
538
|
body: string;
|
|
539
|
+
projectId: string;
|
|
542
540
|
subjectRefs: {
|
|
543
541
|
id: string;
|
|
544
542
|
model: string;
|
|
545
|
-
store: "
|
|
543
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
546
544
|
path?: string | undefined;
|
|
547
|
-
|
|
545
|
+
anchor?: string | undefined;
|
|
548
546
|
commit?: string | undefined;
|
|
547
|
+
repository?: string | undefined;
|
|
548
|
+
revision?: number | undefined;
|
|
549
549
|
digest?: string | undefined;
|
|
550
|
-
anchor?: string | undefined;
|
|
551
550
|
url?: string | undefined;
|
|
552
|
-
revision?: number | undefined;
|
|
553
551
|
startLine?: number | undefined;
|
|
554
552
|
endLine?: number | undefined;
|
|
555
553
|
}[];
|
|
554
|
+
classification: "research" | "general" | "feedback" | "workday-report";
|
|
555
|
+
links?: {
|
|
556
|
+
relation: "depends_on";
|
|
557
|
+
from: {
|
|
558
|
+
id: string;
|
|
559
|
+
model: string;
|
|
560
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
561
|
+
path?: string | undefined;
|
|
562
|
+
anchor?: string | undefined;
|
|
563
|
+
commit?: string | undefined;
|
|
564
|
+
repository?: string | undefined;
|
|
565
|
+
revision?: number | undefined;
|
|
566
|
+
digest?: string | undefined;
|
|
567
|
+
url?: string | undefined;
|
|
568
|
+
startLine?: number | undefined;
|
|
569
|
+
endLine?: number | undefined;
|
|
570
|
+
} & {
|
|
571
|
+
[x: string]: any;
|
|
572
|
+
};
|
|
573
|
+
to: {
|
|
574
|
+
id: string;
|
|
575
|
+
model: string;
|
|
576
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
577
|
+
path?: string | undefined;
|
|
578
|
+
anchor?: string | undefined;
|
|
579
|
+
commit?: string | undefined;
|
|
580
|
+
repository?: string | undefined;
|
|
581
|
+
revision?: number | undefined;
|
|
582
|
+
digest?: string | undefined;
|
|
583
|
+
url?: string | undefined;
|
|
584
|
+
startLine?: number | undefined;
|
|
585
|
+
endLine?: number | undefined;
|
|
586
|
+
} & {
|
|
587
|
+
[x: string]: any;
|
|
588
|
+
};
|
|
589
|
+
}[] | undefined;
|
|
556
590
|
} | {
|
|
557
|
-
status: "open" | "
|
|
591
|
+
status: "open" | "withdrawn" | "answered";
|
|
558
592
|
id: string;
|
|
559
593
|
schemaVersion: "treeseed.question/v1";
|
|
560
|
-
projectId: string;
|
|
561
594
|
question: string;
|
|
595
|
+
projectId: string;
|
|
562
596
|
subjectRef: {
|
|
563
597
|
id: string;
|
|
564
598
|
model: string;
|
|
565
|
-
store: "
|
|
599
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
566
600
|
path?: string | undefined;
|
|
567
|
-
|
|
601
|
+
anchor?: string | undefined;
|
|
568
602
|
commit?: string | undefined;
|
|
603
|
+
repository?: string | undefined;
|
|
604
|
+
revision?: number | undefined;
|
|
569
605
|
digest?: string | undefined;
|
|
570
|
-
anchor?: string | undefined;
|
|
571
606
|
url?: string | undefined;
|
|
572
|
-
revision?: number | undefined;
|
|
573
607
|
startLine?: number | undefined;
|
|
574
608
|
endLine?: number | undefined;
|
|
575
609
|
};
|
|
576
610
|
askedAt: string;
|
|
577
|
-
answer?: string | undefined;
|
|
578
611
|
addressedTo?: string[] | undefined;
|
|
612
|
+
answer?: string | undefined;
|
|
579
613
|
answerRefs?: {
|
|
580
614
|
id: string;
|
|
581
615
|
model: string;
|
|
582
|
-
store: "
|
|
616
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
583
617
|
path?: string | undefined;
|
|
584
|
-
|
|
618
|
+
anchor?: string | undefined;
|
|
585
619
|
commit?: string | undefined;
|
|
620
|
+
repository?: string | undefined;
|
|
621
|
+
revision?: number | undefined;
|
|
586
622
|
digest?: string | undefined;
|
|
587
|
-
anchor?: string | undefined;
|
|
588
623
|
url?: string | undefined;
|
|
589
|
-
revision?: number | undefined;
|
|
590
624
|
startLine?: number | undefined;
|
|
591
625
|
endLine?: number | undefined;
|
|
592
626
|
}[] | undefined;
|
|
593
627
|
answeredAt?: string | undefined;
|
|
594
628
|
} | {
|
|
629
|
+
status: "active" | "achieved" | "abandoned";
|
|
630
|
+
id: string;
|
|
631
|
+
schemaVersion: "treeseed.objective/v1";
|
|
595
632
|
title: string;
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
633
|
+
projectId: string;
|
|
634
|
+
outcome: string;
|
|
635
|
+
evidenceRefs?: {
|
|
636
|
+
id: string;
|
|
637
|
+
model: string;
|
|
638
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
639
|
+
path?: string | undefined;
|
|
640
|
+
anchor?: string | undefined;
|
|
641
|
+
commit?: string | undefined;
|
|
642
|
+
repository?: string | undefined;
|
|
643
|
+
revision?: number | undefined;
|
|
644
|
+
digest?: string | undefined;
|
|
645
|
+
url?: string | undefined;
|
|
646
|
+
startLine?: number | undefined;
|
|
647
|
+
endLine?: number | undefined;
|
|
648
|
+
}[] | undefined;
|
|
610
649
|
} | {
|
|
611
650
|
id: string;
|
|
612
651
|
schemaVersion: "treeseed.decision/v1";
|
|
@@ -615,45 +654,45 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
615
654
|
authorityRefs: {
|
|
616
655
|
id: string;
|
|
617
656
|
model: string;
|
|
618
|
-
store: "
|
|
657
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
619
658
|
path?: string | undefined;
|
|
620
|
-
|
|
659
|
+
anchor?: string | undefined;
|
|
621
660
|
commit?: string | undefined;
|
|
661
|
+
repository?: string | undefined;
|
|
662
|
+
revision?: number | undefined;
|
|
622
663
|
digest?: string | undefined;
|
|
623
|
-
anchor?: string | undefined;
|
|
624
664
|
url?: string | undefined;
|
|
625
|
-
revision?: number | undefined;
|
|
626
665
|
startLine?: number | undefined;
|
|
627
666
|
endLine?: number | undefined;
|
|
628
667
|
}[];
|
|
629
668
|
subjectRef: {
|
|
630
669
|
id: string;
|
|
631
670
|
model: string;
|
|
632
|
-
store: "
|
|
671
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
633
672
|
path?: string | undefined;
|
|
634
|
-
|
|
673
|
+
anchor?: string | undefined;
|
|
635
674
|
commit?: string | undefined;
|
|
675
|
+
repository?: string | undefined;
|
|
676
|
+
revision?: number | undefined;
|
|
636
677
|
digest?: string | undefined;
|
|
637
|
-
anchor?: string | undefined;
|
|
638
678
|
url?: string | undefined;
|
|
639
|
-
revision?: number | undefined;
|
|
640
679
|
startLine?: number | undefined;
|
|
641
680
|
endLine?: number | undefined;
|
|
642
681
|
};
|
|
643
|
-
disposition: "approved" | "rejected" | "deferred" | "superseded" | "request-changes";
|
|
644
682
|
decisionClass: "proposal" | "work-review" | "publication";
|
|
645
|
-
decisionMethod: "authority" | "
|
|
683
|
+
decisionMethod: "authority" | "approval" | "vote";
|
|
684
|
+
disposition: "rejected" | "approved" | "deferred" | "superseded" | "request-changes";
|
|
646
685
|
decidedByRefs: {
|
|
647
686
|
id: string;
|
|
648
687
|
model: string;
|
|
649
|
-
store: "
|
|
688
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
650
689
|
path?: string | undefined;
|
|
651
|
-
|
|
690
|
+
anchor?: string | undefined;
|
|
652
691
|
commit?: string | undefined;
|
|
692
|
+
repository?: string | undefined;
|
|
693
|
+
revision?: number | undefined;
|
|
653
694
|
digest?: string | undefined;
|
|
654
|
-
anchor?: string | undefined;
|
|
655
695
|
url?: string | undefined;
|
|
656
|
-
revision?: number | undefined;
|
|
657
696
|
startLine?: number | undefined;
|
|
658
697
|
endLine?: number | undefined;
|
|
659
698
|
}[];
|
|
@@ -661,14 +700,14 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
661
700
|
findingRefs?: {
|
|
662
701
|
id: string;
|
|
663
702
|
model: string;
|
|
664
|
-
store: "
|
|
703
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
665
704
|
path?: string | undefined;
|
|
666
|
-
|
|
705
|
+
anchor?: string | undefined;
|
|
667
706
|
commit?: string | undefined;
|
|
707
|
+
repository?: string | undefined;
|
|
708
|
+
revision?: number | undefined;
|
|
668
709
|
digest?: string | undefined;
|
|
669
|
-
anchor?: string | undefined;
|
|
670
710
|
url?: string | undefined;
|
|
671
|
-
revision?: number | undefined;
|
|
672
711
|
startLine?: number | undefined;
|
|
673
712
|
endLine?: number | undefined;
|
|
674
713
|
}[] | undefined;
|
|
@@ -676,14 +715,14 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
676
715
|
actorRef: {
|
|
677
716
|
id: string;
|
|
678
717
|
model: string;
|
|
679
|
-
store: "
|
|
718
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
680
719
|
path?: string | undefined;
|
|
681
|
-
|
|
720
|
+
anchor?: string | undefined;
|
|
682
721
|
commit?: string | undefined;
|
|
722
|
+
repository?: string | undefined;
|
|
723
|
+
revision?: number | undefined;
|
|
683
724
|
digest?: string | undefined;
|
|
684
|
-
anchor?: string | undefined;
|
|
685
725
|
url?: string | undefined;
|
|
686
|
-
revision?: number | undefined;
|
|
687
726
|
startLine?: number | undefined;
|
|
688
727
|
endLine?: number | undefined;
|
|
689
728
|
};
|
|
@@ -692,82 +731,216 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
692
731
|
rationale?: string | undefined;
|
|
693
732
|
}[] | undefined;
|
|
694
733
|
} | {
|
|
695
|
-
status: "
|
|
734
|
+
status: "archived" | "review" | "published" | "draft";
|
|
696
735
|
id: string;
|
|
697
|
-
schemaVersion: "treeseed.book/
|
|
736
|
+
schemaVersion: "treeseed.book/v3";
|
|
737
|
+
title: string;
|
|
738
|
+
revision: number;
|
|
739
|
+
summary: string;
|
|
698
740
|
slug: string;
|
|
699
|
-
|
|
741
|
+
projectId: string;
|
|
742
|
+
visibility: "project" | "team" | "public" | "authenticated" | "admin";
|
|
700
743
|
order: number;
|
|
701
|
-
summary: string;
|
|
702
|
-
title: string;
|
|
703
744
|
audience?: string[] | undefined;
|
|
704
745
|
description?: string | undefined;
|
|
705
746
|
groupIds?: string[] | undefined;
|
|
706
747
|
relatedBookIds?: string[] | undefined;
|
|
748
|
+
packPolicy?: "disabled" | "allowed" | "restricted" | undefined;
|
|
749
|
+
editorialCoreNoteId?: string | undefined;
|
|
750
|
+
cover?: {
|
|
751
|
+
image?: string | undefined;
|
|
752
|
+
alt?: string | undefined;
|
|
753
|
+
} | undefined;
|
|
707
754
|
} | {
|
|
708
|
-
status: "
|
|
755
|
+
status: "archived" | "review" | "published" | "draft";
|
|
709
756
|
id: string;
|
|
710
|
-
schemaVersion: "treeseed.knowledge-page/
|
|
711
|
-
slug: string;
|
|
712
|
-
visibility: "project" | "team" | "public" | "admin" | "authenticated";
|
|
713
|
-
summary: string;
|
|
757
|
+
schemaVersion: "treeseed.knowledge-page/v2";
|
|
714
758
|
title: string;
|
|
715
|
-
|
|
759
|
+
slug: string;
|
|
760
|
+
body: string;
|
|
761
|
+
projectId: string;
|
|
762
|
+
visibility: "project" | "team" | "public" | "authenticated" | "admin";
|
|
763
|
+
bookRef: {
|
|
764
|
+
id: string;
|
|
765
|
+
model: string;
|
|
766
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
767
|
+
path?: string | undefined;
|
|
768
|
+
anchor?: string | undefined;
|
|
769
|
+
commit?: string | undefined;
|
|
770
|
+
repository?: string | undefined;
|
|
771
|
+
revision?: number | undefined;
|
|
772
|
+
digest?: string | undefined;
|
|
773
|
+
url?: string | undefined;
|
|
774
|
+
startLine?: number | undefined;
|
|
775
|
+
endLine?: number | undefined;
|
|
776
|
+
};
|
|
716
777
|
description?: string | undefined;
|
|
717
|
-
|
|
778
|
+
summary?: string | undefined;
|
|
718
779
|
groupIds?: string[] | undefined;
|
|
780
|
+
order?: number | undefined;
|
|
781
|
+
relatedBookIds?: string[] | undefined;
|
|
782
|
+
parentId?: string | undefined;
|
|
783
|
+
contributors?: string[] | undefined;
|
|
784
|
+
relatedKnowledgeIds?: string[] | undefined;
|
|
785
|
+
relatedNoteIds?: string[] | undefined;
|
|
786
|
+
relatedQuestionIds?: string[] | undefined;
|
|
787
|
+
relatedObjectiveIds?: string[] | undefined;
|
|
788
|
+
relatedProposalIds?: string[] | undefined;
|
|
789
|
+
relatedDecisionIds?: string[] | undefined;
|
|
790
|
+
guaranteeIds?: string[] | undefined;
|
|
791
|
+
audiences?: {
|
|
792
|
+
primary?: string[] | undefined;
|
|
793
|
+
secondary?: string[] | undefined;
|
|
794
|
+
excluded?: string[] | undefined;
|
|
795
|
+
} | undefined;
|
|
796
|
+
relatedRefs?: {
|
|
797
|
+
id: string;
|
|
798
|
+
model: string;
|
|
799
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
800
|
+
path?: string | undefined;
|
|
801
|
+
anchor?: string | undefined;
|
|
802
|
+
commit?: string | undefined;
|
|
803
|
+
repository?: string | undefined;
|
|
804
|
+
revision?: number | undefined;
|
|
805
|
+
digest?: string | undefined;
|
|
806
|
+
url?: string | undefined;
|
|
807
|
+
startLine?: number | undefined;
|
|
808
|
+
endLine?: number | undefined;
|
|
809
|
+
}[] | undefined;
|
|
810
|
+
capabilityIds?: string[] | undefined;
|
|
811
|
+
routePatterns?: string[] | undefined;
|
|
812
|
+
resourceTypes?: string[] | undefined;
|
|
813
|
+
actionIds?: string[] | undefined;
|
|
814
|
+
keywords?: string[] | undefined;
|
|
815
|
+
documentationUrls?: string[] | undefined;
|
|
719
816
|
} | {
|
|
720
817
|
name: string;
|
|
721
|
-
status?: "
|
|
722
|
-
role?: string | undefined;
|
|
818
|
+
status?: "planned" | "live" | "in progress" | "exploratory" | "speculative" | undefined;
|
|
723
819
|
description?: string | undefined;
|
|
724
820
|
summary?: string | undefined;
|
|
821
|
+
role?: string | undefined;
|
|
822
|
+
affiliation?: string | undefined;
|
|
725
823
|
group_ids?: string[] | undefined;
|
|
726
|
-
related_objectives?: string[] | undefined;
|
|
727
824
|
related_questions?: string[] | undefined;
|
|
728
|
-
|
|
825
|
+
related_objectives?: string[] | undefined;
|
|
729
826
|
} | {
|
|
827
|
+
status: "resolved" | "open" | "closed";
|
|
828
|
+
id: string;
|
|
829
|
+
schemaVersion: "treeseed.discussion/v1";
|
|
730
830
|
title: string;
|
|
731
|
-
|
|
831
|
+
createdAt: string;
|
|
832
|
+
teamId: string;
|
|
833
|
+
projectId: string;
|
|
834
|
+
subjectRef: {
|
|
835
|
+
id: string;
|
|
836
|
+
model: string;
|
|
837
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
838
|
+
path?: string | undefined;
|
|
839
|
+
anchor?: string | undefined;
|
|
840
|
+
commit?: string | undefined;
|
|
841
|
+
repository?: string | undefined;
|
|
842
|
+
revision?: number | undefined;
|
|
843
|
+
digest?: string | undefined;
|
|
844
|
+
url?: string | undefined;
|
|
845
|
+
startLine?: number | undefined;
|
|
846
|
+
endLine?: number | undefined;
|
|
847
|
+
};
|
|
848
|
+
participantClasses: string[];
|
|
849
|
+
updatedAt?: string | undefined;
|
|
850
|
+
visibility?: "project" | "team" | "public" | "authenticated" | "admin" | undefined;
|
|
851
|
+
groupIds?: string[] | undefined;
|
|
732
852
|
topic?: string | undefined;
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
team_id?: string | undefined;
|
|
737
|
-
project_id?: string | undefined;
|
|
738
|
-
participant_ids?: string[] | undefined;
|
|
739
|
-
agent_ids?: string[] | undefined;
|
|
740
|
-
parent_workday_id?: string | undefined;
|
|
741
|
-
legacy_status?: "open" | "resolved" | undefined;
|
|
853
|
+
participantIds?: string[] | undefined;
|
|
854
|
+
agentIds?: string[] | undefined;
|
|
855
|
+
parentWorkdayId?: string | undefined;
|
|
742
856
|
} | {
|
|
743
|
-
|
|
744
|
-
|
|
857
|
+
id: string;
|
|
858
|
+
schemaVersion: "treeseed.discussion-message/v1";
|
|
859
|
+
createdAt: string;
|
|
860
|
+
body: string;
|
|
861
|
+
discussionRef: {
|
|
862
|
+
id: string;
|
|
863
|
+
model: string;
|
|
864
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
865
|
+
path?: string | undefined;
|
|
866
|
+
anchor?: string | undefined;
|
|
867
|
+
commit?: string | undefined;
|
|
868
|
+
repository?: string | undefined;
|
|
869
|
+
revision?: number | undefined;
|
|
870
|
+
digest?: string | undefined;
|
|
871
|
+
url?: string | undefined;
|
|
872
|
+
startLine?: number | undefined;
|
|
873
|
+
endLine?: number | undefined;
|
|
874
|
+
};
|
|
875
|
+
authorRef: {
|
|
876
|
+
id: string;
|
|
877
|
+
model: string;
|
|
878
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
879
|
+
path?: string | undefined;
|
|
880
|
+
anchor?: string | undefined;
|
|
881
|
+
commit?: string | undefined;
|
|
882
|
+
repository?: string | undefined;
|
|
883
|
+
revision?: number | undefined;
|
|
884
|
+
digest?: string | undefined;
|
|
885
|
+
url?: string | undefined;
|
|
886
|
+
startLine?: number | undefined;
|
|
887
|
+
endLine?: number | undefined;
|
|
888
|
+
};
|
|
889
|
+
title?: string | undefined;
|
|
745
890
|
intent?: "discuss" | "propose" | undefined;
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
891
|
+
contextRefs?: Record<string, unknown>[] | undefined;
|
|
892
|
+
parentWorkdayId?: string | undefined;
|
|
893
|
+
replyToRef?: {
|
|
894
|
+
id: string;
|
|
895
|
+
model: string;
|
|
896
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
897
|
+
path?: string | undefined;
|
|
898
|
+
anchor?: string | undefined;
|
|
899
|
+
commit?: string | undefined;
|
|
900
|
+
repository?: string | undefined;
|
|
901
|
+
revision?: number | undefined;
|
|
902
|
+
digest?: string | undefined;
|
|
903
|
+
url?: string | undefined;
|
|
904
|
+
startLine?: number | undefined;
|
|
905
|
+
endLine?: number | undefined;
|
|
906
|
+
} | undefined;
|
|
907
|
+
discussionId?: string | undefined;
|
|
908
|
+
authorId?: string | undefined;
|
|
909
|
+
authorType?: "agent" | "user" | "system" | undefined;
|
|
910
|
+
mentionedAgents?: string[] | undefined;
|
|
911
|
+
recipientIds?: string[] | undefined;
|
|
912
|
+
fileRefs?: Record<string, unknown>[] | undefined;
|
|
913
|
+
inboxIntent?: "answer" | "comment" | "reply" | undefined;
|
|
914
|
+
sourceMessageRefs?: {
|
|
915
|
+
id: string;
|
|
916
|
+
model: string;
|
|
917
|
+
store: "treedx" | "git" | "postgresql" | "url";
|
|
918
|
+
path?: string | undefined;
|
|
919
|
+
anchor?: string | undefined;
|
|
920
|
+
commit?: string | undefined;
|
|
921
|
+
repository?: string | undefined;
|
|
922
|
+
revision?: number | undefined;
|
|
923
|
+
digest?: string | undefined;
|
|
924
|
+
url?: string | undefined;
|
|
925
|
+
startLine?: number | undefined;
|
|
926
|
+
endLine?: number | undefined;
|
|
927
|
+
}[] | undefined;
|
|
928
|
+
authorAgentId?: string | undefined;
|
|
929
|
+
handoffId?: string | undefined;
|
|
930
|
+
resultingOperationId?: string | undefined;
|
|
758
931
|
} | {
|
|
759
932
|
title: string;
|
|
760
|
-
sequence?: number | undefined;
|
|
761
|
-
phase?: string | undefined;
|
|
762
933
|
group_ids?: string[] | undefined;
|
|
763
934
|
discussion_id?: string | undefined;
|
|
935
|
+
phase?: string | undefined;
|
|
936
|
+
sequence?: number | undefined;
|
|
764
937
|
occurred_at?: Date | undefined;
|
|
765
938
|
refs?: string[] | undefined;
|
|
766
939
|
} | {
|
|
767
940
|
id: string;
|
|
768
941
|
name: string;
|
|
769
|
-
slug: string;
|
|
770
942
|
description: string;
|
|
943
|
+
slug: string;
|
|
771
944
|
classification: string;
|
|
772
945
|
contract: "treeseed.group/v1";
|
|
773
946
|
status?: "active" | "archived" | undefined;
|