Skip to content

Commit 9a8cc2b

Browse files
committed
live-demo: agent images AdminForth/1955/implement-ability-for-agent-pl
- attachments column of the turns with the Upload plugin on it: private S3 objects under agent_attachments/, strictContentType, png/jpg/jpeg/webp - attachmentsField of the agent - @adminforth/agent 3.5.0, @adminforth/upload 3.0.10, @adminforth/storage-adapter-amazon-s3 1.3.0, adminforth 4.22.2 - start script on tsx watch: Node watch mode passes WATCH_REPORT_DEPENDENCIES to the SPA install, and pnpm 11 fails on it
1 parent 6fada07 commit 9a8cc2b

6 files changed

Lines changed: 140 additions & 100 deletions

File tree

‎live-demo/app/globalPlugins.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export const adminForthAgent = new AdminForthAgent({
7676
promptField: 'prompt',
7777
responseField: 'response',
7878
checkpointIdField: 'checkpoint_id',
79+
attachmentsField: 'attachments',
7980
},
8081
checkpointResource: {
8182
resourceId: 'agent_checkpoints',
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- AlterTable
2+
ALTER TABLE "turns" ADD COLUMN "attachments" TEXT;

‎live-demo/app/package.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"scripts": {
1010
"dev": "pnpm setup-live-demo && pnpm start",
1111
"setup-live-demo": "[ -f .env ] || (cp .env.example .env && echo 'Created .env from .env.example, put OPENAI_API_KEY into it and run again' && exit 1) && pnpm install && pnpm migrate",
12-
"start": "tsx --env-file=.env --watch index.ts",
12+
"start": "tsx watch --env-file=.env index.ts",
1313
"test": "echo \"Error: no test specified\" && exit 1",
1414
"bundleNow": "tsx bundleNow.ts",
1515
"build": "tsup index.ts --format esm --clean",
@@ -22,7 +22,7 @@
2222
"author": "",
2323
"description": "",
2424
"dependencies": {
25-
"@adminforth/agent": "^3.2.0",
25+
"@adminforth/agent": "^3.5.0",
2626
"@adminforth/audio-adapter-openai": "^1.3.5",
2727
"@adminforth/audit-log": "^2.0.2",
2828
"@adminforth/auto-remove": "^1.0.22",
@@ -43,11 +43,11 @@
4343
"@adminforth/login-captcha-adapter-cloudflare": "^1.1.7",
4444
"@adminforth/mcp": "^3.2.0",
4545
"@adminforth/rich-editor": "^3.0.4",
46-
"@adminforth/storage-adapter-amazon-s3": "^1.2.2",
46+
"@adminforth/storage-adapter-amazon-s3": "^1.3.0",
4747
"@adminforth/text-complete": "^3.0.2",
4848
"@adminforth/two-factors-auth": "^7.1.0",
49-
"@adminforth/upload": "^3.0.4",
50-
"adminforth": "^4.20.0",
49+
"@adminforth/upload": "^3.0.10",
50+
"adminforth": "^4.22.2",
5151
"cldr-core": "^48.2.0",
5252
"express": "^5.3.0"
5353
},

0 commit comments

Comments
 (0)