@agentvault/grok-bridge 0.4.17 → 0.4.18
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/dist/grok-driver.d.ts +1 -0
- package/dist/grok-session.d.ts +5 -0
- package/dist/index.js +99862 -99047
- package/dist/recovery.d.ts +5 -0
- package/package.json +1 -1
- package/dist/service/install-on-ready.d.ts +0 -57
- package/dist/service/install-on-ready.d.ts.map +0 -1
package/dist/grok-driver.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare class GrokDriver implements AgentDriver {
|
|
|
19
19
|
private readonly opts;
|
|
20
20
|
private readonly acp;
|
|
21
21
|
private session;
|
|
22
|
+
private invalidated;
|
|
22
23
|
/** State for the turn currently in flight. Null between turns, so a late
|
|
23
24
|
* update frame after a turn ends cannot bleed into the next one. */
|
|
24
25
|
private current;
|
package/dist/grok-session.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare class GrokSession implements RoomSession {
|
|
|
26
26
|
private readonly opts;
|
|
27
27
|
private queue;
|
|
28
28
|
private running;
|
|
29
|
+
private invalidated;
|
|
29
30
|
/** The message whose turn is in flight, or null between turns. Null is a
|
|
30
31
|
* DISTINCT state from "a message that carries no reply sink" — conflating
|
|
31
32
|
* them is what let a post-turn say fall through to the session-level sink. */
|
|
@@ -52,6 +53,8 @@ export declare class GrokSession implements RoomSession {
|
|
|
52
53
|
* it. Revisit once `_meta.agentProfile` is probed properly.
|
|
53
54
|
*/
|
|
54
55
|
identity?: string;
|
|
56
|
+
/** Fatal delivery failure: tear down this process for supervised restart. */
|
|
57
|
+
onFatal?: (error: unknown) => void | Promise<void>;
|
|
55
58
|
});
|
|
56
59
|
push(text: string, reply?: (text: string) => Promise<void>, opts?: {
|
|
57
60
|
autoReplyOnText?: boolean;
|
|
@@ -62,6 +65,8 @@ export declare class GrokSession implements RoomSession {
|
|
|
62
65
|
* the listener — but each call returns a NEW closure; do not rely on
|
|
63
66
|
* identity (e.g. for `===` comparisons or `removeListener`-style APIs). */
|
|
64
67
|
sayHandler(): (text: string) => void;
|
|
68
|
+
/** Revoke output and future work BEFORE asynchronous process cleanup. */
|
|
69
|
+
invalidate(): void;
|
|
65
70
|
/** Resolves when the queue is empty. For tests and shutdown. */
|
|
66
71
|
idle(): Promise<void>;
|
|
67
72
|
private log;
|