MCPcopy Create free account
hub / github.com/Wirasm/kild / project

Function project

engine/src/cli.ts:66–85  ·  view source on GitHub ↗
(action: string | undefined, args: string[])

Source from the content-addressed store, hash-verified

64 state: { type: 'string' }, // `kild ls --state live|orphan|reclaimable`
65 git: { type: 'boolean', default: false }, // `kild ls --git`: pay for git/cost state
66 since: { type: 'string' }, // `kild log --since <seq>`: only messages after that cursor
67 execute: { type: 'boolean', default: false }, // `kild land --execute`: merge for real
68 task: { type: 'string' }, // `kild spawn --task <text>`: the new agent's first message
69 session: { type: 'string' }, // `kild attach|inbox|send --session <id>`: the harness session
70 timeout: { type: 'string' }, // `kild watch --timeout <seconds>`: how long to wait
71 interval: { type: 'string' }, // `kild watch --interval <seconds>`: wake latency vs load
72 },
73});
74
75const errText = (err: unknown): string => (err instanceof Error ? err.message : String(err));
76
77const json = values.json ?? false;
78const [group, action, ...rest] = positionals;
79const ENGINE = process.env.KILD_ENGINE ?? 'http://localhost:4517';
80
81try {
82 await dispatch();
83 process.exit(0);
84} catch (err) {
85 console.error(`\x1b[31merror:\x1b[0m ${err instanceof Error ? err.message : err}`);
86 process.exit(1);
87}
88

Callers 1

dispatchFunction · 0.85

Calls 3

loadProjectsFunction · 0.90
addProjectFunction · 0.90
removeProjectFunction · 0.90

Tested by

no test coverage detected