@volter-ai-dev/supercode-ui 0.1.17 → 0.1.20
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 +6 -0
- package/components.mjs +503 -354
- package/composer.mjs +104 -33
- package/controller.mjs +7 -2
- package/conversation.mjs +74 -18
- package/core.mjs +64 -11
- package/embed.mjs +505 -356
- package/icon.mjs +1 -0
- package/index.d.ts +7 -4
- package/messenger.mjs +503 -354
- package/package.json +1 -1
- package/sessions.mjs +3 -2
- package/styles.css +4 -1
package/README.md
CHANGED
|
@@ -40,6 +40,9 @@ const mounted = mountSupercodeMessenger(document.querySelector('#agent'), {
|
|
|
40
40
|
onIntent(intent) {
|
|
41
41
|
host.send(intent);
|
|
42
42
|
},
|
|
43
|
+
async pickContext() {
|
|
44
|
+
return host.pickTextFiles();
|
|
45
|
+
},
|
|
43
46
|
onClose() {
|
|
44
47
|
panel.close();
|
|
45
48
|
},
|
|
@@ -121,6 +124,9 @@ errors, and owned/attached identities without reimplementing transcript or capab
|
|
|
121
124
|
`SupercodeController` snapshots and persisted inventory into it, then handles `SupercodeUiIntent`.
|
|
122
125
|
The browser cannot supply locators, credentials, policy, environment variables, or arbitrary
|
|
123
126
|
materialization paths. Session keys and target harnesses must be revalidated by the host.
|
|
127
|
+
`pickContext` is optional and host-owned: the default composer shows its attachment control only
|
|
128
|
+
when this callback exists, bounds the returned text context, and keeps it associated with queued
|
|
129
|
+
messages and send recovery. The host still chooses how a user selects and reads that context.
|
|
124
130
|
|
|
125
131
|
An embedding product such as Vibewaiting should therefore be small: Lucarne owns its iframe and
|
|
126
132
|
launcher lifecycle, Supercode owns this UI and the controller semantics, and Vibewaiting only
|