veryfront 0.0.38 → 0.0.40
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/ai/components.js +48 -47
- package/dist/ai/components.js.map +2 -2
- package/dist/ai/dev.js +3 -3
- package/dist/ai/dev.js.map +2 -2
- package/dist/ai/index.js +39 -13
- package/dist/ai/index.js.map +3 -3
- package/dist/cli.js +3775 -2924
- package/dist/components.js +1 -1
- package/dist/components.js.map +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +2 -2
- package/dist/data.js +1 -1
- package/dist/data.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +2 -2
- package/dist/templates/ai/ai/agents/assistant.ts +5 -3
- package/dist/templates/ai/ai/prompts/assistant.ts +7 -6
- package/dist/templates/ai/ai/tools/.gitkeep +0 -0
- package/dist/templates/ai/app/layout.tsx +3 -10
- package/dist/templates/ai/app/page.tsx +7 -13
- package/dist/templates/app/app/dashboard/page.tsx +5 -5
- package/dist/templates/app/app/layout.tsx +7 -29
- package/dist/templates/app/app/login/page.tsx +53 -125
- package/dist/templates/app/components/DashboardLayout.tsx +29 -95
- package/dist/templates/app/components/FeatureGrid.tsx +24 -30
- package/dist/templates/app/components/Header.tsx +13 -16
- package/dist/templates/app/components/HeroSection.tsx +19 -29
- package/dist/templates/blog/app/layout.tsx +28 -37
- package/dist/templates/blog/app/page.tsx +2 -2
- package/dist/templates/blog/components/BlogPostList.tsx +15 -24
- package/dist/templates/docs/app/layout.tsx +12 -25
- package/dist/templates/docs/components/Header.tsx +25 -22
- package/dist/templates/docs/components/Sidebar.tsx +8 -8
- package/dist/templates/minimal/app/layout.tsx +4 -11
- package/dist/templates/minimal/app/page.tsx +8 -8
- package/package.json +1 -1
- package/dist/templates/ai/ai/tools/get-weather.ts +0 -29
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { tool } from "veryfront/ai";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
export default tool({
|
|
5
|
-
description: "Get the current weather for a location",
|
|
6
|
-
inputSchema: z.object({
|
|
7
|
-
location: z.string().describe("The city and state, e.g. San Francisco, CA"),
|
|
8
|
-
}),
|
|
9
|
-
execute: ({ location }: { location: string }) => {
|
|
10
|
-
const mockWeather: Record<string, { temp: number; condition: string }> = {
|
|
11
|
-
"San Francisco, CA": { temp: 65, condition: "Foggy" },
|
|
12
|
-
"New York, NY": { temp: 75, condition: "Sunny" },
|
|
13
|
-
"London, UK": { temp: 60, condition: "Rainy" },
|
|
14
|
-
"Tokyo, Japan": { temp: 80, condition: "Humid" },
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const weather = mockWeather[location] || {
|
|
18
|
-
temp: 70,
|
|
19
|
-
condition: "Clear",
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
return {
|
|
23
|
-
location,
|
|
24
|
-
temperature: weather.temp,
|
|
25
|
-
condition: weather.condition,
|
|
26
|
-
unit: "fahrenheit",
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
});
|