@agent-plan/core 0.2.18 → 0.2.19-next.1
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/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/naming.d.ts +22 -0
- package/dist/naming.d.ts.map +1 -1
- package/dist/naming.js +36 -1
- package/dist/plan-store.d.ts +70 -5
- package/dist/plan-store.d.ts.map +1 -1
- package/dist/plan-store.js +406 -107
- package/dist/recap.d.ts +32 -0
- package/dist/recap.d.ts.map +1 -0
- package/dist/recap.js +105 -0
- package/dist/refs.d.ts +24 -0
- package/dist/refs.d.ts.map +1 -0
- package/dist/refs.js +42 -0
- package/dist/schema.d.ts +117 -27
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +13 -2
- package/package.json +3 -2
package/dist/schema.d.ts
CHANGED
|
@@ -442,6 +442,8 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
442
442
|
id: z.ZodString;
|
|
443
443
|
phaseId: z.ZodString;
|
|
444
444
|
number: z.ZodDefault<z.ZodNumber>;
|
|
445
|
+
shortId: z.ZodDefault<z.ZodString>;
|
|
446
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
445
447
|
shortName: z.ZodString;
|
|
446
448
|
title: z.ZodString;
|
|
447
449
|
status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
|
|
@@ -551,6 +553,8 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
551
553
|
acceptedAt: string;
|
|
552
554
|
}[];
|
|
553
555
|
phaseId: string;
|
|
556
|
+
shortId: string;
|
|
557
|
+
priority: number;
|
|
554
558
|
shortName: string;
|
|
555
559
|
statusLog: {
|
|
556
560
|
id: string;
|
|
@@ -596,6 +600,8 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
596
600
|
rationale?: string | undefined;
|
|
597
601
|
implementationNotes?: string | undefined;
|
|
598
602
|
}[] | undefined;
|
|
603
|
+
shortId?: string | undefined;
|
|
604
|
+
priority?: number | undefined;
|
|
599
605
|
statusLog?: {
|
|
600
606
|
id: string;
|
|
601
607
|
date: string;
|
|
@@ -644,6 +650,8 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
644
650
|
acceptedAt: string;
|
|
645
651
|
}[];
|
|
646
652
|
phaseId: string;
|
|
653
|
+
shortId: string;
|
|
654
|
+
priority: number;
|
|
647
655
|
shortName: string;
|
|
648
656
|
statusLog: {
|
|
649
657
|
id: string;
|
|
@@ -684,6 +692,8 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
684
692
|
rationale?: string | undefined;
|
|
685
693
|
implementationNotes?: string | undefined;
|
|
686
694
|
}[] | undefined;
|
|
695
|
+
shortId?: string | undefined;
|
|
696
|
+
priority?: number | undefined;
|
|
687
697
|
statusLog?: {
|
|
688
698
|
id: string;
|
|
689
699
|
date: string;
|
|
@@ -713,9 +723,10 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
713
723
|
id: z.ZodString;
|
|
714
724
|
featureId: z.ZodOptional<z.ZodString>;
|
|
715
725
|
number: z.ZodNumber;
|
|
726
|
+
shortId: z.ZodDefault<z.ZodString>;
|
|
727
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
716
728
|
slug: z.ZodString;
|
|
717
729
|
title: z.ZodString;
|
|
718
|
-
status: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
|
|
719
730
|
discussedAt: z.ZodDefault<z.ZodString>;
|
|
720
731
|
contextReady: z.ZodDefault<z.ZodBoolean>;
|
|
721
732
|
contextReadyReason: z.ZodDefault<z.ZodString>;
|
|
@@ -757,6 +768,8 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
757
768
|
id: z.ZodString;
|
|
758
769
|
phaseId: z.ZodString;
|
|
759
770
|
number: z.ZodDefault<z.ZodNumber>;
|
|
771
|
+
shortId: z.ZodDefault<z.ZodString>;
|
|
772
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
760
773
|
shortName: z.ZodString;
|
|
761
774
|
title: z.ZodString;
|
|
762
775
|
status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
|
|
@@ -866,6 +879,8 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
866
879
|
acceptedAt: string;
|
|
867
880
|
}[];
|
|
868
881
|
phaseId: string;
|
|
882
|
+
shortId: string;
|
|
883
|
+
priority: number;
|
|
869
884
|
shortName: string;
|
|
870
885
|
statusLog: {
|
|
871
886
|
id: string;
|
|
@@ -911,6 +926,8 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
911
926
|
rationale?: string | undefined;
|
|
912
927
|
implementationNotes?: string | undefined;
|
|
913
928
|
}[] | undefined;
|
|
929
|
+
shortId?: string | undefined;
|
|
930
|
+
priority?: number | undefined;
|
|
914
931
|
statusLog?: {
|
|
915
932
|
id: string;
|
|
916
933
|
date: string;
|
|
@@ -959,6 +976,8 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
959
976
|
acceptedAt: string;
|
|
960
977
|
}[];
|
|
961
978
|
phaseId: string;
|
|
979
|
+
shortId: string;
|
|
980
|
+
priority: number;
|
|
962
981
|
shortName: string;
|
|
963
982
|
statusLog: {
|
|
964
983
|
id: string;
|
|
@@ -999,6 +1018,8 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
999
1018
|
rationale?: string | undefined;
|
|
1000
1019
|
implementationNotes?: string | undefined;
|
|
1001
1020
|
}[] | undefined;
|
|
1021
|
+
shortId?: string | undefined;
|
|
1022
|
+
priority?: number | undefined;
|
|
1002
1023
|
statusLog?: {
|
|
1003
1024
|
id: string;
|
|
1004
1025
|
date: string;
|
|
@@ -1026,9 +1047,10 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1026
1047
|
}>, "many">>;
|
|
1027
1048
|
createdAt: z.ZodString;
|
|
1028
1049
|
updatedAt: z.ZodString;
|
|
1050
|
+
handoff: z.ZodDefault<z.ZodString>;
|
|
1051
|
+
handoffUpdatedAt: z.ZodDefault<z.ZodString>;
|
|
1029
1052
|
}, "strip", z.ZodTypeAny, {
|
|
1030
1053
|
number: number;
|
|
1031
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
|
|
1032
1054
|
dependencies: string[];
|
|
1033
1055
|
updatedAt: string;
|
|
1034
1056
|
notes: string;
|
|
@@ -1046,6 +1068,8 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1046
1068
|
implementationNotes: string;
|
|
1047
1069
|
acceptedAt: string;
|
|
1048
1070
|
}[];
|
|
1071
|
+
shortId: string;
|
|
1072
|
+
priority: number;
|
|
1049
1073
|
dependsOn: string[];
|
|
1050
1074
|
slug: string;
|
|
1051
1075
|
discussedAt: string;
|
|
@@ -1081,6 +1105,8 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1081
1105
|
acceptedAt: string;
|
|
1082
1106
|
}[];
|
|
1083
1107
|
phaseId: string;
|
|
1108
|
+
shortId: string;
|
|
1109
|
+
priority: number;
|
|
1084
1110
|
shortName: string;
|
|
1085
1111
|
statusLog: {
|
|
1086
1112
|
id: string;
|
|
@@ -1102,10 +1128,11 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1102
1128
|
startedAt: string;
|
|
1103
1129
|
completedAt: string;
|
|
1104
1130
|
}[];
|
|
1131
|
+
handoff: string;
|
|
1132
|
+
handoffUpdatedAt: string;
|
|
1105
1133
|
featureId?: string | undefined;
|
|
1106
1134
|
}, {
|
|
1107
1135
|
number: number;
|
|
1108
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
|
|
1109
1136
|
updatedAt: string;
|
|
1110
1137
|
id: string;
|
|
1111
1138
|
createdAt: string;
|
|
@@ -1124,6 +1151,8 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1124
1151
|
rationale?: string | undefined;
|
|
1125
1152
|
implementationNotes?: string | undefined;
|
|
1126
1153
|
}[] | undefined;
|
|
1154
|
+
shortId?: string | undefined;
|
|
1155
|
+
priority?: number | undefined;
|
|
1127
1156
|
dependsOn?: string[] | undefined;
|
|
1128
1157
|
featureId?: string | undefined;
|
|
1129
1158
|
discussedAt?: string | undefined;
|
|
@@ -1155,6 +1184,8 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1155
1184
|
rationale?: string | undefined;
|
|
1156
1185
|
implementationNotes?: string | undefined;
|
|
1157
1186
|
}[] | undefined;
|
|
1187
|
+
shortId?: string | undefined;
|
|
1188
|
+
priority?: number | undefined;
|
|
1158
1189
|
statusLog?: {
|
|
1159
1190
|
id: string;
|
|
1160
1191
|
date: string;
|
|
@@ -1180,13 +1211,16 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1180
1211
|
startedAt?: string | undefined;
|
|
1181
1212
|
completedAt?: string | undefined;
|
|
1182
1213
|
}[] | undefined;
|
|
1214
|
+
handoff?: string | undefined;
|
|
1215
|
+
handoffUpdatedAt?: string | undefined;
|
|
1183
1216
|
}>;
|
|
1184
1217
|
export declare const FeatureSchema: z.ZodObject<{
|
|
1185
1218
|
id: z.ZodString;
|
|
1186
1219
|
number: z.ZodDefault<z.ZodNumber>;
|
|
1220
|
+
shortId: z.ZodDefault<z.ZodString>;
|
|
1221
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
1187
1222
|
name: z.ZodString;
|
|
1188
1223
|
description: z.ZodDefault<z.ZodString>;
|
|
1189
|
-
status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
|
|
1190
1224
|
discussedAt: z.ZodDefault<z.ZodString>;
|
|
1191
1225
|
contextReady: z.ZodDefault<z.ZodBoolean>;
|
|
1192
1226
|
contextReadyReason: z.ZodDefault<z.ZodString>;
|
|
@@ -1222,7 +1256,6 @@ export declare const FeatureSchema: z.ZodObject<{
|
|
|
1222
1256
|
updatedAt: z.ZodString;
|
|
1223
1257
|
}, "strip", z.ZodTypeAny, {
|
|
1224
1258
|
number: number;
|
|
1225
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting";
|
|
1226
1259
|
name: string;
|
|
1227
1260
|
updatedAt: string;
|
|
1228
1261
|
id: string;
|
|
@@ -1236,6 +1269,8 @@ export declare const FeatureSchema: z.ZodObject<{
|
|
|
1236
1269
|
implementationNotes: string;
|
|
1237
1270
|
acceptedAt: string;
|
|
1238
1271
|
}[];
|
|
1272
|
+
shortId: string;
|
|
1273
|
+
priority: number;
|
|
1239
1274
|
dependsOn: string[];
|
|
1240
1275
|
discussedAt: string;
|
|
1241
1276
|
contextReady: boolean;
|
|
@@ -1246,7 +1281,6 @@ export declare const FeatureSchema: z.ZodObject<{
|
|
|
1246
1281
|
workRemaining: string;
|
|
1247
1282
|
phaseIds: string[];
|
|
1248
1283
|
}, {
|
|
1249
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting";
|
|
1250
1284
|
name: string;
|
|
1251
1285
|
updatedAt: string;
|
|
1252
1286
|
id: string;
|
|
@@ -1261,6 +1295,8 @@ export declare const FeatureSchema: z.ZodObject<{
|
|
|
1261
1295
|
rationale?: string | undefined;
|
|
1262
1296
|
implementationNotes?: string | undefined;
|
|
1263
1297
|
}[] | undefined;
|
|
1298
|
+
shortId?: string | undefined;
|
|
1299
|
+
priority?: number | undefined;
|
|
1264
1300
|
dependsOn?: string[] | undefined;
|
|
1265
1301
|
discussedAt?: string | undefined;
|
|
1266
1302
|
contextReady?: boolean | undefined;
|
|
@@ -1275,9 +1311,10 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
1275
1311
|
features: z.ZodArray<z.ZodObject<{
|
|
1276
1312
|
id: z.ZodString;
|
|
1277
1313
|
number: z.ZodDefault<z.ZodNumber>;
|
|
1314
|
+
shortId: z.ZodDefault<z.ZodString>;
|
|
1315
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
1278
1316
|
name: z.ZodString;
|
|
1279
1317
|
description: z.ZodDefault<z.ZodString>;
|
|
1280
|
-
status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
|
|
1281
1318
|
discussedAt: z.ZodDefault<z.ZodString>;
|
|
1282
1319
|
contextReady: z.ZodDefault<z.ZodBoolean>;
|
|
1283
1320
|
contextReadyReason: z.ZodDefault<z.ZodString>;
|
|
@@ -1313,7 +1350,6 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
1313
1350
|
updatedAt: z.ZodString;
|
|
1314
1351
|
}, "strip", z.ZodTypeAny, {
|
|
1315
1352
|
number: number;
|
|
1316
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting";
|
|
1317
1353
|
name: string;
|
|
1318
1354
|
updatedAt: string;
|
|
1319
1355
|
id: string;
|
|
@@ -1327,6 +1363,8 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
1327
1363
|
implementationNotes: string;
|
|
1328
1364
|
acceptedAt: string;
|
|
1329
1365
|
}[];
|
|
1366
|
+
shortId: string;
|
|
1367
|
+
priority: number;
|
|
1330
1368
|
dependsOn: string[];
|
|
1331
1369
|
discussedAt: string;
|
|
1332
1370
|
contextReady: boolean;
|
|
@@ -1337,7 +1375,6 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
1337
1375
|
workRemaining: string;
|
|
1338
1376
|
phaseIds: string[];
|
|
1339
1377
|
}, {
|
|
1340
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting";
|
|
1341
1378
|
name: string;
|
|
1342
1379
|
updatedAt: string;
|
|
1343
1380
|
id: string;
|
|
@@ -1352,6 +1389,8 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
1352
1389
|
rationale?: string | undefined;
|
|
1353
1390
|
implementationNotes?: string | undefined;
|
|
1354
1391
|
}[] | undefined;
|
|
1392
|
+
shortId?: string | undefined;
|
|
1393
|
+
priority?: number | undefined;
|
|
1355
1394
|
dependsOn?: string[] | undefined;
|
|
1356
1395
|
discussedAt?: string | undefined;
|
|
1357
1396
|
contextReady?: boolean | undefined;
|
|
@@ -1365,7 +1404,6 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
1365
1404
|
}, "strip", z.ZodTypeAny, {
|
|
1366
1405
|
features: {
|
|
1367
1406
|
number: number;
|
|
1368
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting";
|
|
1369
1407
|
name: string;
|
|
1370
1408
|
updatedAt: string;
|
|
1371
1409
|
id: string;
|
|
@@ -1379,6 +1417,8 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
1379
1417
|
implementationNotes: string;
|
|
1380
1418
|
acceptedAt: string;
|
|
1381
1419
|
}[];
|
|
1420
|
+
shortId: string;
|
|
1421
|
+
priority: number;
|
|
1382
1422
|
dependsOn: string[];
|
|
1383
1423
|
discussedAt: string;
|
|
1384
1424
|
contextReady: boolean;
|
|
@@ -1391,7 +1431,6 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
1391
1431
|
}[];
|
|
1392
1432
|
}, {
|
|
1393
1433
|
features: {
|
|
1394
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting";
|
|
1395
1434
|
name: string;
|
|
1396
1435
|
updatedAt: string;
|
|
1397
1436
|
id: string;
|
|
@@ -1406,6 +1445,8 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
1406
1445
|
rationale?: string | undefined;
|
|
1407
1446
|
implementationNotes?: string | undefined;
|
|
1408
1447
|
}[] | undefined;
|
|
1448
|
+
shortId?: string | undefined;
|
|
1449
|
+
priority?: number | undefined;
|
|
1409
1450
|
dependsOn?: string[] | undefined;
|
|
1410
1451
|
discussedAt?: string | undefined;
|
|
1411
1452
|
contextReady?: boolean | undefined;
|
|
@@ -1728,9 +1769,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
1728
1769
|
features: z.ZodArray<z.ZodObject<{
|
|
1729
1770
|
id: z.ZodString;
|
|
1730
1771
|
number: z.ZodDefault<z.ZodNumber>;
|
|
1772
|
+
shortId: z.ZodDefault<z.ZodString>;
|
|
1773
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
1731
1774
|
name: z.ZodString;
|
|
1732
1775
|
description: z.ZodDefault<z.ZodString>;
|
|
1733
|
-
status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
|
|
1734
1776
|
discussedAt: z.ZodDefault<z.ZodString>;
|
|
1735
1777
|
contextReady: z.ZodDefault<z.ZodBoolean>;
|
|
1736
1778
|
contextReadyReason: z.ZodDefault<z.ZodString>;
|
|
@@ -1766,7 +1808,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
1766
1808
|
updatedAt: z.ZodString;
|
|
1767
1809
|
}, "strip", z.ZodTypeAny, {
|
|
1768
1810
|
number: number;
|
|
1769
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting";
|
|
1770
1811
|
name: string;
|
|
1771
1812
|
updatedAt: string;
|
|
1772
1813
|
id: string;
|
|
@@ -1780,6 +1821,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
1780
1821
|
implementationNotes: string;
|
|
1781
1822
|
acceptedAt: string;
|
|
1782
1823
|
}[];
|
|
1824
|
+
shortId: string;
|
|
1825
|
+
priority: number;
|
|
1783
1826
|
dependsOn: string[];
|
|
1784
1827
|
discussedAt: string;
|
|
1785
1828
|
contextReady: boolean;
|
|
@@ -1790,7 +1833,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
1790
1833
|
workRemaining: string;
|
|
1791
1834
|
phaseIds: string[];
|
|
1792
1835
|
}, {
|
|
1793
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting";
|
|
1794
1836
|
name: string;
|
|
1795
1837
|
updatedAt: string;
|
|
1796
1838
|
id: string;
|
|
@@ -1805,6 +1847,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
1805
1847
|
rationale?: string | undefined;
|
|
1806
1848
|
implementationNotes?: string | undefined;
|
|
1807
1849
|
}[] | undefined;
|
|
1850
|
+
shortId?: string | undefined;
|
|
1851
|
+
priority?: number | undefined;
|
|
1808
1852
|
dependsOn?: string[] | undefined;
|
|
1809
1853
|
discussedAt?: string | undefined;
|
|
1810
1854
|
contextReady?: boolean | undefined;
|
|
@@ -1818,7 +1862,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
1818
1862
|
}, "strip", z.ZodTypeAny, {
|
|
1819
1863
|
features: {
|
|
1820
1864
|
number: number;
|
|
1821
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting";
|
|
1822
1865
|
name: string;
|
|
1823
1866
|
updatedAt: string;
|
|
1824
1867
|
id: string;
|
|
@@ -1832,6 +1875,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
1832
1875
|
implementationNotes: string;
|
|
1833
1876
|
acceptedAt: string;
|
|
1834
1877
|
}[];
|
|
1878
|
+
shortId: string;
|
|
1879
|
+
priority: number;
|
|
1835
1880
|
dependsOn: string[];
|
|
1836
1881
|
discussedAt: string;
|
|
1837
1882
|
contextReady: boolean;
|
|
@@ -1844,7 +1889,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
1844
1889
|
}[];
|
|
1845
1890
|
}, {
|
|
1846
1891
|
features: {
|
|
1847
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting";
|
|
1848
1892
|
name: string;
|
|
1849
1893
|
updatedAt: string;
|
|
1850
1894
|
id: string;
|
|
@@ -1859,6 +1903,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
1859
1903
|
rationale?: string | undefined;
|
|
1860
1904
|
implementationNotes?: string | undefined;
|
|
1861
1905
|
}[] | undefined;
|
|
1906
|
+
shortId?: string | undefined;
|
|
1907
|
+
priority?: number | undefined;
|
|
1862
1908
|
dependsOn?: string[] | undefined;
|
|
1863
1909
|
discussedAt?: string | undefined;
|
|
1864
1910
|
contextReady?: boolean | undefined;
|
|
@@ -1975,9 +2021,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
1975
2021
|
id: z.ZodString;
|
|
1976
2022
|
featureId: z.ZodOptional<z.ZodString>;
|
|
1977
2023
|
number: z.ZodNumber;
|
|
2024
|
+
shortId: z.ZodDefault<z.ZodString>;
|
|
2025
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
1978
2026
|
slug: z.ZodString;
|
|
1979
2027
|
title: z.ZodString;
|
|
1980
|
-
status: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
|
|
1981
2028
|
discussedAt: z.ZodDefault<z.ZodString>;
|
|
1982
2029
|
contextReady: z.ZodDefault<z.ZodBoolean>;
|
|
1983
2030
|
contextReadyReason: z.ZodDefault<z.ZodString>;
|
|
@@ -2019,6 +2066,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2019
2066
|
id: z.ZodString;
|
|
2020
2067
|
phaseId: z.ZodString;
|
|
2021
2068
|
number: z.ZodDefault<z.ZodNumber>;
|
|
2069
|
+
shortId: z.ZodDefault<z.ZodString>;
|
|
2070
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
2022
2071
|
shortName: z.ZodString;
|
|
2023
2072
|
title: z.ZodString;
|
|
2024
2073
|
status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
|
|
@@ -2128,6 +2177,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2128
2177
|
acceptedAt: string;
|
|
2129
2178
|
}[];
|
|
2130
2179
|
phaseId: string;
|
|
2180
|
+
shortId: string;
|
|
2181
|
+
priority: number;
|
|
2131
2182
|
shortName: string;
|
|
2132
2183
|
statusLog: {
|
|
2133
2184
|
id: string;
|
|
@@ -2173,6 +2224,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2173
2224
|
rationale?: string | undefined;
|
|
2174
2225
|
implementationNotes?: string | undefined;
|
|
2175
2226
|
}[] | undefined;
|
|
2227
|
+
shortId?: string | undefined;
|
|
2228
|
+
priority?: number | undefined;
|
|
2176
2229
|
statusLog?: {
|
|
2177
2230
|
id: string;
|
|
2178
2231
|
date: string;
|
|
@@ -2221,6 +2274,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2221
2274
|
acceptedAt: string;
|
|
2222
2275
|
}[];
|
|
2223
2276
|
phaseId: string;
|
|
2277
|
+
shortId: string;
|
|
2278
|
+
priority: number;
|
|
2224
2279
|
shortName: string;
|
|
2225
2280
|
statusLog: {
|
|
2226
2281
|
id: string;
|
|
@@ -2261,6 +2316,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2261
2316
|
rationale?: string | undefined;
|
|
2262
2317
|
implementationNotes?: string | undefined;
|
|
2263
2318
|
}[] | undefined;
|
|
2319
|
+
shortId?: string | undefined;
|
|
2320
|
+
priority?: number | undefined;
|
|
2264
2321
|
statusLog?: {
|
|
2265
2322
|
id: string;
|
|
2266
2323
|
date: string;
|
|
@@ -2288,9 +2345,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2288
2345
|
}>, "many">>;
|
|
2289
2346
|
createdAt: z.ZodString;
|
|
2290
2347
|
updatedAt: z.ZodString;
|
|
2348
|
+
handoff: z.ZodDefault<z.ZodString>;
|
|
2349
|
+
handoffUpdatedAt: z.ZodDefault<z.ZodString>;
|
|
2291
2350
|
}, "strip", z.ZodTypeAny, {
|
|
2292
2351
|
number: number;
|
|
2293
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
|
|
2294
2352
|
dependencies: string[];
|
|
2295
2353
|
updatedAt: string;
|
|
2296
2354
|
notes: string;
|
|
@@ -2308,6 +2366,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2308
2366
|
implementationNotes: string;
|
|
2309
2367
|
acceptedAt: string;
|
|
2310
2368
|
}[];
|
|
2369
|
+
shortId: string;
|
|
2370
|
+
priority: number;
|
|
2311
2371
|
dependsOn: string[];
|
|
2312
2372
|
slug: string;
|
|
2313
2373
|
discussedAt: string;
|
|
@@ -2343,6 +2403,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2343
2403
|
acceptedAt: string;
|
|
2344
2404
|
}[];
|
|
2345
2405
|
phaseId: string;
|
|
2406
|
+
shortId: string;
|
|
2407
|
+
priority: number;
|
|
2346
2408
|
shortName: string;
|
|
2347
2409
|
statusLog: {
|
|
2348
2410
|
id: string;
|
|
@@ -2364,10 +2426,11 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2364
2426
|
startedAt: string;
|
|
2365
2427
|
completedAt: string;
|
|
2366
2428
|
}[];
|
|
2429
|
+
handoff: string;
|
|
2430
|
+
handoffUpdatedAt: string;
|
|
2367
2431
|
featureId?: string | undefined;
|
|
2368
2432
|
}, {
|
|
2369
2433
|
number: number;
|
|
2370
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
|
|
2371
2434
|
updatedAt: string;
|
|
2372
2435
|
id: string;
|
|
2373
2436
|
createdAt: string;
|
|
@@ -2386,6 +2449,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2386
2449
|
rationale?: string | undefined;
|
|
2387
2450
|
implementationNotes?: string | undefined;
|
|
2388
2451
|
}[] | undefined;
|
|
2452
|
+
shortId?: string | undefined;
|
|
2453
|
+
priority?: number | undefined;
|
|
2389
2454
|
dependsOn?: string[] | undefined;
|
|
2390
2455
|
featureId?: string | undefined;
|
|
2391
2456
|
discussedAt?: string | undefined;
|
|
@@ -2417,6 +2482,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2417
2482
|
rationale?: string | undefined;
|
|
2418
2483
|
implementationNotes?: string | undefined;
|
|
2419
2484
|
}[] | undefined;
|
|
2485
|
+
shortId?: string | undefined;
|
|
2486
|
+
priority?: number | undefined;
|
|
2420
2487
|
statusLog?: {
|
|
2421
2488
|
id: string;
|
|
2422
2489
|
date: string;
|
|
@@ -2442,12 +2509,13 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2442
2509
|
startedAt?: string | undefined;
|
|
2443
2510
|
completedAt?: string | undefined;
|
|
2444
2511
|
}[] | undefined;
|
|
2512
|
+
handoff?: string | undefined;
|
|
2513
|
+
handoffUpdatedAt?: string | undefined;
|
|
2445
2514
|
}>, "many">;
|
|
2446
2515
|
}, "strip", z.ZodTypeAny, {
|
|
2447
2516
|
features: {
|
|
2448
2517
|
features: {
|
|
2449
2518
|
number: number;
|
|
2450
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting";
|
|
2451
2519
|
name: string;
|
|
2452
2520
|
updatedAt: string;
|
|
2453
2521
|
id: string;
|
|
@@ -2461,6 +2529,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2461
2529
|
implementationNotes: string;
|
|
2462
2530
|
acceptedAt: string;
|
|
2463
2531
|
}[];
|
|
2532
|
+
shortId: string;
|
|
2533
|
+
priority: number;
|
|
2464
2534
|
dependsOn: string[];
|
|
2465
2535
|
discussedAt: string;
|
|
2466
2536
|
contextReady: boolean;
|
|
@@ -2527,7 +2597,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2527
2597
|
};
|
|
2528
2598
|
phases: {
|
|
2529
2599
|
number: number;
|
|
2530
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
|
|
2531
2600
|
dependencies: string[];
|
|
2532
2601
|
updatedAt: string;
|
|
2533
2602
|
notes: string;
|
|
@@ -2545,6 +2614,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2545
2614
|
implementationNotes: string;
|
|
2546
2615
|
acceptedAt: string;
|
|
2547
2616
|
}[];
|
|
2617
|
+
shortId: string;
|
|
2618
|
+
priority: number;
|
|
2548
2619
|
dependsOn: string[];
|
|
2549
2620
|
slug: string;
|
|
2550
2621
|
discussedAt: string;
|
|
@@ -2580,6 +2651,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2580
2651
|
acceptedAt: string;
|
|
2581
2652
|
}[];
|
|
2582
2653
|
phaseId: string;
|
|
2654
|
+
shortId: string;
|
|
2655
|
+
priority: number;
|
|
2583
2656
|
shortName: string;
|
|
2584
2657
|
statusLog: {
|
|
2585
2658
|
id: string;
|
|
@@ -2601,12 +2674,13 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2601
2674
|
startedAt: string;
|
|
2602
2675
|
completedAt: string;
|
|
2603
2676
|
}[];
|
|
2677
|
+
handoff: string;
|
|
2678
|
+
handoffUpdatedAt: string;
|
|
2604
2679
|
featureId?: string | undefined;
|
|
2605
2680
|
}[];
|
|
2606
2681
|
}, {
|
|
2607
2682
|
features: {
|
|
2608
2683
|
features: {
|
|
2609
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting";
|
|
2610
2684
|
name: string;
|
|
2611
2685
|
updatedAt: string;
|
|
2612
2686
|
id: string;
|
|
@@ -2621,6 +2695,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2621
2695
|
rationale?: string | undefined;
|
|
2622
2696
|
implementationNotes?: string | undefined;
|
|
2623
2697
|
}[] | undefined;
|
|
2698
|
+
shortId?: string | undefined;
|
|
2699
|
+
priority?: number | undefined;
|
|
2624
2700
|
dependsOn?: string[] | undefined;
|
|
2625
2701
|
discussedAt?: string | undefined;
|
|
2626
2702
|
contextReady?: boolean | undefined;
|
|
@@ -2687,7 +2763,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2687
2763
|
};
|
|
2688
2764
|
phases: {
|
|
2689
2765
|
number: number;
|
|
2690
|
-
status: "planned" | "in-progress" | "done" | "blocked" | "canceled" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
|
|
2691
2766
|
updatedAt: string;
|
|
2692
2767
|
id: string;
|
|
2693
2768
|
createdAt: string;
|
|
@@ -2706,6 +2781,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2706
2781
|
rationale?: string | undefined;
|
|
2707
2782
|
implementationNotes?: string | undefined;
|
|
2708
2783
|
}[] | undefined;
|
|
2784
|
+
shortId?: string | undefined;
|
|
2785
|
+
priority?: number | undefined;
|
|
2709
2786
|
dependsOn?: string[] | undefined;
|
|
2710
2787
|
featureId?: string | undefined;
|
|
2711
2788
|
discussedAt?: string | undefined;
|
|
@@ -2737,6 +2814,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2737
2814
|
rationale?: string | undefined;
|
|
2738
2815
|
implementationNotes?: string | undefined;
|
|
2739
2816
|
}[] | undefined;
|
|
2817
|
+
shortId?: string | undefined;
|
|
2818
|
+
priority?: number | undefined;
|
|
2740
2819
|
statusLog?: {
|
|
2741
2820
|
id: string;
|
|
2742
2821
|
date: string;
|
|
@@ -2762,6 +2841,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2762
2841
|
startedAt?: string | undefined;
|
|
2763
2842
|
completedAt?: string | undefined;
|
|
2764
2843
|
}[] | undefined;
|
|
2844
|
+
handoff?: string | undefined;
|
|
2845
|
+
handoffUpdatedAt?: string | undefined;
|
|
2765
2846
|
}[];
|
|
2766
2847
|
}>;
|
|
2767
2848
|
export type Timestamp = z.infer<typeof TimestampSchema>;
|
|
@@ -2772,8 +2853,12 @@ export type ActivityEntry = z.infer<typeof ActivityEntrySchema>;
|
|
|
2772
2853
|
export type ActivityLog = z.infer<typeof ActivityLogSchema>;
|
|
2773
2854
|
export type ResumeFocus = z.infer<typeof ResumeFocusSchema>;
|
|
2774
2855
|
export type FeatureStatus = z.infer<typeof FeatureStatusSchema>;
|
|
2775
|
-
export type Feature = z.infer<typeof FeatureSchema
|
|
2776
|
-
|
|
2856
|
+
export type Feature = z.infer<typeof FeatureSchema> & {
|
|
2857
|
+
status: FeatureStatus;
|
|
2858
|
+
};
|
|
2859
|
+
export type FeaturesDocument = {
|
|
2860
|
+
features: Feature[];
|
|
2861
|
+
};
|
|
2777
2862
|
export type PhaseStatus = z.infer<typeof PhaseStatusSchema>;
|
|
2778
2863
|
export type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
2779
2864
|
export type RequirementStatus = z.infer<typeof RequirementStatusSchema>;
|
|
@@ -2786,9 +2871,14 @@ export type Subtask = z.infer<typeof SubtaskSchema>;
|
|
|
2786
2871
|
export type ChecklistItem = z.infer<typeof ChecklistItemSchema>;
|
|
2787
2872
|
export type StatusLogEntry = z.infer<typeof StatusLogEntrySchema>;
|
|
2788
2873
|
export type Task = z.infer<typeof TaskSchema>;
|
|
2789
|
-
export type Phase = z.infer<typeof PhaseSchema
|
|
2874
|
+
export type Phase = z.infer<typeof PhaseSchema> & {
|
|
2875
|
+
status: PhaseStatus;
|
|
2876
|
+
};
|
|
2790
2877
|
export type MacroTask = z.infer<typeof MacroTaskSchema>;
|
|
2791
2878
|
export type Requirement = z.infer<typeof RequirementSchema>;
|
|
2792
2879
|
export type RequirementsDocument = z.infer<typeof RequirementsDocumentSchema>;
|
|
2793
|
-
export type PlanWorkspace = z.infer<typeof PlanWorkspaceSchema
|
|
2880
|
+
export type PlanWorkspace = Omit<z.infer<typeof PlanWorkspaceSchema>, "phases" | "features"> & {
|
|
2881
|
+
phases: Phase[];
|
|
2882
|
+
features: FeaturesDocument;
|
|
2883
|
+
};
|
|
2794
2884
|
//# sourceMappingURL=schema.d.ts.map
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe,aAAwB,CAAC;AACrD,eAAO,MAAM,UAAU,aAAiD,CAAC;AAEzE,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBhC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS5B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;EAMzB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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K,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC,GAAG;IAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAAC,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC"}
|
package/dist/schema.js
CHANGED
|
@@ -138,6 +138,8 @@ export const TaskSchema = z.object({
|
|
|
138
138
|
id: z.string(),
|
|
139
139
|
phaseId: z.string(),
|
|
140
140
|
number: z.number().int().nonnegative().default(0),
|
|
141
|
+
shortId: z.string().regex(/^(|[A-Z2-9]{5})$/).default(""),
|
|
142
|
+
priority: z.number().int().nonnegative().default(0),
|
|
141
143
|
shortName: SlugSchema,
|
|
142
144
|
title: z.string().min(1),
|
|
143
145
|
status: TaskStatusSchema,
|
|
@@ -165,9 +167,13 @@ export const PhaseSchema = z.object({
|
|
|
165
167
|
id: z.string(),
|
|
166
168
|
featureId: z.string().optional(),
|
|
167
169
|
number: z.number().int().positive(),
|
|
170
|
+
shortId: z.string().regex(/^(|[A-Z2-9]{5})$/).default(""),
|
|
171
|
+
priority: z.number().int().nonnegative().default(0),
|
|
168
172
|
slug: SlugSchema,
|
|
169
173
|
title: z.string().min(1),
|
|
170
|
-
|
|
174
|
+
// NOTE: `status` is intentionally ABSENT from the schema — it is a DERIVED
|
|
175
|
+
// value (computed from child tasks at read time) and is never persisted.
|
|
176
|
+
// The runtime `Phase` type re-adds it as a non-optional field (see below).
|
|
171
177
|
discussedAt: z.string().default(""),
|
|
172
178
|
contextReady: z.boolean().default(false),
|
|
173
179
|
contextReadyReason: z.string().default(""),
|
|
@@ -187,13 +193,18 @@ export const PhaseSchema = z.object({
|
|
|
187
193
|
tasks: z.array(TaskSchema).default([]),
|
|
188
194
|
createdAt: TimestampSchema,
|
|
189
195
|
updatedAt: TimestampSchema,
|
|
196
|
+
handoff: z.string().default(""),
|
|
197
|
+
handoffUpdatedAt: z.string().default(""),
|
|
190
198
|
});
|
|
191
199
|
export const FeatureSchema = z.object({
|
|
192
200
|
id: z.string(),
|
|
193
201
|
number: z.number().int().nonnegative().default(0),
|
|
202
|
+
shortId: z.string().regex(/^(|[A-Z2-9]{5})$/).default(""),
|
|
203
|
+
priority: z.number().int().nonnegative().default(0),
|
|
194
204
|
name: z.string().min(1),
|
|
195
205
|
description: z.string().default(""),
|
|
196
|
-
|
|
206
|
+
// NOTE: `status` is intentionally ABSENT — it is DERIVED from child phases
|
|
207
|
+
// at read time and never persisted. The runtime `Feature` type re-adds it.
|
|
197
208
|
discussedAt: z.string().default(""),
|
|
198
209
|
contextReady: z.boolean().default(false),
|
|
199
210
|
contextReadyReason: z.string().default(""),
|