@chatbridge/vscode 0.8.0 → 0.8.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/README.md +34 -2
- package/dist/chat-view-bridge.d.ts +10 -2
- package/dist/chat-view-bridge.js +37 -3
- package/dist/commands.d.ts +7 -0
- package/dist/commands.js +51 -3
- package/dist/create-extension.d.ts +3 -0
- package/dist/create-extension.js +29 -3
- package/dist/index.d.ts +1 -1
- package/dist/manifest.d.ts +1 -1
- package/dist/manifest.js +1 -0
- package/dist/protocol.d.ts +43 -5
- package/dist/session-controller.d.ts +59 -8
- package/dist/session-controller.js +201 -26
- package/dist/timeout-setting.d.ts +7 -0
- package/dist/timeout-setting.js +12 -0
- package/dist/vscode-ui.d.ts +5 -0
- package/dist/vscode-ui.js +2 -0
- package/dist/webview/main.js +185 -10
- package/dist/webview/style.css +43 -0
- package/dist/webview-html.js +3 -1
- package/package.json +2 -2
package/dist/webview/style.css
CHANGED
|
@@ -85,6 +85,7 @@ body {
|
|
|
85
85
|
}
|
|
86
86
|
#composer {
|
|
87
87
|
display: flex;
|
|
88
|
+
align-items: flex-end;
|
|
88
89
|
gap: 6px;
|
|
89
90
|
padding: 8px;
|
|
90
91
|
border-top: 1px solid var(--vscode-panel-border);
|
|
@@ -92,6 +93,13 @@ body {
|
|
|
92
93
|
#input {
|
|
93
94
|
flex: 1;
|
|
94
95
|
resize: none;
|
|
96
|
+
/* `height = scrollHeight` and the row-based max-height are only exact
|
|
97
|
+
when padding and border are inside the box. */
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
overflow-y: auto;
|
|
100
|
+
line-height: 1.4;
|
|
101
|
+
/* 8 rows + padding: beyond this the textarea scrolls internally. */
|
|
102
|
+
max-height: calc(1.4em * 8 + 8px);
|
|
95
103
|
background: var(--vscode-input-background);
|
|
96
104
|
color: var(--vscode-input-foreground);
|
|
97
105
|
border: 1px solid var(--vscode-input-border, transparent);
|
|
@@ -137,3 +145,38 @@ body {
|
|
|
137
145
|
#input:disabled {
|
|
138
146
|
opacity: 0.5;
|
|
139
147
|
}
|
|
148
|
+
#queue {
|
|
149
|
+
list-style: none;
|
|
150
|
+
margin: 0;
|
|
151
|
+
padding: 0 8px;
|
|
152
|
+
font-size: 90%;
|
|
153
|
+
opacity: 0.8;
|
|
154
|
+
}
|
|
155
|
+
#queue li {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
gap: 6px;
|
|
159
|
+
padding: 2px 0;
|
|
160
|
+
white-space: nowrap;
|
|
161
|
+
overflow: hidden;
|
|
162
|
+
text-overflow: ellipsis;
|
|
163
|
+
}
|
|
164
|
+
#queue li .queue-text {
|
|
165
|
+
flex: 1;
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
text-overflow: ellipsis;
|
|
168
|
+
}
|
|
169
|
+
#inline-error {
|
|
170
|
+
padding: 2px 8px;
|
|
171
|
+
color: var(--vscode-errorForeground);
|
|
172
|
+
font-size: 90%;
|
|
173
|
+
}
|
|
174
|
+
.message.help {
|
|
175
|
+
font-family: var(--vscode-editor-font-family);
|
|
176
|
+
white-space: pre;
|
|
177
|
+
opacity: 0.8;
|
|
178
|
+
}
|
|
179
|
+
body.drop-target {
|
|
180
|
+
outline: 2px dashed var(--vscode-focusBorder);
|
|
181
|
+
outline-offset: -2px;
|
|
182
|
+
}
|
package/dist/webview-html.js
CHANGED
|
@@ -20,9 +20,11 @@ export function buildHtml(i) {
|
|
|
20
20
|
<div id="welcome" hidden><img id="banner" alt="" hidden><p id="welcome-text"></p></div>
|
|
21
21
|
<main id="history" aria-live="polite"></main>
|
|
22
22
|
<div id="status" hidden></div>
|
|
23
|
+
<ul id="queue" hidden></ul>
|
|
23
24
|
<div id="attachments"></div>
|
|
25
|
+
<div id="inline-error" hidden></div>
|
|
24
26
|
<form id="composer">
|
|
25
|
-
<textarea id="input" rows="
|
|
27
|
+
<textarea id="input" rows="1" placeholder="Message (Enter to send, Shift+Enter for a newline, / for commands)"></textarea>
|
|
26
28
|
<button id="send" type="submit">Send</button>
|
|
27
29
|
</form>
|
|
28
30
|
<footer id="footer" hidden></footer>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatbridge/vscode",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "VSCode extension factory for chatbridge: a sidebar chat view on top of ChatSession",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"build:webview": "bun run check:webview && esbuild src/webview/main.ts --bundle --format=iife --target=es2022 --outfile=dist/webview/main.js && mkdir -p dist/webview && cp src/webview/style.css dist/webview/style.css"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@chatbridge/core": "0.8.
|
|
31
|
+
"@chatbridge/core": "0.8.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/vscode": "1.138.0",
|