MCPcopy Create free account
hub / github.com/SethGammon/Citadel / parseArgs

Function parseArgs

scripts/dashboard-server.js:44–65  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

42 readEvents,
43} = require('../core/forks');
44
45const DEFAULT_PORT = 4180;
46const BIND_HOST = '127.0.0.1';
47const SNAPSHOT_TTL_MS = 5000;
48const WATCH_DEBOUNCE_MS = 300;
49const WATCH_POLL_FALLBACK_MS = 2000;
50const SSE_HEARTBEAT_MS = 25000;
51const RECENT_LIMIT = 25;
52const INTENT_BODY_LIMIT = 16 * 1024;
53const STATIC_DIR = path.join(__dirname, '..', 'dashboard');
54
55const MIME = {
56 '.html': 'text/html; charset=utf-8',
57 '.css': 'text/css; charset=utf-8',
58 '.js': 'text/javascript; charset=utf-8',
59 '.svg': 'image/svg+xml',
60 '.png': 'image/png',
61 '.json': 'application/json; charset=utf-8',
62 '.ico': 'image/x-icon',
63};
64
65function parseArgs(argv) {
66 const options = {
67 projectRoot: process.env.CLAUDE_PROJECT_DIR || process.cwd(),
68 port: DEFAULT_PORT,

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected