mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
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:
@@ -64,7 +64,7 @@ const mockSearchResults: KBSearchResult[] = [
|
||||
{
|
||||
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.",
|
||||
source: "channel:backend/session:abc123",
|
||||
source: "journal:be-dev-1",
|
||||
score: 0.75,
|
||||
index_type: KBIndexType.CONVERSATIONS,
|
||||
metadata: { agent: "be-dev-1", timestamp: "2024-01-15T10:30:00Z" },
|
||||
|
||||
@@ -164,23 +164,4 @@ export const streamApi = {
|
||||
const { data } = await api.get<ChannelPermissions[]>("/stream/permissions");
|
||||
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;
|
||||
},
|
||||
};
|
||||
|
||||
@@ -12,7 +12,7 @@ from pydantic import BaseModel, Field
|
||||
class StreamChunkRequest(BaseModel):
|
||||
"""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")
|
||||
chunk: str = Field(..., description="Raw LLM output chunk")
|
||||
|
||||
@@ -26,9 +26,9 @@ class StreamCompleteRequest(BaseModel):
|
||||
class ExtractRequest(BaseModel):
|
||||
"""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")
|
||||
group_id: UUID = Field(..., description="Group within channel")
|
||||
group_id: UUID = Field(..., description="Group within stream")
|
||||
content: str = Field(..., description="Content to extract from")
|
||||
task_id: UUID | None = Field(default=None, description="Related task")
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ class AuditEventType(StrEnum):
|
||||
|
||||
# Permission denials
|
||||
PERMISSION_DENIED = "permission_denied"
|
||||
CHANNEL_ACCESS_DENIED = "channel_access_denied"
|
||||
TASK_ACTION_DENIED = "task_action_denied"
|
||||
NOTIFICATION_DENIED = "notification_denied"
|
||||
STATE_TRANSITION_DENIED = "state_transition_denied"
|
||||
|
||||
Reference in New Issue
Block a user