@blackbelt-technology/pi-dashboard-chat-gateway-plugin 0.10.0 → 0.11.0

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,7 +1,10 @@
1
1
  {
2
2
  "name": "@blackbelt-technology/pi-dashboard-chat-gateway-plugin",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Inbound chat control plane — drive dashboard pi sessions from a chat platform (Discord shipped). Extensible adapter layer; no bridge or server protocol change.",
5
+ "keywords": [
6
+ "pi-dashboard-plugin"
7
+ ],
5
8
  "license": "MIT",
6
9
  "publishConfig": {
7
10
  "access": "public"
@@ -68,9 +71,8 @@
68
71
  "react-dom": ">=18.0.0"
69
72
  },
70
73
  "dependencies": {
71
- "@blackbelt-technology/dashboard-plugin-runtime": "^0.10.0",
72
- "@blackbelt-technology/pi-dashboard-mcp-server-plugin": "^0.10.0",
73
- "@blackbelt-technology/pi-dashboard-shared": "^0.10.0",
74
+ "@blackbelt-technology/dashboard-plugin-runtime": "^0.11.0",
75
+ "@blackbelt-technology/pi-dashboard-shared": "^0.11.0",
74
76
  "discord.js": "^14.27.0"
75
77
  },
76
78
  "devDependencies": {
@@ -18,18 +18,7 @@
18
18
  * See change: add-chat-gateway, retro-ux-plugin-settings-wave-2.
19
19
  */
20
20
 
21
- import {
22
- SelectField,
23
- SettingsGroup,
24
- SettingsNotice,
25
- SettingsStatusPill,
26
- SettingsTable,
27
- TextAreaField,
28
- TextField,
29
- ToggleField,
30
- useSettingsDraftSource,
31
- } from "@blackbelt-technology/dashboard-plugin-runtime";
32
- import { usePluginConfig, usePluginSend } from "@blackbelt-technology/dashboard-plugin-runtime/context";
21
+ import { SelectField, SettingsGroup, SettingsNotice, SettingsStatusPill, SettingsTable, TextAreaField, TextField, ToggleField, usePluginConfig, usePluginSend, useSettingsDraftSource } from "@blackbelt-technology/dashboard-plugin-runtime";
33
22
  import type { SlotProps } from "@blackbelt-technology/pi-dashboard-shared/dashboard-plugin/slot-props.js";
34
23
  import type React from "react";
35
24
  import { useEffect, useState } from "react";
@@ -18,15 +18,7 @@
18
18
  *
19
19
  * See change: add-chat-gateway-team-controls, retro-ux-plugin-settings-wave-2.
20
20
  */
21
- import {
22
- SettingsFacts,
23
- SettingsGroup,
24
- SettingsItem,
25
- SettingsNotice,
26
- SettingsStatusPill,
27
- SettingsTable,
28
- } from "@blackbelt-technology/dashboard-plugin-runtime";
29
- import { usePluginConfig, usePluginMessage, usePluginSend } from "@blackbelt-technology/dashboard-plugin-runtime/context";
21
+ import { SettingsFacts, SettingsGroup, SettingsItem, SettingsNotice, SettingsStatusPill, SettingsTable, usePluginConfig, usePluginMessage, usePluginSend } from "@blackbelt-technology/dashboard-plugin-runtime";
30
22
  import type React from "react";
31
23
  import { useCallback, useEffect, useState } from "react";
32
24
  import {
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * Pure over (author, binding, verb, targetCwd, disarmed) — the verb→tier table
11
11
  * and command allowlist are injectable purely to make the table-driven tests
12
- * possible; production uses the shared `GENERATED_TOOLS` table.
12
+ * possible; production uses the shared `GENERATED_VERB_TIERS` table.
13
13
  *
14
14
  * See change: add-chat-gateway-team-controls (D2).
15
15
  */
@@ -2,15 +2,15 @@
2
2
  * Verb→tier resolution for the chat team-controls layer.
3
3
  *
4
4
  * The tier required by a verb is READ from the dashboard's shared effective
5
- * table (`GENERATED_TOOLS` re-exported from the mcp-server plugin's `./manifest`
6
- * entry), never re-declared here — so the chat surface and the MCP surface
5
+ * table (`GENERATED_VERB_TIERS`, generated into `packages/shared/src/mcp/` by the
6
+ * mcp-server codegen), never re-declared here — so the chat surface and the MCP surface
7
7
  * cannot drift apart. A curated command allowlist narrows what chat may invoke
8
8
  * at all, and a non-configurable deny-list carves credential/state-minting
9
9
  * verbs out of `operate`.
10
10
  *
11
- * See change: add-chat-gateway-team-controls (D3).
11
+ * See change: add-chat-gateway-team-controls (D3); decouple-plugins-from-core (task 2.6).
12
12
  */
13
- import { GENERATED_TOOLS } from "@blackbelt-technology/pi-dashboard-mcp-server-plugin/manifest";
13
+ import { GENERATED_VERB_TIERS } from "@blackbelt-technology/pi-dashboard-shared/mcp/verb-tiers.generated.js";
14
14
  import { minTier, rank, type Tier } from "@blackbelt-technology/pi-dashboard-shared/tiers.js";
15
15
 
16
16
  /** Roles may never grant `operate` — see `authorize.ts` / `tier-config.ts`. */
@@ -83,9 +83,9 @@ export const CHAT_LOCAL_VERB_TIERS: ReadonlyMap<string, Tier> = new Map([
83
83
  ["close_session", "control"],
84
84
  ]);
85
85
 
86
- /** The effective per-verb tier table, read from the shared generated manifest. */
86
+ /** The effective per-verb tier table, read from the shared generated table. */
87
87
  export const VERB_TIERS: ReadonlyMap<string, Tier> = new Map(
88
- GENERATED_TOOLS.map((t) => [t.name, t.tier] as const),
88
+ GENERATED_VERB_TIERS.map((t) => [t.name, t.tier] as const),
89
89
  );
90
90
 
91
91
  /** `undefined` means the verb has no row in the shared table — never infer one. */