@volter-ai-dev/supercode-ui 0.1.29 → 0.1.31
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 -2
- package/components.mjs +326 -130
- package/composer.mjs +3 -0
- package/controller.mjs +10 -11
- package/conversation.mjs +4 -1
- package/core.d.ts +1 -0
- package/core.mjs +94 -2
- package/embed.mjs +326 -132
- package/index.d.ts +80 -1
- package/messenger.mjs +324 -130
- package/package.json +8 -2
- package/sessions.mjs +30 -6
- package/settings.d.ts +2 -0
- package/settings.mjs +216 -0
- package/styles.css +12 -3
package/README.md
CHANGED
|
@@ -60,15 +60,17 @@ import {
|
|
|
60
60
|
SessionList,
|
|
61
61
|
} from '@volter-ai-dev/supercode-ui/preact';
|
|
62
62
|
import { HarnessLogo, harnessLogoDataUrl } from '@volter-ai-dev/supercode-ui/preact/logo';
|
|
63
|
+
import { HarnessAdvisory, HarnessSettingsPanel } from '@volter-ai-dev/supercode-ui/preact/settings';
|
|
63
64
|
import { groupConversation } from '@volter-ai-dev/supercode-ui/core';
|
|
64
65
|
```
|
|
65
66
|
|
|
66
67
|
The public components are `SupercodeMessenger`, `Conversation`, `TranscriptEntry`,
|
|
67
68
|
`ActivityGroup`, `RequestCard`, `SessionList`, `SessionRow`, `Composer`, `ContinuationBar`,
|
|
68
|
-
`LoadingStatus`, `TaskPlan`, `SessionDetails`,
|
|
69
|
+
`LoadingStatus`, `TaskPlan`, `SessionDetails`, `HarnessLogo`, `HarnessAdvisory`, and
|
|
70
|
+
`HarnessSettingsPanel`. Pure state readers, selectors,
|
|
69
71
|
formatters, and intent constructors live at `supercode-ui/core` and have no DOM or Preact imports.
|
|
70
72
|
For genuine partial delivery, the `preact/logo`, `preact/icon`, `preact/conversation`, `preact/sessions`,
|
|
71
|
-
`preact/composer`, and `preact/messenger` subpaths are independently tree-shaken artifacts; taking
|
|
73
|
+
`preact/composer`, `preact/settings`, and `preact/messenger` subpaths are independently tree-shaken artifacts; taking
|
|
72
74
|
the logo does not pull in Markdown, the messenger, or session-list code.
|
|
73
75
|
`harnessLogoDataUrl(id)` gives non-Preact launchers the same self-contained canonical SVG; it
|
|
74
76
|
returns `null` for an unknown harness rather than inventing a fallback identity.
|
|
@@ -126,6 +128,12 @@ errors, and owned/attached identities without reimplementing transcript or capab
|
|
|
126
128
|
`SupercodeController` snapshots and persisted inventory into it, then handles `SupercodeUiIntent`.
|
|
127
129
|
The browser cannot supply locators, credentials, policy, environment variables, or arbitrary
|
|
128
130
|
materialization paths. Session keys and target harnesses must be revalidated by the host.
|
|
131
|
+
Harness configuration is similarly narrow: the UI can only submit a choice from the revisioned
|
|
132
|
+
interoperability-control report it received. The headless controller rejects configuration unless
|
|
133
|
+
the trusted embedding host explicitly opts into `allowHarnessConfiguration`, revalidates the
|
|
134
|
+
active harness, control key, declared choice, reset capability, and revision, then asks the local
|
|
135
|
+
service to update the native file atomically. The UI shows the scope, precedence uncertainty, and
|
|
136
|
+
security consequence before it emits that intent; it is not a generic preferences editor.
|
|
129
137
|
`pickContext` is optional and host-owned: the default composer shows one attachment control when
|
|
130
138
|
this callback exists and accepts either typed text context (`detail`) or native image inputs
|
|
131
139
|
(`url`). Images can also be pasted or dropped directly, and an image-only turn is sent without
|