@demicodes/web-ui 0.3.1 → 0.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@demicodes/web-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"src"
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"typecheck": "vue-tsc --noEmit -p tsconfig.json"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@demicodes/agent": "^0.3.
|
|
28
|
-
"@demicodes/core": "^0.3.
|
|
29
|
-
"@demicodes/utils": "^0.3.
|
|
27
|
+
"@demicodes/agent": "^0.3.2",
|
|
28
|
+
"@demicodes/core": "^0.3.2",
|
|
29
|
+
"@demicodes/utils": "^0.3.2",
|
|
30
30
|
"@floating-ui/vue": "^2.0.0",
|
|
31
31
|
"@mingcute/vue": "^1.4.1",
|
|
32
32
|
"@tanstack/vue-virtual": "^3.13.29",
|
|
@@ -20,7 +20,6 @@ const pendingSteers = computed(() => session.value?.pendingSteers ?? [])
|
|
|
20
20
|
const phase = computed(() => session.value?.phase ?? 'idle')
|
|
21
21
|
|
|
22
22
|
const bottomAreaRef = ref<HTMLDivElement>()
|
|
23
|
-
const messageInputRef = ref<InstanceType<typeof AgentMessageInput>>()
|
|
24
23
|
const { height: bottomAreaHeight } = useElementSize(bottomAreaRef)
|
|
25
24
|
|
|
26
25
|
function handleEmptySubmit() {
|
|
@@ -71,7 +70,6 @@ function onRetry() {
|
|
|
71
70
|
@clear-all="workspace.clearMessageQueue(conversationId)"
|
|
72
71
|
/>
|
|
73
72
|
<AgentMessageInput
|
|
74
|
-
ref="messageInputRef"
|
|
75
73
|
class="relative z-10"
|
|
76
74
|
:conversation-id="conversationId"
|
|
77
75
|
@empty-submit="handleEmptySubmit"
|
|
@@ -17,11 +17,18 @@ export class ConversationRuntime {
|
|
|
17
17
|
private readonly canceledPendingSteers = new Set<string>()
|
|
18
18
|
private readonly activePendingSteerRequests = new Set<string>()
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
private readonly state: ConversationState
|
|
21
|
+
private readonly baseUrl: string
|
|
22
|
+
private readonly control: ControlApi
|
|
23
|
+
|
|
24
|
+
// Explicit field assignments instead of constructor parameter properties:
|
|
25
|
+
// this package ships as source, and parameter properties are rejected by
|
|
26
|
+
// consumers compiling with erasableSyntaxOnly.
|
|
27
|
+
constructor(state: ConversationState, baseUrl: string, control: ControlApi) {
|
|
28
|
+
this.state = state
|
|
29
|
+
this.baseUrl = baseUrl
|
|
30
|
+
this.control = control
|
|
31
|
+
}
|
|
25
32
|
|
|
26
33
|
async send(content: UserContentBlock[]): Promise<void> {
|
|
27
34
|
const client = await this.ensureOpen()
|