chore: fix format
This commit is contained in:
@@ -1,44 +1,44 @@
|
|||||||
{
|
{
|
||||||
"models": {
|
"models": {
|
||||||
"main": {
|
"main": {
|
||||||
"provider": "claude-code",
|
"provider": "claude-code",
|
||||||
"modelId": "sonnet",
|
"modelId": "sonnet",
|
||||||
"maxTokens": 64000,
|
"maxTokens": 64000,
|
||||||
"temperature": 0.2
|
"temperature": 0.2
|
||||||
},
|
},
|
||||||
"research": {
|
"research": {
|
||||||
"provider": "perplexity",
|
"provider": "perplexity",
|
||||||
"modelId": "sonar",
|
"modelId": "sonar",
|
||||||
"maxTokens": 8700,
|
"maxTokens": 8700,
|
||||||
"temperature": 0.1
|
"temperature": 0.1
|
||||||
},
|
},
|
||||||
"fallback": {
|
"fallback": {
|
||||||
"provider": "anthropic",
|
"provider": "anthropic",
|
||||||
"modelId": "claude-3-7-sonnet-20250219",
|
"modelId": "claude-3-7-sonnet-20250219",
|
||||||
"maxTokens": 120000,
|
"maxTokens": 120000,
|
||||||
"temperature": 0.2
|
"temperature": 0.2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"global": {
|
"global": {
|
||||||
"logLevel": "info",
|
"logLevel": "info",
|
||||||
"debug": false,
|
"debug": false,
|
||||||
"defaultNumTasks": 10,
|
"defaultNumTasks": 10,
|
||||||
"defaultSubtasks": 5,
|
"defaultSubtasks": 5,
|
||||||
"defaultPriority": "medium",
|
"defaultPriority": "medium",
|
||||||
"projectName": "Taskmaster",
|
"projectName": "Taskmaster",
|
||||||
"ollamaBaseURL": "http://localhost:11434/api",
|
"ollamaBaseURL": "http://localhost:11434/api",
|
||||||
"bedrockBaseURL": "https://bedrock.us-east-1.amazonaws.com",
|
"bedrockBaseURL": "https://bedrock.us-east-1.amazonaws.com",
|
||||||
"responseLanguage": "English",
|
"responseLanguage": "English",
|
||||||
"enableCodebaseAnalysis": true,
|
"enableCodebaseAnalysis": true,
|
||||||
"userId": "1234567890",
|
"userId": "1234567890",
|
||||||
"azureBaseURL": "https://your-endpoint.azure.com/",
|
"azureBaseURL": "https://your-endpoint.azure.com/",
|
||||||
"defaultTag": "master"
|
"defaultTag": "master"
|
||||||
},
|
},
|
||||||
"claudeCode": {},
|
"claudeCode": {},
|
||||||
"codexCli": {},
|
"codexCli": {},
|
||||||
"grokCli": {
|
"grokCli": {
|
||||||
"timeout": 120000,
|
"timeout": 120000,
|
||||||
"workingDirectory": null,
|
"workingDirectory": null,
|
||||||
"defaultModel": "grok-4-latest"
|
"defaultModel": "grok-4-latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"currentTag": "master",
|
"currentTag": "master",
|
||||||
"lastSwitched": "2025-10-07T17:17:58.049Z",
|
"lastSwitched": "2025-10-07T17:17:58.049Z",
|
||||||
"branchTagMapping": {
|
"branchTagMapping": {
|
||||||
"v017-adds": "v017-adds",
|
"v017-adds": "v017-adds",
|
||||||
"next": "next"
|
"next": "next"
|
||||||
},
|
},
|
||||||
"migrationNoticeShown": true
|
"migrationNoticeShown": true
|
||||||
}
|
}
|
||||||
@@ -121,42 +121,24 @@ export class PreflightChecker {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for uncommitted changes
|
// Check for changes (staged/unstaged/untracked) without requiring HEAD
|
||||||
try {
|
const status = execSync('git status --porcelain', {
|
||||||
execSync('git diff-index --quiet HEAD --', {
|
cwd: this.projectRoot,
|
||||||
cwd: this.projectRoot,
|
encoding: 'utf-8'
|
||||||
stdio: 'pipe'
|
});
|
||||||
});
|
if (status.trim().length > 0) {
|
||||||
|
|
||||||
// Also check for untracked files
|
|
||||||
const status = execSync('git status --porcelain', {
|
|
||||||
cwd: this.projectRoot,
|
|
||||||
encoding: 'utf-8'
|
|
||||||
});
|
|
||||||
|
|
||||||
if (status.trim().length > 0) {
|
|
||||||
return {
|
|
||||||
success: false,
|
|
||||||
value: 'dirty',
|
|
||||||
message:
|
|
||||||
'Working tree has uncommitted changes. Please commit or stash them.'
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
success: true,
|
|
||||||
value: 'clean',
|
|
||||||
message: 'Working tree is clean'
|
|
||||||
};
|
|
||||||
} catch (error: any) {
|
|
||||||
// git diff-index returns non-zero if there are changes
|
|
||||||
return {
|
return {
|
||||||
success: false,
|
success: false,
|
||||||
value: 'dirty',
|
value: 'dirty',
|
||||||
message:
|
message:
|
||||||
'Working tree has uncommitted changes. Please commit or stash them.'
|
'Working tree has uncommitted or untracked changes. Please commit or stash them.'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
return {
|
||||||
|
success: true,
|
||||||
|
value: 'clean',
|
||||||
|
message: 'Working tree is clean'
|
||||||
|
};
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
return {
|
return {
|
||||||
success: false,
|
success: false,
|
||||||
|
|||||||
@@ -142,9 +142,7 @@ export async function getRemoteBranches(
|
|||||||
/**
|
/**
|
||||||
* Check if gh CLI is available and authenticated
|
* Check if gh CLI is available and authenticated
|
||||||
*/
|
*/
|
||||||
export async function isGhCliAvailable(
|
export async function isGhCliAvailable(projectRoot?: string): Promise<boolean> {
|
||||||
projectRoot?: string
|
|
||||||
): Promise<boolean> {
|
|
||||||
try {
|
try {
|
||||||
const options = projectRoot ? { cwd: projectRoot } : {};
|
const options = projectRoot ? { cwd: projectRoot } : {};
|
||||||
await execAsync('gh auth status', options);
|
await execAsync('gh auth status', options);
|
||||||
@@ -246,7 +244,11 @@ export async function isOnDefaultBranch(projectRoot: string): Promise<boolean> {
|
|||||||
try {
|
try {
|
||||||
const currentBranch = await getCurrentBranch(projectRoot);
|
const currentBranch = await getCurrentBranch(projectRoot);
|
||||||
const defaultBranch = await getDefaultBranch(projectRoot);
|
const defaultBranch = await getDefaultBranch(projectRoot);
|
||||||
return currentBranch !== null && defaultBranch !== null && currentBranch === defaultBranch;
|
return (
|
||||||
|
currentBranch !== null &&
|
||||||
|
defaultBranch !== null &&
|
||||||
|
currentBranch === defaultBranch
|
||||||
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user