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

Function run

engine/src/cli.ts:171–179  ·  view source on GitHub ↗
(prompt: string)

Source from the content-addressed store, hash-verified

169 }
170}
171
172/** `--project` is a name-or-path union: a registered project's name, or a path to a
173 * directory. Resolve the name first, then fall back to treating the value as a path —
174 * but only if that path actually exists.
175 *
176 * Without the existence check a bare unregistered NAME resolves against the cwd, so
177 * `--project helm` run from `…/sild/helm` became `…/sild/helm/helm`. Nothing downstream
178 * verified it, so the kild was created, its worktree could not be created, no agent ever
179 * spawned, and the command still exited 0 with a kild id. A delegation that silently
180 * does nothing is worse than one that fails. */
181async function resolveProjectFlag(): Promise<string | undefined> {
182 if (!values.project) return undefined;

Callers 1

dispatchFunction · 0.70

Calls 2

runViaEngineFunction · 0.85
runInProcessFunction · 0.85

Tested by

no test coverage detected