chore: bump deps

This commit is contained in:
DarkSky
2026-07-11 06:43:04 +08:00
parent b22bc17bd0
commit aea128f0b9
10 changed files with 183 additions and 63 deletions
@@ -107,28 +107,31 @@ test.serial('should sign and verify a user session jwt', async t => {
t.true(signed.expiresAt.getTime() > Date.now());
});
test.serial('should use application session ttl for jwt expiration', async t => {
const defaultSigned = t.context.jwtSession.sign(
t.context.user.id,
t.context.sessionId
);
assertSignedTtl(t, defaultSigned, DEFAULT_SESSION_TTL);
test.serial(
'should use application session ttl for jwt expiration',
async t => {
const defaultSigned = t.context.jwtSession.sign(
t.context.user.id,
t.context.sessionId
);
assertSignedTtl(t, defaultSigned, DEFAULT_SESSION_TTL);
const ttl = 120;
t.context.config.override({
auth: {
session: {
ttl,
const ttl = 120;
t.context.config.override({
auth: {
session: {
ttl,
},
},
},
});
});
const configuredSigned = t.context.jwtSession.sign(
t.context.user.id,
t.context.sessionId
);
assertSignedTtl(t, configuredSigned, ttl);
});
const configuredSigned = t.context.jwtSession.sign(
t.context.user.id,
t.context.sessionId
);
assertSignedTtl(t, configuredSigned, ttl);
}
);
test.serial('should reject invalid jwt cases', async t => {
const cases: Array<{ name: string; token: string }> = [
+1
View File
@@ -507,6 +507,7 @@ export type LlmBackendConfig = {
request_layer?:
| 'anthropic'
| 'chat_completions'
| 'chat_completions_no_v1'
| 'cloudflare_workers_ai'
| 'responses'
| 'openai_images'
@@ -37,6 +37,7 @@ export const RustRequestMiddlewareValues = [
'clamp_max_tokens',
'tool_schema_rewrite',
'openai_request_compat',
'omit_tool_choice',
] as const;
export type RustRequestMiddleware =
(typeof RustRequestMiddlewareValues)[number];