Skip to content

Commit 3181857

Browse files
committed
Merge branch 'develop' into staging
2 parents b9efb5f + 3b3e50c commit 3181857

16 files changed

Lines changed: 138 additions & 79 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
# CasualOS Changelog
22

3+
## V4.2.6
4+
5+
#### Date: 6/12/2026
6+
7+
### :bug: Bug Fixes
8+
9+
- Fixed an issue where Anthropic models might under-report credit usage when streaming chat messages.
10+
311
## V4.2.5
412

5-
#### Date: 6/9/2026
13+
#### Date: 6/10/2026
614

715
### :bug: Bug Fixes
816

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"packages": [
33
"src/*"
44
],
5-
"version": "4.2.5-alpha.27225827262",
5+
"version": "4.2.5",
66
"npmClient": "pnpm"
77
}

pnpm-lock.yaml

Lines changed: 33 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/aux-components/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@casual-simulation/aux-components",
3-
"version": "4.2.5-alpha.27225827262",
3+
"version": "4.2.5",
44
"description": "Common library for AUX Vue components and Misc",
55
"main": "index.js",
66
"types": "index.d.ts",
@@ -34,11 +34,11 @@
3434
},
3535
"dependencies": {
3636
"@casual-simulation/aux-common": "^4.2.3",
37-
"@casual-simulation/aux-vm": "^4.2.5-alpha.27225827262",
38-
"@casual-simulation/aux-vm-browser": "^4.2.5-alpha.27225827262",
39-
"@casual-simulation/aux-vm-client": "^4.2.5-alpha.27225827262",
40-
"@casual-simulation/aux-vm-deno": "^4.2.5-alpha.27225827262",
41-
"@casual-simulation/aux-vm-node": "^4.2.5-alpha.27225827262",
37+
"@casual-simulation/aux-vm": "^4.2.5",
38+
"@casual-simulation/aux-vm-browser": "^4.2.5",
39+
"@casual-simulation/aux-vm-client": "^4.2.5",
40+
"@casual-simulation/aux-vm-deno": "^4.2.5",
41+
"@casual-simulation/aux-vm-node": "^4.2.5",
4242
"@casual-simulation/crypto": "^4.0.5",
4343
"@casual-simulation/crypto-browser": "^4.0.5",
4444
"@casual-simulation/crypto-node": "^4.0.5",

src/aux-records-aws/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@casual-simulation/aux-records-aws",
3-
"version": "4.2.5-alpha.27225827262",
3+
"version": "4.2.5",
44
"description": "AWS Store implementations for the CasualOS Records System.",
55
"keywords": [],
66
"author": "Casual Simulation, Inc.",
@@ -45,7 +45,7 @@
4545
"@aws-sdk/credential-providers": "^3.620.1",
4646
"@aws-sdk/types": "^3.609.0",
4747
"@casual-simulation/aux-common": "^4.2.3",
48-
"@casual-simulation/aux-records": "^4.2.5-alpha.27225827262",
48+
"@casual-simulation/aux-records": "^4.2.5",
4949
"axios": "1.7.7",
5050
"uuid": "10.0.0"
5151
}

src/aux-records/AnthropicAIChatInterface.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,31 @@ export class AnthropicAIChatInterface implements AIChatInterface {
168168
anthropic: chunk,
169169
};
170170
}
171+
} else if (chunk.type === 'content_block_start') {
172+
if (chunk.content_block.type === 'text') {
173+
yield {
174+
choices: [
175+
{
176+
content: chunk.content_block.text,
177+
role: 'assistant',
178+
anthropic: chunk,
179+
},
180+
],
181+
totalTokens: 0,
182+
anthropic: chunk,
183+
};
184+
}
185+
} else if ('usage' in chunk) {
186+
// Chunck has usage info
187+
yield {
188+
choices: [],
189+
totalTokens:
190+
chunk.usage.input_tokens +
191+
chunk.usage.output_tokens,
192+
inputTokens: chunk.usage.input_tokens,
193+
outputTokens: chunk.usage.output_tokens,
194+
anthropic: chunk,
195+
};
171196
}
172197
}
173198

src/aux-records/RecordsServer.spec.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6092,6 +6092,32 @@ describe('RecordsServer', () => {
60926092
});
60936093
});
60946094

6095+
it('should support api origins', async () => {
6096+
const result = await server.handleHttpRequest(
6097+
httpPost(
6098+
'/api/v2/records',
6099+
JSON.stringify({
6100+
recordName: 'myRecord',
6101+
}),
6102+
apiHeaders
6103+
)
6104+
);
6105+
6106+
await expectResponseBodyToEqual(result, {
6107+
statusCode: 200,
6108+
body: {
6109+
success: true,
6110+
},
6111+
headers: apiCorsHeaders,
6112+
});
6113+
6114+
const record = await store.getRecordByName('myRecord');
6115+
expect(record).toMatchObject({
6116+
name: 'myRecord',
6117+
ownerId: userId,
6118+
});
6119+
});
6120+
60956121
it('should be able to create a record for a studio', async () => {
60966122
await store.addStudio({
60976123
id: 'studioId',

src/aux-records/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@casual-simulation/aux-records",
3-
"version": "4.2.5-alpha.27225827262",
3+
"version": "4.2.5",
44
"description": "Helpers and managers used by the CasualOS records system.",
55
"keywords": [],
66
"author": "Casual Simulation, Inc.",

src/aux-runtime/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@casual-simulation/aux-runtime",
3-
"version": "4.2.5-alpha.27225827262",
3+
"version": "4.2.5",
44
"description": "Runtime for AUX projects",
55
"main": "index.js",
66
"types": "index.d.ts",
@@ -33,7 +33,7 @@
3333
},
3434
"dependencies": {
3535
"@casual-simulation/aux-common": "^4.2.3",
36-
"@casual-simulation/aux-records": "^4.2.5-alpha.27225827262",
36+
"@casual-simulation/aux-records": "^4.2.5",
3737
"@casual-simulation/crypto": "^4.0.5",
3838
"@casual-simulation/engine262": "0.0.1-4de2170374e22761996e46eb1362f4496ee57f8f",
3939
"@casual-simulation/error-stack-parser": "^2.0.7",

src/aux-server/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@casual-simulation/aux-server",
3-
"version": "4.2.5-alpha.27225827262",
3+
"version": "4.2.5",
44
"description": "The repository for the AUX server project.",
55
"main": "server/dist/main.js",
66
"private": true,
@@ -66,14 +66,14 @@
6666
"@aws-sdk/s3-request-presigner": "^3.620.1",
6767
"@aws-sdk/types": "^3.609.0",
6868
"@casual-simulation/aux-common": "^4.2.3",
69-
"@casual-simulation/aux-records": "^4.2.5-alpha.27225827262",
70-
"@casual-simulation/aux-records-aws": "^4.2.5-alpha.27225827262",
71-
"@casual-simulation/aux-runtime": "^4.2.5-alpha.27225827262",
72-
"@casual-simulation/aux-vm": "^4.2.5-alpha.27225827262",
73-
"@casual-simulation/aux-vm-browser": "^4.2.5-alpha.27225827262",
74-
"@casual-simulation/aux-vm-client": "^4.2.5-alpha.27225827262",
75-
"@casual-simulation/aux-vm-deno": "^4.2.5-alpha.27225827262",
76-
"@casual-simulation/aux-vm-node": "^4.2.5-alpha.27225827262",
69+
"@casual-simulation/aux-records": "^4.2.5",
70+
"@casual-simulation/aux-records-aws": "^4.2.5",
71+
"@casual-simulation/aux-runtime": "^4.2.5",
72+
"@casual-simulation/aux-vm": "^4.2.5",
73+
"@casual-simulation/aux-vm-browser": "^4.2.5",
74+
"@casual-simulation/aux-vm-client": "^4.2.5",
75+
"@casual-simulation/aux-vm-deno": "^4.2.5",
76+
"@casual-simulation/aux-vm-node": "^4.2.5",
7777
"@casual-simulation/crypto": "^4.0.5",
7878
"@casual-simulation/crypto-browser": "^4.0.5",
7979
"@casual-simulation/crypto-node": "^4.0.5",
@@ -192,7 +192,7 @@
192192
"zod": "4.1.12"
193193
},
194194
"devDependencies": {
195-
"@casual-simulation/aux-components": "^4.2.5-alpha.27225827262",
195+
"@casual-simulation/aux-components": "^4.2.5",
196196
"@rollup/plugin-virtual": "3.0.2",
197197
"@types/aws-lambda": "^8.10.17",
198198
"@types/jsdom": "21.1.6",

0 commit comments

Comments
 (0)