ai-elements-vue 0.1.0 → 0.2.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 +1 -1
- package/index.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,7 +84,7 @@ AI Elements Vue includes the following components:
|
|
|
84
84
|
| `conversation` | ✅ 已完成 | Container for chat conversations |
|
|
85
85
|
| `response` | ✅ 已完成 | Formatted AI response display |
|
|
86
86
|
| `prompt-input` | ✅ 已完成 | Advanced input component with model selection |
|
|
87
|
-
| `actions` |
|
|
87
|
+
| `actions` | ✅ 已完成 | Interactive action buttons for AI responses |
|
|
88
88
|
| `branch` | ❌ 未完成 | Branch visualization for conversation flows |
|
|
89
89
|
| `code-block` | ❌ 未完成 | Syntax-highlighted code display with copy functionality |
|
|
90
90
|
| `image` | ❌ 未完成 | AI-generated image display component |
|
package/index.js
CHANGED
|
@@ -29,10 +29,10 @@ if (args.length >= 2 && args[0] === 'add') {
|
|
|
29
29
|
const component = args[1]
|
|
30
30
|
const targetUrl = new URL(`/${component}.json`, 'https://registry.ai-elements-vue.com').toString()
|
|
31
31
|
|
|
32
|
-
const
|
|
33
|
-
const result = spawnSync(
|
|
32
|
+
const fullCommand = `${commandPrefix} shadcn-vue@latest add ${targetUrl}`
|
|
33
|
+
const result = spawnSync(fullCommand, {
|
|
34
34
|
stdio: 'inherit',
|
|
35
|
-
shell:
|
|
35
|
+
shell: true,
|
|
36
36
|
})
|
|
37
37
|
|
|
38
38
|
if (result.error) {
|
|
@@ -56,10 +56,10 @@ else {
|
|
|
56
56
|
new URL(`/${item.name}.json`, 'https://registry.ai-elements-vue.com').toString(),
|
|
57
57
|
)
|
|
58
58
|
|
|
59
|
-
const
|
|
60
|
-
const result = spawnSync(
|
|
59
|
+
const fullCommand = `${commandPrefix} shadcn-vue@latest add ${componentUrls.join(' ')}`
|
|
60
|
+
const result = spawnSync(fullCommand, {
|
|
61
61
|
stdio: 'inherit',
|
|
62
|
-
shell:
|
|
62
|
+
shell: true,
|
|
63
63
|
})
|
|
64
64
|
|
|
65
65
|
if (result.error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-elements-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "AI Elements Vue is a component library and custom registry built on top of shadcn-vue to help you build AI-native applications faster.",
|
|
6
6
|
"license": "MIT",
|