@arcforge/types 2.0.109 → 2.0.111
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/handle.ts +11 -0
package/package.json
CHANGED
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
|
|