@funkai/cli 0.1.4 → 0.3.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @funkai/cli@0.1.4 build /home/runner/work/funkai/funkai/packages/cli
2
+ > @funkai/cli@0.3.0 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.1.4
13
+ │ version 0.3.0
14
14
  │ │
15
15
  ├───────────────────────────╯
package/CHANGELOG.md CHANGED
@@ -1,5 +1,86 @@
1
1
  # @funkai/cli
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3fa83a3: feat(cli): add funkai.config.ts support and interactive setup
8
+
9
+ - New `@funkai/config` package with `defineConfig()`, Zod schema, and `FunkaiConfig` type
10
+ - `funkai setup` is now interactive: select domains (prompts/agents), create `funkai.config.ts`, run domain-specific setup
11
+ - `funkai prompts generate` and `funkai prompts lint` now fall back to config when `--out`/`--roots` are omitted
12
+ - `funkai prompts create` defaults to first root from config when `--out` is omitted
13
+ - Config is loaded from the git root via kidd-cli's c12 integration
14
+
15
+ - c8569db: feat(prompts): add createPrompt, createPromptGroup, and config-based group assignment
16
+
17
+ - Add `createPrompt<T>(config)` factory for building prompt modules at runtime and codegen
18
+ - Add `createPromptGroup(name, prompts)` for grouping prompt modules into namespaces
19
+ - Add `PromptConfig<T>` type for prompt module configuration
20
+ - Codegen now uses `createPrompt()` instead of raw object literals
21
+ - Scope name uniqueness to group+name instead of global name
22
+ - Derive file slugs and import names from group+name to avoid collisions
23
+ - Replace `roots` config field with `includes`/`excludes` glob patterns
24
+ - Add `groups` config field for pattern-based group assignment via picomatch
25
+ - Frontmatter `group` takes precedence over config-defined groups
26
+ - Updated banner format for generated files
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [3fa83a3]
31
+ - Updated dependencies [c8569db]
32
+ - @funkai/config@0.2.0
33
+ - @funkai/prompts@0.4.0
34
+
35
+ ## 0.2.0
36
+
37
+ ### Minor Changes
38
+
39
+ - 5d9fbeb: Enforce TypeScript and FP standards across all packages.
40
+
41
+ **@funkai/agents**
42
+
43
+ - `isAgent()` and `isFlowAgent()` now return proper type predicates (`value is Agent` / `value is FlowAgent`) instead of `boolean`
44
+ - Added `@example` tags to exported `toJsonSchema`, `isZodObject`, `isZodArray`
45
+
46
+ **@funkai/cli**
47
+
48
+ - **Breaking:** `handleGenerate`, `handleLint`, `flattenPartials`, `parseFrontmatter` now accept a single params object instead of positional arguments
49
+ - New exported interfaces: `HandleGenerateParams`, `HandleLintParams`, `FlattenPartialsParams`, `ParseFrontmatterParams`
50
+ - `extractVariables` and `discoverPrompts` return `readonly` arrays
51
+ - `parseSchemaBlock` returns `readonly SchemaVariable[]`
52
+
53
+ ### Patch Changes
54
+
55
+ - b1e1d01: Fix bug and correctness issues across all packages.
56
+
57
+ **@funkai/agents**
58
+
59
+ - Export `createFlowEngine` and related types (`FlowEngineConfig`, `FlowFactory`, `CustomStepFactory`, `CustomStepDefinitions`, `TypedCustomSteps`)
60
+ - Guard `resolvedInput` before passing to `onError` hooks (was `undefined` cast as `TInput`)
61
+ - Fix `onStepStart` hook asymmetry: per-call override now merged with config hook
62
+ - Remove deprecated unused `TraceType` alias
63
+
64
+ **@funkai/prompts**
65
+
66
+ - **Breaking:** `strictFilters` and `ownPropertyOnly` removed from `CreateEngineOptions` (now enforced as non-overridable safety defaults)
67
+
68
+ **@funkai/models**
69
+
70
+ - Add `provider/model` format validation for model IDs
71
+ - Wrap `languageModel()` errors with model ID context
72
+
73
+ **@funkai/cli**
74
+
75
+ - Fix `$`-substitution bug in `flattenPartials` (`String.replace` function-form)
76
+ - Add error context for partial render failures
77
+ - `readJsonFile` now throws on malformed JSON instead of silently returning `{}`
78
+ - Replace naive YAML line parsing with proper `yaml` parser
79
+ - Extract `Liquid` engine to module-level singleton in `extractVariables`
80
+
81
+ - Updated dependencies [b1e1d01]
82
+ - @funkai/prompts@0.3.0
83
+
3
84
  ## 0.1.4
4
85
 
5
86
  ### Patch Changes