@arcforge/core 2.0.180 → 2.0.182
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 +12 -12
- package/src/runtime/inference.ts +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcforge/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.182",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"exports": {
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
"test:coverage": "bun test --coverage"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@arcforge/air": "2.0.
|
|
18
|
-
"@arcforge/capsule": "2.0.
|
|
19
|
-
"@arcforge/cloud": "2.0.
|
|
20
|
-
"@arcforge/cognet": "2.0.
|
|
21
|
-
"@arcforge/engines": "2.0.
|
|
22
|
-
"@arcforge/err": "2.0.
|
|
23
|
-
"@arcforge/kernel": "2.0.
|
|
24
|
-
"@arcforge/link": "2.0.
|
|
25
|
-
"@arcforge/session": "2.0.
|
|
26
|
-
"@arcforge/types": "2.0.
|
|
27
|
-
"@arcforge/vstr": "2.0.
|
|
17
|
+
"@arcforge/air": "2.0.182",
|
|
18
|
+
"@arcforge/capsule": "2.0.182",
|
|
19
|
+
"@arcforge/cloud": "2.0.182",
|
|
20
|
+
"@arcforge/cognet": "2.0.182",
|
|
21
|
+
"@arcforge/engines": "2.0.182",
|
|
22
|
+
"@arcforge/err": "2.0.182",
|
|
23
|
+
"@arcforge/kernel": "2.0.182",
|
|
24
|
+
"@arcforge/link": "2.0.182",
|
|
25
|
+
"@arcforge/session": "2.0.182",
|
|
26
|
+
"@arcforge/types": "2.0.182",
|
|
27
|
+
"@arcforge/vstr": "2.0.182",
|
|
28
28
|
"crossws": "^0.3.5",
|
|
29
29
|
"h3": "^1.13.0",
|
|
30
30
|
"hookable": "^5.5.3",
|
package/src/runtime/inference.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { err } from "@arcforge/err"
|
|
2
2
|
import type { AxonBlueprint, AxonEventMap, AxonSpanName, EngineCapability, EngineCloud } from "@arcforge/types"
|
|
3
3
|
import { buildProvider, providerPool } from "@arcforge/engines/providers"
|
|
4
|
-
import { Engines, gather, type AxonProvider, type Catalogue, type EnginesT } from "@arcforge/engines/catalogue"
|
|
4
|
+
import { Engines, gather, type AxonProvider, type Catalogue, type EnginesT, type LocalRuntime } from "@arcforge/engines/catalogue"
|
|
5
5
|
|
|
6
6
|
type InferenceOpts = {
|
|
7
7
|
blueprint: AxonBlueprint
|
|
8
8
|
cloud: EngineCloud
|
|
9
|
+
/** Machine-local inference, owned by the host/daemon rather than the agent. */
|
|
10
|
+
local?: LocalRuntime
|
|
9
11
|
/**
|
|
10
12
|
* Where to report resolution cost. Optional so an embedded host or a
|
|
11
13
|
* test can resolve roles without a session.
|
|
@@ -103,7 +105,11 @@ async function resolveRoles(opts: InferenceOpts): Promise<Resolved> {
|
|
|
103
105
|
const providers = new Map<string, AxonProvider>()
|
|
104
106
|
|
|
105
107
|
for (const declared of pool) {
|
|
106
|
-
providers.set(declared.provider, buildProvider(declared, {
|
|
108
|
+
providers.set(declared.provider, buildProvider(declared, {
|
|
109
|
+
cloud: opts.cloud,
|
|
110
|
+
env: opts.blueprint.env,
|
|
111
|
+
...(opts.local ? { local: opts.local } : {}),
|
|
112
|
+
}))
|
|
107
113
|
}
|
|
108
114
|
|
|
109
115
|
const gathered = await gatherTraced([...providers.values()], opts.session)
|