@vellumai/cli 0.8.4 → 0.8.6
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/AGENTS.md +17 -1
- package/knip.json +2 -1
- package/package.json +1 -1
- package/src/__tests__/api-key-check.test.ts +78 -0
- package/src/__tests__/backup.test.ts +38 -0
- package/src/__tests__/recover.test.ts +307 -0
- package/src/__tests__/retire.test.ts +241 -0
- package/src/__tests__/wake.test.ts +215 -0
- package/src/commands/backup.ts +2 -0
- package/src/commands/client.ts +62 -32
- package/src/commands/flags.ts +197 -0
- package/src/commands/gateway/token.ts +73 -0
- package/src/commands/gateway.ts +29 -0
- package/src/commands/logs.ts +6 -18
- package/src/commands/ps.ts +41 -41
- package/src/commands/recover.ts +47 -9
- package/src/commands/restore.ts +8 -1
- package/src/commands/retire.ts +145 -55
- package/src/commands/roadmap.ts +449 -0
- package/src/commands/rollback.ts +2 -14
- package/src/commands/ssh.ts +5 -24
- package/src/commands/teleport.ts +34 -26
- package/src/commands/upgrade.ts +8 -16
- package/src/commands/wake.ts +68 -45
- package/src/index.ts +9 -0
- package/src/lib/__tests__/port-allocator.test.ts +117 -0
- package/src/lib/__tests__/step-runner.test.ts +133 -0
- package/src/lib/api-key-check.ts +40 -0
- package/src/lib/assistant-config.ts +13 -0
- package/src/lib/config-utils.ts +24 -3
- package/src/lib/docker.ts +72 -8
- package/src/lib/hatch-local.ts +15 -2
- package/src/lib/http-client.ts +1 -3
- package/src/lib/local.ts +173 -292
- package/src/lib/orphan-detection.ts +9 -5
- package/src/lib/pgrep.ts +5 -1
- package/src/lib/platform-client.ts +97 -49
- package/src/lib/port-allocator.ts +93 -0
- package/src/lib/process.ts +109 -39
- package/src/lib/statefulset.ts +0 -10
- package/src/lib/step-runner.ts +102 -9
- package/src/lib/sync-cloud-assistants.ts +17 -0
- package/src/shared/provider-env-vars.ts +1 -0
|
@@ -26,6 +26,13 @@ import {
|
|
|
26
26
|
|
|
27
27
|
export type SyncLogger = (message: string) => void;
|
|
28
28
|
|
|
29
|
+
function isTimeoutError(err: unknown): boolean {
|
|
30
|
+
return (
|
|
31
|
+
err instanceof Error &&
|
|
32
|
+
(err.name === "AbortError" || err.message.includes("timed out"))
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
29
36
|
export interface SyncResult {
|
|
30
37
|
added: number;
|
|
31
38
|
removed: number;
|
|
@@ -68,6 +75,11 @@ export async function syncCloudAssistants(
|
|
|
68
75
|
} catch (err) {
|
|
69
76
|
const msg = err instanceof Error ? err.message : String(err);
|
|
70
77
|
log?.(`Failed to fetch current user: ${msg}`);
|
|
78
|
+
if (isTimeoutError(err)) {
|
|
79
|
+
console.warn(
|
|
80
|
+
"Warning: platform user lookup timed out — skipping cloud sync",
|
|
81
|
+
);
|
|
82
|
+
}
|
|
71
83
|
}
|
|
72
84
|
|
|
73
85
|
let platformAssistants: { id: string; name: string; status: string }[];
|
|
@@ -80,6 +92,11 @@ export async function syncCloudAssistants(
|
|
|
80
92
|
} catch (err) {
|
|
81
93
|
const msg = err instanceof Error ? err.message : String(err);
|
|
82
94
|
log?.(`fetchPlatformAssistants failed: ${msg}`);
|
|
95
|
+
if (isTimeoutError(err)) {
|
|
96
|
+
console.warn(
|
|
97
|
+
"Warning: platform assistant fetch timed out — using cached data",
|
|
98
|
+
);
|
|
99
|
+
}
|
|
83
100
|
return null;
|
|
84
101
|
}
|
|
85
102
|
|
|
@@ -26,6 +26,7 @@ export const LLM_PROVIDER_ENV_VAR_NAMES: Record<string, string> = {
|
|
|
26
26
|
gemini: "GEMINI_API_KEY",
|
|
27
27
|
fireworks: "FIREWORKS_API_KEY",
|
|
28
28
|
openrouter: "OPENROUTER_API_KEY",
|
|
29
|
+
minimax: "MINIMAX_API_KEY",
|
|
29
30
|
};
|
|
30
31
|
|
|
31
32
|
/** Search-provider env var names. Mirrors `SEARCH_PROVIDER_CATALOG` BYOK entries. */
|