chore(comms): retire remaining dead channel residue

Completes the reference cleanup with the genuinely-dead comms bits (the live
extraction pipeline + Campaign.channels marketing field are kept):

- models/audit.py: remove the dead CHANNEL_ACCESS_DENIED enum member (str-backed
  column, no migration; its do_server/flow_server map keys were removed in 925e00d4)
- panel stream.ts: remove the dead getChannelPermissions method (no matching
  backend route — routes/stream.py serves only GET /permissions). Kept the
  ChannelPermissions interface (still used by the live getPermissions) and every
  other streamApi method (submit/complete/extract/stats/permissions hit live endpoints)
- api/schemas/stream.py: reword stale 'channel' field descriptions on live
  extraction fields (Target stream / Group within stream)
- panel knowledge-base.ts: fix a mock-mode example source string

No regressions: only provably-dead code retired; extraction pipeline untouched.
This commit is contained in:
Renn F
2026-07-04 05:38:33 +02:00
parent 925e00d483
commit b4c129051f
4 changed files with 4 additions and 24 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ const mockSearchResults: KBSearchResult[] = [
{ {
content: content:
"BE-DEV-1: I've completed the task validation logic. The acceptance criteria now require at least one item before a task can be created.", "BE-DEV-1: I've completed the task validation logic. The acceptance criteria now require at least one item before a task can be created.",
source: "channel:backend/session:abc123", source: "journal:be-dev-1",
score: 0.75, score: 0.75,
index_type: KBIndexType.CONVERSATIONS, index_type: KBIndexType.CONVERSATIONS,
metadata: { agent: "be-dev-1", timestamp: "2024-01-15T10:30:00Z" }, metadata: { agent: "be-dev-1", timestamp: "2024-01-15T10:30:00Z" },
-19
View File
@@ -164,23 +164,4 @@ export const streamApi = {
const { data } = await api.get<ChannelPermissions[]>("/stream/permissions"); const { data } = await api.get<ChannelPermissions[]>("/stream/permissions");
return data; return data;
}, },
/**
* Get permissions for a specific channel
*/
getChannelPermissions: async (
channelName: string,
): Promise<ChannelPermissions> => {
if (isMockMode()) {
return {
channel_name: channelName,
can_transcribe: true,
can_extract: true,
};
}
const { data } = await api.get<ChannelPermissions>(
`/stream/permissions/channel/${channelName}`,
);
return data;
},
}; };
+3 -3
View File
@@ -12,7 +12,7 @@ from pydantic import BaseModel, Field
class StreamChunkRequest(BaseModel): class StreamChunkRequest(BaseModel):
"""Request to process a stream chunk.""" """Request to process a stream chunk."""
channel_id: UUID = Field(..., description="Target channel") channel_id: UUID = Field(..., description="Target stream")
session_id: UUID = Field(..., description="Current session") session_id: UUID = Field(..., description="Current session")
chunk: str = Field(..., description="Raw LLM output chunk") chunk: str = Field(..., description="Raw LLM output chunk")
@@ -26,9 +26,9 @@ class StreamCompleteRequest(BaseModel):
class ExtractRequest(BaseModel): class ExtractRequest(BaseModel):
"""Request to extract messages from content.""" """Request to extract messages from content."""
channel_id: UUID = Field(..., description="Target channel") channel_id: UUID = Field(..., description="Target stream")
session_id: UUID = Field(..., description="Current session") session_id: UUID = Field(..., description="Current session")
group_id: UUID = Field(..., description="Group within channel") group_id: UUID = Field(..., description="Group within stream")
content: str = Field(..., description="Content to extract from") content: str = Field(..., description="Content to extract from")
task_id: UUID | None = Field(default=None, description="Related task") task_id: UUID | None = Field(default=None, description="Related task")
-1
View File
@@ -15,7 +15,6 @@ class AuditEventType(StrEnum):
# Permission denials # Permission denials
PERMISSION_DENIED = "permission_denied" PERMISSION_DENIED = "permission_denied"
CHANNEL_ACCESS_DENIED = "channel_access_denied"
TASK_ACTION_DENIED = "task_action_denied" TASK_ACTION_DENIED = "task_action_denied"
NOTIFICATION_DENIED = "notification_denied" NOTIFICATION_DENIED = "notification_denied"
STATE_TRANSITION_DENIED = "state_transition_denied" STATE_TRANSITION_DENIED = "state_transition_denied"