@treeseed/sdk 0.13.0-rc.65 → 0.13.0-rc.67
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.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 +292 -3
- 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 +362 -23
- package/dist/content/validation/portable-content-data.d.ts +20 -3
- package/dist/deployment/schemas.d.ts +84 -3
- package/dist/deployment/schemas.js +9 -1
- 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 +1 -1
- 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/control-plane-operations.d.ts +125 -0
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const agentContextQueryContentSchema: z.ZodObject<{
|
|
2
|
+
export declare const agentContextQueryContentSchema: z.ZodEffects<z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
title: z.ZodString;
|
|
5
5
|
description: z.ZodString;
|
|
@@ -12,11 +12,11 @@ export declare const agentContextQueryContentSchema: z.ZodObject<{
|
|
|
12
12
|
models: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
13
13
|
paths: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
14
14
|
}, "strict", z.ZodTypeAny, {
|
|
15
|
-
kind: "code" | "content" | "
|
|
15
|
+
kind: "code" | "content" | "graph" | "mixed";
|
|
16
16
|
paths?: string[] | undefined;
|
|
17
17
|
models?: string[] | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
kind: "code" | "content" | "
|
|
19
|
+
kind: "code" | "content" | "graph" | "mixed";
|
|
20
20
|
paths?: string[] | undefined;
|
|
21
21
|
models?: string[] | undefined;
|
|
22
22
|
}>;
|
|
@@ -37,24 +37,79 @@ export declare const agentContextQueryContentSchema: z.ZodObject<{
|
|
|
37
37
|
}>;
|
|
38
38
|
tokenBudget: z.ZodNumber;
|
|
39
39
|
format: z.ZodDefault<z.ZodEnum<["summary", "full", "sources", "list", "brief", "map"]>>;
|
|
40
|
+
sources: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"scope", [z.ZodObject<{
|
|
41
|
+
scope: z.ZodLiteral<"current-project">;
|
|
42
|
+
}, "strict", z.ZodTypeAny, {
|
|
43
|
+
scope: "current-project";
|
|
44
|
+
}, {
|
|
45
|
+
scope: "current-project";
|
|
46
|
+
}>, z.ZodObject<{
|
|
47
|
+
scope: z.ZodLiteral<"team-library">;
|
|
48
|
+
}, "strict", z.ZodTypeAny, {
|
|
49
|
+
scope: "team-library";
|
|
50
|
+
}, {
|
|
51
|
+
scope: "team-library";
|
|
52
|
+
}>, z.ZodObject<{
|
|
53
|
+
scope: z.ZodLiteral<"same-team">;
|
|
54
|
+
projectIds: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
55
|
+
projectSlugs: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
56
|
+
}, "strict", z.ZodTypeAny, {
|
|
57
|
+
scope: "same-team";
|
|
58
|
+
projectIds: string[];
|
|
59
|
+
projectSlugs: string[];
|
|
60
|
+
}, {
|
|
61
|
+
scope: "same-team";
|
|
62
|
+
projectIds?: string[] | undefined;
|
|
63
|
+
projectSlugs?: string[] | undefined;
|
|
64
|
+
}>, z.ZodObject<{
|
|
65
|
+
scope: z.ZodLiteral<"shared-team">;
|
|
66
|
+
teamId: z.ZodString;
|
|
67
|
+
projectIds: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
68
|
+
}, "strict", z.ZodTypeAny, {
|
|
69
|
+
teamId: string;
|
|
70
|
+
scope: "shared-team";
|
|
71
|
+
projectIds: string[];
|
|
72
|
+
}, {
|
|
73
|
+
teamId: string;
|
|
74
|
+
scope: "shared-team";
|
|
75
|
+
projectIds?: string[] | undefined;
|
|
76
|
+
}>]>, "many">>;
|
|
77
|
+
requirement: z.ZodDefault<z.ZodEnum<["required", "preferred"]>>;
|
|
78
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
79
|
+
minimumBudget: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
maximumBudget: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
summarization: z.ZodDefault<z.ZodEnum<["none", "deterministic", "provider"]>>;
|
|
40
82
|
filters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
|
-
required: z.ZodDefault<z.ZodBoolean>;
|
|
42
83
|
}, "strict", z.ZodTypeAny, {
|
|
43
84
|
id: string;
|
|
44
|
-
|
|
85
|
+
sources: ({
|
|
86
|
+
scope: "current-project";
|
|
87
|
+
} | {
|
|
88
|
+
scope: "team-library";
|
|
89
|
+
} | {
|
|
90
|
+
scope: "same-team";
|
|
91
|
+
projectIds: string[];
|
|
92
|
+
projectSlugs: string[];
|
|
93
|
+
} | {
|
|
94
|
+
teamId: string;
|
|
95
|
+
scope: "shared-team";
|
|
96
|
+
projectIds: string[];
|
|
97
|
+
})[];
|
|
45
98
|
purpose: string;
|
|
46
99
|
target: {
|
|
47
|
-
kind: "code" | "content" | "
|
|
100
|
+
kind: "code" | "content" | "graph" | "mixed";
|
|
48
101
|
paths?: string[] | undefined;
|
|
49
102
|
models?: string[] | undefined;
|
|
50
103
|
};
|
|
51
104
|
description: string;
|
|
52
105
|
revision: number;
|
|
106
|
+
requirement: "required" | "preferred";
|
|
53
107
|
format: "map" | "sources" | "summary" | "list" | "full" | "brief";
|
|
54
108
|
query: string;
|
|
55
109
|
depth: number;
|
|
56
110
|
title: string;
|
|
57
111
|
filters: Record<string, unknown>;
|
|
112
|
+
priority: number;
|
|
58
113
|
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
59
114
|
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
60
115
|
resultLimit: number;
|
|
@@ -63,13 +118,16 @@ export declare const agentContextQueryContentSchema: z.ZodObject<{
|
|
|
63
118
|
maxCharacters?: number | undefined;
|
|
64
119
|
};
|
|
65
120
|
tokenBudget: number;
|
|
121
|
+
summarization: "none" | "provider" | "deterministic";
|
|
66
122
|
scope?: string | undefined;
|
|
67
123
|
codeScopes?: string[] | undefined;
|
|
124
|
+
minimumBudget?: number | undefined;
|
|
125
|
+
maximumBudget?: number | undefined;
|
|
68
126
|
}, {
|
|
69
127
|
id: string;
|
|
70
128
|
purpose: string;
|
|
71
129
|
target: {
|
|
72
|
-
kind: "code" | "content" | "
|
|
130
|
+
kind: "code" | "content" | "graph" | "mixed";
|
|
73
131
|
paths?: string[] | undefined;
|
|
74
132
|
models?: string[] | undefined;
|
|
75
133
|
};
|
|
@@ -84,13 +142,116 @@ export declare const agentContextQueryContentSchema: z.ZodObject<{
|
|
|
84
142
|
maxCharacters?: number | undefined;
|
|
85
143
|
};
|
|
86
144
|
tokenBudget: number;
|
|
87
|
-
|
|
145
|
+
sources?: ({
|
|
146
|
+
scope: "current-project";
|
|
147
|
+
} | {
|
|
148
|
+
scope: "team-library";
|
|
149
|
+
} | {
|
|
150
|
+
scope: "same-team";
|
|
151
|
+
projectIds?: string[] | undefined;
|
|
152
|
+
projectSlugs?: string[] | undefined;
|
|
153
|
+
} | {
|
|
154
|
+
teamId: string;
|
|
155
|
+
scope: "shared-team";
|
|
156
|
+
projectIds?: string[] | undefined;
|
|
157
|
+
})[] | undefined;
|
|
88
158
|
scope?: string | undefined;
|
|
159
|
+
requirement?: "required" | "preferred" | undefined;
|
|
89
160
|
format?: "map" | "sources" | "summary" | "list" | "full" | "brief" | undefined;
|
|
90
161
|
depth?: number | undefined;
|
|
91
162
|
filters?: Record<string, unknown> | undefined;
|
|
163
|
+
priority?: number | undefined;
|
|
92
164
|
codeScopes?: string[] | undefined;
|
|
93
165
|
relations?: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[] | undefined;
|
|
166
|
+
minimumBudget?: number | undefined;
|
|
167
|
+
maximumBudget?: number | undefined;
|
|
168
|
+
summarization?: "none" | "provider" | "deterministic" | undefined;
|
|
169
|
+
}>, {
|
|
170
|
+
id: string;
|
|
171
|
+
sources: ({
|
|
172
|
+
scope: "current-project";
|
|
173
|
+
} | {
|
|
174
|
+
scope: "team-library";
|
|
175
|
+
} | {
|
|
176
|
+
scope: "same-team";
|
|
177
|
+
projectIds: string[];
|
|
178
|
+
projectSlugs: string[];
|
|
179
|
+
} | {
|
|
180
|
+
teamId: string;
|
|
181
|
+
scope: "shared-team";
|
|
182
|
+
projectIds: string[];
|
|
183
|
+
})[];
|
|
184
|
+
purpose: string;
|
|
185
|
+
target: {
|
|
186
|
+
kind: "code" | "content" | "graph" | "mixed";
|
|
187
|
+
paths?: string[] | undefined;
|
|
188
|
+
models?: string[] | undefined;
|
|
189
|
+
};
|
|
190
|
+
description: string;
|
|
191
|
+
revision: number;
|
|
192
|
+
requirement: "required" | "preferred";
|
|
193
|
+
format: "map" | "sources" | "summary" | "list" | "full" | "brief";
|
|
194
|
+
query: string;
|
|
195
|
+
depth: number;
|
|
196
|
+
title: string;
|
|
197
|
+
filters: Record<string, unknown>;
|
|
198
|
+
priority: number;
|
|
199
|
+
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
200
|
+
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
201
|
+
resultLimit: number;
|
|
202
|
+
contextBudget: {
|
|
203
|
+
maxItems: number;
|
|
204
|
+
maxCharacters?: number | undefined;
|
|
205
|
+
};
|
|
206
|
+
tokenBudget: number;
|
|
207
|
+
summarization: "none" | "provider" | "deterministic";
|
|
208
|
+
scope?: string | undefined;
|
|
209
|
+
codeScopes?: string[] | undefined;
|
|
210
|
+
minimumBudget?: number | undefined;
|
|
211
|
+
maximumBudget?: number | undefined;
|
|
212
|
+
}, {
|
|
213
|
+
id: string;
|
|
214
|
+
purpose: string;
|
|
215
|
+
target: {
|
|
216
|
+
kind: "code" | "content" | "graph" | "mixed";
|
|
217
|
+
paths?: string[] | undefined;
|
|
218
|
+
models?: string[] | undefined;
|
|
219
|
+
};
|
|
220
|
+
description: string;
|
|
221
|
+
revision: number;
|
|
222
|
+
query: string;
|
|
223
|
+
title: string;
|
|
224
|
+
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
225
|
+
resultLimit: number;
|
|
226
|
+
contextBudget: {
|
|
227
|
+
maxItems: number;
|
|
228
|
+
maxCharacters?: number | undefined;
|
|
229
|
+
};
|
|
230
|
+
tokenBudget: number;
|
|
231
|
+
sources?: ({
|
|
232
|
+
scope: "current-project";
|
|
233
|
+
} | {
|
|
234
|
+
scope: "team-library";
|
|
235
|
+
} | {
|
|
236
|
+
scope: "same-team";
|
|
237
|
+
projectIds?: string[] | undefined;
|
|
238
|
+
projectSlugs?: string[] | undefined;
|
|
239
|
+
} | {
|
|
240
|
+
teamId: string;
|
|
241
|
+
scope: "shared-team";
|
|
242
|
+
projectIds?: string[] | undefined;
|
|
243
|
+
})[] | undefined;
|
|
244
|
+
scope?: string | undefined;
|
|
245
|
+
requirement?: "required" | "preferred" | undefined;
|
|
246
|
+
format?: "map" | "sources" | "summary" | "list" | "full" | "brief" | undefined;
|
|
247
|
+
depth?: number | undefined;
|
|
248
|
+
filters?: Record<string, unknown> | undefined;
|
|
249
|
+
priority?: number | undefined;
|
|
250
|
+
codeScopes?: string[] | undefined;
|
|
251
|
+
relations?: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[] | undefined;
|
|
252
|
+
minimumBudget?: number | undefined;
|
|
253
|
+
maximumBudget?: number | undefined;
|
|
254
|
+
summarization?: "none" | "provider" | "deterministic" | undefined;
|
|
94
255
|
}>;
|
|
95
256
|
export declare const agentContextQuerySetContentSchema: z.ZodObject<{
|
|
96
257
|
id: z.ZodString;
|
|
@@ -669,7 +830,7 @@ export declare const agentEvaluationContentSchema: z.ZodObject<{
|
|
|
669
830
|
score?: number | undefined;
|
|
670
831
|
}>;
|
|
671
832
|
export declare const agentOperationalContentSchemas: {
|
|
672
|
-
agent_context_query: z.ZodObject<{
|
|
833
|
+
agent_context_query: z.ZodEffects<z.ZodObject<{
|
|
673
834
|
id: z.ZodString;
|
|
674
835
|
title: z.ZodString;
|
|
675
836
|
description: z.ZodString;
|
|
@@ -682,11 +843,11 @@ export declare const agentOperationalContentSchemas: {
|
|
|
682
843
|
models: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
683
844
|
paths: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
684
845
|
}, "strict", z.ZodTypeAny, {
|
|
685
|
-
kind: "code" | "content" | "
|
|
846
|
+
kind: "code" | "content" | "graph" | "mixed";
|
|
686
847
|
paths?: string[] | undefined;
|
|
687
848
|
models?: string[] | undefined;
|
|
688
849
|
}, {
|
|
689
|
-
kind: "code" | "content" | "
|
|
850
|
+
kind: "code" | "content" | "graph" | "mixed";
|
|
690
851
|
paths?: string[] | undefined;
|
|
691
852
|
models?: string[] | undefined;
|
|
692
853
|
}>;
|
|
@@ -707,24 +868,165 @@ export declare const agentOperationalContentSchemas: {
|
|
|
707
868
|
}>;
|
|
708
869
|
tokenBudget: z.ZodNumber;
|
|
709
870
|
format: z.ZodDefault<z.ZodEnum<["summary", "full", "sources", "list", "brief", "map"]>>;
|
|
871
|
+
sources: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"scope", [z.ZodObject<{
|
|
872
|
+
scope: z.ZodLiteral<"current-project">;
|
|
873
|
+
}, "strict", z.ZodTypeAny, {
|
|
874
|
+
scope: "current-project";
|
|
875
|
+
}, {
|
|
876
|
+
scope: "current-project";
|
|
877
|
+
}>, z.ZodObject<{
|
|
878
|
+
scope: z.ZodLiteral<"team-library">;
|
|
879
|
+
}, "strict", z.ZodTypeAny, {
|
|
880
|
+
scope: "team-library";
|
|
881
|
+
}, {
|
|
882
|
+
scope: "team-library";
|
|
883
|
+
}>, z.ZodObject<{
|
|
884
|
+
scope: z.ZodLiteral<"same-team">;
|
|
885
|
+
projectIds: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
886
|
+
projectSlugs: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
887
|
+
}, "strict", z.ZodTypeAny, {
|
|
888
|
+
scope: "same-team";
|
|
889
|
+
projectIds: string[];
|
|
890
|
+
projectSlugs: string[];
|
|
891
|
+
}, {
|
|
892
|
+
scope: "same-team";
|
|
893
|
+
projectIds?: string[] | undefined;
|
|
894
|
+
projectSlugs?: string[] | undefined;
|
|
895
|
+
}>, z.ZodObject<{
|
|
896
|
+
scope: z.ZodLiteral<"shared-team">;
|
|
897
|
+
teamId: z.ZodString;
|
|
898
|
+
projectIds: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
899
|
+
}, "strict", z.ZodTypeAny, {
|
|
900
|
+
teamId: string;
|
|
901
|
+
scope: "shared-team";
|
|
902
|
+
projectIds: string[];
|
|
903
|
+
}, {
|
|
904
|
+
teamId: string;
|
|
905
|
+
scope: "shared-team";
|
|
906
|
+
projectIds?: string[] | undefined;
|
|
907
|
+
}>]>, "many">>;
|
|
908
|
+
requirement: z.ZodDefault<z.ZodEnum<["required", "preferred"]>>;
|
|
909
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
910
|
+
minimumBudget: z.ZodOptional<z.ZodNumber>;
|
|
911
|
+
maximumBudget: z.ZodOptional<z.ZodNumber>;
|
|
912
|
+
summarization: z.ZodDefault<z.ZodEnum<["none", "deterministic", "provider"]>>;
|
|
710
913
|
filters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
711
|
-
required: z.ZodDefault<z.ZodBoolean>;
|
|
712
914
|
}, "strict", z.ZodTypeAny, {
|
|
713
915
|
id: string;
|
|
714
|
-
|
|
916
|
+
sources: ({
|
|
917
|
+
scope: "current-project";
|
|
918
|
+
} | {
|
|
919
|
+
scope: "team-library";
|
|
920
|
+
} | {
|
|
921
|
+
scope: "same-team";
|
|
922
|
+
projectIds: string[];
|
|
923
|
+
projectSlugs: string[];
|
|
924
|
+
} | {
|
|
925
|
+
teamId: string;
|
|
926
|
+
scope: "shared-team";
|
|
927
|
+
projectIds: string[];
|
|
928
|
+
})[];
|
|
929
|
+
purpose: string;
|
|
930
|
+
target: {
|
|
931
|
+
kind: "code" | "content" | "graph" | "mixed";
|
|
932
|
+
paths?: string[] | undefined;
|
|
933
|
+
models?: string[] | undefined;
|
|
934
|
+
};
|
|
935
|
+
description: string;
|
|
936
|
+
revision: number;
|
|
937
|
+
requirement: "required" | "preferred";
|
|
938
|
+
format: "map" | "sources" | "summary" | "list" | "full" | "brief";
|
|
939
|
+
query: string;
|
|
940
|
+
depth: number;
|
|
941
|
+
title: string;
|
|
942
|
+
filters: Record<string, unknown>;
|
|
943
|
+
priority: number;
|
|
944
|
+
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
945
|
+
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
946
|
+
resultLimit: number;
|
|
947
|
+
contextBudget: {
|
|
948
|
+
maxItems: number;
|
|
949
|
+
maxCharacters?: number | undefined;
|
|
950
|
+
};
|
|
951
|
+
tokenBudget: number;
|
|
952
|
+
summarization: "none" | "provider" | "deterministic";
|
|
953
|
+
scope?: string | undefined;
|
|
954
|
+
codeScopes?: string[] | undefined;
|
|
955
|
+
minimumBudget?: number | undefined;
|
|
956
|
+
maximumBudget?: number | undefined;
|
|
957
|
+
}, {
|
|
958
|
+
id: string;
|
|
959
|
+
purpose: string;
|
|
960
|
+
target: {
|
|
961
|
+
kind: "code" | "content" | "graph" | "mixed";
|
|
962
|
+
paths?: string[] | undefined;
|
|
963
|
+
models?: string[] | undefined;
|
|
964
|
+
};
|
|
965
|
+
description: string;
|
|
966
|
+
revision: number;
|
|
967
|
+
query: string;
|
|
968
|
+
title: string;
|
|
969
|
+
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
970
|
+
resultLimit: number;
|
|
971
|
+
contextBudget: {
|
|
972
|
+
maxItems: number;
|
|
973
|
+
maxCharacters?: number | undefined;
|
|
974
|
+
};
|
|
975
|
+
tokenBudget: number;
|
|
976
|
+
sources?: ({
|
|
977
|
+
scope: "current-project";
|
|
978
|
+
} | {
|
|
979
|
+
scope: "team-library";
|
|
980
|
+
} | {
|
|
981
|
+
scope: "same-team";
|
|
982
|
+
projectIds?: string[] | undefined;
|
|
983
|
+
projectSlugs?: string[] | undefined;
|
|
984
|
+
} | {
|
|
985
|
+
teamId: string;
|
|
986
|
+
scope: "shared-team";
|
|
987
|
+
projectIds?: string[] | undefined;
|
|
988
|
+
})[] | undefined;
|
|
989
|
+
scope?: string | undefined;
|
|
990
|
+
requirement?: "required" | "preferred" | undefined;
|
|
991
|
+
format?: "map" | "sources" | "summary" | "list" | "full" | "brief" | undefined;
|
|
992
|
+
depth?: number | undefined;
|
|
993
|
+
filters?: Record<string, unknown> | undefined;
|
|
994
|
+
priority?: number | undefined;
|
|
995
|
+
codeScopes?: string[] | undefined;
|
|
996
|
+
relations?: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[] | undefined;
|
|
997
|
+
minimumBudget?: number | undefined;
|
|
998
|
+
maximumBudget?: number | undefined;
|
|
999
|
+
summarization?: "none" | "provider" | "deterministic" | undefined;
|
|
1000
|
+
}>, {
|
|
1001
|
+
id: string;
|
|
1002
|
+
sources: ({
|
|
1003
|
+
scope: "current-project";
|
|
1004
|
+
} | {
|
|
1005
|
+
scope: "team-library";
|
|
1006
|
+
} | {
|
|
1007
|
+
scope: "same-team";
|
|
1008
|
+
projectIds: string[];
|
|
1009
|
+
projectSlugs: string[];
|
|
1010
|
+
} | {
|
|
1011
|
+
teamId: string;
|
|
1012
|
+
scope: "shared-team";
|
|
1013
|
+
projectIds: string[];
|
|
1014
|
+
})[];
|
|
715
1015
|
purpose: string;
|
|
716
1016
|
target: {
|
|
717
|
-
kind: "code" | "content" | "
|
|
1017
|
+
kind: "code" | "content" | "graph" | "mixed";
|
|
718
1018
|
paths?: string[] | undefined;
|
|
719
1019
|
models?: string[] | undefined;
|
|
720
1020
|
};
|
|
721
1021
|
description: string;
|
|
722
1022
|
revision: number;
|
|
1023
|
+
requirement: "required" | "preferred";
|
|
723
1024
|
format: "map" | "sources" | "summary" | "list" | "full" | "brief";
|
|
724
1025
|
query: string;
|
|
725
1026
|
depth: number;
|
|
726
1027
|
title: string;
|
|
727
1028
|
filters: Record<string, unknown>;
|
|
1029
|
+
priority: number;
|
|
728
1030
|
maturity: "draft" | "validated" | "simulated" | "proven";
|
|
729
1031
|
relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
|
|
730
1032
|
resultLimit: number;
|
|
@@ -733,13 +1035,16 @@ export declare const agentOperationalContentSchemas: {
|
|
|
733
1035
|
maxCharacters?: number | undefined;
|
|
734
1036
|
};
|
|
735
1037
|
tokenBudget: number;
|
|
1038
|
+
summarization: "none" | "provider" | "deterministic";
|
|
736
1039
|
scope?: string | undefined;
|
|
737
1040
|
codeScopes?: string[] | undefined;
|
|
1041
|
+
minimumBudget?: number | undefined;
|
|
1042
|
+
maximumBudget?: number | undefined;
|
|
738
1043
|
}, {
|
|
739
1044
|
id: string;
|
|
740
1045
|
purpose: string;
|
|
741
1046
|
target: {
|
|
742
|
-
kind: "code" | "content" | "
|
|
1047
|
+
kind: "code" | "content" | "graph" | "mixed";
|
|
743
1048
|
paths?: string[] | undefined;
|
|
744
1049
|
models?: string[] | undefined;
|
|
745
1050
|
};
|
|
@@ -754,13 +1059,30 @@ export declare const agentOperationalContentSchemas: {
|
|
|
754
1059
|
maxCharacters?: number | undefined;
|
|
755
1060
|
};
|
|
756
1061
|
tokenBudget: number;
|
|
757
|
-
|
|
1062
|
+
sources?: ({
|
|
1063
|
+
scope: "current-project";
|
|
1064
|
+
} | {
|
|
1065
|
+
scope: "team-library";
|
|
1066
|
+
} | {
|
|
1067
|
+
scope: "same-team";
|
|
1068
|
+
projectIds?: string[] | undefined;
|
|
1069
|
+
projectSlugs?: string[] | undefined;
|
|
1070
|
+
} | {
|
|
1071
|
+
teamId: string;
|
|
1072
|
+
scope: "shared-team";
|
|
1073
|
+
projectIds?: string[] | undefined;
|
|
1074
|
+
})[] | undefined;
|
|
758
1075
|
scope?: string | undefined;
|
|
1076
|
+
requirement?: "required" | "preferred" | undefined;
|
|
759
1077
|
format?: "map" | "sources" | "summary" | "list" | "full" | "brief" | undefined;
|
|
760
1078
|
depth?: number | undefined;
|
|
761
1079
|
filters?: Record<string, unknown> | undefined;
|
|
1080
|
+
priority?: number | undefined;
|
|
762
1081
|
codeScopes?: string[] | undefined;
|
|
763
1082
|
relations?: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[] | undefined;
|
|
1083
|
+
minimumBudget?: number | undefined;
|
|
1084
|
+
maximumBudget?: number | undefined;
|
|
1085
|
+
summarization?: "none" | "provider" | "deterministic" | undefined;
|
|
764
1086
|
}>;
|
|
765
1087
|
agent_context_query_set: z.ZodObject<{
|
|
766
1088
|
id: z.ZodString;
|
|
@@ -8,6 +8,12 @@ const nonEmptyUniqueStrings = z.array(nonEmpty).min(1).superRefine((items, conte
|
|
|
8
8
|
if (new Set(items).size !== items.length) context.addIssue({ code: z.ZodIssueCode.custom, message: "Values must be unique." });
|
|
9
9
|
});
|
|
10
10
|
const exactRevisionRefSchema = z.object({ id: nonEmpty, revision: z.number().int().positive() }).strict();
|
|
11
|
+
const contextSourceSelectorSchema = z.discriminatedUnion("scope", [
|
|
12
|
+
z.object({ scope: z.literal("current-project") }).strict(),
|
|
13
|
+
z.object({ scope: z.literal("team-library") }).strict(),
|
|
14
|
+
z.object({ scope: z.literal("same-team"), projectIds: uniqueStrings.default([]), projectSlugs: uniqueStrings.default([]) }).strict(),
|
|
15
|
+
z.object({ scope: z.literal("shared-team"), teamId: nonEmpty, projectIds: uniqueStrings.default([]) }).strict()
|
|
16
|
+
]);
|
|
11
17
|
const lifecycle = z.object({
|
|
12
18
|
id: nonEmpty,
|
|
13
19
|
title: nonEmpty,
|
|
@@ -37,9 +43,18 @@ const agentContextQueryContentSchema = z.object({
|
|
|
37
43
|
contextBudget: z.object({ maxItems: z.number().int().positive(), maxCharacters: z.number().int().positive().optional() }).strict(),
|
|
38
44
|
tokenBudget: z.number().int().positive(),
|
|
39
45
|
format: z.enum(["summary", "full", "sources", "list", "brief", "map"]).default("summary"),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
sources: z.array(contextSourceSelectorSchema).min(1).default([{ scope: "current-project" }]),
|
|
47
|
+
requirement: z.enum(["required", "preferred"]).default("preferred"),
|
|
48
|
+
priority: z.number().int().min(0).max(100).default(50),
|
|
49
|
+
minimumBudget: z.number().int().positive().optional(),
|
|
50
|
+
maximumBudget: z.number().int().positive().optional(),
|
|
51
|
+
summarization: z.enum(["none", "deterministic", "provider"]).default("deterministic"),
|
|
52
|
+
filters: z.record(z.unknown()).default({})
|
|
53
|
+
}).strict().superRefine((value, context) => {
|
|
54
|
+
if (value.minimumBudget !== void 0 && value.maximumBudget !== void 0 && value.minimumBudget > value.maximumBudget) {
|
|
55
|
+
context.addIssue({ code: z.ZodIssueCode.custom, path: ["minimumBudget"], message: "minimumBudget cannot exceed maximumBudget." });
|
|
56
|
+
}
|
|
57
|
+
});
|
|
43
58
|
const agentContextQuerySetContentSchema = z.object({
|
|
44
59
|
id: nonEmpty,
|
|
45
60
|
title: nonEmpty,
|