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:
Ralph Khreish
2025-08-28 18:05:31 +02:00
committed by GitHub
parent db720a954d
commit 4dad2fd613
17 changed files with 112 additions and 25 deletions

View File

@@ -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)
})
);

View File

@@ -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)
})
);

View File

@@ -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)
})
);

View File

@@ -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)
})
);

View File

@@ -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)
})
);

View File

@@ -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)
})
);