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.
- package/dist/index.cjs +18 -7
- package/dist/src/cli/commands/setup.d.ts.map +1 -1
- package/dist/src/cli/commands/setup.js +28 -7
- package/dist/src/cli/commands/setup.js.map +1 -1
- package/dist/src/cli/lib/broker-lifecycle.d.ts.map +1 -1
- package/dist/src/cli/lib/broker-lifecycle.js +9 -2
- package/dist/src/cli/lib/broker-lifecycle.js.map +1 -1
- package/node_modules/@agent-relay/cloud/package.json +2 -2
- package/node_modules/@agent-relay/config/package.json +1 -1
- package/node_modules/@agent-relay/hooks/package.json +4 -4
- package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.js +13 -4
- package/node_modules/@agent-relay/sdk/dist/workflows/trajectory.js.map +1 -1
- package/node_modules/@agent-relay/sdk/package.json +2 -2
- package/node_modules/@agent-relay/telemetry/package.json +1 -1
- package/node_modules/@agent-relay/trajectory/package.json +2 -2
- package/node_modules/@agent-relay/user-directory/package.json +2 -2
- package/node_modules/@agent-relay/utils/package.json +2 -2
- package/node_modules/agent-trajectories/README.md +7 -4
- package/node_modules/agent-trajectories/dist/{chunk-W222QB6V.js → chunk-2XT3DOJC.js} +11 -5
- package/node_modules/agent-trajectories/dist/chunk-2XT3DOJC.js.map +1 -0
- package/node_modules/agent-trajectories/dist/cli/index.js +98 -6
- package/node_modules/agent-trajectories/dist/cli/index.js.map +1 -1
- package/node_modules/agent-trajectories/dist/{index-7tzw_CMS.d.ts → index-thTh5iI8.d.ts} +208 -190
- package/node_modules/agent-trajectories/dist/index.d.ts +2 -2
- package/node_modules/agent-trajectories/dist/index.js +1 -1
- package/node_modules/agent-trajectories/dist/sdk/index.d.ts +1 -1
- package/node_modules/agent-trajectories/dist/sdk/index.js +1 -1
- package/node_modules/agent-trajectories/package.json +6 -3
- package/package.json +9 -9
- package/packages/cloud/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/hooks/package.json +4 -4
- package/packages/sdk/dist/workflows/trajectory.d.ts.map +1 -1
- package/packages/sdk/dist/workflows/trajectory.js +13 -4
- package/packages/sdk/dist/workflows/trajectory.js.map +1 -1
- package/packages/sdk/package.json +2 -2
- package/packages/telemetry/package.json +1 -1
- package/packages/trajectory/package.json +2 -2
- package/packages/user-directory/package.json +2 -2
- package/packages/utils/package.json +2 -2
- 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 =
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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 =
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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 =
|
|
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
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
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
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
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
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
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
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
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
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
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-
|
|
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-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
|
/**
|
|
@@ -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-
|
|
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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-trajectories",
|
|
3
|
-
"version": "0.5.
|
|
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.
|
|
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.
|
|
200
|
-
"@agent-relay/config": "4.0.
|
|
201
|
-
"@agent-relay/hooks": "4.0.
|
|
202
|
-
"@agent-relay/sdk": "4.0.
|
|
203
|
-
"@agent-relay/telemetry": "4.0.
|
|
204
|
-
"@agent-relay/trajectory": "4.0.
|
|
205
|
-
"@agent-relay/user-directory": "4.0.
|
|
206
|
-
"@agent-relay/utils": "4.0.
|
|
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",
|