enhance(frontend): update aiscript to 1.1.0

This commit is contained in:
syuilo
2025-08-18 10:18:34 +09:00
parent fea9f27fd6
commit e481205342
5 changed files with 14 additions and 14 deletions

View File

@@ -25,7 +25,7 @@
"@rollup/plugin-replace": "6.0.2",
"@rollup/pluginutils": "5.2.0",
"@sentry/vue": "10.0.0",
"@syuilo/aiscript": "1.0.0",
"@syuilo/aiscript": "1.1.0",
"@syuilo/aiscript-0-19-0": "npm:@syuilo/aiscript@^0.19.0",
"@twemoji/parser": "16.0.0",
"@vitejs/plugin-vue": "6.0.1",

View File

@@ -88,7 +88,7 @@ let choices = [
]
// シードが「PlayID+ユーザーID+今日の日付」である乱数生成器を用意
let random = Math:gen_rng(\`{THIS_ID}{USER_ID}{Date:year()}{Date:month()}{Date:day()}\`, { algorithm: 'rc4_legacy' })
let random = Math:gen_rng(\`{THIS_ID}{USER_ID}{Date:year()}{Date:month()}{Date:day()}\`)
// ランダムに選択肢を選ぶ
let chosen = choices[random(0, (choices.len - 1))]

View File

@@ -320,7 +320,7 @@ describe('AiScript UI API', () => {
const { root, get, outputs } = await exe(`
let text_input = Ui:C:textInput({
onInput: print
"default": 'a'
default: 'a'
label: 'b'
caption: 'c'
}, 'id')
@@ -361,7 +361,7 @@ describe('AiScript UI API', () => {
const { root, get, outputs } = await exe(`
let textarea = Ui:C:textarea({
onInput: print
"default": 'a'
default: 'a'
label: 'b'
caption: 'c'
}, 'id')
@@ -402,7 +402,7 @@ describe('AiScript UI API', () => {
const { root, get, outputs } = await exe(`
let number_input = Ui:C:numberInput({
onInput: print
"default": 1
default: 1
label: 'a'
caption: 'b'
}, 'id')
@@ -564,7 +564,7 @@ describe('AiScript UI API', () => {
const { root, get, outputs } = await exe(`
let switch = Ui:C:switch({
onChange: print
"default": false
default: false
label: 'a'
caption: 'b'
}, 'id')
@@ -609,7 +609,7 @@ describe('AiScript UI API', () => {
{ text: 'B', value: 'b' }
]
onChange: print
"default": 'a'
default: 'a'
label: 'c'
caption: 'd'
}, 'id')