agent-workflow-inspector 0.0.0-stage → 1.0.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.
@@ -0,0 +1,30 @@
1
+ {
2
+ "version": 1,
3
+ "traceId": "healthy",
4
+ "operations": [
5
+ {
6
+ "id": "op-0",
7
+ "type": "tool",
8
+ "name": "lookup",
9
+ "toolName": "lookup",
10
+ "arguments": {
11
+ "query": "synthetic"
12
+ },
13
+ "status": "ok",
14
+ "startTime": "2026-01-01T00:00:00Z",
15
+ "endTime": "2026-01-01T00:00:01Z"
16
+ },
17
+ {
18
+ "id": "op-1",
19
+ "type": "tool",
20
+ "name": "save",
21
+ "toolName": "save",
22
+ "arguments": {
23
+ "query": "synthetic"
24
+ },
25
+ "status": "ok",
26
+ "startTime": "2026-01-01T00:00:02Z",
27
+ "endTime": "2026-01-01T00:00:03Z"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,210 @@
1
+ {
2
+ "resourceSpans": [
3
+ {
4
+ "resource": {
5
+ "attributes": [
6
+ {
7
+ "key": "service.name",
8
+ "value": {
9
+ "stringValue": "synthetic-agent"
10
+ }
11
+ }
12
+ ]
13
+ },
14
+ "scopeSpans": [
15
+ {
16
+ "scope": {
17
+ "name": "example"
18
+ },
19
+ "spans": [
20
+ {
21
+ "traceId": "11111111111111111111111111111111",
22
+ "spanId": "0000000000000001",
23
+ "name": "tool",
24
+ "startTimeUnixNano": "1700000000000000000",
25
+ "endTimeUnixNano": "1700000001000000000",
26
+ "status": {
27
+ "code": 2
28
+ },
29
+ "attributes": [
30
+ {
31
+ "key": "gen_ai.tool.name",
32
+ "value": {
33
+ "stringValue": "lookup"
34
+ }
35
+ },
36
+ {
37
+ "key": "gen_ai.tool.call.arguments",
38
+ "value": {
39
+ "stringValue": "{\"query\":\"synthetic\"}"
40
+ }
41
+ }
42
+ ],
43
+ "events": [
44
+ {
45
+ "name": "exception",
46
+ "attributes": [
47
+ {
48
+ "key": "exception.type",
49
+ "value": {
50
+ "stringValue": "Unavailable"
51
+ }
52
+ }
53
+ ]
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "traceId": "11111111111111111111111111111111",
59
+ "spanId": "0000000000000002",
60
+ "name": "tool",
61
+ "startTimeUnixNano": "1700000002000000000",
62
+ "endTimeUnixNano": "1700000003000000000",
63
+ "status": {
64
+ "code": 2
65
+ },
66
+ "attributes": [
67
+ {
68
+ "key": "gen_ai.tool.name",
69
+ "value": {
70
+ "stringValue": "lookup"
71
+ }
72
+ },
73
+ {
74
+ "key": "gen_ai.tool.call.arguments",
75
+ "value": {
76
+ "stringValue": "{\"query\":\"synthetic\"}"
77
+ }
78
+ }
79
+ ],
80
+ "events": [
81
+ {
82
+ "name": "exception",
83
+ "attributes": [
84
+ {
85
+ "key": "exception.type",
86
+ "value": {
87
+ "stringValue": "Unavailable"
88
+ }
89
+ }
90
+ ]
91
+ }
92
+ ]
93
+ },
94
+ {
95
+ "traceId": "11111111111111111111111111111111",
96
+ "spanId": "0000000000000003",
97
+ "name": "tool",
98
+ "startTimeUnixNano": "1700000004000000000",
99
+ "endTimeUnixNano": "1700000005000000000",
100
+ "status": {
101
+ "code": 2
102
+ },
103
+ "attributes": [
104
+ {
105
+ "key": "gen_ai.tool.name",
106
+ "value": {
107
+ "stringValue": "lookup"
108
+ }
109
+ },
110
+ {
111
+ "key": "gen_ai.tool.call.arguments",
112
+ "value": {
113
+ "stringValue": "{\"query\":\"synthetic\"}"
114
+ }
115
+ }
116
+ ],
117
+ "events": [
118
+ {
119
+ "name": "exception",
120
+ "attributes": [
121
+ {
122
+ "key": "exception.type",
123
+ "value": {
124
+ "stringValue": "Unavailable"
125
+ }
126
+ }
127
+ ]
128
+ }
129
+ ]
130
+ },
131
+ {
132
+ "traceId": "11111111111111111111111111111111",
133
+ "spanId": "0000000000000004",
134
+ "name": "tool",
135
+ "startTimeUnixNano": "1700000006000000000",
136
+ "endTimeUnixNano": "1700000007000000000",
137
+ "status": {
138
+ "code": 2
139
+ },
140
+ "attributes": [
141
+ {
142
+ "key": "gen_ai.tool.name",
143
+ "value": {
144
+ "stringValue": "lookup"
145
+ }
146
+ },
147
+ {
148
+ "key": "gen_ai.tool.call.arguments",
149
+ "value": {
150
+ "stringValue": "{\"query\":\"synthetic\"}"
151
+ }
152
+ }
153
+ ],
154
+ "events": [
155
+ {
156
+ "name": "exception",
157
+ "attributes": [
158
+ {
159
+ "key": "exception.type",
160
+ "value": {
161
+ "stringValue": "Unavailable"
162
+ }
163
+ }
164
+ ]
165
+ }
166
+ ]
167
+ },
168
+ {
169
+ "traceId": "11111111111111111111111111111111",
170
+ "spanId": "0000000000000005",
171
+ "name": "tool",
172
+ "startTimeUnixNano": "1700000008000000000",
173
+ "endTimeUnixNano": "1700000009000000000",
174
+ "status": {
175
+ "code": 2
176
+ },
177
+ "attributes": [
178
+ {
179
+ "key": "gen_ai.tool.name",
180
+ "value": {
181
+ "stringValue": "lookup"
182
+ }
183
+ },
184
+ {
185
+ "key": "gen_ai.tool.call.arguments",
186
+ "value": {
187
+ "stringValue": "{\"query\":\"synthetic\"}"
188
+ }
189
+ }
190
+ ],
191
+ "events": [
192
+ {
193
+ "name": "exception",
194
+ "attributes": [
195
+ {
196
+ "key": "exception.type",
197
+ "value": {
198
+ "stringValue": "Unavailable"
199
+ }
200
+ }
201
+ ]
202
+ }
203
+ ]
204
+ }
205
+ ]
206
+ }
207
+ ]
208
+ }
209
+ ]
210
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "version": 1,
3
+ "traceId": "cycle",
4
+ "operations": [
5
+ {
6
+ "id": "op-0",
7
+ "type": "tool",
8
+ "name": "write",
9
+ "toolName": "write",
10
+ "arguments": {
11
+ "query": "synthetic"
12
+ },
13
+ "status": "ok",
14
+ "startTime": "2026-01-01T00:00:00Z",
15
+ "endTime": "2026-01-01T00:00:01Z"
16
+ },
17
+ {
18
+ "id": "op-1",
19
+ "type": "tool",
20
+ "name": "read",
21
+ "toolName": "read",
22
+ "arguments": {
23
+ "query": "synthetic"
24
+ },
25
+ "status": "ok",
26
+ "startTime": "2026-01-01T00:00:02Z",
27
+ "endTime": "2026-01-01T00:00:03Z"
28
+ },
29
+ {
30
+ "id": "op-2",
31
+ "type": "tool",
32
+ "name": "write",
33
+ "toolName": "write",
34
+ "arguments": {
35
+ "query": "synthetic"
36
+ },
37
+ "status": "ok",
38
+ "startTime": "2026-01-01T00:00:04Z",
39
+ "endTime": "2026-01-01T00:00:05Z"
40
+ },
41
+ {
42
+ "id": "op-3",
43
+ "type": "tool",
44
+ "name": "read",
45
+ "toolName": "read",
46
+ "arguments": {
47
+ "query": "synthetic"
48
+ },
49
+ "status": "ok",
50
+ "startTime": "2026-01-01T00:00:06Z",
51
+ "endTime": "2026-01-01T00:00:07Z"
52
+ },
53
+ {
54
+ "id": "op-4",
55
+ "type": "tool",
56
+ "name": "write",
57
+ "toolName": "write",
58
+ "arguments": {
59
+ "query": "synthetic"
60
+ },
61
+ "status": "ok",
62
+ "startTime": "2026-01-01T00:00:08Z",
63
+ "endTime": "2026-01-01T00:00:09Z"
64
+ },
65
+ {
66
+ "id": "op-5",
67
+ "type": "tool",
68
+ "name": "read",
69
+ "toolName": "read",
70
+ "arguments": {
71
+ "query": "synthetic"
72
+ },
73
+ "status": "ok",
74
+ "startTime": "2026-01-01T00:00:10Z",
75
+ "endTime": "2026-01-01T00:00:11Z"
76
+ }
77
+ ]
78
+ }
@@ -0,0 +1,116 @@
1
+ {
2
+ "version": 1,
3
+ "traceId": "retries",
4
+ "operations": [
5
+ {
6
+ "id": "op-0",
7
+ "type": "tool",
8
+ "name": "lookup",
9
+ "toolName": "lookup",
10
+ "arguments": {
11
+ "query": "synthetic"
12
+ },
13
+ "status": "error",
14
+ "startTime": "2026-01-01T00:00:00Z",
15
+ "endTime": "2026-01-01T00:00:01Z",
16
+ "error": {
17
+ "code": "UNAVAILABLE"
18
+ },
19
+ "usage": {
20
+ "inputTokens": 10
21
+ },
22
+ "cost": {
23
+ "amount": 0.001,
24
+ "currency": "USD"
25
+ }
26
+ },
27
+ {
28
+ "id": "op-1",
29
+ "type": "tool",
30
+ "name": "lookup",
31
+ "toolName": "lookup",
32
+ "arguments": {
33
+ "query": "synthetic"
34
+ },
35
+ "status": "error",
36
+ "startTime": "2026-01-01T00:00:02Z",
37
+ "endTime": "2026-01-01T00:00:03Z",
38
+ "error": {
39
+ "code": "UNAVAILABLE"
40
+ },
41
+ "usage": {
42
+ "inputTokens": 10
43
+ },
44
+ "cost": {
45
+ "amount": 0.001,
46
+ "currency": "USD"
47
+ }
48
+ },
49
+ {
50
+ "id": "op-2",
51
+ "type": "tool",
52
+ "name": "lookup",
53
+ "toolName": "lookup",
54
+ "arguments": {
55
+ "query": "synthetic"
56
+ },
57
+ "status": "error",
58
+ "startTime": "2026-01-01T00:00:04Z",
59
+ "endTime": "2026-01-01T00:00:05Z",
60
+ "error": {
61
+ "code": "UNAVAILABLE"
62
+ },
63
+ "usage": {
64
+ "inputTokens": 10
65
+ },
66
+ "cost": {
67
+ "amount": 0.001,
68
+ "currency": "USD"
69
+ }
70
+ },
71
+ {
72
+ "id": "op-3",
73
+ "type": "tool",
74
+ "name": "lookup",
75
+ "toolName": "lookup",
76
+ "arguments": {
77
+ "query": "synthetic"
78
+ },
79
+ "status": "error",
80
+ "startTime": "2026-01-01T00:00:06Z",
81
+ "endTime": "2026-01-01T00:00:07Z",
82
+ "error": {
83
+ "code": "UNAVAILABLE"
84
+ },
85
+ "usage": {
86
+ "inputTokens": 10
87
+ },
88
+ "cost": {
89
+ "amount": 0.001,
90
+ "currency": "USD"
91
+ }
92
+ },
93
+ {
94
+ "id": "op-4",
95
+ "type": "tool",
96
+ "name": "lookup",
97
+ "toolName": "lookup",
98
+ "arguments": {
99
+ "query": "synthetic"
100
+ },
101
+ "status": "error",
102
+ "startTime": "2026-01-01T00:00:08Z",
103
+ "endTime": "2026-01-01T00:00:09Z",
104
+ "error": {
105
+ "code": "UNAVAILABLE"
106
+ },
107
+ "usage": {
108
+ "inputTokens": 10
109
+ },
110
+ "cost": {
111
+ "amount": 0.001,
112
+ "currency": "USD"
113
+ }
114
+ }
115
+ ]
116
+ }
package/package.json CHANGED
@@ -1,6 +1,80 @@
1
1
  {
2
2
  "name": "agent-workflow-inspector",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.0",
4
+ "description": "Local-first, deterministic linter for AI agent traces: detect suspicious retries, repeated tool calls, execution cycles, and resource burn.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Jigar Prajapati",
8
+ "homepage": "https://github.com/jigar48/awi#readme",
9
+ "bugs": {
10
+ "url": "https://github.com/jigar48/awi/issues"
11
+ },
12
+ "funding": {
13
+ "type": "individual",
14
+ "url": "https://buymeacoffee.com/buildwithjigar"
15
+ },
16
+ "keywords": [
17
+ "ai-agents",
18
+ "agent-observability",
19
+ "opentelemetry",
20
+ "developer-tools",
21
+ "typescript",
22
+ "cli",
23
+ "ai-debugging",
24
+ "trace-analysis"
25
+ ],
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/jigar48/awi.git"
29
+ },
30
+ "engines": {
31
+ "node": "^22.18.0 || ^24.11.0 || ^26.0.0"
32
+ },
33
+ "bin": {
34
+ "awi": "dist/cli/index.js"
35
+ },
36
+ "main": "dist/index.js",
37
+ "types": "dist/index.d.ts",
38
+ "exports": {
39
+ ".": {
40
+ "types": "./dist/index.d.ts",
41
+ "import": "./dist/index.js"
42
+ }
43
+ },
44
+ "files": [
45
+ "dist",
46
+ "docs",
47
+ "examples",
48
+ "README.md",
49
+ "LICENSE",
50
+ "awi.config.example.json",
51
+ "CHANGELOG.md",
52
+ "SECURITY.md",
53
+ "CONTRIBUTING.md",
54
+ "CODE_OF_CONDUCT.md"
55
+ ],
56
+ "dependencies": {
57
+ "commander": "14.0.3",
58
+ "zod": "4.6.7"
59
+ },
60
+ "devDependencies": {
61
+ "typescript": "~5.9.3",
62
+ "@types/node": "^22.19.0",
63
+ "tsup": "9.0.0",
64
+ "vitest": "5.0.5",
65
+ "eslint": "10.13.0",
66
+ "typescript-eslint": "^8.46.0",
67
+ "prettier": "^3.6.2"
68
+ },
69
+ "scripts": {
70
+ "build": "tsup",
71
+ "test": "vitest run",
72
+ "typecheck": "tsc --noEmit",
73
+ "lint": "eslint .",
74
+ "format": "prettier --write .",
75
+ "format:check": "prettier --check .",
76
+ "check": "pnpm typecheck && pnpm lint && pnpm test && pnpm build",
77
+ "schemas": "pnpm build && node scripts/schemas.mjs",
78
+ "smoke:package": "node scripts/package-smoke.mjs"
79
+ }
6
80
  }