@minnai/create-aura-app 0.0.23 → 0.0.25
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/package.json +36 -36
- package/templates/blank/index.html +12 -12
- package/templates/blank/package.json +22 -22
- package/templates/blank/src/App.tsx +21 -21
- package/templates/blank/src/index.css +40 -40
- package/templates/blank/src/main.tsx +10 -10
- package/templates/blank/tsconfig.json +30 -30
- package/templates/blank/tsconfig.node.json +11 -11
- package/templates/blank/vite.config.ts +7 -7
- package/templates/starter/.env.example +36 -8
- package/templates/starter/CONFIGURATION_GUIDE.md +309 -0
- package/templates/starter/LLM_BACKEND_MIGRATION.md +519 -0
- package/templates/starter/PLUG_AND_PLAY_GUIDE.md +440 -0
- package/templates/starter/README.md +3 -0
- package/templates/starter/aura.config.ts +233 -19
- package/templates/starter/package.json +2 -2
- package/templates/starter/public/usd.json +8 -8
- package/templates/starter/src/App.tsx +32 -18
- package/templates/starter/src/ambiance/README.md +342 -0
- package/templates/starter/src/ambiance/currency-air/logic.ts +49 -49
- package/templates/starter/src/ambiance/currency-air/manifest.ts +15 -15
- package/templates/starter/src/ambiance/currency-air/resources.ts +16 -16
- package/templates/starter/src/ambiance/currency-air/ui/index.tsx +42 -42
- package/templates/starter/src/ambiance/index.ts +114 -48
- package/templates/starter/src/ambiance/stocks-air/index.ts +3 -3
- package/templates/starter/src/ambiance/stocks-air/index.tsx +28 -28
- package/templates/starter/src/ambiance/stocks-air/logic.ts +87 -87
- package/templates/starter/src/ambiance/stocks-air/manifest.ts +15 -15
- package/templates/starter/src/ambiance/stocks-air/resources.ts +25 -23
- package/templates/starter/src/ambiance/stocks-air/ui/index.tsx +67 -67
- package/templates/starter/verify_backend.ts +42 -42
- package/dist/index.js +0 -108
- package/dist/scaffold.js +0 -78
- package/templates/starter/src/assets/react.svg +0 -1
- package/templates/starter/src/components/AnalyticsTracker.tsx +0 -13
- package/templates/starter/src/components/Playground/CodeEditor.tsx +0 -121
- package/templates/starter/src/components/Playground/Debugger.tsx +0 -71
- package/templates/starter/src/components/Playground/Playground.tsx +0 -221
- package/templates/starter/src/components/Playground/Sidebar.tsx +0 -68
- package/templates/starter/src/components/ProjectSidebar/ProjectSidebar.tsx +0 -219
- package/templates/starter/src/components/TourGuide/TourGuide.tsx +0 -16
- package/templates/starter/src/components/TourGuide/index.ts +0 -1
- package/templates/starter/src/components/TourGuide/tour-flow.yaml +0 -137
- package/templates/starter/src/components/TourGuide/useTourEngine.ts +0 -376
- package/templates/starter/src/services/AnalyticsService.ts +0 -181
- package/templates/starter/src/types/ContextHandler.ts +0 -13
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@minnai/create-aura-app",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Scaffolding tool for new Aura projects",
|
|
5
|
-
"bin": "dist/index.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist",
|
|
8
|
-
"templates"
|
|
9
|
-
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "tsc",
|
|
12
|
-
"dev": "tsc -w",
|
|
13
|
-
"start": "node dist/index.js",
|
|
14
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"aura",
|
|
18
|
-
"scaffold",
|
|
19
|
-
"cli",
|
|
20
|
-
"create-aura-app"
|
|
21
|
-
],
|
|
22
|
-
"author": "Minn.ai",
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"commander": "^13.1.0",
|
|
26
|
-
"prompts": "^2.4.2",
|
|
27
|
-
"kleur": "^4.1.5",
|
|
28
|
-
"fs-extra": "^11.3.0"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@types/node": "^22.13.0",
|
|
32
|
-
"@types/prompts": "^2.4.9",
|
|
33
|
-
"@types/fs-extra": "^11.0.4",
|
|
34
|
-
"typescript": "^5.7.3"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@minnai/create-aura-app",
|
|
3
|
+
"version": "0.0.25",
|
|
4
|
+
"description": "Scaffolding tool for new Aura projects",
|
|
5
|
+
"bin": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"templates"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"dev": "tsc -w",
|
|
13
|
+
"start": "node dist/index.js",
|
|
14
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"aura",
|
|
18
|
+
"scaffold",
|
|
19
|
+
"cli",
|
|
20
|
+
"create-aura-app"
|
|
21
|
+
],
|
|
22
|
+
"author": "Minn.ai",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"commander": "^13.1.0",
|
|
26
|
+
"prompts": "^2.4.2",
|
|
27
|
+
"kleur": "^4.1.5",
|
|
28
|
+
"fs-extra": "^11.3.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/node": "^22.13.0",
|
|
32
|
+
"@types/prompts": "^2.4.9",
|
|
33
|
+
"@types/fs-extra": "^11.0.4",
|
|
34
|
+
"typescript": "^5.7.3"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<title>Aura App</title>
|
|
7
|
-
</head>
|
|
8
|
-
<body>
|
|
9
|
-
<div id="root"></div>
|
|
10
|
-
<script type="module" src="/src/main.tsx"></script>
|
|
11
|
-
</body>
|
|
12
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Aura App</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="root"></div>
|
|
10
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-aura-app",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "vite",
|
|
8
|
-
"build": "tsc && vite build",
|
|
9
|
-
"preview": "vite preview"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@minnai/aura": "latest",
|
|
13
|
-
"react": "^18.2.0",
|
|
14
|
-
"react-dom": "^18.2.0"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@types/react": "^18.2.66",
|
|
18
|
-
"@types/react-dom": "^18.2.22",
|
|
19
|
-
"@vitejs/plugin-react": "^4.2.1",
|
|
20
|
-
"typescript": "^5.2.2",
|
|
21
|
-
"vite": "^5.2.0"
|
|
22
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "my-aura-app",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "tsc && vite build",
|
|
9
|
+
"preview": "vite preview"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@minnai/aura": "latest",
|
|
13
|
+
"react": "^18.2.0",
|
|
14
|
+
"react-dom": "^18.2.0"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/react": "^18.2.66",
|
|
18
|
+
"@types/react-dom": "^18.2.22",
|
|
19
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
20
|
+
"typescript": "^5.2.2",
|
|
21
|
+
"vite": "^5.2.0"
|
|
22
|
+
}
|
|
23
23
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { useState } from 'react'
|
|
2
|
-
|
|
3
|
-
function App() {
|
|
4
|
-
const [count, setCount] = useState(0)
|
|
5
|
-
|
|
6
|
-
return (
|
|
7
|
-
<div style={{ padding: '2rem', fontFamily: 'sans-serif' }}>
|
|
8
|
-
<h1>Vite + React + Aura</h1>
|
|
9
|
-
<div className="card">
|
|
10
|
-
<button onClick={() => setCount((count) => count + 1)}>
|
|
11
|
-
count is {count}
|
|
12
|
-
</button>
|
|
13
|
-
<p>
|
|
14
|
-
Edit <code>src/App.tsx</code> to start building your Aura app.
|
|
15
|
-
</p>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export default App
|
|
1
|
+
import { useState } from 'react'
|
|
2
|
+
|
|
3
|
+
function App() {
|
|
4
|
+
const [count, setCount] = useState(0)
|
|
5
|
+
|
|
6
|
+
return (
|
|
7
|
+
<div style={{ padding: '2rem', fontFamily: 'sans-serif' }}>
|
|
8
|
+
<h1>Vite + React + Aura</h1>
|
|
9
|
+
<div className="card">
|
|
10
|
+
<button onClick={() => setCount((count) => count + 1)}>
|
|
11
|
+
count is {count}
|
|
12
|
+
</button>
|
|
13
|
+
<p>
|
|
14
|
+
Edit <code>src/App.tsx</code> to start building your Aura app.
|
|
15
|
+
</p>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default App
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
3
|
-
line-height: 1.5;
|
|
4
|
-
font-weight: 400;
|
|
5
|
-
color-scheme: light dark;
|
|
6
|
-
color: rgba(255, 255, 255, 0.87);
|
|
7
|
-
background-color: #242424;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
body {
|
|
11
|
-
margin: 0;
|
|
12
|
-
display: flex;
|
|
13
|
-
place-items: center;
|
|
14
|
-
min-width: 320px;
|
|
15
|
-
min-height: 100vh;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
h1 {
|
|
19
|
-
font-size: 3.2em;
|
|
20
|
-
line-height: 1.1;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
button {
|
|
24
|
-
border-radius: 8px;
|
|
25
|
-
border: 1px solid transparent;
|
|
26
|
-
padding: 0.6em 1.2em;
|
|
27
|
-
font-size: 1em;
|
|
28
|
-
font-weight: 500;
|
|
29
|
-
font-family: inherit;
|
|
30
|
-
background-color: #1a1a1a;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
transition: border-color 0.25s;
|
|
33
|
-
}
|
|
34
|
-
button:hover {
|
|
35
|
-
border-color: #646cff;
|
|
36
|
-
}
|
|
37
|
-
button:focus,
|
|
38
|
-
button:focus-visible {
|
|
39
|
-
outline: 4px auto -webkit-focus-ring-color;
|
|
40
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
3
|
+
line-height: 1.5;
|
|
4
|
+
font-weight: 400;
|
|
5
|
+
color-scheme: light dark;
|
|
6
|
+
color: rgba(255, 255, 255, 0.87);
|
|
7
|
+
background-color: #242424;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
body {
|
|
11
|
+
margin: 0;
|
|
12
|
+
display: flex;
|
|
13
|
+
place-items: center;
|
|
14
|
+
min-width: 320px;
|
|
15
|
+
min-height: 100vh;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
h1 {
|
|
19
|
+
font-size: 3.2em;
|
|
20
|
+
line-height: 1.1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
button {
|
|
24
|
+
border-radius: 8px;
|
|
25
|
+
border: 1px solid transparent;
|
|
26
|
+
padding: 0.6em 1.2em;
|
|
27
|
+
font-size: 1em;
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
font-family: inherit;
|
|
30
|
+
background-color: #1a1a1a;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
transition: border-color 0.25s;
|
|
33
|
+
}
|
|
34
|
+
button:hover {
|
|
35
|
+
border-color: #646cff;
|
|
36
|
+
}
|
|
37
|
+
button:focus,
|
|
38
|
+
button:focus-visible {
|
|
39
|
+
outline: 4px auto -webkit-focus-ring-color;
|
|
40
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import ReactDOM from 'react-dom/client'
|
|
3
|
-
import App from './App'
|
|
4
|
-
import './index.css'
|
|
5
|
-
|
|
6
|
-
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
7
|
-
<React.StrictMode>
|
|
8
|
-
<App />
|
|
9
|
-
</React.StrictMode>,
|
|
10
|
-
)
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import ReactDOM from 'react-dom/client'
|
|
3
|
+
import App from './App'
|
|
4
|
+
import './index.css'
|
|
5
|
+
|
|
6
|
+
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
7
|
+
<React.StrictMode>
|
|
8
|
+
<App />
|
|
9
|
+
</React.StrictMode>,
|
|
10
|
+
)
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"lib": [
|
|
6
|
-
"ES2020",
|
|
7
|
-
"DOM",
|
|
8
|
-
"DOM.Iterable"
|
|
9
|
-
],
|
|
10
|
-
"module": "ESNext",
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
|
-
"allowImportingTsExtensions": true,
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"isolatedModules": true,
|
|
16
|
-
"noEmit": true,
|
|
17
|
-
"jsx": "react-jsx",
|
|
18
|
-
"strict": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
"noFallthroughCasesInSwitch": true
|
|
22
|
-
},
|
|
23
|
-
"include": [
|
|
24
|
-
"src"
|
|
25
|
-
],
|
|
26
|
-
"references": [
|
|
27
|
-
{
|
|
28
|
-
"path": "./tsconfig.node.json"
|
|
29
|
-
}
|
|
30
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"lib": [
|
|
6
|
+
"ES2020",
|
|
7
|
+
"DOM",
|
|
8
|
+
"DOM.Iterable"
|
|
9
|
+
],
|
|
10
|
+
"module": "ESNext",
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"allowImportingTsExtensions": true,
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"jsx": "react-jsx",
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true,
|
|
21
|
+
"noFallthroughCasesInSwitch": true
|
|
22
|
+
},
|
|
23
|
+
"include": [
|
|
24
|
+
"src"
|
|
25
|
+
],
|
|
26
|
+
"references": [
|
|
27
|
+
{
|
|
28
|
+
"path": "./tsconfig.node.json"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
31
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"composite": true,
|
|
4
|
-
"skipLibCheck": true,
|
|
5
|
-
"module": "ESNext",
|
|
6
|
-
"moduleResolution": "bundler",
|
|
7
|
-
"allowSyntheticDefaultImports": true
|
|
8
|
-
},
|
|
9
|
-
"include": [
|
|
10
|
-
"vite.config.ts"
|
|
11
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"composite": true,
|
|
4
|
+
"skipLibCheck": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
"allowSyntheticDefaultImports": true
|
|
8
|
+
},
|
|
9
|
+
"include": [
|
|
10
|
+
"vite.config.ts"
|
|
11
|
+
]
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import react from '@vitejs/plugin-react'
|
|
3
|
-
|
|
4
|
-
// https://vitejs.dev/config/
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [react()],
|
|
7
|
-
})
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import react from '@vitejs/plugin-react'
|
|
3
|
+
|
|
4
|
+
// https://vitejs.dev/config/
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [react()],
|
|
7
|
+
})
|
|
@@ -1,14 +1,42 @@
|
|
|
1
|
-
#
|
|
2
|
-
#
|
|
1
|
+
# ============================================================================
|
|
2
|
+
# Aura LLM Backend Configuration
|
|
3
|
+
# ============================================================================
|
|
4
|
+
# Configure your Language Model backend in aura.config.ts
|
|
5
|
+
# If using direct API access (not proxy), add your API keys here:
|
|
6
|
+
|
|
7
|
+
# Gemini API Key (for direct Gemini access)
|
|
8
|
+
# Get one here: https://makersuite.google.com/app/apikey
|
|
9
|
+
VITE_GEMINI_API_KEY=
|
|
10
|
+
|
|
11
|
+
# OpenAI API Key (for OpenAI GPT models)
|
|
12
|
+
# Get one here: https://platform.openai.com/api-keys
|
|
13
|
+
VITE_OPENAI_API_KEY=
|
|
14
|
+
|
|
15
|
+
# Anthropic API Key (for Claude models)
|
|
16
|
+
# Get one here: https://console.anthropic.com/
|
|
17
|
+
VITE_ANTHROPIC_API_KEY=
|
|
18
|
+
|
|
19
|
+
# ============================================================================
|
|
20
|
+
# Aura Proxy Configuration (Legacy)
|
|
21
|
+
# ============================================================================
|
|
22
|
+
# If using the Aura managed proxy, no API key is needed
|
|
23
|
+
# The proxy is configured in aura.config.ts
|
|
24
|
+
|
|
25
|
+
# API Key for Aura Proxy (optional - for premium features)
|
|
3
26
|
VITE_AURA_API_KEY=
|
|
4
27
|
|
|
28
|
+
# Proxy URL (default: https://auraproxy-7bpt7e5tua-uc.a.run.app)
|
|
29
|
+
# Only change this if you're running your own proxy instance
|
|
30
|
+
VITE_SAGA_API_URL=https://auraproxy-7bpt7e5tua-uc.a.run.app
|
|
31
|
+
|
|
32
|
+
# ============================================================================
|
|
33
|
+
# AIR-Specific Configuration
|
|
34
|
+
# ============================================================================
|
|
35
|
+
|
|
5
36
|
# YouTube API Key (for YouTubeAIR)
|
|
6
37
|
# Get one here: https://console.cloud.google.com/apis/credentials
|
|
7
38
|
VITE_YOUTUBE_API_KEY=
|
|
8
39
|
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
# AlphaVantage Key (for StocksAIR)
|
|
14
|
-
STOCK_API_KEY=
|
|
40
|
+
# AlphaVantage API Key (for StocksAIR)
|
|
41
|
+
# Get one here: https://www.alphavantage.co/support/#api-key
|
|
42
|
+
VITE_STOCK_API_KEY=
|