@yunlefun/vue 0.4.2 → 0.7.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 (81) hide show
  1. package/README.md +6 -0
  2. package/components/YlfAccordion.vue +12 -7
  3. package/components/YlfAgentCard.vue +108 -0
  4. package/components/YlfAgentStatus.vue +69 -0
  5. package/components/YlfAgentTask.vue +85 -0
  6. package/components/YlfButton.vue +145 -28
  7. package/components/YlfCard.vue +10 -4
  8. package/components/YlfCheckbox.vue +70 -7
  9. package/components/YlfCloud.vue +193 -0
  10. package/components/YlfDialog.vue +53 -21
  11. package/components/YlfDropdownMenu.vue +41 -5
  12. package/components/YlfInput.vue +67 -0
  13. package/components/YlfLogo.vue +7 -5
  14. package/components/YlfNavigation.vue +84 -0
  15. package/components/YlfNavigationLink.vue +59 -0
  16. package/components/YlfNavigationTrigger.vue +53 -0
  17. package/components/YlfPopover.vue +43 -7
  18. package/components/YlfRadioGroup.vue +41 -6
  19. package/components/YlfScrollFade.vue +66 -0
  20. package/components/YlfSegmentedControl.vue +80 -10
  21. package/components/YlfSelect.vue +72 -34
  22. package/components/YlfSlider.vue +16 -5
  23. package/components/YlfSwitch.vue +30 -4
  24. package/components/YlfTabs.vue +12 -4
  25. package/components/YlfTooltip.vue +29 -4
  26. package/components/_navigation.scss +38 -0
  27. package/components/accordion/demo.vue +1 -1
  28. package/components/agent-card/demo.vue +17 -0
  29. package/components/agent-card/index.md +25 -0
  30. package/components/agent-status/demo.vue +38 -0
  31. package/components/agent-status/index.md +20 -0
  32. package/components/agent-task/demo.vue +15 -0
  33. package/components/agent-task/index.md +25 -0
  34. package/components/agent.ts +2 -0
  35. package/components/button/demo.vue +21 -0
  36. package/components/button/index.md +20 -11
  37. package/components/cloud/demo.vue +92 -0
  38. package/components/cloud/index.md +66 -0
  39. package/components/cloud.ts +4 -0
  40. package/components/input/demo.vue +22 -0
  41. package/components/input/index.md +19 -0
  42. package/components/navigation/demo.vue +104 -0
  43. package/components/navigation/index.md +90 -0
  44. package/components/navigation-indicator.ts +114 -0
  45. package/components/scroll-fade/demo.vue +49 -0
  46. package/components/scroll-fade/index.md +40 -0
  47. package/components/scroll-fade.ts +52 -0
  48. package/dist/ag-ui.cjs +132 -0
  49. package/dist/ag-ui.d.cts +25 -0
  50. package/dist/ag-ui.d.mts +25 -0
  51. package/dist/ag-ui.d.ts +25 -0
  52. package/dist/ag-ui.mjs +130 -0
  53. package/dist/components/YlfAgentCard.vue.d.ts +24 -0
  54. package/dist/components/YlfAgentStatus.vue.d.ts +13 -0
  55. package/dist/components/YlfAgentTask.vue.d.ts +23 -0
  56. package/dist/components/YlfAvatar.vue.d.ts +1 -1
  57. package/dist/components/YlfButton.vue.d.ts +8 -5
  58. package/dist/components/YlfCloud.vue.d.ts +15 -0
  59. package/dist/components/YlfDialog.vue.d.ts +5 -5
  60. package/dist/components/YlfDropdownMenu.vue.d.ts +2 -2
  61. package/dist/components/YlfInput.vue.d.ts +18 -0
  62. package/dist/components/YlfNavigation.vue.d.ts +23 -0
  63. package/dist/components/YlfNavigationLink.vue.d.ts +21 -0
  64. package/dist/components/YlfNavigationTrigger.vue.d.ts +18 -0
  65. package/dist/components/YlfPopover.vue.d.ts +3 -3
  66. package/dist/components/YlfProgress.vue.d.ts +1 -1
  67. package/dist/components/YlfScrollFade.vue.d.ts +24 -0
  68. package/dist/components/YlfSeparator.vue.d.ts +2 -2
  69. package/dist/components/YlfSwitch.vue.d.ts +1 -1
  70. package/dist/components/YlfTabs.vue.d.ts +3 -3
  71. package/dist/components/YlfTooltip.vue.d.ts +3 -3
  72. package/dist/components/agent.d.ts +2 -0
  73. package/dist/components/cloud.d.ts +3 -0
  74. package/dist/components/navigation-indicator.d.ts +14 -0
  75. package/dist/components/scroll-fade.d.ts +3 -0
  76. package/dist/index.cjs +3 -0
  77. package/dist/index.d.cts +9 -2
  78. package/dist/index.d.mts +9 -2
  79. package/dist/index.d.ts +9 -2
  80. package/dist/index.mjs +3 -1
  81. package/package.json +20 -6
@@ -0,0 +1,52 @@
1
+ import type { ComputedRef, CSSProperties, Ref } from 'vue'
2
+ import { computed, shallowRef, watch } from 'vue'
3
+
4
+ function edgeOpacity(distance: number): number {
5
+ // Layout heights are rounded to whole pixels, but scrollTop can be fractional.
6
+ return distance <= 1 ? 0 : Math.min(1, distance / 24)
7
+ }
8
+
9
+ /** Reveal the edges with more content, including before the first scroll. */
10
+ export function useScrollFade(viewport: Readonly<Ref<HTMLElement | null | undefined>>): ComputedRef<CSSProperties> {
11
+ const top = shallowRef(0)
12
+ const bottom = shallowRef(0)
13
+ watch(viewport, (element, _, onCleanup) => {
14
+ top.value = 0
15
+ bottom.value = 0
16
+ if (!element)
17
+ return
18
+
19
+ let frame = 0
20
+ const update = (): void => {
21
+ frame = 0
22
+ const range = Math.max(0, element.scrollHeight - element.clientHeight)
23
+ const offset = Math.min(range, Math.max(0, element.scrollTop))
24
+ top.value = edgeOpacity(offset)
25
+ bottom.value = edgeOpacity(range - offset)
26
+ }
27
+ const schedule = (): void => {
28
+ if (!frame)
29
+ frame = requestAnimationFrame(update)
30
+ }
31
+ const resize = new ResizeObserver(schedule)
32
+ const observeContent = (): void => {
33
+ resize.disconnect()
34
+ resize.observe(element)
35
+ for (const child of Array.from(element.children))
36
+ resize.observe(child)
37
+ schedule()
38
+ }
39
+ const content = new MutationObserver(observeContent)
40
+ content.observe(element, { childList: true, characterData: true, subtree: true })
41
+ observeContent()
42
+ element.addEventListener('scroll', schedule, { passive: true })
43
+ onCleanup(() => {
44
+ resize.disconnect()
45
+ content.disconnect()
46
+ cancelAnimationFrame(frame)
47
+ element.removeEventListener('scroll', schedule)
48
+ })
49
+ }, { immediate: true, flush: 'post' })
50
+
51
+ return computed(() => ({ '--scroll-fade-top': top.value, '--scroll-fade-bottom': bottom.value }))
52
+ }
package/dist/ag-ui.cjs ADDED
@@ -0,0 +1,132 @@
1
+ 'use strict';
2
+
3
+ const client = require('@ag-ui/client');
4
+ const vue = require('vue');
5
+
6
+ function useAgUiAgent(agent) {
7
+ const messages = vue.shallowRef(client.structuredClone_(agent.messages));
8
+ const state = vue.shallowRef(client.structuredClone_(agent.state));
9
+ const status = vue.shallowRef("idle");
10
+ const isRunning = vue.shallowRef(false);
11
+ const error = vue.shallowRef();
12
+ const interrupts = vue.shallowRef(client.structuredClone_(agent.pendingInterrupts));
13
+ const pendingToolCallIds = vue.shallowRef([]);
14
+ let disposed = false;
15
+ let cancelRequested = false;
16
+ function sync() {
17
+ if (disposed)
18
+ return;
19
+ messages.value = client.structuredClone_(agent.messages);
20
+ state.value = client.structuredClone_(agent.state);
21
+ interrupts.value = client.structuredClone_(agent.pendingInterrupts);
22
+ }
23
+ const subscription = agent.subscribe({
24
+ onMessagesChanged: sync,
25
+ onStateChanged: sync,
26
+ onRunFinishedEvent(result) {
27
+ if (disposed || cancelRequested)
28
+ return;
29
+ status.value = result.outcome === "interrupt" ? "interrupted" : result.outcome === "cancelled" ? "cancelled" : "success";
30
+ pendingToolCallIds.value = result.outcome === "success" ? [...result.pendingToolCallIds] : [];
31
+ },
32
+ onRunErrorEvent({ event }) {
33
+ if (disposed || cancelRequested)
34
+ return;
35
+ error.value = new Error(event.message);
36
+ status.value = "error";
37
+ }
38
+ });
39
+ function assertAvailable() {
40
+ if (disposed)
41
+ throw new Error("This AG-UI binding has been disposed.");
42
+ if (isRunning.value || agent.isRunning)
43
+ throw new Error("Wait for the current AG-UI run to finish before starting another.");
44
+ }
45
+ function assertReadyToRun() {
46
+ assertAvailable();
47
+ if (pendingToolCallIds.value.length)
48
+ throw new Error("Provide the pending tool results before starting another AG-UI run.");
49
+ }
50
+ async function run(parameters) {
51
+ assertReadyToRun();
52
+ cancelRequested = false;
53
+ error.value = void 0;
54
+ status.value = "running";
55
+ isRunning.value = true;
56
+ try {
57
+ const result = await agent.runAgent(parameters);
58
+ if (!disposed && !cancelRequested && status.value === "running")
59
+ status.value = "success";
60
+ return result;
61
+ } catch (cause) {
62
+ if (!disposed && !cancelRequested) {
63
+ error.value = cause instanceof Error ? cause : new Error(String(cause));
64
+ status.value = "error";
65
+ }
66
+ } finally {
67
+ if (!disposed) {
68
+ if (cancelRequested)
69
+ status.value = "cancelled";
70
+ isRunning.value = false;
71
+ sync();
72
+ }
73
+ }
74
+ }
75
+ function send(content, parameters) {
76
+ assertReadyToRun();
77
+ if (!content.trim())
78
+ return Promise.resolve(void 0);
79
+ agent.addMessage({ id: client.randomUUID(), role: "user", content });
80
+ sync();
81
+ return run(parameters);
82
+ }
83
+ function cancel() {
84
+ if (disposed || !isRunning.value)
85
+ return;
86
+ cancelRequested = true;
87
+ agent.abortRun();
88
+ }
89
+ function setState(value) {
90
+ assertAvailable();
91
+ agent.setState(client.structuredClone_(value));
92
+ sync();
93
+ }
94
+ function addToolResult(toolCallId, content) {
95
+ assertAvailable();
96
+ if (!pendingToolCallIds.value.includes(toolCallId))
97
+ throw new Error("The tool call is not awaiting a result.");
98
+ agent.addMessage({ id: client.randomUUID(), role: "tool", toolCallId, content });
99
+ pendingToolCallIds.value = pendingToolCallIds.value.filter((id) => id !== toolCallId);
100
+ sync();
101
+ }
102
+ function dispose() {
103
+ if (disposed)
104
+ return;
105
+ cancel();
106
+ disposed = true;
107
+ subscription.unsubscribe();
108
+ isRunning.value = false;
109
+ if (cancelRequested)
110
+ status.value = "cancelled";
111
+ }
112
+ if (vue.getCurrentScope())
113
+ vue.onScopeDispose(dispose);
114
+ return {
115
+ messages: vue.readonly(messages),
116
+ state: vue.readonly(state),
117
+ status: vue.readonly(status),
118
+ isRunning: vue.readonly(isRunning),
119
+ error: vue.readonly(error),
120
+ interrupts: vue.readonly(interrupts),
121
+ pendingToolCallIds: vue.readonly(pendingToolCallIds),
122
+ isAwaitingInput: vue.computed(() => !isRunning.value && (interrupts.value.length > 0 || pendingToolCallIds.value.length > 0)),
123
+ run,
124
+ send,
125
+ cancel,
126
+ setState,
127
+ addToolResult,
128
+ dispose
129
+ };
130
+ }
131
+
132
+ exports.useAgUiAgent = useAgUiAgent;
@@ -0,0 +1,25 @@
1
+ import { Message, Interrupt, RunAgentParameters, RunAgentResult, AbstractAgent } from '@ag-ui/client';
2
+ import { Ref, DeepReadonly, ComputedRef } from 'vue';
3
+
4
+ type AgUiStatus = 'idle' | 'running' | 'success' | 'cancelled' | 'interrupted' | 'error';
5
+ interface AgUiBinding<TState> {
6
+ messages: Readonly<Ref<readonly DeepReadonly<Message>[]>>;
7
+ state: Readonly<Ref<DeepReadonly<TState>>>;
8
+ status: Readonly<Ref<AgUiStatus>>;
9
+ isRunning: Readonly<Ref<boolean>>;
10
+ error: Readonly<Ref<Error | undefined>>;
11
+ interrupts: Readonly<Ref<readonly DeepReadonly<Interrupt>[]>>;
12
+ pendingToolCallIds: Readonly<Ref<readonly string[]>>;
13
+ isAwaitingInput: ComputedRef<boolean>;
14
+ run: (parameters?: RunAgentParameters) => Promise<RunAgentResult | undefined>;
15
+ send: (content: string, parameters?: RunAgentParameters) => Promise<RunAgentResult | undefined>;
16
+ cancel: () => void;
17
+ setState: (value: TState) => void;
18
+ addToolResult: (toolCallId: string, content: string) => void;
19
+ dispose: () => void;
20
+ }
21
+ /** One agent per owner. SDK events remain the source of truth; no transport runs on setup/SSR. */
22
+ declare function useAgUiAgent<TState = Record<string, unknown>>(agent: AbstractAgent): AgUiBinding<TState>;
23
+
24
+ export { useAgUiAgent };
25
+ export type { AgUiBinding, AgUiStatus };
@@ -0,0 +1,25 @@
1
+ import { Message, Interrupt, RunAgentParameters, RunAgentResult, AbstractAgent } from '@ag-ui/client';
2
+ import { Ref, DeepReadonly, ComputedRef } from 'vue';
3
+
4
+ type AgUiStatus = 'idle' | 'running' | 'success' | 'cancelled' | 'interrupted' | 'error';
5
+ interface AgUiBinding<TState> {
6
+ messages: Readonly<Ref<readonly DeepReadonly<Message>[]>>;
7
+ state: Readonly<Ref<DeepReadonly<TState>>>;
8
+ status: Readonly<Ref<AgUiStatus>>;
9
+ isRunning: Readonly<Ref<boolean>>;
10
+ error: Readonly<Ref<Error | undefined>>;
11
+ interrupts: Readonly<Ref<readonly DeepReadonly<Interrupt>[]>>;
12
+ pendingToolCallIds: Readonly<Ref<readonly string[]>>;
13
+ isAwaitingInput: ComputedRef<boolean>;
14
+ run: (parameters?: RunAgentParameters) => Promise<RunAgentResult | undefined>;
15
+ send: (content: string, parameters?: RunAgentParameters) => Promise<RunAgentResult | undefined>;
16
+ cancel: () => void;
17
+ setState: (value: TState) => void;
18
+ addToolResult: (toolCallId: string, content: string) => void;
19
+ dispose: () => void;
20
+ }
21
+ /** One agent per owner. SDK events remain the source of truth; no transport runs on setup/SSR. */
22
+ declare function useAgUiAgent<TState = Record<string, unknown>>(agent: AbstractAgent): AgUiBinding<TState>;
23
+
24
+ export { useAgUiAgent };
25
+ export type { AgUiBinding, AgUiStatus };
@@ -0,0 +1,25 @@
1
+ import { Message, Interrupt, RunAgentParameters, RunAgentResult, AbstractAgent } from '@ag-ui/client';
2
+ import { Ref, DeepReadonly, ComputedRef } from 'vue';
3
+
4
+ type AgUiStatus = 'idle' | 'running' | 'success' | 'cancelled' | 'interrupted' | 'error';
5
+ interface AgUiBinding<TState> {
6
+ messages: Readonly<Ref<readonly DeepReadonly<Message>[]>>;
7
+ state: Readonly<Ref<DeepReadonly<TState>>>;
8
+ status: Readonly<Ref<AgUiStatus>>;
9
+ isRunning: Readonly<Ref<boolean>>;
10
+ error: Readonly<Ref<Error | undefined>>;
11
+ interrupts: Readonly<Ref<readonly DeepReadonly<Interrupt>[]>>;
12
+ pendingToolCallIds: Readonly<Ref<readonly string[]>>;
13
+ isAwaitingInput: ComputedRef<boolean>;
14
+ run: (parameters?: RunAgentParameters) => Promise<RunAgentResult | undefined>;
15
+ send: (content: string, parameters?: RunAgentParameters) => Promise<RunAgentResult | undefined>;
16
+ cancel: () => void;
17
+ setState: (value: TState) => void;
18
+ addToolResult: (toolCallId: string, content: string) => void;
19
+ dispose: () => void;
20
+ }
21
+ /** One agent per owner. SDK events remain the source of truth; no transport runs on setup/SSR. */
22
+ declare function useAgUiAgent<TState = Record<string, unknown>>(agent: AbstractAgent): AgUiBinding<TState>;
23
+
24
+ export { useAgUiAgent };
25
+ export type { AgUiBinding, AgUiStatus };
package/dist/ag-ui.mjs ADDED
@@ -0,0 +1,130 @@
1
+ import { structuredClone_, randomUUID } from '@ag-ui/client';
2
+ import { shallowRef, getCurrentScope, onScopeDispose, computed, readonly } from 'vue';
3
+
4
+ function useAgUiAgent(agent) {
5
+ const messages = shallowRef(structuredClone_(agent.messages));
6
+ const state = shallowRef(structuredClone_(agent.state));
7
+ const status = shallowRef("idle");
8
+ const isRunning = shallowRef(false);
9
+ const error = shallowRef();
10
+ const interrupts = shallowRef(structuredClone_(agent.pendingInterrupts));
11
+ const pendingToolCallIds = shallowRef([]);
12
+ let disposed = false;
13
+ let cancelRequested = false;
14
+ function sync() {
15
+ if (disposed)
16
+ return;
17
+ messages.value = structuredClone_(agent.messages);
18
+ state.value = structuredClone_(agent.state);
19
+ interrupts.value = structuredClone_(agent.pendingInterrupts);
20
+ }
21
+ const subscription = agent.subscribe({
22
+ onMessagesChanged: sync,
23
+ onStateChanged: sync,
24
+ onRunFinishedEvent(result) {
25
+ if (disposed || cancelRequested)
26
+ return;
27
+ status.value = result.outcome === "interrupt" ? "interrupted" : result.outcome === "cancelled" ? "cancelled" : "success";
28
+ pendingToolCallIds.value = result.outcome === "success" ? [...result.pendingToolCallIds] : [];
29
+ },
30
+ onRunErrorEvent({ event }) {
31
+ if (disposed || cancelRequested)
32
+ return;
33
+ error.value = new Error(event.message);
34
+ status.value = "error";
35
+ }
36
+ });
37
+ function assertAvailable() {
38
+ if (disposed)
39
+ throw new Error("This AG-UI binding has been disposed.");
40
+ if (isRunning.value || agent.isRunning)
41
+ throw new Error("Wait for the current AG-UI run to finish before starting another.");
42
+ }
43
+ function assertReadyToRun() {
44
+ assertAvailable();
45
+ if (pendingToolCallIds.value.length)
46
+ throw new Error("Provide the pending tool results before starting another AG-UI run.");
47
+ }
48
+ async function run(parameters) {
49
+ assertReadyToRun();
50
+ cancelRequested = false;
51
+ error.value = void 0;
52
+ status.value = "running";
53
+ isRunning.value = true;
54
+ try {
55
+ const result = await agent.runAgent(parameters);
56
+ if (!disposed && !cancelRequested && status.value === "running")
57
+ status.value = "success";
58
+ return result;
59
+ } catch (cause) {
60
+ if (!disposed && !cancelRequested) {
61
+ error.value = cause instanceof Error ? cause : new Error(String(cause));
62
+ status.value = "error";
63
+ }
64
+ } finally {
65
+ if (!disposed) {
66
+ if (cancelRequested)
67
+ status.value = "cancelled";
68
+ isRunning.value = false;
69
+ sync();
70
+ }
71
+ }
72
+ }
73
+ function send(content, parameters) {
74
+ assertReadyToRun();
75
+ if (!content.trim())
76
+ return Promise.resolve(void 0);
77
+ agent.addMessage({ id: randomUUID(), role: "user", content });
78
+ sync();
79
+ return run(parameters);
80
+ }
81
+ function cancel() {
82
+ if (disposed || !isRunning.value)
83
+ return;
84
+ cancelRequested = true;
85
+ agent.abortRun();
86
+ }
87
+ function setState(value) {
88
+ assertAvailable();
89
+ agent.setState(structuredClone_(value));
90
+ sync();
91
+ }
92
+ function addToolResult(toolCallId, content) {
93
+ assertAvailable();
94
+ if (!pendingToolCallIds.value.includes(toolCallId))
95
+ throw new Error("The tool call is not awaiting a result.");
96
+ agent.addMessage({ id: randomUUID(), role: "tool", toolCallId, content });
97
+ pendingToolCallIds.value = pendingToolCallIds.value.filter((id) => id !== toolCallId);
98
+ sync();
99
+ }
100
+ function dispose() {
101
+ if (disposed)
102
+ return;
103
+ cancel();
104
+ disposed = true;
105
+ subscription.unsubscribe();
106
+ isRunning.value = false;
107
+ if (cancelRequested)
108
+ status.value = "cancelled";
109
+ }
110
+ if (getCurrentScope())
111
+ onScopeDispose(dispose);
112
+ return {
113
+ messages: readonly(messages),
114
+ state: readonly(state),
115
+ status: readonly(status),
116
+ isRunning: readonly(isRunning),
117
+ error: readonly(error),
118
+ interrupts: readonly(interrupts),
119
+ pendingToolCallIds: readonly(pendingToolCallIds),
120
+ isAwaitingInput: computed(() => !isRunning.value && (interrupts.value.length > 0 || pendingToolCallIds.value.length > 0)),
121
+ run,
122
+ send,
123
+ cancel,
124
+ setState,
125
+ addToolResult,
126
+ dispose
127
+ };
128
+ }
129
+
130
+ export { useAgUiAgent };
@@ -0,0 +1,24 @@
1
+ import type { YlfAgentState } from './agent';
2
+ type __VLS_Props = {
3
+ name: string;
4
+ description?: string;
5
+ state: YlfAgentState;
6
+ statusLabel: string;
7
+ };
8
+ declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {};
9
+ type __VLS_Slots = {} & {
10
+ avatar?: (props: typeof __VLS_1) => any;
11
+ } & {
12
+ default?: (props: typeof __VLS_8) => any;
13
+ } & {
14
+ actions?: (props: typeof __VLS_10) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,13 @@
1
+ import type { YlfAgentState } from './agent';
2
+ type __VLS_Props = {
3
+ state: YlfAgentState;
4
+ /** Localized, truthful status text supplied by the application. */
5
+ label: string;
6
+ /** Opt in for a single live summary, rather than every polled indicator. */
7
+ live?: boolean;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ live: boolean;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import type { YlfAgentState } from './agent';
2
+ type __VLS_Props = {
3
+ title: string;
4
+ state: YlfAgentState;
5
+ statusLabel: string;
6
+ taskId?: string;
7
+ description?: string;
8
+ };
9
+ declare var __VLS_6: {}, __VLS_8: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_6) => any;
12
+ } & {
13
+ actions?: (props: typeof __VLS_8) => any;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -6,8 +6,8 @@ type __VLS_Props = {
6
6
  size?: 'sm' | 'md' | 'lg';
7
7
  };
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
- fallback: string;
10
9
  alt: string;
10
+ fallback: string;
11
11
  size: "sm" | "md" | "lg";
12
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,6 @@
1
1
  import type { YlfAccentTone, YlfColorAppearance } from './theme';
2
- type ButtonVariant = 'primary' | 'accent' | 'aurora' | 'secondary' | 'soft' | 'ghost' | 'success' | 'warning' | 'danger';
3
- type ButtonSize = 'sm' | 'md' | 'lg';
2
+ type ButtonVariant = 'primary' | 'hero' | 'accent' | 'aurora' | 'secondary' | 'soft' | 'ghost' | 'success' | 'warning' | 'danger';
3
+ type ButtonSize = 'sm' | 'md' | 'lg' | 'xl';
4
4
  type __VLS_Props = {
5
5
  variant?: ButtonVariant;
6
6
  /** 仅 accent 变体使用,默认晴空蓝 */
@@ -8,6 +8,8 @@ type __VLS_Props = {
8
8
  /** accent 与状态变体的强调程度 */
9
9
  appearance?: YlfColorAppearance;
10
10
  size?: ButtonSize;
11
+ /** Square control; provide an aria-label for the icon. */
12
+ iconOnly?: boolean;
11
13
  /** 胶囊圆角,默认开启(云是软的) */
12
14
  round?: boolean;
13
15
  /** 占满整行宽度 */
@@ -17,11 +19,11 @@ type __VLS_Props = {
17
19
  /** 渲染标签,如 'a' */
18
20
  tag?: string;
19
21
  };
20
- declare var __VLS_10: {}, __VLS_12: {};
22
+ declare var __VLS_9: {}, __VLS_11: {};
21
23
  type __VLS_Slots = {} & {
22
- icon?: (props: typeof __VLS_10) => any;
24
+ icon?: (props: typeof __VLS_9) => any;
23
25
  } & {
24
- default?: (props: typeof __VLS_12) => any;
26
+ default?: (props: typeof __VLS_11) => any;
25
27
  };
26
28
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
29
  click: (e: MouseEvent) => any;
@@ -34,6 +36,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
34
36
  variant: ButtonVariant;
35
37
  tone: YlfAccentTone;
36
38
  appearance: YlfColorAppearance;
39
+ iconOnly: boolean;
37
40
  block: boolean;
38
41
  loading: boolean;
39
42
  tag: string;
@@ -0,0 +1,15 @@
1
+ import type { YlfCloudShape } from './cloud';
2
+ type __VLS_Props = {
3
+ shape?: YlfCloudShape;
4
+ /** 用模糊滤镜塑造亮面体积;只给少数视觉焦点开启,其余用渐变近似以降低绘制开销。 */
5
+ volumetric?: boolean;
6
+ /** 渲染一张平时隐藏的小脸,由 --ylf-cloud-face-opacity 唤醒。 */
7
+ face?: boolean;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ shape: "billow" | "heap" | "bank" | "puff" | "wisp";
11
+ volumetric: boolean;
12
+ face: boolean;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -12,15 +12,15 @@ type __VLS_ModelProps = {
12
12
  'open'?: boolean;
13
13
  };
14
14
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
15
- declare var __VLS_14: {}, __VLS_39: {}, __VLS_59: {}, __VLS_61: {};
15
+ declare var __VLS_13: {}, __VLS_38: {}, __VLS_58: {}, __VLS_60: {};
16
16
  type __VLS_Slots = {} & {
17
- trigger?: (props: typeof __VLS_14) => any;
17
+ trigger?: (props: typeof __VLS_13) => any;
18
18
  } & {
19
- title?: (props: typeof __VLS_39) => any;
19
+ title?: (props: typeof __VLS_38) => any;
20
20
  } & {
21
- description?: (props: typeof __VLS_59) => any;
21
+ description?: (props: typeof __VLS_58) => any;
22
22
  } & {
23
- default?: (props: typeof __VLS_61) => any;
23
+ default?: (props: typeof __VLS_60) => any;
24
24
  };
25
25
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
26
  "update:open": (value: boolean) => any;
@@ -13,9 +13,9 @@ type __VLS_ModelProps = {
13
13
  'open'?: boolean;
14
14
  };
15
15
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
16
- declare var __VLS_14: {};
16
+ declare var __VLS_13: {};
17
17
  type __VLS_Slots = {} & {
18
- trigger?: (props: typeof __VLS_14) => any;
18
+ trigger?: (props: typeof __VLS_13) => any;
19
19
  };
20
20
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
21
  select: (value: string) => any;
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ size?: 'sm' | 'md';
3
+ invalid?: boolean;
4
+ };
5
+ type __VLS_ModelProps = {
6
+ modelValue?: string;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:modelValue": (value: string) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
13
+ }>, {
14
+ size: "sm" | "md";
15
+ invalid: boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ /** Accessible name; distinguish multiple navigation landmarks on one page. */
3
+ label: string;
4
+ orientation?: 'horizontal' | 'vertical';
5
+ /** Move the shared underline between current links in horizontal navigation. */
6
+ animated?: boolean;
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ orientation: "vertical" | "horizontal";
14
+ animated: boolean;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,21 @@
1
+ type __VLS_Props = {
2
+ active?: boolean;
3
+ /** Merge attributes onto one child anchor, e.g. NuxtLink or RouterLink. */
4
+ asChild?: boolean;
5
+ };
6
+ declare var __VLS_7: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_7) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ asChild: boolean;
12
+ active: boolean;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ disabled?: boolean;
3
+ };
4
+ declare var __VLS_1: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ disabled: boolean;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -7,11 +7,11 @@ type __VLS_ModelProps = {
7
7
  'open'?: boolean;
8
8
  };
9
9
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
- declare var __VLS_14: {}, __VLS_28: {};
10
+ declare var __VLS_13: {}, __VLS_27: {};
11
11
  type __VLS_Slots = {} & {
12
- trigger?: (props: typeof __VLS_14) => any;
12
+ trigger?: (props: typeof __VLS_13) => any;
13
13
  } & {
14
- default?: (props: typeof __VLS_28) => any;
14
+ default?: (props: typeof __VLS_27) => any;
15
15
  };
16
16
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
17
  "update:open": (value: boolean) => any;