@katlux/toolkit 0.1.1-alpha.128 → 0.1.1-alpha.130
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/bin/add-ai-reference.mjs +85 -46
- package/dist/module.json +1 -1
- package/dist/runtime/components/KButton/KButton.global.d.vue.ts +1 -1
- package/dist/runtime/components/KButton/KButton.global.vue.d.ts +1 -1
- package/dist/runtime/components/KButton/KButton.logic.d.ts +1 -1
- package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +3 -3
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +3 -3
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +6 -6
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +6 -6
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +1 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +1 -1
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +1 -1
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +1 -1
- package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +1 -1
- package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +1 -1
- package/dist/runtime/components/KPagination/KPagination.global.d.vue.ts +1 -1
- package/dist/runtime/components/KPagination/KPagination.global.vue.d.ts +1 -1
- package/dist/runtime/components/KTree/KTree.global.d.vue.ts +1 -1
- package/dist/runtime/components/KTree/KTree.global.vue.d.ts +1 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +2 -2
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +2 -2
- package/dist/runtime/presets/default/components/KTree/KTree.d.vue.ts +1 -1
- package/dist/runtime/presets/default/components/KTree/KTree.vue.d.ts +1 -1
- package/dist/skills/KATLUX_INDEX.md +40 -0
- package/dist/skills/katlux-components/SKILL.md +106 -0
- package/dist/skills/katlux-components/components/KAccordion.md +27 -0
- package/dist/skills/katlux-components/components/KAlert.md +22 -0
- package/dist/skills/katlux-components/components/KAreaChart.md +19 -0
- package/dist/skills/katlux-components/components/KBarChart.md +20 -0
- package/dist/skills/katlux-components/components/KBulkActions.md +19 -0
- package/dist/skills/katlux-components/components/KButton.md +12 -0
- package/dist/skills/katlux-components/components/KCalendar.md +17 -0
- package/dist/skills/katlux-components/components/KCheckbox.md +15 -0
- package/dist/skills/katlux-components/components/KCombobox.md +41 -0
- package/dist/skills/katlux-components/components/KCompositeInput.md +67 -0
- package/dist/skills/katlux-components/components/KContextMenu.md +20 -0
- package/dist/skills/katlux-components/components/KDataIterator.md +35 -0
- package/dist/skills/katlux-components/components/KDatatable.md +55 -0
- package/dist/skills/katlux-components/components/KDatePicker.md +26 -0
- package/dist/skills/katlux-components/components/KDropdown.md +18 -0
- package/dist/skills/katlux-components/components/KGantt.md +28 -0
- package/dist/skills/katlux-components/components/KGrid.md +17 -0
- package/dist/skills/katlux-components/components/KHeatMap.md +32 -0
- package/dist/skills/katlux-components/components/KHourSelect.md +11 -0
- package/dist/skills/katlux-components/components/KIcon.md +5 -0
- package/dist/skills/katlux-components/components/KLayout.md +34 -0
- package/dist/skills/katlux-components/components/KLineChart.md +18 -0
- package/dist/skills/katlux-components/components/KLoader.md +7 -0
- package/dist/skills/katlux-components/components/KMaskTextbox.md +12 -0
- package/dist/skills/katlux-components/components/KModal.md +22 -0
- package/dist/skills/katlux-components/components/KPagination.md +22 -0
- package/dist/skills/katlux-components/components/KPanel.md +18 -0
- package/dist/skills/katlux-components/components/KPieChart.md +14 -0
- package/dist/skills/katlux-components/components/KProductList.md +42 -0
- package/dist/skills/katlux-components/components/KScatterChart.md +20 -0
- package/dist/skills/katlux-components/components/KSlider.md +28 -0
- package/dist/skills/katlux-components/components/KTabs.md +31 -0
- package/dist/skills/katlux-components/components/KTextbox.md +15 -0
- package/dist/skills/katlux-components/components/KToast.md +14 -0
- package/dist/skills/katlux-components/components/KTooltip.md +13 -0
- package/dist/skills/katlux-components/components/KTree.md +45 -0
- package/dist/skills/katlux-components/components/KTreePicker.md +35 -0
- package/dist/skills/katlux-components/components/KTreeView.md +30 -0
- package/dist/skills/katlux-components/components/MultiTabs.md +20 -0
- package/dist/skills/katlux-components/components/calendar-customization.md +6 -0
- package/dist/skills/katlux-components/components/datatable-customization.md +14 -0
- package/dist/skills/katlux-components/components/directives.md +11 -0
- package/dist/skills/katlux-components/components/form-validation.md +125 -0
- package/dist/skills/katlux-components/components/tree-customization.md +9 -0
- package/dist/skills/katlux-components/components/useToast.md +27 -0
- package/dist/skills/katlux-components/components/validation-directives.md +6 -0
- package/dist/skills/katlux-config/SKILL.md +156 -0
- package/dist/skills/katlux-presets/SKILL.md +356 -0
- package/dist/skills/katlux-providers/SKILL.md +64 -0
- package/dist/skills/katlux-providers/providers/ADataProvider.md +59 -0
- package/dist/skills/katlux-providers/providers/CAPIFlatClientDataProvider.md +28 -0
- package/dist/skills/katlux-providers/providers/CAPIFlatServerDataProvider.md +20 -0
- package/dist/skills/katlux-providers/providers/CFlatClientDataProvider.md +11 -0
- package/dist/skills/katlux-providers/providers/CFlatServerDataProvider.md +58 -0
- package/dist/skills/katlux-providers/providers/CTreeClientDataProvider.md +14 -0
- package/dist/skills/katlux-providers/providers/CTreeServerDataProvider.md +5 -0
- package/dist/skills/katlux-providers/providers/KatluxIndexedDB.md +10 -0
- package/dist/skills/katlux-providers/providers/RequestProvider.md +49 -0
- package/dist/skills/katlux-providers/providers/RequestQueue.md +52 -0
- package/dist/skills/katlux-providers/providers/api-protocol.md +40 -0
- package/dist/skills/katlux-providers/providers/caching.md +170 -0
- package/dist/skills/katlux-providers/providers/composables.md +107 -0
- package/dist/skills/katlux-providers/providers/encryption.md +151 -0
- package/dist/skills/katlux-providers/providers/react-integration.md +45 -0
- package/dist/skills/katlux-providers/providers/testing-isolation.md +6 -0
- package/dist/skills/katlux-providers/providers/types.md +27 -0
- package/dist/skills/katlux-providers/providers/useDataProvider.md +51 -0
- package/dist/skills/katlux-tokens/SKILL.md +133 -0
- package/package.json +3 -3
package/bin/add-ai-reference.mjs
CHANGED
|
@@ -5,29 +5,26 @@
|
|
|
5
5
|
* into the current project. Safe to re-run at any time to update to the latest.
|
|
6
6
|
*
|
|
7
7
|
* What it does:
|
|
8
|
-
* 1.
|
|
9
|
-
* 2.
|
|
8
|
+
* 1. Installs .agents/skills/KATLUX_INDEX.md (always overwritten, auto-maintained)
|
|
9
|
+
* 2. Installs .agents/skills/katlux-[skill]/SKILL.md and all atomic specs under components/ & providers/
|
|
10
10
|
* 3. Scaffolds AGENTS.md (created once, never overwritten)
|
|
11
11
|
* 4. Scaffolds .agents/rules/rules.md (created once, never overwritten)
|
|
12
|
+
* 5. Auto-configures MCP server for Antigravity, Cursor, and VS Code
|
|
12
13
|
*
|
|
13
14
|
* Usage:
|
|
14
15
|
* npx @katlux/toolkit katlux-add-ref
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
|
-
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs'
|
|
18
|
-
import { resolve, join } from 'path'
|
|
18
|
+
import { existsSync, mkdirSync, writeFileSync, readFileSync, readdirSync } from 'fs'
|
|
19
|
+
import { resolve, join, dirname } from 'path'
|
|
20
|
+
import { fileURLToPath } from 'url'
|
|
19
21
|
|
|
20
|
-
const
|
|
22
|
+
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
23
|
+
const BASE_URL = process.env.KATLUX_REF_URL || 'https://katlux.dev/ai-reference'
|
|
21
24
|
|
|
22
|
-
//
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
'katlux-config',
|
|
26
|
-
'katlux-components',
|
|
27
|
-
'katlux-providers',
|
|
28
|
-
'katlux-presets',
|
|
29
|
-
'katlux-tokens',
|
|
30
|
-
]
|
|
25
|
+
// Local packaged skills directory inside @katlux/toolkit
|
|
26
|
+
const packagedSkillsDir = resolve(__dirname, '../dist/skills')
|
|
27
|
+
const hasPackagedSkills = existsSync(join(packagedSkillsDir, 'KATLUX_INDEX.md'))
|
|
31
28
|
|
|
32
29
|
const RESET = '\x1b[0m'
|
|
33
30
|
const GREEN = '\x1b[32m'
|
|
@@ -47,10 +44,26 @@ async function fetchText(url) {
|
|
|
47
44
|
return response.text()
|
|
48
45
|
}
|
|
49
46
|
|
|
47
|
+
function copyDirRecursive(src, dest) {
|
|
48
|
+
if (!existsSync(dest)) mkdirSync(dest, { recursive: true })
|
|
49
|
+
const entries = readdirSync(src, { withFileTypes: true })
|
|
50
|
+
let count = 0
|
|
51
|
+
for (const entry of entries) {
|
|
52
|
+
const srcPath = join(src, entry.name)
|
|
53
|
+
const destPath = join(dest, entry.name)
|
|
54
|
+
if (entry.isDirectory()) {
|
|
55
|
+
count += copyDirRecursive(srcPath, destPath)
|
|
56
|
+
} else if (entry.name.endsWith('.md') && entry.name !== 'KATLUX_AI_REFERENCE.md') {
|
|
57
|
+
writeFileSync(destPath, readFileSync(srcPath, 'utf-8'), 'utf-8')
|
|
58
|
+
count++
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return count
|
|
62
|
+
}
|
|
63
|
+
|
|
50
64
|
// ── Start ────────────────────────────────────────────────────────────────────
|
|
51
65
|
console.log()
|
|
52
|
-
log(CYAN, '[katlux-add-ref]', `
|
|
53
|
-
console.log(` ${DIM}${BASE_URL}${RESET}`)
|
|
66
|
+
log(CYAN, '[katlux-add-ref]', `Installing Katlux AI skill files...`)
|
|
54
67
|
console.log()
|
|
55
68
|
|
|
56
69
|
const projectRoot = process.cwd()
|
|
@@ -62,39 +75,63 @@ const rulesDir = resolve(agentsDir, 'rules')
|
|
|
62
75
|
if (!existsSync(skillsDir)) mkdirSync(skillsDir, { recursive: true })
|
|
63
76
|
if (!existsSync(rulesDir)) mkdirSync(rulesDir, { recursive: true })
|
|
64
77
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
78
|
+
let installedFilesCount = 0
|
|
79
|
+
let bundleInstalled = false
|
|
80
|
+
|
|
81
|
+
// ── 1. Fetch remote skills bundle (all skills + atomic specs in 1 fast roundtrip) ──
|
|
82
|
+
process.stdout.write(` ${DIM}Fetching skills bundle from ${BASE_URL}/bundle...${RESET}`)
|
|
68
83
|
try {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
const res = await fetch(`${BASE_URL}/bundle`)
|
|
85
|
+
if (res.ok) {
|
|
86
|
+
const bundle = await res.json()
|
|
87
|
+
if (bundle.files && typeof bundle.files === 'object') {
|
|
88
|
+
for (const [relPath, content] of Object.entries(bundle.files)) {
|
|
89
|
+
const destPath = join(skillsDir, relPath)
|
|
90
|
+
const fileDir = dirname(destPath)
|
|
91
|
+
if (!existsSync(fileDir)) mkdirSync(fileDir, { recursive: true })
|
|
92
|
+
writeFileSync(destPath, content, 'utf-8')
|
|
93
|
+
installedFilesCount++
|
|
94
|
+
}
|
|
95
|
+
process.stdout.write(` ${GREEN}✔ (${installedFilesCount} files)${RESET}\n`)
|
|
96
|
+
bundleInstalled = true
|
|
97
|
+
}
|
|
98
|
+
} else {
|
|
99
|
+
process.stdout.write(` ${YELLOW}HTTP ${res.status}${RESET}\n`)
|
|
100
|
+
}
|
|
101
|
+
} catch {
|
|
102
|
+
process.stdout.write(` ${YELLOW}remote unavailable${RESET}\n`)
|
|
77
103
|
}
|
|
78
104
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
105
|
+
// ── 2. Fallback: Local packaged skills (works 100% offline or when remote bundle is unreachable) ──
|
|
106
|
+
if (!bundleInstalled) {
|
|
107
|
+
if (hasPackagedSkills) {
|
|
108
|
+
log(CYAN, ' local', `Installing bundled skills from @katlux/toolkit package...`)
|
|
109
|
+
installedFilesCount = copyDirRecursive(packagedSkillsDir, skillsDir)
|
|
110
|
+
log(GREEN, ' written', `${installedFilesCount} skill files installed from local toolkit`)
|
|
111
|
+
} else {
|
|
112
|
+
// ── 3. Fallback: Legacy individual HTTP fetch ────────────────────────────
|
|
113
|
+
log(YELLOW, ' fallback', `Fetching individual skills from ${BASE_URL}...`)
|
|
114
|
+
try {
|
|
115
|
+
const indexContent = await fetchText(BASE_URL).catch(() => fetchText(`${BASE_URL}/index`))
|
|
116
|
+
writeFileSync(join(skillsDir, 'KATLUX_INDEX.md'), indexContent, 'utf-8')
|
|
117
|
+
installedFilesCount++
|
|
118
|
+
} catch (err) {
|
|
119
|
+
log(RED, '[katlux-add-ref] ✖', `Failed to fetch index: ${err.message}`)
|
|
120
|
+
process.exit(1)
|
|
121
|
+
}
|
|
82
122
|
|
|
83
|
-
|
|
84
|
-
for (const skill of SKILLS) {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
log(RED, '[katlux-add-ref] ✖', `Failed to fetch ${skill}:`)
|
|
96
|
-
console.log(` ${err.message}`)
|
|
97
|
-
process.exit(1)
|
|
123
|
+
const SKILLS = ['katlux-config', 'katlux-components', 'katlux-providers', 'katlux-presets', 'katlux-tokens']
|
|
124
|
+
for (const skill of SKILLS) {
|
|
125
|
+
try {
|
|
126
|
+
const content = await fetchText(`${BASE_URL}/${skill}`)
|
|
127
|
+
const skillDir = join(skillsDir, skill)
|
|
128
|
+
if (!existsSync(skillDir)) mkdirSync(skillDir, { recursive: true })
|
|
129
|
+
writeFileSync(join(skillDir, 'SKILL.md'), content, 'utf-8')
|
|
130
|
+
installedFilesCount++
|
|
131
|
+
} catch (err) {
|
|
132
|
+
log(RED, '[katlux-add-ref] ✖', `Failed to fetch ${skill}: ${err.message}`)
|
|
133
|
+
}
|
|
134
|
+
}
|
|
98
135
|
}
|
|
99
136
|
}
|
|
100
137
|
|
|
@@ -184,9 +221,11 @@ if (existsSync(vscodeDir)) {
|
|
|
184
221
|
|
|
185
222
|
// ── Done ─────────────────────────────────────────────────────────────────────
|
|
186
223
|
console.log()
|
|
187
|
-
log(GREEN, '[katlux-add-ref] ✔', `Done! ${
|
|
224
|
+
log(GREEN, '[katlux-add-ref] ✔', `Done! ${installedFilesCount} skill files (including atomic components & providers) + index installed and MCP server configured.`)
|
|
188
225
|
console.log()
|
|
189
226
|
console.log(` ${CYAN}Skills:${RESET} .agents/skills/katlux-*/SKILL.md`)
|
|
227
|
+
console.log(` ${CYAN}Components:${RESET} .agents/skills/katlux-components/components/*.md (46 atomic specs)`)
|
|
228
|
+
console.log(` ${CYAN}Providers:${RESET} .agents/skills/katlux-providers/providers/*.md (18 atomic specs)`)
|
|
190
229
|
console.log(` ${CYAN}Index:${RESET} .agents/skills/KATLUX_INDEX.md ${DIM}(auto-updated each run)${RESET}`)
|
|
191
230
|
console.log(` ${CYAN}MCP:${RESET} @katlux/mcp server ready on stdio`)
|
|
192
231
|
console.log()
|
package/dist/module.json
CHANGED
|
@@ -55,7 +55,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
55
55
|
onClick?: (() => any) | undefined;
|
|
56
56
|
}>, {
|
|
57
57
|
size: "small" | "large" | "medium" | undefined;
|
|
58
|
-
type: "default" | "
|
|
58
|
+
type: "default" | "primary" | "danger" | "success" | "warning" | "info" | "light" | "dark" | undefined;
|
|
59
59
|
iconOnly: boolean;
|
|
60
60
|
disabled: boolean;
|
|
61
61
|
href: string;
|
|
@@ -55,7 +55,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
55
55
|
onClick?: (() => any) | undefined;
|
|
56
56
|
}>, {
|
|
57
57
|
size: "small" | "large" | "medium" | undefined;
|
|
58
|
-
type: "default" | "
|
|
58
|
+
type: "default" | "primary" | "danger" | "success" | "warning" | "info" | "light" | "dark" | undefined;
|
|
59
59
|
iconOnly: boolean;
|
|
60
60
|
disabled: boolean;
|
|
61
61
|
href: string;
|
|
@@ -23,7 +23,7 @@ export interface KButtonEmits {
|
|
|
23
23
|
export declare function useKButtonLogic(props: KButtonProps, emit: KButtonEmits): {
|
|
24
24
|
isLink: import("vue").ComputedRef<boolean>;
|
|
25
25
|
isDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
26
|
-
buttonClasses: import("vue").ComputedRef<("small" | "default" | "
|
|
26
|
+
buttonClasses: import("vue").ComputedRef<("small" | "default" | "primary" | "danger" | "success" | "warning" | "info" | "light" | "dark" | "large" | "medium" | {
|
|
27
27
|
disabled: boolean | undefined;
|
|
28
28
|
'icon-only': boolean | undefined;
|
|
29
29
|
})[]>;
|
|
@@ -227,22 +227,22 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
227
227
|
disabled: boolean;
|
|
228
228
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
229
229
|
validationText: string;
|
|
230
|
-
valueField: string;
|
|
231
|
-
placeholder: string;
|
|
232
230
|
searchbox: boolean;
|
|
233
|
-
teleportTo: string;
|
|
234
231
|
searchtext: string;
|
|
235
232
|
searchPlaceholder: string;
|
|
236
233
|
virtualScroll: boolean;
|
|
237
234
|
itemHeight: number;
|
|
238
235
|
buffer: number;
|
|
239
236
|
isOptionsOpen: boolean;
|
|
237
|
+
placeholder: string;
|
|
238
|
+
teleportTo: string;
|
|
240
239
|
fullWidth: boolean;
|
|
241
240
|
maxHeight: number;
|
|
242
241
|
closeOnSelect: boolean;
|
|
243
242
|
multiSelect: boolean;
|
|
244
243
|
maxSelectedDisplay: string | number | boolean;
|
|
245
244
|
visibleFields: String[];
|
|
245
|
+
valueField: string;
|
|
246
246
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
247
247
|
declare const _default: typeof __VLS_export;
|
|
248
248
|
export default _default;
|
|
@@ -227,22 +227,22 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
227
227
|
disabled: boolean;
|
|
228
228
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
229
229
|
validationText: string;
|
|
230
|
-
valueField: string;
|
|
231
|
-
placeholder: string;
|
|
232
230
|
searchbox: boolean;
|
|
233
|
-
teleportTo: string;
|
|
234
231
|
searchtext: string;
|
|
235
232
|
searchPlaceholder: string;
|
|
236
233
|
virtualScroll: boolean;
|
|
237
234
|
itemHeight: number;
|
|
238
235
|
buffer: number;
|
|
239
236
|
isOptionsOpen: boolean;
|
|
237
|
+
placeholder: string;
|
|
238
|
+
teleportTo: string;
|
|
240
239
|
fullWidth: boolean;
|
|
241
240
|
maxHeight: number;
|
|
242
241
|
closeOnSelect: boolean;
|
|
243
242
|
multiSelect: boolean;
|
|
244
243
|
maxSelectedDisplay: string | number | boolean;
|
|
245
244
|
visibleFields: String[];
|
|
245
|
+
valueField: string;
|
|
246
246
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
247
247
|
declare const _default: typeof __VLS_export;
|
|
248
248
|
export default _default;
|
|
@@ -193,18 +193,18 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
193
193
|
label: string;
|
|
194
194
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
195
195
|
validationText: string;
|
|
196
|
+
searchbox: boolean;
|
|
197
|
+
labelField: string;
|
|
198
|
+
placeholder: string;
|
|
199
|
+
teleportTo: string;
|
|
200
|
+
mask: string;
|
|
201
|
+
valueField: string;
|
|
196
202
|
inputType: "number" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
|
|
197
203
|
selectionValue: string | number | Record<string, any> | unknown[];
|
|
198
204
|
inputValue: string | number | Record<string, any> | unknown[];
|
|
199
205
|
selectionSide: import("./KCompositeInput.logic.js").SelectionSide;
|
|
200
|
-
mask: string;
|
|
201
|
-
labelField: string;
|
|
202
|
-
valueField: string;
|
|
203
|
-
placeholder: string;
|
|
204
206
|
inputPlaceholder: string;
|
|
205
|
-
searchbox: boolean;
|
|
206
207
|
showClear: boolean;
|
|
207
|
-
teleportTo: string;
|
|
208
208
|
inputConfigField: string;
|
|
209
209
|
validateAll: boolean;
|
|
210
210
|
inputFormat: string;
|
|
@@ -193,18 +193,18 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
193
193
|
label: string;
|
|
194
194
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
195
195
|
validationText: string;
|
|
196
|
+
searchbox: boolean;
|
|
197
|
+
labelField: string;
|
|
198
|
+
placeholder: string;
|
|
199
|
+
teleportTo: string;
|
|
200
|
+
mask: string;
|
|
201
|
+
valueField: string;
|
|
196
202
|
inputType: "number" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
|
|
197
203
|
selectionValue: string | number | Record<string, any> | unknown[];
|
|
198
204
|
inputValue: string | number | Record<string, any> | unknown[];
|
|
199
205
|
selectionSide: import("./KCompositeInput.logic.js").SelectionSide;
|
|
200
|
-
mask: string;
|
|
201
|
-
labelField: string;
|
|
202
|
-
valueField: string;
|
|
203
|
-
placeholder: string;
|
|
204
206
|
inputPlaceholder: string;
|
|
205
|
-
searchbox: boolean;
|
|
206
207
|
showClear: boolean;
|
|
207
|
-
teleportTo: string;
|
|
208
208
|
inputConfigField: string;
|
|
209
209
|
validateAll: boolean;
|
|
210
210
|
inputFormat: string;
|
|
@@ -133,8 +133,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
133
133
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
134
134
|
validationText: string;
|
|
135
135
|
placeholder: string;
|
|
136
|
-
showClear: boolean;
|
|
137
136
|
teleportTo: string;
|
|
137
|
+
showClear: boolean;
|
|
138
138
|
align: "left" | "right" | undefined;
|
|
139
139
|
format: string;
|
|
140
140
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -133,8 +133,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
133
133
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
134
134
|
validationText: string;
|
|
135
135
|
placeholder: string;
|
|
136
|
-
showClear: boolean;
|
|
137
136
|
teleportTo: string;
|
|
137
|
+
showClear: boolean;
|
|
138
138
|
align: "left" | "right" | undefined;
|
|
139
139
|
format: string;
|
|
140
140
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -135,8 +135,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
135
135
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
136
136
|
validationText: string;
|
|
137
137
|
placeholder: string;
|
|
138
|
-
showClear: boolean;
|
|
139
138
|
teleportTo: string;
|
|
139
|
+
showClear: boolean;
|
|
140
140
|
format: string;
|
|
141
141
|
timeFormat: string;
|
|
142
142
|
timeStep: number;
|
|
@@ -135,8 +135,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
135
135
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
136
136
|
validationText: string;
|
|
137
137
|
placeholder: string;
|
|
138
|
-
showClear: boolean;
|
|
139
138
|
teleportTo: string;
|
|
139
|
+
showClear: boolean;
|
|
140
140
|
format: string;
|
|
141
141
|
timeFormat: string;
|
|
142
142
|
timeStep: number;
|
|
@@ -62,8 +62,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
62
62
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
64
|
isOpen: boolean;
|
|
65
|
-
teleportTo: string;
|
|
66
65
|
direction: import("./KDropdown.logic.js").KDropdownDirection;
|
|
66
|
+
teleportTo: string;
|
|
67
67
|
fullWidth: boolean;
|
|
68
68
|
maxHeight: number;
|
|
69
69
|
align: import("./KDropdown.logic.js").KDropdownAlign;
|
|
@@ -62,8 +62,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
62
62
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
64
|
isOpen: boolean;
|
|
65
|
-
teleportTo: string;
|
|
66
65
|
direction: import("./KDropdown.logic.js").KDropdownDirection;
|
|
66
|
+
teleportTo: string;
|
|
67
67
|
fullWidth: boolean;
|
|
68
68
|
maxHeight: number;
|
|
69
69
|
align: import("./KDropdown.logic.js").KDropdownAlign;
|
|
@@ -21,9 +21,9 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
21
21
|
"onPage-click"?: ((value: number) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
23
|
modelValue: number;
|
|
24
|
-
dataProvider: ADataProvider;
|
|
25
24
|
currentPage: number;
|
|
26
25
|
pageSize: number;
|
|
26
|
+
dataProvider: ADataProvider;
|
|
27
27
|
totalItems: number;
|
|
28
28
|
maxVisiblePages: number;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -21,9 +21,9 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
21
21
|
"onPage-click"?: ((value: number) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
23
|
modelValue: number;
|
|
24
|
-
dataProvider: ADataProvider;
|
|
25
24
|
currentPage: number;
|
|
26
25
|
pageSize: number;
|
|
26
|
+
dataProvider: ADataProvider;
|
|
27
27
|
totalItems: number;
|
|
28
28
|
maxVisiblePages: number;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -153,11 +153,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
153
153
|
modelValue: any;
|
|
154
154
|
disabled: boolean;
|
|
155
155
|
idKey: string;
|
|
156
|
-
labelField: string;
|
|
157
156
|
searchtext: string;
|
|
158
157
|
virtualScroll: boolean;
|
|
159
158
|
itemHeight: number;
|
|
160
159
|
buffer: number;
|
|
160
|
+
labelField: string;
|
|
161
161
|
multiSelect: boolean;
|
|
162
162
|
viewportHeight: number;
|
|
163
163
|
expandedNodes: (string | number)[] | Set<string | number>;
|
|
@@ -153,11 +153,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
153
153
|
modelValue: any;
|
|
154
154
|
disabled: boolean;
|
|
155
155
|
idKey: string;
|
|
156
|
-
labelField: string;
|
|
157
156
|
searchtext: string;
|
|
158
157
|
virtualScroll: boolean;
|
|
159
158
|
itemHeight: number;
|
|
160
159
|
buffer: number;
|
|
160
|
+
labelField: string;
|
|
161
161
|
multiSelect: boolean;
|
|
162
162
|
viewportHeight: number;
|
|
163
163
|
expandedNodes: (string | number)[] | Set<string | number>;
|
|
@@ -238,8 +238,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
238
238
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
239
239
|
validationText: string;
|
|
240
240
|
idKey: string;
|
|
241
|
-
valueField: string;
|
|
242
|
-
placeholder: string;
|
|
243
241
|
searchbox: boolean;
|
|
244
242
|
searchtext: string;
|
|
245
243
|
searchPlaceholder: string;
|
|
@@ -247,9 +245,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
247
245
|
itemHeight: number;
|
|
248
246
|
buffer: number;
|
|
249
247
|
isOptionsOpen: boolean;
|
|
248
|
+
placeholder: string;
|
|
250
249
|
fullWidth: boolean;
|
|
251
250
|
closeOnSelect: boolean;
|
|
252
251
|
multiSelect: boolean;
|
|
252
|
+
valueField: string;
|
|
253
253
|
viewportHeight: number;
|
|
254
254
|
expandedNodes: any;
|
|
255
255
|
parentKey: string;
|
|
@@ -238,8 +238,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
238
238
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
239
239
|
validationText: string;
|
|
240
240
|
idKey: string;
|
|
241
|
-
valueField: string;
|
|
242
|
-
placeholder: string;
|
|
243
241
|
searchbox: boolean;
|
|
244
242
|
searchtext: string;
|
|
245
243
|
searchPlaceholder: string;
|
|
@@ -247,9 +245,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
247
245
|
itemHeight: number;
|
|
248
246
|
buffer: number;
|
|
249
247
|
isOptionsOpen: boolean;
|
|
248
|
+
placeholder: string;
|
|
250
249
|
fullWidth: boolean;
|
|
251
250
|
closeOnSelect: boolean;
|
|
252
251
|
multiSelect: boolean;
|
|
252
|
+
valueField: string;
|
|
253
253
|
viewportHeight: number;
|
|
254
254
|
expandedNodes: any;
|
|
255
255
|
parentKey: string;
|
|
@@ -27,11 +27,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
27
27
|
}>, {
|
|
28
28
|
disabled: boolean;
|
|
29
29
|
idKey: string;
|
|
30
|
-
labelField: string;
|
|
31
30
|
searchtext: string;
|
|
32
31
|
virtualScroll: boolean;
|
|
33
32
|
itemHeight: number;
|
|
34
33
|
buffer: number;
|
|
34
|
+
labelField: string;
|
|
35
35
|
multiSelect: boolean;
|
|
36
36
|
viewportHeight: number;
|
|
37
37
|
iconField: string;
|
|
@@ -27,11 +27,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
27
27
|
}>, {
|
|
28
28
|
disabled: boolean;
|
|
29
29
|
idKey: string;
|
|
30
|
-
labelField: string;
|
|
31
30
|
searchtext: string;
|
|
32
31
|
virtualScroll: boolean;
|
|
33
32
|
itemHeight: number;
|
|
34
33
|
buffer: number;
|
|
34
|
+
labelField: string;
|
|
35
35
|
multiSelect: boolean;
|
|
36
36
|
viewportHeight: number;
|
|
37
37
|
iconField: string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Katlux Toolkit: Skills Index
|
|
2
|
+
|
|
3
|
+
> [!NOTE]
|
|
4
|
+
> This file is **auto-generated** by `npx @katlux/toolkit katlux-add-ref`.
|
|
5
|
+
> Do not edit manually — re-run the command to update.
|
|
6
|
+
|
|
7
|
+
## Katlux MCP Server (Recommended for AI Agents)
|
|
8
|
+
|
|
9
|
+
When the **Katlux MCP Server** (`katlux` / `@katlux/mcp`) is configured in your agent environment, **always call MCP tools first** instead of loading full `SKILL.md` reference files. MCP tools return exact, atomic schemas on demand, saving up to ~93% context tokens and preventing hallucinations.
|
|
10
|
+
|
|
11
|
+
| MCP Tool | Purpose & Usage | Token Advantage |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| `katlux_get_component` | Exact API schema (props, slots, events, examples) for any component. Supports optional `filter: "keyword"` to return only matching props/events | ~100-300 tokens vs 28k in `katlux-components` |
|
|
14
|
+
| `katlux_lookup_prop` | Ultra-compact atomic lookup for a single prop, event, or slot on a component (e.g. `component: 'KDatatable', prop: 'selectAllScope'`) | **~40 tokens** (ideal for micro-edits & single property checks) |
|
|
15
|
+
| `katlux_list_components` | Discover components filtered by category (`form`, `data`, `layout`, `navigation`, `feedback`, `charts`, `ecommerce`) or search query | ~150 tokens vs reading entire docs |
|
|
16
|
+
| `katlux_get_provider` | Data provider architecture, constructor options, caching, encryption, and recipes for `ADataProvider`, `CFlatClientDataProvider`, `CAPIFlatServerDataProvider` | ~400 tokens vs 15k in `katlux-providers` |
|
|
17
|
+
| `katlux_list_icons` | Fuzzy search available SVG icons for `KIcon` and `icon` props | ~100 tokens vs guessing icon names |
|
|
18
|
+
| `katlux_get_tokens` | CSS design tokens by category (`color`, `surface`, `border`, `typography`, `button`, `input`, `table`, `other`) | ~300 tokens vs 6k in `katlux-tokens` |
|
|
19
|
+
| `katlux_scaffold` | Boilerplate code generator for common patterns (`datatable-page`, `form-with-validation`, `tree-explorer`, `chart-dashboard`) | Clean boilerplate with zero prompt bloat |
|
|
20
|
+
| `katlux_validate_code` | Self-correction linter checking Pug/Vue code against component APIs, providers, and token rules | Catches errors before user sees them |
|
|
21
|
+
| `katlux_create_preset` | Scaffolds a new visual theme preset with directory structure and CSS token overrides | Automates theming setup |
|
|
22
|
+
|
|
23
|
+
## Available Skills (Fallback & Deep Architectural Context)
|
|
24
|
+
|
|
25
|
+
If the Katlux MCP server is unavailable in the environment, or when deep architectural narratives, end-to-end design patterns, or framework config guidelines are needed, load only the specific skill relevant to your task:
|
|
26
|
+
|
|
27
|
+
| Skill | Description | When to Use |
|
|
28
|
+
| --- | --- | --- |
|
|
29
|
+
| [katlux-config](katlux-config/SKILL.md) | Project setup, `nuxt.config.ts`, `app.config.ts`, packages, dev workflow | Setting up the project, installing packages, monorepo commands |
|
|
30
|
+
| [katlux-components](katlux-components/SKILL.md) | All UI component APIs (props, slots, events, examples) | Fallback when MCP is inactive or reviewing all components |
|
|
31
|
+
| [katlux-providers](katlux-providers/SKILL.md) | Data management, `ADataProvider`, all provider classes, composables, caching, encryption, API protocol | Deep data flow architecture, custom provider subclassing |
|
|
32
|
+
| [katlux-presets](katlux-presets/SKILL.md) | Preset system, creating custom presets, runtime switching, KLayout slot forwarding | Advanced visual theming, layout slot cascades |
|
|
33
|
+
| [katlux-tokens](katlux-tokens/SKILL.md) | CSS custom properties and design tokens reference | Complete token tables and design variable rules |
|
|
34
|
+
|
|
35
|
+
## How to Work Efficiently
|
|
36
|
+
|
|
37
|
+
1. **MCP Tools First**: Query `katlux_get_component` or `katlux_get_provider` to verify prop types, slots, and events before writing or editing code.
|
|
38
|
+
2. **Icon & Token Lookup**: Use `katlux_list_icons` to verify icon names and `katlux_get_tokens` for theme variables instead of guessing or hardcoding styles.
|
|
39
|
+
3. **Self-Validation**: Run `katlux_validate_code` on newly generated Pug/Vue templates to self-correct issues before delivering code.
|
|
40
|
+
4. **Atomic Skills**: Component and Provider skills are divided into atomic, per-component and per-provider markdown files under `components/` and `providers/`. Read only the specific atomic spec required for your task to preserve tokens.
|