@actrun_ai/tastekit-adapters 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 +71 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # @actrun_ai/tastekit-adapters
2
+
3
+ Runtime adapters for [TasteKit](https://github.com/philipbankier/tastekit) — transform compiled artifacts into runtime-specific formats.
4
+
5
+ ## Adapters
6
+
7
+ | Adapter | Version | Output |
8
+ |---------|---------|--------|
9
+ | **Claude Code** | v2.0 | CLAUDE.md + settings.local.json (hooks, permissions, defaultMode) + 5 hook scripts |
10
+ | **OpenClaw** | v2.0 | SOUL.md + IDENTITY.md + AGENTS.md + openclaw.config.json + skills/ |
11
+ | **ActRun Autopilots** | v2.0 | autopilots.yaml + .agents/skills/ (Agent Skills standard) |
12
+ | **Manus** | v1.0 | skills/ directory + README.md |
13
+
14
+ All adapters produce skills in the [Agent Skills](https://agentskills.io) open standard format, compatible with 32+ runtimes including Claude Code, OpenAI Codex, Gemini CLI, Cursor, VS Code Copilot, and more.
15
+
16
+ ## Install
17
+
18
+ ```bash
19
+ npm install @actrun_ai/tastekit-adapters
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ ```typescript
25
+ import { ClaudeCodeAdapter } from '@actrun_ai/tastekit-adapters/claude-code';
26
+
27
+ const adapter = new ClaudeCodeAdapter();
28
+ await adapter.export('.tastekit', './export', {
29
+ includeSkills: true,
30
+ includePlaybooks: true,
31
+ });
32
+ ```
33
+
34
+ ## Adapter Interface
35
+
36
+ All adapters implement:
37
+
38
+ ```typescript
39
+ interface TasteKitAdapter {
40
+ id: string;
41
+ version: string;
42
+ detect(target: string): Promise<boolean>;
43
+ export(profilePath: string, outDir: string, opts: ExportOpts): Promise<void>;
44
+ install(outDir: string, target: string, opts: InstallOpts): Promise<void>;
45
+ }
46
+ ```
47
+
48
+ ## Claude Code Adapter Details
49
+
50
+ The Claude Code adapter (v2.0) generates:
51
+
52
+ - **CLAUDE.md** — Compositional system instructions from constitution blocks
53
+ - **settings.local.json** — Hooks configuration + permission patterns + defaultMode
54
+ - `permissions.allow` mapped from guardrails permissions
55
+ - `permissions.deny` mapped from guardrails block rules
56
+ - `defaultMode` derived from autonomy_level (<0.3: plan, 0.3-0.7: default, >0.7: acceptEdits)
57
+ - **5 hook scripts** across 5 lifecycle events:
58
+ - `tastekit-guard.sh` (PreToolUse) — guardrail enforcement
59
+ - `session-orient.sh` (SessionStart) — inject principles + drift status
60
+ - `post-compact.sh` (PostCompact) — re-inject constitution after compaction
61
+ - `artifact-validate.sh` (PostToolUse) — warn on artifact modification
62
+ - `session-capture.sh` (Stop) — log session for drift detection
63
+
64
+ ## Part of TasteKit
65
+
66
+ - CLI: [`@actrun_ai/tastekit-cli`](https://www.npmjs.com/package/@actrun_ai/tastekit-cli)
67
+ - Core: [`@actrun_ai/tastekit-core`](https://www.npmjs.com/package/@actrun_ai/tastekit-core)
68
+
69
+ ## License
70
+
71
+ MIT
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@actrun_ai/tastekit-adapters",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "TasteKit runtime adapters for Claude Code, Manus, OpenClaw, and Autopilots",
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/adapters"
12
12
  },
13
13
  "publishConfig": {