@vellumai/cli 0.1.12 → 0.1.13
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 +1 -1
- package/src/components/DefaultMainScreen.tsx +10 -28
- package/src/lib/local.ts +2 -5
package/package.json
CHANGED
|
@@ -28,7 +28,6 @@ export const SLASH_COMMANDS = ["/clear", "/doctor", "/exit", "/help", "/q", "/qu
|
|
|
28
28
|
const POLL_INTERVAL_MS = 3000;
|
|
29
29
|
const SEND_TIMEOUT_MS = 5000;
|
|
30
30
|
const RESPONSE_POLL_INTERVAL_MS = 1000;
|
|
31
|
-
const RESPONSE_TIMEOUT_MS = 180000;
|
|
32
31
|
|
|
33
32
|
interface ListMessagesResponse {
|
|
34
33
|
messages: RuntimeMessage[];
|
|
@@ -1021,8 +1020,8 @@ function ChatApp({
|
|
|
1021
1020
|
: secretInput
|
|
1022
1021
|
? 5
|
|
1023
1022
|
: spinnerText
|
|
1024
|
-
?
|
|
1025
|
-
:
|
|
1023
|
+
? 4
|
|
1024
|
+
: 3;
|
|
1026
1025
|
const availableRows = Math.max(3, terminalRows - headerHeight - bottomHeight);
|
|
1027
1026
|
|
|
1028
1027
|
const addMessage = useCallback((msg: RuntimeMessage) => {
|
|
@@ -1515,8 +1514,7 @@ function ChatApp({
|
|
|
1515
1514
|
|
|
1516
1515
|
h.showSpinner("Working...");
|
|
1517
1516
|
|
|
1518
|
-
|
|
1519
|
-
while (Date.now() - startTime < RESPONSE_TIMEOUT_MS) {
|
|
1517
|
+
while (true) {
|
|
1520
1518
|
await new Promise((resolve) => setTimeout(resolve, RESPONSE_POLL_INTERVAL_MS));
|
|
1521
1519
|
|
|
1522
1520
|
if (runId) {
|
|
@@ -1609,26 +1607,6 @@ function ChatApp({
|
|
|
1609
1607
|
}
|
|
1610
1608
|
}
|
|
1611
1609
|
|
|
1612
|
-
h.setBusy(false);
|
|
1613
|
-
h.hideSpinner();
|
|
1614
|
-
h.showError("Response timed out. The assistant may still be processing.");
|
|
1615
|
-
try {
|
|
1616
|
-
const doctorResult = await callDoctorDaemon(
|
|
1617
|
-
assistantId,
|
|
1618
|
-
project,
|
|
1619
|
-
zone,
|
|
1620
|
-
undefined,
|
|
1621
|
-
undefined,
|
|
1622
|
-
doctorSessionIdRef.current,
|
|
1623
|
-
);
|
|
1624
|
-
if (doctorResult.diagnostics) {
|
|
1625
|
-
h.addStatus(
|
|
1626
|
-
`--- SSH Diagnostics ---\n${doctorResult.diagnostics}\n--- End Diagnostics ---`,
|
|
1627
|
-
);
|
|
1628
|
-
}
|
|
1629
|
-
} catch {
|
|
1630
|
-
// Doctor daemon unreachable; skip diagnostics
|
|
1631
|
-
}
|
|
1632
1610
|
} catch (error) {
|
|
1633
1611
|
h.setBusy(false);
|
|
1634
1612
|
h.hideSpinner();
|
|
@@ -1852,9 +1830,11 @@ function ChatApp({
|
|
|
1852
1830
|
) : null}
|
|
1853
1831
|
|
|
1854
1832
|
{!selection && !secretInput ? (
|
|
1855
|
-
<Box>
|
|
1856
|
-
<Text
|
|
1857
|
-
|
|
1833
|
+
<Box flexDirection="column">
|
|
1834
|
+
<Text dimColor>{"\u2500".repeat(terminalColumns)}</Text>
|
|
1835
|
+
<Box paddingLeft={1}>
|
|
1836
|
+
<Text color="green" bold>
|
|
1837
|
+
you{">"}
|
|
1858
1838
|
{" "}
|
|
1859
1839
|
</Text>
|
|
1860
1840
|
<TextInput
|
|
@@ -1863,6 +1843,8 @@ function ChatApp({
|
|
|
1863
1843
|
onSubmit={handleSubmit}
|
|
1864
1844
|
focus={inputFocused}
|
|
1865
1845
|
/>
|
|
1846
|
+
</Box>
|
|
1847
|
+
<Text dimColor>{"\u2500".repeat(terminalColumns)}</Text>
|
|
1866
1848
|
</Box>
|
|
1867
1849
|
) : null}
|
|
1868
1850
|
</Box>
|
package/src/lib/local.ts
CHANGED
|
@@ -295,15 +295,12 @@ export async function startGateway(): Promise<string> {
|
|
|
295
295
|
const workspaceIngressPublicBaseUrl = readWorkspaceIngressPublicBaseUrl();
|
|
296
296
|
const ingressPublicBaseUrl =
|
|
297
297
|
workspaceIngressPublicBaseUrl
|
|
298
|
-
?? normalizeIngressUrl(process.env.INGRESS_PUBLIC_BASE_URL)
|
|
298
|
+
?? normalizeIngressUrl(process.env.INGRESS_PUBLIC_BASE_URL)
|
|
299
|
+
?? publicUrl;
|
|
299
300
|
if (ingressPublicBaseUrl) {
|
|
300
301
|
gatewayEnv.INGRESS_PUBLIC_BASE_URL = ingressPublicBaseUrl;
|
|
301
302
|
console.log(` Ingress URL: ${ingressPublicBaseUrl}`);
|
|
302
|
-
if (!workspaceIngressPublicBaseUrl) {
|
|
303
|
-
console.log(" (using INGRESS_PUBLIC_BASE_URL env fallback)");
|
|
304
|
-
}
|
|
305
303
|
}
|
|
306
|
-
if (publicUrl) gatewayEnv.GATEWAY_PUBLIC_URL = publicUrl;
|
|
307
304
|
|
|
308
305
|
const gateway = spawn("bun", ["run", "src/index.ts"], {
|
|
309
306
|
cwd: gatewayDir,
|