@chatpanel/events 0.78.2 → 0.78.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/team-tool.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatpanel/events",
3
- "version": "0.78.2",
3
+ "version": "0.78.3",
4
4
  "description": "The canonical ChatPanel event-log and capability contracts \u2014 typed durable facts, clock-free deterministic linearization, schema upcasting, and the invariants the replay harness asserts. Pure, dependency-free ESM shared by the ChatPanel extension, gateway and bridge.",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/team-tool.js CHANGED
@@ -66,7 +66,9 @@ const json = (v) => JSON.stringify(v);
66
66
  * @param saveTeam `async (team) => void`
67
67
  */
68
68
  export function teamToolProvider({ teams = [], run = null, appoint = null, confirmSave = null, saveTeam = null } = {}) {
69
- const byName = new Map((teams || []).filter((t) => t?.name && t.enabled !== false).map((t) => [t.name, t]));
69
+ // A record another client half-wrote (a name and nothing else) is not a team: it is
70
+ // neither offered to the model nor runnable, and Settings shows it for deleting.
71
+ const byName = new Map((teams || []).filter((t) => t?.name && t.enabled !== false && validateTeam(t).ok).map((t) => [t.name, t]));
70
72
  let bound = null;
71
73
  return {
72
74
  id: 'team',