@alexkroman1/aai-cli 0.9.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.
- package/LICENSE +21 -0
- package/dist/_build-p1HHkdon.mjs +132 -0
- package/dist/_discover-BzlCDVZ6.mjs +161 -0
- package/dist/_init-l_uoyFCN.mjs +82 -0
- package/dist/_link-BGXGFYWa.mjs +47 -0
- package/dist/_server-common-qLA1QU2C.mjs +36 -0
- package/dist/_ui-kJIua5L9.mjs +44 -0
- package/dist/cli.mjs +318 -0
- package/dist/deploy-KyNJaoP5.mjs +86 -0
- package/dist/dev-DBFvKyzk.mjs +39 -0
- package/dist/init-BWG5OrQa.mjs +65 -0
- package/dist/rag-BnCMnccf.mjs +173 -0
- package/dist/secret-CzeHIGzE.mjs +50 -0
- package/dist/start-C1qkhU4O.mjs +23 -0
- package/package.json +39 -0
- package/templates/_shared/.env.example +5 -0
- package/templates/_shared/CLAUDE.md +1051 -0
- package/templates/_shared/biome.json +32 -0
- package/templates/_shared/global.d.ts +1 -0
- package/templates/_shared/index.html +16 -0
- package/templates/_shared/package.json +23 -0
- package/templates/_shared/tsconfig.json +15 -0
- package/templates/code-interpreter/agent.ts +27 -0
- package/templates/code-interpreter/client.tsx +3 -0
- package/templates/css.d.ts +1 -0
- package/templates/dispatch-center/agent.ts +1227 -0
- package/templates/dispatch-center/client.tsx +505 -0
- package/templates/embedded-assets/agent.ts +48 -0
- package/templates/embedded-assets/client.tsx +3 -0
- package/templates/embedded-assets/knowledge.json +20 -0
- package/templates/health-assistant/agent.ts +160 -0
- package/templates/health-assistant/client.tsx +3 -0
- package/templates/infocom-adventure/agent.ts +164 -0
- package/templates/infocom-adventure/client.tsx +300 -0
- package/templates/math-buddy/agent.ts +21 -0
- package/templates/math-buddy/client.tsx +3 -0
- package/templates/memory-agent/agent.ts +20 -0
- package/templates/memory-agent/client.tsx +3 -0
- package/templates/night-owl/agent.ts +98 -0
- package/templates/night-owl/client.tsx +12 -0
- package/templates/personal-finance/agent.ts +26 -0
- package/templates/personal-finance/client.tsx +3 -0
- package/templates/pizza-ordering/agent.ts +218 -0
- package/templates/pizza-ordering/client.tsx +264 -0
- package/templates/simple/agent.ts +6 -0
- package/templates/simple/client.tsx +3 -0
- package/templates/smart-research/agent.ts +164 -0
- package/templates/smart-research/client.tsx +3 -0
- package/templates/solo-rpg/agent.ts +1244 -0
- package/templates/solo-rpg/client.tsx +698 -0
- package/templates/support/README.md +62 -0
- package/templates/support/agent.ts +19 -0
- package/templates/support/client.tsx +3 -0
- package/templates/travel-concierge/agent.ts +29 -0
- package/templates/travel-concierge/client.tsx +3 -0
- package/templates/tsconfig.json +1 -0
- package/templates/web-researcher/agent.ts +17 -0
- package/templates/web-researcher/client.tsx +3 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
|
|
3
|
+
"files": {
|
|
4
|
+
"includes": ["**"],
|
|
5
|
+
"ignores": ["node_modules", "dist", ".aai"]
|
|
6
|
+
},
|
|
7
|
+
"linter": {
|
|
8
|
+
"enabled": true,
|
|
9
|
+
"rules": {
|
|
10
|
+
"recommended": true,
|
|
11
|
+
"correctness": {
|
|
12
|
+
"noUnusedImports": "error",
|
|
13
|
+
"noUnusedVariables": "error"
|
|
14
|
+
},
|
|
15
|
+
"a11y": {
|
|
16
|
+
"recommended": false
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"formatter": {
|
|
21
|
+
"enabled": true,
|
|
22
|
+
"indentStyle": "space",
|
|
23
|
+
"indentWidth": 2,
|
|
24
|
+
"lineWidth": 100
|
|
25
|
+
},
|
|
26
|
+
"javascript": {
|
|
27
|
+
"formatter": {
|
|
28
|
+
"quoteStyle": "double",
|
|
29
|
+
"semicolons": "always"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module "*.css";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta
|
|
6
|
+
name="viewport"
|
|
7
|
+
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
|
|
8
|
+
/>
|
|
9
|
+
<title>aai</title>
|
|
10
|
+
<link rel="icon" href="data:," />
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<main id="app"></main>
|
|
14
|
+
<script type="module" src="./client.tsx"></script>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "module",
|
|
3
|
+
"scripts": {
|
|
4
|
+
"dev": "aai dev",
|
|
5
|
+
"build": "aai deploy --dry-run",
|
|
6
|
+
"deploy": "aai deploy",
|
|
7
|
+
"lint": "biome check .",
|
|
8
|
+
"lint:fix": "biome check --write ."
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@alexkroman1/aai": "0.9.0",
|
|
12
|
+
"@alexkroman1/aai-ui": "0.9.0",
|
|
13
|
+
"@preact/signals": "^2.8.2",
|
|
14
|
+
"preact": "^10.29.0",
|
|
15
|
+
"tailwindcss": "^4.2.1",
|
|
16
|
+
"zod": "^4.3.6"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@biomejs/biome": "^2.4.8",
|
|
20
|
+
"@types/node": "^25.5.0",
|
|
21
|
+
"typescript": "^6.0.2"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2024",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"strict": true,
|
|
7
|
+
"verbatimModuleSyntax": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"types": [],
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"jsx": "react-jsx",
|
|
12
|
+
"jsxImportSource": "preact",
|
|
13
|
+
"lib": ["ES2024", "DOM", "DOM.Iterable"]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineAgent } from "@alexkroman1/aai";
|
|
2
|
+
|
|
3
|
+
export default defineAgent({
|
|
4
|
+
name: "Coda",
|
|
5
|
+
instructions:
|
|
6
|
+
`You are Coda, a problem-solving assistant who answers questions by writing and running JavaScript code.
|
|
7
|
+
|
|
8
|
+
CRITICAL RULES:
|
|
9
|
+
- You MUST use the run_code tool for ANY question involving math, counting, string manipulation, data processing, logic, or anything that benefits from exact computation.
|
|
10
|
+
- NEVER do mental math or estimate. Always write code and report the exact result.
|
|
11
|
+
- Use console.log() to output intermediate steps. The last expression is captured automatically.
|
|
12
|
+
- If the code throws an error, fix it and try again.
|
|
13
|
+
- Explain what the code does briefly, then give the answer.
|
|
14
|
+
- Keep your spoken responses short — just say what the code found.
|
|
15
|
+
|
|
16
|
+
Examples of questions you MUST use code for:
|
|
17
|
+
- "What is 127 times 849?" → run_code
|
|
18
|
+
- "How many prime numbers are there below 1000?" → run_code
|
|
19
|
+
- "Reverse the string 'hello world'" → run_code
|
|
20
|
+
- "What's the 50th fibonacci number?" → run_code
|
|
21
|
+
- "Sort these numbers: 42, 17, 93, 8, 55" → run_code
|
|
22
|
+
- "What day of the week was January 1st, 2000?" → run_code
|
|
23
|
+
- "Convert 255 to binary" → run_code`,
|
|
24
|
+
greeting:
|
|
25
|
+
"Hey, I'm Coda. I solve problems by writing and running code. Try asking me something like, what's the 50th fibonacci number, or what day of the week was January 1st 2000.",
|
|
26
|
+
builtinTools: ["run_code"],
|
|
27
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module "*.css";
|