@arcforge/types 2.0.164 → 2.0.166
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 +1 -1
- package/src/engine.ts +3 -3
- package/src/handle.ts +5 -5
- package/src/http.ts +2 -2
- package/src/report.ts +2 -2
- package/src/session/events/capsule.ts +3 -3
package/package.json
CHANGED
package/src/engine.ts
CHANGED
|
@@ -92,7 +92,7 @@ export type EngineResources = {
|
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* Hand-written contract for the slice of AxonCloudClient engines consume —
|
|
95
|
-
* same pattern as EngineConnection in handle.ts (@
|
|
95
|
+
* same pattern as EngineConnection in handle.ts (@arcforge/cloud depends on
|
|
96
96
|
* this package, so the type can't be imported; the real client satisfies
|
|
97
97
|
* this structurally). Grow it deliberately as engines need more surface.
|
|
98
98
|
*/
|
|
@@ -120,7 +120,7 @@ export type EngineCloud = {
|
|
|
120
120
|
* Here because a provider now has to answer "what can I supply"
|
|
121
121
|
* before any model is chosen, and the answer for a hosted route
|
|
122
122
|
* lives in the registry. Same reason the rest of this type
|
|
123
|
-
* exists: @
|
|
123
|
+
* exists: @arcforge/cloud depends on this package, so the client
|
|
124
124
|
* cannot be imported and the slice engines need is spelled at
|
|
125
125
|
* the seam instead.
|
|
126
126
|
*/
|
|
@@ -157,7 +157,7 @@ export type EngineCloud = {
|
|
|
157
157
|
/**
|
|
158
158
|
* The registry's merged model catalogue, as engines consume it.
|
|
159
159
|
*
|
|
160
|
-
* Structurally the same shape @
|
|
160
|
+
* Structurally the same shape @arcforge/cloud returns; spelled here for the
|
|
161
161
|
* same reason as EngineCloud itself. `modality` is OpenRouter's own
|
|
162
162
|
* `"text+image->text"` string — carried rather than pre-parsed so the
|
|
163
163
|
* classification table stays in one place.
|
package/src/handle.ts
CHANGED
|
@@ -12,13 +12,13 @@ import type { AxonAmbient } from "./session/events/activity"
|
|
|
12
12
|
*
|
|
13
13
|
* Only seams that more than one package depends on live here:
|
|
14
14
|
* - AxonHandle — what agent code sees (globalThis.axon, plugins, scripts)
|
|
15
|
-
* - EngineConnection — what @axon/cloud hands @
|
|
15
|
+
* - EngineConnection — what @axon/cloud hands @arcforge/core for inference
|
|
16
16
|
*
|
|
17
17
|
* Intra-core handles (session, capsule manager, server) are
|
|
18
|
-
* `ReturnType<typeof X>` inside @
|
|
18
|
+
* `ReturnType<typeof X>` inside @arcforge/core — they are not contracts.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
// ── Engine connection (implemented by @axon/cloud, consumed by @
|
|
21
|
+
// ── Engine connection (implemented by @axon/cloud, consumed by @arcforge/core) ───
|
|
22
22
|
|
|
23
23
|
/** Input to a single agent invocation. */
|
|
24
24
|
export type AxonRequestInput = {
|
|
@@ -87,7 +87,7 @@ export type AxonRun = {
|
|
|
87
87
|
*/
|
|
88
88
|
/**
|
|
89
89
|
* The capsule surface an engine delegate may drive — hand-written seam
|
|
90
|
-
* contract (the implementation type lives in @
|
|
90
|
+
* contract (the implementation type lives in @arcforge/capsule; this is what
|
|
91
91
|
* the wire actually needs: execute + cancel).
|
|
92
92
|
*/
|
|
93
93
|
export type CapsuleDelegate = {
|
|
@@ -137,7 +137,7 @@ export type EngineDelegate = {
|
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
139
|
* A live connection to a Cognos engine. @axon/cloud owns how this is
|
|
140
|
-
* established (ws3, auth, engine resolution); @
|
|
140
|
+
* established (ws3, auth, engine resolution); @arcforge/core only ever
|
|
141
141
|
* dispatches through it. Deliberately Cognos-agnostic — this type is the
|
|
142
142
|
* open-source boundary and must never leak ws3/Cognos internals.
|
|
143
143
|
*/
|
package/src/http.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* HTTP error contract shared across the Axon stack.
|
|
3
3
|
*
|
|
4
|
-
* Lives in @arcforge/types (not @
|
|
4
|
+
* Lives in @arcforge/types (not @arcforge/cloud) because it is a wire contract:
|
|
5
5
|
* engines, cloud transport, and CLI publish/deploy flows all branch on
|
|
6
|
-
* `err.code` / `err.data`. @
|
|
6
|
+
* `err.code` / `err.data`. @arcforge/cloud re-exports it so existing internal
|
|
7
7
|
* imports keep working; @arcforge/engines depends on it directly so it can be
|
|
8
8
|
* published to npm without pulling in internal cloud transport.
|
|
9
9
|
*/
|
package/src/report.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* One payload shape, posted by every side of the platform to
|
|
5
5
|
* POST /api/reports. Lives here because three independent packages
|
|
6
|
-
* construct it — @
|
|
6
|
+
* construct it — @arcforge/cloud (HTTP failures), @axon/err (runtime
|
|
7
7
|
* failures), and the backend's own 5xx handler — and a contract owned by
|
|
8
8
|
* any one of them would make the other two depend on a transport.
|
|
9
9
|
*
|
|
@@ -59,7 +59,7 @@ export type ErrorReport = {
|
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* Caller-supplied detail. SCRUBBED BEFORE SENDING — see scrubContext()
|
|
62
|
-
* in @
|
|
62
|
+
* in @arcforge/cloud. This is the one field that can carry user data
|
|
63
63
|
* (paths, prompt text, agent names), so it is the one field that must
|
|
64
64
|
* never be forwarded raw.
|
|
65
65
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* own vocabulary (its subprocess bus serializes these over stdout as JSONL;
|
|
4
4
|
* the host wire validates and re-emits them), registered HERE because every
|
|
5
5
|
* event type that can reach a session log lives in this package's registry
|
|
6
|
-
* — @
|
|
6
|
+
* — @arcforge/capsule re-exports it (types/events.ts), it does not own it.
|
|
7
7
|
*
|
|
8
8
|
* Naming: start/complete/failed verb suffixes throughout, matching the
|
|
9
9
|
* kernel/cognet conventions — capsule spans (cmd, fn, proc) pair up in a
|
|
@@ -43,9 +43,9 @@ import type { CapsuleScope } from "../../capsule-scope"
|
|
|
43
43
|
/**
|
|
44
44
|
* Who asked for a capsule command to run — see the capsule:cmd span below.
|
|
45
45
|
*
|
|
46
|
-
* Declared here rather than in @
|
|
46
|
+
* Declared here rather than in @arcforge/capsule for the same reason the event
|
|
47
47
|
* map is: every type that can reach a session log lives in this package's
|
|
48
|
-
* registry, and @
|
|
48
|
+
* registry, and @arcforge/capsule re-exports from here rather than owning it.
|
|
49
49
|
*/
|
|
50
50
|
export type CapsuleCommandOrigin = "cognet" | "host"
|
|
51
51
|
|