{"_id":"@b-apm/integration-claude","name":"@b-apm/integration-claude","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@b-apm/integration-claude","version":"0.1.0","description":"Claude Code runtime + marketplace-output integration for bapm","license":"MIT","type":"module","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"publishConfig":{"access":"public"},"dependencies":{"@b-apm/integration-api":"0.1.0"},"devDependencies":{"@types/node":"^26.1.2","typescript":"^7.0.2","vite":"npm:@voidzero-dev/vite-plus-core@latest","vite-plus":"latest"},"engines":{"node":">=22.12.0"},"repository":{"type":"git","url":"git+https://github.com/Sdju/bapm.git","directory":"packages/integration-claude"},"homepage":"https://github.com/Sdju/bapm#readme","bugs":{"url":"https://github.com/Sdju/bapm/issues"},"keywords":["unstable","bapm","b-apm"],"scripts":{"build":"vp pack","dev":"vp pack --watch","test":"vp test","check":"vp check"},"_nodeVersion":"24.19.0","_id":"@b-apm/integration-claude@0.1.0","dist":{"integrity":"sha512-vio2yc757jYsfh4DQLG3Nz242ZLkth3a9N/rgu7G/U+3E1LnJ2fVB5F8GlJwgUZvZlN0czwwYDFznV2/AsceGQ==","shasum":"12dc1f0a5b64a5c153e55a645df73b2cab9d5871","tarball":"https://registry.npmjs.org/@b-apm/integration-claude/-/integration-claude-0.1.0.tgz","fileCount":5,"unpackedSize":23468,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBlrfM4UNq2hOv82qmP/mHtm+fRrN180P2Bdsh07EN6fAiBrrIuwPs4GfrMaTSxr/8cl36b65a8GCIgKTwfi/TLP/A=="}]},"_npmUser":{"name":"zede","email":"zede1697@mail.ru"},"directories":{},"maintainers":[{"name":"zede","email":"zede1697@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/integration-claude_0.1.0_1786367283155_0.6734224729128775"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-10T13:08:02.907Z","0.1.0":"2026-08-10T13:08:03.274Z","modified":"2026-08-10T13:08:03.517Z"},"maintainers":[{"name":"zede","email":"zede1697@mail.ru"}],"description":"Claude Code runtime + marketplace-output integration for bapm","homepage":"https://github.com/Sdju/bapm#readme","keywords":["unstable","bapm","b-apm"],"repository":{"type":"git","url":"git+https://github.com/Sdju/bapm.git","directory":"packages/integration-claude"},"bugs":{"url":"https://github.com/Sdju/bapm/issues"},"license":"MIT","readme":"# @b-apm/integration-claude\n\n> **UNSTABLE:** Early public release. APIs and on-disk layouts may change without a major bump. Not production-ready.\n\nClaude Code **runtime** host for bapm, plus Anthropic **marketplace pack** mapper in the same package.\n\n## Dual surface\n\n| Capability                | Export                                                  | When                                 |\n| ------------------------- | ------------------------------------------------------- | ------------------------------------ |\n| Runtime install / compile | `createClaudeIntegration` / `createIntegration`         | `targets.claude` / `--target claude` |\n| Marketplace pack          | `claudeMarketplaceIntegration` / `mapClaudeMarketplace` | `bapm pack --marketplace claude`     |\n\nMarketplace mapping stays available without activating the runtime factory.\n\n## Detection vs forced target\n\n| Mode                           | When active                                              | Creates roots?                                                    |\n| ------------------------------ | -------------------------------------------------------- | ----------------------------------------------------------------- |\n| **Auto-detect**                | `.claude/` **directory** **or** project-root `CLAUDE.md` | Only when materialize / configureMcp runs after a positive detect |\n| **Forced** (`--target claude`) | Explicit forced target id, even if detect is false       | MAY `mkdir` `.claude/` as needed                                  |\n\nAuto-detect without force MUST NOT create `.claude/` solely for MCP opt-in.\n\n## Deploy roots\n\n- `.claude` — skills, rules, agents, commands, hooks settings/scripts, ownership sidecar\n- `.` — project `.mcp.json` and compile `CLAUDE.md` only (basename allowlist in writers)\n\n## Materialize routing\n\n| Primitive type | Destination                                                                                |\n| -------------- | ------------------------------------------------------------------------------------------ |\n| skill          | `.claude/skills/<name>/SKILL.md` (never `.agents/skills/`)                                 |\n| instruction    | `.claude/rules/<name>.md` (`applyTo` → `paths:`)                                           |\n| agent          | `.claude/agents/<name>.md`                                                                 |\n| command        | `.claude/commands/<name>.md` (shared frontmatter subset)                                   |\n| hook           | merge `.claude/settings.json` + scripts under `.claude/hooks/` + `.claude/bapm-hooks.json` |\n\nMCP is **not** written by materialize — only via `configureMcp` → project `.mcp.json` when `.claude/` exists.\n\n## Compile\n\n`compile` defaults to `CLAUDE.md`, omits instruction primitives (they live under `.claude/rules/`), and honors `write` for preview vs durable emit.\n\n## Dependencies\n\nDepends only on `@b-apm/integration-api` among bapm packages — not `@b-apm/core`.\nRegister via `createIntegrationRegistry().register(createClaudeIntegration())` or object-map `targets.claude: \"@b-apm/integration-claude\"`.\n","readmeFilename":"","_rev":"1-b02ded07294c01f3bbe9a9fe3858e7bc"}