@funkai/cli 0.1.3 → 0.2.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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +55 -0
- package/dist/index.mjs +7591 -9666
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -5
- package/src/commands/generate.ts +1 -1
- package/src/commands/prompts/create.ts +3 -2
- package/src/commands/prompts/generate.ts +39 -25
- package/src/commands/prompts/lint.ts +34 -24
- package/src/commands/prompts/setup.ts +64 -21
- package/src/commands/validate.ts +1 -1
- package/src/lib/prompts/__tests__/extract-variables.test.ts +1 -1
- package/src/lib/prompts/__tests__/flatten.test.ts +30 -28
- package/src/lib/prompts/__tests__/frontmatter.test.ts +18 -16
- package/src/lib/prompts/__tests__/lint.test.ts +5 -5
- package/src/lib/prompts/codegen.ts +47 -20
- package/src/lib/prompts/extract-variables.ts +20 -3
- package/src/lib/prompts/flatten.ts +65 -14
- package/src/lib/prompts/frontmatter.ts +102 -44
- package/src/lib/prompts/lint.ts +18 -23
- package/src/lib/prompts/paths.ts +25 -11
- package/src/lib/prompts/pipeline.ts +26 -16
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @funkai/cli@0.
|
|
2
|
+
> @funkai/cli@0.2.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.
|
|
13
|
+
│ version 0.2.0 │
|
|
14
14
|
│ │
|
|
15
15
|
├───────────────────────────╯
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# @funkai/cli
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5d9fbeb: Enforce TypeScript and FP standards across all packages.
|
|
8
|
+
|
|
9
|
+
**@funkai/agents**
|
|
10
|
+
|
|
11
|
+
- `isAgent()` and `isFlowAgent()` now return proper type predicates (`value is Agent` / `value is FlowAgent`) instead of `boolean`
|
|
12
|
+
- Added `@example` tags to exported `toJsonSchema`, `isZodObject`, `isZodArray`
|
|
13
|
+
|
|
14
|
+
**@funkai/cli**
|
|
15
|
+
|
|
16
|
+
- **Breaking:** `handleGenerate`, `handleLint`, `flattenPartials`, `parseFrontmatter` now accept a single params object instead of positional arguments
|
|
17
|
+
- New exported interfaces: `HandleGenerateParams`, `HandleLintParams`, `FlattenPartialsParams`, `ParseFrontmatterParams`
|
|
18
|
+
- `extractVariables` and `discoverPrompts` return `readonly` arrays
|
|
19
|
+
- `parseSchemaBlock` returns `readonly SchemaVariable[]`
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- b1e1d01: Fix bug and correctness issues across all packages.
|
|
24
|
+
|
|
25
|
+
**@funkai/agents**
|
|
26
|
+
|
|
27
|
+
- Export `createFlowEngine` and related types (`FlowEngineConfig`, `FlowFactory`, `CustomStepFactory`, `CustomStepDefinitions`, `TypedCustomSteps`)
|
|
28
|
+
- Guard `resolvedInput` before passing to `onError` hooks (was `undefined` cast as `TInput`)
|
|
29
|
+
- Fix `onStepStart` hook asymmetry: per-call override now merged with config hook
|
|
30
|
+
- Remove deprecated unused `TraceType` alias
|
|
31
|
+
|
|
32
|
+
**@funkai/prompts**
|
|
33
|
+
|
|
34
|
+
- **Breaking:** `strictFilters` and `ownPropertyOnly` removed from `CreateEngineOptions` (now enforced as non-overridable safety defaults)
|
|
35
|
+
|
|
36
|
+
**@funkai/models**
|
|
37
|
+
|
|
38
|
+
- Add `provider/model` format validation for model IDs
|
|
39
|
+
- Wrap `languageModel()` errors with model ID context
|
|
40
|
+
|
|
41
|
+
**@funkai/cli**
|
|
42
|
+
|
|
43
|
+
- Fix `$`-substitution bug in `flattenPartials` (`String.replace` function-form)
|
|
44
|
+
- Add error context for partial render failures
|
|
45
|
+
- `readJsonFile` now throws on malformed JSON instead of silently returning `{}`
|
|
46
|
+
- Replace naive YAML line parsing with proper `yaml` parser
|
|
47
|
+
- Extract `Liquid` engine to module-level singleton in `extractVariables`
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [b1e1d01]
|
|
50
|
+
- @funkai/prompts@0.3.0
|
|
51
|
+
|
|
52
|
+
## 0.1.4
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- c4e81fd: Upgrade runtime dependencies to latest versions
|
|
57
|
+
|
|
3
58
|
## 0.1.3
|
|
4
59
|
|
|
5
60
|
### Patch Changes
|