@gui-chat-plugin/exa 0.1.1 → 0.1.3
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/core.cjs +1 -1
- package/dist/core.js +2 -102
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -9
- package/dist/samples-A-Y1u0I0.cjs +1 -0
- package/dist/samples-CO7OhVTt.js +96 -0
- package/dist/style.css +3 -1
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +59 -96
- package/package.json +15 -15
package/dist/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./samples-A-Y1u0I0.cjs`);exports.TOOL_DEFINITION=e.a,exports.TOOL_NAME=e.o,exports.executeExa=e.n,exports.pluginCore=e.r,exports.samples=e.t,exports.searchExa=e.i;
|
package/dist/core.js
CHANGED
|
@@ -1,102 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
name: a,
|
|
4
|
-
description: "Search the web using Exa API for high-quality, relevant results",
|
|
5
|
-
parameters: {
|
|
6
|
-
type: "object",
|
|
7
|
-
properties: {
|
|
8
|
-
query: {
|
|
9
|
-
type: "string",
|
|
10
|
-
description: "The search query to find relevant web content"
|
|
11
|
-
},
|
|
12
|
-
numResults: {
|
|
13
|
-
type: "number",
|
|
14
|
-
description: "Number of results to return (default: 5, max: 10)",
|
|
15
|
-
minimum: 1,
|
|
16
|
-
maximum: 10
|
|
17
|
-
},
|
|
18
|
-
includeText: {
|
|
19
|
-
type: "boolean",
|
|
20
|
-
description: "Whether to include page text content in results (default: true)"
|
|
21
|
-
},
|
|
22
|
-
fetchHighlights: {
|
|
23
|
-
type: "boolean",
|
|
24
|
-
description: "Whether to include query-relevant highlights from the content"
|
|
25
|
-
},
|
|
26
|
-
includeDomains: {
|
|
27
|
-
type: "array",
|
|
28
|
-
description: "Only search within these domains",
|
|
29
|
-
items: { type: "string" }
|
|
30
|
-
},
|
|
31
|
-
excludeDomains: {
|
|
32
|
-
type: "array",
|
|
33
|
-
description: "Exclude results from these domains",
|
|
34
|
-
items: { type: "string" }
|
|
35
|
-
},
|
|
36
|
-
startPublishedDate: {
|
|
37
|
-
type: "string",
|
|
38
|
-
description: "Only include results published after this date (ISO format: 2025-01-01)"
|
|
39
|
-
},
|
|
40
|
-
endPublishedDate: {
|
|
41
|
-
type: "string",
|
|
42
|
-
description: "Only include results published before this date (ISO format: 2025-01-01)"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
required: ["query"]
|
|
46
|
-
}
|
|
47
|
-
}, n = async (t, r) => {
|
|
48
|
-
const { query: s } = r;
|
|
49
|
-
if (!t.app?.searchExa)
|
|
50
|
-
return {
|
|
51
|
-
message: "searchExa function not available",
|
|
52
|
-
instructions: "Acknowledge that the search failed due to a technical error."
|
|
53
|
-
};
|
|
54
|
-
try {
|
|
55
|
-
const e = await t.app.searchExa(r);
|
|
56
|
-
return e.success && e.results ? {
|
|
57
|
-
message: `Found ${e.results.length} relevant results for "${s}"`,
|
|
58
|
-
jsonData: { query: s, results: e.results },
|
|
59
|
-
instructions: "Acknowledge that the search was successful and provide a very short summary, focusing only on the most relevant information."
|
|
60
|
-
} : {
|
|
61
|
-
message: e.error || "Exa search failed",
|
|
62
|
-
instructions: "Acknowledge that the search failed and suggest trying a different query."
|
|
63
|
-
};
|
|
64
|
-
} catch (e) {
|
|
65
|
-
return {
|
|
66
|
-
message: `Exa search failed: ${e instanceof Error ? e.message : "Unknown error"}`,
|
|
67
|
-
instructions: "Acknowledge that the search failed due to a technical error."
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
}, o = {
|
|
71
|
-
toolDefinition: i,
|
|
72
|
-
execute: n,
|
|
73
|
-
generatingMessage: "Searching the web...",
|
|
74
|
-
waitingMessage: "Tell the user that you are searching for relevant information.",
|
|
75
|
-
isEnabled: (t) => !!t?.hasExaApiKey,
|
|
76
|
-
delayAfterExecution: 3e3,
|
|
77
|
-
backends: ["search"]
|
|
78
|
-
}, c = n, u = [
|
|
79
|
-
{
|
|
80
|
-
name: "AI News",
|
|
81
|
-
args: {
|
|
82
|
-
query: "latest artificial intelligence news 2025",
|
|
83
|
-
numResults: 5
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: "Programming Tutorial",
|
|
88
|
-
args: {
|
|
89
|
-
query: "TypeScript best practices tutorial",
|
|
90
|
-
numResults: 3,
|
|
91
|
-
includeText: !0
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
];
|
|
95
|
-
export {
|
|
96
|
-
i as TOOL_DEFINITION,
|
|
97
|
-
a as TOOL_NAME,
|
|
98
|
-
c as executeExa,
|
|
99
|
-
o as pluginCore,
|
|
100
|
-
u as samples,
|
|
101
|
-
n as searchExa
|
|
102
|
-
};
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "./samples-CO7OhVTt.js";
|
|
2
|
+
export { e as TOOL_DEFINITION, r as TOOL_NAME, n as executeExa, i as pluginCore, a as samples, t as searchExa };
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./samples-A-Y1u0I0.cjs`);require(`./core.cjs`),exports.TOOL_DEFINITION=e.a,exports.TOOL_NAME=e.o,exports.executeExa=e.n,exports.pluginCore=e.r,exports.samples=e.t,exports.searchExa=e.i;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./core";
|
|
1
|
+
export * from "./core/index";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
r as TOOL_NAME,
|
|
5
|
-
x as executeExa,
|
|
6
|
-
E as pluginCore,
|
|
7
|
-
o as samples,
|
|
8
|
-
p as searchExa
|
|
9
|
-
};
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "./samples-CO7OhVTt.js";
|
|
2
|
+
import "./core.js";
|
|
3
|
+
export { e as TOOL_DEFINITION, r as TOOL_NAME, n as executeExa, i as pluginCore, a as samples, t as searchExa };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`searchWeb`,t={type:`function`,name:e,description:`Search the web using Exa API for high-quality, relevant results`,parameters:{type:`object`,properties:{query:{type:`string`,description:`The search query to find relevant web content`},numResults:{type:`number`,description:`Number of results to return (default: 5, max: 10)`,minimum:1,maximum:10},includeText:{type:`boolean`,description:`Whether to include page text content in results (default: true)`},fetchHighlights:{type:`boolean`,description:`Whether to include query-relevant highlights from the content`},includeDomains:{type:`array`,description:`Only search within these domains`,items:{type:`string`}},excludeDomains:{type:`array`,description:`Exclude results from these domains`,items:{type:`string`}},startPublishedDate:{type:`string`,description:`Only include results published after this date (ISO format: 2025-01-01)`},endPublishedDate:{type:`string`,description:`Only include results published before this date (ISO format: 2025-01-01)`}},required:[`query`]}},n=async(e,t)=>{let{query:n}=t;if(!e.app?.searchExa)return{message:`searchExa function not available`,instructions:`Acknowledge that the search failed due to a technical error.`};try{let r=await e.app.searchExa(t);return r.success&&r.results?{message:`Found ${r.results.length} relevant results for "${n}"`,jsonData:{query:n,results:r.results},instructions:`Acknowledge that the search was successful and provide a very short summary, focusing only on the most relevant information.`}:{message:r.error||`Exa search failed`,instructions:`Acknowledge that the search failed and suggest trying a different query.`}}catch(e){return{message:`Exa search failed: ${e instanceof Error?e.message:`Unknown error`}`,instructions:`Acknowledge that the search failed due to a technical error.`}}},r={toolDefinition:t,execute:n,generatingMessage:`Searching the web...`,waitingMessage:`Tell the user that you are searching for relevant information.`,isEnabled:e=>!!e?.hasExaApiKey,delayAfterExecution:3e3,backends:[`search`]},i=n,a=[{name:`AI News`,args:{query:`latest artificial intelligence news 2025`,numResults:5}},{name:`Programming Tutorial`,args:{query:`TypeScript best practices tutorial`,numResults:3,includeText:!0}}];Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
//#region src/core/definition.ts
|
|
2
|
+
var e = "searchWeb", t = {
|
|
3
|
+
type: "function",
|
|
4
|
+
name: e,
|
|
5
|
+
description: "Search the web using Exa API for high-quality, relevant results",
|
|
6
|
+
parameters: {
|
|
7
|
+
type: "object",
|
|
8
|
+
properties: {
|
|
9
|
+
query: {
|
|
10
|
+
type: "string",
|
|
11
|
+
description: "The search query to find relevant web content"
|
|
12
|
+
},
|
|
13
|
+
numResults: {
|
|
14
|
+
type: "number",
|
|
15
|
+
description: "Number of results to return (default: 5, max: 10)",
|
|
16
|
+
minimum: 1,
|
|
17
|
+
maximum: 10
|
|
18
|
+
},
|
|
19
|
+
includeText: {
|
|
20
|
+
type: "boolean",
|
|
21
|
+
description: "Whether to include page text content in results (default: true)"
|
|
22
|
+
},
|
|
23
|
+
fetchHighlights: {
|
|
24
|
+
type: "boolean",
|
|
25
|
+
description: "Whether to include query-relevant highlights from the content"
|
|
26
|
+
},
|
|
27
|
+
includeDomains: {
|
|
28
|
+
type: "array",
|
|
29
|
+
description: "Only search within these domains",
|
|
30
|
+
items: { type: "string" }
|
|
31
|
+
},
|
|
32
|
+
excludeDomains: {
|
|
33
|
+
type: "array",
|
|
34
|
+
description: "Exclude results from these domains",
|
|
35
|
+
items: { type: "string" }
|
|
36
|
+
},
|
|
37
|
+
startPublishedDate: {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: "Only include results published after this date (ISO format: 2025-01-01)"
|
|
40
|
+
},
|
|
41
|
+
endPublishedDate: {
|
|
42
|
+
type: "string",
|
|
43
|
+
description: "Only include results published before this date (ISO format: 2025-01-01)"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
required: ["query"]
|
|
47
|
+
}
|
|
48
|
+
}, n = async (e, t) => {
|
|
49
|
+
let { query: n } = t;
|
|
50
|
+
if (!e.app?.searchExa) return {
|
|
51
|
+
message: "searchExa function not available",
|
|
52
|
+
instructions: "Acknowledge that the search failed due to a technical error."
|
|
53
|
+
};
|
|
54
|
+
try {
|
|
55
|
+
let r = await e.app.searchExa(t);
|
|
56
|
+
return r.success && r.results ? {
|
|
57
|
+
message: `Found ${r.results.length} relevant results for "${n}"`,
|
|
58
|
+
jsonData: {
|
|
59
|
+
query: n,
|
|
60
|
+
results: r.results
|
|
61
|
+
},
|
|
62
|
+
instructions: "Acknowledge that the search was successful and provide a very short summary, focusing only on the most relevant information."
|
|
63
|
+
} : {
|
|
64
|
+
message: r.error || "Exa search failed",
|
|
65
|
+
instructions: "Acknowledge that the search failed and suggest trying a different query."
|
|
66
|
+
};
|
|
67
|
+
} catch (e) {
|
|
68
|
+
return {
|
|
69
|
+
message: `Exa search failed: ${e instanceof Error ? e.message : "Unknown error"}`,
|
|
70
|
+
instructions: "Acknowledge that the search failed due to a technical error."
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}, r = {
|
|
74
|
+
toolDefinition: t,
|
|
75
|
+
execute: n,
|
|
76
|
+
generatingMessage: "Searching the web...",
|
|
77
|
+
waitingMessage: "Tell the user that you are searching for relevant information.",
|
|
78
|
+
isEnabled: (e) => !!e?.hasExaApiKey,
|
|
79
|
+
delayAfterExecution: 3e3,
|
|
80
|
+
backends: ["search"]
|
|
81
|
+
}, i = n, a = [{
|
|
82
|
+
name: "AI News",
|
|
83
|
+
args: {
|
|
84
|
+
query: "latest artificial intelligence news 2025",
|
|
85
|
+
numResults: 5
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
name: "Programming Tutorial",
|
|
89
|
+
args: {
|
|
90
|
+
query: "TypeScript best practices tutorial",
|
|
91
|
+
numResults: 3,
|
|
92
|
+
includeText: !0
|
|
93
|
+
}
|
|
94
|
+
}];
|
|
95
|
+
//#endregion
|
|
96
|
+
export { t as a, n as i, i as n, e as o, r, a as t };
|
package/dist/style.css
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-600:oklch(57.7% .245 27.325);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-800:oklch(43.2% .095 166.913);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-600:oklch(55.8% .288 302.321);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--container-3xl:48rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.m-0{margin:calc(var(--spacing)*0)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.h-full{height:100%}.w-full{width:100%}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\[200px\]{max-width:200px}.flex-1{flex:1}.cursor-pointer{cursor:pointer}.resize-y{resize:vertical}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-emerald-200{border-color:var(--color-emerald-200)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-indigo-200{border-color:var(--color-indigo-200)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-indigo-100{background-color:var(--color-indigo-100)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-pre-wrap{white-space:pre-wrap}.text-blue-600{color:var(--color-blue-600)}.text-emerald-800{color:var(--color-emerald-800)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-indigo-700{color:var(--color-indigo-700)}.text-purple-600{color:var(--color-purple-600)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.italic{font-style:italic}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.hover\:border-indigo-300:hover{border-color:var(--color-indigo-300)}.hover\:bg-indigo-200:hover{background-color:var(--color-indigo-200)}.hover\:bg-indigo-700:hover{background-color:var(--color-indigo-700)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-indigo-500:focus{border-color:var(--color-indigo-500)}.focus\:ring-\[3px\]:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-indigo-500\/10:focus{--tw-ring-color:#625fff1a}@supports (color:color-mix(in lab,red,red)){.focus\:ring-indigo-500\/10:focus{--tw-ring-color:color-mix(in oklab,var(--color-indigo-500)10%,transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
|
|
1
|
+
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-600:oklch(57.7% .245 27.325);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-800:oklch(43.2% .095 166.913);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-600:oklch(55.8% .288 302.321);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--container-3xl:48rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.start{inset-inline-start:var(--spacing)}.m-0{margin:calc(var(--spacing) * 0)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.h-full{height:100%}.w-full{width:100%}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\[200px\]{max-width:200px}.flex-1{flex:1}.cursor-pointer{cursor:pointer}.resize-y{resize:vertical}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-emerald-200{border-color:var(--color-emerald-200)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-indigo-200{border-color:var(--color-indigo-200)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-indigo-100{background-color:var(--color-indigo-100)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-pre-wrap{white-space:pre-wrap}.text-blue-600{color:var(--color-blue-600)}.text-emerald-800{color:var(--color-emerald-800)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-indigo-700{color:var(--color-indigo-700)}.text-purple-600{color:var(--color-purple-600)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.italic{font-style:italic}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.hover\:border-indigo-300:hover{border-color:var(--color-indigo-300)}.hover\:bg-indigo-200:hover{background-color:var(--color-indigo-200)}.hover\:bg-indigo-700:hover{background-color:var(--color-indigo-700)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus\:border-indigo-500:focus{border-color:var(--color-indigo-500)}.focus\:ring-\[3px\]:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-indigo-500\/10:focus{--tw-ring-color:#625fff1a}@supports (color:color-mix(in lab, red, red)){.focus\:ring-indigo-500\/10:focus{--tw-ring-color:color-mix(in oklab, var(--color-indigo-500) 10%, transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
|
|
3
|
+
/*$vite$:1*/
|
package/dist/vue.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./samples-A-Y1u0I0.cjs`);let t=require(`vue`);var n={class:`w-full h-full overflow-auto p-6 bg-white`},r={class:`max-w-4xl mx-auto`},i={class:`text-2xl font-bold text-gray-800 mb-6`},a={key:0,class:`text-lg font-normal text-gray-600`},o={key:0,class:`space-y-6`},s={class:`flex items-start justify-between`},c={class:`flex-1`},l={class:`text-lg font-semibold text-blue-600 hover:text-blue-800`},u=[`href`],d={class:`text-sm text-gray-500 mt-1`},f={key:0,class:`text-gray-700 mt-2 line-clamp-3`},p={key:1,class:`mt-3`},m={class:`space-y-1`},h={key:2,class:`text-xs text-gray-400 mt-2`},g=(0,t.defineComponent)({__name:`View`,props:{selectedResult:{}},setup(e){return(g,_)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,n,[(0,t.createElementVNode)(`div`,r,[(0,t.createElementVNode)(`h2`,i,[_[0]||=(0,t.createTextVNode)(` Search Results `,-1),e.selectedResult.jsonData&&e.selectedResult.jsonData.query?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,a,` for "`+(0,t.toDisplayString)(e.selectedResult.jsonData.query)+`" `,1)):(0,t.createCommentVNode)(``,!0)]),e.selectedResult.jsonData?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,o,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.selectedResult.jsonData.results||[],(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n,class:`border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow`},[(0,t.createElementVNode)(`div`,s,[(0,t.createElementVNode)(`div`,c,[(0,t.createElementVNode)(`h3`,l,[(0,t.createElementVNode)(`a`,{href:e.url,target:`_blank`,class:`hover:underline`},(0,t.toDisplayString)(e.title),9,u)]),(0,t.createElementVNode)(`p`,d,(0,t.toDisplayString)(e.url),1),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,f,(0,t.toDisplayString)(e.text),1)):(0,t.createCommentVNode)(``,!0),e.highlights&&e.highlights.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,p,[_[1]||=(0,t.createElementVNode)(`p`,{class:`text-sm font-medium text-gray-600 mb-1`},`Key highlights:`,-1),(0,t.createElementVNode)(`div`,m,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.highlights.slice(0,3),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:n,class:`text-sm text-gray-600 italic`},` "`+(0,t.toDisplayString)(e)+`" `,1))),128))])])):(0,t.createCommentVNode)(``,!0),e.publishedDate?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,h,` Published: `+(0,t.toDisplayString)(new Date(e.publishedDate).toLocaleDateString()),1)):(0,t.createCommentVNode)(``,!0)])])]))),128))])):(0,t.createCommentVNode)(``,!0)])]))}}),_={class:`text-center p-4 bg-purple-50 rounded`},v={class:`text-xs text-gray-600 mt-1 truncate`},y=(0,t.defineComponent)({__name:`Preview`,props:{result:{}},setup(e){function n(e){if(!e)return``;let t=e.match(/relevant results for "([^"]+)"/);return t?t[1]:e}return(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,_,[i[0]||=(0,t.createElementVNode)(`div`,{class:`text-purple-600 font-medium`},`Search Result`,-1),(0,t.createElementVNode)(`div`,v,(0,t.toDisplayString)(e.result.jsonData?.query||n(e.result.message)),1)]))}}),b={...e.r,viewComponent:g,previewComponent:y,samples:e.t},x={plugin:b};exports.Preview=y,exports.TOOL_DEFINITION=e.a,exports.TOOL_NAME=e.o,exports.View=g,exports.default=x,exports.executeExa=e.n,exports.plugin=b,exports.pluginCore=e.r,exports.samples=e.t;
|
package/dist/vue.js
CHANGED
|
@@ -1,96 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
])) : r("", !0)
|
|
61
|
-
])
|
|
62
|
-
]));
|
|
63
|
-
}
|
|
64
|
-
}), S = { class: "text-center p-4 bg-purple-50 rounded" }, T = { class: "text-xs text-gray-600 mt-1 truncate" }, q = /* @__PURE__ */ u({
|
|
65
|
-
__name: "Preview",
|
|
66
|
-
props: {
|
|
67
|
-
result: {}
|
|
68
|
-
},
|
|
69
|
-
setup(a) {
|
|
70
|
-
function i(n) {
|
|
71
|
-
if (!n) return "";
|
|
72
|
-
const t = n.match(/relevant results for "([^"]+)"/);
|
|
73
|
-
return t ? t[1] : n;
|
|
74
|
-
}
|
|
75
|
-
return (n, t) => (s(), e("div", S, [
|
|
76
|
-
t[0] || (t[0] = o("div", { class: "text-purple-600 font-medium" }, "Search Result", -1)),
|
|
77
|
-
o("div", T, l(a.result.jsonData?.query || i(a.result.message)), 1)
|
|
78
|
-
]));
|
|
79
|
-
}
|
|
80
|
-
}), F = {
|
|
81
|
-
...g,
|
|
82
|
-
viewComponent: L,
|
|
83
|
-
previewComponent: q,
|
|
84
|
-
samples: _
|
|
85
|
-
}, $ = { plugin: F };
|
|
86
|
-
export {
|
|
87
|
-
q as Preview,
|
|
88
|
-
A as TOOL_DEFINITION,
|
|
89
|
-
K as TOOL_NAME,
|
|
90
|
-
L as View,
|
|
91
|
-
$ as default,
|
|
92
|
-
Q as executeExa,
|
|
93
|
-
F as plugin,
|
|
94
|
-
g as pluginCore,
|
|
95
|
-
_ as samples
|
|
96
|
-
};
|
|
1
|
+
import { a as e, n as t, o as n, r, t as i } from "./samples-CO7OhVTt.js";
|
|
2
|
+
import { Fragment as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, openBlock as d, renderList as f, toDisplayString as p } from "vue";
|
|
3
|
+
//#region src/vue/View.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var m = { class: "w-full h-full overflow-auto p-6 bg-white" }, h = { class: "max-w-4xl mx-auto" }, g = { class: "text-2xl font-bold text-gray-800 mb-6" }, _ = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "text-lg font-normal text-gray-600"
|
|
7
|
+
}, v = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "space-y-6"
|
|
10
|
+
}, y = { class: "flex items-start justify-between" }, b = { class: "flex-1" }, x = { class: "text-lg font-semibold text-blue-600 hover:text-blue-800" }, S = ["href"], C = { class: "text-sm text-gray-500 mt-1" }, w = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "text-gray-700 mt-2 line-clamp-3"
|
|
13
|
+
}, T = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "mt-3"
|
|
16
|
+
}, E = { class: "space-y-1" }, D = {
|
|
17
|
+
key: 2,
|
|
18
|
+
class: "text-xs text-gray-400 mt-2"
|
|
19
|
+
}, O = /* @__PURE__ */ u({
|
|
20
|
+
__name: "View",
|
|
21
|
+
props: { selectedResult: {} },
|
|
22
|
+
setup(e) {
|
|
23
|
+
return (t, n) => (d(), s("div", m, [c("div", h, [c("h2", g, [n[0] ||= l(" Search Results ", -1), e.selectedResult.jsonData && e.selectedResult.jsonData.query ? (d(), s("span", _, " for \"" + p(e.selectedResult.jsonData.query) + "\" ", 1)) : o("", !0)]), e.selectedResult.jsonData ? (d(), s("div", v, [(d(!0), s(a, null, f(e.selectedResult.jsonData.results || [], (e, t) => (d(), s("div", {
|
|
24
|
+
key: t,
|
|
25
|
+
class: "border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow"
|
|
26
|
+
}, [c("div", y, [c("div", b, [
|
|
27
|
+
c("h3", x, [c("a", {
|
|
28
|
+
href: e.url,
|
|
29
|
+
target: "_blank",
|
|
30
|
+
class: "hover:underline"
|
|
31
|
+
}, p(e.title), 9, S)]),
|
|
32
|
+
c("p", C, p(e.url), 1),
|
|
33
|
+
e.text ? (d(), s("p", w, p(e.text), 1)) : o("", !0),
|
|
34
|
+
e.highlights && e.highlights.length ? (d(), s("div", T, [n[1] ||= c("p", { class: "text-sm font-medium text-gray-600 mb-1" }, "Key highlights:", -1), c("div", E, [(d(!0), s(a, null, f(e.highlights.slice(0, 3), (e, t) => (d(), s("p", {
|
|
35
|
+
key: t,
|
|
36
|
+
class: "text-sm text-gray-600 italic"
|
|
37
|
+
}, " \"" + p(e) + "\" ", 1))), 128))])])) : o("", !0),
|
|
38
|
+
e.publishedDate ? (d(), s("p", D, " Published: " + p(new Date(e.publishedDate).toLocaleDateString()), 1)) : o("", !0)
|
|
39
|
+
])])]))), 128))])) : o("", !0)])]));
|
|
40
|
+
}
|
|
41
|
+
}), k = { class: "text-center p-4 bg-purple-50 rounded" }, A = { class: "text-xs text-gray-600 mt-1 truncate" }, j = /* @__PURE__ */ u({
|
|
42
|
+
__name: "Preview",
|
|
43
|
+
props: { result: {} },
|
|
44
|
+
setup(e) {
|
|
45
|
+
function t(e) {
|
|
46
|
+
if (!e) return "";
|
|
47
|
+
let t = e.match(/relevant results for "([^"]+)"/);
|
|
48
|
+
return t ? t[1] : e;
|
|
49
|
+
}
|
|
50
|
+
return (n, r) => (d(), s("div", k, [r[0] ||= c("div", { class: "text-purple-600 font-medium" }, "Search Result", -1), c("div", A, p(e.result.jsonData?.query || t(e.result.message)), 1)]));
|
|
51
|
+
}
|
|
52
|
+
}), M = {
|
|
53
|
+
...r,
|
|
54
|
+
viewComponent: O,
|
|
55
|
+
previewComponent: j,
|
|
56
|
+
samples: i
|
|
57
|
+
}, N = { plugin: M };
|
|
58
|
+
//#endregion
|
|
59
|
+
export { j as Preview, e as TOOL_DEFINITION, n as TOOL_NAME, O as View, N as default, t as executeExa, M as plugin, r as pluginCore, i as samples };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gui-chat-plugin/exa",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Exa web search plugin for GUI Chat applications",
|
|
6
6
|
"author": "receptron",
|
|
@@ -32,23 +32,23 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"exa-js": "^2.0.12",
|
|
35
|
-
"gui-chat-protocol": "^0.0.
|
|
35
|
+
"gui-chat-protocol": "^0.0.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@eslint/js": "^
|
|
39
|
-
"@tailwindcss/vite": "^4.
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
41
|
-
"@typescript-eslint/parser": "^8.
|
|
42
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
43
|
-
"eslint": "^
|
|
44
|
-
"eslint-plugin-vue": "^10.
|
|
45
|
-
"globals": "^17.
|
|
46
|
-
"tailwindcss": "^4.
|
|
38
|
+
"@eslint/js": "^10.0.1",
|
|
39
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
41
|
+
"@typescript-eslint/parser": "^8.58.0",
|
|
42
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
43
|
+
"eslint": "^10.1.0",
|
|
44
|
+
"eslint-plugin-vue": "^10.8.0",
|
|
45
|
+
"globals": "^17.4.0",
|
|
46
|
+
"tailwindcss": "^4.2.2",
|
|
47
47
|
"typescript": "^5.8.0",
|
|
48
|
-
"vite": "^
|
|
49
|
-
"vue": "^3.5.
|
|
50
|
-
"vue-eslint-parser": "^10.
|
|
51
|
-
"vue-tsc": "^3.
|
|
48
|
+
"vite": "^8.0.3",
|
|
49
|
+
"vue": "^3.5.31",
|
|
50
|
+
"vue-eslint-parser": "^10.4.0",
|
|
51
|
+
"vue-tsc": "^3.2.6"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"vue": "^3.5.0"
|