@volter-ai-dev/supercode-ui 0.1.54 → 0.1.55
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/activity.mjs +19 -1
- package/components.d.ts +1 -0
- package/components.mjs +271 -166
- package/composer.mjs +7 -0
- package/controller.d.ts +8 -0
- package/controller.mjs +48 -1
- package/conversation.mjs +7 -0
- package/core.mjs +28 -2
- package/embed.mjs +272 -168
- package/icon.mjs +6 -0
- package/index.d.ts +24 -3
- package/messenger.mjs +270 -166
- package/package.json +11 -1
- package/react/activity.mjs +19 -1
- package/react/components.mjs +271 -166
- package/react/composer.mjs +7 -0
- package/react/conversation.mjs +7 -0
- package/react/icon.mjs +6 -0
- package/react/index.d.ts +3 -2
- package/react/messenger.mjs +270 -166
- package/react/sessions.d.ts +1 -1
- package/react/sessions.mjs +41 -25
- package/react/settings.mjs +7 -0
- package/react/subagents.d.ts +2 -0
- package/react/subagents.mjs +1464 -0
- package/sessions.d.ts +1 -1
- package/sessions.mjs +41 -25
- package/settings.mjs +7 -0
- package/styles.css +6 -1
- package/subagents.d.ts +2 -0
- package/subagents.mjs +1464 -0
package/icon.mjs
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// src/icon.jsx
|
|
2
2
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
3
3
|
var ICONS = {
|
|
4
|
+
agents: () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5
|
+
/* @__PURE__ */ jsx("circle", { cx: "6", cy: "6.5", r: "2" }),
|
|
6
|
+
/* @__PURE__ */ jsx("path", { d: "M2.75 13c.45-2 1.55-3 3.25-3s2.8 1 3.25 3" }),
|
|
7
|
+
/* @__PURE__ */ jsx("circle", { cx: "12.25", cy: "7", r: "1.5" }),
|
|
8
|
+
/* @__PURE__ */ jsx("path", { d: "M10.5 10.75c1.95-.65 3.45.1 4 2.25" })
|
|
9
|
+
] }),
|
|
4
10
|
attach: () => /* @__PURE__ */ jsx("path", { d: "M6.25 9.75 10.6 5.4a2.1 2.1 0 0 1 2.97 2.97l-5.4 5.4a3.3 3.3 0 0 1-4.67-4.66l5.52-5.52" }),
|
|
5
11
|
back: () => /* @__PURE__ */ jsx("path", { d: "m11.5 4.5-4.5 4.5 4.5 4.5" }),
|
|
6
12
|
check: () => /* @__PURE__ */ jsx("path", { d: "m4 9 3.25 3.25L14 5.5" }),
|
package/index.d.ts
CHANGED
|
@@ -63,6 +63,20 @@ export interface SessionRowModel {
|
|
|
63
63
|
writable: boolean;
|
|
64
64
|
live: boolean;
|
|
65
65
|
runtimeStatus: 'running' | 'busy' | 'idle' | null;
|
|
66
|
+
/** Proven harness-native child sessions represented by this root row. */
|
|
67
|
+
subagentCount?: number;
|
|
68
|
+
/** Explicit activity used for child rows in the on-demand inspector. */
|
|
69
|
+
activity?: SessionActivity;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface SubagentInspectorModel {
|
|
73
|
+
parentKey: string;
|
|
74
|
+
parentTitle: string;
|
|
75
|
+
status: 'loading' | 'ready' | 'error';
|
|
76
|
+
items: SessionRowModel[];
|
|
77
|
+
selectedKey: string | null;
|
|
78
|
+
transcript: TranscriptEntryModel[];
|
|
79
|
+
error: string | null;
|
|
66
80
|
}
|
|
67
81
|
|
|
68
82
|
export interface AttachedSessionModel {
|
|
@@ -312,6 +326,8 @@ export interface SupercodeUiState {
|
|
|
312
326
|
savedDraft: string;
|
|
313
327
|
attention: SessionAttention[];
|
|
314
328
|
sessions: SessionRowModel[];
|
|
329
|
+
/** On-demand native child index and bounded read-only detail. */
|
|
330
|
+
subagentInspector: SubagentInspectorModel | null;
|
|
315
331
|
attached: AttachedSessionModel | null;
|
|
316
332
|
owned: AttachedSessionModel | null;
|
|
317
333
|
attachError: { key: string; message: string } | null;
|
|
@@ -323,6 +339,9 @@ export type SupercodeUiIntent =
|
|
|
323
339
|
| { action: 'ack'; key: string }
|
|
324
340
|
| { action: 'loadSessions' }
|
|
325
341
|
| { action: 'loadEarlier' }
|
|
342
|
+
| { action: 'openSubagents'; key: string }
|
|
343
|
+
| { action: 'openSubagent'; parentKey: string; key: string }
|
|
344
|
+
| { action: 'closeSubagents' }
|
|
326
345
|
| { action: 'draft'; text: string }
|
|
327
346
|
| { action: 'send'; text: string; context?: TranscriptContext[]; images?: Array<TranscriptImage & { url: string }> }
|
|
328
347
|
| { action: 'steer'; text: string }
|
|
@@ -400,6 +419,7 @@ export interface SessionRowProps {
|
|
|
400
419
|
adapter: UiAdapter;
|
|
401
420
|
now?: number;
|
|
402
421
|
onOpen(row: SessionRowModel): void;
|
|
422
|
+
onOpenSubagents?(row: SessionRowModel): void;
|
|
403
423
|
}
|
|
404
424
|
|
|
405
425
|
export interface TranscriptEntryProps {
|
|
@@ -547,7 +567,7 @@ export function parseSupercodeUiIntent(value: unknown): SupercodeUiIntent | null
|
|
|
547
567
|
|
|
548
568
|
export function HarnessLogo(props: { id: HarnessId; activity?: SessionActivity; size?: number; onMissingLogo?(id: string): void }): VNode | null;
|
|
549
569
|
export function AgentActivityLauncher(props: AgentActivityLauncherProps): VNode;
|
|
550
|
-
export type UiIconName = 'attach' | 'back' | 'check' | 'chevron' | 'close' | 'compose' | 'copy' | 'down' | 'menu' | 'plus' | 'search' | 'send' | 'stop';
|
|
570
|
+
export type UiIconName = 'agents' | 'attach' | 'back' | 'check' | 'chevron' | 'close' | 'compose' | 'copy' | 'down' | 'menu' | 'plus' | 'search' | 'send' | 'stop';
|
|
551
571
|
export function UiIcon(props: { name: UiIconName; size?: number; class?: string }): VNode | null;
|
|
552
572
|
export function hasHarnessLogo(id: string): boolean;
|
|
553
573
|
export function harnessLogoDataUrl(id: string): string | null;
|
|
@@ -567,8 +587,9 @@ export function HarnessPicker(props: HarnessPickerProps): VNode;
|
|
|
567
587
|
export function HarnessReadiness(props: { harnesses: HarnessOption[]; state: SupercodeUiState; adapter: UiAdapter }): VNode | null;
|
|
568
588
|
export function SessionDetails(props: { semantics: SessionSemanticsModel }): VNode | null;
|
|
569
589
|
export function Conversation(props: { state: SupercodeUiState; adapter: UiAdapter; components?: MessengerComponents; slots?: MessengerSlots; memoryKey?: string; pending?: string | PendingMessageModel | null; unreadAfterMessages?: number | null }): VNode;
|
|
570
|
-
export function SessionRow(props: { row: SessionRowModel; state: SupercodeUiState; adapter: UiAdapter; now?: number; onOpen(row: SessionRowModel): void }): VNode;
|
|
571
|
-
export function SessionList(props: { state: SupercodeUiState; adapter: UiAdapter; onOpen(row: SessionRowModel): void; onNew?(): void; onClose?(): void; components?: MessengerComponents; slots?: MessengerSlots; labels?: MessengerLabels; focusKey?: string | null; memoryKey?: string; headerActions?: MessengerSlots['headerActions'] }): VNode;
|
|
590
|
+
export function SessionRow(props: { row: SessionRowModel; state: SupercodeUiState; adapter: UiAdapter; now?: number; onOpen(row: SessionRowModel): void; onOpenSubagents?(row: SessionRowModel): void }): VNode;
|
|
591
|
+
export function SessionList(props: { state: SupercodeUiState; adapter: UiAdapter; onOpen(row: SessionRowModel): void; onOpenSubagents?(row: SessionRowModel): void; onNew?(): void; onClose?(): void; components?: MessengerComponents; slots?: MessengerSlots; labels?: MessengerLabels; focusKey?: string | null; memoryKey?: string; headerActions?: MessengerSlots['headerActions'] }): VNode;
|
|
592
|
+
export function SubagentInspector(props: { state: SupercodeUiState; adapter: UiAdapter; onClose(): void }): VNode | null;
|
|
572
593
|
export function ContinuationBar(props: { state: SupercodeUiState; adapter: UiAdapter; labels?: MessengerLabels }): VNode | null;
|
|
573
594
|
export function ExecutionModeSelect(props: { modes?: ExecutionMode[]; value: ExecutionMode; onChange?(mode: ExecutionMode): void; disabled?: boolean; label?: string }): VNode | null;
|
|
574
595
|
export function Composer(props: { state: SupercodeUiState; adapter: UiAdapter; labels?: MessengerLabels; memoryKey?: string; pendingStatus?: PendingMessageModel['status'] | 'editing' | null; restoreDraft?: { id: string | number; text: string; context?: TranscriptContext[]; images?: TranscriptImage[] } | null; command?: MessengerComposerCommand | null; contextCandidates?: TranscriptAttachment[]; components?: Pick<MessengerComponents, 'ContextCandidate'>; onPending?(text: string, context?: TranscriptContext[], images?: TranscriptImage[]): void; onDraftRestored?(id: string | number): void }): VNode;
|