@agent-plan/core 0.2.23 → 0.2.24
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/handoff-context.d.ts +60 -0
- package/dist/handoff-context.d.ts.map +1 -0
- package/dist/handoff-context.js +150 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/plan-store.d.ts +28 -0
- package/dist/plan-store.d.ts.map +1 -1
- package/dist/plan-store.js +142 -0
- package/dist/planner-rules.js +2 -2
- package/dist/read-tracking.d.ts +60 -23
- package/dist/read-tracking.d.ts.map +1 -1
- package/dist/read-tracking.js +131 -45
- package/dist/schema.d.ts +324 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +12 -0
- package/dist/task-start-outcome.d.ts +23 -0
- package/dist/task-start-outcome.d.ts.map +1 -0
- package/dist/task-start-outcome.js +23 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -728,6 +728,16 @@ export declare const STATUS_LOG_MOTIVATION_REQUIRED: Set<string>;
|
|
|
728
728
|
* - → PLANNED from a non-PLANNED status requires it.
|
|
729
729
|
*/
|
|
730
730
|
export declare function needsMotivation(fromStatus: string, toStatus: string): boolean;
|
|
731
|
+
export declare const SessionInfoSchema: z.ZodObject<{
|
|
732
|
+
sessionId: z.ZodString;
|
|
733
|
+
createdAt: z.ZodString;
|
|
734
|
+
}, "strip", z.ZodTypeAny, {
|
|
735
|
+
createdAt: string;
|
|
736
|
+
sessionId: string;
|
|
737
|
+
}, {
|
|
738
|
+
createdAt: string;
|
|
739
|
+
sessionId: string;
|
|
740
|
+
}>;
|
|
731
741
|
export declare const StatusLogEntrySchema: z.ZodObject<{
|
|
732
742
|
id: z.ZodString;
|
|
733
743
|
date: z.ZodString;
|
|
@@ -949,6 +959,17 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
949
959
|
completedAt: z.ZodDefault<z.ZodString>;
|
|
950
960
|
createdAt: z.ZodString;
|
|
951
961
|
updatedAt: z.ZodString;
|
|
962
|
+
/** Durable attestations of completed full context reads by harness session. */
|
|
963
|
+
sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
964
|
+
sessionId: z.ZodString;
|
|
965
|
+
createdAt: z.ZodString;
|
|
966
|
+
}, "strip", z.ZodTypeAny, {
|
|
967
|
+
createdAt: string;
|
|
968
|
+
sessionId: string;
|
|
969
|
+
}, {
|
|
970
|
+
createdAt: string;
|
|
971
|
+
sessionId: string;
|
|
972
|
+
}>, "many">>;
|
|
952
973
|
}, "strip", z.ZodTypeAny, {
|
|
953
974
|
number: number;
|
|
954
975
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
@@ -1017,6 +1038,10 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1017
1038
|
}[];
|
|
1018
1039
|
startedAt: string;
|
|
1019
1040
|
completedAt: string;
|
|
1041
|
+
sessionInfo: {
|
|
1042
|
+
createdAt: string;
|
|
1043
|
+
sessionId: string;
|
|
1044
|
+
}[];
|
|
1020
1045
|
}, {
|
|
1021
1046
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
1022
1047
|
updatedAt: string;
|
|
@@ -1085,6 +1110,10 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1085
1110
|
}[] | undefined;
|
|
1086
1111
|
startedAt?: string | undefined;
|
|
1087
1112
|
completedAt?: string | undefined;
|
|
1113
|
+
sessionInfo?: {
|
|
1114
|
+
createdAt: string;
|
|
1115
|
+
sessionId: string;
|
|
1116
|
+
}[] | undefined;
|
|
1088
1117
|
}>, {
|
|
1089
1118
|
checklist: {
|
|
1090
1119
|
id: string;
|
|
@@ -1153,6 +1182,10 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1153
1182
|
}[];
|
|
1154
1183
|
startedAt: string;
|
|
1155
1184
|
completedAt: string;
|
|
1185
|
+
sessionInfo: {
|
|
1186
|
+
createdAt: string;
|
|
1187
|
+
sessionId: string;
|
|
1188
|
+
}[];
|
|
1156
1189
|
}, {
|
|
1157
1190
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
1158
1191
|
updatedAt: string;
|
|
@@ -1221,6 +1254,10 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1221
1254
|
}[] | undefined;
|
|
1222
1255
|
startedAt?: string | undefined;
|
|
1223
1256
|
completedAt?: string | undefined;
|
|
1257
|
+
sessionInfo?: {
|
|
1258
|
+
createdAt: string;
|
|
1259
|
+
sessionId: string;
|
|
1260
|
+
}[] | undefined;
|
|
1224
1261
|
}>;
|
|
1225
1262
|
export declare const HandoffHistoryEntrySchema: z.ZodObject<{
|
|
1226
1263
|
/** Relative path under .planner/.local/handoff-archive/ (e.g. <phaseId>-<ISO>.md). */
|
|
@@ -1463,6 +1500,17 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1463
1500
|
completedAt: z.ZodDefault<z.ZodString>;
|
|
1464
1501
|
createdAt: z.ZodString;
|
|
1465
1502
|
updatedAt: z.ZodString;
|
|
1503
|
+
/** Durable attestations of completed full context reads by harness session. */
|
|
1504
|
+
sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1505
|
+
sessionId: z.ZodString;
|
|
1506
|
+
createdAt: z.ZodString;
|
|
1507
|
+
}, "strip", z.ZodTypeAny, {
|
|
1508
|
+
createdAt: string;
|
|
1509
|
+
sessionId: string;
|
|
1510
|
+
}, {
|
|
1511
|
+
createdAt: string;
|
|
1512
|
+
sessionId: string;
|
|
1513
|
+
}>, "many">>;
|
|
1466
1514
|
}, "strip", z.ZodTypeAny, {
|
|
1467
1515
|
number: number;
|
|
1468
1516
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
@@ -1531,6 +1579,10 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1531
1579
|
}[];
|
|
1532
1580
|
startedAt: string;
|
|
1533
1581
|
completedAt: string;
|
|
1582
|
+
sessionInfo: {
|
|
1583
|
+
createdAt: string;
|
|
1584
|
+
sessionId: string;
|
|
1585
|
+
}[];
|
|
1534
1586
|
}, {
|
|
1535
1587
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
1536
1588
|
updatedAt: string;
|
|
@@ -1599,6 +1651,10 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1599
1651
|
}[] | undefined;
|
|
1600
1652
|
startedAt?: string | undefined;
|
|
1601
1653
|
completedAt?: string | undefined;
|
|
1654
|
+
sessionInfo?: {
|
|
1655
|
+
createdAt: string;
|
|
1656
|
+
sessionId: string;
|
|
1657
|
+
}[] | undefined;
|
|
1602
1658
|
}>, {
|
|
1603
1659
|
checklist: {
|
|
1604
1660
|
id: string;
|
|
@@ -1667,6 +1723,10 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1667
1723
|
}[];
|
|
1668
1724
|
startedAt: string;
|
|
1669
1725
|
completedAt: string;
|
|
1726
|
+
sessionInfo: {
|
|
1727
|
+
createdAt: string;
|
|
1728
|
+
sessionId: string;
|
|
1729
|
+
}[];
|
|
1670
1730
|
}, {
|
|
1671
1731
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
1672
1732
|
updatedAt: string;
|
|
@@ -1735,6 +1795,10 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1735
1795
|
}[] | undefined;
|
|
1736
1796
|
startedAt?: string | undefined;
|
|
1737
1797
|
completedAt?: string | undefined;
|
|
1798
|
+
sessionInfo?: {
|
|
1799
|
+
createdAt: string;
|
|
1800
|
+
sessionId: string;
|
|
1801
|
+
}[] | undefined;
|
|
1738
1802
|
}>, "many">>;
|
|
1739
1803
|
createdAt: z.ZodString;
|
|
1740
1804
|
updatedAt: z.ZodString;
|
|
@@ -1787,6 +1851,17 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1787
1851
|
toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
|
|
1788
1852
|
description?: string | undefined;
|
|
1789
1853
|
}>, "many">>;
|
|
1854
|
+
/** Durable attestations of completed full context reads by harness session. */
|
|
1855
|
+
sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1856
|
+
sessionId: z.ZodString;
|
|
1857
|
+
createdAt: z.ZodString;
|
|
1858
|
+
}, "strip", z.ZodTypeAny, {
|
|
1859
|
+
createdAt: string;
|
|
1860
|
+
sessionId: string;
|
|
1861
|
+
}, {
|
|
1862
|
+
createdAt: string;
|
|
1863
|
+
sessionId: string;
|
|
1864
|
+
}>, "many">>;
|
|
1790
1865
|
}, "strip", z.ZodTypeAny, {
|
|
1791
1866
|
number: number;
|
|
1792
1867
|
dependencies: string[];
|
|
@@ -1818,6 +1893,10 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1818
1893
|
toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
|
|
1819
1894
|
}[];
|
|
1820
1895
|
dependsOn: string[];
|
|
1896
|
+
sessionInfo: {
|
|
1897
|
+
createdAt: string;
|
|
1898
|
+
sessionId: string;
|
|
1899
|
+
}[];
|
|
1821
1900
|
slug: string;
|
|
1822
1901
|
discussedAt: string;
|
|
1823
1902
|
contextReady: boolean;
|
|
@@ -1896,6 +1975,10 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1896
1975
|
}[];
|
|
1897
1976
|
startedAt: string;
|
|
1898
1977
|
completedAt: string;
|
|
1978
|
+
sessionInfo: {
|
|
1979
|
+
createdAt: string;
|
|
1980
|
+
sessionId: string;
|
|
1981
|
+
}[];
|
|
1899
1982
|
}[];
|
|
1900
1983
|
handoff: string;
|
|
1901
1984
|
handoffUpdatedAt: string;
|
|
@@ -1938,6 +2021,10 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1938
2021
|
description?: string | undefined;
|
|
1939
2022
|
}[] | undefined;
|
|
1940
2023
|
dependsOn?: string[] | undefined;
|
|
2024
|
+
sessionInfo?: {
|
|
2025
|
+
createdAt: string;
|
|
2026
|
+
sessionId: string;
|
|
2027
|
+
}[] | undefined;
|
|
1941
2028
|
featureId?: string | undefined;
|
|
1942
2029
|
discussedAt?: string | undefined;
|
|
1943
2030
|
contextReady?: boolean | undefined;
|
|
@@ -2016,6 +2103,10 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
2016
2103
|
}[] | undefined;
|
|
2017
2104
|
startedAt?: string | undefined;
|
|
2018
2105
|
completedAt?: string | undefined;
|
|
2106
|
+
sessionInfo?: {
|
|
2107
|
+
createdAt: string;
|
|
2108
|
+
sessionId: string;
|
|
2109
|
+
}[] | undefined;
|
|
2019
2110
|
}[] | undefined;
|
|
2020
2111
|
handoff?: string | undefined;
|
|
2021
2112
|
handoffUpdatedAt?: string | undefined;
|
|
@@ -2092,6 +2183,17 @@ export declare const FeatureSchema: z.ZodObject<{
|
|
|
2092
2183
|
}>, "many">>;
|
|
2093
2184
|
createdAt: z.ZodString;
|
|
2094
2185
|
updatedAt: z.ZodString;
|
|
2186
|
+
/** Durable attestations of completed full context reads by harness session. */
|
|
2187
|
+
sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2188
|
+
sessionId: z.ZodString;
|
|
2189
|
+
createdAt: z.ZodString;
|
|
2190
|
+
}, "strip", z.ZodTypeAny, {
|
|
2191
|
+
createdAt: string;
|
|
2192
|
+
sessionId: string;
|
|
2193
|
+
}, {
|
|
2194
|
+
createdAt: string;
|
|
2195
|
+
sessionId: string;
|
|
2196
|
+
}>, "many">>;
|
|
2095
2197
|
}, "strip", z.ZodTypeAny, {
|
|
2096
2198
|
number: number;
|
|
2097
2199
|
name: string;
|
|
@@ -2119,6 +2221,10 @@ export declare const FeatureSchema: z.ZodObject<{
|
|
|
2119
2221
|
toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
2120
2222
|
}[];
|
|
2121
2223
|
dependsOn: string[];
|
|
2224
|
+
sessionInfo: {
|
|
2225
|
+
createdAt: string;
|
|
2226
|
+
sessionId: string;
|
|
2227
|
+
}[];
|
|
2122
2228
|
discussedAt: string;
|
|
2123
2229
|
contextReady: boolean;
|
|
2124
2230
|
contextReadyReason: string;
|
|
@@ -2154,6 +2260,10 @@ export declare const FeatureSchema: z.ZodObject<{
|
|
|
2154
2260
|
description?: string | undefined;
|
|
2155
2261
|
}[] | undefined;
|
|
2156
2262
|
dependsOn?: string[] | undefined;
|
|
2263
|
+
sessionInfo?: {
|
|
2264
|
+
createdAt: string;
|
|
2265
|
+
sessionId: string;
|
|
2266
|
+
}[] | undefined;
|
|
2157
2267
|
discussedAt?: string | undefined;
|
|
2158
2268
|
contextReady?: boolean | undefined;
|
|
2159
2269
|
contextReadyReason?: string | undefined;
|
|
@@ -2230,6 +2340,17 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
2230
2340
|
}>, "many">>;
|
|
2231
2341
|
createdAt: z.ZodString;
|
|
2232
2342
|
updatedAt: z.ZodString;
|
|
2343
|
+
/** Durable attestations of completed full context reads by harness session. */
|
|
2344
|
+
sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2345
|
+
sessionId: z.ZodString;
|
|
2346
|
+
createdAt: z.ZodString;
|
|
2347
|
+
}, "strip", z.ZodTypeAny, {
|
|
2348
|
+
createdAt: string;
|
|
2349
|
+
sessionId: string;
|
|
2350
|
+
}, {
|
|
2351
|
+
createdAt: string;
|
|
2352
|
+
sessionId: string;
|
|
2353
|
+
}>, "many">>;
|
|
2233
2354
|
}, "strip", z.ZodTypeAny, {
|
|
2234
2355
|
number: number;
|
|
2235
2356
|
name: string;
|
|
@@ -2257,6 +2378,10 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
2257
2378
|
toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
2258
2379
|
}[];
|
|
2259
2380
|
dependsOn: string[];
|
|
2381
|
+
sessionInfo: {
|
|
2382
|
+
createdAt: string;
|
|
2383
|
+
sessionId: string;
|
|
2384
|
+
}[];
|
|
2260
2385
|
discussedAt: string;
|
|
2261
2386
|
contextReady: boolean;
|
|
2262
2387
|
contextReadyReason: string;
|
|
@@ -2292,6 +2417,10 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
2292
2417
|
description?: string | undefined;
|
|
2293
2418
|
}[] | undefined;
|
|
2294
2419
|
dependsOn?: string[] | undefined;
|
|
2420
|
+
sessionInfo?: {
|
|
2421
|
+
createdAt: string;
|
|
2422
|
+
sessionId: string;
|
|
2423
|
+
}[] | undefined;
|
|
2295
2424
|
discussedAt?: string | undefined;
|
|
2296
2425
|
contextReady?: boolean | undefined;
|
|
2297
2426
|
contextReadyReason?: string | undefined;
|
|
@@ -2329,6 +2458,10 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
2329
2458
|
toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
2330
2459
|
}[];
|
|
2331
2460
|
dependsOn: string[];
|
|
2461
|
+
sessionInfo: {
|
|
2462
|
+
createdAt: string;
|
|
2463
|
+
sessionId: string;
|
|
2464
|
+
}[];
|
|
2332
2465
|
discussedAt: string;
|
|
2333
2466
|
contextReady: boolean;
|
|
2334
2467
|
contextReadyReason: string;
|
|
@@ -2366,6 +2499,10 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
|
|
|
2366
2499
|
description?: string | undefined;
|
|
2367
2500
|
}[] | undefined;
|
|
2368
2501
|
dependsOn?: string[] | undefined;
|
|
2502
|
+
sessionInfo?: {
|
|
2503
|
+
createdAt: string;
|
|
2504
|
+
sessionId: string;
|
|
2505
|
+
}[] | undefined;
|
|
2369
2506
|
discussedAt?: string | undefined;
|
|
2370
2507
|
contextReady?: boolean | undefined;
|
|
2371
2508
|
contextReadyReason?: string | undefined;
|
|
@@ -2428,6 +2565,17 @@ export declare const RequirementSchema: z.ZodObject<{
|
|
|
2428
2565
|
linkedPhaseIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2429
2566
|
createdAt: z.ZodString;
|
|
2430
2567
|
updatedAt: z.ZodString;
|
|
2568
|
+
/** Durable attestations of completed full context reads by harness session. */
|
|
2569
|
+
sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2570
|
+
sessionId: z.ZodString;
|
|
2571
|
+
createdAt: z.ZodString;
|
|
2572
|
+
}, "strip", z.ZodTypeAny, {
|
|
2573
|
+
createdAt: string;
|
|
2574
|
+
sessionId: string;
|
|
2575
|
+
}, {
|
|
2576
|
+
createdAt: string;
|
|
2577
|
+
sessionId: string;
|
|
2578
|
+
}>, "many">>;
|
|
2431
2579
|
}, "strip", z.ZodTypeAny, {
|
|
2432
2580
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
2433
2581
|
updatedAt: string;
|
|
@@ -2435,6 +2583,10 @@ export declare const RequirementSchema: z.ZodObject<{
|
|
|
2435
2583
|
createdAt: string;
|
|
2436
2584
|
title: string;
|
|
2437
2585
|
description: string;
|
|
2586
|
+
sessionInfo: {
|
|
2587
|
+
createdAt: string;
|
|
2588
|
+
sessionId: string;
|
|
2589
|
+
}[];
|
|
2438
2590
|
macroTasks: {
|
|
2439
2591
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
2440
2592
|
updatedAt: string;
|
|
@@ -2451,6 +2603,10 @@ export declare const RequirementSchema: z.ZodObject<{
|
|
|
2451
2603
|
createdAt: string;
|
|
2452
2604
|
title: string;
|
|
2453
2605
|
description?: string | undefined;
|
|
2606
|
+
sessionInfo?: {
|
|
2607
|
+
createdAt: string;
|
|
2608
|
+
sessionId: string;
|
|
2609
|
+
}[] | undefined;
|
|
2454
2610
|
macroTasks?: {
|
|
2455
2611
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
2456
2612
|
updatedAt: string;
|
|
@@ -2492,6 +2648,17 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
|
|
|
2492
2648
|
linkedPhaseIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2493
2649
|
createdAt: z.ZodString;
|
|
2494
2650
|
updatedAt: z.ZodString;
|
|
2651
|
+
/** Durable attestations of completed full context reads by harness session. */
|
|
2652
|
+
sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2653
|
+
sessionId: z.ZodString;
|
|
2654
|
+
createdAt: z.ZodString;
|
|
2655
|
+
}, "strip", z.ZodTypeAny, {
|
|
2656
|
+
createdAt: string;
|
|
2657
|
+
sessionId: string;
|
|
2658
|
+
}, {
|
|
2659
|
+
createdAt: string;
|
|
2660
|
+
sessionId: string;
|
|
2661
|
+
}>, "many">>;
|
|
2495
2662
|
}, "strip", z.ZodTypeAny, {
|
|
2496
2663
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
2497
2664
|
updatedAt: string;
|
|
@@ -2499,6 +2666,10 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
|
|
|
2499
2666
|
createdAt: string;
|
|
2500
2667
|
title: string;
|
|
2501
2668
|
description: string;
|
|
2669
|
+
sessionInfo: {
|
|
2670
|
+
createdAt: string;
|
|
2671
|
+
sessionId: string;
|
|
2672
|
+
}[];
|
|
2502
2673
|
macroTasks: {
|
|
2503
2674
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
2504
2675
|
updatedAt: string;
|
|
@@ -2515,6 +2686,10 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
|
|
|
2515
2686
|
createdAt: string;
|
|
2516
2687
|
title: string;
|
|
2517
2688
|
description?: string | undefined;
|
|
2689
|
+
sessionInfo?: {
|
|
2690
|
+
createdAt: string;
|
|
2691
|
+
sessionId: string;
|
|
2692
|
+
}[] | undefined;
|
|
2518
2693
|
macroTasks?: {
|
|
2519
2694
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
2520
2695
|
updatedAt: string;
|
|
@@ -2533,6 +2708,10 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
|
|
|
2533
2708
|
createdAt: string;
|
|
2534
2709
|
title: string;
|
|
2535
2710
|
description: string;
|
|
2711
|
+
sessionInfo: {
|
|
2712
|
+
createdAt: string;
|
|
2713
|
+
sessionId: string;
|
|
2714
|
+
}[];
|
|
2536
2715
|
macroTasks: {
|
|
2537
2716
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
2538
2717
|
updatedAt: string;
|
|
@@ -2551,6 +2730,10 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
|
|
|
2551
2730
|
createdAt: string;
|
|
2552
2731
|
title: string;
|
|
2553
2732
|
description?: string | undefined;
|
|
2733
|
+
sessionInfo?: {
|
|
2734
|
+
createdAt: string;
|
|
2735
|
+
sessionId: string;
|
|
2736
|
+
}[] | undefined;
|
|
2554
2737
|
macroTasks?: {
|
|
2555
2738
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
2556
2739
|
updatedAt: string;
|
|
@@ -2914,6 +3097,17 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2914
3097
|
}>, "many">>;
|
|
2915
3098
|
createdAt: z.ZodString;
|
|
2916
3099
|
updatedAt: z.ZodString;
|
|
3100
|
+
/** Durable attestations of completed full context reads by harness session. */
|
|
3101
|
+
sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3102
|
+
sessionId: z.ZodString;
|
|
3103
|
+
createdAt: z.ZodString;
|
|
3104
|
+
}, "strip", z.ZodTypeAny, {
|
|
3105
|
+
createdAt: string;
|
|
3106
|
+
sessionId: string;
|
|
3107
|
+
}, {
|
|
3108
|
+
createdAt: string;
|
|
3109
|
+
sessionId: string;
|
|
3110
|
+
}>, "many">>;
|
|
2917
3111
|
}, "strip", z.ZodTypeAny, {
|
|
2918
3112
|
number: number;
|
|
2919
3113
|
name: string;
|
|
@@ -2941,6 +3135,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2941
3135
|
toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
2942
3136
|
}[];
|
|
2943
3137
|
dependsOn: string[];
|
|
3138
|
+
sessionInfo: {
|
|
3139
|
+
createdAt: string;
|
|
3140
|
+
sessionId: string;
|
|
3141
|
+
}[];
|
|
2944
3142
|
discussedAt: string;
|
|
2945
3143
|
contextReady: boolean;
|
|
2946
3144
|
contextReadyReason: string;
|
|
@@ -2976,6 +3174,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2976
3174
|
description?: string | undefined;
|
|
2977
3175
|
}[] | undefined;
|
|
2978
3176
|
dependsOn?: string[] | undefined;
|
|
3177
|
+
sessionInfo?: {
|
|
3178
|
+
createdAt: string;
|
|
3179
|
+
sessionId: string;
|
|
3180
|
+
}[] | undefined;
|
|
2979
3181
|
discussedAt?: string | undefined;
|
|
2980
3182
|
contextReady?: boolean | undefined;
|
|
2981
3183
|
contextReadyReason?: string | undefined;
|
|
@@ -3013,6 +3215,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3013
3215
|
toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
3014
3216
|
}[];
|
|
3015
3217
|
dependsOn: string[];
|
|
3218
|
+
sessionInfo: {
|
|
3219
|
+
createdAt: string;
|
|
3220
|
+
sessionId: string;
|
|
3221
|
+
}[];
|
|
3016
3222
|
discussedAt: string;
|
|
3017
3223
|
contextReady: boolean;
|
|
3018
3224
|
contextReadyReason: string;
|
|
@@ -3050,6 +3256,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3050
3256
|
description?: string | undefined;
|
|
3051
3257
|
}[] | undefined;
|
|
3052
3258
|
dependsOn?: string[] | undefined;
|
|
3259
|
+
sessionInfo?: {
|
|
3260
|
+
createdAt: string;
|
|
3261
|
+
sessionId: string;
|
|
3262
|
+
}[] | undefined;
|
|
3053
3263
|
discussedAt?: string | undefined;
|
|
3054
3264
|
contextReady?: boolean | undefined;
|
|
3055
3265
|
contextReadyReason?: string | undefined;
|
|
@@ -3091,6 +3301,17 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3091
3301
|
linkedPhaseIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3092
3302
|
createdAt: z.ZodString;
|
|
3093
3303
|
updatedAt: z.ZodString;
|
|
3304
|
+
/** Durable attestations of completed full context reads by harness session. */
|
|
3305
|
+
sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3306
|
+
sessionId: z.ZodString;
|
|
3307
|
+
createdAt: z.ZodString;
|
|
3308
|
+
}, "strip", z.ZodTypeAny, {
|
|
3309
|
+
createdAt: string;
|
|
3310
|
+
sessionId: string;
|
|
3311
|
+
}, {
|
|
3312
|
+
createdAt: string;
|
|
3313
|
+
sessionId: string;
|
|
3314
|
+
}>, "many">>;
|
|
3094
3315
|
}, "strip", z.ZodTypeAny, {
|
|
3095
3316
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
3096
3317
|
updatedAt: string;
|
|
@@ -3098,6 +3319,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3098
3319
|
createdAt: string;
|
|
3099
3320
|
title: string;
|
|
3100
3321
|
description: string;
|
|
3322
|
+
sessionInfo: {
|
|
3323
|
+
createdAt: string;
|
|
3324
|
+
sessionId: string;
|
|
3325
|
+
}[];
|
|
3101
3326
|
macroTasks: {
|
|
3102
3327
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
3103
3328
|
updatedAt: string;
|
|
@@ -3114,6 +3339,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3114
3339
|
createdAt: string;
|
|
3115
3340
|
title: string;
|
|
3116
3341
|
description?: string | undefined;
|
|
3342
|
+
sessionInfo?: {
|
|
3343
|
+
createdAt: string;
|
|
3344
|
+
sessionId: string;
|
|
3345
|
+
}[] | undefined;
|
|
3117
3346
|
macroTasks?: {
|
|
3118
3347
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
3119
3348
|
updatedAt: string;
|
|
@@ -3132,6 +3361,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3132
3361
|
createdAt: string;
|
|
3133
3362
|
title: string;
|
|
3134
3363
|
description: string;
|
|
3364
|
+
sessionInfo: {
|
|
3365
|
+
createdAt: string;
|
|
3366
|
+
sessionId: string;
|
|
3367
|
+
}[];
|
|
3135
3368
|
macroTasks: {
|
|
3136
3369
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
3137
3370
|
updatedAt: string;
|
|
@@ -3150,6 +3383,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3150
3383
|
createdAt: string;
|
|
3151
3384
|
title: string;
|
|
3152
3385
|
description?: string | undefined;
|
|
3386
|
+
sessionInfo?: {
|
|
3387
|
+
createdAt: string;
|
|
3388
|
+
sessionId: string;
|
|
3389
|
+
}[] | undefined;
|
|
3153
3390
|
macroTasks?: {
|
|
3154
3391
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
3155
3392
|
updatedAt: string;
|
|
@@ -3387,6 +3624,17 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3387
3624
|
completedAt: z.ZodDefault<z.ZodString>;
|
|
3388
3625
|
createdAt: z.ZodString;
|
|
3389
3626
|
updatedAt: z.ZodString;
|
|
3627
|
+
/** Durable attestations of completed full context reads by harness session. */
|
|
3628
|
+
sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3629
|
+
sessionId: z.ZodString;
|
|
3630
|
+
createdAt: z.ZodString;
|
|
3631
|
+
}, "strip", z.ZodTypeAny, {
|
|
3632
|
+
createdAt: string;
|
|
3633
|
+
sessionId: string;
|
|
3634
|
+
}, {
|
|
3635
|
+
createdAt: string;
|
|
3636
|
+
sessionId: string;
|
|
3637
|
+
}>, "many">>;
|
|
3390
3638
|
}, "strip", z.ZodTypeAny, {
|
|
3391
3639
|
number: number;
|
|
3392
3640
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
@@ -3455,6 +3703,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3455
3703
|
}[];
|
|
3456
3704
|
startedAt: string;
|
|
3457
3705
|
completedAt: string;
|
|
3706
|
+
sessionInfo: {
|
|
3707
|
+
createdAt: string;
|
|
3708
|
+
sessionId: string;
|
|
3709
|
+
}[];
|
|
3458
3710
|
}, {
|
|
3459
3711
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
3460
3712
|
updatedAt: string;
|
|
@@ -3523,6 +3775,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3523
3775
|
}[] | undefined;
|
|
3524
3776
|
startedAt?: string | undefined;
|
|
3525
3777
|
completedAt?: string | undefined;
|
|
3778
|
+
sessionInfo?: {
|
|
3779
|
+
createdAt: string;
|
|
3780
|
+
sessionId: string;
|
|
3781
|
+
}[] | undefined;
|
|
3526
3782
|
}>, {
|
|
3527
3783
|
checklist: {
|
|
3528
3784
|
id: string;
|
|
@@ -3591,6 +3847,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3591
3847
|
}[];
|
|
3592
3848
|
startedAt: string;
|
|
3593
3849
|
completedAt: string;
|
|
3850
|
+
sessionInfo: {
|
|
3851
|
+
createdAt: string;
|
|
3852
|
+
sessionId: string;
|
|
3853
|
+
}[];
|
|
3594
3854
|
}, {
|
|
3595
3855
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
3596
3856
|
updatedAt: string;
|
|
@@ -3659,6 +3919,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3659
3919
|
}[] | undefined;
|
|
3660
3920
|
startedAt?: string | undefined;
|
|
3661
3921
|
completedAt?: string | undefined;
|
|
3922
|
+
sessionInfo?: {
|
|
3923
|
+
createdAt: string;
|
|
3924
|
+
sessionId: string;
|
|
3925
|
+
}[] | undefined;
|
|
3662
3926
|
}>, "many">>;
|
|
3663
3927
|
createdAt: z.ZodString;
|
|
3664
3928
|
updatedAt: z.ZodString;
|
|
@@ -3711,6 +3975,17 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3711
3975
|
toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
|
|
3712
3976
|
description?: string | undefined;
|
|
3713
3977
|
}>, "many">>;
|
|
3978
|
+
/** Durable attestations of completed full context reads by harness session. */
|
|
3979
|
+
sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3980
|
+
sessionId: z.ZodString;
|
|
3981
|
+
createdAt: z.ZodString;
|
|
3982
|
+
}, "strip", z.ZodTypeAny, {
|
|
3983
|
+
createdAt: string;
|
|
3984
|
+
sessionId: string;
|
|
3985
|
+
}, {
|
|
3986
|
+
createdAt: string;
|
|
3987
|
+
sessionId: string;
|
|
3988
|
+
}>, "many">>;
|
|
3714
3989
|
}, "strip", z.ZodTypeAny, {
|
|
3715
3990
|
number: number;
|
|
3716
3991
|
dependencies: string[];
|
|
@@ -3742,6 +4017,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3742
4017
|
toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
|
|
3743
4018
|
}[];
|
|
3744
4019
|
dependsOn: string[];
|
|
4020
|
+
sessionInfo: {
|
|
4021
|
+
createdAt: string;
|
|
4022
|
+
sessionId: string;
|
|
4023
|
+
}[];
|
|
3745
4024
|
slug: string;
|
|
3746
4025
|
discussedAt: string;
|
|
3747
4026
|
contextReady: boolean;
|
|
@@ -3820,6 +4099,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3820
4099
|
}[];
|
|
3821
4100
|
startedAt: string;
|
|
3822
4101
|
completedAt: string;
|
|
4102
|
+
sessionInfo: {
|
|
4103
|
+
createdAt: string;
|
|
4104
|
+
sessionId: string;
|
|
4105
|
+
}[];
|
|
3823
4106
|
}[];
|
|
3824
4107
|
handoff: string;
|
|
3825
4108
|
handoffUpdatedAt: string;
|
|
@@ -3862,6 +4145,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3862
4145
|
description?: string | undefined;
|
|
3863
4146
|
}[] | undefined;
|
|
3864
4147
|
dependsOn?: string[] | undefined;
|
|
4148
|
+
sessionInfo?: {
|
|
4149
|
+
createdAt: string;
|
|
4150
|
+
sessionId: string;
|
|
4151
|
+
}[] | undefined;
|
|
3865
4152
|
featureId?: string | undefined;
|
|
3866
4153
|
discussedAt?: string | undefined;
|
|
3867
4154
|
contextReady?: boolean | undefined;
|
|
@@ -3940,6 +4227,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3940
4227
|
}[] | undefined;
|
|
3941
4228
|
startedAt?: string | undefined;
|
|
3942
4229
|
completedAt?: string | undefined;
|
|
4230
|
+
sessionInfo?: {
|
|
4231
|
+
createdAt: string;
|
|
4232
|
+
sessionId: string;
|
|
4233
|
+
}[] | undefined;
|
|
3943
4234
|
}[] | undefined;
|
|
3944
4235
|
handoff?: string | undefined;
|
|
3945
4236
|
handoffUpdatedAt?: string | undefined;
|
|
@@ -3979,6 +4270,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3979
4270
|
toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
3980
4271
|
}[];
|
|
3981
4272
|
dependsOn: string[];
|
|
4273
|
+
sessionInfo: {
|
|
4274
|
+
createdAt: string;
|
|
4275
|
+
sessionId: string;
|
|
4276
|
+
}[];
|
|
3982
4277
|
discussedAt: string;
|
|
3983
4278
|
contextReady: boolean;
|
|
3984
4279
|
contextReadyReason: string;
|
|
@@ -3997,6 +4292,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3997
4292
|
createdAt: string;
|
|
3998
4293
|
title: string;
|
|
3999
4294
|
description: string;
|
|
4295
|
+
sessionInfo: {
|
|
4296
|
+
createdAt: string;
|
|
4297
|
+
sessionId: string;
|
|
4298
|
+
}[];
|
|
4000
4299
|
macroTasks: {
|
|
4001
4300
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
4002
4301
|
updatedAt: string;
|
|
@@ -4101,6 +4400,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
4101
4400
|
toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
|
|
4102
4401
|
}[];
|
|
4103
4402
|
dependsOn: string[];
|
|
4403
|
+
sessionInfo: {
|
|
4404
|
+
createdAt: string;
|
|
4405
|
+
sessionId: string;
|
|
4406
|
+
}[];
|
|
4104
4407
|
slug: string;
|
|
4105
4408
|
discussedAt: string;
|
|
4106
4409
|
contextReady: boolean;
|
|
@@ -4179,6 +4482,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
4179
4482
|
}[];
|
|
4180
4483
|
startedAt: string;
|
|
4181
4484
|
completedAt: string;
|
|
4485
|
+
sessionInfo: {
|
|
4486
|
+
createdAt: string;
|
|
4487
|
+
sessionId: string;
|
|
4488
|
+
}[];
|
|
4182
4489
|
}[];
|
|
4183
4490
|
handoff: string;
|
|
4184
4491
|
handoffUpdatedAt: string;
|
|
@@ -4219,6 +4526,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
4219
4526
|
description?: string | undefined;
|
|
4220
4527
|
}[] | undefined;
|
|
4221
4528
|
dependsOn?: string[] | undefined;
|
|
4529
|
+
sessionInfo?: {
|
|
4530
|
+
createdAt: string;
|
|
4531
|
+
sessionId: string;
|
|
4532
|
+
}[] | undefined;
|
|
4222
4533
|
discussedAt?: string | undefined;
|
|
4223
4534
|
contextReady?: boolean | undefined;
|
|
4224
4535
|
contextReadyReason?: string | undefined;
|
|
@@ -4237,6 +4548,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
4237
4548
|
createdAt: string;
|
|
4238
4549
|
title: string;
|
|
4239
4550
|
description?: string | undefined;
|
|
4551
|
+
sessionInfo?: {
|
|
4552
|
+
createdAt: string;
|
|
4553
|
+
sessionId: string;
|
|
4554
|
+
}[] | undefined;
|
|
4240
4555
|
macroTasks?: {
|
|
4241
4556
|
status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
|
|
4242
4557
|
updatedAt: string;
|
|
@@ -4342,6 +4657,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
4342
4657
|
description?: string | undefined;
|
|
4343
4658
|
}[] | undefined;
|
|
4344
4659
|
dependsOn?: string[] | undefined;
|
|
4660
|
+
sessionInfo?: {
|
|
4661
|
+
createdAt: string;
|
|
4662
|
+
sessionId: string;
|
|
4663
|
+
}[] | undefined;
|
|
4345
4664
|
featureId?: string | undefined;
|
|
4346
4665
|
discussedAt?: string | undefined;
|
|
4347
4666
|
contextReady?: boolean | undefined;
|
|
@@ -4420,6 +4739,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
4420
4739
|
}[] | undefined;
|
|
4421
4740
|
startedAt?: string | undefined;
|
|
4422
4741
|
completedAt?: string | undefined;
|
|
4742
|
+
sessionInfo?: {
|
|
4743
|
+
createdAt: string;
|
|
4744
|
+
sessionId: string;
|
|
4745
|
+
}[] | undefined;
|
|
4423
4746
|
}[] | undefined;
|
|
4424
4747
|
handoff?: string | undefined;
|
|
4425
4748
|
handoffUpdatedAt?: string | undefined;
|
|
@@ -4432,6 +4755,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
4432
4755
|
}[];
|
|
4433
4756
|
}>;
|
|
4434
4757
|
export type Timestamp = z.infer<typeof TimestampSchema>;
|
|
4758
|
+
export type SessionInfo = z.infer<typeof SessionInfoSchema>;
|
|
4435
4759
|
export type CodebaseFile = z.infer<typeof CodebaseFileSchema>;
|
|
4436
4760
|
export type CodebaseProfile = z.infer<typeof CodebaseProfileSchema>;
|
|
4437
4761
|
export type AmbientFacts = z.infer<typeof AmbientFactsSchema>;
|