@promptbook/google
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
35 lines (34 loc) • 1.39 kB
TypeScript
import type { Command as Program } from 'commander';
import type { CoderGitSyncOptions } from '../../../../scripts/run-codex-prompts/git/coderGitSync';
export type { CoderGitSyncOptions };
/**
* Commander option bag for the shared `ptbk coder` git synchronization flags.
*
* @private internal utility of `promptbookCli`
*/
export type CoderGitSyncCliOptions = {
readonly commit: boolean;
readonly autoPush: boolean;
readonly autoPull: boolean;
};
/**
* Description block shared by the `ptbk coder` commands which can synchronize their changes with git.
*
* @private internal utility of `promptbookCli`
*/
export declare const CODER_GIT_SYNC_DESCRIPTION: string;
/**
* Registers the shared `--commit`, `--auto-push` and `--auto-pull` flags on a `ptbk coder` command.
*
* Note: Unlike `ptbk coder run`, which commits by default and opts out through `--no-commit`,
* these commands only mutate Git when the flags are used explicitly. Workspace detection always runs.
*
* @private internal utility of `promptbookCli`
*/
export declare function addCoderGitSyncOptions(command: Program): void;
/**
* Converts the Commander git synchronization flags into normalized git synchronization options.
*
* @private internal utility of `promptbookCli`
*/
export declare function normalizeCoderGitSyncCliOptions(cliOptions: CoderGitSyncCliOptions): CoderGitSyncOptions;