@arcforge/types 2.0.175 → 2.0.177
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/agent-handle.ts +16 -0
- package/src/session/classify.ts +0 -1
- package/src/supervisor.ts +16 -0
package/package.json
CHANGED
package/src/agent-handle.ts
CHANGED
|
@@ -44,6 +44,22 @@ export type AxonAgentHandle = {
|
|
|
44
44
|
*/
|
|
45
45
|
stimulus(entry: AxonStimulusEntry): Promise<{ admitted: boolean }>
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Add a message to a wake that is ALREADY running.
|
|
49
|
+
*
|
|
50
|
+
* The third delivery verb, for the case the other two answer badly: a user
|
|
51
|
+
* typing while the agent works. `stimulus` asks to START a conversation
|
|
52
|
+
* and is refused mid-wake; `request` waits for the whole agent loop. This
|
|
53
|
+
* is neither — the message joins the conversation in flight and the cognet
|
|
54
|
+
* folds it into its next turn, because a loop re-reads the session log
|
|
55
|
+
* every pass.
|
|
56
|
+
*
|
|
57
|
+
* No verdict comes back: the entry is durable either way, and a wake that
|
|
58
|
+
* is not running gets started by the scheduler's own subscription. So a
|
|
59
|
+
* caller racing the end of a wake never has to know which side it landed.
|
|
60
|
+
*/
|
|
61
|
+
ingest(entry: AxonStimulusEntry): Promise<void>
|
|
62
|
+
|
|
47
63
|
/**
|
|
48
64
|
* Deliver a stimulus and wait for the wake it caused to SETTLE.
|
|
49
65
|
*
|
package/src/session/classify.ts
CHANGED
|
@@ -33,7 +33,6 @@ import { ENTRY_EVENT_PREFIXES } from "./events/entries"
|
|
|
33
33
|
* arm can go once no log anyone cares about predates the rename.
|
|
34
34
|
*/
|
|
35
35
|
export function isKernelEvent(type: string): boolean {
|
|
36
|
-
if (type === "process:attach" || type === "process:detach") return false
|
|
37
36
|
if (type === "process:attach" || type === "process:detach") return false
|
|
38
37
|
return type.startsWith("kernel:")
|
|
39
38
|
|| type.startsWith("cognet:")
|
package/src/supervisor.ts
CHANGED
|
@@ -76,6 +76,22 @@ export type SupervisorToAgent = {
|
|
|
76
76
|
*/
|
|
77
77
|
stimulus(entry: AxonStimulusEntry): Promise<{ admitted: boolean }>
|
|
78
78
|
|
|
79
|
+
/**
|
|
80
|
+
* Add a message to a wake that is ALREADY running.
|
|
81
|
+
*
|
|
82
|
+
* The third delivery verb, for the case the other two answer badly: a user
|
|
83
|
+
* typing while the agent works. `stimulus` asks to START a conversation
|
|
84
|
+
* and is refused mid-wake; `request` waits for the whole agent loop. This
|
|
85
|
+
* is neither — the message joins the conversation in flight and the cognet
|
|
86
|
+
* folds it into its next turn, because a loop re-reads the session log
|
|
87
|
+
* every pass.
|
|
88
|
+
*
|
|
89
|
+
* No verdict comes back: the entry is durable either way, and a wake that
|
|
90
|
+
* is not running gets started by the scheduler's own subscription. So a
|
|
91
|
+
* caller racing the end of a wake never has to know which side it landed.
|
|
92
|
+
*/
|
|
93
|
+
ingest(entry: AxonStimulusEntry): Promise<void>
|
|
94
|
+
|
|
79
95
|
/** Hot reload: a re-normalised blueprint replaces the live one. */
|
|
80
96
|
update(blueprint: AxonBlueprint): Promise<void>
|
|
81
97
|
|