@kylecheng3146/agent-ops 0.2.6 → 0.2.8
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/packages/cli/src/args.js +14 -3
- package/dist/packages/cli/src/bin.js +15 -2
- package/dist/packages/cli/src/commands/review.js +78 -5
- package/dist/runtime/src/hooks/codex-loop.js +232 -9
- package/dist/runtime/src/review/attestation.js +117 -1
- package/dist/runtime/src/review/execute.js +166 -12
- package/dist/runtime/src/review/probe.js +11 -1
- package/dist/runtime/src/review/render.js +15 -1
- package/dist/runtime/src/review/runner.js +76 -2
- package/dist/runtime/src/review/usage.js +71 -0
- package/dist/runtime/src/task/render.js +89 -0
- package/dist/runtime/src/task/store.js +8 -0
- package/package.json +1 -1
|
@@ -174,6 +174,14 @@ function parseSession(value) {
|
|
|
174
174
|
attachedAt: value.attachedAt
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* Validated task state without taking the write lock. A recovery hook must
|
|
179
|
+
* stay fail-open and fast: contending for the lock that `mutate` holds would
|
|
180
|
+
* make a read of the state able to fail, or to delay, a session start.
|
|
181
|
+
*/
|
|
182
|
+
export function parseTaskStateSource(source) {
|
|
183
|
+
return parseState(source);
|
|
184
|
+
}
|
|
177
185
|
function parseState(source) {
|
|
178
186
|
if (source === null) {
|
|
179
187
|
return {
|