arkaos 3.12.0 → 3.13.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/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.13.0
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
// PR85c v3.13.0 — Keyboard shortcuts help overlay.
|
|
3
|
+
//
|
|
4
|
+
// Triggered by `?` (defineShortcuts in useDashboard). Lists all
|
|
5
|
+
// registered shortcuts grouped by category.
|
|
6
|
+
|
|
7
|
+
const { shortcutsHelpOpen } = useDashboard()
|
|
8
|
+
|
|
9
|
+
const groups = [
|
|
10
|
+
{
|
|
11
|
+
title: 'Navigation',
|
|
12
|
+
items: [
|
|
13
|
+
{ keys: ['g', 'h'], label: 'Home / command center' },
|
|
14
|
+
{ keys: ['g', 'a'], label: 'Agents' },
|
|
15
|
+
{ keys: ['g', 'p'], label: 'Personas' },
|
|
16
|
+
{ keys: ['g', 'c'], label: 'Commands' },
|
|
17
|
+
{ keys: ['g', 'b'], label: 'Budget' },
|
|
18
|
+
{ keys: ['g', 't'], label: 'Tasks' },
|
|
19
|
+
{ keys: ['g', 'k'], label: 'Knowledge' },
|
|
20
|
+
{ keys: ['g', 'e'], label: 'Health' },
|
|
21
|
+
{ keys: ['g', 'r'], label: 'Trash' },
|
|
22
|
+
{ keys: ['g', 's'], label: 'Settings' },
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
title: 'Actions',
|
|
27
|
+
items: [
|
|
28
|
+
{ keys: ['n'], label: 'New (context-aware — agent / persona)' },
|
|
29
|
+
{ keys: ['?'], label: 'Toggle this help' },
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
]
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<template>
|
|
36
|
+
<UModal
|
|
37
|
+
v-model:open="shortcutsHelpOpen"
|
|
38
|
+
title="Keyboard shortcuts"
|
|
39
|
+
:ui="{ content: 'max-w-lg' }"
|
|
40
|
+
>
|
|
41
|
+
<template #content>
|
|
42
|
+
<UCard>
|
|
43
|
+
<template #header>
|
|
44
|
+
<div class="flex items-center justify-between gap-3">
|
|
45
|
+
<div>
|
|
46
|
+
<h2 class="text-lg font-bold">Keyboard shortcuts</h2>
|
|
47
|
+
<p class="text-xs text-muted mt-0.5">
|
|
48
|
+
Press <kbd class="px-1.5 py-0.5 rounded bg-elevated/50 text-xs font-mono">?</kbd> anywhere to toggle this.
|
|
49
|
+
</p>
|
|
50
|
+
</div>
|
|
51
|
+
<UButton
|
|
52
|
+
icon="i-lucide-x"
|
|
53
|
+
variant="ghost"
|
|
54
|
+
size="sm"
|
|
55
|
+
aria-label="Close"
|
|
56
|
+
@click="shortcutsHelpOpen = false"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
</template>
|
|
60
|
+
|
|
61
|
+
<div class="space-y-5">
|
|
62
|
+
<div v-for="g in groups" :key="g.title">
|
|
63
|
+
<h3 class="text-xs font-semibold uppercase tracking-wide text-muted mb-2">
|
|
64
|
+
{{ g.title }}
|
|
65
|
+
</h3>
|
|
66
|
+
<ul class="space-y-1.5">
|
|
67
|
+
<li
|
|
68
|
+
v-for="item in g.items"
|
|
69
|
+
:key="item.label"
|
|
70
|
+
class="flex items-center justify-between gap-3 text-sm"
|
|
71
|
+
>
|
|
72
|
+
<span>{{ item.label }}</span>
|
|
73
|
+
<div class="flex items-center gap-1">
|
|
74
|
+
<kbd
|
|
75
|
+
v-for="(k, idx) in item.keys"
|
|
76
|
+
:key="idx"
|
|
77
|
+
class="px-2 py-0.5 rounded bg-elevated/50 border border-default text-xs font-mono font-semibold"
|
|
78
|
+
>
|
|
79
|
+
{{ k }}
|
|
80
|
+
</kbd>
|
|
81
|
+
</div>
|
|
82
|
+
</li>
|
|
83
|
+
</ul>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</UCard>
|
|
87
|
+
</template>
|
|
88
|
+
</UModal>
|
|
89
|
+
</template>
|
|
@@ -1,19 +1,35 @@
|
|
|
1
1
|
import { createSharedComposable } from '@vueuse/core'
|
|
2
2
|
|
|
3
|
+
// PR85c v3.13.0 — extended shortcut map + context-aware `n` + help modal.
|
|
3
4
|
const _useDashboard = () => {
|
|
4
5
|
const router = useRouter()
|
|
6
|
+
const route = useRoute()
|
|
7
|
+
const shortcutsHelpOpen = useState('shortcutsHelpOpen', () => false)
|
|
8
|
+
|
|
9
|
+
function contextualNew() {
|
|
10
|
+
const path = route.path
|
|
11
|
+
if (path.startsWith('/agents')) return router.push('/agents/new')
|
|
12
|
+
if (path.startsWith('/personas')) return router.push('/personas/new')
|
|
13
|
+
// Default: go to agents/new (most common new-thing action)
|
|
14
|
+
return router.push('/agents/new')
|
|
15
|
+
}
|
|
5
16
|
|
|
6
17
|
defineShortcuts({
|
|
7
18
|
'g-h': () => router.push('/'),
|
|
8
19
|
'g-a': () => router.push('/agents'),
|
|
20
|
+
'g-p': () => router.push('/personas'),
|
|
9
21
|
'g-c': () => router.push('/commands'),
|
|
10
22
|
'g-b': () => router.push('/budget'),
|
|
11
23
|
'g-t': () => router.push('/tasks'),
|
|
12
24
|
'g-k': () => router.push('/knowledge'),
|
|
13
|
-
'g-e': () => router.push('/health')
|
|
25
|
+
'g-e': () => router.push('/health'),
|
|
26
|
+
'g-s': () => router.push('/settings'),
|
|
27
|
+
'g-r': () => router.push('/trash'),
|
|
28
|
+
n: () => contextualNew(),
|
|
29
|
+
'?': () => { shortcutsHelpOpen.value = !shortcutsHelpOpen.value },
|
|
14
30
|
})
|
|
15
31
|
|
|
16
|
-
return {}
|
|
32
|
+
return { shortcutsHelpOpen }
|
|
17
33
|
}
|
|
18
34
|
|
|
19
35
|
export const useDashboard = createSharedComposable(_useDashboard)
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { NavigationMenuItem } from '@nuxt/ui'
|
|
3
3
|
|
|
4
|
+
// PR85c v3.13.0 — registers keyboard shortcuts globally.
|
|
5
|
+
useDashboard()
|
|
6
|
+
|
|
4
7
|
const open = ref(false)
|
|
5
8
|
|
|
6
9
|
const links = [[{
|
|
@@ -129,5 +132,6 @@ const links = [[{
|
|
|
129
132
|
</UDashboardSidebar>
|
|
130
133
|
|
|
131
134
|
<slot />
|
|
135
|
+
<KeyboardShortcutsHelp />
|
|
132
136
|
</UDashboardGroup>
|
|
133
137
|
</template>
|
package/package.json
CHANGED