@funkai/cli 0.2.0 → 0.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @funkai/cli@0.2.0 build /home/runner/work/funkai/funkai/packages/cli
2
+ > @funkai/cli@0.3.1 build /home/runner/work/funkai/funkai/packages/cli
3
3
  > kidd build
4
4
 
5
5
  [?25l│
@@ -10,6 +10,6 @@
10
10
  │ │
11
11
  │ entry dist/index.mjs │
12
12
  │ output dist │
13
- │ version 0.2.0
13
+ │ version 0.3.1
14
14
  │ │
15
15
  ├───────────────────────────╯
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # @funkai/cli
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ef51bd7]
8
+ - @funkai/prompts@0.4.1
9
+
10
+ ## 0.3.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 3fa83a3: feat(cli): add funkai.config.ts support and interactive setup
15
+
16
+ - New `@funkai/config` package with `defineConfig()`, Zod schema, and `FunkaiConfig` type
17
+ - `funkai setup` is now interactive: select domains (prompts/agents), create `funkai.config.ts`, run domain-specific setup
18
+ - `funkai prompts generate` and `funkai prompts lint` now fall back to config when `--out`/`--roots` are omitted
19
+ - `funkai prompts create` defaults to first root from config when `--out` is omitted
20
+ - Config is loaded from the git root via kidd-cli's c12 integration
21
+
22
+ - c8569db: feat(prompts): add createPrompt, createPromptGroup, and config-based group assignment
23
+
24
+ - Add `createPrompt<T>(config)` factory for building prompt modules at runtime and codegen
25
+ - Add `createPromptGroup(name, prompts)` for grouping prompt modules into namespaces
26
+ - Add `PromptConfig<T>` type for prompt module configuration
27
+ - Codegen now uses `createPrompt()` instead of raw object literals
28
+ - Scope name uniqueness to group+name instead of global name
29
+ - Derive file slugs and import names from group+name to avoid collisions
30
+ - Replace `roots` config field with `includes`/`excludes` glob patterns
31
+ - Add `groups` config field for pattern-based group assignment via picomatch
32
+ - Frontmatter `group` takes precedence over config-defined groups
33
+ - Updated banner format for generated files
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [3fa83a3]
38
+ - Updated dependencies [c8569db]
39
+ - @funkai/config@0.2.0
40
+ - @funkai/prompts@0.4.0
41
+
3
42
  ## 0.2.0
4
43
 
5
44
  ### Minor Changes
package/README.md CHANGED
@@ -27,27 +27,27 @@ npm install @funkai/cli
27
27
  Generate typed TypeScript modules from `.prompt` files.
28
28
 
29
29
  ```bash
30
- funkai prompts generate --out .prompts/client --roots src/agents
30
+ funkai prompts generate --out .prompts/client --includes "src/agents/**"
31
31
  ```
32
32
 
33
- | Flag | Description |
34
- | ------------ | --------------------------------------------------- |
35
- | `--out` | Output directory for generated files |
36
- | `--roots` | Directories to scan recursively for `.prompt` files |
37
- | `--partials` | Custom partials directory |
38
- | `--silent` | Suppress output except errors |
33
+ | Flag | Description |
34
+ | ------------ | ----------------------------------------- |
35
+ | `--out` | Output directory for generated files |
36
+ | `--includes` | Glob patterns to scan for `.prompt` files |
37
+ | `--partials` | Custom partials directory |
38
+ | `--silent` | Suppress output except errors |
39
39
 
40
40
  ### `funkai prompts lint`
41
41
 
42
42
  Validate `.prompt` files without generating output.
43
43
 
44
44
  ```bash
45
- funkai prompts lint --roots src/agents
45
+ funkai prompts lint --includes "src/agents/**"
46
46
  ```
47
47
 
48
48
  | Flag | Description |
49
49
  | ------------ | -------------------------------------------------------- |
50
- | `--roots` | Directories to scan |
50
+ | `--includes` | Glob patterns to scan for `.prompt` files |
51
51
  | `--partials` | Custom partials directory (default: `.prompts/partials`) |
52
52
  | `--silent` | Suppress output except errors |
53
53
 
@@ -78,8 +78,8 @@ Configures VSCode file associations, Liquid extension recommendation, `.gitignor
78
78
 
79
79
  ## Documentation
80
80
 
81
- See the [Prompts SDK docs](../prompts/docs/overview.md) for the full file format, library API, and guides.
81
+ See the [Prompts concept](/concepts/prompts) and [Prompts CLI reference](/reference/prompts/cli) for the full file format, library API, and guides.
82
82
 
83
83
  ## License
84
84
 
85
- [MIT](../../LICENSE)
85
+ [MIT](https://github.com/joggrdocs/funkai/blob/main/LICENSE)