@arcforge/types 2.0.108 → 2.0.110
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/config.ts +21 -0
- package/src/handle.ts +11 -0
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -32,6 +32,27 @@ export type AxonConfig<EventMap extends Record<string, unknown> = Record<string,
|
|
|
32
32
|
/** Short human-readable summary shown in registries, docs, and generated manifests. */
|
|
33
33
|
// description?: string // deprected. use package.json instead
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Paths on this agent's own HTTP surface worth surfacing to whoever boots
|
|
37
|
+
* it — printed in the `axon dev` banner alongside the agent's URL.
|
|
38
|
+
*
|
|
39
|
+
* ```ts
|
|
40
|
+
* links: { viewer: "/api/sim", docs: "/api/help" }
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* Values are PATHS, never absolute URLs: the runtime binds a port at boot
|
|
44
|
+
* (walking forward if the requested one is taken), so an agent that wrote
|
|
45
|
+
* `http://localhost:3010/...` here would advertise the wrong address the
|
|
46
|
+
* first time two agents ran side by side.
|
|
47
|
+
*
|
|
48
|
+
* The runtime attaches no meaning to a name. It does not know what a
|
|
49
|
+
* viewer is, only that the author wants this path shown — which is why
|
|
50
|
+
* this is a flat label→path map rather than a typed `ui:` field with a
|
|
51
|
+
* title and an icon. A shape that describes what the thing IS would be
|
|
52
|
+
* the runtime learning about kinds of page; this shape only says where.
|
|
53
|
+
*/
|
|
54
|
+
links?: Record<string, string>
|
|
55
|
+
|
|
35
56
|
/** Sandbox permissions enforced at the capsule boundary. */
|
|
36
57
|
policy?: CapsulePartialConfig["policy"]
|
|
37
58
|
|
package/src/handle.ts
CHANGED
|
@@ -128,6 +128,17 @@ export type AxonHooksSurface = {
|
|
|
128
128
|
* a host-level (TUI) concern this handle has no opinion on.
|
|
129
129
|
*/
|
|
130
130
|
export type AxonHandle = {
|
|
131
|
+
/**
|
|
132
|
+
* Whether the agent can currently think — a cognet is loaded and wakeable.
|
|
133
|
+
*
|
|
134
|
+
* False when the brain failed to load, or a hot reload replaced it with
|
|
135
|
+
* one that would not compile. The process stays up and keeps serving in
|
|
136
|
+
* that state (routes and plugins are unaffected), which is why this is
|
|
137
|
+
* exposed rather than inferred from liveness: an agent with no mind
|
|
138
|
+
* answers every health check happily and every request with nothing.
|
|
139
|
+
*/
|
|
140
|
+
readonly ready: boolean
|
|
141
|
+
|
|
131
142
|
/** Render a prompt by name. Static .md returns as-is; dynamic .vue renders with props. */
|
|
132
143
|
prompt(name: string, props?: Record<string, unknown>): Promise<string>
|
|
133
144
|
|