mirror of
https://github.com/moeru-ai/airi.git
synced 2026-08-14 00:48:06 +00:00
chore(deps): bump dependencies
This commit is contained in:
+6
-6
@@ -38,7 +38,7 @@
|
||||
"nolyfill": "pnpm dlx nolyfill"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^6.7.1",
|
||||
"@antfu/eslint-config": "^6.7.3",
|
||||
"@arethetypeswrong/core": "^0.18.2",
|
||||
"@electron-toolkit/eslint-config-ts": "^3.1.0",
|
||||
"@iconify/utils": "^3.1.0",
|
||||
@@ -49,16 +49,16 @@
|
||||
"@unocss/eslint-plugin": "^66.5.10",
|
||||
"@unocss/preset-mini": "^66.5.10",
|
||||
"@unocss/preset-web-fonts": "^66.5.10",
|
||||
"@vitest/coverage-v8": "^4.0.16",
|
||||
"@vitest/coverage-v8": "catalog:vitest",
|
||||
"bumpp": "^10.3.2",
|
||||
"eslint": "^9.39.2",
|
||||
"eslint-plugin-oxlint": "^1.34.0",
|
||||
"eslint-plugin-oxlint": "^1.35.0",
|
||||
"lint-staged": "^16.2.7",
|
||||
"oxlint": "^1.34.0",
|
||||
"oxlint": "^1.35.0",
|
||||
"publint": "^0.3.16",
|
||||
"rollup": "^4.53.3",
|
||||
"simple-git-hooks": "^2.13.1",
|
||||
"smol-toml": "^1.5.2",
|
||||
"smol-toml": "^1.6.0",
|
||||
"taze": "^19.9.2",
|
||||
"tinyexec": "^1.0.2",
|
||||
"tsdown": "^0.17.4",
|
||||
@@ -68,7 +68,7 @@
|
||||
"uncrypto": "^0.1.3",
|
||||
"unocss": "^66.5.10",
|
||||
"unocss-preset-scrollbar": "^3.2.0",
|
||||
"unplugin-lightningcss": "^0.4.3",
|
||||
"unplugin-lightningcss": "^0.4.4",
|
||||
"unplugin-raw": "^0.6.3",
|
||||
"unplugin-unused": "^0.5.6",
|
||||
"unplugin-vue": "^7.1.0",
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "@proj-airi/audio-pipelines-transcribe",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"exports": "./src/index.ts",
|
||||
"scripts": {
|
||||
"test": "vitest",
|
||||
"test:run": "vitest run"
|
||||
},
|
||||
"dependencies": {
|
||||
"uncrypto": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitest/browser-playwright": "catalog:vitest",
|
||||
"vitest": "catalog:vitest"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
export async function mediaStreamFromAudioFile(file: File): Promise<{
|
||||
cleanup: () => Promise<void>
|
||||
stream: MediaStream
|
||||
}> {
|
||||
const audioContext = new AudioContext()
|
||||
const arrayBuffer = await file.arrayBuffer()
|
||||
const audioBuffer = await audioContext.decodeAudioData(arrayBuffer)
|
||||
|
||||
const source = audioContext.createBufferSource()
|
||||
source.buffer = audioBuffer
|
||||
|
||||
const destination = audioContext.createMediaStreamDestination()
|
||||
source.connect(destination)
|
||||
source.connect(audioContext.destination)
|
||||
|
||||
source.start(0)
|
||||
await audioContext.resume()
|
||||
|
||||
return {
|
||||
stream: destination.stream,
|
||||
cleanup: async () => {
|
||||
try {
|
||||
source.stop()
|
||||
}
|
||||
|
||||
catch { /* noop */ }
|
||||
source.disconnect()
|
||||
destination.disconnect()
|
||||
await audioContext.close()
|
||||
},
|
||||
}
|
||||
}
|
||||
+7
-1
@@ -2,10 +2,16 @@
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"lib": [
|
||||
"ESNext"
|
||||
"ESNext",
|
||||
"DOM",
|
||||
"DOM.Iterable"
|
||||
],
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"types": [
|
||||
"vitest",
|
||||
"vite/client"
|
||||
],
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"isolatedModules": true,
|
||||
@@ -0,0 +1,37 @@
|
||||
import { dirname } from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
import { playwright } from '@vitest/browser-playwright'
|
||||
import { loadEnv } from 'vite'
|
||||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
export default defineConfig(({ mode }) => ({
|
||||
test: {
|
||||
projects: [
|
||||
{
|
||||
test: {
|
||||
name: 'node',
|
||||
root: dirname(fileURLToPath(import.meta.url)),
|
||||
env: loadEnv(mode, dirname(fileURLToPath(import.meta.url))),
|
||||
exclude: ['**/*.browser.{spec,test}.ts', '**/node_modules/**'],
|
||||
},
|
||||
},
|
||||
{
|
||||
test: {
|
||||
name: 'browser',
|
||||
root: dirname(fileURLToPath(import.meta.url)),
|
||||
include: ['**/*.browser.{spec,test}.ts'],
|
||||
exclude: ['**/node_modules/**'],
|
||||
browser: {
|
||||
provider: playwright(),
|
||||
enabled: true,
|
||||
// at least one instance is required
|
||||
instances: [
|
||||
{ browser: 'chromium' },
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
}))
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"name": "@proj-airi/stream-transcription",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"exports": "./src/index.ts"
|
||||
}
|
||||
@@ -21,6 +21,6 @@
|
||||
"@unocss/reset": "^66.5.10",
|
||||
"@wxt-dev/module-vue": "^1.0.3",
|
||||
"vue-tsc": "^3.1.8",
|
||||
"wxt": "^0.20.11"
|
||||
"wxt": "^0.20.13"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+531
-439
File diff suppressed because it is too large
Load Diff
+30
-24
@@ -1,6 +1,3 @@
|
||||
catalogMode: prefer
|
||||
|
||||
shellEmulator: true
|
||||
packages:
|
||||
- packages/**
|
||||
- plugins/**
|
||||
@@ -10,44 +7,41 @@ packages:
|
||||
- apps/**
|
||||
- '!**/dist/**'
|
||||
|
||||
overrides:
|
||||
array-flatten: npm:@nolyfill/array-flatten@^1.0.44
|
||||
axios: npm:feaxios@^0.0.23
|
||||
is-core-module: npm:@nolyfill/is-core-module@^1.0.39
|
||||
isarray: npm:@nolyfill/isarray@^1.0.44
|
||||
safe-buffer: npm:@nolyfill/safe-buffer@^1.0.44
|
||||
safer-buffer: npm:@nolyfill/safer-buffer@^1.0.44
|
||||
side-channel: npm:@nolyfill/side-channel@^1.0.44
|
||||
string.prototype.matchall: npm:@nolyfill/string.prototype.matchall@^1.0.44
|
||||
catalog:
|
||||
'@guiiai/logg': 1.1.0
|
||||
'@moeru/eslint-config': 0.1.0-beta.13
|
||||
'@moeru/std': 0.1.0-beta.13
|
||||
'@proj-airi/drizzle-duckdb-wasm': ^0.4.29
|
||||
'@types/audioworklet': ^0.0.92
|
||||
'@xsai-ext/providers-cloud': ^0.4.0-beta.11
|
||||
'@xsai-ext/providers-local': ^0.4.0-beta.11
|
||||
'@xsai-ext/providers-cloud': ^0.4.0-beta.12
|
||||
'@xsai-ext/providers-local': ^0.4.0-beta.12
|
||||
'@xsai-ext/shared-providers': 0.4.0-beta.5
|
||||
'@xsai/embed': ^0.4.0-beta.11
|
||||
'@xsai/embed': ^0.4.0-beta.12
|
||||
'@xsai/generate-speech': 0.4.0-beta.5
|
||||
'@xsai/generate-text': ^0.4.0-beta.11
|
||||
'@xsai/generate-transcription': ^0.4.0-beta.11
|
||||
'@xsai/model': ^0.4.0-beta.11
|
||||
'@xsai/shared': ^0.4.0-beta.11
|
||||
'@xsai/shared-chat': ^0.4.0-beta.11
|
||||
'@xsai/stream-text': ^0.4.0-beta.11
|
||||
'@xsai/tool': ^0.4.0-beta.11
|
||||
'@xsai/generate-text': ^0.4.0-beta.12
|
||||
'@xsai/generate-transcription': ^0.4.0-beta.12
|
||||
'@xsai/model': ^0.4.0-beta.12
|
||||
'@xsai/shared': ^0.4.0-beta.12
|
||||
'@xsai/shared-chat': ^0.4.0-beta.12
|
||||
'@xsai/stream-text': ^0.4.0-beta.12
|
||||
'@xsai/tool': ^0.4.0-beta.12
|
||||
'@xsai/utils-chat': 0.4.0-beta.5
|
||||
builder-util-runtime: ^9.3.1
|
||||
electron-updater: ^6.6.2
|
||||
embla-carousel-vue: ^8.6.0
|
||||
es-toolkit: ^1.43.0
|
||||
posthog-js: 1.306.1
|
||||
xsschema: ^0.4.0-beta.11
|
||||
uncrypto: ^0.1.3
|
||||
xsschema: ^0.4.0-beta.12
|
||||
|
||||
catalogMode: prefer
|
||||
|
||||
catalogs:
|
||||
rolldown-vite:
|
||||
vite: npm:rolldown-vite@^7.2.11
|
||||
vitest:
|
||||
'@vitest/browser-playwright': ^4.0.16
|
||||
'@vitest/coverage-v8': ^4.0.16
|
||||
vitest: ^4.0.16
|
||||
|
||||
onlyBuiltDependencies:
|
||||
- '@discordjs/opus'
|
||||
@@ -68,3 +62,15 @@ onlyBuiltDependencies:
|
||||
- spawn-sync
|
||||
- utf-8-validate
|
||||
- vue-demi
|
||||
|
||||
overrides:
|
||||
array-flatten: npm:@nolyfill/array-flatten@^1.0.44
|
||||
axios: npm:feaxios@^0.0.23
|
||||
is-core-module: npm:@nolyfill/is-core-module@^1.0.39
|
||||
isarray: npm:@nolyfill/isarray@^1.0.44
|
||||
safe-buffer: npm:@nolyfill/safe-buffer@^1.0.44
|
||||
safer-buffer: npm:@nolyfill/safer-buffer@^1.0.44
|
||||
side-channel: npm:@nolyfill/side-channel@^1.0.44
|
||||
string.prototype.matchall: npm:@nolyfill/string.prototype.matchall@^1.0.44
|
||||
|
||||
shellEmulator: true
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"dependencies": {
|
||||
"@guiiai/logg": "catalog:",
|
||||
"@moeru/std": "catalog:",
|
||||
"@proj-airi/server-sdk": "^0.8.0-beta.4",
|
||||
"@proj-airi/server-sdk": "^0.8.0-beta.5",
|
||||
"awilix": "^12.0.5",
|
||||
"es-toolkit": "^1.43.0",
|
||||
"eventemitter3": "^5.0.1",
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"@guiiai/logg": "catalog:",
|
||||
"@modelcontextprotocol/sdk": "^1.25.1",
|
||||
"@moeru/std": "catalog:",
|
||||
"@proj-airi/server-sdk": "^0.8.0-beta.4",
|
||||
"@proj-airi/server-sdk": "^0.8.0-beta.5",
|
||||
"h3": "^2.0.1-rc.6",
|
||||
"listhen": "^1.9.0",
|
||||
"ofetch": "^1.5.1",
|
||||
|
||||
Reference in New Issue
Block a user