@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/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.6.6",
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.25.30"
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
  }