chore: format
This commit is contained in:
@@ -1,37 +1,37 @@
|
|||||||
{
|
{
|
||||||
"models": {
|
"models": {
|
||||||
"main": {
|
"main": {
|
||||||
"provider": "claude-code",
|
"provider": "anthropic",
|
||||||
"modelId": "sonnet",
|
"modelId": "claude-3-7-sonnet-20250219",
|
||||||
"maxTokens": 64000,
|
"maxTokens": 120000,
|
||||||
"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-5-sonnet-20241022",
|
"modelId": "claude-3-5-sonnet-20241022",
|
||||||
"maxTokens": 8192,
|
"maxTokens": 8192,
|
||||||
"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",
|
||||||
"userId": "1234567890",
|
"userId": "1234567890",
|
||||||
"azureBaseURL": "https://your-endpoint.azure.com/",
|
"azureBaseURL": "https://your-endpoint.azure.com/",
|
||||||
"defaultTag": "master"
|
"defaultTag": "master"
|
||||||
},
|
},
|
||||||
"claudeCode": {}
|
"claudeCode": {}
|
||||||
}
|
}
|
||||||
File diff suppressed because one or more lines are too long
@@ -25,10 +25,7 @@ import {
|
|||||||
markMigrationForNotice
|
markMigrationForNotice
|
||||||
} from '../utils.js';
|
} from '../utils.js';
|
||||||
import { generateObjectService } from '../ai-services-unified.js';
|
import { generateObjectService } from '../ai-services-unified.js';
|
||||||
import {
|
import { getDefaultPriority, isClaudeCode } from '../config-manager.js';
|
||||||
getDefaultPriority,
|
|
||||||
isClaudeCode
|
|
||||||
} from '../config-manager.js';
|
|
||||||
import { getPromptManager } from '../prompt-manager.js';
|
import { getPromptManager } from '../prompt-manager.js';
|
||||||
import ContextGatherer from '../utils/contextGatherer.js';
|
import ContextGatherer from '../utils/contextGatherer.js';
|
||||||
import generateTaskFiles from './generate-task-files.js';
|
import generateTaskFiles from './generate-task-files.js';
|
||||||
@@ -112,7 +109,6 @@ async function addTask(
|
|||||||
context;
|
context;
|
||||||
const isMCP = !!mcpLog;
|
const isMCP = !!mcpLog;
|
||||||
|
|
||||||
|
|
||||||
// Create a consistent logFn object regardless of context
|
// Create a consistent logFn object regardless of context
|
||||||
const logFn = isMCP
|
const logFn = isMCP
|
||||||
? mcpLog // Use MCP logger if provided
|
? mcpLog // Use MCP logger if provided
|
||||||
|
|||||||
@@ -20,10 +20,7 @@ import {
|
|||||||
flattenTasksWithSubtasks
|
flattenTasksWithSubtasks
|
||||||
} from '../utils.js';
|
} from '../utils.js';
|
||||||
import { generateTextService } from '../ai-services-unified.js';
|
import { generateTextService } from '../ai-services-unified.js';
|
||||||
import {
|
import { getDebugFlag, isClaudeCode } from '../config-manager.js';
|
||||||
getDebugFlag,
|
|
||||||
isClaudeCode
|
|
||||||
} from '../config-manager.js';
|
|
||||||
import { getPromptManager } from '../prompt-manager.js';
|
import { getPromptManager } from '../prompt-manager.js';
|
||||||
import generateTaskFiles from './generate-task-files.js';
|
import generateTaskFiles from './generate-task-files.js';
|
||||||
import { ContextGatherer } from '../utils/contextGatherer.js';
|
import { ContextGatherer } from '../utils/contextGatherer.js';
|
||||||
@@ -55,7 +52,6 @@ async function updateSubtaskById(
|
|||||||
const logFn = mcpLog || consoleLog;
|
const logFn = mcpLog || consoleLog;
|
||||||
const isMCP = !!mcpLog;
|
const isMCP = !!mcpLog;
|
||||||
|
|
||||||
|
|
||||||
// Report helper
|
// Report helper
|
||||||
const report = (level, ...args) => {
|
const report = (level, ...args) => {
|
||||||
if (isMCP) {
|
if (isMCP) {
|
||||||
|
|||||||
@@ -23,11 +23,7 @@ import {
|
|||||||
} from '../ui.js';
|
} from '../ui.js';
|
||||||
|
|
||||||
import { generateTextService } from '../ai-services-unified.js';
|
import { generateTextService } from '../ai-services-unified.js';
|
||||||
import {
|
import { getDebugFlag, isApiKeySet, isClaudeCode } from '../config-manager.js';
|
||||||
getDebugFlag,
|
|
||||||
isApiKeySet,
|
|
||||||
isClaudeCode
|
|
||||||
} from '../config-manager.js';
|
|
||||||
import { getPromptManager } from '../prompt-manager.js';
|
import { getPromptManager } from '../prompt-manager.js';
|
||||||
import { ContextGatherer } from '../utils/contextGatherer.js';
|
import { ContextGatherer } from '../utils/contextGatherer.js';
|
||||||
import { FuzzyTaskSearch } from '../utils/fuzzyTaskSearch.js';
|
import { FuzzyTaskSearch } from '../utils/fuzzyTaskSearch.js';
|
||||||
@@ -283,7 +279,6 @@ async function updateTaskById(
|
|||||||
const logFn = mcpLog || consoleLog;
|
const logFn = mcpLog || consoleLog;
|
||||||
const isMCP = !!mcpLog;
|
const isMCP = !!mcpLog;
|
||||||
|
|
||||||
|
|
||||||
// Use report helper for logging
|
// Use report helper for logging
|
||||||
const report = (level, ...args) => {
|
const report = (level, ...args) => {
|
||||||
if (isMCP) {
|
if (isMCP) {
|
||||||
|
|||||||
@@ -19,10 +19,7 @@ import {
|
|||||||
displayAiUsageSummary
|
displayAiUsageSummary
|
||||||
} from '../ui.js';
|
} from '../ui.js';
|
||||||
|
|
||||||
import {
|
import { getDebugFlag, isClaudeCode } from '../config-manager.js';
|
||||||
getDebugFlag,
|
|
||||||
isClaudeCode
|
|
||||||
} from '../config-manager.js';
|
|
||||||
import { getPromptManager } from '../prompt-manager.js';
|
import { getPromptManager } from '../prompt-manager.js';
|
||||||
import generateTaskFiles from './generate-task-files.js';
|
import generateTaskFiles from './generate-task-files.js';
|
||||||
import { generateTextService } from '../ai-services-unified.js';
|
import { generateTextService } from '../ai-services-unified.js';
|
||||||
@@ -303,7 +300,6 @@ async function updateTasks(
|
|||||||
// Flag to easily check which logger type we have
|
// Flag to easily check which logger type we have
|
||||||
const isMCP = !!mcpLog;
|
const isMCP = !!mcpLog;
|
||||||
|
|
||||||
|
|
||||||
if (isMCP)
|
if (isMCP)
|
||||||
logFn.info(`updateTasks called with context: session=${!!session}`);
|
logFn.info(`updateTasks called with context: session=${!!session}`);
|
||||||
else logFn('info', `updateTasks called`); // CLI log
|
else logFn('info', `updateTasks called`); // CLI log
|
||||||
|
|||||||
Reference in New Issue
Block a user