pi-roundtable-sandbox 0.49.0 → 0.49.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.49.1] - 2026-11-16
6
+
7
+ ### Fixed
8
+
9
+ - Sandbox's `channelContext` option now accepts `starter` and `authors`, which its type already allowed but its startup check rejected.
10
+ - Channel context no longer looks up a thread's starter on every turn: it skips the lookup once the starter was handed over and reuses the fetched window's copy when it holds it.
11
+
5
12
  ## [0.49.0] - 2026-11-16
6
13
 
7
14
  - Release in lockstep with pi-roundtable 0.49.0 (channel context can include a thread's opening message); no package-specific behavior changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-roundtable-sandbox",
3
- "version": "0.49.0",
3
+ "version": "0.49.1",
4
4
  "description": "Sealed guest channels and an allow-listed credential broker for pi-roundtable",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -53,7 +53,7 @@
53
53
  "@biomejs/biome": "2.5.15",
54
54
  "@types/bun": "1.4.3",
55
55
  "discord.js": "14.27.0",
56
- "pi-roundtable": "0.49.0",
56
+ "pi-roundtable": "0.49.1",
57
57
  "typebox": "1.4.6",
58
58
  "typescript": "7.0.2"
59
59
  }
@@ -46,6 +46,8 @@ const KEYS = [
46
46
  "peerMessageChars",
47
47
  "foreignWebhook",
48
48
  "attachments",
49
+ "starter",
50
+ "authors",
49
51
  ];
50
52
 
51
53
  function onlyKeys(name: string, value: object, allowed: readonly string[]) {
@@ -88,6 +90,10 @@ export function resolveChannelContextOptions(
88
90
  typeof given.foreignWebhook !== "function"
89
91
  )
90
92
  throw new TypeError("channelContext.foreignWebhook must be a function");
93
+ if (given.starter !== undefined && typeof given.starter !== "boolean")
94
+ throw new TypeError("channelContext.starter must be a boolean");
95
+ if (given.authors !== undefined && typeof given.authors !== "function")
96
+ throw new TypeError("channelContext.authors must be a function");
91
97
  if (given.attachments !== undefined) {
92
98
  if (typeof given.attachments !== "object" || given.attachments === null)
93
99
  throw new TypeError("channelContext.attachments must be an object");