fix: remove unused imports and variables for lint compliance
This commit is contained in:
parent
8fc683d8ad
commit
1b168e6b20
@ -10,7 +10,7 @@ import { getErrorMessage } from '../../shared/utils/index.js';
|
||||
import { resolveIssueTask, isIssueReference } from '../../infra/github/index.js';
|
||||
import { selectAndExecuteTask, determineWorkflow, type SelectAndExecuteOptions } from '../../features/tasks/index.js';
|
||||
import { executePipeline } from '../../features/pipeline/index.js';
|
||||
import { interactiveMode, type WorkflowContext } from '../../features/interactive/index.js';
|
||||
import { interactiveMode } from '../../features/interactive/index.js';
|
||||
import { getWorkflowDescription } from '../../infra/config/index.js';
|
||||
import { DEFAULT_WORKFLOW_NAME } from '../../shared/constants.js';
|
||||
import { program, resolvedCwd, pipelineMode } from './program.js';
|
||||
|
||||
@ -2,8 +2,6 @@
|
||||
* Configuration types (global and project)
|
||||
*/
|
||||
|
||||
import type { WorkflowCategoryConfigNode } from './schemas.js';
|
||||
|
||||
/** Custom agent configuration */
|
||||
export interface CustomAgentConfig {
|
||||
name: string;
|
||||
|
||||
@ -143,20 +143,6 @@ export function warnMissingWorkflows(missing: MissingWorkflow[]): void {
|
||||
}
|
||||
}
|
||||
|
||||
function countWorkflowsInTree(categories: WorkflowCategoryNode[]): number {
|
||||
let count = 0;
|
||||
const visit = (nodes: WorkflowCategoryNode[]): void => {
|
||||
for (const node of nodes) {
|
||||
count += node.workflows.length;
|
||||
if (node.children.length > 0) {
|
||||
visit(node.children);
|
||||
}
|
||||
}
|
||||
};
|
||||
visit(categories);
|
||||
return count;
|
||||
}
|
||||
|
||||
function categoryContainsWorkflow(node: WorkflowCategoryNode, workflow: string): boolean {
|
||||
if (node.workflows.includes(workflow)) return true;
|
||||
for (const child of node.children) {
|
||||
@ -313,7 +299,7 @@ function countWorkflowsIncludingCategories(
|
||||
visit(categories);
|
||||
|
||||
let count = 0;
|
||||
for (const [name, { source }] of allWorkflows) {
|
||||
for (const [, { source }] of allWorkflows) {
|
||||
if (source === sourceFilter) {
|
||||
count++;
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
* used throughout the Claude integration layer.
|
||||
*/
|
||||
|
||||
import type { PermissionUpdate, AgentDefinition, PermissionMode as SdkPermissionMode } from '@anthropic-ai/claude-agent-sdk';
|
||||
import type { PermissionUpdate, AgentDefinition } from '@anthropic-ai/claude-agent-sdk';
|
||||
import type { PermissionMode } from '../../core/models/index.js';
|
||||
import type { PermissionResult } from '../../core/workflow/index.js';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user