* feat(hub): deploy canonical workflow bundles Keep CLI deployment aligned with Hub's authored bundle boundary so validation and activation receive the same deterministic source files. Public documentation now teaches that boundary as the only configuration format. * test(hub): assert validation diagnostics directly * refactor(hub): deepen HTTP client module * feat(hub): validate named agent configurations * docs(hub): align Claude mode example
17 lines
416 B
TypeScript
17 lines
416 B
TypeScript
import { $, ProcessPromise } from "zx";
|
|
import { join } from "node:path";
|
|
|
|
const CLI_ENTRY = join(import.meta.dirname, "..", "..", "dist", "index.js");
|
|
|
|
export function runLocalPaseo(
|
|
args: string[],
|
|
env: NodeJS.ProcessEnv = {},
|
|
cwd = process.cwd(),
|
|
): ProcessPromise {
|
|
$.verbose = false;
|
|
return $({
|
|
cwd,
|
|
env: { ...process.env, ...env },
|
|
})`${process.execPath} ${CLI_ENTRY} ${args}`.nothrow();
|
|
}
|