@prismshadow/penguin-library-session · library/session/src/web/chat/module.ts:31 · Child of WebRoot

ChatModule

module

No JSDoc comment in source yet.

API

@Module({
  contributes: {
    "WebAppModule.pages": [
      {
        id: "chat.page",
        key: "chat",
        path: "/chat/:sessionId?",
        frame: "shell",
        nav: "none",
        admin: false,
        released: true,
        order: 10,
      },
    ],
    "DockModule.panels": [
      {
        id: "chat.agents-panel",
        kind: "agents",
        title: "Agents panel",
        titleZh: "智能体面板",
        icon: "robotPair",
        order: 10,
      },
      {
        id: "chat.memory-panel",
        kind: "memory",
        title: "Memory",
        titleZh: "记忆",
        icon: "brain",
        order: 30,
      },
    ],
  },
})
export class ChatModule {
  @Provide() chat!: Chat;
  @Bind("chat.page") page!: ComponentType;
  @Bind("chat.agents-panel") agentsPanel = { mainDefinitions: [mainPanelagents] };
  @Bind("chat.memory-panel") memoryPanel = { mainDefinitions: [mainPanelmemory] };
  @Provide() drafts: ChatDrafts = chatDrafts;
  setup({ contributions }: ClassCtx);
}

Dependencies & Wiring

Extracted from class decorators
@Provideprovides (2)
chat: Chat · drafts: ChatDrafts
@Bindbinds (3)
page → chat.page: ComponentType · agentsPanel → chat.agents-panel: unknown · memoryPanel → chat.memory-panel: unknown

Contributes

{
  "WebAppModule.pages": [
    {
      "id": "chat.page",
      "key": "chat",
      "path": "/chat/:sessionId?",
      "frame": "shell",
      "nav": "none",
      "admin": false,
      "released": true,
      "order": 10
    }
  ],
  "DockModule.panels": [
    {
      "id": "chat.agents-panel",
      "kind": "agents",
      "title": "Agents panel",
      "titleZh": "智能体面板",
      "icon": "robotPair",
      "order": 10
    },
    {
      "id": "chat.memory-panel",
      "kind": "memory",
      "title": "Memory",
      "titleZh": "记忆",
      "icon": "brain",
      "order": 30
    }
  ]
}

Target slots: WebAppModule.pages · DockModule.panels

Children (0)

No child modules or components declared in @Module.

Exports (0)

None (module-private).