-
6f74088: Support co-located partials via underscore naming convention
Files matching
_*.promptin--includesdirectories are now treated as co-located partials:- Skipped during prompt discovery (no TypeScript module generated)
- Include base directories are added to the LiquidJS partial search path
- Resolvable via path-relative render tags (e.g.
{% render 'instructions/_core' %})
This enables co-locating partial fragments alongside full prompts without a separate
--partialsdirectory. Same-named partials in different directories are disambiguated by path.
- Updated dependencies [ef51bd7]
- @funkai/prompts@0.4.1
-
3fa83a3: feat(cli): add funkai.config.ts support and interactive setup
- New
@funkai/configpackage withdefineConfig(), Zod schema, andFunkaiConfigtype funkai setupis now interactive: select domains (prompts/agents), createfunkai.config.ts, run domain-specific setupfunkai prompts generateandfunkai prompts lintnow fall back to config when--out/--rootsare omittedfunkai prompts createdefaults to first root from config when--outis omitted- Config is loaded from the git root via kidd-cli's c12 integration
- New
-
c8569db: feat(prompts): add createPrompt, createPromptGroup, and config-based group assignment
- Add
createPrompt<T>(config)factory for building prompt modules at runtime and codegen - Add
createPromptGroup(name, prompts)for grouping prompt modules into namespaces - Add
PromptConfig<T>type for prompt module configuration - Codegen now uses
createPrompt()instead of raw object literals - Scope name uniqueness to group+name instead of global name
- Derive file slugs and import names from group+name to avoid collisions
- Replace
rootsconfig field withincludes/excludesglob patterns - Add
groupsconfig field for pattern-based group assignment via picomatch - Frontmatter
grouptakes precedence over config-defined groups - Updated banner format for generated files
- Add
- Updated dependencies [3fa83a3]
- Updated dependencies [c8569db]
- @funkai/config@0.2.0
- @funkai/prompts@0.4.0
-
5d9fbeb: Enforce TypeScript and FP standards across all packages.
@funkai/agents
isAgent()andisFlowAgent()now return proper type predicates (value is Agent/value is FlowAgent) instead ofboolean- Added
@exampletags to exportedtoJsonSchema,isZodObject,isZodArray
@funkai/cli
- Breaking:
handleGenerate,handleLint,flattenPartials,parseFrontmatternow accept a single params object instead of positional arguments - New exported interfaces:
HandleGenerateParams,HandleLintParams,FlattenPartialsParams,ParseFrontmatterParams extractVariablesanddiscoverPromptsreturnreadonlyarraysparseSchemaBlockreturnsreadonly SchemaVariable[]
-
b1e1d01: Fix bug and correctness issues across all packages.
@funkai/agents
- Export
createFlowEngineand related types (FlowEngineConfig,FlowFactory,CustomStepFactory,CustomStepDefinitions,TypedCustomSteps) - Guard
resolvedInputbefore passing toonErrorhooks (wasundefinedcast asTInput) - Fix
onStepStarthook asymmetry: per-call override now merged with config hook - Remove deprecated unused
TraceTypealias
@funkai/prompts
- Breaking:
strictFiltersandownPropertyOnlyremoved fromCreateEngineOptions(now enforced as non-overridable safety defaults)
@funkai/models
- Add
provider/modelformat validation for model IDs - Wrap
languageModel()errors with model ID context
@funkai/cli
- Fix
$-substitution bug inflattenPartials(String.replacefunction-form) - Add error context for partial render failures
readJsonFilenow throws on malformed JSON instead of silently returning{}- Replace naive YAML line parsing with proper
yamlparser - Extract
Liquidengine to module-level singleton inextractVariables
- Export
-
Updated dependencies [b1e1d01]
- @funkai/prompts@0.3.0
- c4e81fd: Upgrade runtime dependencies to latest versions
-
8b89d9c: Simplify API surface across all packages: replace OpenRouter-specific provider layer with generic registry pattern, streamline agent internals, and restructure prompt entry points.
Migration notes:
@funkai/agents:AgentConfig.resolveris replaced byAgentConfig.registry.@funkai/models: OpenRouter-specific provider exports (openrouter.ts,resolver.ts) were removed in favor ofcreateProviderRegistryandProviderRegistry.@funkai/prompts: Runtime helpers moved to@funkai/prompts/runtime, CLI helpers moved to@funkai/prompts/cli.
-
Updated dependencies [8b89d9c]
- @funkai/prompts@0.2.0
- Updated dependencies [153c393]
- @funkai/prompts@0.1.2
- 1beb2d2: Update package README documentation
- Updated dependencies [1beb2d2]
- @funkai/prompts@0.1.1
-
Initial release of
@funkai/cli— CLI for the funkai prompt SDK.funkai prompts generate— Generate typed TypeScript modules from.promptfilesfunkai prompts lint— Validate prompt files for undefined and unused variablesfunkai prompts create— Scaffold new.promptfiles and partialsfunkai prompts setup— Interactive project configuration for VSCode, gitignore, and tsconfig