@treeseed/sdk 0.13.0-rc.123 → 0.13.0-rc.124
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/workdays/workday-records.d.ts +5 -9
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +6 -0
- package/dist/agent-capacity/validation/agent-definition-schema.js +1 -0
- package/dist/content/validation/agent-operational-content-schemas.d.ts +4 -4
- package/dist/content/validation/auxiliary-content-schemas.d.ts +8 -8
- package/dist/content/validation/content-model-schemas.d.ts +46 -24
- package/dist/content/validation/content-model-schemas.js +1 -0
- package/dist/content/validation/portable-content-data.d.ts +6 -4
- package/dist/operator-contracts/catalog/workdays/selection-commands.js +4 -6
- package/dist/operator-contracts/workday-lifecycle.d.ts +9 -11
- package/dist/operator-contracts/workday-lifecycle.js +3 -4
- package/dist/types/agents/agent-activity-profile.d.ts +1 -0
- package/guarantees/verifiers/golden.verifiers.yaml +1 -1
- package/package.json +1 -1
- package/tests/acceptance/product/intent-runtime.ts +1 -1
|
@@ -111,6 +111,7 @@ export declare const workdayScheduleSchema: z.ZodObject<{
|
|
|
111
111
|
objectiveFilters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
112
112
|
proposalIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
113
113
|
decisionIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
114
|
+
groupIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
114
115
|
reportingAgentId: z.ZodOptional<z.ZodString>;
|
|
115
116
|
continueFromWorkdayId: z.ZodOptional<z.ZodString>;
|
|
116
117
|
allocation: z.ZodOptional<z.ZodObject<{
|
|
@@ -133,22 +134,13 @@ export declare const workdayScheduleSchema: z.ZodObject<{
|
|
|
133
134
|
agentClassPercentages?: Record<string, Record<string, number>> | undefined;
|
|
134
135
|
}>>;
|
|
135
136
|
agentSelection: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
136
|
-
agentSlugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
137
|
-
classIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
138
|
-
classSlugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
139
137
|
activityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["planning", "estimating", "reviewing", "reporting", "chat"]>, "many">>;
|
|
140
138
|
mode: z.ZodOptional<z.ZodLiteral<"intersection">>;
|
|
141
139
|
}, "strict", z.ZodTypeAny, {
|
|
142
140
|
mode?: "intersection" | undefined;
|
|
143
|
-
classIds?: string[] | undefined;
|
|
144
|
-
classSlugs?: string[] | undefined;
|
|
145
|
-
agentSlugs?: string[] | undefined;
|
|
146
141
|
activityTypes?: ("planning" | "estimating" | "reviewing" | "reporting" | "chat")[] | undefined;
|
|
147
142
|
}, {
|
|
148
143
|
mode?: "intersection" | undefined;
|
|
149
|
-
classIds?: string[] | undefined;
|
|
150
|
-
classSlugs?: string[] | undefined;
|
|
151
|
-
agentSlugs?: string[] | undefined;
|
|
152
144
|
activityTypes?: ("planning" | "estimating" | "reviewing" | "reporting" | "chat")[] | undefined;
|
|
153
145
|
}>, {
|
|
154
146
|
[x: string]: any;
|
|
@@ -170,6 +162,7 @@ export declare const workdayScheduleSchema: z.ZodObject<{
|
|
|
170
162
|
teamId: string;
|
|
171
163
|
profileId: string;
|
|
172
164
|
startsAt: string;
|
|
165
|
+
groupIds?: string[] | undefined;
|
|
173
166
|
durationSeconds?: number | undefined;
|
|
174
167
|
projects?: any;
|
|
175
168
|
executionMode?: "simulation" | "production" | undefined;
|
|
@@ -199,6 +192,7 @@ export declare const workdayScheduleSchema: z.ZodObject<{
|
|
|
199
192
|
teamId: string;
|
|
200
193
|
profileId: string;
|
|
201
194
|
startsAt: string;
|
|
195
|
+
groupIds?: string[] | undefined;
|
|
202
196
|
durationSeconds?: number | undefined;
|
|
203
197
|
projects?: any;
|
|
204
198
|
executionMode?: "simulation" | "production" | undefined;
|
|
@@ -228,6 +222,7 @@ export declare const workdayScheduleSchema: z.ZodObject<{
|
|
|
228
222
|
teamId: string;
|
|
229
223
|
profileId: string;
|
|
230
224
|
startsAt: string;
|
|
225
|
+
groupIds?: string[] | undefined;
|
|
231
226
|
durationSeconds?: number | undefined;
|
|
232
227
|
projects?: any;
|
|
233
228
|
executionMode?: "simulation" | "production" | undefined;
|
|
@@ -257,6 +252,7 @@ export declare const workdayScheduleSchema: z.ZodObject<{
|
|
|
257
252
|
teamId: string;
|
|
258
253
|
profileId: string;
|
|
259
254
|
startsAt: string;
|
|
255
|
+
groupIds?: string[] | undefined;
|
|
260
256
|
durationSeconds?: number | undefined;
|
|
261
257
|
projects?: any;
|
|
262
258
|
executionMode?: "simulation" | "production" | undefined;
|
|
@@ -1174,6 +1174,7 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1174
1174
|
id: z.ZodString;
|
|
1175
1175
|
name: z.ZodString;
|
|
1176
1176
|
agentClass: z.ZodString;
|
|
1177
|
+
groupIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
1177
1178
|
purpose: z.ZodString;
|
|
1178
1179
|
responsibilities: z.ZodArray<z.ZodString, "many">;
|
|
1179
1180
|
capabilities: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
@@ -2367,6 +2368,7 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2367
2368
|
parameters?: Record<string, unknown> | undefined;
|
|
2368
2369
|
} | undefined;
|
|
2369
2370
|
};
|
|
2371
|
+
groupIds?: string[] | undefined;
|
|
2370
2372
|
}, {
|
|
2371
2373
|
id: string;
|
|
2372
2374
|
name: string;
|
|
@@ -2500,6 +2502,7 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2500
2502
|
parameters?: Record<string, unknown> | undefined;
|
|
2501
2503
|
} | undefined;
|
|
2502
2504
|
};
|
|
2505
|
+
groupIds?: string[] | undefined;
|
|
2503
2506
|
}>, {
|
|
2504
2507
|
id: string;
|
|
2505
2508
|
name: string;
|
|
@@ -2633,6 +2636,7 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2633
2636
|
parameters?: Record<string, unknown> | undefined;
|
|
2634
2637
|
} | undefined;
|
|
2635
2638
|
};
|
|
2639
|
+
groupIds?: string[] | undefined;
|
|
2636
2640
|
}, {
|
|
2637
2641
|
id: string;
|
|
2638
2642
|
name: string;
|
|
@@ -2766,6 +2770,7 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2766
2770
|
parameters?: Record<string, unknown> | undefined;
|
|
2767
2771
|
} | undefined;
|
|
2768
2772
|
};
|
|
2773
|
+
groupIds?: string[] | undefined;
|
|
2769
2774
|
}>;
|
|
2770
2775
|
export declare function diagnosticsFromZod(error: ZodError, prefix?: string): {
|
|
2771
2776
|
code: string;
|
|
@@ -2908,6 +2913,7 @@ export declare function validateAgentDefinitionModel(value: unknown): {
|
|
|
2908
2913
|
parameters?: Record<string, unknown> | undefined;
|
|
2909
2914
|
} | undefined;
|
|
2910
2915
|
};
|
|
2916
|
+
groupIds?: string[] | undefined;
|
|
2911
2917
|
};
|
|
2912
2918
|
} | {
|
|
2913
2919
|
ok: boolean;
|
|
@@ -41,6 +41,7 @@ const agentDefinitionSchema = conditionalFields(z.object({
|
|
|
41
41
|
id: identifier,
|
|
42
42
|
name: nonEmpty,
|
|
43
43
|
agentClass: agentClassSchema,
|
|
44
|
+
groupIds: unique(identifier).optional(),
|
|
44
45
|
purpose: nonEmpty,
|
|
45
46
|
responsibilities: z.array(nonEmpty).min(1),
|
|
46
47
|
capabilities: uniqueArray(z.array(identifier).min(1, "At least one capability is required.")),
|
|
@@ -334,15 +334,15 @@ export declare const discussionTopicContentSchema: z.ZodObject<{
|
|
|
334
334
|
id: string;
|
|
335
335
|
title: string;
|
|
336
336
|
description: string;
|
|
337
|
-
slug: string;
|
|
338
337
|
groupIds: string[];
|
|
338
|
+
slug: string;
|
|
339
339
|
parentTopicId?: string | undefined;
|
|
340
340
|
}, {
|
|
341
341
|
id: string;
|
|
342
342
|
title: string;
|
|
343
343
|
description: string;
|
|
344
|
-
slug: string;
|
|
345
344
|
groupIds: string[];
|
|
345
|
+
slug: string;
|
|
346
346
|
status?: "active" | "archived" | undefined;
|
|
347
347
|
parentTopicId?: string | undefined;
|
|
348
348
|
}>;
|
|
@@ -831,15 +831,15 @@ export declare const agentOperationalContentSchemas: {
|
|
|
831
831
|
id: string;
|
|
832
832
|
title: string;
|
|
833
833
|
description: string;
|
|
834
|
-
slug: string;
|
|
835
834
|
groupIds: string[];
|
|
835
|
+
slug: string;
|
|
836
836
|
parentTopicId?: string | undefined;
|
|
837
837
|
}, {
|
|
838
838
|
id: string;
|
|
839
839
|
title: string;
|
|
840
840
|
description: string;
|
|
841
|
-
slug: string;
|
|
842
841
|
groupIds: string[];
|
|
842
|
+
slug: string;
|
|
843
843
|
status?: "active" | "archived" | undefined;
|
|
844
844
|
parentTopicId?: string | undefined;
|
|
845
845
|
}>;
|
|
@@ -408,6 +408,7 @@ export declare const templateProductContentSchema: z.ZodObject<{
|
|
|
408
408
|
audience: string[];
|
|
409
409
|
title: string;
|
|
410
410
|
description: string;
|
|
411
|
+
groupIds: string[];
|
|
411
412
|
summary: string;
|
|
412
413
|
slug: string;
|
|
413
414
|
offer: {
|
|
@@ -418,7 +419,6 @@ export declare const templateProductContentSchema: z.ZodObject<{
|
|
|
418
419
|
featured: boolean;
|
|
419
420
|
listingEnabled: boolean;
|
|
420
421
|
category: string;
|
|
421
|
-
groupIds: string[];
|
|
422
422
|
publisher: {
|
|
423
423
|
id: string;
|
|
424
424
|
name: string;
|
|
@@ -489,6 +489,7 @@ export declare const templateProductContentSchema: z.ZodObject<{
|
|
|
489
489
|
supportsReconcile?: boolean | undefined;
|
|
490
490
|
};
|
|
491
491
|
audience?: string[] | undefined;
|
|
492
|
+
groupIds?: string[] | undefined;
|
|
492
493
|
teamId?: string | undefined;
|
|
493
494
|
offer?: {
|
|
494
495
|
priceModel?: "subscription" | "free" | "private" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external" | undefined;
|
|
@@ -498,7 +499,6 @@ export declare const templateProductContentSchema: z.ZodObject<{
|
|
|
498
499
|
sourceRef?: string | undefined;
|
|
499
500
|
featured?: boolean | undefined;
|
|
500
501
|
listingEnabled?: boolean | undefined;
|
|
501
|
-
groupIds?: string[] | undefined;
|
|
502
502
|
publisherVerified?: boolean | undefined;
|
|
503
503
|
relatedBooks?: string[] | undefined;
|
|
504
504
|
relatedKnowledge?: string[] | undefined;
|
|
@@ -694,12 +694,12 @@ export declare const agentTestContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
694
694
|
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
695
695
|
agent: string;
|
|
696
696
|
id: string;
|
|
697
|
+
groupIds?: string[] | undefined;
|
|
697
698
|
budget?: {
|
|
698
699
|
maxTokens: number;
|
|
699
700
|
maxContextItems: number;
|
|
700
701
|
} | undefined;
|
|
701
702
|
fixture?: string | undefined;
|
|
702
|
-
groupIds?: string[] | undefined;
|
|
703
703
|
trigger?: Record<string, unknown> | undefined;
|
|
704
704
|
expect?: z.objectInputType<{
|
|
705
705
|
semanticArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -798,12 +798,12 @@ export declare const agentTestContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
798
798
|
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
799
799
|
agent: string;
|
|
800
800
|
id: string;
|
|
801
|
+
groupIds?: string[] | undefined;
|
|
801
802
|
budget?: {
|
|
802
803
|
maxTokens: number;
|
|
803
804
|
maxContextItems: number;
|
|
804
805
|
} | undefined;
|
|
805
806
|
fixture?: string | undefined;
|
|
806
|
-
groupIds?: string[] | undefined;
|
|
807
807
|
trigger?: Record<string, unknown> | undefined;
|
|
808
808
|
expect?: z.objectInputType<{
|
|
809
809
|
semanticArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1046,12 +1046,12 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1046
1046
|
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
1047
1047
|
agent: string;
|
|
1048
1048
|
id: string;
|
|
1049
|
+
groupIds?: string[] | undefined;
|
|
1049
1050
|
budget?: {
|
|
1050
1051
|
maxTokens: number;
|
|
1051
1052
|
maxContextItems: number;
|
|
1052
1053
|
} | undefined;
|
|
1053
1054
|
fixture?: string | undefined;
|
|
1054
|
-
groupIds?: string[] | undefined;
|
|
1055
1055
|
trigger?: Record<string, unknown> | undefined;
|
|
1056
1056
|
expect?: z.objectInputType<{
|
|
1057
1057
|
semanticArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1150,12 +1150,12 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1150
1150
|
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
1151
1151
|
agent: string;
|
|
1152
1152
|
id: string;
|
|
1153
|
+
groupIds?: string[] | undefined;
|
|
1153
1154
|
budget?: {
|
|
1154
1155
|
maxTokens: number;
|
|
1155
1156
|
maxContextItems: number;
|
|
1156
1157
|
} | undefined;
|
|
1157
1158
|
fixture?: string | undefined;
|
|
1158
|
-
groupIds?: string[] | undefined;
|
|
1159
1159
|
trigger?: Record<string, unknown> | undefined;
|
|
1160
1160
|
expect?: z.objectInputType<{
|
|
1161
1161
|
semanticArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1616,6 +1616,7 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1616
1616
|
audience: string[];
|
|
1617
1617
|
title: string;
|
|
1618
1618
|
description: string;
|
|
1619
|
+
groupIds: string[];
|
|
1619
1620
|
summary: string;
|
|
1620
1621
|
slug: string;
|
|
1621
1622
|
offer: {
|
|
@@ -1626,7 +1627,6 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1626
1627
|
featured: boolean;
|
|
1627
1628
|
listingEnabled: boolean;
|
|
1628
1629
|
category: string;
|
|
1629
|
-
groupIds: string[];
|
|
1630
1630
|
publisher: {
|
|
1631
1631
|
id: string;
|
|
1632
1632
|
name: string;
|
|
@@ -1697,6 +1697,7 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1697
1697
|
supportsReconcile?: boolean | undefined;
|
|
1698
1698
|
};
|
|
1699
1699
|
audience?: string[] | undefined;
|
|
1700
|
+
groupIds?: string[] | undefined;
|
|
1700
1701
|
teamId?: string | undefined;
|
|
1701
1702
|
offer?: {
|
|
1702
1703
|
priceModel?: "subscription" | "free" | "private" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external" | undefined;
|
|
@@ -1706,7 +1707,6 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1706
1707
|
sourceRef?: string | undefined;
|
|
1707
1708
|
featured?: boolean | undefined;
|
|
1708
1709
|
listingEnabled?: boolean | undefined;
|
|
1709
|
-
groupIds?: string[] | undefined;
|
|
1710
1710
|
publisherVerified?: boolean | undefined;
|
|
1711
1711
|
relatedBooks?: string[] | undefined;
|
|
1712
1712
|
relatedKnowledge?: string[] | undefined;
|
|
@@ -640,15 +640,15 @@ declare const schemas: {
|
|
|
640
640
|
id: string;
|
|
641
641
|
title: string;
|
|
642
642
|
description: string;
|
|
643
|
-
slug: string;
|
|
644
643
|
groupIds: string[];
|
|
644
|
+
slug: string;
|
|
645
645
|
parentTopicId?: string | undefined;
|
|
646
646
|
}, {
|
|
647
647
|
id: string;
|
|
648
648
|
title: string;
|
|
649
649
|
description: string;
|
|
650
|
-
slug: string;
|
|
651
650
|
groupIds: string[];
|
|
651
|
+
slug: string;
|
|
652
652
|
status?: "active" | "archived" | undefined;
|
|
653
653
|
parentTopicId?: string | undefined;
|
|
654
654
|
}>;
|
|
@@ -991,12 +991,12 @@ declare const schemas: {
|
|
|
991
991
|
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
992
992
|
agent: string;
|
|
993
993
|
id: string;
|
|
994
|
+
groupIds?: string[] | undefined;
|
|
994
995
|
budget?: {
|
|
995
996
|
maxTokens: number;
|
|
996
997
|
maxContextItems: number;
|
|
997
998
|
} | undefined;
|
|
998
999
|
fixture?: string | undefined;
|
|
999
|
-
groupIds?: string[] | undefined;
|
|
1000
1000
|
trigger?: Record<string, unknown> | undefined;
|
|
1001
1001
|
expect?: z.objectInputType<{
|
|
1002
1002
|
semanticArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1095,12 +1095,12 @@ declare const schemas: {
|
|
|
1095
1095
|
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
1096
1096
|
agent: string;
|
|
1097
1097
|
id: string;
|
|
1098
|
+
groupIds?: string[] | undefined;
|
|
1098
1099
|
budget?: {
|
|
1099
1100
|
maxTokens: number;
|
|
1100
1101
|
maxContextItems: number;
|
|
1101
1102
|
} | undefined;
|
|
1102
1103
|
fixture?: string | undefined;
|
|
1103
|
-
groupIds?: string[] | undefined;
|
|
1104
1104
|
trigger?: Record<string, unknown> | undefined;
|
|
1105
1105
|
expect?: z.objectInputType<{
|
|
1106
1106
|
semanticArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1561,6 +1561,7 @@ declare const schemas: {
|
|
|
1561
1561
|
audience: string[];
|
|
1562
1562
|
title: string;
|
|
1563
1563
|
description: string;
|
|
1564
|
+
groupIds: string[];
|
|
1564
1565
|
summary: string;
|
|
1565
1566
|
slug: string;
|
|
1566
1567
|
offer: {
|
|
@@ -1571,7 +1572,6 @@ declare const schemas: {
|
|
|
1571
1572
|
featured: boolean;
|
|
1572
1573
|
listingEnabled: boolean;
|
|
1573
1574
|
category: string;
|
|
1574
|
-
groupIds: string[];
|
|
1575
1575
|
publisher: {
|
|
1576
1576
|
id: string;
|
|
1577
1577
|
name: string;
|
|
@@ -1642,6 +1642,7 @@ declare const schemas: {
|
|
|
1642
1642
|
supportsReconcile?: boolean | undefined;
|
|
1643
1643
|
};
|
|
1644
1644
|
audience?: string[] | undefined;
|
|
1645
|
+
groupIds?: string[] | undefined;
|
|
1645
1646
|
teamId?: string | undefined;
|
|
1646
1647
|
offer?: {
|
|
1647
1648
|
priceModel?: "subscription" | "free" | "private" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external" | undefined;
|
|
@@ -1651,7 +1652,6 @@ declare const schemas: {
|
|
|
1651
1652
|
sourceRef?: string | undefined;
|
|
1652
1653
|
featured?: boolean | undefined;
|
|
1653
1654
|
listingEnabled?: boolean | undefined;
|
|
1654
|
-
groupIds?: string[] | undefined;
|
|
1655
1655
|
publisherVerified?: boolean | undefined;
|
|
1656
1656
|
relatedBooks?: string[] | undefined;
|
|
1657
1657
|
relatedKnowledge?: string[] | undefined;
|
|
@@ -2783,6 +2783,7 @@ declare const schemas: {
|
|
|
2783
2783
|
id: z.ZodString;
|
|
2784
2784
|
projectId: z.ZodString;
|
|
2785
2785
|
title: z.ZodString;
|
|
2786
|
+
groupIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
2786
2787
|
request: z.ZodString;
|
|
2787
2788
|
summary: z.ZodOptional<z.ZodString>;
|
|
2788
2789
|
status: z.ZodEnum<["draft", "discussing", "ready", "decided", "withdrawn"]>;
|
|
@@ -3655,6 +3656,7 @@ declare const schemas: {
|
|
|
3655
3656
|
title: string;
|
|
3656
3657
|
request: string;
|
|
3657
3658
|
projectId: string;
|
|
3659
|
+
groupIds?: string[] | undefined;
|
|
3658
3660
|
summary?: string | undefined;
|
|
3659
3661
|
evidenceRefs?: {
|
|
3660
3662
|
id: string;
|
|
@@ -3751,6 +3753,7 @@ declare const schemas: {
|
|
|
3751
3753
|
title: string;
|
|
3752
3754
|
request: string;
|
|
3753
3755
|
projectId: string;
|
|
3756
|
+
groupIds?: string[] | undefined;
|
|
3754
3757
|
summary?: string | undefined;
|
|
3755
3758
|
evidenceRefs?: {
|
|
3756
3759
|
id: string;
|
|
@@ -3847,6 +3850,7 @@ declare const schemas: {
|
|
|
3847
3850
|
title: string;
|
|
3848
3851
|
request: string;
|
|
3849
3852
|
projectId: string;
|
|
3853
|
+
groupIds?: string[] | undefined;
|
|
3850
3854
|
summary?: string | undefined;
|
|
3851
3855
|
evidenceRefs?: {
|
|
3852
3856
|
id: string;
|
|
@@ -3943,6 +3947,7 @@ declare const schemas: {
|
|
|
3943
3947
|
title: string;
|
|
3944
3948
|
request: string;
|
|
3945
3949
|
projectId: string;
|
|
3950
|
+
groupIds?: string[] | undefined;
|
|
3946
3951
|
summary?: string | undefined;
|
|
3947
3952
|
evidenceRefs?: {
|
|
3948
3953
|
id: string;
|
|
@@ -5148,8 +5153,8 @@ declare const schemas: {
|
|
|
5148
5153
|
endLine?: number | undefined;
|
|
5149
5154
|
};
|
|
5150
5155
|
description?: string | undefined;
|
|
5151
|
-
summary?: string | undefined;
|
|
5152
5156
|
groupIds?: string[] | undefined;
|
|
5157
|
+
summary?: string | undefined;
|
|
5153
5158
|
order?: number | undefined;
|
|
5154
5159
|
relatedBookIds?: string[] | undefined;
|
|
5155
5160
|
parentId?: string | undefined;
|
|
@@ -5210,8 +5215,8 @@ declare const schemas: {
|
|
|
5210
5215
|
endLine?: number | undefined;
|
|
5211
5216
|
};
|
|
5212
5217
|
description?: string | undefined;
|
|
5213
|
-
summary?: string | undefined;
|
|
5214
5218
|
groupIds?: string[] | undefined;
|
|
5219
|
+
summary?: string | undefined;
|
|
5215
5220
|
order?: number | undefined;
|
|
5216
5221
|
relatedBookIds?: string[] | undefined;
|
|
5217
5222
|
parentId?: string | undefined;
|
|
@@ -5285,6 +5290,7 @@ declare const schemas: {
|
|
|
5285
5290
|
id: z.ZodString;
|
|
5286
5291
|
name: z.ZodString;
|
|
5287
5292
|
agentClass: z.ZodString;
|
|
5293
|
+
groupIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
5288
5294
|
purpose: z.ZodString;
|
|
5289
5295
|
responsibilities: z.ZodArray<z.ZodString, "many">;
|
|
5290
5296
|
capabilities: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
@@ -6478,6 +6484,7 @@ declare const schemas: {
|
|
|
6478
6484
|
parameters?: Record<string, unknown> | undefined;
|
|
6479
6485
|
} | undefined;
|
|
6480
6486
|
};
|
|
6487
|
+
groupIds?: string[] | undefined;
|
|
6481
6488
|
}, {
|
|
6482
6489
|
id: string;
|
|
6483
6490
|
name: string;
|
|
@@ -6611,6 +6618,7 @@ declare const schemas: {
|
|
|
6611
6618
|
parameters?: Record<string, unknown> | undefined;
|
|
6612
6619
|
} | undefined;
|
|
6613
6620
|
};
|
|
6621
|
+
groupIds?: string[] | undefined;
|
|
6614
6622
|
}>, {
|
|
6615
6623
|
id: string;
|
|
6616
6624
|
name: string;
|
|
@@ -6744,6 +6752,7 @@ declare const schemas: {
|
|
|
6744
6752
|
parameters?: Record<string, unknown> | undefined;
|
|
6745
6753
|
} | undefined;
|
|
6746
6754
|
};
|
|
6755
|
+
groupIds?: string[] | undefined;
|
|
6747
6756
|
}, {
|
|
6748
6757
|
id: string;
|
|
6749
6758
|
name: string;
|
|
@@ -6877,6 +6886,7 @@ declare const schemas: {
|
|
|
6877
6886
|
parameters?: Record<string, unknown> | undefined;
|
|
6878
6887
|
} | undefined;
|
|
6879
6888
|
};
|
|
6889
|
+
groupIds?: string[] | undefined;
|
|
6880
6890
|
}>;
|
|
6881
6891
|
discussion: z.ZodObject<{
|
|
6882
6892
|
schemaVersion: z.ZodLiteral<"treeseed.discussion/v1">;
|
|
@@ -6983,9 +6993,9 @@ declare const schemas: {
|
|
|
6983
6993
|
endLine?: number | undefined;
|
|
6984
6994
|
};
|
|
6985
6995
|
participantClasses: string[];
|
|
6996
|
+
groupIds?: string[] | undefined;
|
|
6986
6997
|
updatedAt?: string | undefined;
|
|
6987
6998
|
visibility?: "project" | "team" | "public" | "authenticated" | "admin" | undefined;
|
|
6988
|
-
groupIds?: string[] | undefined;
|
|
6989
6999
|
topic?: string | undefined;
|
|
6990
7000
|
participantIds?: string[] | undefined;
|
|
6991
7001
|
agentIds?: string[] | undefined;
|
|
@@ -7013,9 +7023,9 @@ declare const schemas: {
|
|
|
7013
7023
|
endLine?: number | undefined;
|
|
7014
7024
|
};
|
|
7015
7025
|
participantClasses: string[];
|
|
7026
|
+
groupIds?: string[] | undefined;
|
|
7016
7027
|
updatedAt?: string | undefined;
|
|
7017
7028
|
visibility?: "project" | "team" | "public" | "authenticated" | "admin" | undefined;
|
|
7018
|
-
groupIds?: string[] | undefined;
|
|
7019
7029
|
topic?: string | undefined;
|
|
7020
7030
|
participantIds?: string[] | undefined;
|
|
7021
7031
|
agentIds?: string[] | undefined;
|
|
@@ -7694,6 +7704,7 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
7694
7704
|
parameters?: Record<string, unknown> | undefined;
|
|
7695
7705
|
} | undefined;
|
|
7696
7706
|
};
|
|
7707
|
+
groupIds?: string[] | undefined;
|
|
7697
7708
|
} | {
|
|
7698
7709
|
status: string;
|
|
7699
7710
|
title: string;
|
|
@@ -7768,6 +7779,7 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
7768
7779
|
audience: string[];
|
|
7769
7780
|
title: string;
|
|
7770
7781
|
description: string;
|
|
7782
|
+
groupIds: string[];
|
|
7771
7783
|
summary: string;
|
|
7772
7784
|
slug: string;
|
|
7773
7785
|
offer: {
|
|
@@ -7778,7 +7790,6 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
7778
7790
|
featured: boolean;
|
|
7779
7791
|
listingEnabled: boolean;
|
|
7780
7792
|
category: string;
|
|
7781
|
-
groupIds: string[];
|
|
7782
7793
|
publisher: {
|
|
7783
7794
|
id: string;
|
|
7784
7795
|
name: string;
|
|
@@ -7925,8 +7936,8 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
7925
7936
|
id: string;
|
|
7926
7937
|
title: string;
|
|
7927
7938
|
description: string;
|
|
7928
|
-
slug: string;
|
|
7929
7939
|
groupIds: string[];
|
|
7940
|
+
slug: string;
|
|
7930
7941
|
parentTopicId?: string | undefined;
|
|
7931
7942
|
} | {
|
|
7932
7943
|
status: string;
|
|
@@ -7973,6 +7984,7 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
7973
7984
|
title: string;
|
|
7974
7985
|
request: string;
|
|
7975
7986
|
projectId: string;
|
|
7987
|
+
groupIds?: string[] | undefined;
|
|
7976
7988
|
summary?: string | undefined;
|
|
7977
7989
|
evidenceRefs?: {
|
|
7978
7990
|
id: string;
|
|
@@ -8316,8 +8328,8 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
8316
8328
|
endLine?: number | undefined;
|
|
8317
8329
|
};
|
|
8318
8330
|
description?: string | undefined;
|
|
8319
|
-
summary?: string | undefined;
|
|
8320
8331
|
groupIds?: string[] | undefined;
|
|
8332
|
+
summary?: string | undefined;
|
|
8321
8333
|
order?: number | undefined;
|
|
8322
8334
|
relatedBookIds?: string[] | undefined;
|
|
8323
8335
|
parentId?: string | undefined;
|
|
@@ -8387,9 +8399,9 @@ export declare function validateContentFrontmatter(model: PortableContentModel,
|
|
|
8387
8399
|
endLine?: number | undefined;
|
|
8388
8400
|
};
|
|
8389
8401
|
participantClasses: string[];
|
|
8402
|
+
groupIds?: string[] | undefined;
|
|
8390
8403
|
updatedAt?: string | undefined;
|
|
8391
8404
|
visibility?: "project" | "team" | "public" | "authenticated" | "admin" | undefined;
|
|
8392
|
-
groupIds?: string[] | undefined;
|
|
8393
8405
|
topic?: string | undefined;
|
|
8394
8406
|
participantIds?: string[] | undefined;
|
|
8395
8407
|
agentIds?: string[] | undefined;
|
|
@@ -8506,6 +8518,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
8506
8518
|
id: z.ZodString;
|
|
8507
8519
|
name: z.ZodString;
|
|
8508
8520
|
agentClass: z.ZodString;
|
|
8521
|
+
groupIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
8509
8522
|
purpose: z.ZodString;
|
|
8510
8523
|
responsibilities: z.ZodArray<z.ZodString, "many">;
|
|
8511
8524
|
capabilities: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
@@ -9699,6 +9712,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
9699
9712
|
parameters?: Record<string, unknown> | undefined;
|
|
9700
9713
|
} | undefined;
|
|
9701
9714
|
};
|
|
9715
|
+
groupIds?: string[] | undefined;
|
|
9702
9716
|
}, {
|
|
9703
9717
|
id: string;
|
|
9704
9718
|
name: string;
|
|
@@ -9832,6 +9846,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
9832
9846
|
parameters?: Record<string, unknown> | undefined;
|
|
9833
9847
|
} | undefined;
|
|
9834
9848
|
};
|
|
9849
|
+
groupIds?: string[] | undefined;
|
|
9835
9850
|
}>, {
|
|
9836
9851
|
id: string;
|
|
9837
9852
|
name: string;
|
|
@@ -9965,6 +9980,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
9965
9980
|
parameters?: Record<string, unknown> | undefined;
|
|
9966
9981
|
} | undefined;
|
|
9967
9982
|
};
|
|
9983
|
+
groupIds?: string[] | undefined;
|
|
9968
9984
|
}, {
|
|
9969
9985
|
id: string;
|
|
9970
9986
|
name: string;
|
|
@@ -10098,6 +10114,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
10098
10114
|
parameters?: Record<string, unknown> | undefined;
|
|
10099
10115
|
} | undefined;
|
|
10100
10116
|
};
|
|
10117
|
+
groupIds?: string[] | undefined;
|
|
10101
10118
|
}> | z.ZodObject<{
|
|
10102
10119
|
title: z.ZodString;
|
|
10103
10120
|
slug: z.ZodString;
|
|
@@ -10506,6 +10523,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
10506
10523
|
audience: string[];
|
|
10507
10524
|
title: string;
|
|
10508
10525
|
description: string;
|
|
10526
|
+
groupIds: string[];
|
|
10509
10527
|
summary: string;
|
|
10510
10528
|
slug: string;
|
|
10511
10529
|
offer: {
|
|
@@ -10516,7 +10534,6 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
10516
10534
|
featured: boolean;
|
|
10517
10535
|
listingEnabled: boolean;
|
|
10518
10536
|
category: string;
|
|
10519
|
-
groupIds: string[];
|
|
10520
10537
|
publisher: {
|
|
10521
10538
|
id: string;
|
|
10522
10539
|
name: string;
|
|
@@ -10587,6 +10604,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
10587
10604
|
supportsReconcile?: boolean | undefined;
|
|
10588
10605
|
};
|
|
10589
10606
|
audience?: string[] | undefined;
|
|
10607
|
+
groupIds?: string[] | undefined;
|
|
10590
10608
|
teamId?: string | undefined;
|
|
10591
10609
|
offer?: {
|
|
10592
10610
|
priceModel?: "subscription" | "free" | "private" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external" | undefined;
|
|
@@ -10596,7 +10614,6 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
10596
10614
|
sourceRef?: string | undefined;
|
|
10597
10615
|
featured?: boolean | undefined;
|
|
10598
10616
|
listingEnabled?: boolean | undefined;
|
|
10599
|
-
groupIds?: string[] | undefined;
|
|
10600
10617
|
publisherVerified?: boolean | undefined;
|
|
10601
10618
|
relatedBooks?: string[] | undefined;
|
|
10602
10619
|
relatedKnowledge?: string[] | undefined;
|
|
@@ -10791,12 +10808,12 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
10791
10808
|
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
10792
10809
|
agent: string;
|
|
10793
10810
|
id: string;
|
|
10811
|
+
groupIds?: string[] | undefined;
|
|
10794
10812
|
budget?: {
|
|
10795
10813
|
maxTokens: number;
|
|
10796
10814
|
maxContextItems: number;
|
|
10797
10815
|
} | undefined;
|
|
10798
10816
|
fixture?: string | undefined;
|
|
10799
|
-
groupIds?: string[] | undefined;
|
|
10800
10817
|
trigger?: Record<string, unknown> | undefined;
|
|
10801
10818
|
expect?: z.objectInputType<{
|
|
10802
10819
|
semanticArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -10895,12 +10912,12 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
10895
10912
|
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
10896
10913
|
agent: string;
|
|
10897
10914
|
id: string;
|
|
10915
|
+
groupIds?: string[] | undefined;
|
|
10898
10916
|
budget?: {
|
|
10899
10917
|
maxTokens: number;
|
|
10900
10918
|
maxContextItems: number;
|
|
10901
10919
|
} | undefined;
|
|
10902
10920
|
fixture?: string | undefined;
|
|
10903
|
-
groupIds?: string[] | undefined;
|
|
10904
10921
|
trigger?: Record<string, unknown> | undefined;
|
|
10905
10922
|
expect?: z.objectInputType<{
|
|
10906
10923
|
semanticArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -11283,15 +11300,15 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
11283
11300
|
id: string;
|
|
11284
11301
|
title: string;
|
|
11285
11302
|
description: string;
|
|
11286
|
-
slug: string;
|
|
11287
11303
|
groupIds: string[];
|
|
11304
|
+
slug: string;
|
|
11288
11305
|
parentTopicId?: string | undefined;
|
|
11289
11306
|
}, {
|
|
11290
11307
|
id: string;
|
|
11291
11308
|
title: string;
|
|
11292
11309
|
description: string;
|
|
11293
|
-
slug: string;
|
|
11294
11310
|
groupIds: string[];
|
|
11311
|
+
slug: string;
|
|
11295
11312
|
status?: "active" | "archived" | undefined;
|
|
11296
11313
|
parentTopicId?: string | undefined;
|
|
11297
11314
|
}> | z.ZodObject<{
|
|
@@ -11447,6 +11464,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
11447
11464
|
id: z.ZodString;
|
|
11448
11465
|
projectId: z.ZodString;
|
|
11449
11466
|
title: z.ZodString;
|
|
11467
|
+
groupIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
11450
11468
|
request: z.ZodString;
|
|
11451
11469
|
summary: z.ZodOptional<z.ZodString>;
|
|
11452
11470
|
status: z.ZodEnum<["draft", "discussing", "ready", "decided", "withdrawn"]>;
|
|
@@ -12319,6 +12337,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
12319
12337
|
title: string;
|
|
12320
12338
|
request: string;
|
|
12321
12339
|
projectId: string;
|
|
12340
|
+
groupIds?: string[] | undefined;
|
|
12322
12341
|
summary?: string | undefined;
|
|
12323
12342
|
evidenceRefs?: {
|
|
12324
12343
|
id: string;
|
|
@@ -12415,6 +12434,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
12415
12434
|
title: string;
|
|
12416
12435
|
request: string;
|
|
12417
12436
|
projectId: string;
|
|
12437
|
+
groupIds?: string[] | undefined;
|
|
12418
12438
|
summary?: string | undefined;
|
|
12419
12439
|
evidenceRefs?: {
|
|
12420
12440
|
id: string;
|
|
@@ -12511,6 +12531,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
12511
12531
|
title: string;
|
|
12512
12532
|
request: string;
|
|
12513
12533
|
projectId: string;
|
|
12534
|
+
groupIds?: string[] | undefined;
|
|
12514
12535
|
summary?: string | undefined;
|
|
12515
12536
|
evidenceRefs?: {
|
|
12516
12537
|
id: string;
|
|
@@ -12607,6 +12628,7 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
12607
12628
|
title: string;
|
|
12608
12629
|
request: string;
|
|
12609
12630
|
projectId: string;
|
|
12631
|
+
groupIds?: string[] | undefined;
|
|
12610
12632
|
summary?: string | undefined;
|
|
12611
12633
|
evidenceRefs?: {
|
|
12612
12634
|
id: string;
|
|
@@ -14926,8 +14948,8 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
14926
14948
|
endLine?: number | undefined;
|
|
14927
14949
|
};
|
|
14928
14950
|
description?: string | undefined;
|
|
14929
|
-
summary?: string | undefined;
|
|
14930
14951
|
groupIds?: string[] | undefined;
|
|
14952
|
+
summary?: string | undefined;
|
|
14931
14953
|
order?: number | undefined;
|
|
14932
14954
|
relatedBookIds?: string[] | undefined;
|
|
14933
14955
|
parentId?: string | undefined;
|
|
@@ -14988,8 +15010,8 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
14988
15010
|
endLine?: number | undefined;
|
|
14989
15011
|
};
|
|
14990
15012
|
description?: string | undefined;
|
|
14991
|
-
summary?: string | undefined;
|
|
14992
15013
|
groupIds?: string[] | undefined;
|
|
15014
|
+
summary?: string | undefined;
|
|
14993
15015
|
order?: number | undefined;
|
|
14994
15016
|
relatedBookIds?: string[] | undefined;
|
|
14995
15017
|
parentId?: string | undefined;
|
|
@@ -15161,9 +15183,9 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
15161
15183
|
endLine?: number | undefined;
|
|
15162
15184
|
};
|
|
15163
15185
|
participantClasses: string[];
|
|
15186
|
+
groupIds?: string[] | undefined;
|
|
15164
15187
|
updatedAt?: string | undefined;
|
|
15165
15188
|
visibility?: "project" | "team" | "public" | "authenticated" | "admin" | undefined;
|
|
15166
|
-
groupIds?: string[] | undefined;
|
|
15167
15189
|
topic?: string | undefined;
|
|
15168
15190
|
participantIds?: string[] | undefined;
|
|
15169
15191
|
agentIds?: string[] | undefined;
|
|
@@ -15191,9 +15213,9 @@ export declare function describeContentFrontmatterSchema(model: PortableContentM
|
|
|
15191
15213
|
endLine?: number | undefined;
|
|
15192
15214
|
};
|
|
15193
15215
|
participantClasses: string[];
|
|
15216
|
+
groupIds?: string[] | undefined;
|
|
15194
15217
|
updatedAt?: string | undefined;
|
|
15195
15218
|
visibility?: "project" | "team" | "public" | "authenticated" | "admin" | undefined;
|
|
15196
|
-
groupIds?: string[] | undefined;
|
|
15197
15219
|
topic?: string | undefined;
|
|
15198
15220
|
participantIds?: string[] | undefined;
|
|
15199
15221
|
agentIds?: string[] | undefined;
|
|
@@ -126,6 +126,7 @@ const proposalSchema = conditionalFields(z.object({
|
|
|
126
126
|
id: identifier,
|
|
127
127
|
projectId: identifier,
|
|
128
128
|
title: nonEmpty,
|
|
129
|
+
groupIds: unique(identifiers).optional(),
|
|
129
130
|
request: nonEmpty,
|
|
130
131
|
summary: nonEmpty.optional(),
|
|
131
132
|
status: z.enum(["draft", "discussing", "ready", "decided", "withdrawn"]),
|
|
@@ -153,6 +153,7 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
153
153
|
parameters?: Record<string, unknown> | undefined;
|
|
154
154
|
} | undefined;
|
|
155
155
|
};
|
|
156
|
+
groupIds?: string[] | undefined;
|
|
156
157
|
} | {
|
|
157
158
|
status: string;
|
|
158
159
|
title: string;
|
|
@@ -227,6 +228,7 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
227
228
|
audience: string[];
|
|
228
229
|
title: string;
|
|
229
230
|
description: string;
|
|
231
|
+
groupIds: string[];
|
|
230
232
|
summary: string;
|
|
231
233
|
slug: string;
|
|
232
234
|
offer: {
|
|
@@ -237,7 +239,6 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
237
239
|
featured: boolean;
|
|
238
240
|
listingEnabled: boolean;
|
|
239
241
|
category: string;
|
|
240
|
-
groupIds: string[];
|
|
241
242
|
publisher: {
|
|
242
243
|
id: string;
|
|
243
244
|
name: string;
|
|
@@ -384,8 +385,8 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
384
385
|
id: string;
|
|
385
386
|
title: string;
|
|
386
387
|
description: string;
|
|
387
|
-
slug: string;
|
|
388
388
|
groupIds: string[];
|
|
389
|
+
slug: string;
|
|
389
390
|
parentTopicId?: string | undefined;
|
|
390
391
|
} | {
|
|
391
392
|
status: string;
|
|
@@ -432,6 +433,7 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
432
433
|
title: string;
|
|
433
434
|
request: string;
|
|
434
435
|
projectId: string;
|
|
436
|
+
groupIds?: string[] | undefined;
|
|
435
437
|
summary?: string | undefined;
|
|
436
438
|
evidenceRefs?: {
|
|
437
439
|
id: string;
|
|
@@ -775,8 +777,8 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
775
777
|
endLine?: number | undefined;
|
|
776
778
|
};
|
|
777
779
|
description?: string | undefined;
|
|
778
|
-
summary?: string | undefined;
|
|
779
780
|
groupIds?: string[] | undefined;
|
|
781
|
+
summary?: string | undefined;
|
|
780
782
|
order?: number | undefined;
|
|
781
783
|
relatedBookIds?: string[] | undefined;
|
|
782
784
|
parentId?: string | undefined;
|
|
@@ -846,9 +848,9 @@ export declare function validatePortableContentData(model: string, value: unknow
|
|
|
846
848
|
endLine?: number | undefined;
|
|
847
849
|
};
|
|
848
850
|
participantClasses: string[];
|
|
851
|
+
groupIds?: string[] | undefined;
|
|
849
852
|
updatedAt?: string | undefined;
|
|
850
853
|
visibility?: "project" | "team" | "public" | "authenticated" | "admin" | undefined;
|
|
851
|
-
groupIds?: string[] | undefined;
|
|
852
854
|
topic?: string | undefined;
|
|
853
855
|
participantIds?: string[] | undefined;
|
|
854
856
|
agentIds?: string[] | undefined;
|
|
@@ -5,9 +5,8 @@ const WORKDAY_SELECTION_INPUTS = [
|
|
|
5
5
|
{ target: "body", field: "allocation.planningTurnMaximumSeconds", source: "option", name: "planningTurnMaximumSeconds", transform: "integer" },
|
|
6
6
|
{ target: "body", field: "allocation.projectPercentages", source: "option", name: "projectPercentages", transform: "json" },
|
|
7
7
|
{ target: "body", field: "allocation.agentClassPercentages", source: "option", name: "agentClassPercentages", transform: "json" },
|
|
8
|
-
{ target: "body", field: "
|
|
9
|
-
{ target: "body", field: "agentSelection.activityTypes", source: "option", name: "activity", transform: "csv" }
|
|
10
|
-
{ target: "body", field: "agentSelection.classSlugs", source: "option", name: "class", transform: "csv" }
|
|
8
|
+
{ target: "body", field: "groupIds", source: "option", name: "group", transform: "csv" },
|
|
9
|
+
{ target: "body", field: "agentSelection.activityTypes", source: "option", name: "activity", transform: "csv" }
|
|
11
10
|
];
|
|
12
11
|
const WORKDAY_PLAN_OPTIONS = [
|
|
13
12
|
{ name: "--reporting-agent", description: "Closeout Reporter identity; required when several are eligible.", type: "string" },
|
|
@@ -22,9 +21,8 @@ const WORKDAY_PLAN_OPTIONS = [
|
|
|
22
21
|
{ name: "--proposal", description: "Governed proposal id for cooperative planning; repeat or comma-separate.", type: "string[]" },
|
|
23
22
|
{ name: "--decision", description: "Accepted decision id; repeat or comma-separate. The API derives and verifies acting authority.", type: "string[]" },
|
|
24
23
|
{ name: "--continue-from", description: "Settled workday whose exact accepted results and review history should continue. Omit for a fresh simulation.", type: "string" },
|
|
25
|
-
{ name: "--
|
|
26
|
-
{ name: "--activity", description: "Planning activity: planning, estimating, reviewing, reporting, or chat; repeat or comma-separate.", type: "string[]" }
|
|
27
|
-
{ name: "--class", description: "Planning class slug; repeat or comma-separate. Acting remains governed by accepted decisions.", type: "string[]" }
|
|
24
|
+
{ name: "--group", description: "Shared proposal group; participants come from governed subscriptions. Repeat or comma-separate.", type: "string[]" },
|
|
25
|
+
{ name: "--activity", description: "Planning activity: planning, estimating, reviewing, reporting, or chat; repeat or comma-separate.", type: "string[]" }
|
|
28
26
|
];
|
|
29
27
|
export {
|
|
30
28
|
WORKDAY_PLAN_OPTIONS,
|
|
@@ -14,6 +14,7 @@ export declare const workdayIntentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
14
14
|
objectiveFilters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15
15
|
proposalIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
16
16
|
decisionIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
17
|
+
groupIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
17
18
|
reportingAgentId: z.ZodOptional<z.ZodString>;
|
|
18
19
|
continueFromWorkdayId: z.ZodOptional<z.ZodString>;
|
|
19
20
|
allocation: z.ZodOptional<z.ZodObject<{
|
|
@@ -36,22 +37,13 @@ export declare const workdayIntentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
36
37
|
agentClassPercentages?: Record<string, Record<string, number>> | undefined;
|
|
37
38
|
}>>;
|
|
38
39
|
agentSelection: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
39
|
-
agentSlugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40
|
-
classIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
41
|
-
classSlugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
42
40
|
activityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["planning", "estimating", "reviewing", "reporting", "chat"]>, "many">>;
|
|
43
41
|
mode: z.ZodOptional<z.ZodLiteral<"intersection">>;
|
|
44
42
|
}, "strict", z.ZodTypeAny, {
|
|
45
43
|
mode?: "intersection" | undefined;
|
|
46
|
-
classIds?: string[] | undefined;
|
|
47
|
-
classSlugs?: string[] | undefined;
|
|
48
|
-
agentSlugs?: string[] | undefined;
|
|
49
44
|
activityTypes?: ("planning" | "estimating" | "reviewing" | "reporting" | "chat")[] | undefined;
|
|
50
45
|
}, {
|
|
51
46
|
mode?: "intersection" | undefined;
|
|
52
|
-
classIds?: string[] | undefined;
|
|
53
|
-
classSlugs?: string[] | undefined;
|
|
54
|
-
agentSlugs?: string[] | undefined;
|
|
55
47
|
activityTypes?: ("planning" | "estimating" | "reviewing" | "reporting" | "chat")[] | undefined;
|
|
56
48
|
}>, {
|
|
57
49
|
[x: string]: any;
|
|
@@ -73,6 +65,7 @@ export declare const workdayIntentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
73
65
|
teamId: string;
|
|
74
66
|
profileId: string;
|
|
75
67
|
startsAt: string;
|
|
68
|
+
groupIds?: string[] | undefined;
|
|
76
69
|
durationSeconds?: number | undefined;
|
|
77
70
|
projects?: any;
|
|
78
71
|
executionMode?: "simulation" | "production" | undefined;
|
|
@@ -102,6 +95,7 @@ export declare const workdayIntentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
102
95
|
teamId: string;
|
|
103
96
|
profileId: string;
|
|
104
97
|
startsAt: string;
|
|
98
|
+
groupIds?: string[] | undefined;
|
|
105
99
|
durationSeconds?: number | undefined;
|
|
106
100
|
projects?: any;
|
|
107
101
|
executionMode?: "simulation" | "production" | undefined;
|
|
@@ -131,6 +125,7 @@ export declare const workdayIntentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
131
125
|
teamId: string;
|
|
132
126
|
profileId: string;
|
|
133
127
|
startsAt: string;
|
|
128
|
+
groupIds?: string[] | undefined;
|
|
134
129
|
durationSeconds?: number | undefined;
|
|
135
130
|
projects?: any;
|
|
136
131
|
executionMode?: "simulation" | "production" | undefined;
|
|
@@ -160,6 +155,7 @@ export declare const workdayIntentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
160
155
|
teamId: string;
|
|
161
156
|
profileId: string;
|
|
162
157
|
startsAt: string;
|
|
158
|
+
groupIds?: string[] | undefined;
|
|
163
159
|
durationSeconds?: number | undefined;
|
|
164
160
|
projects?: any;
|
|
165
161
|
executionMode?: "simulation" | "production" | undefined;
|
|
@@ -202,14 +198,16 @@ export interface WorkdayIntent {
|
|
|
202
198
|
planningOnly?: boolean;
|
|
203
199
|
/** Selects exact governed proposals for cooperative planning and estimating. */
|
|
204
200
|
proposalIds?: string[];
|
|
201
|
+
/** Shared proposal groups; membership, never named-agent selection, supplies participants. */
|
|
202
|
+
groupIds?: string[];
|
|
205
203
|
/** Selects accepted decisions for API-derived acting work; it does not grant acting authority. */
|
|
206
204
|
decisionIds?: string[];
|
|
207
205
|
/** Selects one configured closeout agent; the API resolves its frozen reporting profile. */
|
|
208
206
|
reportingAgentId?: string;
|
|
209
207
|
/** Continue exact accepted work from a settled workday; omission starts a fresh simulation. */
|
|
210
208
|
continueFromWorkdayId?: string;
|
|
211
|
-
/**
|
|
212
|
-
agentSelection?: Partial<WorkdayAgentSelection
|
|
209
|
+
/** Selects activity phases without excluding group participants by identity or class. */
|
|
210
|
+
agentSelection?: Partial<Pick<WorkdayAgentSelection, 'activityTypes' | 'mode'>>;
|
|
213
211
|
/** High-level overrides of the canonical workday allocation policy. */
|
|
214
212
|
allocation?: Partial<Pick<import('../agent-capacity/contracts/capacity/workdays/workday-allocation.js').WorkdayPolicy, 'planningPercent' | 'allocationWeight' | 'planningTurnMaximumSeconds' | 'projectPercentages' | 'agentClassPercentages'>>;
|
|
215
213
|
operatorConstraints?: {
|
|
@@ -6,12 +6,9 @@ import { normalizeWorkdayAgentSelection } from "../agent-capacity/workday.js";
|
|
|
6
6
|
const identifier = leaseSchema.shape.id, timestamp = leaseSchema.shape.acquiredAt;
|
|
7
7
|
const selectedIdentities = uniqueArray(z.array(identifier).min(1).max(64));
|
|
8
8
|
const intentAgentSelectionSchema = alternativeProperties(z.object({
|
|
9
|
-
agentSlugs: z.array(identifier).min(1).optional(),
|
|
10
|
-
classIds: z.array(identifier).min(1).optional(),
|
|
11
|
-
classSlugs: z.array(identifier).min(1).optional(),
|
|
12
9
|
activityTypes: z.array(z.enum(["planning", "estimating", "reviewing", "reporting", "chat"])).min(1).optional(),
|
|
13
10
|
mode: z.literal("intersection").optional()
|
|
14
|
-
}).strict(), ["
|
|
11
|
+
}).strict(), ["activityTypes"]);
|
|
15
12
|
const workdayIntentFields = z.object({
|
|
16
13
|
schemaVersion: z.literal("treeseed.workday-intent/v1"),
|
|
17
14
|
teamId: identifier,
|
|
@@ -25,6 +22,7 @@ const workdayIntentFields = z.object({
|
|
|
25
22
|
objectiveFilters: z.array(identifier).optional(),
|
|
26
23
|
proposalIds: selectedIdentities.optional(),
|
|
27
24
|
decisionIds: selectedIdentities.optional(),
|
|
25
|
+
groupIds: selectedIdentities.optional(),
|
|
28
26
|
reportingAgentId: identifier.optional(),
|
|
29
27
|
continueFromWorkdayId: z.string().min(1).max(128).regex(/\S/u).optional(),
|
|
30
28
|
allocation: workdayAllocationOverridesSchema.optional(),
|
|
@@ -75,6 +73,7 @@ function validateWorkdayIntent(intent) {
|
|
|
75
73
|
objectiveFilters: "objective_selection_invalid",
|
|
76
74
|
proposalIds: "proposal_selection_invalid",
|
|
77
75
|
decisionIds: "decision_selection_invalid",
|
|
76
|
+
groupIds: "group_selection_invalid",
|
|
78
77
|
reportingAgentId: "reporting_agent_selection_invalid",
|
|
79
78
|
continueFromWorkdayId: "continuation_invalid",
|
|
80
79
|
agentSelection: "agent_selection_invalid",
|
|
@@ -705,7 +705,7 @@ verifiers:
|
|
|
705
705
|
kind: vitestCase
|
|
706
706
|
ownerPackage: "@treeseed/sdk"
|
|
707
707
|
testFile: tests/unit/operator-contracts/workday-lifecycle.test.ts
|
|
708
|
-
testName: "preserves omitted decisions and independent planning proposal
|
|
708
|
+
testName: "preserves omitted decisions and independent planning proposal group and allocation controls"
|
|
709
709
|
sdk.golden.architecture-intent-unit-4:
|
|
710
710
|
kind: vitestCase
|
|
711
711
|
ownerPackage: "@treeseed/sdk"
|
package/package.json
CHANGED
|
@@ -87,7 +87,7 @@ export async function verifySdkIntentRuntime(root:string){
|
|
|
87
87
|
await normalization.start();
|
|
88
88
|
const client=new sdk.ControlPlaneClient({profile:{serverId:'local',label:'Local',baseUrl:'http://127.0.0.1:'+address.port}});
|
|
89
89
|
const base={schemaVersion:'treeseed.workday-intent/v1',teamId:'team',profileId:'default',projects:['sdk'],startsAt:'2030-01-01T00:00:00Z',durationSeconds:600,
|
|
90
|
-
proposalIds:['proposal-original'],
|
|
90
|
+
proposalIds:['proposal-original'],groupIds:['ui-snapshot-admin-chart'],agentSelection:{activityTypes:['planning']},allocation:{planningPercent:20,allocationWeight:2}};
|
|
91
91
|
const ordered=['A','Z','a','a-1','a.1','a/1','a:1'];
|
|
92
92
|
const capture=async(expectation:string,action:()=>Promise<void>)=>{checks++;currentExpectation=expectation;try{await action();}catch(error){failures.push({expectation,observed:String(error)});}};
|
|
93
93
|
const observe=async(nested:boolean,intent:Record<string,unknown>,expected:Record<string,unknown>|null)=>{
|