@a5c-ai/extensions-adapter 5.1.1-staging.0c6199708314

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 +58 -0
  2. package/package.json +69 -0
package/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # @a5c-ai/extensions-adapter
2
+
3
+ Cross-harness plugin compiler for converting a unified `plugin.json` source tree into harness-specific plugin packages.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @a5c-ai/extensions-adapter
9
+ ```
10
+
11
+ CLI usage:
12
+
13
+ ```bash
14
+ npx --yes @a5c-ai/extensions-adapter --help
15
+ ```
16
+
17
+ This package ships the built compiler in `dist/` and this package README for npm auditability.
18
+
19
+ ## CLI Surface
20
+
21
+ The current public CLI commands are:
22
+
23
+ - `compile --target <name|all> --output <dir>` to emit target plugin surfaces
24
+ - `validate --source <dir>` to validate a unified plugin directory without writing output
25
+ - `init --name <name> [--template <minimal|full|hooks-only>] [--output <dir>]` to scaffold a valid unified plugin source tree
26
+ - `list-targets` to print the supported target registry
27
+
28
+ The `diff` command is still reserved and currently exits with a not-implemented error. The supported targets are `claude-code`, `codex`, `cursor`, `gemini`, `github-copilot`, `pi`, `oh-my-pi`, `opencode`, and `openclaw`.
29
+
30
+ ## API Surface
31
+
32
+ ```ts
33
+ import {
34
+ compile,
35
+ compileAll,
36
+ validateDirectory,
37
+ validateSchema,
38
+ } from "@a5c-ai/extensions-adapter";
39
+ ```
40
+
41
+ The package exports the compiler pipeline and related types:
42
+
43
+ - manifest schema and package types
44
+ - directory validation, target resolution, transform, emit, and verify helpers
45
+ - target registry accessors and compilation entrypoints
46
+
47
+ ## Validation
48
+
49
+ ```bash
50
+ npm run build --workspace=@a5c-ai/extensions-adapter
51
+ npm run test --workspace=@a5c-ai/extensions-adapter
52
+ npm run verify:metadata
53
+ npm pack --json --dry-run --workspace=@a5c-ai/extensions-adapter
54
+ ```
55
+
56
+ ## Release Expectations
57
+
58
+ `@a5c-ai/extensions-adapter` is published from the central release workflows. Keep this README aligned with the actual command set and compiler exports, and keep `package.json#files` limited to the built compiler plus package documentation.
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@a5c-ai/extensions-adapter",
3
+ "version": "5.1.1-staging.0c6199708314",
4
+ "description": "Cross-harness plugin compiler — compiles a single plugin.json manifest into 9 AI coding agent plugin formats",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "adapters-extensions": "./dist/cli.js",
10
+ "extensions-adapter": "./dist/extensions-adapter.js"
11
+ },
12
+ "scripts": {
13
+ "build": "tsc",
14
+ "clean": "rm -rf dist",
15
+ "test": "vitest run",
16
+ "test:watch": "vitest watch",
17
+ "lint": "eslint \"src/**/*.ts\" --max-warnings=0",
18
+ "prepublishOnly": "npm run clean && npm run build"
19
+ },
20
+ "keywords": [
21
+ "a5c",
22
+ "plugin",
23
+ "compiler",
24
+ "unified",
25
+ "claude-code",
26
+ "codex",
27
+ "cursor",
28
+ "gemini",
29
+ "copilot",
30
+ "pi"
31
+ ],
32
+ "author": "a5c.ai",
33
+ "license": "MIT",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/a5c-ai/babysitter.git",
37
+ "directory": "packages/adapters/extensions"
38
+ },
39
+ "homepage": "https://github.com/a5c-ai/babysitter/tree/main/packages/adapters/extensions#readme",
40
+ "bugs": {
41
+ "url": "https://github.com/a5c-ai/babysitter/issues"
42
+ },
43
+ "files": [
44
+ "dist/",
45
+ "README.md"
46
+ ],
47
+ "publishConfig": {
48
+ "access": "public"
49
+ },
50
+ "dependencies": {
51
+ "@a5c-ai/atlas": "5.1.1-staging.0c6199708314"
52
+ },
53
+ "devDependencies": {
54
+ "@types/node": "^22.0.0",
55
+ "typescript": "^5.7.3",
56
+ "vitest": "^4.1.6"
57
+ },
58
+ "engines": {
59
+ "node": ">=18.0.0"
60
+ },
61
+ "atlas": {
62
+ "layers": [
63
+ "L6"
64
+ ],
65
+ "muxes": [
66
+ "extensions-adapter"
67
+ ]
68
+ }
69
+ }