Skip to content
Open
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
3cb63f5
Update NetlifyDeploy component to use new ActionCallbackData interfac…
Gerome-Elassaad Jan 21, 2026
bea6425
Update VercelDeploy component to use new ActionCallbackData interface…
Gerome-Elassaad Jan 21, 2026
70c4570
Remove BuiltInToolService usage from stream-text.ts
Gerome-Elassaad Jan 21, 2026
d26e876
Update useMessageParser to use new StreamingMessageParser interface a…
Gerome-Elassaad Jan 21, 2026
c75a351
Update message-parser test snapshot to use partId instead of messageId
Gerome-Elassaad Jan 21, 2026
39b19ed
Refactor action-runner.ts to use codinit-agent modules and updated in…
Gerome-Elassaad Jan 21, 2026
bd6bb30
Update workbench.ts imports to use codinit-agent modules
Gerome-Elassaad Jan 21, 2026
ab12c66
Remove BuiltInToolService usage from api.chat.ts
Gerome-Elassaad Jan 21, 2026
def1f36
Rename BoltAction to CodinitAction and BoltActionData to CodinitActio…
Gerome-Elassaad Jan 21, 2026
860a94f
Add workDirRelative and readPath utility functions to fileUtils.ts
Gerome-Elassaad Jan 21, 2026
88195e0
Update package.json with new dependencies and version updates
Gerome-Elassaad Jan 21, 2026
9874907
Update tsconfig.json with codinit-agent path mapping and formatting
Gerome-Elassaad Jan 21, 2026
f71528f
Remove builtin-tools.json file
Gerome-Elassaad Jan 21, 2026
623d96d
Remove tool-registry.ts file
Gerome-Elassaad Jan 21, 2026
b2aa188
Remove tools.json file
Gerome-Elassaad Jan 21, 2026
0b3cead
Remove message-parser.spec.ts file
Gerome-Elassaad Jan 21, 2026
11c5b9f
Remove message-parser.ts file
Gerome-Elassaad Jan 21, 2026
821c5b2
Remove builtInToolService.ts file
Gerome-Elassaad Jan 21, 2026
f90881d
Add GitHub workflow for releasing system prompts
Gerome-Elassaad Jan 21, 2026
0ed97f3
Add .kiro directory with configuration files
Gerome-Elassaad Jan 21, 2026
d998fc4
Add server-side chat utilities
Gerome-Elassaad Jan 21, 2026
ed12654
Add server-side environment and LLM provider utilities
Gerome-Elassaad Jan 21, 2026
df60caa
Add usage tracking and common utilities
Gerome-Elassaad Jan 21, 2026
3d80906
Add compression and deployment utilities
Gerome-Elassaad Jan 21, 2026
6aa85ee
Add project and container state stores
Gerome-Elassaad Jan 21, 2026
76ad0c9
Add process utilities, build scripts, and codinit-agent package
Gerome-Elassaad Jan 21, 2026
4deee8a
Add package manager files and issue reproduction script
Gerome-Elassaad Jan 21, 2026
2031389
Add test agent and type definitions
Gerome-Elassaad Jan 21, 2026
e52dbd7
Update .gitignore file
Gerome-Elassaad Jan 21, 2026
7400574
Fix unused deployArtifact variable in CloudflareDeploy
Gerome-Elassaad Jan 21, 2026
b379afe
Fix unused providerMetadata parameter in server usage.ts
Gerome-Elassaad Jan 21, 2026
7ca7707
Fix relative import and unused OutputLabels in action-runner.ts
Gerome-Elassaad Jan 21, 2026
a4d8c79
Update chat.ts
Gerome-Elassaad Jan 21, 2026
9b312b4
Update env.ts
Gerome-Elassaad Jan 21, 2026
1aab16f
Update provider.ts
Gerome-Elassaad Jan 21, 2026
3872a37
Update stream-text.ts
Gerome-Elassaad Jan 21, 2026
47cc1b0
Update codinitSiteUrl.ts
Gerome-Elassaad Jan 21, 2026
9bb28ef
Update annotations.ts
Gerome-Elassaad Jan 21, 2026
6ad207a
Update usage.ts
Gerome-Elassaad Jan 21, 2026
f04d981
Update compression.server.ts
Gerome-Elassaad Jan 21, 2026
c6a0285
Update deployToolOutputLabels.ts
Gerome-Elassaad Jan 21, 2026
abfed32
Update containerBootState.ts
Gerome-Elassaad Jan 21, 2026
0cc9e69
Update dashboardPath.ts
Gerome-Elassaad Jan 21, 2026
88e10e1
Update workbench.ts
Gerome-Elassaad Jan 21, 2026
30c4367
Update fileUtils.ts
Gerome-Elassaad Jan 21, 2026
5e03509
Update process.ts
Gerome-Elassaad Jan 21, 2026
3150f9c
Fix lint errors in usage.ts
Gerome-Elassaad Jan 21, 2026
285cc9f
Update CloudflareDeploy.client.tsx
Gerome-Elassaad Jan 21, 2026
e909b00
Update NetlifyDeploy.client.tsx
Gerome-Elassaad Jan 21, 2026
62547e8
Update VercelDeploy.client.tsx
Gerome-Elassaad Jan 21, 2026
33b8a37
Update utils.ts
Gerome-Elassaad Jan 21, 2026
ca01109
Update action-runner.ts
Gerome-Elassaad Jan 21, 2026
e9d34a4
Update api.chat.ts
Gerome-Elassaad Jan 21, 2026
691e4fc
Update usage.ts
Gerome-Elassaad Jan 21, 2026
86c7316
Update workbench.ts
Gerome-Elassaad Jan 21, 2026
ace2d43
Update fileUtils.ts
Gerome-Elassaad Jan 21, 2026
0bf1162
Fix remaining lint errors
Gerome-Elassaad Jan 21, 2026
dc45a98
Fix final lint and type errors
Gerome-Elassaad Jan 21, 2026
6054a23
updated package
Gerome-Elassaad Jan 21, 2026
9070c19
Delete pnpm-lock.yaml
Gerome-Elassaad Jan 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update usage.ts
  • Loading branch information
Gerome-Elassaad committed Jan 21, 2026
commit 6ad207a38e2bc771b6fb37e15b78000d60f0bbc8
31 changes: 15 additions & 16 deletions app/lib/common/usage.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@

import type { Usage } from "./annotations";
import type { Usage } from './annotations';

export function calculateCodinitTokens(usage: Usage, provider: string): { codinitTokens: number } {
return { codinitTokens: 0 };
return { codinitTokens: 0 };
}

export function usageFromGeneration(generation: any): Usage {
return {
completionTokens: generation.usage.completionTokens || 0,
promptTokens: generation.usage.promptTokens || 0,
totalTokens: generation.usage.totalTokens || 0,
xaiCachedPromptTokens: 0,
openaiCachedPromptTokens: 0,
anthropicCacheReadInputTokens: 0,
anthropicCacheCreationInputTokens: 0,
googleCachedContentTokenCount: 0,
googleThoughtsTokenCount: 0,
bedrockCacheWriteInputTokens: 0,
bedrockCacheReadInputTokens: 0
};
return {
completionTokens: generation.usage.completionTokens || 0,
promptTokens: generation.usage.promptTokens || 0,
totalTokens: generation.usage.totalTokens || 0,
xaiCachedPromptTokens: 0,
openaiCachedPromptTokens: 0,
anthropicCacheReadInputTokens: 0,
anthropicCacheCreationInputTokens: 0,
googleCachedContentTokenCount: 0,
googleThoughtsTokenCount: 0,
bedrockCacheWriteInputTokens: 0,
bedrockCacheReadInputTokens: 0,
};
}