From 082cd3ac1d0361917797abd3f05cde84c7994201 Mon Sep 17 00:00:00 2001 From: naskya Date: Mon, 6 Nov 2023 21:08:32 +0900 Subject: [PATCH] fix: (try to) make AiScript work Co-authored-by: syuilo Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com> --- packages/backend/package.json | 1 - packages/client/package.json | 2 +- packages/client/src/components/page/page.vue | 6 +- packages/client/src/pages/scratchpad.vue | 10 ++- .../src/pages/settings/plugin.install.vue | 55 ++++++++++---- packages/client/src/plugin.ts | 73 ++++++++++++++----- packages/client/src/scripts/aiscript/api.ts | 3 + packages/client/src/scripts/hpml/evaluator.ts | 6 +- packages/client/src/widgets/aiscript.vue | 27 ++++--- packages/client/src/widgets/button.vue | 30 +++----- 10 files changed, 140 insertions(+), 73 deletions(-) diff --git a/packages/backend/package.json b/packages/backend/package.json index 01dc4ebe6..52f91e7f5 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -36,7 +36,6 @@ "@peertube/http-signature": "1.7.0", "@redocly/openapi-core": "1.4.0", "@sinonjs/fake-timers": "11.2.2", - "@syuilo/aiscript": "0.11.1", "@tensorflow/tfjs": "4.12.0", "adm-zip": "0.5.10", "ajv": "8.12.0", diff --git a/packages/client/package.json b/packages/client/package.json index c9da04807..9a0ddfe0e 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -17,7 +17,7 @@ "@rollup/plugin-alias": "5.0.1", "@rollup/plugin-json": "6.0.1", "@rollup/pluginutils": "5.0.5", - "@syuilo/aiscript": "0.11.1", + "@syuilo/aiscript": "0.16.0", "@types/glob": "8.1.0", "@types/gulp": "4.0.16", "@types/gulp-rename": "2.0.4", diff --git a/packages/client/src/components/page/page.vue b/packages/client/src/components/page/page.vue index 5edda71d0..e43af6add 100644 --- a/packages/client/src/components/page/page.vue +++ b/packages/client/src/components/page/page.vue @@ -17,7 +17,7 @@ - -