diff --git a/ui/AGENTS.md b/ui/AGENTS.md index 7637d1044..bfe89c240 100644 --- a/ui/AGENTS.md +++ b/ui/AGENTS.md @@ -101,6 +101,14 @@ state; the UI presents them and submits operator choices. and table semantics. A hover action must also be reachable by keyboard. - Keep filtering and pagination consistent with the server. State limitations such as sorting only loaded rows when they affect the operator's decision. +- `@ui-sdk/vue` and `@ui-sdk/core` are adopted incrementally alongside + `components/ui` (`shadcn-vue` / Reka UI) for high-value interactive + components and custom behaviors. Before writing or editing `@ui-sdk` code, + read `node_modules/@ui-sdk/core/skills/ui-sdk/SKILL.md` and + `node_modules/@ui-sdk/vue/docs/llms.txt` (and `core.md` / `rendering.md` when + building a custom primitive). Give every `@ui-sdk` control a clear accessible + name, sync state through change callbacks, and mark destructive actions with + `data-agent-confirm`. ## Tests diff --git a/ui/package.json b/ui/package.json index 861699b43..a030edd43 100644 --- a/ui/package.json +++ b/ui/package.json @@ -16,6 +16,8 @@ "@lucide/vue": "^1.61.0", "@tailwindcss/vite": "^4.3.3", "@tanstack/vue-form": "^1.33.5", + "@ui-sdk/core": "0.1.0-beta.16", + "@ui-sdk/vue": "0.1.0-beta.16", "@vue-flow/background": "^1.3.2", "@vue-flow/core": "^1.48.2", "@vueuse/core": "^15.0.0", diff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yaml index 16066b38c..7abbbb4d0 100644 --- a/ui/pnpm-lock.yaml +++ b/ui/pnpm-lock.yaml @@ -181,6 +181,12 @@ importers: '@tanstack/vue-form': specifier: ^1.33.5 version: 1.33.5(vue@3.5.44(typescript@6.0.3)) + '@ui-sdk/core': + specifier: 0.1.0-beta.16 + version: 0.1.0-beta.16 + '@ui-sdk/vue': + specifier: 0.1.0-beta.16 + version: 0.1.0-beta.16(@ui-sdk/core@0.1.0-beta.16)(vue@3.5.44(typescript@6.0.3)) '@vue-flow/background': specifier: ^1.3.2 version: 1.3.2(@vue-flow/core@1.48.2(vue@3.5.44(typescript@6.0.3)))(vue@3.5.44(typescript@6.0.3)) @@ -650,6 +656,25 @@ packages: '@types/web-bluetooth@0.0.21': resolution: {integrity: sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==} + '@ui-sdk/core@0.1.0-beta.16': + resolution: {integrity: sha512-I2GMqOviLS/lYfIj2lTqKLbae0V9uSnysK+bSdbhuw2De8zNvrLZiDTc0qzsPNiZvB/bMmUZJS5UDA5Q2Pq4Ng==} + + '@ui-sdk/vue@0.1.0-beta.16': + resolution: {integrity: sha512-9Y4aMVrrYrYDNBgiJs1AWW1S6giJQ7wfmyEvN6fU0j3gyO5qmLQ1xLBmZmuCQv1Wt0AIL9VfGpAclW4ZF45IOA==} + peerDependencies: + '@nuxt/kit': ^4.0.0 || ^5.0.0-0 + '@nuxt/schema': ^4.0.0 || ^5.0.0-0 + '@ui-sdk/core': ^0.1.0-beta.16 + nuxt: ^4.0.0 || ^5.0.0-0 + vue: '>=3.5' + peerDependenciesMeta: + '@nuxt/kit': + optional: true + '@nuxt/schema': + optional: true + nuxt: + optional: true + '@ungap/structured-clone@1.4.0': resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==} @@ -2016,6 +2041,13 @@ snapshots: '@types/web-bluetooth@0.0.21': {} + '@ui-sdk/core@0.1.0-beta.16': {} + + '@ui-sdk/vue@0.1.0-beta.16(@ui-sdk/core@0.1.0-beta.16)(vue@3.5.44(typescript@6.0.3))': + dependencies: + '@ui-sdk/core': 0.1.0-beta.16 + vue: 3.5.44(typescript@6.0.3) + '@ungap/structured-clone@1.4.0': {} '@vitejs/plugin-vue@6.0.10(vite@8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1))(vue@3.5.44(typescript@6.0.3))': diff --git a/ui/pnpm-workspace.yaml b/ui/pnpm-workspace.yaml index ae1acadb9..2d2558150 100644 --- a/ui/pnpm-workspace.yaml +++ b/ui/pnpm-workspace.yaml @@ -1,2 +1,5 @@ allowBuilds: vue-demi: true +minimumReleaseAgeExclude: + - '@ui-sdk/core@0.1.0-beta.16' + - '@ui-sdk/vue@0.1.0-beta.16' diff --git a/ui/src/chat/ChatComposer.vue b/ui/src/chat/ChatComposer.vue index abd8a53b4..f2f4e5105 100644 --- a/ui/src/chat/ChatComposer.vue +++ b/ui/src/chat/ChatComposer.vue @@ -1,73 +1,65 @@ @@ -247,56 +249,76 @@ function onKeydown(event: KeyboardEvent): void { /> - -
-