| |
| |
| |
| |
| |
| |
| |
| |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| export const queryKeys = { |
| |
| |
| |
| features: { |
| |
| all: (projectPath: string) => ['features', projectPath] as const, |
| |
| single: (projectPath: string, featureId: string) => |
| ['features', projectPath, featureId] as const, |
| |
| agentOutput: (projectPath: string, featureId: string) => |
| ['features', projectPath, featureId, 'output'] as const, |
| }, |
|
|
| |
| |
| |
| worktrees: { |
| |
| all: (projectPath: string) => ['worktrees', projectPath] as const, |
| |
| single: (projectPath: string, featureId: string) => |
| ['worktrees', projectPath, featureId] as const, |
| |
| branches: (worktreePath: string, includeRemote = false) => |
| ['worktrees', 'branches', worktreePath, { includeRemote }] as const, |
| |
| status: (projectPath: string, featureId: string) => |
| ['worktrees', projectPath, featureId, 'status'] as const, |
| |
| diffs: (projectPath: string, featureId: string) => |
| ['worktrees', projectPath, featureId, 'diffs'] as const, |
| |
| initScript: (projectPath: string) => ['worktrees', projectPath, 'init-script'] as const, |
| |
| editors: () => ['worktrees', 'editors'] as const, |
| }, |
|
|
| |
| |
| |
| github: { |
| |
| issues: (projectPath: string) => ['github', 'issues', projectPath] as const, |
| |
| prs: (projectPath: string) => ['github', 'prs', projectPath] as const, |
| |
| validations: (projectPath: string) => ['github', 'validations', projectPath] as const, |
| |
| validation: (projectPath: string, issueNumber: number) => |
| ['github', 'validations', projectPath, issueNumber] as const, |
| |
| issueComments: (projectPath: string, issueNumber: number) => |
| ['github', 'issues', projectPath, issueNumber, 'comments'] as const, |
| |
| prReviewComments: (projectPath: string, prNumber: number) => |
| ['github', 'prs', projectPath, prNumber, 'review-comments'] as const, |
| |
| remote: (projectPath: string) => ['github', 'remote', projectPath] as const, |
| }, |
|
|
| |
| |
| |
| settings: { |
| |
| global: () => ['settings', 'global'] as const, |
| |
| project: (projectPath: string) => ['settings', 'project', projectPath] as const, |
| |
| status: () => ['settings', 'status'] as const, |
| |
| credentials: () => ['settings', 'credentials'] as const, |
| |
| agents: (projectPath: string, sources?: Array<'user' | 'project'>) => |
| ['settings', 'agents', projectPath, sources ?? []] as const, |
| }, |
|
|
| |
| |
| |
| usage: { |
| |
| claude: () => ['usage', 'claude'] as const, |
| |
| codex: () => ['usage', 'codex'] as const, |
| |
| zai: () => ['usage', 'zai'] as const, |
| |
| gemini: () => ['usage', 'gemini'] as const, |
| }, |
|
|
| |
| |
| |
| models: { |
| |
| available: () => ['models', 'available'] as const, |
| |
| codex: () => ['models', 'codex'] as const, |
| |
| opencode: () => ['models', 'opencode'] as const, |
| |
| opencodeProviders: () => ['models', 'opencode', 'providers'] as const, |
| |
| providers: () => ['models', 'providers'] as const, |
| }, |
|
|
| |
| |
| |
| sessions: { |
| |
| all: (includeArchived?: boolean) => ['sessions', { includeArchived }] as const, |
| |
| history: (sessionId: string) => ['sessions', sessionId, 'history'] as const, |
| |
| queue: (sessionId: string) => ['sessions', sessionId, 'queue'] as const, |
| }, |
|
|
| |
| |
| |
| runningAgents: { |
| |
| all: () => ['runningAgents'] as const, |
| }, |
|
|
| |
| |
| |
| autoMode: { |
| |
| status: (projectPath?: string) => ['autoMode', 'status', projectPath] as const, |
| |
| contextExists: (projectPath: string, featureId: string) => |
| ['autoMode', projectPath, featureId, 'context'] as const, |
| }, |
|
|
| |
| |
| |
| ideation: { |
| |
| prompts: () => ['ideation', 'prompts'] as const, |
| |
| ideas: (projectPath: string) => ['ideation', 'ideas', projectPath] as const, |
| |
| idea: (projectPath: string, ideaId: string) => |
| ['ideation', 'ideas', projectPath, ideaId] as const, |
| |
| session: (projectPath: string, sessionId: string) => |
| ['ideation', 'session', projectPath, sessionId] as const, |
| }, |
|
|
| |
| |
| |
| cli: { |
| |
| claude: () => ['cli', 'claude'] as const, |
| |
| cursor: () => ['cli', 'cursor'] as const, |
| |
| codex: () => ['cli', 'codex'] as const, |
| |
| opencode: () => ['cli', 'opencode'] as const, |
| |
| gemini: () => ['cli', 'gemini'] as const, |
| |
| copilot: () => ['cli', 'copilot'] as const, |
| |
| github: () => ['cli', 'github'] as const, |
| |
| apiKeys: () => ['cli', 'apiKeys'] as const, |
| |
| platform: () => ['cli', 'platform'] as const, |
| }, |
|
|
| |
| |
| |
| cursorPermissions: { |
| |
| permissions: (projectPath?: string) => ['cursorPermissions', projectPath] as const, |
| }, |
|
|
| |
| |
| |
| workspace: { |
| |
| config: () => ['workspace', 'config'] as const, |
| |
| directories: () => ['workspace', 'directories'] as const, |
| }, |
|
|
| |
| |
| |
| mcp: { |
| |
| tools: (serverId: string) => ['mcp', 'tools', serverId] as const, |
| }, |
|
|
| |
| |
| |
| pipeline: { |
| |
| config: (projectPath: string) => ['pipeline', projectPath] as const, |
| }, |
|
|
| |
| |
| |
| suggestions: { |
| |
| status: () => ['suggestions', 'status'] as const, |
| }, |
|
|
| |
| |
| |
| specRegeneration: { |
| |
| status: (projectPath?: string) => ['specRegeneration', 'status', projectPath] as const, |
| }, |
|
|
| |
| |
| |
| spec: { |
| |
| file: (projectPath: string) => ['spec', 'file', projectPath] as const, |
| }, |
|
|
| |
| |
| |
| context: { |
| |
| file: (filePath: string) => ['context', 'file', filePath] as const, |
| |
| image: (imagePath: string) => ['context', 'image', imagePath] as const, |
| }, |
|
|
| |
| |
| |
| fs: { |
| |
| readdir: (dirPath: string) => ['fs', 'readdir', dirPath] as const, |
| |
| exists: (filePath: string) => ['fs', 'exists', filePath] as const, |
| |
| stat: (filePath: string) => ['fs', 'stat', filePath] as const, |
| }, |
|
|
| |
| |
| |
| git: { |
| |
| diffs: (projectPath: string) => ['git', 'diffs', projectPath] as const, |
| |
| fileDiff: (projectPath: string, filePath: string) => |
| ['git', 'diffs', projectPath, filePath] as const, |
| }, |
| } as const; |
|
|
| |
| |
| |
| export type QueryKeys = typeof queryKeys; |
|
|