@bbigbang/protocol 0.1.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/dist/agentSurface.d.ts +5 -0
- package/dist/agentSurface.js +11 -0
- package/dist/handoff.d.ts +45 -0
- package/dist/handoff.js +6 -0
- package/dist/index.d.ts +3685 -0
- package/dist/index.js +398 -0
- package/dist/panel.d.ts +823 -0
- package/dist/panel.js +2116 -0
- package/package.json +31 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const AGENT_SURFACE_MODES: readonly ["bigbang", "mcp"];
|
|
2
|
+
export type AgentSurfaceMode = (typeof AGENT_SURFACE_MODES)[number];
|
|
3
|
+
export declare const DEFAULT_AGENT_SURFACE_MODE: AgentSurfaceMode;
|
|
4
|
+
export declare const AGENT_SURFACE_MODE_ENV = "BIGBANG_AGENT_SURFACE";
|
|
5
|
+
export declare function normalizeAgentSurfaceMode(value: string | null | undefined): AgentSurfaceMode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const AGENT_SURFACE_MODES = ['bigbang', 'mcp'];
|
|
2
|
+
export const DEFAULT_AGENT_SURFACE_MODE = 'bigbang';
|
|
3
|
+
export const AGENT_SURFACE_MODE_ENV = 'BIGBANG_AGENT_SURFACE';
|
|
4
|
+
export function normalizeAgentSurfaceMode(value) {
|
|
5
|
+
const normalized = value?.trim().toLowerCase();
|
|
6
|
+
if (!normalized)
|
|
7
|
+
return DEFAULT_AGENT_SURFACE_MODE;
|
|
8
|
+
if (normalized === 'bigbang' || normalized === 'mcp')
|
|
9
|
+
return normalized;
|
|
10
|
+
throw new Error(`Invalid ${AGENT_SURFACE_MODE_ENV} value "${value}". Expected one of: ${AGENT_SURFACE_MODES.join(', ')}.`);
|
|
11
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type ConversationHandoffMode = 'delegate_only' | 'continue_there' | 'collab';
|
|
2
|
+
export type ConversationHandoffStatus = 'started' | 'accepted' | 'completed' | 'cancelled' | 'failed';
|
|
3
|
+
export type ConversationHandoffWorkflowKind = 'generic' | 'dm_task_thread' | 'channel_task_thread';
|
|
4
|
+
export type ConversationHandoffSourceDisposition = 'keep_running' | 'cancel_current_run';
|
|
5
|
+
export type ConversationHandoffPayload = {
|
|
6
|
+
goal: string;
|
|
7
|
+
whyNow: string | null;
|
|
8
|
+
constraints: string[];
|
|
9
|
+
alreadyDone: string[];
|
|
10
|
+
expectedOutput: string | null;
|
|
11
|
+
sourceTarget: string | null;
|
|
12
|
+
relatedTaskRef: string | null;
|
|
13
|
+
optionalRefs: string[];
|
|
14
|
+
sourceSummary: string | null;
|
|
15
|
+
sourceRollingSummary: string | null;
|
|
16
|
+
targetRunId: string | null;
|
|
17
|
+
cancelRunId: string | null;
|
|
18
|
+
completionMessageId: string | null;
|
|
19
|
+
error: string | null;
|
|
20
|
+
sourceContext: {
|
|
21
|
+
lastUserMessage: string | null;
|
|
22
|
+
lastAgentMessage: string | null;
|
|
23
|
+
boundTaskRef: string | null;
|
|
24
|
+
boundTaskTitle: string | null;
|
|
25
|
+
ownerName: string | null;
|
|
26
|
+
participants: string[];
|
|
27
|
+
myRole: string | null;
|
|
28
|
+
} | null;
|
|
29
|
+
};
|
|
30
|
+
export type ConversationHandoffRecord = {
|
|
31
|
+
handoffId: string;
|
|
32
|
+
agentId: string;
|
|
33
|
+
sourceConversationId: string;
|
|
34
|
+
targetConversationId: string | null;
|
|
35
|
+
targetReplyTarget: string;
|
|
36
|
+
workflowKind: ConversationHandoffWorkflowKind;
|
|
37
|
+
sourceDisposition: ConversationHandoffSourceDisposition;
|
|
38
|
+
taskId: string | null;
|
|
39
|
+
taskNumber: number | null;
|
|
40
|
+
mode: ConversationHandoffMode;
|
|
41
|
+
status: ConversationHandoffStatus;
|
|
42
|
+
payload: ConversationHandoffPayload;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
};
|
package/dist/handoff.js
ADDED