Lines 1-39javascript
2// `vincentt` — the unified CLI for the local-first dev loop. A human and a
3// bash-capable coding agent drive the same verbs. No MCP registration is required
4// for the default path; `vincentt mcp` exists only for hosts without a shell.
7// auth login · logout · whoami
8// dev loop create · publish · preview
9// diagnostics logs · network · trace
10// reverse feedback (--wait | --watch)
12import os from "node:os";
13import path from "node:path";
14import { runLogin } from "../login/login.js";
15import { clearMachineToken, clearProjectBinding, loadMachineConfig, } from "../shared/config.js";
16import { getMe } from "../lib/backend.js";
17import { diagQuery, diagRead, previewStart, previewStop, previewStopSignal, projectCreate, projectPublish, } from "../lib/lifecycle.js";
18import { writeQrPage } from "../preview/qrPage.js";
19import { fetchNext, readCursor, writeCursor } from "../lib/feedback.js";
20const DEFAULT_EDITOR_URL = "https://editor.vincentt.studio";
21const DEFAULT_API_URL = "https://api.vincentt.studio";
22// ---- arg helpers ------------------------------------------------------------
23const argv = process.argv.slice(2);
25 const i = argv.indexOf(name);
26 return i !== -1 ? argv[i + 1] : undefined;
29 return argv.includes(name);
31function numFlag(name) {
33 return v !== undefined ? Number(v) : undefined;
35function projectDir() {
36 const dir = flag("--dir");
37 return dir ? path.resolve(dir) : process.cwd();
38}
HighSandbox Evasion Gated Capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/cli/index.jsView on unpkg · L19 39// ---- auth -------------------------------------------------------------------