@holoscript/holoscript-agent 2.0.2 → 2.0.4

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
@@ -55,6 +55,21 @@ interface RuntimeBrainConfig {
55
55
  criteria: string;
56
56
  escalateOnFail: boolean;
57
57
  };
58
+ /**
59
+ * Parsed `behavior on_task { … }` cognitive verb sequence (Phase 2.1).
60
+ * Extracted by brain.ts from the brain's authored behavior block; consumed by
61
+ * the runner to augment the task execution loop with domain-specific context.
62
+ * Currently wired verbs: `llm_call` (prompt → system context injection).
63
+ * Future verbs (`recall`, `rag_query`, `plan`) require trait-backed stores
64
+ * and are logged as declared but deferred to Phase 2.2.
65
+ * Absent (default) = hardcoded MESH_TOOLS loop only — backward-compatible.
66
+ */
67
+ onTaskActions?: OnTaskAction[];
68
+ }
69
+ /** A single cognitive verb call parsed from `behavior on_task { … }`. */
70
+ interface OnTaskAction {
71
+ verb: 'recall' | 'rag_query' | 'llm_call' | 'plan' | 'reflect';
72
+ config: Record<string, unknown>;
58
73
  }
59
74
  interface CostState {
60
75
  date: string;
@@ -96,4 +111,4 @@ interface ExecutionResult {
96
111
  durationMs: number;
97
112
  }
98
113
 
99
- export type { AgentIdentity, BoardTask, CostState, ExecutionResult, ModelPricer, RuntimeBrainConfig, TickResult };
114
+ export type { AgentIdentity, BoardTask, CostState, ExecutionResult, ModelPricer, OnTaskAction, RuntimeBrainConfig, TickResult };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holoscript/holoscript-agent",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
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
  "publishConfig": {
@@ -62,6 +62,13 @@
62
62
  "bin",
63
63
  "dist"
64
64
  ],
65
+ "scripts": {
66
+ "build": "tsup",
67
+ "dev": "tsup --watch",
68
+ "test": "vitest run",
69
+ "lint": "eslint src --ext .ts",
70
+ "test:coverage": "vitest run --coverage"
71
+ },
65
72
  "keywords": [
66
73
  "holoscript",
67
74
  "agent",
@@ -85,20 +92,13 @@
85
92
  "node": ">=18.0.0"
86
93
  },
87
94
  "dependencies": {
88
- "ethers": "^6.16.0",
89
- "@holoscript/llm-provider": "^1.2.1"
95
+ "@holoscript/llm-provider": "workspace:^",
96
+ "ethers": "^6.16.0"
90
97
  },
91
98
  "devDependencies": {
92
99
  "@types/node": "^24.10.1",
93
100
  "tsup": "^8.0.1",
94
101
  "typescript": "~5.9.3",
95
102
  "vitest": "^4.1.5"
96
- },
97
- "scripts": {
98
- "build": "tsup",
99
- "dev": "tsup --watch",
100
- "test": "vitest run",
101
- "lint": "eslint src --ext .ts",
102
- "test:coverage": "vitest run --coverage"
103
103
  }
104
- }
104
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025-2026 HoloScript Contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.