@guuey/create-agentic-app 0.1.1 → 0.1.2
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/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/templates/claude-agent-sdk/package.json +3 -3
- package/dist/templates/claude-agent-sdk/web/package.json +1 -1
- package/dist/templates/google-adk/.env.example +4 -0
- package/dist/templates/google-adk/.mcp.json +1 -0
- package/dist/templates/google-adk/README.md +74 -0
- package/dist/templates/google-adk/ggui/blueprints/.gitkeep +0 -0
- package/dist/templates/google-adk/ggui/ggui.json +15 -0
- package/dist/templates/google-adk/ggui/themes/.gitkeep +0 -0
- package/dist/templates/google-adk/guuey.json +14 -0
- package/dist/templates/google-adk/mcps/todo/Dockerfile +46 -0
- package/dist/templates/google-adk/mcps/todo/package.json +22 -0
- package/dist/templates/google-adk/mcps/todo/src/server.ts +173 -0
- package/dist/templates/google-adk/mcps/todo/tsconfig.json +15 -0
- package/dist/templates/google-adk/package.json +22 -0
- package/dist/templates/google-adk/pnpm-workspace.yaml +34 -0
- package/dist/templates/google-adk/prompts/system.md +4 -0
- package/dist/templates/google-adk/scripts/dev.mjs +44 -0
- package/dist/templates/google-adk/src/agent.ts +39 -0
- package/dist/templates/google-adk/tsconfig.json +15 -0
- package/dist/templates/google-adk/tsup.config.ts +13 -0
- package/dist/templates/google-adk/web/.env.example +17 -0
- package/dist/templates/google-adk/web/index.html +13 -0
- package/dist/templates/google-adk/web/package.json +25 -0
- package/dist/templates/google-adk/web/sandbox-proxy.ts +239 -0
- package/dist/templates/google-adk/web/src/App.tsx +272 -0
- package/dist/templates/google-adk/web/src/main.tsx +12 -0
- package/dist/templates/google-adk/web/src/useAgentChat.ts +122 -0
- package/dist/templates/google-adk/web/src/vite-env.d.ts +27 -0
- package/dist/templates/google-adk/web/tsconfig.json +20 -0
- package/dist/templates/google-adk/web/vite.config.ts +12 -0
- package/dist/templates/openai-agents-sdk/package.json +3 -3
- package/dist/templates/openai-agents-sdk/web/package.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Typed Vite env vars. `import.meta.env` is Vite's analog of Next.js's
|
|
5
|
+
* `process.env.NEXT_PUBLIC_*` — anything declared here is exposed to the
|
|
6
|
+
* browser bundle at build time.
|
|
7
|
+
*/
|
|
8
|
+
interface ImportMetaEnv {
|
|
9
|
+
/**
|
|
10
|
+
* The agent's base URL (e.g. `http://localhost:6790` in local dev, via
|
|
11
|
+
* `guuey dev`). Falls back to that same local-dev default when unset —
|
|
12
|
+
* see `useAgentChat.ts`.
|
|
13
|
+
*/
|
|
14
|
+
readonly VITE_AGENT_ENDPOINT_URL?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Second-origin MCP-Apps sandbox page URL for `<AppRenderer>` (e.g.
|
|
17
|
+
* `https://sandbox.example.com/sandbox.html`). Optional in dev — the
|
|
18
|
+
* `sandboxProxyPlugin` in `vite.config.ts` serves one on :6891. REQUIRED
|
|
19
|
+
* for deployed builds that render UI resources: without it the app shows
|
|
20
|
+
* a plain-text notice instead (see `App.tsx` + `../sandbox-proxy.ts`).
|
|
21
|
+
*/
|
|
22
|
+
readonly VITE_SANDBOX_URL?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface ImportMeta {
|
|
26
|
+
readonly env: ImportMetaEnv;
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2023",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"useDefineForClassFields": true,
|
|
6
|
+
"allowJs": true,
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"strict": true,
|
|
9
|
+
"noEmit": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"module": "esnext",
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"jsx": "react-jsx",
|
|
16
|
+
"types": ["vite/client"]
|
|
17
|
+
},
|
|
18
|
+
"include": ["src", "vite.config.ts", "sandbox-proxy.ts"],
|
|
19
|
+
"exclude": ["node_modules", "dist"]
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import react from "@vitejs/plugin-react";
|
|
3
|
+
import { sandboxProxyPlugin } from "./sandbox-proxy";
|
|
4
|
+
|
|
5
|
+
// Port is passed via the `dev` script's `--port 6890` flag (see package.json)
|
|
6
|
+
// so it stays visible in one place; `scripts/dev.mjs` boots this on the same
|
|
7
|
+
// port. The sandbox proxy plugin serves the MCP-Apps sandbox page on :6891 —
|
|
8
|
+
// a SECOND origin, as the spec's double-iframe architecture requires (see
|
|
9
|
+
// ./sandbox-proxy.ts).
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
plugins: [react(), sandboxProxyPlugin()],
|
|
12
|
+
});
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@openai/agents": "^0.12.0",
|
|
13
|
-
"@guuey/config": "0.
|
|
14
|
-
"@guuey/worker": "0.
|
|
13
|
+
"@guuey/config": "0.1.1",
|
|
14
|
+
"@guuey/worker": "0.1.1"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@guuey/cli": "0.
|
|
17
|
+
"@guuey/cli": "0.1.2",
|
|
18
18
|
"tsup": "^8.5.0",
|
|
19
19
|
"tsx": "^4.19.0",
|
|
20
20
|
"typescript": "^5.8.0"
|
package/package.json
CHANGED