@promptbook/google
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
31 lines (30 loc) • 1.22 kB
TypeScript
import type { Command } from 'commander';
/**
* Optional project selection shared by workspace actions, independently of Book and harness selection.
* @private internal CLI options
*/
export type ProjectCliOptions = {
readonly path?: string;
};
/**
* Registers project selection without capturing a directory during command registration.
* @private internal CLI registration helper
*/
export declare function addProjectPathOption(command: Command): void;
/**
* Registers additional context independently of primary-agent selection.
* @private internal CLI registration helper
*/
export declare function addProjectContextOption(command: Command): void;
/**
* Captures an invocation's directory at action time. No process-global state is changed.
* @private internal CLI normalization helper
*/
export declare function normalizeProjectCliOptions(options: ProjectCliOptions, invocationDirectory?: string): {
readonly projectDirectory: string;
};
/**
* Validates the selected directory before any setup writes, without selecting an enclosing Git root.
* @private shared project resolution for CLI services
*/
export declare function resolveProjectDirectory(projectDirectory: string): Promise<string>;