@matatbread/matbot-core 0.4.10 → 0.4.11

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
@@ -4,7 +4,7 @@
4
4
  "node",
5
5
  "browser"
6
6
  ],
7
- "version": "0.4.10",
7
+ "version": "0.4.11",
8
8
  "engines": {
9
9
  "node": ">=24.0.0"
10
10
  },
@@ -35,7 +35,7 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@matatbread/matbot-plugin-api": "^0.4.10"
38
+ "@matatbread/matbot-plugin-api": "^0.4.11"
39
39
  },
40
40
  "devDependencies": {
41
41
  "typescript": "^6.0.3"
@@ -376,8 +376,8 @@ export function createSessionRunner(deps: SessionRunnerDeps): SessionRunner {
376
376
  // Establish the submitter's principal for the whole turn here, not inside runSession:
377
377
  // pump runs detached (`void pump`), so this scope — not the request that enqueued — is the
378
378
  // turn's async root. Everything downstream (hooks, tools, and any Store/FileStore/Vault
379
- // access they trigger) reads it via currentPrincipal(). The consumption MUST happen inside
380
- // the callback: an async iterator returned out of the scope would lose it before it pulls.
379
+ // access they trigger) reads it via currentPrincipal(). The consumption is inside the callback
380
+ // because the pump owns it, not because it must be: runAs rescopes a returned iterator itself.
381
381
  // runAs, not a context switch of its own: the pump holds the machine across the whole queue
382
382
  // (see above), so a turn declares only its owner. Each item carries its own submitter.
383
383
  // The terminal event this turn ended on. `followup` is post-COMMIT, and only `done` is a