@agentuity/cli 3.0.0-alpha.1 → 3.0.0-alpha.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.
Files changed (53) hide show
  1. package/dist/cmd/coder/start.d.ts.map +1 -1
  2. package/dist/cmd/coder/start.js +1 -0
  3. package/dist/cmd/coder/start.js.map +1 -1
  4. package/dist/cmd/coder/workspace/create.d.ts.map +1 -1
  5. package/dist/cmd/coder/workspace/create.js +40 -12
  6. package/dist/cmd/coder/workspace/create.js.map +1 -1
  7. package/dist/cmd/coder/workspace/index.d.ts.map +1 -1
  8. package/dist/cmd/coder/workspace/index.js +1 -1
  9. package/dist/cmd/coder/workspace/index.js.map +1 -1
  10. package/dist/cmd/project/frameworks.d.ts +13 -13
  11. package/dist/cmd/project/frameworks.d.ts.map +1 -1
  12. package/dist/cmd/project/frameworks.js +26 -21
  13. package/dist/cmd/project/frameworks.js.map +1 -1
  14. package/dist/cmd/project/scaffold.d.ts.map +1 -1
  15. package/dist/cmd/project/scaffold.js +37 -26
  16. package/dist/cmd/project/scaffold.js.map +1 -1
  17. package/dist/cmd/project/template-flow.d.ts.map +1 -1
  18. package/dist/cmd/project/template-flow.js +4 -1
  19. package/dist/cmd/project/template-flow.js.map +1 -1
  20. package/dist/types.d.ts +3 -3
  21. package/package.json +7 -7
  22. package/src/cmd/coder/start.ts +1 -0
  23. package/src/cmd/coder/workspace/create.ts +68 -17
  24. package/src/cmd/coder/workspace/index.ts +3 -1
  25. package/src/cmd/project/frameworks.ts +31 -47
  26. package/src/cmd/project/scaffold.ts +40 -29
  27. package/src/cmd/project/template-flow.ts +3 -1
  28. package/src/cmd/project/templates/astro/src/pages/api/translate.ts +22 -0
  29. package/src/cmd/project/templates/astro/src/pages/index.astro +160 -0
  30. package/src/cmd/project/templates/hono/src/index.ts +103 -0
  31. package/src/cmd/project/templates/nextjs/src/app/api/translate/route.ts +19 -0
  32. package/src/cmd/project/templates/nextjs/src/app/globals.css +74 -0
  33. package/src/cmd/project/templates/nextjs/src/app/page.tsx +234 -0
  34. package/src/cmd/project/templates/nuxt/app.vue +191 -0
  35. package/src/cmd/project/templates/nuxt/server/api/translate.post.ts +18 -0
  36. package/src/cmd/project/templates/remix/app/routes/api.translate.ts +24 -0
  37. package/src/cmd/project/templates/remix/app/routes/home.tsx +241 -0
  38. package/src/cmd/project/templates/sveltekit/src/routes/+page.server.ts +24 -0
  39. package/src/cmd/project/templates/sveltekit/src/routes/+page.svelte +204 -0
  40. package/src/cmd/project/templates/vite-react/server.ts +39 -0
  41. package/src/cmd/project/templates/vite-react/src/App.tsx +241 -0
  42. package/src/cmd/project/templates/vite-react/src/index.css +31 -0
  43. package/src/cmd/project/templates/vite-react/src/main.tsx +15 -0
  44. package/dist/cmd/project/frameworks-ai-examples.d.ts +0 -15
  45. package/dist/cmd/project/frameworks-ai-examples.d.ts.map +0 -1
  46. package/dist/cmd/project/frameworks-ai-examples.js +0 -160
  47. package/dist/cmd/project/frameworks-ai-examples.js.map +0 -1
  48. package/dist/cmd/project/frameworks-landing-pages.d.ts +0 -17
  49. package/dist/cmd/project/frameworks-landing-pages.d.ts.map +0 -1
  50. package/dist/cmd/project/frameworks-landing-pages.js +0 -242
  51. package/dist/cmd/project/frameworks-landing-pages.js.map +0 -1
  52. package/src/cmd/project/frameworks-ai-examples.ts +0 -166
  53. package/src/cmd/project/frameworks-landing-pages.ts +0 -267
@@ -0,0 +1,204 @@
1
+ <script lang="ts">
2
+ import { enhance } from '$app/forms';
3
+
4
+ const LANGUAGES = ['Spanish', 'French', 'German', 'Chinese'] as const;
5
+ const MODELS = ['gpt-4o-mini', 'gpt-4o', 'gpt-4.1-nano'] as const;
6
+ const DEFAULT_TEXT =
7
+ 'Welcome to Agentuity! This translation demo shows what you can build with the platform. It connects to AI models through our gateway — no separate API keys needed. Try translating this text into different languages to see it in action.';
8
+
9
+ let text = $state(DEFAULT_TEXT);
10
+ let toLanguage: (typeof LANGUAGES)[number] = $state('Spanish');
11
+ let model: (typeof MODELS)[number] = $state('gpt-4o-mini');
12
+ let isLoading = $state(false);
13
+
14
+ let { form } = $props();
15
+ </script>
16
+
17
+ <svelte:head>
18
+ <title>Agentuity + SvelteKit</title>
19
+ </svelte:head>
20
+
21
+ <div class="flex min-h-screen justify-center font-sans text-white">
22
+ <div class="flex w-full max-w-3xl flex-col gap-4 p-16">
23
+ <!-- Header -->
24
+ <div class="relative mb-8 flex flex-col items-center justify-center gap-2 text-center">
25
+ <svg
26
+ aria-hidden="true"
27
+ class="mb-4 h-auto w-12"
28
+ fill="none"
29
+ height="191"
30
+ viewBox="0 0 220 191"
31
+ width="220"
32
+ xmlns="http://www.w3.org/2000/svg"
33
+ >
34
+ <path
35
+ clip-rule="evenodd"
36
+ d="M220 191H0L31.427 136.5H0L8 122.5H180.5L220 191ZM47.5879 136.5L24.2339 177H195.766L172.412 136.5H47.5879Z"
37
+ fill="var(--color-cyan-500)"
38
+ fill-rule="evenodd"
39
+ />
40
+ <path
41
+ clip-rule="evenodd"
42
+ d="M110 0L157.448 82.5H189L197 96.5H54.5L110 0ZM78.7021 82.5L110 28.0811L141.298 82.5H78.7021Z"
43
+ fill="var(--color-cyan-500)"
44
+ fill-rule="evenodd"
45
+ />
46
+ </svg>
47
+ <h1 class="text-5xl font-thin">Welcome to Agentuity</h1>
48
+ <p class="text-lg text-gray-400">
49
+ <span class="font-serif italic">SvelteKit</span> + AI Gateway
50
+ </p>
51
+ </div>
52
+
53
+ <!-- Translate Form -->
54
+ <form
55
+ class="flex flex-col gap-6 rounded-lg border border-gray-900 bg-black p-8 text-gray-400 shadow-2xl"
56
+ method="POST"
57
+ use:enhance={() => {
58
+ isLoading = true;
59
+ return async ({ update }) => {
60
+ await update();
61
+ isLoading = false;
62
+ };
63
+ }}
64
+ >
65
+ <div class="flex flex-wrap items-center gap-1.5">
66
+ Translate to
67
+ <select
68
+ class="-mb-0.5 cursor-pointer appearance-none border-0 border-b border-dashed border-gray-700 bg-transparent font-normal text-white outline-none hover:border-b-cyan-400 focus:border-b-cyan-400"
69
+ {...isLoading ? { disabled: true } : {}}
70
+ name="toLanguage"
71
+ bind:value={toLanguage}
72
+ >
73
+ {#each LANGUAGES as lang}
74
+ <option value={lang}>{lang}</option>
75
+ {/each}
76
+ </select>
77
+ using
78
+ <select
79
+ class="-mb-0.5 cursor-pointer appearance-none border-0 border-b border-dashed border-gray-700 bg-transparent font-normal text-white outline-none hover:border-b-cyan-400 focus:border-b-cyan-400"
80
+ {...isLoading ? { disabled: true } : {}}
81
+ name="model"
82
+ bind:value={model}
83
+ >
84
+ {#each MODELS as m}
85
+ <option value={m}>{m}</option>
86
+ {/each}
87
+ </select>
88
+ <div class="group relative z-0 ml-auto">
89
+ <div
90
+ class="absolute inset-0 rounded-lg bg-linear-to-r from-cyan-700 via-blue-500 to-purple-600 opacity-75 blur-xl transition-all duration-700 group-hover:opacity-100 group-hover:blur-2xl"
91
+ />
92
+ <div class="absolute inset-0 rounded-lg bg-cyan-500/50 opacity-50 blur-3xl" />
93
+ <button
94
+ class="relative cursor-pointer rounded-lg bg-gray-950 px-4 py-2 font-semibold text-white shadow-2xl disabled:cursor-not-allowed disabled:opacity-50"
95
+ disabled={isLoading || !text.trim()}
96
+ type="submit"
97
+ data-loading={isLoading}
98
+ >
99
+ {isLoading ? 'Translating' : 'Translate'}
100
+ </button>
101
+ </div>
102
+ </div>
103
+
104
+ <input type="hidden" name="text" bind:value={text} />
105
+ <textarea
106
+ class="z-10 min-h-28 resize-y rounded-md border border-gray-800 bg-gray-950 px-4 py-3 text-sm text-white focus:outline-2 focus:outline-offset-2 focus:outline-cyan-500"
107
+ disabled={isLoading}
108
+ bind:value={text}
109
+ placeholder="Enter text to translate..."
110
+ rows="4"
111
+ name="textDisplay"
112
+ oninput={() => { text = (event?.target as HTMLTextAreaElement)?.value ?? text; }}
113
+ />
114
+
115
+ <!-- Translation Result -->
116
+ {#if form?.error}
117
+ <div
118
+ class="rounded-md border border-red-800 bg-red-950 px-4 py-3 text-sm text-red-400"
119
+ >
120
+ {form.error.message ?? 'Translation failed'}
121
+ </div>
122
+ {:else if isLoading}
123
+ <div
124
+ class="rounded-md border border-gray-800 bg-gray-950 px-4 py-3 text-sm text-gray-600"
125
+ data-loading="true"
126
+ />
127
+ {:else if !form?.translation}
128
+ <div
129
+ class="output rounded-md border border-gray-800 bg-gray-950 px-4 py-3 text-sm text-gray-600"
130
+ >
131
+ Translation will appear here
132
+ </div>
133
+ {:else}
134
+ <div class="flex flex-col gap-3">
135
+ <div
136
+ class="output rounded-md border border-gray-800 bg-gray-950 px-4 py-3 text-sm text-cyan-500"
137
+ >
138
+ {form.translation}
139
+ </div>
140
+ <div class="flex gap-4 text-xs text-gray-500">
141
+ {#if form.tokens > 0}
142
+ <span>
143
+ Tokens <strong class="text-gray-400">{form.tokens}</strong>
144
+ </span>
145
+ {/if}
146
+ <span>
147
+ Model <strong class="text-gray-400">{form.model}</strong>
148
+ </span>
149
+ <span>
150
+ Language <strong class="text-gray-400">{form.toLanguage}</strong>
151
+ </span>
152
+ </div>
153
+ </div>
154
+ {/if}
155
+ </form>
156
+
157
+ <!-- How it works -->
158
+ <div class="rounded-lg border border-gray-900 bg-black p-8">
159
+ <h3 class="m-0 mb-6 text-xl font-normal leading-none text-white">How it works</h3>
160
+ <div class="flex flex-col gap-6">
161
+ {#each [
162
+ {
163
+ title: 'AI Gateway routing',
164
+ text: '`agentuity dev` automatically sets OPENAI_API_KEY and OPENAI_BASE_URL so the AI SDK routes through the Agentuity gateway.',
165
+ },
166
+ {
167
+ title: 'Form actions',
168
+ text: 'Edit `src/routes/+page.server.ts` to change the AI model, prompt, or add new actions.',
169
+ },
170
+ {
171
+ title: 'SvelteKit',
172
+ text: 'Add routes in `src/routes/` — file-based routing with SSR and form actions.',
173
+ },
174
+ ] as step}
175
+ <div class="flex items-start gap-3">
176
+ <div
177
+ class="flex size-4 shrink-0 items-center justify-center rounded border border-green-500 bg-green-950"
178
+ >
179
+ <svg
180
+ aria-hidden="true"
181
+ class="size-2.5"
182
+ fill="none"
183
+ height="24"
184
+ stroke="var(--color-green-500)"
185
+ stroke-linecap="round"
186
+ stroke-linejoin="round"
187
+ stroke-width="2"
188
+ viewBox="0 0 24 24"
189
+ width="24"
190
+ xmlns="http://www.w3.org/2000/svg"
191
+ >
192
+ <path d="M20 6 9 17l-5-5" />
193
+ </svg>
194
+ </div>
195
+ <div>
196
+ <h4 class="-mt-0.5 mb-0.5 text-sm font-normal text-white">{step.title}</h4>
197
+ <p class="text-xs text-gray-400">{step.text}</p>
198
+ </div>
199
+ </div>
200
+ {/each}
201
+ </div>
202
+ </div>
203
+ </div>
204
+ </div>
@@ -0,0 +1,39 @@
1
+ import { generateText } from 'ai';
2
+ import { openai } from '@ai-sdk/openai';
3
+
4
+ Bun.serve({
5
+ port: process.env.PORT ?? 3000,
6
+ async fetch(request) {
7
+ const url = new URL(request.url);
8
+
9
+ if (url.pathname === '/api/translate' && request.method === 'POST') {
10
+ const { text, toLanguage, model = 'gpt-4o-mini' } = await request.json();
11
+
12
+ const { text: translation, usage } = await generateText({
13
+ model: openai(model),
14
+ prompt: `Translate the following text to ${toLanguage}. Return only the translation, nothing else.\n\n${text}`,
15
+ });
16
+
17
+ return Response.json({
18
+ translation,
19
+ tokens: usage?.totalTokens ?? 0,
20
+ model,
21
+ toLanguage,
22
+ });
23
+ }
24
+
25
+ // Proxy all other requests to Vite dev server
26
+ const viteUrl = 'http://localhost:5173' + url.pathname + url.search;
27
+ const viteRes = await fetch(viteUrl, {
28
+ method: request.method,
29
+ headers: request.headers,
30
+ body: request.method !== 'GET' && request.method !== 'HEAD' ? request.body : undefined,
31
+ });
32
+ return new Response(viteRes.body, {
33
+ status: viteRes.status,
34
+ headers: viteRes.headers,
35
+ });
36
+ },
37
+ });
38
+
39
+ console.log('Server running on http://localhost:' + (process.env.PORT ?? 3000));
@@ -0,0 +1,241 @@
1
+ import { useState, type ChangeEvent } from 'react';
2
+ import { useMutation } from '@tanstack/react-query';
3
+
4
+ const LANGUAGES = ['Spanish', 'French', 'German', 'Chinese'] as const;
5
+ const MODELS = ['gpt-4o-mini', 'gpt-4o', 'gpt-4.1-nano'] as const;
6
+ const DEFAULT_TEXT =
7
+ 'Welcome to Agentuity! This translation demo shows what you can build with the platform. It connects to AI models through our gateway — no separate API keys needed. Try translating this text into different languages to see it in action.';
8
+
9
+ async function translateText({
10
+ text,
11
+ toLanguage,
12
+ model,
13
+ }: {
14
+ text: string;
15
+ toLanguage: string;
16
+ model: string;
17
+ }) {
18
+ const res = await fetch('/api/translate', {
19
+ method: 'POST',
20
+ headers: { 'Content-Type': 'application/json' },
21
+ body: JSON.stringify({ text, toLanguage, model }),
22
+ });
23
+ if (!res.ok) {
24
+ throw new Error(`API error ${res.status}: ${await res.text()}`);
25
+ }
26
+ return res.json();
27
+ }
28
+
29
+ function App() {
30
+ const [text, setText] = useState(DEFAULT_TEXT);
31
+ const [toLanguage, setToLanguage] = useState<(typeof LANGUAGES)[number]>('Spanish');
32
+ const [model, setModel] = useState<(typeof MODELS)[number]>('gpt-4o-mini');
33
+
34
+ const mutation = useMutation({
35
+ mutationFn: translateText,
36
+ });
37
+
38
+ const handleTranslate = () => {
39
+ mutation.mutate({ text, toLanguage, model });
40
+ };
41
+
42
+ const isLoading = mutation.isPending;
43
+ const error = mutation.error;
44
+ const result = mutation.data;
45
+
46
+ return (
47
+ <div className="flex min-h-screen justify-center font-sans text-white">
48
+ <div className="flex w-full max-w-3xl flex-col gap-4 p-16">
49
+ {/* Header */}
50
+ <div className="relative mb-8 flex flex-col items-center justify-center gap-2 text-center">
51
+ <svg
52
+ aria-hidden="true"
53
+ className="mb-4 h-auto w-12"
54
+ fill="none"
55
+ height="191"
56
+ viewBox="0 0 220 191"
57
+ width="220"
58
+ xmlns="http://www.w3.org/2000/svg"
59
+ >
60
+ <path
61
+ clipRule="evenodd"
62
+ d="M220 191H0L31.427 136.5H0L8 122.5H180.5L220 191ZM47.5879 136.5L24.2339 177H195.766L172.412 136.5H47.5879Z"
63
+ fill="var(--color-cyan-500)"
64
+ fillRule="evenodd"
65
+ />
66
+ <path
67
+ clipRule="evenodd"
68
+ d="M110 0L157.448 82.5H189L197 96.5H54.5L110 0ZM78.7021 82.5L110 28.0811L141.298 82.5H78.7021Z"
69
+ fill="var(--color-cyan-500)"
70
+ fillRule="evenodd"
71
+ />
72
+ </svg>
73
+ <h1 className="text-5xl font-thin">Welcome to Agentuity</h1>
74
+ <p className="text-lg text-gray-400">
75
+ <span className="font-serif italic">Vite + React</span> + AI Gateway
76
+ </p>
77
+ </div>
78
+
79
+ {/* Translate Form */}
80
+ <div className="flex flex-col gap-6 rounded-lg border border-gray-900 bg-black p-8 text-gray-400 shadow-2xl">
81
+ <div className="flex flex-wrap items-center gap-1.5">
82
+ Translate to
83
+ <select
84
+ className="-mb-0.5 cursor-pointer appearance-none border-0 border-b border-dashed border-gray-700 bg-transparent font-normal text-white outline-none hover:border-b-cyan-400 focus:border-b-cyan-400"
85
+ disabled={isLoading}
86
+ onChange={(e: ChangeEvent<HTMLSelectElement>) =>
87
+ setToLanguage(e.currentTarget.value as (typeof LANGUAGES)[number])
88
+ }
89
+ value={toLanguage}
90
+ >
91
+ {LANGUAGES.map((lang) => (
92
+ <option key={lang} value={lang}>
93
+ {lang}
94
+ </option>
95
+ ))}
96
+ </select>
97
+ using
98
+ <select
99
+ className="-mb-0.5 cursor-pointer appearance-none border-0 border-b border-dashed border-gray-700 bg-transparent font-normal text-white outline-none hover:border-b-cyan-400 focus:border-b-cyan-400"
100
+ disabled={isLoading}
101
+ onChange={(e: ChangeEvent<HTMLSelectElement>) =>
102
+ setModel(e.currentTarget.value as (typeof MODELS)[number])
103
+ }
104
+ value={model}
105
+ >
106
+ {MODELS.map((m) => (
107
+ <option key={m} value={m}>
108
+ {m}
109
+ </option>
110
+ ))}
111
+ </select>
112
+ <div className="group relative z-0 ml-auto">
113
+ <div className="absolute inset-0 rounded-lg bg-linear-to-r from-cyan-700 via-blue-500 to-purple-600 opacity-75 blur-xl transition-all duration-700 group-hover:opacity-100 group-hover:blur-2xl" />
114
+ <div className="absolute inset-0 rounded-lg bg-cyan-500/50 opacity-50 blur-3xl" />
115
+ <button
116
+ className="relative cursor-pointer rounded-lg bg-gray-950 px-4 py-2 font-semibold text-white shadow-2xl disabled:cursor-not-allowed disabled:opacity-50"
117
+ disabled={isLoading || !text.trim()}
118
+ onClick={handleTranslate}
119
+ type="button"
120
+ data-loading={isLoading}
121
+ >
122
+ {isLoading ? 'Translating' : 'Translate'}
123
+ </button>
124
+ </div>
125
+ </div>
126
+
127
+ <textarea
128
+ className="z-10 min-h-28 resize-y rounded-md border border-gray-800 bg-gray-950 px-4 py-3 text-sm text-white focus:outline-2 focus:outline-offset-2 focus:outline-cyan-500"
129
+ disabled={isLoading}
130
+ onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setText(e.currentTarget.value)}
131
+ placeholder="Enter text to translate..."
132
+ rows={4}
133
+ value={text}
134
+ />
135
+
136
+ {/* Translation Result */}
137
+ {error ? (
138
+ <div className="rounded-md border border-red-800 bg-red-950 px-4 py-3 text-sm text-red-400">
139
+ {error.message}
140
+ </div>
141
+ ) : isLoading ? (
142
+ <div
143
+ className="rounded-md border border-gray-800 bg-gray-950 px-4 py-3 text-sm text-gray-600"
144
+ data-loading="true"
145
+ />
146
+ ) : !result?.translation ? (
147
+ <div className="output rounded-md border border-gray-800 bg-gray-950 px-4 py-3 text-sm text-gray-600">
148
+ Translation will appear here
149
+ </div>
150
+ ) : (
151
+ <div className="flex flex-col gap-3">
152
+ <div className="output rounded-md border border-gray-800 bg-gray-950 px-4 py-3 text-sm text-cyan-500">
153
+ {result.translation}
154
+ </div>
155
+ <div className="flex gap-4 text-xs text-gray-500">
156
+ {result.tokens > 0 && (
157
+ <span>
158
+ Tokens <strong className="text-gray-400">{result.tokens}</strong>
159
+ </span>
160
+ )}
161
+ <span>
162
+ Model <strong className="text-gray-400">{result.model}</strong>
163
+ </span>
164
+ <span>
165
+ Language <strong className="text-gray-400">{result.toLanguage}</strong>
166
+ </span>
167
+ </div>
168
+ </div>
169
+ )}
170
+ </div>
171
+
172
+ {/* How it works */}
173
+ <div className="rounded-lg border border-gray-900 bg-black p-8">
174
+ <h3 className="m-0 mb-6 text-xl font-normal leading-none text-white">
175
+ How it works
176
+ </h3>
177
+ <div className="flex flex-col gap-6">
178
+ {[
179
+ {
180
+ title: 'AI Gateway routing',
181
+ text: (
182
+ <>
183
+ <code className="text-white">agentuity dev</code> automatically sets
184
+ OPENAI_API_KEY and OPENAI_BASE_URL so the AI SDK routes through the
185
+ Agentuity gateway.
186
+ </>
187
+ ),
188
+ },
189
+ {
190
+ title: 'Server API',
191
+ text: (
192
+ <>
193
+ Edit <code className="text-white">server.ts</code> to change the AI
194
+ model, prompt, or add new endpoints.
195
+ </>
196
+ ),
197
+ },
198
+ {
199
+ title: 'Vite + React',
200
+ text: (
201
+ <>
202
+ Edit <code className="text-white">src/App.tsx</code> for the frontend —
203
+ fast HMR with Vite and TanStack Query for data fetching.
204
+ </>
205
+ ),
206
+ },
207
+ ].map((step) => (
208
+ <div key={step.title} className="flex items-start gap-3">
209
+ <div className="flex size-4 shrink-0 items-center justify-center rounded border border-green-500 bg-green-950">
210
+ <svg
211
+ aria-hidden="true"
212
+ className="size-2.5"
213
+ fill="none"
214
+ height="24"
215
+ stroke="var(--color-green-500)"
216
+ strokeLinecap="round"
217
+ strokeLinejoin="round"
218
+ strokeWidth="2"
219
+ viewBox="0 0 24 24"
220
+ width="24"
221
+ xmlns="http://www.w3.org/2000/svg"
222
+ >
223
+ <path d="M20 6 9 17l-5-5" />
224
+ </svg>
225
+ </div>
226
+ <div>
227
+ <h4 className="-mt-0.5 mb-0.5 text-sm font-normal text-white">
228
+ {step.title}
229
+ </h4>
230
+ <p className="text-xs text-gray-400">{step.text}</p>
231
+ </div>
232
+ </div>
233
+ ))}
234
+ </div>
235
+ </div>
236
+ </div>
237
+ </div>
238
+ );
239
+ }
240
+
241
+ export default App;
@@ -0,0 +1,31 @@
1
+ @import 'tailwindcss';
2
+
3
+ @theme {
4
+ --color-cyan-500: oklch(0.9054 0.15455 194.769);
5
+ --color-cyan-700: oklch(0.6183 0.10555 194.769);
6
+ --color-green-500: oklch(0.723 0.219 149.579);
7
+ --color-green-950: oklch(0.171 0.052 150.3);
8
+ --color-red-400: oklch(0.704 0.191 22.216);
9
+ --color-red-800: oklch(0.395 0.141 25.723);
10
+ --color-red-950: oklch(0.258 0.092 26.042);
11
+ --color-blue-500: oklch(0.623 0.214 259.815);
12
+ --color-purple-600: oklch(0.558 0.288 302.321);
13
+ --animate-ellipsis: ellipsis 1.5s steps(4, end) infinite;
14
+ @keyframes ellipsis {
15
+ 0% { content: '.'; }
16
+ 25% { content: '..'; }
17
+ 50% { content: '...'; }
18
+ 75% { content: ''; }
19
+ }
20
+ }
21
+
22
+ [data-loading='true']::after {
23
+ content: '.';
24
+ @apply inline-block w-4 animate-ellipsis text-left;
25
+ }
26
+
27
+ body {
28
+ background-color: oklch(0.141 0.005 285.823);
29
+ font-family: system-ui, -apple-system, sans-serif;
30
+ margin: 0;
31
+ }
@@ -0,0 +1,15 @@
1
+ import { StrictMode } from 'react';
2
+ import { createRoot } from 'react-dom/client';
3
+ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
4
+ import App from './App.tsx';
5
+ import './index.css';
6
+
7
+ const queryClient = new QueryClient();
8
+
9
+ createRoot(document.getElementById('root')!).render(
10
+ <StrictMode>
11
+ <QueryClientProvider client={queryClient}>
12
+ <App />
13
+ </QueryClientProvider>
14
+ </StrictMode>,
15
+ );
@@ -1,15 +0,0 @@
1
- /**
2
- * AI SDK example generators for each framework.
3
- *
4
- * Each function returns a map of relative file paths to file contents
5
- * that demonstrate a simple AI chat endpoint using the Vercel AI SDK
6
- * with the Agentuity AI Gateway.
7
- */
8
- export declare function nextjsAiExample(): Record<string, string>;
9
- export declare function nuxtAiExample(): Record<string, string>;
10
- export declare function remixAiExample(): Record<string, string>;
11
- export declare function sveltekitAiExample(): Record<string, string>;
12
- export declare function astroAiExample(): Record<string, string>;
13
- export declare function honoAiExample(): Record<string, string>;
14
- export declare function viteReactAiExample(): Record<string, string>;
15
- //# sourceMappingURL=frameworks-ai-examples.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"frameworks-ai-examples.d.ts","sourceRoot":"","sources":["../../../src/cmd/project/frameworks-ai-examples.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,wBAAgB,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkBxD;AAED,wBAAgB,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAiBtD;AAED,wBAAgB,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkBvD;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAmB3D;AAED,wBAAgB,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAqBvD;AAED,wBAAgB,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAwBtD;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4B3D"}