@sveda-ai/vue 0.3.5 → 0.3.6
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.js
CHANGED
|
@@ -3000,13 +3000,13 @@ const Mi = {
|
|
|
3000
3000
|
disabled: t.disabled,
|
|
3001
3001
|
onClick: i[0] || (i[0] = $e((d) => o("confirm-tool", t.step.toolCallId, "approve"), ["stop"]))
|
|
3002
3002
|
}, D(e(s)("toolConfirm")), 9, Di),
|
|
3003
|
-
t.step.confirmationScope === "chat" ? (l(), w("button", {
|
|
3003
|
+
t.step.confirmationScope === "chat" || t.step.confirmationScope === "course" ? (l(), w("button", {
|
|
3004
3004
|
key: 0,
|
|
3005
3005
|
type: "button",
|
|
3006
3006
|
class: "border border-border bg-card px-3 py-1.5 text-xs font-medium text-foreground disabled:opacity-50",
|
|
3007
3007
|
disabled: t.disabled,
|
|
3008
3008
|
onClick: i[1] || (i[1] = $e((d) => o("confirm-tool", t.step.toolCallId, "approve_for_chat"), ["stop"]))
|
|
3009
|
-
}, D(e(s)("toolApproveForChat")), 9, Ii)) : L("", !0),
|
|
3009
|
+
}, D(e(s)(t.step.confirmationScope === "course" ? "toolApproveForCourse" : "toolApproveForChat")), 9, Ii)) : L("", !0),
|
|
3010
3010
|
S("button", {
|
|
3011
3011
|
type: "button",
|
|
3012
3012
|
class: "border border-border bg-card px-3 py-1.5 text-xs font-medium text-foreground disabled:opacity-50",
|
|
@@ -3014,7 +3014,7 @@ const Mi = {
|
|
|
3014
3014
|
onClick: i[2] || (i[2] = $e((d) => o("deny-tool", t.step.toolCallId), ["stop"]))
|
|
3015
3015
|
}, D(e(s)("toolDeny")), 9, Li)
|
|
3016
3016
|
]),
|
|
3017
|
-
t.step.confirmationScope === "chat" ? (l(), w("p", Pi, D(e(s)("toolChatApprovalScope")), 1)) : L("", !0)
|
|
3017
|
+
t.step.confirmationScope === "chat" || t.step.confirmationScope === "course" ? (l(), w("p", Pi, D(e(s)(t.step.confirmationScope === "course" ? "toolCourseApprovalScope" : "toolChatApprovalScope")), 1)) : L("", !0)
|
|
3018
3018
|
]));
|
|
3019
3019
|
}
|
|
3020
3020
|
}, Hi = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveda-ai/vue",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Vue 3 chat UI to embed a Sveda AI agent. https://sveda.dev/docs/chat-ui/vue",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"marked": "^17.0.2",
|
|
50
50
|
"reka-ui": "^2.8.0",
|
|
51
51
|
"tailwind-merge": "^2.6.0",
|
|
52
|
-
"@sveda-ai/chat": "0.3.
|
|
53
|
-
"@sveda-ai/
|
|
54
|
-
"@sveda-ai/
|
|
52
|
+
"@sveda-ai/chat": "0.3.5",
|
|
53
|
+
"@sveda-ai/core": "0.3.4",
|
|
54
|
+
"@sveda-ai/protocol": "0.3.4"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"vue": "^3.5.0"
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
{{ t('toolConfirm') }}
|
|
24
24
|
</button>
|
|
25
25
|
<button
|
|
26
|
-
v-if="step.confirmationScope === 'chat'"
|
|
26
|
+
v-if="step.confirmationScope === 'chat' || step.confirmationScope === 'course'"
|
|
27
27
|
type="button"
|
|
28
28
|
class="border border-border bg-card px-3 py-1.5 text-xs font-medium text-foreground disabled:opacity-50"
|
|
29
29
|
:disabled="disabled"
|
|
30
30
|
@click.stop="emit('confirm-tool', step.toolCallId, 'approve_for_chat')"
|
|
31
31
|
>
|
|
32
|
-
{{ t('toolApproveForChat') }}
|
|
32
|
+
{{ t(step.confirmationScope === 'course' ? 'toolApproveForCourse' : 'toolApproveForChat') }}
|
|
33
33
|
</button>
|
|
34
34
|
<button
|
|
35
35
|
type="button"
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
{{ t('toolDeny') }}
|
|
41
41
|
</button>
|
|
42
42
|
</div>
|
|
43
|
-
<p v-if="step.confirmationScope === 'chat'" class="mt-1.5 text-xs text-muted-foreground">
|
|
44
|
-
{{ t('toolChatApprovalScope') }}
|
|
43
|
+
<p v-if="step.confirmationScope === 'chat' || step.confirmationScope === 'course'" class="mt-1.5 text-xs text-muted-foreground">
|
|
44
|
+
{{ t(step.confirmationScope === 'course' ? 'toolCourseApprovalScope' : 'toolChatApprovalScope') }}
|
|
45
45
|
</p>
|
|
46
46
|
</div>
|
|
47
47
|
</template>
|