cc-codeconductor 1.7.2 → 1.9.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.
- package/README.md +6 -6
- package/dist/core/goal/goal-state.d.ts +18 -0
- package/dist/core/hooks/hook-runner.d.ts +75 -0
- package/dist/core/orchestrator/runtime-orchestrator.d.ts +11 -3
- package/dist/core/telemetry/hook-telemetry.d.ts +55 -0
- package/dist/core/telemetry/schema.d.ts +94 -0
- package/dist/core/telemetry/store.d.ts +43 -0
- package/dist/index.js +7292 -1030
- package/dist/library.js +605 -25
- package/dist/validation/schemas.d.ts +143 -8
- package/docs/generated/cli.md +32 -1
- package/package.json +9 -4
- package/presets/agy/scripts/invoke-hook.cjs +15 -2
- package/presets/claude/settings.json +33 -0
- package/presets/shared/invoke-hook.cjs +15 -2
- package/pricing/pricing.v1.json +130 -0
- package/schemas/harness-telemetry.v1.json +239 -0
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "harness-telemetry/v1",
|
|
4
|
+
"title": "HarnessTelemetryEvent",
|
|
5
|
+
"description": "One JSONL line per harness telemetry event. Common to CodeConductor and microsdd.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schema", "ts", "harness", "runId", "event"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schema": {
|
|
11
|
+
"const": "harness-telemetry/v1"
|
|
12
|
+
},
|
|
13
|
+
"ts": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "ISO-8601 timestamp with offset (not Z-only preferred)."
|
|
16
|
+
},
|
|
17
|
+
"harness": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": ["name"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"name": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": ["codeconductor", "microsdd"]
|
|
25
|
+
},
|
|
26
|
+
"version": {
|
|
27
|
+
"type": ["string", "null"]
|
|
28
|
+
},
|
|
29
|
+
"commit": {
|
|
30
|
+
"type": ["string", "null"]
|
|
31
|
+
},
|
|
32
|
+
"promptCompilerVersion": {
|
|
33
|
+
"type": ["string", "null"]
|
|
34
|
+
},
|
|
35
|
+
"promptFingerprint": {
|
|
36
|
+
"type": ["string", "null"],
|
|
37
|
+
"description": "sha256 of concatenated per-layer hashes"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"runId": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 1
|
|
44
|
+
},
|
|
45
|
+
"taskId": {
|
|
46
|
+
"type": ["string", "null"]
|
|
47
|
+
},
|
|
48
|
+
"agent": {
|
|
49
|
+
"type": ["object", "null"],
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"properties": {
|
|
52
|
+
"role": {
|
|
53
|
+
"type": ["string", "null"]
|
|
54
|
+
},
|
|
55
|
+
"agentId": {
|
|
56
|
+
"type": ["string", "null"]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"event": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"enum": [
|
|
63
|
+
"run.start",
|
|
64
|
+
"run.end",
|
|
65
|
+
"task.start",
|
|
66
|
+
"task.end",
|
|
67
|
+
"agent.end",
|
|
68
|
+
"model.call",
|
|
69
|
+
"verification",
|
|
70
|
+
"retry",
|
|
71
|
+
"iteration"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"host": {
|
|
75
|
+
"type": ["object", "null"],
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"properties": {
|
|
78
|
+
"name": {
|
|
79
|
+
"type": ["string", "null"],
|
|
80
|
+
"enum": ["claude-code", "codex", "opencode", "openrouter-direct", "other", null]
|
|
81
|
+
},
|
|
82
|
+
"version": {
|
|
83
|
+
"type": ["string", "null"]
|
|
84
|
+
},
|
|
85
|
+
"mode": {
|
|
86
|
+
"type": ["string", "null"],
|
|
87
|
+
"enum": ["headless", "interactive", null]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"model": {
|
|
92
|
+
"type": ["object", "null"],
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"properties": {
|
|
95
|
+
"id": {
|
|
96
|
+
"type": ["string", "null"]
|
|
97
|
+
},
|
|
98
|
+
"provider": {
|
|
99
|
+
"type": ["string", "null"],
|
|
100
|
+
"enum": ["anthropic", "openrouter", "openai", "other", null]
|
|
101
|
+
},
|
|
102
|
+
"effort": {
|
|
103
|
+
"type": ["string", "null"],
|
|
104
|
+
"enum": ["low", "medium", "high", "xhigh", "max", null]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"usage": {
|
|
109
|
+
"type": ["object", "null"],
|
|
110
|
+
"additionalProperties": false,
|
|
111
|
+
"properties": {
|
|
112
|
+
"input": {
|
|
113
|
+
"type": ["integer", "null"],
|
|
114
|
+
"minimum": 0
|
|
115
|
+
},
|
|
116
|
+
"output": {
|
|
117
|
+
"type": ["integer", "null"],
|
|
118
|
+
"minimum": 0
|
|
119
|
+
},
|
|
120
|
+
"cacheRead": {
|
|
121
|
+
"type": ["integer", "null"],
|
|
122
|
+
"minimum": 0
|
|
123
|
+
},
|
|
124
|
+
"cacheWrite": {
|
|
125
|
+
"type": ["integer", "null"],
|
|
126
|
+
"minimum": 0
|
|
127
|
+
},
|
|
128
|
+
"reasoning": {
|
|
129
|
+
"type": ["integer", "null"],
|
|
130
|
+
"minimum": 0
|
|
131
|
+
},
|
|
132
|
+
"calls": {
|
|
133
|
+
"type": ["integer", "null"],
|
|
134
|
+
"minimum": 0
|
|
135
|
+
},
|
|
136
|
+
"apiRetries": {
|
|
137
|
+
"type": ["integer", "null"],
|
|
138
|
+
"minimum": 0
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"cost": {
|
|
143
|
+
"type": ["object", "null"],
|
|
144
|
+
"additionalProperties": false,
|
|
145
|
+
"properties": {
|
|
146
|
+
"usd": {
|
|
147
|
+
"type": ["number", "null"]
|
|
148
|
+
},
|
|
149
|
+
"basis": {
|
|
150
|
+
"type": ["string", "null"],
|
|
151
|
+
"enum": ["provider-billed", "host-estimate", "pricing-table", "unknown", "none", null]
|
|
152
|
+
},
|
|
153
|
+
"pricingVersion": {
|
|
154
|
+
"type": ["string", "null"]
|
|
155
|
+
},
|
|
156
|
+
"isRealSpend": {
|
|
157
|
+
"type": ["boolean", "null"]
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"loop": {
|
|
162
|
+
"type": ["object", "null"],
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"properties": {
|
|
165
|
+
"iteration": {
|
|
166
|
+
"type": ["integer", "null"],
|
|
167
|
+
"minimum": 0
|
|
168
|
+
},
|
|
169
|
+
"retryReason": {
|
|
170
|
+
"type": ["string", "null"]
|
|
171
|
+
},
|
|
172
|
+
"maxIterations": {
|
|
173
|
+
"type": ["integer", "null"],
|
|
174
|
+
"minimum": 0
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"verification": {
|
|
179
|
+
"type": ["object", "null"],
|
|
180
|
+
"additionalProperties": false,
|
|
181
|
+
"properties": {
|
|
182
|
+
"gate": {
|
|
183
|
+
"type": ["string", "null"]
|
|
184
|
+
},
|
|
185
|
+
"passed": {
|
|
186
|
+
"type": ["boolean", "null"]
|
|
187
|
+
},
|
|
188
|
+
"durationMs": {
|
|
189
|
+
"type": ["integer", "null"],
|
|
190
|
+
"minimum": 0
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"durationMs": {
|
|
195
|
+
"type": ["integer", "null"],
|
|
196
|
+
"minimum": 0
|
|
197
|
+
},
|
|
198
|
+
"outcome": {
|
|
199
|
+
"type": ["object", "null"],
|
|
200
|
+
"additionalProperties": false,
|
|
201
|
+
"properties": {
|
|
202
|
+
"status": {
|
|
203
|
+
"type": ["string", "null"],
|
|
204
|
+
"enum": ["done", "failed", "escalated", "aborted", null]
|
|
205
|
+
},
|
|
206
|
+
"firstTry": {
|
|
207
|
+
"type": ["boolean", "null"]
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"source": {
|
|
212
|
+
"type": ["object", "null"],
|
|
213
|
+
"additionalProperties": false,
|
|
214
|
+
"properties": {
|
|
215
|
+
"usage": {
|
|
216
|
+
"type": ["string", "null"],
|
|
217
|
+
"enum": [
|
|
218
|
+
"cc-json",
|
|
219
|
+
"cc-otel",
|
|
220
|
+
"cc-transcript",
|
|
221
|
+
"openrouter-usage",
|
|
222
|
+
"codex-json",
|
|
223
|
+
"harness",
|
|
224
|
+
"none",
|
|
225
|
+
null
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
"reliability": {
|
|
229
|
+
"type": ["string", "null"],
|
|
230
|
+
"enum": ["high", "medium", "low", null]
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"privacy": {
|
|
235
|
+
"type": ["string", "null"],
|
|
236
|
+
"enum": ["standard", "strict", null]
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|