@cascivo/ai 0.2.3 → 0.2.4
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/dist/index.mjs +19 -19
- package/dist/style.css +33 -33
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -4,9 +4,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
import { builtin, t } from "@cascivo/i18n";
|
|
5
5
|
//#region src/streaming-text.module.css
|
|
6
6
|
var streaming_text_module_default = {
|
|
7
|
-
"cascade-cursor-blink": "
|
|
8
|
-
"cursor": "
|
|
9
|
-
"root": "
|
|
7
|
+
"cascade-cursor-blink": "RTCb2G_cascade-cursor-blink",
|
|
8
|
+
"cursor": "RTCb2G_cursor",
|
|
9
|
+
"root": "RTCb2G_root"
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/streaming-text.tsx
|
|
@@ -46,8 +46,8 @@ function StreamingText({ text, speed = 2, onComplete, className }) {
|
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region src/ai-label.module.css
|
|
48
48
|
var ai_label_module_default = {
|
|
49
|
-
"cascade-ai-pulse": "
|
|
50
|
-
"root": "
|
|
49
|
+
"cascade-ai-pulse": "_zzYFW_cascade-ai-pulse",
|
|
50
|
+
"root": "_zzYFW_root"
|
|
51
51
|
};
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/ai-label.tsx
|
|
@@ -66,12 +66,12 @@ function AiLabel({ variant = "generating", className, ...props }) {
|
|
|
66
66
|
//#endregion
|
|
67
67
|
//#region src/terminal.module.css
|
|
68
68
|
var terminal_module_default = {
|
|
69
|
-
"cascade-cursor-blink": "
|
|
70
|
-
"cursor": "
|
|
71
|
-
"line": "
|
|
72
|
-
"prefix": "
|
|
73
|
-
"root": "
|
|
74
|
-
"text": "
|
|
69
|
+
"cascade-cursor-blink": "sxMVlG_cascade-cursor-blink",
|
|
70
|
+
"cursor": "sxMVlG_cursor",
|
|
71
|
+
"line": "sxMVlG_line",
|
|
72
|
+
"prefix": "sxMVlG_prefix",
|
|
73
|
+
"root": "sxMVlG_root",
|
|
74
|
+
"text": "sxMVlG_text"
|
|
75
75
|
};
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region src/terminal.tsx
|
|
@@ -138,14 +138,14 @@ function Terminal({ lines, speed = 3, loop = false, onComplete, className }) {
|
|
|
138
138
|
//#endregion
|
|
139
139
|
//#region src/ai-chat.module.css
|
|
140
140
|
var ai_chat_module_default = {
|
|
141
|
-
"content": "
|
|
142
|
-
"inputArea": "
|
|
143
|
-
"message": "
|
|
144
|
-
"messages": "
|
|
145
|
-
"roleLabel": "
|
|
146
|
-
"root": "
|
|
147
|
-
"sendButton": "
|
|
148
|
-
"textarea": "
|
|
141
|
+
"content": "GEItsa_content",
|
|
142
|
+
"inputArea": "GEItsa_inputArea",
|
|
143
|
+
"message": "GEItsa_message",
|
|
144
|
+
"messages": "GEItsa_messages",
|
|
145
|
+
"roleLabel": "GEItsa_roleLabel",
|
|
146
|
+
"root": "GEItsa_root",
|
|
147
|
+
"sendButton": "GEItsa_sendButton",
|
|
148
|
+
"textarea": "GEItsa_textarea"
|
|
149
149
|
};
|
|
150
150
|
//#endregion
|
|
151
151
|
//#region src/ai-chat.tsx
|
package/dist/style.css
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
@layer cascivo.component {
|
|
2
|
-
.
|
|
2
|
+
.RTCb2G_root {
|
|
3
3
|
display: inline;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
6
|
+
.RTCb2G_cursor {
|
|
7
7
|
vertical-align: text-bottom;
|
|
8
8
|
background: currentColor;
|
|
9
9
|
width: 2px;
|
|
10
10
|
height: 1em;
|
|
11
11
|
margin-inline-start: 1px;
|
|
12
|
-
animation: 1s step-end infinite
|
|
12
|
+
animation: 1s step-end infinite RTCb2G_cascade-cursor-blink;
|
|
13
13
|
display: inline-block;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
@keyframes
|
|
17
|
+
@keyframes RTCb2G_cascade-cursor-blink {
|
|
18
18
|
0%, 100% {
|
|
19
19
|
opacity: 1;
|
|
20
20
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
@layer cascivo.component {
|
|
27
|
-
.
|
|
27
|
+
._zzYFW_root {
|
|
28
28
|
align-items: center;
|
|
29
29
|
gap: var(--cascivo-space-1);
|
|
30
30
|
padding: var(--cascivo-space-1) var(--cascivo-space-2);
|
|
@@ -35,32 +35,32 @@
|
|
|
35
35
|
display: inline-flex;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.
|
|
38
|
+
._zzYFW_root[data-variant="generating"] {
|
|
39
39
|
background: var(--cascivo-color-surface-2);
|
|
40
40
|
color: var(--cascivo-color-foreground-muted);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.
|
|
43
|
+
._zzYFW_root[data-variant="generating"]:before {
|
|
44
44
|
content: "";
|
|
45
45
|
border-radius: var(--cascivo-radius-full);
|
|
46
46
|
background: currentColor;
|
|
47
47
|
block-size: .375rem;
|
|
48
48
|
inline-size: .375rem;
|
|
49
|
-
animation: 1.5s ease-in-out infinite
|
|
49
|
+
animation: 1.5s ease-in-out infinite _zzYFW_cascade-ai-pulse;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.
|
|
52
|
+
._zzYFW_root[data-variant="done"] {
|
|
53
53
|
background: var(--cascivo-color-success-subtle);
|
|
54
54
|
color: var(--cascivo-color-success-foreground);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.
|
|
57
|
+
._zzYFW_root[data-variant="error"] {
|
|
58
58
|
background: var(--cascivo-color-destructive-subtle);
|
|
59
59
|
color: var(--cascivo-color-destructive-foreground);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
@keyframes
|
|
63
|
+
@keyframes _zzYFW_cascade-ai-pulse {
|
|
64
64
|
0%, 100% {
|
|
65
65
|
opacity: 1;
|
|
66
66
|
}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
@layer cascivo.component {
|
|
73
|
-
.
|
|
73
|
+
.sxMVlG_root {
|
|
74
74
|
color: oklch(90% .02 145);
|
|
75
75
|
font-family: ui-monospace, Cascadia Code, Source Code Pro, monospace;
|
|
76
76
|
font-size: var(--cascivo-font-size-sm, .875rem);
|
|
@@ -81,42 +81,42 @@
|
|
|
81
81
|
overflow-x: auto;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.
|
|
84
|
+
.sxMVlG_line {
|
|
85
85
|
gap: var(--cascivo-space-2);
|
|
86
86
|
display: flex;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
.
|
|
89
|
+
.sxMVlG_prefix {
|
|
90
90
|
color: oklch(70% .15 145);
|
|
91
91
|
user-select: none;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.
|
|
94
|
+
.sxMVlG_text {
|
|
95
95
|
flex: 1;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
.
|
|
98
|
+
.sxMVlG_cursor {
|
|
99
99
|
background: oklch(90% .02 145);
|
|
100
100
|
width: 8px;
|
|
101
101
|
height: 1em;
|
|
102
|
-
animation: 1s step-end infinite
|
|
102
|
+
animation: 1s step-end infinite sxMVlG_cascade-cursor-blink;
|
|
103
103
|
display: inline-block;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.
|
|
106
|
+
.sxMVlG_line[data-type="command"] .sxMVlG_text {
|
|
107
107
|
color: oklch(90% .1 250);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.
|
|
110
|
+
.sxMVlG_line[data-type="error"] .sxMVlG_text {
|
|
111
111
|
color: oklch(75% .15 22);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
.
|
|
114
|
+
.sxMVlG_line[data-type="comment"] .sxMVlG_text {
|
|
115
115
|
color: oklch(60% .02 145);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
@keyframes
|
|
119
|
+
@keyframes sxMVlG_cascade-cursor-blink {
|
|
120
120
|
0%, 100% {
|
|
121
121
|
opacity: 1;
|
|
122
122
|
}
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
@layer cascivo.component {
|
|
129
|
-
.
|
|
129
|
+
.GEItsa_root {
|
|
130
130
|
background: var(--cascivo-color-background);
|
|
131
131
|
border: 1px solid var(--cascivo-border-default);
|
|
132
132
|
border-radius: var(--cascivo-radius-surface);
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
overflow: hidden;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
.
|
|
140
|
+
.GEItsa_messages {
|
|
141
141
|
padding: var(--cascivo-space-4);
|
|
142
142
|
gap: var(--cascivo-space-3);
|
|
143
143
|
flex-direction: column;
|
|
@@ -146,41 +146,41 @@
|
|
|
146
146
|
overflow-y: auto;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
.
|
|
149
|
+
.GEItsa_message {
|
|
150
150
|
gap: var(--cascivo-space-1);
|
|
151
151
|
flex-direction: column;
|
|
152
152
|
max-width: 80%;
|
|
153
153
|
display: flex;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
.
|
|
156
|
+
.GEItsa_message[data-role="user"] {
|
|
157
157
|
align-self: flex-end;
|
|
158
158
|
align-items: flex-end;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
.
|
|
161
|
+
.GEItsa_message[data-role="assistant"] {
|
|
162
162
|
align-self: flex-start;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
.
|
|
165
|
+
.GEItsa_roleLabel {
|
|
166
166
|
font-size: var(--cascivo-font-size-xs, .75rem);
|
|
167
167
|
color: var(--cascivo-color-foreground-muted);
|
|
168
168
|
font-weight: 500;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
.
|
|
171
|
+
.GEItsa_content {
|
|
172
172
|
padding: var(--cascivo-space-2) var(--cascivo-space-3);
|
|
173
173
|
border-radius: var(--cascivo-radius-control);
|
|
174
174
|
background: var(--cascivo-color-surface);
|
|
175
175
|
line-height: 1.5;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
.
|
|
178
|
+
.GEItsa_message[data-role="user"] .GEItsa_content {
|
|
179
179
|
background: var(--cascivo-color-accent);
|
|
180
180
|
color: var(--cascivo-color-accent-foreground);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
.
|
|
183
|
+
.GEItsa_inputArea {
|
|
184
184
|
gap: var(--cascivo-space-2);
|
|
185
185
|
padding: var(--cascivo-space-3);
|
|
186
186
|
border-block-start: 1px solid var(--cascivo-border-subtle);
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
display: flex;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
.
|
|
191
|
+
.GEItsa_textarea {
|
|
192
192
|
resize: none;
|
|
193
193
|
border: 1px solid var(--cascivo-border-default);
|
|
194
194
|
border-radius: var(--cascivo-radius-control);
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
flex: 1;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
.
|
|
202
|
+
.GEItsa_sendButton {
|
|
203
203
|
padding: var(--cascivo-space-2) var(--cascivo-space-4);
|
|
204
204
|
background: var(--cascivo-color-accent);
|
|
205
205
|
color: var(--cascivo-color-accent-foreground);
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
font-weight: 500;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
.
|
|
213
|
+
.GEItsa_sendButton:disabled {
|
|
214
214
|
opacity: .5;
|
|
215
215
|
cursor: not-allowed;
|
|
216
216
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cascivo/ai",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "AI-native components for cascivo — StreamingText, AiLabel, Terminal, AiChat",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"provenance": true
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@cascivo/core": "^0.
|
|
44
|
-
"@cascivo/
|
|
45
|
-
"@cascivo/
|
|
43
|
+
"@cascivo/core": "^0.3.0",
|
|
44
|
+
"@cascivo/i18n": "^0.2.4",
|
|
45
|
+
"@cascivo/tokens": "^0.4.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@testing-library/jest-dom": "^6.9.1",
|