@holoscript/holoscript-agent 2.0.0 → 2.0.1

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/types.d.ts CHANGED
@@ -18,6 +18,30 @@ interface RuntimeBrainConfig {
18
18
  capabilityTags: string[];
19
19
  domain: string;
20
20
  scopeTier: 'cold' | 'warm' | 'hot';
21
+ /**
22
+ * Capability keys (from `Capabilities` in @holoscript/llm-provider) that
23
+ * this brain MUST have. Router refuses to assign the brain to a provider
24
+ * whose manifest doesn't satisfy every entry. Empty array (default) =
25
+ * open routing — matches today's behavior, backward-compatible.
26
+ *
27
+ * Per founder ruling 2026-05-06 (universal+segregated foundation): brains
28
+ * declare needs as data; router does set arithmetic at session start.
29
+ * `HOLOSCRIPT_AGENT_PROVIDER` env becomes override, not source-of-truth.
30
+ */
31
+ requires: string[];
32
+ /**
33
+ * Capability keys this brain prefers but doesn't require. Router uses
34
+ * to break ties between candidates that all satisfy `requires`.
35
+ * Empty array (default) = no preference.
36
+ */
37
+ prefers: string[];
38
+ /**
39
+ * Capability keys this brain explicitly avoids. Router excludes any
40
+ * provider whose manifest declares any of these capabilities (e.g.
41
+ * a privacy-sensitive brain may avoid `liveWebSearch`).
42
+ * Empty array (default) = no exclusions.
43
+ */
44
+ avoids: string[];
21
45
  }
22
46
  interface CostState {
23
47
  date: string;
@@ -40,11 +64,16 @@ interface BoardTask {
40
64
  claimedBy?: string;
41
65
  }
42
66
  interface TickResult {
43
- action: 'heartbeat-only' | 'over-budget' | 'no-claimable-task' | 'claimed' | 'executed' | 'errored' | 'no-artifact';
67
+ action: 'heartbeat-only' | 'over-budget' | 'no-claimable-task' | 'claimed' | 'executed' | 'errored' | 'no-artifact' | 'messages-processed';
44
68
  taskId?: string;
45
69
  spentUsd: number;
46
70
  remainingUsd: number;
47
71
  message?: string;
72
+ receipts?: Array<{
73
+ status: string;
74
+ action: string;
75
+ reason: string;
76
+ }>;
48
77
  }
49
78
  interface ExecutionResult {
50
79
  taskId: string;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@holoscript/holoscript-agent",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
9
  "bin": {
10
- "holoscript-agent": "./dist/index.js"
10
+ "holoscript-agent": "./bin/holoscript-agent.cjs"
11
11
  },
12
12
  "exports": {
13
13
  ".": {
@@ -56,6 +56,7 @@
56
56
  }
57
57
  },
58
58
  "files": [
59
+ "bin",
59
60
  "dist"
60
61
  ],
61
62
  "keywords": [
@@ -82,18 +83,19 @@
82
83
  },
83
84
  "dependencies": {
84
85
  "ethers": "^6.16.0",
85
- "@holoscript/llm-provider": "1.2.0"
86
+ "@holoscript/llm-provider": "^1.2.1"
86
87
  },
87
88
  "devDependencies": {
88
89
  "@types/node": "^24.10.1",
89
90
  "tsup": "^8.0.1",
90
91
  "typescript": "~5.9.3",
91
- "vitest": "^4.1.0"
92
+ "vitest": "^4.1.5"
92
93
  },
93
94
  "scripts": {
94
95
  "build": "tsup",
95
96
  "dev": "tsup --watch",
96
97
  "test": "vitest run",
97
- "lint": "eslint src --ext .ts"
98
+ "lint": "eslint src --ext .ts",
99
+ "test:coverage": "vitest run --coverage"
98
100
  }
99
101
  }