@kokimoki/kit 1.6.6 → 1.7.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/README.md +76 -0
- package/dist/api.d.ts +63 -0
- package/dist/api.js +95 -0
- package/dist/credentials.d.ts +25 -0
- package/dist/credentials.js +44 -0
- package/dist/dev-app.d.ts +57 -0
- package/dist/dev-app.js +271 -0
- package/dist/dev-frame/index.d.ts +5 -0
- package/dist/dev-frame/index.js +9 -0
- package/dist/dev-frame/render-dev-frame.d.ts +30 -0
- package/dist/dev-frame/render-dev-frame.js +160 -0
- package/dist/dev-frame/styles.d.ts +4 -0
- package/dist/dev-frame/styles.js +191 -0
- package/dist/dev-i18n.d.ts +56 -0
- package/dist/dev-i18n.js +164 -0
- package/dist/dev-overlays.d.ts +19 -0
- package/dist/dev-overlays.js +300 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/kokimoki-kit-plugin.d.ts +47 -4
- package/dist/kokimoki-kit-plugin.js +403 -82
- package/dist/preprocess-style.js +13 -14
- package/dist/preprocess-style.spec.js +1 -1
- package/dist/production-loading-screen.d.ts +20 -0
- package/dist/production-loading-screen.js +123 -0
- package/dist/schema-builder.d.ts +89 -74
- package/dist/schema-builder.js +149 -132
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zod.d.ts +1 -0
- package/dist/zod.js +5 -0
- package/docs/kokimoki-kit.instructions.md +341 -0
- package/llms.txt +46 -0
- package/package.json +10 -3
package/llms.txt
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Kokimoki Kit Documentation
|
|
2
|
+
|
|
3
|
+
> Documentation for @kokimoki/kit - Vite plugin and development tools for Kokimoki apps.
|
|
4
|
+
|
|
5
|
+
## Instruction Files
|
|
6
|
+
|
|
7
|
+
The following instruction files provide detailed guidance for AI assistants:
|
|
8
|
+
|
|
9
|
+
### Plugin Configuration
|
|
10
|
+
- docs/kokimoki-kit.instructions.md: Complete guide to configuring the Vite plugin, including dev frame setup, store schemas, i18n integration, and style preprocessing.
|
|
11
|
+
|
|
12
|
+
## Key Concepts
|
|
13
|
+
|
|
14
|
+
- **kokimokiKitPlugin**: Vite plugin that integrates Kokimoki into your build
|
|
15
|
+
- **conceptId**: Unique identifier for your Kokimoki project/concept
|
|
16
|
+
- **deployCodes**: Named configurations for different deployment scenarios
|
|
17
|
+
- **devView**: Multi-window grid layout for development testing
|
|
18
|
+
- **stores**: Schema definitions for validating store state
|
|
19
|
+
- **i18nPath**: Folder path for translation files with auto-sync
|
|
20
|
+
|
|
21
|
+
## Configuration Structure
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
kokimokiKitPlugin({
|
|
25
|
+
conceptId: string, // Required
|
|
26
|
+
deployCodes: DeployCode[], // Required
|
|
27
|
+
schema?: ZodType, // Project config schema
|
|
28
|
+
stores?: StoreConfig[], // Store schemas
|
|
29
|
+
i18nPath?: string, // i18n folder path
|
|
30
|
+
i18nPrimaryLng?: string, // Source language (default: 'en')
|
|
31
|
+
devView?: DevFrameCell[][] | false, // Dev frame layout
|
|
32
|
+
endpoint?: string, // API endpoint
|
|
33
|
+
host?: string, // WebSocket host
|
|
34
|
+
})
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Related Packages
|
|
38
|
+
|
|
39
|
+
- @kokimoki/app: Core SDK for runtime (stores, transactions, AI, storage, i18n, leaderboard)
|
|
40
|
+
- @kokimoki/cli: CLI for project creation, login, and deployment
|
|
41
|
+
|
|
42
|
+
## File Patterns
|
|
43
|
+
|
|
44
|
+
Instruction files use YAML frontmatter with:
|
|
45
|
+
- `description`: Brief description of the file's purpose
|
|
46
|
+
- `applyTo`: Glob pattern for when the instructions apply (e.g., "**/vite.config.{ts,js}")
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kokimoki/kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
8
|
+
"dist",
|
|
9
|
+
"docs",
|
|
10
|
+
"llms.txt"
|
|
9
11
|
],
|
|
10
12
|
"scripts": {
|
|
11
13
|
"test": "ts-mocha src/**/*.spec.ts --exit",
|
|
@@ -25,9 +27,14 @@
|
|
|
25
27
|
"colorjs.io": "^0.5.2",
|
|
26
28
|
"colornames": "^1.1.1",
|
|
27
29
|
"yaml": "^2.7.0",
|
|
28
|
-
"zod": "^3.
|
|
30
|
+
"zod": "^4.3.5"
|
|
29
31
|
},
|
|
30
32
|
"peerDependencies": {
|
|
31
33
|
"vite": ">=4 <=6"
|
|
34
|
+
},
|
|
35
|
+
"peerDependenciesMeta": {
|
|
36
|
+
"vite": {
|
|
37
|
+
"optional": true
|
|
38
|
+
}
|
|
32
39
|
}
|
|
33
40
|
}
|