Skip to content

Commit 3bc29c5

Browse files
authored
Feature/cache parsing (#1)
* Fixed caching * Add hourly usage report * added tests
1 parent 3bb19af commit 3bc29c5

26 files changed

+2465
-1008
lines changed

CLAUDE.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -393,20 +393,3 @@ The extension supports all current Claude models:
393393
- Handle model-specific capabilities and limitations
394394
- Provide fallbacks for deprecated model versions
395395
- Support both alias and full model names
396-
397-
## Future Enhancements
398-
399-
### Planned Features
400-
401-
- MCP (Model Context Protocol) server integration
402-
- Visual session management with history
403-
- Advanced tool permission management
404-
- Team/shared configuration support
405-
- Performance monitoring and usage analytics
406-
407-
### Architecture Evolution
408-
409-
- Plugin system for custom integrations
410-
- Advanced caching for improved performance
411-
- Real-time collaboration features
412-
- Integration with other AI development tools

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,8 @@ test-watch:
110110

111111
# Run linting and fix issues
112112
lint:
113-
@echo "🔍 Running ESLint..."
114-
@npm run lint -- --fix || true
115-
@echo ""
116-
@echo "📋 Checking for remaining issues..."
117-
@npm run lint
113+
@echo "🔍 Running ESLint with auto-fix..."
114+
@npm run lint -- --fix
118115
@echo "✅ Linting complete"
119116

120117
# Run all validation

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A Visual Studio Code extension that provides a seamless interface for executing Claude Code commands directly from your development environment.
44

5+
[Visual Studio Market place](https://marketplace.visualstudio.com/items?itemName=Codingworkflow.claude-runner)
6+
57
## Features
68

79
- **Model Selection**: Choose from all available Claude models (Opus 4, Sonnet 4, Sonnet 3.7, Haiku 3.5)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.1.1

assets/README.md

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

assets/marketplace/currentuse.png

41.5 KB
Loading

jest.config.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ module.exports = {
77
"**/?(*.)+(spec|test).+(ts|tsx|js)",
88
],
99
transform: {
10-
"^.+\\.(ts|tsx)$": "ts-jest",
10+
"^.+\\.(ts|tsx)$": [
11+
"ts-jest",
12+
{
13+
useESM: false,
14+
tsconfig: {
15+
types: ["jest", "node"],
16+
},
17+
},
18+
],
1119
},
1220
moduleNameMapper: {
1321
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
1422
"^vscode$": "<rootDir>/src/test/__mocks__/vscode.js",
1523
},
1624
setupFilesAfterEnv: ["<rootDir>/src/test/setup.ts"],
1725
collectCoverageFrom: ["src/**/*.{ts,tsx}", "!src/**/*.d.ts", "!src/test/**"],
18-
globals: {
19-
"ts-jest": {
20-
useESM: false,
21-
tsconfig: {
22-
types: ["jest", "node"],
23-
},
24-
},
25-
},
2626
};

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "claude-runner",
33
"displayName": "Claude Runner",
44
"description": "Execute Claude Code commands directly from VS Code with an intuitive interface",
5-
"version": "0.1.0",
5+
"version": "0.1.1",
66
"publisher": "Codingworkflow",
77
"private": true,
88
"license": "GPL-3.0",
@@ -17,8 +17,7 @@
1717
},
1818
"categories": [
1919
"Other",
20-
"AI",
21-
"Development Tools"
20+
"Machine Learning"
2221
],
2322
"keywords": [
2423
"claude",
@@ -221,7 +220,7 @@
221220
"prepare-marketplace": "node scripts/prepare-marketplace.js",
222221
"optimize-images": "node scripts/optimize-images.js",
223222
"quality": "npm run lint && npm run type-check && npm run format:check",
224-
"quality:fix": "npm run lint --fix && npm run format",
223+
"quality:fix": "npm run lint -- --fix && npm run format",
225224
"validate": "npm run quality && npm run test:unit",
226225
"ci": "npm run clean && npm run quality && npm run compile && npm run test:unit"
227226
},
@@ -265,6 +264,7 @@
265264
"glob": "^10.3.10",
266265
"js-yaml": "^4.1.0",
267266
"react": "^18.2.0",
268-
"react-dom": "^18.2.0"
267+
"react-dom": "^18.2.0",
268+
"rxjs": "^7.8.2"
269269
}
270270
}

src/components/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ const App: React.FC<AppProps> = ({
196196
>
197197
Pipeline
198198
</button>
199-
{showAdvancedTabs && (
199+
{(showAdvancedTabs ||
200+
activeTab === "usage" ||
201+
activeTab === "logs") && (
200202
<>
201203
<button
202204
className={`tab-button ${activeTab === "usage" ? "active" : ""}`}
@@ -236,6 +238,7 @@ const App: React.FC<AppProps> = ({
236238
onUpdateChatPrompt={updateChatPrompt}
237239
onUpdateShowChatPrompt={updateShowChatPrompt}
238240
onUpdateParallelTasksCount={updateParallelTasksCount}
241+
onShowUsageAndLogs={() => updateActiveTab("usage")}
239242
disabled={status === "starting" || status === "stopping"}
240243
/>
241244
)}

src/components/hooks/useVSCodeAPI.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,12 @@ export const useVSCodeAPI = () => {
154154
);
155155

156156
const requestUsageReport = useCallback(
157-
(period: "today" | "week" | "month") => {
158-
sendMessage("requestUsageReport", { period });
157+
(
158+
period: "today" | "week" | "month" | "hourly",
159+
hours?: number,
160+
startHour?: number,
161+
) => {
162+
sendMessage("requestUsageReport", { period, hours, startHour });
159163
},
160164
[sendMessage],
161165
);

0 commit comments

Comments
 (0)