@faithfulalabi/agent-lens 0.3.0 → 0.4.0

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.
@@ -46,6 +46,14 @@ const LINE_TYPES = new Map([
46
46
  'attributionPlugin',
47
47
  'isApiErrorMessage',
48
48
  'error',
49
+ 'perTurnEffort',
50
+ 'apiBlockIndex',
51
+ 'advisorModel',
52
+ 'serverClassifierRequest',
53
+ 'wireToolInputs',
54
+ 'wireIngestContext',
55
+ 'apiErrorStatus',
56
+ 'quotaLimits',
49
57
  ]),
50
58
  },
51
59
  ],
@@ -68,6 +76,11 @@ const LINE_TYPES = new Map([
68
76
  'toolEndsTurn',
69
77
  'toolDenialKind',
70
78
  'imagePasteIds',
79
+ 'serverClassifierContext',
80
+ 'turnOrigin',
81
+ 'queueSkipAttachments',
82
+ 'turnPosition',
83
+ 'turnCompanion',
71
84
  ]),
72
85
  },
73
86
  ],
@@ -96,13 +109,23 @@ const LINE_TYPES = new Map([
96
109
  ]),
97
110
  },
98
111
  ],
99
- ['attachment', { kind: 'attachment', knownFields: fields(ENVELOPE, ['attachment']) }],
112
+ [
113
+ 'attachment',
114
+ {
115
+ kind: 'attachment',
116
+ knownFields: fields(ENVELOPE, [
117
+ 'attachment',
118
+ 'rendered',
119
+ 'renderedInHumanTurn',
120
+ ]),
121
+ },
122
+ ],
100
123
  ['mode', { kind: 'mode', knownFields: fields(['type', 'mode', 'sessionId']) }],
101
124
  [
102
125
  'last-prompt',
103
126
  {
104
127
  kind: 'last-prompt',
105
- knownFields: fields(['type', 'lastPrompt', 'leafUuid', 'sessionId']),
128
+ knownFields: fields(['type', 'lastPrompt', 'leafUuid', 'sessionId', 'explicit']),
106
129
  },
107
130
  ],
108
131
  [
@@ -138,7 +161,7 @@ const LINE_TYPES = new Map([
138
161
  'queue-operation',
139
162
  {
140
163
  kind: 'queue-operation',
141
- knownFields: fields(['type', 'operation', 'content', 'timestamp', 'sessionId']),
164
+ knownFields: fields(['type', 'operation', 'content', 'timestamp', 'sessionId', 'reason']),
142
165
  },
143
166
  ],
144
167
  [
@@ -150,6 +173,40 @@ const LINE_TYPES = new Map([
150
173
  ],
151
174
  ['started', { kind: 'started', knownFields: fields(['type', 'key', 'agentId']) }],
152
175
  ['result', { kind: 'result', knownFields: fields(['type', 'key', 'agentId', 'result']) }],
176
+ ['atis-latch', { kind: 'atis-latch', knownFields: fields(['type', 'atis', 'sessionId']) }],
177
+ [
178
+ 'cost-state',
179
+ {
180
+ kind: 'cost-state',
181
+ knownFields: fields([
182
+ 'type',
183
+ 'sessionId',
184
+ 'startTime',
185
+ 'totalCostUSD',
186
+ 'totalDuration',
187
+ 'totalAPIDuration',
188
+ 'totalAPIDurationWithoutRetries',
189
+ 'totalToolDuration',
190
+ 'totalLinesAdded',
191
+ 'totalLinesRemoved',
192
+ 'modelUsage',
193
+ 'hasUnknownModelCost',
194
+ ]),
195
+ },
196
+ ],
197
+ [
198
+ 'fork-context-ref',
199
+ {
200
+ kind: 'fork-context-ref',
201
+ knownFields: fields([
202
+ 'type',
203
+ 'agentId',
204
+ 'parentSessionId',
205
+ 'parentLastUuid',
206
+ 'contextLength',
207
+ ]),
208
+ },
209
+ ],
153
210
  ]);
154
211
  const EMPTY_RECORD = Object.freeze({});
155
212
  function rawTypeKey(value) {
@@ -1 +1 @@
1
- export const PROJECTOR_VERSION = 10;
1
+ export const PROJECTOR_VERSION = 11;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faithfulalabi/agent-lens",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Local-first agentic tracing platform: inspect everything your agent did in a session.",
5
5
  "type": "module",
6
6
  "license": "MIT",