arkaos 2.2.2 → 2.3.1
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/VERSION +1 -1
- package/arka/skills/conclave/SKILL.md +194 -0
- package/arka/skills/human-writing/SKILL.md +143 -0
- package/config/agent-memory-template.md +28 -0
- package/config/disc-profiles.json +108 -0
- package/config/disc-team-validator.sh +94 -0
- package/config/gotchas-fixes.json +148 -0
- package/config/profile-template.json +12 -0
- package/config/providers-registry.json +56 -0
- package/config/settings-template.json +42 -0
- package/config/standards/communication.md +64 -0
- package/config/standards/orchestration.md +91 -0
- package/config/statusline-v2.sh +101 -0
- package/config/statusline.sh +139 -0
- package/config/system-prompt.sh +190 -0
- package/dashboard/LICENSE +21 -0
- package/dashboard/README.md +64 -0
- package/dashboard/app/app.config.ts +8 -0
- package/dashboard/app/app.vue +42 -0
- package/dashboard/app/assets/css/main.css +18 -0
- package/dashboard/app/composables/useApi.ts +8 -0
- package/dashboard/app/composables/useDashboard.ts +19 -0
- package/dashboard/app/error.vue +24 -0
- package/dashboard/app/layouts/default.vue +114 -0
- package/dashboard/app/pages/agents/[id].vue +506 -0
- package/dashboard/app/pages/agents/index.vue +225 -0
- package/dashboard/app/pages/budget.vue +132 -0
- package/dashboard/app/pages/commands.vue +180 -0
- package/dashboard/app/pages/health.vue +98 -0
- package/dashboard/app/pages/index.vue +126 -0
- package/dashboard/app/pages/knowledge.vue +729 -0
- package/dashboard/app/pages/personas.vue +597 -0
- package/dashboard/app/pages/settings.vue +146 -0
- package/dashboard/app/pages/tasks.vue +203 -0
- package/dashboard/app/types/index.d.ts +181 -0
- package/dashboard/app/utils/index.ts +7 -0
- package/dashboard/nuxt.config.ts +39 -0
- package/dashboard/package.json +37 -0
- package/dashboard/pnpm-workspace.yaml +7 -0
- package/dashboard/tsconfig.json +10 -0
- package/installer/cli.js +0 -0
- package/installer/index.js +262 -62
- package/knowledge/INDEX.md +34 -0
- package/knowledge/agents-registry.json +254 -0
- package/knowledge/channels-config.json +6 -0
- package/knowledge/commands-keywords.json +466 -0
- package/knowledge/commands-registry.json +2791 -0
- package/knowledge/commands-registry.json.bak +2791 -0
- package/knowledge/ecosystems.json +7 -0
- package/knowledge/obsidian-config.json +112 -0
- package/package.json +10 -6
- package/pyproject.toml +1 -1
- package/scripts/check-version.js +13 -0
- package/scripts/dashboard-api.py +636 -0
- package/scripts/knowledge-index.py +113 -0
- package/scripts/skill_validator.py +217 -0
- package/scripts/start-dashboard.sh +54 -0
- package/scripts/synapse-bridge.py +199 -0
- package/scripts/tools/brand_voice_analyzer.py +192 -0
- package/scripts/tools/dcf_calculator.py +168 -0
- package/scripts/tools/headline_scorer.py +215 -0
- package/scripts/tools/okr_cascade.py +207 -0
- package/scripts/tools/rice_prioritizer.py +230 -0
- package/scripts/tools/saas_metrics.py +234 -0
- package/scripts/tools/seo_checker.py +197 -0
- package/scripts/tools/tech_debt_analyzer.py +206 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# ============================================================================
|
|
3
|
+
# ARKA OS — Dynamic System Prompt Generator
|
|
4
|
+
# Generates personalized context injected via --append-system-prompt
|
|
5
|
+
# ============================================================================
|
|
6
|
+
|
|
7
|
+
ARKA_OS="${ARKA_OS:-$HOME/.claude/skills/arka}"
|
|
8
|
+
PROFILE="$HOME/.arka-os/profile.json"
|
|
9
|
+
PROJECTS_DIR="$ARKA_OS/../../.." # fallback
|
|
10
|
+
|
|
11
|
+
# ─── Read Profile ────────────────────────────────────────────────────────────
|
|
12
|
+
|
|
13
|
+
if [ -f "$PROFILE" ] && command -v jq &>/dev/null; then
|
|
14
|
+
USER_NAME=$(jq -r '.user_name // ""' "$PROFILE")
|
|
15
|
+
COMPANY_NAME=$(jq -r '.company_name // ""' "$PROFILE")
|
|
16
|
+
ROLE=$(jq -r '.role // ""' "$PROFILE")
|
|
17
|
+
INDUSTRY=$(jq -r '.industry // ""' "$PROFILE")
|
|
18
|
+
PROJECTS_PATH=$(jq -r '.projects_dir // ""' "$PROFILE")
|
|
19
|
+
OBJECTIVES=$(jq -r '.objectives // [] | join(", ")' "$PROFILE")
|
|
20
|
+
PREFERRED_DEPTS=$(jq -r '.preferred_departments // [] | join(", ")' "$PROFILE")
|
|
21
|
+
else
|
|
22
|
+
USER_NAME=""
|
|
23
|
+
COMPANY_NAME=""
|
|
24
|
+
ROLE=""
|
|
25
|
+
INDUSTRY=""
|
|
26
|
+
PROJECTS_PATH=""
|
|
27
|
+
OBJECTIVES=""
|
|
28
|
+
PREFERRED_DEPTS=""
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# ─── Detect Active Projects ─────────────────────────────────────────────────
|
|
32
|
+
|
|
33
|
+
ACTIVE_PROJECTS=""
|
|
34
|
+
ARKA_PROJECTS_DIR="$(cat "$ARKA_OS/.repo-path" 2>/dev/null)/projects"
|
|
35
|
+
if [ -d "$ARKA_PROJECTS_DIR" ]; then
|
|
36
|
+
for proj_dir in "$ARKA_PROJECTS_DIR"/*/; do
|
|
37
|
+
[ -d "$proj_dir" ] || continue
|
|
38
|
+
proj_name=$(basename "$proj_dir")
|
|
39
|
+
proj_stack=""
|
|
40
|
+
if [ -f "${proj_dir}PROJECT.md" ]; then
|
|
41
|
+
# Extract stack from PROJECT.md frontmatter or first lines
|
|
42
|
+
proj_stack=$(grep -i "stack\|framework\|tech" "${proj_dir}PROJECT.md" 2>/dev/null | head -1 | sed 's/.*: *//' || echo "")
|
|
43
|
+
fi
|
|
44
|
+
if [ -n "$ACTIVE_PROJECTS" ]; then
|
|
45
|
+
ACTIVE_PROJECTS="$ACTIVE_PROJECTS\n - $proj_name${proj_stack:+ ($proj_stack)}"
|
|
46
|
+
else
|
|
47
|
+
ACTIVE_PROJECTS=" - $proj_name${proj_stack:+ ($proj_stack)}"
|
|
48
|
+
fi
|
|
49
|
+
done
|
|
50
|
+
fi
|
|
51
|
+
|
|
52
|
+
# Also scan user's projects directory
|
|
53
|
+
if [ -n "$PROJECTS_PATH" ] && [ -d "$PROJECTS_PATH" ]; then
|
|
54
|
+
for proj_dir in "$PROJECTS_PATH"/*/; do
|
|
55
|
+
[ -d "$proj_dir" ] || continue
|
|
56
|
+
# Only include directories that look like projects (have git, package.json, composer.json, etc.)
|
|
57
|
+
if [ -d "${proj_dir}.git" ] || [ -f "${proj_dir}package.json" ] || [ -f "${proj_dir}composer.json" ] || [ -f "${proj_dir}pyproject.toml" ]; then
|
|
58
|
+
proj_name=$(basename "$proj_dir")
|
|
59
|
+
if [ -n "$ACTIVE_PROJECTS" ]; then
|
|
60
|
+
ACTIVE_PROJECTS="$ACTIVE_PROJECTS\n - $proj_name (in $PROJECTS_PATH)"
|
|
61
|
+
else
|
|
62
|
+
ACTIVE_PROJECTS=" - $proj_name (in $PROJECTS_PATH)"
|
|
63
|
+
fi
|
|
64
|
+
fi
|
|
65
|
+
done
|
|
66
|
+
fi
|
|
67
|
+
|
|
68
|
+
# ─── Generate System Prompt ─────────────────────────────────────────────────
|
|
69
|
+
|
|
70
|
+
cat << 'PROMPT_HEADER'
|
|
71
|
+
# ARKA OS — Dynamic Context
|
|
72
|
+
|
|
73
|
+
PROMPT_HEADER
|
|
74
|
+
|
|
75
|
+
# Identity section
|
|
76
|
+
if [ -n "$USER_NAME" ] || [ -n "$COMPANY_NAME" ]; then
|
|
77
|
+
echo "## Identity"
|
|
78
|
+
echo ""
|
|
79
|
+
if [ -n "$COMPANY_NAME" ]; then
|
|
80
|
+
echo "You are ARKA OS, the AI company operating system for **${COMPANY_NAME}**."
|
|
81
|
+
else
|
|
82
|
+
echo "You are ARKA OS, the AI company operating system."
|
|
83
|
+
fi
|
|
84
|
+
if [ -n "$USER_NAME" ]; then
|
|
85
|
+
echo "The user's name is **${USER_NAME}**."
|
|
86
|
+
fi
|
|
87
|
+
if [ -n "$ROLE" ]; then
|
|
88
|
+
echo "Their role is **${ROLE}**."
|
|
89
|
+
fi
|
|
90
|
+
if [ -n "$INDUSTRY" ]; then
|
|
91
|
+
echo "Industry: **${INDUSTRY}**."
|
|
92
|
+
fi
|
|
93
|
+
if [ -n "$OBJECTIVES" ] && [ "$OBJECTIVES" != "" ]; then
|
|
94
|
+
echo "Current objectives: ${OBJECTIVES}."
|
|
95
|
+
fi
|
|
96
|
+
echo ""
|
|
97
|
+
fi
|
|
98
|
+
|
|
99
|
+
# Active projects
|
|
100
|
+
if [ -n "$ACTIVE_PROJECTS" ]; then
|
|
101
|
+
echo "## Active Projects"
|
|
102
|
+
echo ""
|
|
103
|
+
echo -e "$ACTIVE_PROJECTS"
|
|
104
|
+
echo ""
|
|
105
|
+
fi
|
|
106
|
+
|
|
107
|
+
# Smart routing with /do promotion
|
|
108
|
+
cat << 'ROUTING'
|
|
109
|
+
## Universal Command — /do
|
|
110
|
+
|
|
111
|
+
Instead of memorizing slash commands, just describe what you need:
|
|
112
|
+
|
|
113
|
+
| Instead of... | Just say... |
|
|
114
|
+
|---------------|-------------|
|
|
115
|
+
| `/dev feature "auth"` | "add user authentication" |
|
|
116
|
+
| `/mkt social "AI"` | "create social posts about AI" |
|
|
117
|
+
| `/ecom audit mystore.com` | "audit my online store" |
|
|
118
|
+
| `/fin forecast 6` | "forecast revenue for 6 months" |
|
|
119
|
+
|
|
120
|
+
You can also type `/do <anything>` to be explicit. Or use the department slash commands if you know them.
|
|
121
|
+
|
|
122
|
+
**Routing behavior:**
|
|
123
|
+
1. Load `knowledge/commands-registry.json` and match the user's request against command keywords and examples
|
|
124
|
+
2. If high-confidence single match → announce the resolved command and execute
|
|
125
|
+
3. If multiple matches → show numbered options and ask the user to pick
|
|
126
|
+
4. If no match → treat as a general question and answer directly
|
|
127
|
+
5. If the request explicitly uses a slash command → route directly to that department
|
|
128
|
+
|
|
129
|
+
Type `/arka help` for the full command reference.
|
|
130
|
+
|
|
131
|
+
ROUTING
|
|
132
|
+
|
|
133
|
+
# Personalized greeting instruction
|
|
134
|
+
if [ -n "$USER_NAME" ]; then
|
|
135
|
+
cat << EOF
|
|
136
|
+
## Session Greeting
|
|
137
|
+
|
|
138
|
+
On the **first message** of a session (when no specific command is given), greet the user with a branded ARKA OS welcome:
|
|
139
|
+
|
|
140
|
+
\`\`\`
|
|
141
|
+
══════ ARKA OS ══════
|
|
142
|
+
Welcome back, ${USER_NAME}!
|
|
143
|
+
|
|
144
|
+
${COMPANY_NAME:+Company: ${COMPANY_NAME} | }${ROLE:+Role: ${ROLE} | }${INDUSTRY:+Industry: ${INDUSTRY}}
|
|
145
|
+
${OBJECTIVES:+Objectives: ${OBJECTIVES}}
|
|
146
|
+
═════════════════════
|
|
147
|
+
\`\`\`
|
|
148
|
+
|
|
149
|
+
Then show:
|
|
150
|
+
- Number of active projects (scan projects/ directory)
|
|
151
|
+
- Quick command reference tailored to their role
|
|
152
|
+
- Any pending items (if ClickUp/Calendar MCPs are available)
|
|
153
|
+
|
|
154
|
+
If the user immediately provides a command or request, skip the greeting and process their request directly.
|
|
155
|
+
|
|
156
|
+
EOF
|
|
157
|
+
else
|
|
158
|
+
cat << 'EOF'
|
|
159
|
+
## Session Greeting
|
|
160
|
+
|
|
161
|
+
On the **first message** of a session (when no specific command is given), show:
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
══════ ARKA OS ══════
|
|
165
|
+
Welcome to ARKA OS!
|
|
166
|
+
|
|
167
|
+
Run /arka setup to personalize your experience.
|
|
168
|
+
Quick: /arka help • /dev feature • /mkt social • /kb learn
|
|
169
|
+
═════════════════════
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
EOF
|
|
173
|
+
fi
|
|
174
|
+
|
|
175
|
+
# Quick command reference based on role
|
|
176
|
+
echo "## Quick Commands"
|
|
177
|
+
echo ""
|
|
178
|
+
echo "| Command | Description |"
|
|
179
|
+
echo "|---------|-------------|"
|
|
180
|
+
echo "| \`/arka standup\` | Daily standup with project overview |"
|
|
181
|
+
echo "| \`/arka status\` | System status |"
|
|
182
|
+
echo "| \`/arka help\` | All available commands |"
|
|
183
|
+
echo "| \`/arka setup\` | Update your profile |"
|
|
184
|
+
|
|
185
|
+
if [ -n "$PREFERRED_DEPTS" ]; then
|
|
186
|
+
echo ""
|
|
187
|
+
echo "**Preferred departments:** ${PREFERRED_DEPTS}"
|
|
188
|
+
fi
|
|
189
|
+
|
|
190
|
+
echo ""
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Nuxt UI Templates
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Nuxt Dashboard Template
|
|
2
|
+
|
|
3
|
+
[](https://ui.nuxt.com)
|
|
4
|
+
|
|
5
|
+
Get started with the Nuxt dashboard template with multiple pages, collapsible sidebar, keyboard shortcuts, light & dark mode, command palette and more, powered by [Nuxt UI](https://ui.nuxt.com).
|
|
6
|
+
|
|
7
|
+
- [Live demo](https://dashboard-template.nuxt.dev/)
|
|
8
|
+
- [Documentation](https://ui.nuxt.com/docs/getting-started/installation/nuxt)
|
|
9
|
+
|
|
10
|
+
<a href="https://dashboard-template.nuxt.dev/" target="_blank">
|
|
11
|
+
<picture>
|
|
12
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://ui.nuxt.com/assets/templates/nuxt/dashboard-dark.png">
|
|
13
|
+
<source media="(prefers-color-scheme: light)" srcset="https://ui.nuxt.com/assets/templates/nuxt/dashboard-light.png">
|
|
14
|
+
<img alt="Nuxt Dashboard Template" src="https://ui.nuxt.com/assets/templates/nuxt/dashboard-light.png">
|
|
15
|
+
</picture>
|
|
16
|
+
</a>
|
|
17
|
+
|
|
18
|
+
> The dashboard template for Vue is on https://github.com/nuxt-ui-templates/dashboard-vue.
|
|
19
|
+
|
|
20
|
+
## Quick Start
|
|
21
|
+
|
|
22
|
+
```bash [Terminal]
|
|
23
|
+
npm create nuxt@latest -- -t ui/dashboard
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Deploy your own
|
|
27
|
+
|
|
28
|
+
[](https://vercel.com/new/clone?repository-name=dashboard&repository-url=https%3A%2F%2Fgithub.com%2Fnuxt-ui-templates%2Fdashboard&demo-image=https%3A%2F%2Fui.nuxt.com%2Fassets%2Ftemplates%2Fnuxt%2Fdashboard-dark.png&demo-url=https%3A%2F%2Fdashboard-template.nuxt.dev%2F&demo-title=Nuxt%20Dashboard%20Template&demo-description=A%20dashboard%20template%20with%20multi-column%20layout%20for%20building%20sophisticated%20admin%20interfaces.)
|
|
29
|
+
|
|
30
|
+
## Setup
|
|
31
|
+
|
|
32
|
+
Make sure to install the dependencies:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pnpm install
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Development Server
|
|
39
|
+
|
|
40
|
+
Start the development server on `http://localhost:3000`:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pnpm dev
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Production
|
|
47
|
+
|
|
48
|
+
Build the application for production:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pnpm build
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Locally preview production build:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pnpm preview
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
|
|
61
|
+
|
|
62
|
+
## Renovate integration
|
|
63
|
+
|
|
64
|
+
Install [Renovate GitHub app](https://github.com/apps/renovate/installations/select_target) on your repository and you are good to go.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const colorMode = useColorMode()
|
|
3
|
+
|
|
4
|
+
const color = computed(() => colorMode.value === 'dark' ? '#1b1718' : 'white')
|
|
5
|
+
|
|
6
|
+
useHead({
|
|
7
|
+
meta: [
|
|
8
|
+
{ charset: 'utf-8' },
|
|
9
|
+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
10
|
+
{ key: 'theme-color', name: 'theme-color', content: color }
|
|
11
|
+
],
|
|
12
|
+
link: [
|
|
13
|
+
{ rel: 'icon', href: '/favicon.ico' }
|
|
14
|
+
],
|
|
15
|
+
htmlAttrs: {
|
|
16
|
+
lang: 'en'
|
|
17
|
+
}
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
const title = 'ArkaOS Dashboard'
|
|
21
|
+
const description = 'The Operating System for AI Agent Teams — Monitoring Dashboard'
|
|
22
|
+
|
|
23
|
+
useSeoMeta({
|
|
24
|
+
title,
|
|
25
|
+
description,
|
|
26
|
+
ogTitle: title,
|
|
27
|
+
ogDescription: description,
|
|
28
|
+
ogImage: 'https://ui.nuxt.com/assets/templates/nuxt/dashboard-light.png',
|
|
29
|
+
twitterImage: 'https://ui.nuxt.com/assets/templates/nuxt/dashboard-light.png',
|
|
30
|
+
twitterCard: 'summary_large_image'
|
|
31
|
+
})
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<UApp>
|
|
36
|
+
<NuxtLoadingIndicator />
|
|
37
|
+
|
|
38
|
+
<NuxtLayout>
|
|
39
|
+
<NuxtPage />
|
|
40
|
+
</NuxtLayout>
|
|
41
|
+
</UApp>
|
|
42
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import "tailwindcss" theme(static);
|
|
2
|
+
@import "@nuxt/ui";
|
|
3
|
+
|
|
4
|
+
@theme static {
|
|
5
|
+
--font-sans: 'Public Sans', sans-serif;
|
|
6
|
+
|
|
7
|
+
--color-green-50: #EFFDF5;
|
|
8
|
+
--color-green-100: #D9FBE8;
|
|
9
|
+
--color-green-200: #B3F5D1;
|
|
10
|
+
--color-green-300: #75EDAE;
|
|
11
|
+
--color-green-400: #00DC82;
|
|
12
|
+
--color-green-500: #00C16A;
|
|
13
|
+
--color-green-600: #00A155;
|
|
14
|
+
--color-green-700: #007F45;
|
|
15
|
+
--color-green-800: #016538;
|
|
16
|
+
--color-green-900: #0A5331;
|
|
17
|
+
--color-green-950: #052E16;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createSharedComposable } from '@vueuse/core'
|
|
2
|
+
|
|
3
|
+
const _useDashboard = () => {
|
|
4
|
+
const router = useRouter()
|
|
5
|
+
|
|
6
|
+
defineShortcuts({
|
|
7
|
+
'g-h': () => router.push('/'),
|
|
8
|
+
'g-a': () => router.push('/agents'),
|
|
9
|
+
'g-c': () => router.push('/commands'),
|
|
10
|
+
'g-b': () => router.push('/budget'),
|
|
11
|
+
'g-t': () => router.push('/tasks'),
|
|
12
|
+
'g-k': () => router.push('/knowledge'),
|
|
13
|
+
'g-e': () => router.push('/health')
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
return {}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const useDashboard = createSharedComposable(_useDashboard)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { NuxtError } from '#app'
|
|
3
|
+
|
|
4
|
+
defineProps<{
|
|
5
|
+
error: NuxtError
|
|
6
|
+
}>()
|
|
7
|
+
|
|
8
|
+
useSeoMeta({
|
|
9
|
+
title: 'Page not found',
|
|
10
|
+
description: 'We are sorry but this page could not be found.'
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
useHead({
|
|
14
|
+
htmlAttrs: {
|
|
15
|
+
lang: 'en'
|
|
16
|
+
}
|
|
17
|
+
})
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<UApp>
|
|
22
|
+
<UError :error="error" />
|
|
23
|
+
</UApp>
|
|
24
|
+
</template>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { NavigationMenuItem } from '@nuxt/ui'
|
|
3
|
+
|
|
4
|
+
const open = ref(false)
|
|
5
|
+
|
|
6
|
+
const links = [[{
|
|
7
|
+
label: 'Overview',
|
|
8
|
+
icon: 'i-lucide-layout-dashboard',
|
|
9
|
+
to: '/',
|
|
10
|
+
onSelect: () => {
|
|
11
|
+
open.value = false
|
|
12
|
+
}
|
|
13
|
+
}, {
|
|
14
|
+
label: 'Agents',
|
|
15
|
+
icon: 'i-lucide-users',
|
|
16
|
+
to: '/agents',
|
|
17
|
+
onSelect: () => {
|
|
18
|
+
open.value = false
|
|
19
|
+
}
|
|
20
|
+
}, {
|
|
21
|
+
label: 'Personas',
|
|
22
|
+
icon: 'i-lucide-user-plus',
|
|
23
|
+
to: '/personas',
|
|
24
|
+
onSelect: () => {
|
|
25
|
+
open.value = false
|
|
26
|
+
}
|
|
27
|
+
}, {
|
|
28
|
+
label: 'Commands',
|
|
29
|
+
icon: 'i-lucide-terminal',
|
|
30
|
+
to: '/commands',
|
|
31
|
+
onSelect: () => {
|
|
32
|
+
open.value = false
|
|
33
|
+
}
|
|
34
|
+
}, {
|
|
35
|
+
label: 'Budget',
|
|
36
|
+
icon: 'i-lucide-wallet',
|
|
37
|
+
to: '/budget',
|
|
38
|
+
onSelect: () => {
|
|
39
|
+
open.value = false
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
label: 'Tasks',
|
|
43
|
+
icon: 'i-lucide-list-checks',
|
|
44
|
+
to: '/tasks',
|
|
45
|
+
onSelect: () => {
|
|
46
|
+
open.value = false
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
label: 'Knowledge',
|
|
50
|
+
icon: 'i-lucide-brain',
|
|
51
|
+
to: '/knowledge',
|
|
52
|
+
onSelect: () => {
|
|
53
|
+
open.value = false
|
|
54
|
+
}
|
|
55
|
+
}], [{
|
|
56
|
+
label: 'Health',
|
|
57
|
+
icon: 'i-lucide-heart-pulse',
|
|
58
|
+
to: '/health',
|
|
59
|
+
onSelect: () => {
|
|
60
|
+
open.value = false
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
label: 'Settings',
|
|
64
|
+
icon: 'i-lucide-settings',
|
|
65
|
+
to: '/settings',
|
|
66
|
+
onSelect: () => {
|
|
67
|
+
open.value = false
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
label: 'GitHub',
|
|
71
|
+
icon: 'i-simple-icons-github',
|
|
72
|
+
to: 'https://github.com/andreagroferreira/arka-os',
|
|
73
|
+
target: '_blank'
|
|
74
|
+
}]] satisfies NavigationMenuItem[][]
|
|
75
|
+
</script>
|
|
76
|
+
|
|
77
|
+
<template>
|
|
78
|
+
<UDashboardGroup unit="rem">
|
|
79
|
+
<UDashboardSidebar
|
|
80
|
+
id="default"
|
|
81
|
+
v-model:open="open"
|
|
82
|
+
collapsible
|
|
83
|
+
resizable
|
|
84
|
+
class="bg-elevated/25"
|
|
85
|
+
>
|
|
86
|
+
<template #header="{ collapsed }">
|
|
87
|
+
<div class="flex items-center gap-2" :class="collapsed ? 'justify-center' : ''">
|
|
88
|
+
<span class="text-xl font-bold text-primary">A</span>
|
|
89
|
+
<span v-if="!collapsed" class="font-semibold">ArkaOS</span>
|
|
90
|
+
</div>
|
|
91
|
+
</template>
|
|
92
|
+
|
|
93
|
+
<template #default="{ collapsed }">
|
|
94
|
+
<UNavigationMenu
|
|
95
|
+
:collapsed="collapsed"
|
|
96
|
+
:items="links[0]"
|
|
97
|
+
orientation="vertical"
|
|
98
|
+
tooltip
|
|
99
|
+
popover
|
|
100
|
+
/>
|
|
101
|
+
|
|
102
|
+
<UNavigationMenu
|
|
103
|
+
:collapsed="collapsed"
|
|
104
|
+
:items="links[1]"
|
|
105
|
+
orientation="vertical"
|
|
106
|
+
tooltip
|
|
107
|
+
class="mt-auto"
|
|
108
|
+
/>
|
|
109
|
+
</template>
|
|
110
|
+
</UDashboardSidebar>
|
|
111
|
+
|
|
112
|
+
<slot />
|
|
113
|
+
</UDashboardGroup>
|
|
114
|
+
</template>
|