Skip to content

Commit fec0510

Browse files
authored
Merge pull request #8069 from continuedev/dallin/workflow-files
CLI workflows
2 parents f84e07a + c1d7cc3 commit fec0510

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3057
-1887
lines changed

extensions/cli/spec/modes.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ Users can switch modes during chat sessions using:
5757

5858
Modes are implemented through the permission system:
5959

60-
- **ModeService**: Singleton service managing the current mode and initialization
61-
- **ToolPermissionService**: Extended to support mode-specific policies with highest priority
60+
- **ToolPermissionService**: Rectifies current mode and tool policies
6261
- **ModeIndicator**: UI component showing current mode (hidden for normal mode)
6362
- **Keyboard shortcuts**: Shift+Tab cycles through modes instantly
6463
- **Backward compatibility**: Existing `--readonly` flag maps to plan mode

extensions/cli/src/__mocks__/args.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { ToolPermissionService } from "src/services/ToolPermissionService.js";
12
import { vi } from "vitest";
23

34
export const services = {
@@ -7,14 +8,23 @@ export const services = {
78
switchOrganization: vi.fn(() => Promise.resolve({})),
89
getAvailableOrganizations: vi.fn(() => Promise.resolve([])),
910
},
11+
toolPermissions: vi.mocked(new ToolPermissionService()),
1012
};
1113

1214
export const reloadService = vi.fn(() => Promise.resolve(undefined));
1315

1416
export const SERVICE_NAMES = {
1517
AUTH: "auth",
16-
API_CLIENT: "apiClient",
1718
CONFIG: "config",
1819
MODEL: "model",
1920
MCP: "mcp",
20-
};
21+
API_CLIENT: "apiClient",
22+
TOOL_PERMISSIONS: "toolPermissions",
23+
FILE_INDEX: "fileIndex",
24+
RESOURCE_MONITORING: "resourceMonitoring",
25+
SYSTEM_MESSAGE: "systemMessage",
26+
CHAT_HISTORY: "chatHistory",
27+
UPDATE: "update",
28+
STORAGE_SYNC: "storageSync",
29+
WORKFLOW: "workflow",
30+
} as const;

extensions/cli/src/args-mcp.test.ts

Lines changed: 0 additions & 75 deletions
This file was deleted.

extensions/cli/src/args.prompt.test.ts

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)