@volter-ai-dev/supercode-ui 0.1.0 → 0.1.2
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/README.md +10 -7
- package/components.d.ts +17 -0
- package/components.mjs +416 -346
- package/composer.d.ts +2 -0
- package/composer.mjs +23 -20
- package/controller.mjs +3 -2
- package/conversation.d.ts +20 -0
- package/conversation.mjs +79 -65
- package/core.d.ts +41 -0
- package/core.mjs +71 -4
- package/embed.d.ts +2 -0
- package/embed.mjs +415 -345
- package/index.d.ts +1 -1
- package/logo.d.ts +2 -0
- package/logo.mjs +7 -70
- package/messenger.d.ts +10 -0
- package/messenger.mjs +413 -343
- package/package.json +23 -12
- package/sessions.d.ts +9 -0
- package/sessions.mjs +71 -53
- package/styles.css +5 -4
package/README.md
CHANGED
|
@@ -36,11 +36,13 @@ import '@volter-ai-dev/supercode-ui/styles.css';
|
|
|
36
36
|
|
|
37
37
|
const mounted = mountSupercodeMessenger(document.querySelector('#agent'), {
|
|
38
38
|
state: initialState,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
adapter: {
|
|
40
|
+
onIntent(intent) {
|
|
41
|
+
host.send(intent);
|
|
42
|
+
},
|
|
43
|
+
onClose() {
|
|
44
|
+
panel.close();
|
|
45
|
+
},
|
|
44
46
|
},
|
|
45
47
|
});
|
|
46
48
|
|
|
@@ -83,8 +85,9 @@ binding.subscribe((state) => mounted.update(state));
|
|
|
83
85
|
mounted.update(binding.getState());
|
|
84
86
|
```
|
|
85
87
|
|
|
86
|
-
The binding maps
|
|
87
|
-
|
|
88
|
+
The binding maps standard controller operations, including verified reduce-and-continue, and
|
|
89
|
+
projects its durable reduction receipt directly. Host-owned pagination, durable attention,
|
|
90
|
+
drafts, and artifact materialization remain explicit callbacks. A
|
|
88
91
|
browser should receive projected state from a trusted host rather than instantiate a local
|
|
89
92
|
controller or gain filesystem authority.
|
|
90
93
|
|
package/components.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type * from './index.js';
|
|
2
|
+
export {
|
|
3
|
+
ActivityGroup,
|
|
4
|
+
Composer,
|
|
5
|
+
ContinuationBar,
|
|
6
|
+
Conversation,
|
|
7
|
+
HarnessLogo,
|
|
8
|
+
LoadingStatus,
|
|
9
|
+
RequestCard,
|
|
10
|
+
SessionDetails,
|
|
11
|
+
SessionList,
|
|
12
|
+
SessionRow,
|
|
13
|
+
SupercodeMessenger,
|
|
14
|
+
TaskPlan,
|
|
15
|
+
TranscriptEntry,
|
|
16
|
+
hasHarnessLogo,
|
|
17
|
+
} from './index.js';
|