feat: add support for code context in more commands (#1162)
* feat: add support for claude code context - code context for: - add-task - update-subtask - update-task - update * feat: fix CI and format + refactor * chore: format * chore: fix broken tests * chore: fix test
This commit is contained in:
@@ -99,7 +99,8 @@ jest.unstable_mockModule(
|
||||
jest.unstable_mockModule(
|
||||
'../../../../../scripts/modules/config-manager.js',
|
||||
() => ({
|
||||
getDefaultPriority: jest.fn(() => 'medium')
|
||||
getDefaultPriority: jest.fn(() => 'medium'),
|
||||
isClaudeCode: jest.fn(() => false)
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
@@ -187,7 +187,8 @@ jest.unstable_mockModule(
|
||||
// Additional functions
|
||||
getAllProviders: jest.fn(() => ['anthropic', 'openai', 'perplexity']),
|
||||
getVertexProjectId: jest.fn(() => undefined),
|
||||
getVertexLocation: jest.fn(() => undefined)
|
||||
getVertexLocation: jest.fn(() => undefined),
|
||||
isClaudeCode: jest.fn(() => false)
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
@@ -301,7 +301,8 @@ jest.unstable_mockModule(
|
||||
// Additional functions
|
||||
getAllProviders: jest.fn(() => ['anthropic', 'openai', 'perplexity']),
|
||||
getVertexProjectId: jest.fn(() => undefined),
|
||||
getVertexLocation: jest.fn(() => undefined)
|
||||
getVertexLocation: jest.fn(() => undefined),
|
||||
isClaudeCode: jest.fn(() => false)
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
@@ -52,7 +52,8 @@ jest.unstable_mockModule(
|
||||
jest.unstable_mockModule(
|
||||
'../../../../../scripts/modules/config-manager.js',
|
||||
() => ({
|
||||
getDebugFlag: jest.fn(() => false)
|
||||
getDebugFlag: jest.fn(() => false),
|
||||
isClaudeCode: jest.fn(() => false)
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
@@ -51,7 +51,8 @@ jest.unstable_mockModule(
|
||||
'../../../../../scripts/modules/config-manager.js',
|
||||
() => ({
|
||||
getDebugFlag: jest.fn(() => false),
|
||||
isApiKeySet: jest.fn(() => true)
|
||||
isApiKeySet: jest.fn(() => true),
|
||||
isClaudeCode: jest.fn(() => false)
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
@@ -44,7 +44,8 @@ jest.unstable_mockModule('../../../../../scripts/modules/ui.js', () => ({
|
||||
jest.unstable_mockModule(
|
||||
'../../../../../scripts/modules/config-manager.js',
|
||||
() => ({
|
||||
getDebugFlag: jest.fn(() => false)
|
||||
getDebugFlag: jest.fn(() => false),
|
||||
isClaudeCode: jest.fn(() => false)
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user