@volter-ai-dev/supercode-ui 0.1.53 → 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 +272 -167
- package/composer.mjs +7 -0
- package/controller.d.ts +8 -0
- package/controller.mjs +48 -1
- package/conversation.mjs +8 -1
- package/core.mjs +28 -2
- package/embed.mjs +273 -169
- package/icon.mjs +6 -0
- package/index.d.ts +24 -3
- package/messenger.mjs +271 -167
- package/package.json +14 -2
- package/react/activity.mjs +19 -1
- package/react/components.mjs +272 -167
- package/react/composer.mjs +7 -0
- package/react/conversation.mjs +8 -1
- package/react/icon.mjs +6 -0
- package/react/index.d.ts +3 -2
- package/react/messenger.mjs +271 -167
- 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/react/composer.mjs
CHANGED
|
@@ -65,6 +65,7 @@ var EMPTY_UI_STATE = Object.freeze({
|
|
|
65
65
|
savedDraft: "",
|
|
66
66
|
attention: Object.freeze([]),
|
|
67
67
|
sessions: Object.freeze([]),
|
|
68
|
+
subagentInspector: null,
|
|
68
69
|
attached: null,
|
|
69
70
|
owned: null,
|
|
70
71
|
attachError: null
|
|
@@ -102,6 +103,12 @@ function boundedSet(map, key, value) {
|
|
|
102
103
|
// src/icon.jsx
|
|
103
104
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
104
105
|
var ICONS = {
|
|
106
|
+
agents: () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
107
|
+
/* @__PURE__ */ jsx("circle", { cx: "6", cy: "6.5", r: "2" }),
|
|
108
|
+
/* @__PURE__ */ jsx("path", { d: "M2.75 13c.45-2 1.55-3 3.25-3s2.8 1 3.25 3" }),
|
|
109
|
+
/* @__PURE__ */ jsx("circle", { cx: "12.25", cy: "7", r: "1.5" }),
|
|
110
|
+
/* @__PURE__ */ jsx("path", { d: "M10.5 10.75c1.95-.65 3.45.1 4 2.25" })
|
|
111
|
+
] }),
|
|
105
112
|
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" }),
|
|
106
113
|
back: () => /* @__PURE__ */ jsx("path", { d: "m11.5 4.5-4.5 4.5 4.5 4.5" }),
|
|
107
114
|
check: () => /* @__PURE__ */ jsx("path", { d: "m4 9 3.25 3.25L14 5.5" }),
|
package/react/conversation.mjs
CHANGED
|
@@ -66,6 +66,7 @@ var EMPTY_UI_STATE = Object.freeze({
|
|
|
66
66
|
savedDraft: "",
|
|
67
67
|
attention: Object.freeze([]),
|
|
68
68
|
sessions: Object.freeze([]),
|
|
69
|
+
subagentInspector: null,
|
|
69
70
|
attached: null,
|
|
70
71
|
owned: null,
|
|
71
72
|
attachError: null
|
|
@@ -595,6 +596,12 @@ function boundedSet(map, key, value) {
|
|
|
595
596
|
// src/icon.jsx
|
|
596
597
|
import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
597
598
|
var ICONS = {
|
|
599
|
+
agents: () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
600
|
+
/* @__PURE__ */ jsx2("circle", { cx: "6", cy: "6.5", r: "2" }),
|
|
601
|
+
/* @__PURE__ */ jsx2("path", { d: "M2.75 13c.45-2 1.55-3 3.25-3s2.8 1 3.25 3" }),
|
|
602
|
+
/* @__PURE__ */ jsx2("circle", { cx: "12.25", cy: "7", r: "1.5" }),
|
|
603
|
+
/* @__PURE__ */ jsx2("path", { d: "M10.5 10.75c1.95-.65 3.45.1 4 2.25" })
|
|
604
|
+
] }),
|
|
598
605
|
attach: () => /* @__PURE__ */ jsx2("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" }),
|
|
599
606
|
back: () => /* @__PURE__ */ jsx2("path", { d: "m11.5 4.5-4.5 4.5 4.5 4.5" }),
|
|
600
607
|
check: () => /* @__PURE__ */ jsx2("path", { d: "m4 9 3.25 3.25L14 5.5" }),
|
|
@@ -1134,13 +1141,13 @@ function ToolRow({ entry, workspace, open = false, adapter }) {
|
|
|
1134
1141
|
] });
|
|
1135
1142
|
}
|
|
1136
1143
|
function ActivityGroup({ entries, state, adapter }) {
|
|
1137
|
-
if (entries.length === 1) return /* @__PURE__ */ jsx4("section", { className: "scui-activity", "data-single": "true", children: /* @__PURE__ */ jsx4(ToolRow, { entry: entries[0], workspace: state.workspace, adapter }) });
|
|
1138
1144
|
const active = entries.some((entry) => entry.status === "pending");
|
|
1139
1145
|
const [open, setOpen] = useState2(active);
|
|
1140
1146
|
const id = useId();
|
|
1141
1147
|
useEffect3(() => {
|
|
1142
1148
|
if (active) setOpen(true);
|
|
1143
1149
|
}, [active]);
|
|
1150
|
+
if (entries.length === 1) return /* @__PURE__ */ jsx4("section", { className: "scui-activity", "data-single": "true", children: /* @__PURE__ */ jsx4(ToolRow, { entry: entries[0], workspace: state.workspace, adapter }) });
|
|
1144
1151
|
return /* @__PURE__ */ jsxs3("section", { className: "scui-activity", children: [
|
|
1145
1152
|
/* @__PURE__ */ jsxs3("button", { className: "scui-activity-head", type: "button", "aria-expanded": open, "aria-controls": id, onClick: () => setOpen((value) => !value), children: [
|
|
1146
1153
|
/* @__PURE__ */ jsx4("span", { className: "scui-fold", "data-open": open, children: /* @__PURE__ */ jsx4(UiIcon, { name: "chevron", size: 14 }) }),
|
package/react/icon.mjs
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// src/icon.jsx
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/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/react/index.d.ts
CHANGED
|
@@ -124,8 +124,9 @@ export function HarnessPicker(props: HarnessPickerProps): ReactElement;
|
|
|
124
124
|
export function HarnessReadiness(props: { harnesses: HarnessOption[]; state: SupercodeUiState; adapter: UiAdapter }): ReactElement | null;
|
|
125
125
|
export function SessionDetails(props: { semantics: SupercodeUiState['semantics'] }): ReactElement | null;
|
|
126
126
|
export function Conversation(props: { state: SupercodeUiState; adapter: UiAdapter; components?: MessengerComponents; slots?: MessengerSlots; memoryKey?: string; pending?: string | PendingMessageModel | null; unreadAfterMessages?: number | null }): ReactElement;
|
|
127
|
-
export function SessionRow(props: { row: SessionRowModel; state: SupercodeUiState; adapter: UiAdapter; now?: number; onOpen(row: SessionRowModel): void }): ReactElement;
|
|
128
|
-
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'] }): ReactElement;
|
|
127
|
+
export function SessionRow(props: { row: SessionRowModel; state: SupercodeUiState; adapter: UiAdapter; now?: number; onOpen(row: SessionRowModel): void; onOpenSubagents?(row: SessionRowModel): void }): ReactElement;
|
|
128
|
+
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'] }): ReactElement;
|
|
129
|
+
export function SubagentInspector(props: { state: SupercodeUiState; adapter: UiAdapter; onClose(): void }): ReactElement | null;
|
|
129
130
|
export function ContinuationBar(props: { state: SupercodeUiState; adapter: UiAdapter; labels?: MessengerLabels }): ReactElement | null;
|
|
130
131
|
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 }): ReactElement;
|
|
131
132
|
export function SupercodeMessenger(props: MessengerProps): ReactElement;
|