@vellumai/cli 0.3.27 → 0.4.0

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/bun.lock CHANGED
@@ -20,6 +20,7 @@
20
20
  "@types/qrcode-terminal": "^0.12.2",
21
21
  "@types/react": "^19.2.14",
22
22
  "eslint": "^10.0.0",
23
+ "prettier": "^3.8.1",
23
24
  "typescript": "^5.9.3",
24
25
  "typescript-eslint": "^8.55.0",
25
26
  },
@@ -248,6 +249,8 @@
248
249
 
249
250
  "prelude-ls": ["prelude-ls@1.2.1", "", {}, "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g=="],
250
251
 
252
+ "prettier": ["prettier@3.8.1", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg=="],
253
+
251
254
  "punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="],
252
255
 
253
256
  "qrcode": ["qrcode@1.5.4", "", { "dependencies": { "dijkstrajs": "^1.0.1", "pngjs": "^5.0.0", "yargs": "^15.3.1" }, "bin": { "qrcode": "bin/qrcode" } }, "sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg=="],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/cli",
3
- "version": "0.3.27",
3
+ "version": "0.4.0",
4
4
  "description": "CLI tools for vellum-assistant",
5
5
  "type": "module",
6
6
  "exports": {
@@ -14,6 +14,8 @@
14
14
  "vellum": "./src/index.ts"
15
15
  },
16
16
  "scripts": {
17
+ "format": "prettier --write .",
18
+ "format:check": "prettier --check .",
17
19
  "lint": "eslint",
18
20
  "test": "bun test",
19
21
  "typecheck": "bunx tsc --noEmit"
@@ -36,6 +38,7 @@
36
38
  "@types/qrcode-terminal": "^0.12.2",
37
39
  "@types/react": "^19.2.14",
38
40
  "eslint": "^10.0.0",
41
+ "prettier": "^3.8.1",
39
42
  "typescript": "^5.9.3",
40
43
  "typescript-eslint": "^8.55.0"
41
44
  }
@@ -191,8 +191,8 @@ async function detectProcess(spec: ProcessSpec): Promise<DetectedProcess> {
191
191
  return { name: spec.name, pid: pids[0], port: spec.port, running: true };
192
192
  }
193
193
 
194
- // Tier 2: TCP port probe
195
- const listening = await probePort(spec.port);
194
+ // Tier 2: TCP port probe (skip for processes without a port)
195
+ const listening = spec.port > 0 && await probePort(spec.port);
196
196
  if (listening) {
197
197
  const filePid = readPidFile(spec.pidFile);
198
198
  return {
@@ -215,7 +215,7 @@ async function detectProcess(spec: ProcessSpec): Promise<DetectedProcess> {
215
215
  function formatDetectionInfo(proc: DetectedProcess): string {
216
216
  const parts: string[] = [];
217
217
  if (proc.pid) parts.push(`PID ${proc.pid}`);
218
- parts.push(`port ${proc.port}`);
218
+ if (proc.port > 0) parts.push(`port ${proc.port}`);
219
219
  return parts.join(" | ");
220
220
  }
221
221
 
@@ -226,6 +226,7 @@ async function getLocalProcesses(entry: AssistantEntry): Promise<TableRow[]> {
226
226
  { name: "daemon", pgrepName: "vellum-daemon", port: RUNTIME_HTTP_PORT, pidFile: join(vellumDir, "vellum.pid") },
227
227
  { name: "qdrant", pgrepName: "qdrant", port: QDRANT_PORT, pidFile: join(vellumDir, "workspace", "data", "qdrant", "qdrant.pid") },
228
228
  { name: "gateway", pgrepName: "vellum-gateway", port: GATEWAY_PORT, pidFile: join(vellumDir, "gateway.pid") },
229
+ { name: "embed-worker", pgrepName: "embed-worker", port: 0, pidFile: join(vellumDir, "embed-worker.pid") },
229
230
  ];
230
231
 
231
232
  const results = await Promise.all(specs.map(detectProcess));