@adea-ai/app-framework 0.46.12 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/app/application.d.ts +2 -1
- package/dist/app/application.js +27 -16
- package/dist/app/create-application.js +6 -3
- package/dist/appearance/appearance-host.d.ts +2 -1
- package/dist/appearance/appearance-host.js +28 -21
- package/dist/appearance/editor.js +21 -3
- package/dist/framework-source.json +1 -1
- package/dist/shell/app-shell.d.ts +1 -1
- package/dist/shell/app-shell.js +97 -87
- package/dist/shell/app-utilities.d.ts +1 -1
- package/dist/shell/app-utilities.js +42 -23
- package/dist/shell/media-query.js +12 -10
- package/dist/shell/navigation-drawer.d.ts +1 -1
- package/dist/shell/navigation-drawer.js +6 -4
- package/dist/shell/poll.js +9 -11
- package/dist/shell/settings-sections.d.ts +1 -1
- package/dist/views/app-about.d.ts +1 -1
- package/dist/views/app-about.js +1 -1
- package/dist/views/app-appearance.d.ts +2 -1
- package/dist/views/app-appearance.js +4 -4
- package/dist/views/app-help.d.ts +1 -1
- package/dist/views/app-help.js +1 -1
- package/dist/views/app-settings.d.ts +2 -1
- package/dist/views/app-settings.js +15 -10
- package/dist/views/appearance-surface.d.ts +1 -1
- package/dist/views/appearance-surface.js +116 -91
- package/dist/views/update-surface.d.ts +1 -1
- package/dist/views/update-surface.js +1 -1
- package/dist/voice/voice-build.d.ts +62 -0
- package/dist/voice/voice-build.js +247 -0
- package/dist/voice/voice-client.d.ts +130 -0
- package/dist/voice/voice-client.js +405 -0
- package/dist/voice/voice-controls.d.ts +43 -0
- package/dist/voice/voice-controls.js +313 -0
- package/dist/voice/voice-host.d.ts +29 -0
- package/dist/voice/voice-host.js +248 -0
- package/dist/voice/voice-protocol.d.ts +127 -0
- package/dist/voice/voice-protocol.js +120 -0
- package/dist/voice/voice-settings.d.ts +15 -0
- package/dist/voice/voice-settings.js +1095 -0
- package/dist/voice/voice.d.ts +5 -0
- package/dist/voice/voice.js +5 -0
- package/package.json +32 -14
- package/src/app/application.tsx +28 -32
- package/src/appearance/appearance-host.tsx +30 -19
- package/src/appearance/editor.ts +25 -3
- package/src/shell/app-shell.tsx +46 -37
- package/src/shell/app-utilities.tsx +38 -40
- package/src/shell/media-query.ts +15 -10
- package/src/shell/navigation-drawer.tsx +1 -1
- package/src/shell/poll.ts +9 -10
- package/src/shell/settings-sections.ts +1 -1
- package/src/views/app-appearance.tsx +4 -3
- package/src/views/app-settings.tsx +2 -1
- package/src/views/appearance-surface.tsx +46 -35
- package/src/voice/voice-client.ts +579 -0
- package/src/voice/voice-controls.tsx +354 -0
- package/src/voice/voice-protocol.ts +189 -0
- package/src/voice/voice-settings.tsx +879 -0
- package/src/voice/voice.ts +13 -0
- package/templates/application/AGENTS.md +29 -0
- package/templates/application/src/web/main.tsx +2 -2
- package/templates/application/tsconfig.json +1 -1
- package/templates/application/vite.config.ts +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** The renderer's voice API: the client, the service names, the settings section and controls. */
|
|
2
|
+
export * from './voice-client'
|
|
3
|
+
export {
|
|
4
|
+
EVENTS_WAIT_MS,
|
|
5
|
+
MAX_SPEAK_CHARACTERS,
|
|
6
|
+
VOICE_SERVICES,
|
|
7
|
+
type VoiceEvent,
|
|
8
|
+
type VoiceEventBatch,
|
|
9
|
+
type VoiceServiceName,
|
|
10
|
+
type VoiceSpeechVoice,
|
|
11
|
+
} from './voice-protocol'
|
|
12
|
+
export * from './voice-settings'
|
|
13
|
+
export * from './voice-controls'
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Agent guide
|
|
2
|
+
|
|
3
|
+
This app is built on `@adea-ai/app-framework` and the Adea design system
|
|
4
|
+
`@adea-ai/ui`. Read the [README](README.md) for its layout, commands and release
|
|
5
|
+
setup.
|
|
6
|
+
|
|
7
|
+
## Solid 2 and ui-sdk
|
|
8
|
+
|
|
9
|
+
The app is Solid 2 (`solid-js` and `@solidjs/web` 2.x). Before writing reactive
|
|
10
|
+
code, read `node_modules/solid-js/skills/solid-2.0/SKILL.md`: the 1.x APIs
|
|
11
|
+
(one-argument `createEffect`, `splitProps`, `onMount`, `classList`, `solid-js/web`,
|
|
12
|
+
`Context.Provider`) do not exist any more.
|
|
13
|
+
|
|
14
|
+
The behaviour primitives under `@adea-ai/ui` come from ui-sdk (`@ui-sdk/solid` over
|
|
15
|
+
`@ui-sdk/core`). Before using ui-sdk, follow the ui-sdk skill if it's installed, and
|
|
16
|
+
read `node_modules/@ui-sdk/solid/docs/llms.txt`. To build a new component, also
|
|
17
|
+
search `node_modules/@ui-sdk/solid/docs/core.md` by heading, and read
|
|
18
|
+
`rendering.md` next to it.
|
|
19
|
+
|
|
20
|
+
## Commands
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
bun install
|
|
24
|
+
bun run format:check
|
|
25
|
+
bun run lint
|
|
26
|
+
bun run typecheck
|
|
27
|
+
bun run test
|
|
28
|
+
bun run build:web
|
|
29
|
+
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSignal, lazy, onCleanup } from 'solid-js'
|
|
2
|
-
import { render } from '
|
|
3
|
-
import { House } from 'lucide
|
|
2
|
+
import { render } from '@solidjs/web'
|
|
3
|
+
import { House } from '@lucide/solid'
|
|
4
4
|
import { Application, defineApplication } from '@adea-ai/app-framework/application'
|
|
5
5
|
import { ThemeProvider } from '@adea-ai/app-framework/appearance-host'
|
|
6
6
|
import { connectApplicationCommands } from '@adea-ai/app-framework/application-command-client'
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"module": "Preserve",
|
|
5
5
|
"moduleResolution": "Bundler",
|
|
6
6
|
"jsx": "preserve",
|
|
7
|
-
"jsxImportSource": "
|
|
7
|
+
"jsxImportSource": "@solidjs/web",
|
|
8
8
|
"types": ["bun", "vite/client", "@adea-ai/app-framework/electrobun-types"],
|
|
9
9
|
"strict": true,
|
|
10
10
|
"skipLibCheck": true,
|
|
@@ -3,7 +3,7 @@ import { existsSync } from 'node:fs'
|
|
|
3
3
|
import { readFile, writeFile } from 'node:fs/promises'
|
|
4
4
|
import { join, resolve } from 'node:path'
|
|
5
5
|
import { defineConfig, type Plugin } from 'vite'
|
|
6
|
-
import solid from 'vite-plugin
|
|
6
|
+
import solid from '@solidjs/vite-plugin'
|
|
7
7
|
import tailwind from '@tailwindcss/vite'
|
|
8
8
|
import { applicationVersion } from './scripts/app-version'
|
|
9
9
|
import {
|