agent-relay 4.0.22 → 4.0.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.
Files changed (42) hide show
  1. package/dist/index.cjs +18 -7
  2. package/dist/src/cli/commands/setup.d.ts.map +1 -1
  3. package/dist/src/cli/commands/setup.js +28 -7
  4. package/dist/src/cli/commands/setup.js.map +1 -1
  5. package/dist/src/cli/lib/broker-lifecycle.d.ts.map +1 -1
  6. package/dist/src/cli/lib/broker-lifecycle.js +9 -2
  7. package/dist/src/cli/lib/broker-lifecycle.js.map +1 -1
  8. package/node_modules/@agent-relay/cloud/package.json +2 -2
  9. package/node_modules/@agent-relay/config/package.json +1 -1
  10. package/node_modules/@agent-relay/hooks/package.json +4 -4
  11. package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.d.ts.map +1 -1
  12. package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.js +13 -4
  13. package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.js.map +1 -1
  14. package/node_modules/@agent-relay/sdk/package.json +2 -2
  15. package/node_modules/@agent-relay/telemetry/package.json +1 -1
  16. package/node_modules/@agent-relay/trajectory/package.json +2 -2
  17. package/node_modules/@agent-relay/user-directory/package.json +2 -2
  18. package/node_modules/@agent-relay/utils/package.json +2 -2
  19. package/node_modules/agent-trajectories/README.md +7 -4
  20. package/node_modules/agent-trajectories/dist/{chunk-W222QB6V.js → chunk-2XT3DOJC.js} +11 -5
  21. package/node_modules/agent-trajectories/dist/chunk-2XT3DOJC.js.map +1 -0
  22. package/node_modules/agent-trajectories/dist/cli/index.js +98 -6
  23. package/node_modules/agent-trajectories/dist/cli/index.js.map +1 -1
  24. package/node_modules/agent-trajectories/dist/{index-7tzw_CMS.d.ts → index-thTh5iI8.d.ts} +208 -190
  25. package/node_modules/agent-trajectories/dist/index.d.ts +2 -2
  26. package/node_modules/agent-trajectories/dist/index.js +1 -1
  27. package/node_modules/agent-trajectories/dist/sdk/index.d.ts +1 -1
  28. package/node_modules/agent-trajectories/dist/sdk/index.js +1 -1
  29. package/node_modules/agent-trajectories/package.json +6 -3
  30. package/package.json +9 -9
  31. package/packages/cloud/package.json +2 -2
  32. package/packages/config/package.json +1 -1
  33. package/packages/hooks/package.json +4 -4
  34. package/packages/sdk/dist/workflows/trajectory.d.ts.map +1 -1
  35. package/packages/sdk/dist/workflows/trajectory.js +13 -4
  36. package/packages/sdk/dist/workflows/trajectory.js.map +1 -1
  37. package/packages/sdk/package.json +2 -2
  38. package/packages/telemetry/package.json +1 -1
  39. package/packages/trajectory/package.json +2 -2
  40. package/packages/user-directory/package.json +2 -2
  41. package/packages/utils/package.json +2 -2
  42. package/node_modules/agent-trajectories/dist/chunk-W222QB6V.js.map +0 -1
@@ -10,28 +10,34 @@ import { z } from 'zod';
10
10
  /**
11
11
  * Supported task source systems
12
12
  */
13
- type TaskSourceSystem = "beads" | "github" | "linear" | "jira" | "plain" | string;
13
+ type TaskSourceSystem =
14
+ | "beads"
15
+ | "github"
16
+ | "linear"
17
+ | "jira"
18
+ | "plain"
19
+ | string;
14
20
  /**
15
21
  * Reference to an external task/issue
16
22
  */
17
23
  interface TaskSource {
18
- /** The task management system (e.g., 'github', 'linear') */
19
- system: TaskSourceSystem;
20
- /** The external ID (e.g., 'GH#123', 'ENG-456') */
21
- id: string;
22
- /** Optional URL to the external task */
23
- url?: string;
24
+ /** The task management system (e.g., 'github', 'linear') */
25
+ system: TaskSourceSystem;
26
+ /** The external ID (e.g., 'GH#123', 'ENG-456') */
27
+ id: string;
28
+ /** Optional URL to the external task */
29
+ url?: string;
24
30
  }
25
31
  /**
26
32
  * Task reference - either standalone or linked to external system
27
33
  */
28
34
  interface TaskReference {
29
- /** Human-readable task title */
30
- title: string;
31
- /** Optional description */
32
- description?: string;
33
- /** Optional link to external task system */
34
- source?: TaskSource;
35
+ /** Human-readable task title */
36
+ title: string;
37
+ /** Optional description */
38
+ description?: string;
39
+ /** Optional link to external task system */
40
+ source?: TaskSource;
35
41
  }
36
42
  /**
37
43
  * Trajectory status
@@ -40,7 +46,18 @@ type TrajectoryStatus = "active" | "completed" | "abandoned";
40
46
  /**
41
47
  * Event types that can be recorded in a trajectory
42
48
  */
43
- type TrajectoryEventType = "prompt" | "thinking" | "tool_call" | "tool_result" | "message_sent" | "message_received" | "decision" | "finding" | "reflection" | "note" | "error" | (string & {});
49
+ type TrajectoryEventType =
50
+ | "prompt"
51
+ | "thinking"
52
+ | "tool_call"
53
+ | "tool_result"
54
+ | "message_sent"
55
+ | "message_received"
56
+ | "decision"
57
+ | "finding"
58
+ | "reflection"
59
+ | "note"
60
+ | "error";
44
61
  /**
45
62
  * Significance level for events
46
63
  */
@@ -49,251 +66,249 @@ type EventSignificance = "low" | "medium" | "high" | "critical";
49
66
  * A single event in the trajectory timeline
50
67
  */
51
68
  interface TrajectoryEvent {
52
- /** Unix timestamp in milliseconds */
53
- ts: number;
54
- /** Type of event */
55
- type: TrajectoryEventType;
56
- /** Human-readable summary of the event */
57
- content: string;
58
- /** Full raw data (optional, for debugging) */
59
- raw?: unknown;
60
- /** Importance level */
61
- significance?: EventSignificance;
62
- /** Confidence level for this event (0-1) */
63
- confidence?: number;
64
- /** User-defined tags */
65
- tags?: string[];
69
+ /** Unix timestamp in milliseconds */
70
+ ts: number;
71
+ /** Type of event */
72
+ type: TrajectoryEventType;
73
+ /** Human-readable summary of the event */
74
+ content: string;
75
+ /** Full raw data (optional, for debugging) */
76
+ raw?: unknown;
77
+ /** Importance level */
78
+ significance?: EventSignificance;
79
+ /** Confidence level for this event (0-1) */
80
+ confidence?: number;
81
+ /** User-defined tags */
82
+ tags?: string[];
66
83
  }
67
84
  /**
68
85
  * An alternative option that was considered
69
86
  */
70
87
  interface Alternative {
71
- /** The alternative option */
72
- option: string;
73
- /** Why this alternative was not chosen */
74
- reason?: string;
88
+ /** The alternative option */
89
+ option: string;
90
+ /** Why this alternative was not chosen */
91
+ reason?: string;
75
92
  }
76
93
  /**
77
94
  * A structured decision record
78
95
  */
79
96
  interface Decision {
80
- /** What was the choice/question? */
81
- question: string;
82
- /** What was chosen */
83
- chosen: string;
84
- /** What alternatives were considered */
85
- alternatives: Alternative[];
86
- /** Why this choice was made */
87
- reasoning: string;
88
- /** Confidence in this decision (0-1) */
89
- confidence?: number;
97
+ /** What was the choice/question? */
98
+ question: string;
99
+ /** What was chosen */
100
+ chosen: string;
101
+ /** What alternatives were considered */
102
+ alternatives: Alternative[];
103
+ /** Why this choice was made */
104
+ reasoning: string;
105
+ /** Confidence in this decision (0-1) */
106
+ confidence?: number;
90
107
  }
91
108
  /**
92
109
  * Finding category types
93
110
  */
94
- type FindingCategory = "bug" | "pattern" | "optimization" | "security" | "documentation" | "dependency" | "other";
111
+ type FindingCategory =
112
+ | "bug"
113
+ | "pattern"
114
+ | "optimization"
115
+ | "security"
116
+ | "documentation"
117
+ | "dependency"
118
+ | "other";
95
119
  /**
96
120
  * A structured finding record - captures discoveries made during exploration
97
121
  */
98
122
  interface Finding {
99
- /** What was found */
100
- what: string;
101
- /** Where it was found (file path, component, etc.) */
102
- where: string;
103
- /** Why this finding is significant */
104
- significance: string;
105
- /** Category of the finding */
106
- category: FindingCategory;
107
- /** Suggested action or follow-up */
108
- suggestedAction?: string;
109
- /** Confidence in this finding (0-1) */
110
- confidence?: number;
123
+ /** What was found */
124
+ what: string;
125
+ /** Where it was found (file path, component, etc.) */
126
+ where: string;
127
+ /** Why this finding is significant */
128
+ significance: string;
129
+ /** Category of the finding */
130
+ category: FindingCategory;
131
+ /** Suggested action or follow-up */
132
+ suggestedAction?: string;
133
+ /** Confidence in this finding (0-1) */
134
+ confidence?: number;
111
135
  }
112
136
  /**
113
137
  * Agent participation record
114
138
  */
115
139
  interface AgentParticipation {
116
- /** Agent identifier */
117
- name: string;
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;
125
- /** When the agent joined */
126
- joinedAt: string;
127
- /** When the agent left (if applicable) */
128
- leftAt?: string;
140
+ /** Agent identifier */
141
+ name: string;
142
+ /** Role in the trajectory */
143
+ role: "lead" | "contributor" | "reviewer";
144
+ /** When the agent joined */
145
+ joinedAt: string;
146
+ /** When the agent left (if applicable) */
147
+ leftAt?: string;
129
148
  }
130
149
  /**
131
150
  * A chapter represents a logical phase of work
132
151
  */
133
152
  interface Chapter {
134
- /** Unique chapter ID */
135
- id: string;
136
- /** Chapter title (e.g., "Initial exploration", "Implementation") */
137
- title: string;
138
- /** Which agent is working in this chapter */
139
- agentName: string;
140
- /** When the chapter started (ISO timestamp) */
141
- startedAt: string;
142
- /** When the chapter ended (ISO timestamp, undefined if current) */
143
- endedAt?: string;
144
- /** Events that occurred in this chapter */
145
- events: TrajectoryEvent[];
153
+ /** Unique chapter ID */
154
+ id: string;
155
+ /** Chapter title (e.g., "Initial exploration", "Implementation") */
156
+ title: string;
157
+ /** Which agent is working in this chapter */
158
+ agentName: string;
159
+ /** When the chapter started (ISO timestamp) */
160
+ startedAt: string;
161
+ /** When the chapter ended (ISO timestamp, undefined if current) */
162
+ endedAt?: string;
163
+ /** Events that occurred in this chapter */
164
+ events: TrajectoryEvent[];
146
165
  }
147
166
  /**
148
167
  * Retrospective reflection on the completed work
149
168
  */
150
169
  interface Retrospective {
151
- /** Brief summary of what was accomplished */
152
- summary: string;
153
- /** How the work was approached */
154
- approach: string;
155
- /** Key decisions made during the work */
156
- decisions?: Decision[];
157
- /** What was unexpectedly difficult */
158
- challenges?: string[];
159
- /** What was learned */
160
- learnings?: string[];
161
- /** Suggestions for improvement */
162
- suggestions?: string[];
163
- /** Agent's confidence in the solution (0-1) */
164
- confidence: number;
165
- /** Total time spent (human-readable) */
166
- timeSpent?: string;
170
+ /** Brief summary of what was accomplished */
171
+ summary: string;
172
+ /** How the work was approached */
173
+ approach: string;
174
+ /** Key decisions made during the work */
175
+ decisions?: Decision[];
176
+ /** What was unexpectedly difficult */
177
+ challenges?: string[];
178
+ /** What was learned */
179
+ learnings?: string[];
180
+ /** Suggestions for improvement */
181
+ suggestions?: string[];
182
+ /** Agent's confidence in the solution (0-1) */
183
+ confidence: number;
184
+ /** Total time spent (human-readable) */
185
+ timeSpent?: string;
167
186
  }
168
187
  /**
169
188
  * The main Trajectory type - represents the complete record of work on a task
170
189
  */
171
190
  interface Trajectory {
172
- /** Unique trajectory ID (format: traj_xxxxxxxxxxxx) */
173
- id: string;
174
- /** Schema version for forward compatibility */
175
- version: 1;
176
- /** The task being worked on */
177
- task: TaskReference;
178
- /** Current status */
179
- status: TrajectoryStatus;
180
- /** When work started (ISO timestamp) */
181
- startedAt: string;
182
- /** When work completed (ISO timestamp) */
183
- completedAt?: string;
184
- /** Agents who participated */
185
- agents: AgentParticipation[];
186
- /** Logical phases of work */
187
- chapters: Chapter[];
188
- /** Final reflection (only on completion) */
189
- retrospective?: Retrospective;
190
- /** Git commits produced */
191
- commits: string[];
192
- /** Files that were modified */
193
- filesChanged: string[];
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;
198
- /** User-defined tags */
199
- tags: string[];
200
- /** Trace information for code attribution */
201
- _trace?: TrajectoryTraceRef;
191
+ /** Unique trajectory ID (format: traj_xxxxxxxxxxxx) */
192
+ id: string;
193
+ /** Schema version for forward compatibility */
194
+ version: 1;
195
+ /** The task being worked on */
196
+ task: TaskReference;
197
+ /** Current status */
198
+ status: TrajectoryStatus;
199
+ /** When work started (ISO timestamp) */
200
+ startedAt: string;
201
+ /** When work completed (ISO timestamp) */
202
+ completedAt?: string;
203
+ /** Agents who participated */
204
+ agents: AgentParticipation[];
205
+ /** Logical phases of work */
206
+ chapters: Chapter[];
207
+ /** Final reflection (only on completion) */
208
+ retrospective?: Retrospective;
209
+ /** Git commits produced */
210
+ commits: string[];
211
+ /** Files that were modified */
212
+ filesChanged: string[];
213
+ /** Project identifier */
214
+ projectId: string;
215
+ /** User-defined tags */
216
+ tags: string[];
217
+ /** Trace information for code attribution */
218
+ _trace?: TrajectoryTraceRef;
202
219
  }
203
220
  /**
204
221
  * Summary of a trajectory for listing/indexing
205
222
  */
206
223
  interface TrajectorySummary {
207
- id: string;
208
- title: string;
209
- status: TrajectoryStatus;
210
- startedAt: string;
211
- completedAt?: string;
212
- confidence?: number;
213
- chapterCount: number;
214
- decisionCount: number;
224
+ id: string;
225
+ title: string;
226
+ status: TrajectoryStatus;
227
+ startedAt: string;
228
+ completedAt?: string;
229
+ confidence?: number;
230
+ chapterCount: number;
231
+ decisionCount: number;
215
232
  }
216
233
  /**
217
234
  * Input for creating a new trajectory
218
235
  */
219
236
  interface CreateTrajectoryInput {
220
- /** Task title */
221
- title: string;
222
- /** Optional task description */
223
- description?: string;
224
- /** Optional external task reference */
225
- source?: TaskSource;
226
- /** Optional project ID (defaults to cwd) */
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;
230
- /** Optional initial tags */
231
- tags?: string[];
237
+ /** Task title */
238
+ title: string;
239
+ /** Optional task description */
240
+ description?: string;
241
+ /** Optional external task reference */
242
+ source?: TaskSource;
243
+ /** Optional project ID (defaults to cwd) */
244
+ projectId?: string;
245
+ /** Optional initial tags */
246
+ tags?: string[];
232
247
  }
233
248
  /**
234
249
  * Input for adding a chapter
235
250
  */
236
251
  interface AddChapterInput {
237
- /** Chapter title */
238
- title: string;
239
- /** Agent name */
240
- agentName: string;
252
+ /** Chapter title */
253
+ title: string;
254
+ /** Agent name */
255
+ agentName: string;
241
256
  }
242
257
  /**
243
258
  * Input for adding an event
244
259
  */
245
260
  interface AddEventInput {
246
- /** Event type */
247
- type: TrajectoryEventType;
248
- /** Human-readable content */
249
- content: string;
250
- /** Optional raw data */
251
- raw?: unknown;
252
- /** Optional significance */
253
- significance?: EventSignificance;
254
- /** Optional tags */
255
- tags?: string[];
261
+ /** Event type */
262
+ type: TrajectoryEventType;
263
+ /** Human-readable content */
264
+ content: string;
265
+ /** Optional raw data */
266
+ raw?: unknown;
267
+ /** Optional significance */
268
+ significance?: EventSignificance;
269
+ /** Optional tags */
270
+ tags?: string[];
256
271
  }
257
272
  /**
258
273
  * Input for completing a trajectory
259
274
  */
260
275
  interface CompleteTrajectoryInput {
261
- summary: string;
262
- approach: string;
263
- decisions?: Decision[];
264
- challenges?: string[];
265
- learnings?: string[];
266
- suggestions?: string[];
267
- confidence: number;
276
+ summary: string;
277
+ approach: string;
278
+ decisions?: Decision[];
279
+ challenges?: string[];
280
+ learnings?: string[];
281
+ suggestions?: string[];
282
+ confidence: number;
268
283
  }
269
284
  /**
270
285
  * Query options for listing trajectories
271
286
  */
272
287
  interface TrajectoryQuery {
273
- /** Filter by status */
274
- status?: TrajectoryStatus;
275
- /** Filter by date range */
276
- since?: string;
277
- until?: string;
278
- /** Maximum results */
279
- limit?: number;
280
- /** Offset for pagination */
281
- offset?: number;
282
- /** Sort field */
283
- sortBy?: "startedAt" | "completedAt" | "title";
284
- /** Sort direction */
285
- sortOrder?: "asc" | "desc";
288
+ /** Filter by status */
289
+ status?: TrajectoryStatus;
290
+ /** Filter by date range */
291
+ since?: string;
292
+ until?: string;
293
+ /** Maximum results */
294
+ limit?: number;
295
+ /** Offset for pagination */
296
+ offset?: number;
297
+ /** Sort field */
298
+ sortBy?: "startedAt" | "completedAt" | "title";
299
+ /** Sort direction */
300
+ sortOrder?: "asc" | "desc";
286
301
  }
287
302
  /**
288
303
  * Reference to trace information within a trajectory
289
304
  */
290
305
  interface TrajectoryTraceRef {
291
- /** Git ref (commit hash) when trace started */
292
- startRef: string;
293
- /** Git ref (commit hash) when trace ended */
294
- endRef?: string;
295
- /** ID of the associated trace record */
296
- traceId?: string;
306
+ /** Git ref (commit hash) when trace started */
307
+ startRef: string;
308
+ /** Git ref (commit hash) when trace ended */
309
+ endRef?: string;
310
+ /** ID of the associated trace record */
311
+ traceId?: string;
297
312
  }
298
313
 
299
314
  /**
@@ -383,6 +398,7 @@ declare const StorageAdapter: StorageAdapter;
383
398
  declare function compactWorkflow(workflowId: string, options?: {
384
399
  markdown?: boolean;
385
400
  mechanical?: boolean;
401
+ discardSources?: boolean;
386
402
  cwd?: string;
387
403
  }): Promise<{
388
404
  compactedPath: string;
@@ -403,11 +419,12 @@ interface TrajectoryClientOptions {
403
419
  /** Whether to auto-save after each operation. Defaults to true */
404
420
  autoSave?: boolean;
405
421
  /**
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.
422
+ * 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, { discardSources: true } prunes raw source trajectories after compaction.
407
423
  */
408
424
  autoCompact?: boolean | {
409
425
  mechanical?: boolean;
410
426
  markdown?: boolean;
427
+ discardSources?: boolean;
411
428
  };
412
429
  }
413
430
  /**
@@ -555,6 +572,7 @@ declare class TrajectoryClient {
555
572
  getAutoCompactOptions(): false | {
556
573
  mechanical: boolean;
557
574
  markdown: boolean;
575
+ discardSources: boolean;
558
576
  };
559
577
  getAutoCompactCwd(): string | undefined;
560
578
  /**
@@ -1105,7 +1123,7 @@ declare const TrajectorySchema: z.ZodObject<{
1105
1123
  endedAt: z.ZodOptional<z.ZodString>;
1106
1124
  events: z.ZodArray<z.ZodObject<{
1107
1125
  ts: z.ZodNumber;
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]>;
1126
+ 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.ZodLiteral<"completion-evidence">, z.ZodLiteral<"completion-marker">, z.ZodString]>;
1109
1127
  content: z.ZodString;
1110
1128
  raw: z.ZodOptional<z.ZodUnknown>;
1111
1129
  significance: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
@@ -1541,7 +1559,7 @@ declare function validateCompleteInput(data: unknown): {
1541
1559
  */
1542
1560
  declare const TrajectoryEventSchema: z.ZodObject<{
1543
1561
  ts: z.ZodNumber;
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]>;
1562
+ 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.ZodLiteral<"completion-evidence">, z.ZodLiteral<"completion-marker">, z.ZodString]>;
1545
1563
  content: z.ZodString;
1546
1564
  raw: z.ZodOptional<z.ZodUnknown>;
1547
1565
  significance: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
@@ -1576,7 +1594,7 @@ declare const ChapterSchema: z.ZodObject<{
1576
1594
  endedAt: z.ZodOptional<z.ZodString>;
1577
1595
  events: z.ZodArray<z.ZodObject<{
1578
1596
  ts: z.ZodNumber;
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]>;
1597
+ 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.ZodLiteral<"completion-evidence">, z.ZodLiteral<"completion-marker">, z.ZodString]>;
1580
1598
  content: z.ZodString;
1581
1599
  raw: z.ZodOptional<z.ZodUnknown>;
1582
1600
  significance: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
@@ -1,5 +1,5 @@
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';
1
+ import { T as Trajectory } from './index-thTh5iI8.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-thTh5iI8.js';
3
3
  import 'zod';
4
4
 
5
5
  /**
@@ -33,7 +33,7 @@ import {
33
33
  validateCompleteInput,
34
34
  validateCreateInput,
35
35
  validateTrajectory
36
- } from "./chunk-W222QB6V.js";
36
+ } from "./chunk-2XT3DOJC.js";
37
37
  export {
38
38
  ChapterSchema,
39
39
  DecisionSchema,
@@ -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, 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';
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-thTh5iI8.js';
2
2
  import 'zod';
@@ -16,7 +16,7 @@ import {
16
16
  validateCompleteInput,
17
17
  validateCreateInput,
18
18
  validateTrajectory
19
- } from "../chunk-W222QB6V.js";
19
+ } from "../chunk-2XT3DOJC.js";
20
20
  export {
21
21
  FileStorage,
22
22
  TRAJECTORY_TRAILER_KEY,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-trajectories",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "Capture the complete train of thought of agent work as first-class artifacts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -8,11 +8,13 @@
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./dist/index.d.ts",
11
- "import": "./dist/index.js"
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
12
13
  },
13
14
  "./sdk": {
14
15
  "types": "./dist/sdk/index.d.ts",
15
- "import": "./dist/sdk/index.js"
16
+ "import": "./dist/sdk/index.js",
17
+ "default": "./dist/sdk/index.js"
16
18
  }
17
19
  },
18
20
  "bin": {
@@ -58,6 +60,7 @@
58
60
  "zod": "^3.23.0"
59
61
  },
60
62
  "devDependencies": {
63
+ "@agent-relay/sdk": "^4.0.4",
61
64
  "@biomejs/biome": "^1.9.4",
62
65
  "@types/node": "^20.0.0",
63
66
  "husky": "^9.1.7",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-relay",
3
- "version": "4.0.22",
3
+ "version": "4.0.24",
4
4
  "description": "Real-time agent-to-agent communication system",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -196,14 +196,14 @@
196
196
  },
197
197
  "homepage": "https://github.com/AgentWorkforce/relay#readme",
198
198
  "dependencies": {
199
- "@agent-relay/cloud": "4.0.22",
200
- "@agent-relay/config": "4.0.22",
201
- "@agent-relay/hooks": "4.0.22",
202
- "@agent-relay/sdk": "4.0.22",
203
- "@agent-relay/telemetry": "4.0.22",
204
- "@agent-relay/trajectory": "4.0.22",
205
- "@agent-relay/user-directory": "4.0.22",
206
- "@agent-relay/utils": "4.0.22",
199
+ "@agent-relay/cloud": "4.0.24",
200
+ "@agent-relay/config": "4.0.24",
201
+ "@agent-relay/hooks": "4.0.24",
202
+ "@agent-relay/sdk": "4.0.24",
203
+ "@agent-relay/telemetry": "4.0.24",
204
+ "@agent-relay/trajectory": "4.0.24",
205
+ "@agent-relay/user-directory": "4.0.24",
206
+ "@agent-relay/utils": "4.0.24",
207
207
  "@aws-sdk/client-s3": "3.1020.0",
208
208
  "@modelcontextprotocol/sdk": "^1.0.0",
209
209
  "@relayauth/core": "^0.1.2",