@holoscript/holoscript-agent 2.0.1 → 2.0.2
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 +117 -0
- package/bin/holoscript-agent.cjs +3 -1
- package/dist/ablation.js +4 -1
- package/dist/ablation.js.map +1 -1
- package/dist/brain.js +25 -3
- package/dist/brain.js.map +1 -1
- package/dist/commit-hook.js +6 -2
- package/dist/commit-hook.js.map +1 -1
- package/dist/cost-guard.js +2 -0
- package/dist/cost-guard.js.map +1 -1
- package/dist/holomesh-client.d.ts +8 -1
- package/dist/holomesh-client.js +24 -25
- package/dist/holomesh-client.js.map +1 -1
- package/dist/index.js +436 -85
- package/dist/index.js.map +1 -1
- package/dist/provision.js +39 -22
- package/dist/provision.js.map +1 -1
- package/dist/runner.js +268 -19
- package/dist/runner.js.map +1 -1
- package/dist/supervisor-config.js +3 -1
- package/dist/supervisor-config.js.map +1 -1
- package/dist/supervisor.js +332 -54
- package/dist/supervisor.js.map +1 -1
- package/dist/types.d.ts +14 -1
- package/package.json +4 -1
package/dist/types.d.ts
CHANGED
|
@@ -42,6 +42,19 @@ interface RuntimeBrainConfig {
|
|
|
42
42
|
* Empty array (default) = no exclusions.
|
|
43
43
|
*/
|
|
44
44
|
avoids: string[];
|
|
45
|
+
/**
|
|
46
|
+
* Optional cognitive self-evaluation gate — the brain's `reflect` verb (W.736).
|
|
47
|
+
* When the brain declares a `reflect { criteria, escalate_on_fail }` block, the
|
|
48
|
+
* runner runs one self-evaluation pass over the produced artifact before
|
|
49
|
+
* accepting it. With `escalateOnFail: true` a failed self-evaluation escalates
|
|
50
|
+
* to the fleet (the `local_first` directive) instead of marking the task done;
|
|
51
|
+
* otherwise the verdict is advisory (logged + recorded, never blocks).
|
|
52
|
+
* Absent (default) = no reflect pass — existing brains are unaffected.
|
|
53
|
+
*/
|
|
54
|
+
reflect?: {
|
|
55
|
+
criteria: string;
|
|
56
|
+
escalateOnFail: boolean;
|
|
57
|
+
};
|
|
45
58
|
}
|
|
46
59
|
interface CostState {
|
|
47
60
|
date: string;
|
|
@@ -64,7 +77,7 @@ interface BoardTask {
|
|
|
64
77
|
claimedBy?: string;
|
|
65
78
|
}
|
|
66
79
|
interface TickResult {
|
|
67
|
-
action: 'heartbeat-only' | 'over-budget' | 'no-claimable-task' | 'claimed' | 'executed' | 'errored' | 'no-artifact' | 'messages-processed';
|
|
80
|
+
action: 'heartbeat-only' | 'over-budget' | 'no-claimable-task' | 'claimed' | 'executed' | 'errored' | 'no-artifact' | 'reflect-escalate' | 'messages-processed';
|
|
68
81
|
taskId?: string;
|
|
69
82
|
spentUsd: number;
|
|
70
83
|
remainingUsd: number;
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holoscript/holoscript-agent",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Headless agent runtime for the HoloMesh — multi-LLM-provider, brain-mounted, cost-guarded. Closes W.087 vertex B.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
6
9
|
"main": "./dist/index.js",
|
|
7
10
|
"module": "./dist/index.js",
|
|
8
11
|
"types": "./dist/index.d.ts",
|