@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 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
- onIntent(intent) {
40
- host.send(intent);
41
- },
42
- onClose() {
43
- panel.close();
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.
@@ -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';