Skip to content

Commit 8beb9d2

Browse files
authored
Chat backgrounds (#1109)
- chub item removable - fix unsafe json path - improve model group sort - modal fullscreen * local chat backgrounds * add claude models * upgrade deps
1 parent d69f79b commit 8beb9d2

Some content is hidden

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

45 files changed

+8684
-7404
lines changed

.github/workflows/api.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
tags:
55
- '*'
66
env:
7-
node-version: '18.4.0'
8-
pnpm-version: 8.6.0
7+
node-version: '22.14.0'
8+
pnpm-version: 10.6.1
99

1010
jobs:
1111
build:

.github/workflows/dev-deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ permissions:
77

88
env:
99
IMAGE_NAME: agnaistic
10-
node-version: '18.4.0'
11-
pnpm-version: 8.6.0
10+
node-version: '22.14.0'
11+
pnpm-version: 10.6.1
1212

1313
jobs:
1414
build:

.github/workflows/pipeline.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ permissions:
77
on: pull_request
88

99
env:
10-
node-version: '18.4.0'
11-
pnpm-version: 8.6.0
10+
node-version: '22.14.0'
11+
pnpm-version: 10.6.1
1212

1313
jobs:
1414
checks:

.github/workflows/prd-deploy-stack.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on: workflow_dispatch
44

55
env:
66
IMAGE_NAME: agnaistic
7-
node-version: '18.4.0'
8-
pnpm-version: 8.6.0
7+
node-version: '22.14.0'
8+
pnpm-version: 10.6.1
99

1010
jobs:
1111
build:

.github/workflows/prd-deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on: workflow_dispatch
44

55
env:
66
IMAGE_NAME: agnaistic
7-
node-version: '18.4.0'
8-
pnpm-version: 8.6.0
7+
node-version: '22.14.0'
8+
pnpm-version: 10.6.1
99

1010
jobs:
1111
build:

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
- name: Install Node
1818
uses: actions/setup-node@v3
1919
with:
20-
node-version: '18.4.0'
20+
node-version: '22.14.0'
2121
registry-url: 'https://registry.npmjs.org'
2222

2323
- name: Install PNPM
2424
uses: pnpm/action-setup@v2
2525
with:
26-
version: '8.6.0'
26+
version: '10.6.1'
2727

2828
- name: Get cached dependencies
2929
# cache is automatically saved after this job completes. jobs depending on this one will get the latest cached files

.github/workflows/stg-deploy-stack.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on: workflow_dispatch
44

55
env:
66
IMAGE_NAME: agnaistic
7-
node-version: '18.4.0'
8-
pnpm-version: 8.6.0
7+
node-version: '22.14.0'
8+
pnpm-version: 10.6.1
99

1010
jobs:
1111
build:

.github/workflows/web-deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66

77
env:
88
IMAGE_NAME: agnaistic
9-
node-version: '18.4.0'
10-
pnpm-version: 8.6.0
9+
node-version: '22.14.0'
10+
pnpm-version: 10.6.1
1111

1212
jobs:
1313
build:

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20.10.0-bullseye-slim
1+
FROM node:22.14.0-bullseye-slim
22

33
# Set working directory
44
WORKDIR /app
@@ -7,7 +7,7 @@ WORKDIR /app
77
VOLUME [ "/app/db", "/app/assets", "/app/dist/assets", "/app/extras" ]
88

99
# Install pnpm globally
10-
RUN npm install pnpm@8.6.0 -g
10+
RUN npm install pnpm@10 -g
1111

1212
# SHA used for versioning
1313
ARG SHA=unknown

common/adapters.ts

+4
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ export const CLAUDE_MODELS = {
326326
ClaudeV35_Sonnet: 'claude-3-5-sonnet-20240620',
327327
ClaudeV35_Sonnet_Oct2024: 'claude-3-5-sonnet-20241022',
328328
ClaudeV35_Sonnet_Latest: 'claude-3-5-sonnet-latest',
329+
ClaudeV37_Sonnet_Feb2025: 'claude-3-7-sonnet-20250219',
330+
ClaudeV37_Sonnet_Latest: 'claude-3-7-sonnet-latest',
329331
} as const
330332

331333
export const CLAUDE_CHAT_MODELS: Record<string, boolean> = {
@@ -337,6 +339,8 @@ export const CLAUDE_CHAT_MODELS: Record<string, boolean> = {
337339
[CLAUDE_MODELS.ClaudeV35_Sonnet_Latest]: true,
338340
[CLAUDE_MODELS.ClaudeV35_Haiku_Oct2024]: true,
339341
[CLAUDE_MODELS.ClaudeV35_Haiku_Latest]: true,
342+
[CLAUDE_MODELS.ClaudeV37_Sonnet_Feb2025]: true,
343+
[CLAUDE_MODELS.ClaudeV37_Sonnet_Latest]: true,
340344
}
341345

342346
export const NOVEL_MODELS = {

common/types/library.ts

+7
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,10 @@ export interface ResponseSchema {
7575
response: string
7676
history: string
7777
}
78+
79+
type BaseLibaryItem = { _id: string; kind: 'library-item'; userId: string }
80+
export type LibraryItem = BaseLibaryItem &
81+
(
82+
| { subkind: 'json-schema'; data: ResponseSchema }
83+
| { subkind: 'embedding'; data: { lines: string[] } }
84+
)

common/types/schema.ts

+3
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ export namespace AppSchema {
285285

286286
imageSource?: 'last-character' | 'main-character' | 'chat' | 'settings'
287287
imageSettings?: ImageSettings
288+
289+
background?: string
290+
localSettings?: { bgFormat?: 'contain' | 'cover' | 'auto' }
288291
}
289292

290293
export interface ChatMember {

package.json

+10-8
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"check": "pnpm typecheck && pnpm test",
7272
"checks": "pnpm format && pnpm typecheck && pnpm test",
7373
"up": "docker compose -p agnai up -d",
74-
"deps": "npx --yes pnpm@8.6.2 install --lockfile",
74+
"deps": "npx --yes pnpm@10 install --lockfile",
7575
"web": "parcel web/index.html --no-cache",
7676
"api": "tsc -p api.tsconfig.json --watch"
7777
},
@@ -114,6 +114,7 @@
114114
"redis": "^4.6.5",
115115
"shepherd.js": "^13.0.3",
116116
"stripe": "^13.7.0",
117+
"svgo": "^3.3.2",
117118
"throng": "^5.0.0",
118119
"uuid": "^9.0.0",
119120
"wikijs": "^6.4.1",
@@ -122,11 +123,11 @@
122123
"devDependencies": {
123124
"@babel/core": "^7.20.12",
124125
"@melloware/coloris": "^0.20.0",
125-
"@parcel/config-default": "^2.12.0",
126-
"@parcel/core": "^2.12.0",
127-
"@parcel/resolver-glob": "^2.12.0",
128-
"@parcel/transformer-inline-string": "2.12.0",
129-
"@parcel/transformer-sass": "2.12.0",
126+
"@parcel/config-default": "^2.13.3",
127+
"@parcel/core": "^2.13.3",
128+
"@parcel/resolver-glob": "^2.13.3",
129+
"@parcel/transformer-inline-string": "2.13.3",
130+
"@parcel/transformer-sass": "2.13.3",
130131
"@solidjs/router": "^0.13.1",
131132
"@types/adm-zip": "^0.5.0",
132133
"@types/bcryptjs": "^2.4.2",
@@ -179,7 +180,7 @@
179180
"png-chunks-encode": "^1.0.0",
180181
"png-chunks-extract": "^1.0.0",
181182
"postcss": "^8.4.21",
182-
"prettier": "^2.8.3",
183+
"prettier": "^2.8.8",
183184
"prettier-plugin-tailwindcss": "^0.2.1",
184185
"process": "^0.11.10",
185186
"punycode": "^1.4.1",
@@ -192,13 +193,14 @@
192193
"stream-http": "^3.2.0",
193194
"string_decoder": "^1.3.0",
194195
"tailwindcss": "^3.3.2",
195-
"typescript": "^5.4.5",
196+
"typescript": "^5.8.2",
196197
"url": "^0.11.1",
197198
"util": "^0.12.3",
198199
"values.js": "^2.1.1",
199200
"vite": "^5.3.3",
200201
"vite-plugin-solid": "^2.10.2",
201202
"vite-tsconfig-paths": "^4.3.2",
203+
"vm-browserify": "^1.1.2",
202204
"zustand": "^4.5.2"
203205
},
204206
"@parcel/resolver-default": {

0 commit comments

Comments
 (0)