@volter-ai-dev/supercode-ui 0.1.1 → 0.1.3
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 +15 -5
- package/components.d.ts +17 -0
- package/components.mjs +422 -346
- package/composer.d.ts +2 -0
- package/composer.mjs +24 -20
- package/controller.d.ts +24 -0
- package/controller.mjs +197 -69
- package/conversation.d.ts +20 -0
- package/conversation.mjs +80 -65
- package/core.d.ts +41 -0
- package/core.mjs +72 -4
- package/embed.d.ts +2 -0
- package/embed.mjs +421 -345
- package/logo.d.ts +2 -0
- package/logo.mjs +12 -70
- package/messenger.d.ts +10 -0
- package/messenger.mjs +419 -343
- package/package.json +23 -12
- package/sessions.d.ts +9 -0
- package/sessions.mjs +77 -53
- package/styles.css +6 -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
|
|
|
@@ -89,6 +91,14 @@ drafts, and artifact materialization remain explicit callbacks. A
|
|
|
89
91
|
browser should receive projected state from a trusted host rather than instantiate a local
|
|
90
92
|
controller or gain filesystem authority.
|
|
91
93
|
|
|
94
|
+
The default controller projection is display-bounded: 120 visible transcript rows, at most 480
|
|
95
|
+
native entries inspected to fill that tail, 16,000 characters per independent entry field, 100
|
|
96
|
+
session rows, 20 fidelity-residue details, and 50 subagents. It filters harness-injected context
|
|
97
|
+
before counting visible rows, retains native timestamps and typed tool/request lifecycles, and keeps
|
|
98
|
+
the uncapped residue count truthful. Hosts can narrow those limits with `ClientProjectionOptions`
|
|
99
|
+
and can overlay a machine-wide session inventory, pagination state, attention, drafts, attachment
|
|
100
|
+
errors, and owned/attached identities without reimplementing transcript or capability semantics.
|
|
101
|
+
|
|
92
102
|
## Modularity contract
|
|
93
103
|
|
|
94
104
|
- Every component accepts data and callbacks. No component reaches into a global controller.
|
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';
|