agent-trajectories 0.5.2 → 0.5.4
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/{chunk-4MACDCF4.js → chunk-W222QB6V.js} +346 -41
- package/dist/chunk-W222QB6V.js.map +1 -0
- package/dist/cli/index.js +1739 -195
- package/dist/cli/index.js.map +1 -1
- package/dist/{index-Ce7r5yv0.d.ts → index-7tzw_CMS.d.ts} +122 -37
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +3 -1
- package/package.json +1 -1
- package/dist/chunk-4MACDCF4.js.map +0 -1
|
@@ -40,7 +40,7 @@ type TrajectoryStatus = "active" | "completed" | "abandoned";
|
|
|
40
40
|
/**
|
|
41
41
|
* Event types that can be recorded in a trajectory
|
|
42
42
|
*/
|
|
43
|
-
type TrajectoryEventType = "prompt" | "thinking" | "tool_call" | "tool_result" | "message_sent" | "message_received" | "decision" | "finding" | "reflection" | "note" | "error";
|
|
43
|
+
type TrajectoryEventType = "prompt" | "thinking" | "tool_call" | "tool_result" | "message_sent" | "message_received" | "decision" | "finding" | "reflection" | "note" | "error" | (string & {});
|
|
44
44
|
/**
|
|
45
45
|
* Significance level for events
|
|
46
46
|
*/
|
|
@@ -115,8 +115,13 @@ interface Finding {
|
|
|
115
115
|
interface AgentParticipation {
|
|
116
116
|
/** Agent identifier */
|
|
117
117
|
name: string;
|
|
118
|
-
/**
|
|
119
|
-
|
|
118
|
+
/**
|
|
119
|
+
* Role in the trajectory. Common values are "lead", "contributor",
|
|
120
|
+
* "reviewer", but this is intentionally open-ended — the workforce
|
|
121
|
+
* workflow runner emits domain-specific roles like "workflow-runner"
|
|
122
|
+
* and "specialist" that we want to read without rejecting.
|
|
123
|
+
*/
|
|
124
|
+
role: string;
|
|
120
125
|
/** When the agent joined */
|
|
121
126
|
joinedAt: string;
|
|
122
127
|
/** When the agent left (if applicable) */
|
|
@@ -186,8 +191,10 @@ interface Trajectory {
|
|
|
186
191
|
commits: string[];
|
|
187
192
|
/** Files that were modified */
|
|
188
193
|
filesChanged: string[];
|
|
189
|
-
/** Project identifier */
|
|
190
|
-
projectId
|
|
194
|
+
/** Project identifier. Optional — legacy trajectories may omit it. */
|
|
195
|
+
projectId?: string;
|
|
196
|
+
/** Opaque id set by the workflow runner via TRAJECTORIES_WORKFLOW_ID env var. Lets trail compact --workflow <id> collate all trajectories from a single workflow run. */
|
|
197
|
+
workflowId?: string;
|
|
191
198
|
/** User-defined tags */
|
|
192
199
|
tags: string[];
|
|
193
200
|
/** Trace information for code attribution */
|
|
@@ -218,6 +225,8 @@ interface CreateTrajectoryInput {
|
|
|
218
225
|
source?: TaskSource;
|
|
219
226
|
/** Optional project ID (defaults to cwd) */
|
|
220
227
|
projectId?: string;
|
|
228
|
+
/** Opaque id set by the workflow runner via TRAJECTORIES_WORKFLOW_ID env var. Lets trail compact --workflow <id> collate all trajectories from a single workflow run. */
|
|
229
|
+
workflowId?: string;
|
|
221
230
|
/** Optional initial tags */
|
|
222
231
|
tags?: string[];
|
|
223
232
|
}
|
|
@@ -371,6 +380,14 @@ declare const StorageAdapter: StorageAdapter;
|
|
|
371
380
|
* Provides a clean, developer-friendly API with automatic storage management.
|
|
372
381
|
*/
|
|
373
382
|
|
|
383
|
+
declare function compactWorkflow(workflowId: string, options?: {
|
|
384
|
+
markdown?: boolean;
|
|
385
|
+
mechanical?: boolean;
|
|
386
|
+
cwd?: string;
|
|
387
|
+
}): Promise<{
|
|
388
|
+
compactedPath: string;
|
|
389
|
+
markdownPath?: string;
|
|
390
|
+
}>;
|
|
374
391
|
/**
|
|
375
392
|
* Options for configuring the TrajectoryClient
|
|
376
393
|
*/
|
|
@@ -385,6 +402,13 @@ interface TrajectoryClientOptions {
|
|
|
385
402
|
projectId?: string;
|
|
386
403
|
/** Whether to auto-save after each operation. Defaults to true */
|
|
387
404
|
autoSave?: boolean;
|
|
405
|
+
/**
|
|
406
|
+
* When set, session.complete() and session.done() automatically run compactWorkflow() against the trajectory's workflowId. Default false. Pass an object to control the flags passed to the CLI — e.g. { mechanical: true } skips the LLM for deterministic compaction, { markdown: false } skips the .md companion.
|
|
407
|
+
*/
|
|
408
|
+
autoCompact?: boolean | {
|
|
409
|
+
mechanical?: boolean;
|
|
410
|
+
markdown?: boolean;
|
|
411
|
+
};
|
|
388
412
|
}
|
|
389
413
|
/**
|
|
390
414
|
* Active trajectory session for chainable operations
|
|
@@ -402,6 +426,7 @@ declare class TrajectorySession {
|
|
|
402
426
|
* Get the trajectory ID
|
|
403
427
|
*/
|
|
404
428
|
get id(): string;
|
|
429
|
+
private autoCompactIfConfigured;
|
|
405
430
|
/**
|
|
406
431
|
* Start a new chapter
|
|
407
432
|
* @param title - Chapter title
|
|
@@ -524,7 +549,14 @@ declare class TrajectoryClient {
|
|
|
524
549
|
readonly defaultAgent?: string;
|
|
525
550
|
private projectId?;
|
|
526
551
|
private autoSave;
|
|
552
|
+
private readonly autoCompactCwd?;
|
|
553
|
+
private readonly autoCompact;
|
|
527
554
|
constructor(options?: TrajectoryClientOptions);
|
|
555
|
+
getAutoCompactOptions(): false | {
|
|
556
|
+
mechanical: boolean;
|
|
557
|
+
markdown: boolean;
|
|
558
|
+
};
|
|
559
|
+
getAutoCompactCwd(): string | undefined;
|
|
528
560
|
/**
|
|
529
561
|
* Initialize the client (creates storage directories, etc.)
|
|
530
562
|
* Must be called before using other methods.
|
|
@@ -862,6 +894,19 @@ declare function abandonTrajectory(trajectory: Trajectory, reason?: string): Tra
|
|
|
862
894
|
* Active trajectories go in active/, completed in completed/YYYY-MM/.
|
|
863
895
|
*/
|
|
864
896
|
|
|
897
|
+
/**
|
|
898
|
+
* Aggregated counts emitted by reconcileIndex for observability. Exposed
|
|
899
|
+
* on the return value so tests and callers can assert on counts without
|
|
900
|
+
* parsing log output.
|
|
901
|
+
*/
|
|
902
|
+
interface ReconcileSummary {
|
|
903
|
+
scanned: number;
|
|
904
|
+
added: number;
|
|
905
|
+
alreadyIndexed: number;
|
|
906
|
+
skippedMalformedJson: number;
|
|
907
|
+
skippedSchemaViolation: number;
|
|
908
|
+
skippedIoError: number;
|
|
909
|
+
}
|
|
865
910
|
/**
|
|
866
911
|
* File system storage adapter
|
|
867
912
|
*/
|
|
@@ -877,9 +922,34 @@ declare class FileStorage implements StorageAdapter {
|
|
|
877
922
|
*/
|
|
878
923
|
initialize(): Promise<void>;
|
|
879
924
|
/**
|
|
880
|
-
*
|
|
925
|
+
* Scan active/ and completed/ recursively and add any trajectory files
|
|
926
|
+
* missing from the index. Existing entries are preserved — reconcile
|
|
927
|
+
* only adds, never removes.
|
|
928
|
+
*
|
|
929
|
+
* Handles three on-disk layouts in completed/:
|
|
930
|
+
* - flat: completed/{id}.json (legacy workforce data)
|
|
931
|
+
* - monthly: completed/YYYY-MM/{id}.json (current save() writes)
|
|
932
|
+
* - nested: completed/.../{id}.json (defensive — any depth)
|
|
933
|
+
*
|
|
934
|
+
* Returns a ReconcileSummary so tests and CLI wrappers can observe
|
|
935
|
+
* outcomes without parsing logs. Only writes the index if anything was
|
|
936
|
+
* added.
|
|
881
937
|
*/
|
|
882
|
-
|
|
938
|
+
reconcileIndex(): Promise<ReconcileSummary>;
|
|
939
|
+
/**
|
|
940
|
+
* Recursively collect all .json file paths under `dir` into `out`.
|
|
941
|
+
* Silently treats a missing directory as empty.
|
|
942
|
+
*/
|
|
943
|
+
private walkJsonFilesInto;
|
|
944
|
+
/**
|
|
945
|
+
* Save a trajectory.
|
|
946
|
+
*
|
|
947
|
+
* Validates the input against the trajectory schema before touching
|
|
948
|
+
* disk. Closes the historical read/write asymmetry where save() would
|
|
949
|
+
* happily write data that the reader then rejected, producing files
|
|
950
|
+
* that could never be loaded back.
|
|
951
|
+
*/
|
|
952
|
+
save(input: Trajectory): Promise<void>;
|
|
883
953
|
/**
|
|
884
954
|
* Get a trajectory by ID
|
|
885
955
|
*/
|
|
@@ -906,7 +976,19 @@ declare class FileStorage implements StorageAdapter {
|
|
|
906
976
|
* Close storage (no-op for file storage)
|
|
907
977
|
*/
|
|
908
978
|
close(): Promise<void>;
|
|
979
|
+
/**
|
|
980
|
+
* Read a trajectory file and return a tagged result so callers can
|
|
981
|
+
* distinguish missing files, malformed JSON, and schema violations.
|
|
982
|
+
*
|
|
983
|
+
* Does NOT log. Callers choose whether to warn, swallow, or throw.
|
|
984
|
+
*/
|
|
909
985
|
private readTrajectoryFile;
|
|
986
|
+
/**
|
|
987
|
+
* Convenience wrapper for callers that only care whether they got a
|
|
988
|
+
* trajectory. Returns null for any failure and writes nothing to the
|
|
989
|
+
* console — so nothing leaks into test output or the CLI spinner.
|
|
990
|
+
*/
|
|
991
|
+
private readTrajectoryOrNull;
|
|
910
992
|
private loadIndex;
|
|
911
993
|
private saveIndex;
|
|
912
994
|
private updateIndex;
|
|
@@ -1001,17 +1083,17 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1001
1083
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
1002
1084
|
agents: z.ZodArray<z.ZodObject<{
|
|
1003
1085
|
name: z.ZodString;
|
|
1004
|
-
role: z.
|
|
1086
|
+
role: z.ZodString;
|
|
1005
1087
|
joinedAt: z.ZodString;
|
|
1006
1088
|
leftAt: z.ZodOptional<z.ZodString>;
|
|
1007
1089
|
}, "strip", z.ZodTypeAny, {
|
|
1008
1090
|
name: string;
|
|
1009
|
-
role:
|
|
1091
|
+
role: string;
|
|
1010
1092
|
joinedAt: string;
|
|
1011
1093
|
leftAt?: string | undefined;
|
|
1012
1094
|
}, {
|
|
1013
1095
|
name: string;
|
|
1014
|
-
role:
|
|
1096
|
+
role: string;
|
|
1015
1097
|
joinedAt: string;
|
|
1016
1098
|
leftAt?: string | undefined;
|
|
1017
1099
|
}>, "many">;
|
|
@@ -1023,14 +1105,14 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1023
1105
|
endedAt: z.ZodOptional<z.ZodString>;
|
|
1024
1106
|
events: z.ZodArray<z.ZodObject<{
|
|
1025
1107
|
ts: z.ZodNumber;
|
|
1026
|
-
type: z.
|
|
1108
|
+
type: z.ZodUnion<[z.ZodLiteral<"prompt">, z.ZodLiteral<"thinking">, z.ZodLiteral<"tool_call">, z.ZodLiteral<"tool_result">, z.ZodLiteral<"message_sent">, z.ZodLiteral<"message_received">, z.ZodLiteral<"decision">, z.ZodLiteral<"finding">, z.ZodLiteral<"reflection">, z.ZodLiteral<"note">, z.ZodLiteral<"error">, z.ZodString]>;
|
|
1027
1109
|
content: z.ZodString;
|
|
1028
1110
|
raw: z.ZodOptional<z.ZodUnknown>;
|
|
1029
1111
|
significance: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
1030
1112
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1031
1113
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1032
1114
|
}, "strip", z.ZodTypeAny, {
|
|
1033
|
-
type:
|
|
1115
|
+
type: string;
|
|
1034
1116
|
ts: number;
|
|
1035
1117
|
content: string;
|
|
1036
1118
|
raw?: unknown;
|
|
@@ -1038,7 +1120,7 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1038
1120
|
tags?: string[] | undefined;
|
|
1039
1121
|
confidence?: number | undefined;
|
|
1040
1122
|
}, {
|
|
1041
|
-
type:
|
|
1123
|
+
type: string;
|
|
1042
1124
|
ts: number;
|
|
1043
1125
|
content: string;
|
|
1044
1126
|
raw?: unknown;
|
|
@@ -1052,7 +1134,7 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1052
1134
|
agentName: string;
|
|
1053
1135
|
startedAt: string;
|
|
1054
1136
|
events: {
|
|
1055
|
-
type:
|
|
1137
|
+
type: string;
|
|
1056
1138
|
ts: number;
|
|
1057
1139
|
content: string;
|
|
1058
1140
|
raw?: unknown;
|
|
@@ -1067,7 +1149,7 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1067
1149
|
agentName: string;
|
|
1068
1150
|
startedAt: string;
|
|
1069
1151
|
events: {
|
|
1070
|
-
type:
|
|
1152
|
+
type: string;
|
|
1071
1153
|
ts: number;
|
|
1072
1154
|
content: string;
|
|
1073
1155
|
raw?: unknown;
|
|
@@ -1156,10 +1238,11 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1156
1238
|
suggestions?: string[] | undefined;
|
|
1157
1239
|
timeSpent?: string | undefined;
|
|
1158
1240
|
}>>;
|
|
1159
|
-
commits: z.ZodArray<z.ZodString, "many"
|
|
1160
|
-
filesChanged: z.ZodArray<z.ZodString, "many"
|
|
1161
|
-
projectId: z.ZodString
|
|
1162
|
-
|
|
1241
|
+
commits: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1242
|
+
filesChanged: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1243
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1244
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
1245
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1163
1246
|
_trace: z.ZodOptional<z.ZodObject<{
|
|
1164
1247
|
startRef: z.ZodString;
|
|
1165
1248
|
endRef: z.ZodOptional<z.ZodString>;
|
|
@@ -1190,7 +1273,7 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1190
1273
|
};
|
|
1191
1274
|
agents: {
|
|
1192
1275
|
name: string;
|
|
1193
|
-
role:
|
|
1276
|
+
role: string;
|
|
1194
1277
|
joinedAt: string;
|
|
1195
1278
|
leftAt?: string | undefined;
|
|
1196
1279
|
}[];
|
|
@@ -1200,7 +1283,7 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1200
1283
|
agentName: string;
|
|
1201
1284
|
startedAt: string;
|
|
1202
1285
|
events: {
|
|
1203
|
-
type:
|
|
1286
|
+
type: string;
|
|
1204
1287
|
ts: number;
|
|
1205
1288
|
content: string;
|
|
1206
1289
|
raw?: unknown;
|
|
@@ -1212,7 +1295,6 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1212
1295
|
}[];
|
|
1213
1296
|
commits: string[];
|
|
1214
1297
|
filesChanged: string[];
|
|
1215
|
-
projectId: string;
|
|
1216
1298
|
completedAt?: string | undefined;
|
|
1217
1299
|
retrospective?: {
|
|
1218
1300
|
confidence: number;
|
|
@@ -1233,6 +1315,8 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1233
1315
|
suggestions?: string[] | undefined;
|
|
1234
1316
|
timeSpent?: string | undefined;
|
|
1235
1317
|
} | undefined;
|
|
1318
|
+
projectId?: string | undefined;
|
|
1319
|
+
workflowId?: string | undefined;
|
|
1236
1320
|
_trace?: {
|
|
1237
1321
|
startRef: string;
|
|
1238
1322
|
endRef?: string | undefined;
|
|
@@ -1241,7 +1325,6 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1241
1325
|
}, {
|
|
1242
1326
|
status: "active" | "completed" | "abandoned";
|
|
1243
1327
|
id: string;
|
|
1244
|
-
tags: string[];
|
|
1245
1328
|
startedAt: string;
|
|
1246
1329
|
version: 1;
|
|
1247
1330
|
task: {
|
|
@@ -1255,7 +1338,7 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1255
1338
|
};
|
|
1256
1339
|
agents: {
|
|
1257
1340
|
name: string;
|
|
1258
|
-
role:
|
|
1341
|
+
role: string;
|
|
1259
1342
|
joinedAt: string;
|
|
1260
1343
|
leftAt?: string | undefined;
|
|
1261
1344
|
}[];
|
|
@@ -1265,7 +1348,7 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1265
1348
|
agentName: string;
|
|
1266
1349
|
startedAt: string;
|
|
1267
1350
|
events: {
|
|
1268
|
-
type:
|
|
1351
|
+
type: string;
|
|
1269
1352
|
ts: number;
|
|
1270
1353
|
content: string;
|
|
1271
1354
|
raw?: unknown;
|
|
@@ -1275,9 +1358,7 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1275
1358
|
}[];
|
|
1276
1359
|
endedAt?: string | undefined;
|
|
1277
1360
|
}[];
|
|
1278
|
-
|
|
1279
|
-
filesChanged: string[];
|
|
1280
|
-
projectId: string;
|
|
1361
|
+
tags?: string[] | undefined;
|
|
1281
1362
|
completedAt?: string | undefined;
|
|
1282
1363
|
retrospective?: {
|
|
1283
1364
|
confidence: number;
|
|
@@ -1298,6 +1379,10 @@ declare const TrajectorySchema: z.ZodObject<{
|
|
|
1298
1379
|
suggestions?: string[] | undefined;
|
|
1299
1380
|
timeSpent?: string | undefined;
|
|
1300
1381
|
} | undefined;
|
|
1382
|
+
commits?: string[] | undefined;
|
|
1383
|
+
filesChanged?: string[] | undefined;
|
|
1384
|
+
projectId?: string | undefined;
|
|
1385
|
+
workflowId?: string | undefined;
|
|
1301
1386
|
_trace?: {
|
|
1302
1387
|
startRef: string;
|
|
1303
1388
|
endRef?: string | undefined;
|
|
@@ -1456,14 +1541,14 @@ declare function validateCompleteInput(data: unknown): {
|
|
|
1456
1541
|
*/
|
|
1457
1542
|
declare const TrajectoryEventSchema: z.ZodObject<{
|
|
1458
1543
|
ts: z.ZodNumber;
|
|
1459
|
-
type: z.
|
|
1544
|
+
type: z.ZodUnion<[z.ZodLiteral<"prompt">, z.ZodLiteral<"thinking">, z.ZodLiteral<"tool_call">, z.ZodLiteral<"tool_result">, z.ZodLiteral<"message_sent">, z.ZodLiteral<"message_received">, z.ZodLiteral<"decision">, z.ZodLiteral<"finding">, z.ZodLiteral<"reflection">, z.ZodLiteral<"note">, z.ZodLiteral<"error">, z.ZodString]>;
|
|
1460
1545
|
content: z.ZodString;
|
|
1461
1546
|
raw: z.ZodOptional<z.ZodUnknown>;
|
|
1462
1547
|
significance: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
1463
1548
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1464
1549
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1465
1550
|
}, "strip", z.ZodTypeAny, {
|
|
1466
|
-
type:
|
|
1551
|
+
type: string;
|
|
1467
1552
|
ts: number;
|
|
1468
1553
|
content: string;
|
|
1469
1554
|
raw?: unknown;
|
|
@@ -1471,7 +1556,7 @@ declare const TrajectoryEventSchema: z.ZodObject<{
|
|
|
1471
1556
|
tags?: string[] | undefined;
|
|
1472
1557
|
confidence?: number | undefined;
|
|
1473
1558
|
}, {
|
|
1474
|
-
type:
|
|
1559
|
+
type: string;
|
|
1475
1560
|
ts: number;
|
|
1476
1561
|
content: string;
|
|
1477
1562
|
raw?: unknown;
|
|
@@ -1491,14 +1576,14 @@ declare const ChapterSchema: z.ZodObject<{
|
|
|
1491
1576
|
endedAt: z.ZodOptional<z.ZodString>;
|
|
1492
1577
|
events: z.ZodArray<z.ZodObject<{
|
|
1493
1578
|
ts: z.ZodNumber;
|
|
1494
|
-
type: z.
|
|
1579
|
+
type: z.ZodUnion<[z.ZodLiteral<"prompt">, z.ZodLiteral<"thinking">, z.ZodLiteral<"tool_call">, z.ZodLiteral<"tool_result">, z.ZodLiteral<"message_sent">, z.ZodLiteral<"message_received">, z.ZodLiteral<"decision">, z.ZodLiteral<"finding">, z.ZodLiteral<"reflection">, z.ZodLiteral<"note">, z.ZodLiteral<"error">, z.ZodString]>;
|
|
1495
1580
|
content: z.ZodString;
|
|
1496
1581
|
raw: z.ZodOptional<z.ZodUnknown>;
|
|
1497
1582
|
significance: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
1498
1583
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1499
1584
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1500
1585
|
}, "strip", z.ZodTypeAny, {
|
|
1501
|
-
type:
|
|
1586
|
+
type: string;
|
|
1502
1587
|
ts: number;
|
|
1503
1588
|
content: string;
|
|
1504
1589
|
raw?: unknown;
|
|
@@ -1506,7 +1591,7 @@ declare const ChapterSchema: z.ZodObject<{
|
|
|
1506
1591
|
tags?: string[] | undefined;
|
|
1507
1592
|
confidence?: number | undefined;
|
|
1508
1593
|
}, {
|
|
1509
|
-
type:
|
|
1594
|
+
type: string;
|
|
1510
1595
|
ts: number;
|
|
1511
1596
|
content: string;
|
|
1512
1597
|
raw?: unknown;
|
|
@@ -1520,7 +1605,7 @@ declare const ChapterSchema: z.ZodObject<{
|
|
|
1520
1605
|
agentName: string;
|
|
1521
1606
|
startedAt: string;
|
|
1522
1607
|
events: {
|
|
1523
|
-
type:
|
|
1608
|
+
type: string;
|
|
1524
1609
|
ts: number;
|
|
1525
1610
|
content: string;
|
|
1526
1611
|
raw?: unknown;
|
|
@@ -1535,7 +1620,7 @@ declare const ChapterSchema: z.ZodObject<{
|
|
|
1535
1620
|
agentName: string;
|
|
1536
1621
|
startedAt: string;
|
|
1537
1622
|
events: {
|
|
1538
|
-
type:
|
|
1623
|
+
type: string;
|
|
1539
1624
|
ts: number;
|
|
1540
1625
|
content: string;
|
|
1541
1626
|
raw?: unknown;
|
|
@@ -1689,4 +1774,4 @@ declare function getCommitsBetween(startRef: string, endRef?: string): CommitInf
|
|
|
1689
1774
|
*/
|
|
1690
1775
|
declare function getFilesChangedBetween(startRef: string, endRef?: string): string[];
|
|
1691
1776
|
|
|
1692
|
-
export { type AddChapterInput as A, addDecision as B, type Chapter as C, type Decision as D, type EventSignificance as E, FileStorage as F, addEvent as G, completeTrajectory as H, createTrajectory as I, formatTrailer as J, getCommitsBetween as K, getFilesChangedBetween as L, getTrajectoryFromCommit as M, parseTrajectoryFromMessage as N, trajectory as O, validateCompleteInput as P, validateCreateInput as Q, type Retrospective as R, StorageAdapter as S, type Trajectory as T, validateTrajectory as U, type Alternative as V, type Finding as W, type FindingCategory as X, type AddEventInput as a, type AgentParticipation as b, ChapterSchema as c, type CommitInfo as d, type CompleteTrajectoryInput as e, type CreateTrajectoryInput as f, DecisionSchema as g, RetrospectiveSchema as h, type StorageConfig as i, TRAJECTORY_TRAILER_KEY as j, type TaskReference as k, type TaskSource as l, TrajectoryBuilder as m, TrajectoryClient as n, type TrajectoryClientOptions as o, TrajectoryError as p, type TrajectoryEvent as q, TrajectoryEventSchema as r, type TrajectoryEventType as s, type TrajectoryQuery as t, TrajectorySchema as u, TrajectorySession as v, type TrajectoryStatus as w, type TrajectorySummary as x, abandonTrajectory as y, addChapter as z };
|
|
1777
|
+
export { type AddChapterInput as A, addDecision as B, type Chapter as C, type Decision as D, type EventSignificance as E, FileStorage as F, addEvent as G, completeTrajectory as H, createTrajectory as I, formatTrailer as J, getCommitsBetween as K, getFilesChangedBetween as L, getTrajectoryFromCommit as M, parseTrajectoryFromMessage as N, trajectory as O, validateCompleteInput as P, validateCreateInput as Q, type Retrospective as R, StorageAdapter as S, type Trajectory as T, validateTrajectory as U, type Alternative as V, type Finding as W, type FindingCategory as X, compactWorkflow as Y, type AddEventInput as a, type AgentParticipation as b, ChapterSchema as c, type CommitInfo as d, type CompleteTrajectoryInput as e, type CreateTrajectoryInput as f, DecisionSchema as g, RetrospectiveSchema as h, type StorageConfig as i, TRAJECTORY_TRAILER_KEY as j, type TaskReference as k, type TaskSource as l, TrajectoryBuilder as m, TrajectoryClient as n, type TrajectoryClientOptions as o, TrajectoryError as p, type TrajectoryEvent as q, TrajectoryEventSchema as r, type TrajectoryEventType as s, type TrajectoryQuery as t, TrajectorySchema as u, TrajectorySession as v, type TrajectoryStatus as w, type TrajectorySummary as x, abandonTrajectory as y, addChapter as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Trajectory } from './index-
|
|
2
|
-
export { A as AddChapterInput, a as AddEventInput, b as AgentParticipation, C as Chapter, c as ChapterSchema, d as CommitInfo, e as CompleteTrajectoryInput, f as CreateTrajectoryInput, D as Decision, g as DecisionSchema, E as EventSignificance, F as FileStorage, R as Retrospective, h as RetrospectiveSchema, S as StorageAdapter, i as StorageConfig, j as TRAJECTORY_TRAILER_KEY, k as TaskReference, l as TaskSource, m as TrajectoryBuilder, n as TrajectoryClient, o as TrajectoryClientOptions, p as TrajectoryError, q as TrajectoryEvent, r as TrajectoryEventSchema, s as TrajectoryEventType, t as TrajectoryQuery, u as TrajectorySchema, v as TrajectorySession, w as TrajectoryStatus, x as TrajectorySummary, y as abandonTrajectory, z as addChapter, B as addDecision, G as addEvent, H as completeTrajectory, I as createTrajectory, J as formatTrailer, K as getCommitsBetween, L as getFilesChangedBetween, M as getTrajectoryFromCommit, N as parseTrajectoryFromMessage, O as trajectory, P as validateCompleteInput, Q as validateCreateInput, U as validateTrajectory } from './index-
|
|
1
|
+
import { T as Trajectory } from './index-7tzw_CMS.js';
|
|
2
|
+
export { A as AddChapterInput, a as AddEventInput, b as AgentParticipation, C as Chapter, c as ChapterSchema, d as CommitInfo, e as CompleteTrajectoryInput, f as CreateTrajectoryInput, D as Decision, g as DecisionSchema, E as EventSignificance, F as FileStorage, R as Retrospective, h as RetrospectiveSchema, S as StorageAdapter, i as StorageConfig, j as TRAJECTORY_TRAILER_KEY, k as TaskReference, l as TaskSource, m as TrajectoryBuilder, n as TrajectoryClient, o as TrajectoryClientOptions, p as TrajectoryError, q as TrajectoryEvent, r as TrajectoryEventSchema, s as TrajectoryEventType, t as TrajectoryQuery, u as TrajectorySchema, v as TrajectorySession, w as TrajectoryStatus, x as TrajectorySummary, y as abandonTrajectory, z as addChapter, B as addDecision, G as addEvent, H as completeTrajectory, I as createTrajectory, J as formatTrailer, K as getCommitsBetween, L as getFilesChangedBetween, M as getTrajectoryFromCommit, N as parseTrajectoryFromMessage, O as trajectory, P as validateCompleteInput, Q as validateCreateInput, U as validateTrajectory } from './index-7tzw_CMS.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.js
CHANGED
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AddChapterInput, a as AddEventInput, b as AgentParticipation, V as Alternative, C as Chapter, d as CommitInfo, e as CompleteTrajectoryInput, f as CreateTrajectoryInput, D as Decision, E as EventSignificance, F as FileStorage, W as Finding, X as FindingCategory, R as Retrospective, S as StorageAdapter, i as StorageConfig, j as TRAJECTORY_TRAILER_KEY, k as TaskReference, l as TaskSource, T as Trajectory, m as TrajectoryBuilder, n as TrajectoryClient, o as TrajectoryClientOptions, p as TrajectoryError, q as TrajectoryEvent, s as TrajectoryEventType, t as TrajectoryQuery, u as TrajectorySchema, v as TrajectorySession, w as TrajectoryStatus, x as TrajectorySummary, J as formatTrailer, K as getCommitsBetween, L as getFilesChangedBetween, M as getTrajectoryFromCommit, N as parseTrajectoryFromMessage, O as trajectory, P as validateCompleteInput, Q as validateCreateInput, U as validateTrajectory } from '../index-
|
|
1
|
+
export { A as AddChapterInput, a as AddEventInput, b as AgentParticipation, V as Alternative, C as Chapter, d as CommitInfo, e as CompleteTrajectoryInput, f as CreateTrajectoryInput, D as Decision, E as EventSignificance, F as FileStorage, W as Finding, X as FindingCategory, R as Retrospective, S as StorageAdapter, i as StorageConfig, j as TRAJECTORY_TRAILER_KEY, k as TaskReference, l as TaskSource, T as Trajectory, m as TrajectoryBuilder, n as TrajectoryClient, o as TrajectoryClientOptions, p as TrajectoryError, q as TrajectoryEvent, s as TrajectoryEventType, t as TrajectoryQuery, u as TrajectorySchema, v as TrajectorySession, w as TrajectoryStatus, x as TrajectorySummary, Y as compactWorkflow, J as formatTrailer, K as getCommitsBetween, L as getFilesChangedBetween, M as getTrajectoryFromCommit, N as parseTrajectoryFromMessage, O as trajectory, P as validateCompleteInput, Q as validateCreateInput, U as validateTrajectory } from '../index-7tzw_CMS.js';
|
|
2
2
|
import 'zod';
|
package/dist/sdk/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
TrajectoryError,
|
|
7
7
|
TrajectorySchema,
|
|
8
8
|
TrajectorySession,
|
|
9
|
+
compactWorkflow,
|
|
9
10
|
formatTrailer,
|
|
10
11
|
getCommitsBetween,
|
|
11
12
|
getFilesChangedBetween,
|
|
@@ -15,7 +16,7 @@ import {
|
|
|
15
16
|
validateCompleteInput,
|
|
16
17
|
validateCreateInput,
|
|
17
18
|
validateTrajectory
|
|
18
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-W222QB6V.js";
|
|
19
20
|
export {
|
|
20
21
|
FileStorage,
|
|
21
22
|
TRAJECTORY_TRAILER_KEY,
|
|
@@ -24,6 +25,7 @@ export {
|
|
|
24
25
|
TrajectoryError,
|
|
25
26
|
TrajectorySchema,
|
|
26
27
|
TrajectorySession,
|
|
28
|
+
compactWorkflow,
|
|
27
29
|
formatTrailer,
|
|
28
30
|
getCommitsBetween,
|
|
29
31
|
getFilesChangedBetween,
|