@arcforge/types 2.0.218 → 2.0.243

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/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@arcforge/types",
3
- "version": "2.0.218",
3
+ "version": "2.0.243",
4
+ "license": "Apache-2.0",
4
5
  "type": "module",
5
6
  "private": false,
6
7
  "main": "./src/index.ts",
@@ -15,6 +16,9 @@
15
16
  "tsconfig.base.json"
16
17
  ],
17
18
  "scripts": {
19
+ "test": "bun run test:full",
20
+ "test:hot": "bun test --parallel=4 tests/hot",
21
+ "test:full": "bun test --parallel=4 tests/hot",
18
22
  "contract": "bun run scripts/contract.ts",
19
23
  "deploy": "echo \"This package is published ONLY by apps/tui/scripts/release.ts, which pins workspace:* deps to concrete versions first. Publishing it directly ships an unresolvable dependency.\" && exit 1"
20
24
  },
@@ -45,5 +49,5 @@
45
49
  "agent-runtime",
46
50
  "typescript"
47
51
  ],
48
- "axonRevision": "bfbb695da8a820cef52f99cbf6cc084f872c3f87"
52
+ "axonRevision": "ac874b48dc941514a88869a1e9461e2e0ea7c8a3"
49
53
  }
@@ -1,6 +1,7 @@
1
1
  import type { AxonBlueprint } from "./blueprint"
2
2
  import type { AxonEntry } from "./session"
3
3
  import type { AxonStimulusEntry } from "./session/events/stdio/stimuli"
4
+ import type { AxonIngest } from "./supervisor"
4
5
 
5
6
  /**
6
7
  * A handle to ONE running agent, wherever it runs.
@@ -58,7 +59,7 @@ export type AxonAgentHandle = {
58
59
  * is not running gets started by the scheduler's own subscription. So a
59
60
  * caller racing the end of a wake never has to know which side it landed.
60
61
  */
61
- ingest(entry: AxonStimulusEntry): Promise<void>
62
+ ingest(input: AxonIngest): Promise<void>
62
63
 
63
64
  /**
64
65
  * Deliver a stimulus and wait for the wake it caused to SETTLE.
package/src/blueprint.ts CHANGED
@@ -1,6 +1,8 @@
1
+ import type { EngineRequirements } from "./inference"
2
+ import type { EngineEffort } from "./engine"
1
3
  import { AxonConfig } from "./config"
2
4
  import type { CapsulePartialConfig } from "./capsule-config"
3
- import { CognetBlueprint } from "./cognet/blueprint"
5
+ import type { CognetBlueprint, CognetBlueprintInput } from "./cognet/blueprint"
4
6
  import { AxonPlugin } from "./plugin"
5
7
  import { AxonRoute } from "./route"
6
8
  import { AxonMiddleware } from "./middleware"
@@ -126,6 +128,19 @@ export type AxonBlueprint = {
126
128
  tools: AxonTool[]
127
129
  prompts: AxonPrompt[]
128
130
  scripts: AxonScript[]
131
+ /**
132
+ * The providers the agent writes itself — `providers/*.provider.ts` —
133
+ * by the name a grant gives them (`"./providers/features"`), each with the
134
+ * file that defines it. Loaded on the agent's side, never the cognet's.
135
+ */
136
+ serviceProviders: Array<{
137
+ name: string
138
+ filePath: string
139
+ /** The interface it implements, read from it without running it. */
140
+ implements: string
141
+ /** The machine's engines it needs, by its own names for them — resolved like a cognet's, as `<name>/<engine>`. */
142
+ engines: EngineRequirements
143
+ }>
129
144
  /**
130
145
  * Every knowledge file this agent can reach — its own `data/knowledge/`
131
146
  * plus each installed module's, namespaced by module.
@@ -162,7 +177,7 @@ export type AxonBlueprint = {
162
177
  * control loop genuinely has no model, and inventing one would put a
163
178
  * dead row in every client's header.
164
179
  */
165
- engine?: { provider: string; model: string | null }
180
+ engine?: { provider: string; model: string | null; effort?: EngineEffort }
166
181
 
167
182
  paths: {
168
183
  /** agent root — still needed for capsule fs-tool sandboxing, not for discovery */
@@ -186,12 +201,13 @@ export type AxonPartialBlueprint = {
186
201
  config?: AxonBlueprint["config"]
187
202
  profilePolicy?: AxonBlueprint["profilePolicy"]
188
203
  profileProviders?: AxonBlueprint["profileProviders"]
189
- cognet?: CognetBlueprint
204
+ cognet?: CognetBlueprintInput
190
205
  env?: AxonBlueprint["env"]
191
206
  hostEnv?: AxonBlueprint["hostEnv"]
192
207
  tools?: AxonBlueprint["tools"]
193
208
  prompts?: AxonBlueprint["prompts"]
194
209
  scripts?: AxonBlueprint["scripts"]
210
+ serviceProviders?: AxonBlueprint["serviceProviders"]
195
211
  knowledge?: AxonBlueprint["knowledge"]
196
212
  server?: Partial<AxonServerBlueprint>
197
213
  modules?: AxonBlueprint["modules"]