@arcforge/types 2.0.219 → 2.0.244
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 +6 -2
- package/src/agent-handle.ts +2 -1
- package/src/blueprint.ts +19 -3
- package/src/body/body.ts +669 -0
- package/src/cognet/blueprint.ts +32 -4
- package/src/cognet/cognet.ts +126 -11
- package/src/cognet/index.ts +2 -2
- package/src/config.ts +21 -3
- package/src/connections.ts +70 -0
- package/src/define.ts +34 -0
- package/src/engine.ts +33 -3
- package/src/error.ts +11 -0
- package/src/handle.ts +67 -0
- package/src/index.ts +8 -0
- package/src/inference.ts +193 -12
- package/src/kernel/abi.ts +132 -10
- package/src/kernel/index.ts +1 -1
- package/src/machine.ts +17 -0
- package/src/provider-usage.ts +63 -0
- package/src/services.ts +79 -0
- package/src/session/channel.ts +15 -0
- package/src/session/envelope.ts +10 -1
- package/src/session/events/activity.ts +13 -1
- package/src/session/events/build.ts +26 -1
- package/src/session/events/cognet.ts +211 -15
- package/src/session/events/kernel.ts +20 -0
- package/src/session/events/runtime.ts +29 -1
- package/src/session/events/stdio/output.ts +6 -0
- package/src/session/events/stdio/shared.ts +35 -0
- package/src/session/events/stdio/stimuli.ts +17 -0
- package/src/session/index.ts +4 -1
- package/src/session/session.ts +2 -2
- package/src/session/text.ts +36 -0
- package/src/supervisor.ts +45 -4
- package/src/tui-contract.ts +1 -1
- package/src/tui.ts +14 -0
- package/src/usage.ts +83 -0
- package/src/world/world.ts +224 -0
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcforge/types",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.244",
|
|
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": "
|
|
52
|
+
"axonRevision": "6b7c31b386531c7829eb28a9f00480022cdc01f8"
|
|
49
53
|
}
|
package/src/agent-handle.ts
CHANGED
|
@@ -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(
|
|
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?:
|
|
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"]
|