@actrun_ai/tastekit-core 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +68 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # @actrun_ai/tastekit-core
2
+
3
+ Core library for [TasteKit](https://github.com/philipbankier/tastekit) — compile your taste into portable AI agent artifacts.
4
+
5
+ ## What's in core?
6
+
7
+ This package contains the schemas, compilers, interview engine, drift detector, and generators that power TasteKit. Use it when building tools on top of TasteKit's compilation pipeline.
8
+
9
+ | Module | What it does |
10
+ |--------|-------------|
11
+ | `schemas/` | 9 Zod schemas (constitution, guardrails, memory, skills, bindings, trust, playbook, evalpack, workspace) |
12
+ | `compiler/` | 5-step pipeline: constitution → guardrails → memory → skills → playbooks |
13
+ | `interview/` | LLM-driven adaptive interviewer with confidence tracking and cascades |
14
+ | `domains/` | 6 domain rubrics (general, development, content, research, sales, support) |
15
+ | `drift/` | 7 drift signal types with proposal generation and memory consolidation |
16
+ | `skills/` | Graph analyzer, constraints validator, versioner, tracker, linter, packer |
17
+ | `generators/` | CLAUDE.md, SOUL.md, AGENTS.md, and hook script generators |
18
+ | `llm/` | Anthropic, OpenAI, and Ollama provider adapters |
19
+ | `mcp/` | MCP client wrapping the official SDK |
20
+ | `trust/` | Fingerprint pinning and audit |
21
+
22
+ ## Install
23
+
24
+ ```bash
25
+ npm install @actrun_ai/tastekit-core
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ ```typescript
31
+ import { compile } from '@actrun_ai/tastekit-core/compiler';
32
+ import { loadSession } from '@actrun_ai/tastekit-core/interview';
33
+ import { ConstitutionV1Schema } from '@actrun_ai/tastekit-core/schemas';
34
+
35
+ // Load a session from an onboarding interview
36
+ const session = loadSession('.tastekit/session.json');
37
+
38
+ // Compile artifacts
39
+ const result = await compile({
40
+ workspacePath: '.tastekit',
41
+ session,
42
+ generatorVersion: '0.1.0',
43
+ });
44
+
45
+ console.log(result.artifacts);
46
+ // ['constitution.v1.json', 'guardrails.v1.yaml', 'memory.v1.yaml', 'skills/manifest.v1.yaml', ...]
47
+ ```
48
+
49
+ ## Schemas
50
+
51
+ All artifact schemas are Zod-validated:
52
+
53
+ ```typescript
54
+ import { ConstitutionV1Schema } from '@actrun_ai/tastekit-core/schemas';
55
+
56
+ const result = ConstitutionV1Schema.safeParse(data);
57
+ if (result.success) {
58
+ console.log(result.data.principles);
59
+ }
60
+ ```
61
+
62
+ ## Part of TasteKit
63
+
64
+ This is the core library. For the CLI tool, see [`@actrun_ai/tastekit-cli`](https://www.npmjs.com/package/@actrun_ai/tastekit-cli). For runtime adapters, see [`@actrun_ai/tastekit-adapters`](https://www.npmjs.com/package/@actrun_ai/tastekit-adapters).
65
+
66
+ ## License
67
+
68
+ MIT
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@actrun_ai/tastekit-core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "TasteKit core library - schemas, compiler, skills, MCP, trust, tracing",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "TasteKit Contributors",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "https://github.com/tastekit/tastekit.git",
10
+ "url": "https://github.com/philipbankier/tastekit.git",
11
11
  "directory": "packages/core"
12
12
  },
13
13
  "publishConfig": {