@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.
Files changed (65) hide show
  1. package/README.md +2 -1
  2. package/dist/app/application.d.ts +2 -1
  3. package/dist/app/application.js +27 -16
  4. package/dist/app/create-application.js +6 -3
  5. package/dist/appearance/appearance-host.d.ts +2 -1
  6. package/dist/appearance/appearance-host.js +28 -21
  7. package/dist/appearance/editor.js +21 -3
  8. package/dist/framework-source.json +1 -1
  9. package/dist/shell/app-shell.d.ts +1 -1
  10. package/dist/shell/app-shell.js +97 -87
  11. package/dist/shell/app-utilities.d.ts +1 -1
  12. package/dist/shell/app-utilities.js +42 -23
  13. package/dist/shell/media-query.js +12 -10
  14. package/dist/shell/navigation-drawer.d.ts +1 -1
  15. package/dist/shell/navigation-drawer.js +6 -4
  16. package/dist/shell/poll.js +9 -11
  17. package/dist/shell/settings-sections.d.ts +1 -1
  18. package/dist/views/app-about.d.ts +1 -1
  19. package/dist/views/app-about.js +1 -1
  20. package/dist/views/app-appearance.d.ts +2 -1
  21. package/dist/views/app-appearance.js +4 -4
  22. package/dist/views/app-help.d.ts +1 -1
  23. package/dist/views/app-help.js +1 -1
  24. package/dist/views/app-settings.d.ts +2 -1
  25. package/dist/views/app-settings.js +15 -10
  26. package/dist/views/appearance-surface.d.ts +1 -1
  27. package/dist/views/appearance-surface.js +116 -91
  28. package/dist/views/update-surface.d.ts +1 -1
  29. package/dist/views/update-surface.js +1 -1
  30. package/dist/voice/voice-build.d.ts +62 -0
  31. package/dist/voice/voice-build.js +247 -0
  32. package/dist/voice/voice-client.d.ts +130 -0
  33. package/dist/voice/voice-client.js +405 -0
  34. package/dist/voice/voice-controls.d.ts +43 -0
  35. package/dist/voice/voice-controls.js +313 -0
  36. package/dist/voice/voice-host.d.ts +29 -0
  37. package/dist/voice/voice-host.js +248 -0
  38. package/dist/voice/voice-protocol.d.ts +127 -0
  39. package/dist/voice/voice-protocol.js +120 -0
  40. package/dist/voice/voice-settings.d.ts +15 -0
  41. package/dist/voice/voice-settings.js +1095 -0
  42. package/dist/voice/voice.d.ts +5 -0
  43. package/dist/voice/voice.js +5 -0
  44. package/package.json +32 -14
  45. package/src/app/application.tsx +28 -32
  46. package/src/appearance/appearance-host.tsx +30 -19
  47. package/src/appearance/editor.ts +25 -3
  48. package/src/shell/app-shell.tsx +46 -37
  49. package/src/shell/app-utilities.tsx +38 -40
  50. package/src/shell/media-query.ts +15 -10
  51. package/src/shell/navigation-drawer.tsx +1 -1
  52. package/src/shell/poll.ts +9 -10
  53. package/src/shell/settings-sections.ts +1 -1
  54. package/src/views/app-appearance.tsx +4 -3
  55. package/src/views/app-settings.tsx +2 -1
  56. package/src/views/appearance-surface.tsx +46 -35
  57. package/src/voice/voice-client.ts +579 -0
  58. package/src/voice/voice-controls.tsx +354 -0
  59. package/src/voice/voice-protocol.ts +189 -0
  60. package/src/voice/voice-settings.tsx +879 -0
  61. package/src/voice/voice.ts +13 -0
  62. package/templates/application/AGENTS.md +29 -0
  63. package/templates/application/src/web/main.tsx +2 -2
  64. package/templates/application/tsconfig.json +1 -1
  65. 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 'solid-js/web'
3
- import { House } from 'lucide-solid'
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": "solid-js",
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-solid'
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 {