@arcforge/types 2.0.174 → 2.0.176

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcforge/types",
3
- "version": "2.0.174",
3
+ "version": "2.0.176",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./src/index.ts",
@@ -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
  *
@@ -46,6 +46,21 @@ export type CapsuleBlueprint = {
46
46
  /** Working directory of the subprocess. */
47
47
  cwd: string
48
48
 
49
+ /**
50
+ * Where bundled tool source is materialized so it can be imported.
51
+ *
52
+ * The agent's own frame cache (`.agent/cache/tools`), never the OS temp
53
+ * directory: the agent process is spawned with an environment built from
54
+ * nothing, `TMPDIR` is not on the pass-through list, and the host/agent
55
+ * disagreement that produced stopped agents booting on macOS entirely.
56
+ * Carried on the config so the loader is handed a path rather than asking
57
+ * the process for one.
58
+ *
59
+ * Optional for programmatic callers that never load a bundled tool; the
60
+ * loader fails loudly if one arrives without it.
61
+ */
62
+ scratch?: string
63
+
49
64
  /** Merged onto the host's inherited environment — can override or narrow, but never starts from a blank slate. */
50
65
  env: Record<string, string>
51
66
 
@@ -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