@amsterdamdatalabs/enact-extensions 0.1.55 → 0.1.56

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.
package/README.md CHANGED
@@ -95,7 +95,7 @@ marker.
95
95
  | Codex | `.codex/agents/*.toml`, `.agents/skills/<skill>/`, `.codex/config.toml` MCP tables, and `.codex/hooks.json`. Trust the exact project path and review hooks with `/hooks`. |
96
96
  | Cursor | `.cursor/agents/*.md`, `.cursor/skills/<skill>/`, `.cursor/mcp.json`, and `.cursor/hooks.json`. |
97
97
  | Kimi Code | `.kimi-code/agents/*.md`, `.kimi-code/skills/<skill>/`, and `.kimi-code/mcp.json`. Kimi hooks remain global-only and are installed by `enact-vps`, never by this repo-local command. |
98
- | OpenCode | A hook-free bundle writes `.opencode/agents/*.md`, `.opencode/skills/<skill>/`, and root `opencode.json` MCP entries. `enact-repo` declares hooks, so its repo-local OpenCode install is refused before any write; install its explicit global OpenCode plugin through `enact-vps`. |
98
+ | OpenCode | `.opencode/agents/*.md`, `.opencode/skills/<skill>/`, and root `opencode.json` MCP entries. The repo-local installer owns these files and removes its lock-owned legacy plugin root unconditionally. |
99
99
 
100
100
  Skills are installed at each host's native project discovery path: `.agents/skills/` for
101
101
  Codex and `.claude/skills/`, `.cursor/skills/`, `.kimi-code/skills/`, or
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enact-repo",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Baseline agent setup for any repository: the full Enact skill catalog plus guard, briefing, and code-review-graph hooks and MCP tooling, installed at repo scope.",
5
5
  "author": {
6
6
  "name": "amsterdamdatalabs"
@@ -72,13 +72,13 @@ host, with no `--host` appended.
72
72
  Install into a repository with `enact-extensions install enact-repo --repo <repo-root>` (see the
73
73
  top-level README, "Repo-local install"). The command writes direct native project files only:
74
74
  `.claude/agents` and `.claude/skills`; `.codex/agents` and `.agents/skills`;
75
- `.cursor/agents` and `.cursor/skills`; `.kimi-code/agents` and `.kimi-code/skills`; and,
76
- for hook-free bundles, `.opencode/agents` and `.opencode/skills`. It also writes each host's
75
+ `.cursor/agents` and `.cursor/skills`; `.kimi-code/agents` and `.kimi-code/skills`; and
76
+ `.opencode/agents` and `.opencode/skills`. It also writes each host's
77
77
  native MCP and hook configuration where supported. It never writes a plugin root, marketplace,
78
78
  or plugin registration.
79
- Kimi hooks are global-only and are installed by `enact-vps`, not by this bundle. OpenCode has no
80
- repo-local hook carrier: an OpenCode install of a hook-bearing bundle fails before writing anything
81
- and requires the explicit global OpenCode plugin through `enact-vps`. The installer also marks the
79
+ Kimi hooks are global-only and are installed by `enact-vps`, not by this bundle. OpenCode's
80
+ process-level hook carrier is separate from this repo-local installer; OpenCode bundles always
81
+ install their native local files and remove lock-owned legacy plugin roots. The installer also marks the
82
82
  repo as managed through root `enact-config.toml` (the file `enact-hook` checks): it creates the
83
83
  file with `version = 1` when missing, manages the `[extensions]` declaration for this bundle by
84
84
  text-level surgery only, removes the legacy marker-only `[skills]` block, and never writes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amsterdamdatalabs/enact-extensions",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "description": "Create and validate Enact multi-platform plugin manifests",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -17,8 +17,8 @@
17
17
  * kimi — `.kimi-code/agents`, `.kimi-code/skills`, and `.kimi-code/mcp.json`.
18
18
  * Kimi hooks remain global-only and are not owned here.
19
19
  * opencode — `.opencode/agents`, `.opencode/skills`, and `opencode.json` MCP.
20
- * OpenCode has no native project hook surface, so a hook-bearing
21
- * bundle fails before writes and names enact-vps' global plugin path.
20
+ * Its process-level hook carrier is global, while this installer
21
+ * owns every repo-local artifact and legacy-root migration.
22
22
  *
23
23
  * Repo installation never writes a plugin root, marketplace, or plugin
24
24
  * registration. Those belong exclusively to explicit global installation.
@@ -507,11 +507,6 @@ const HOST_ADAPTERS = {
507
507
  },
508
508
 
509
509
  opencode(plan, bundle, pluginRoot) {
510
- if (bundle.hooks) {
511
- throw new Error(
512
- "OpenCode repo-local installation cannot install hooks: install the explicit global OpenCode plugin through enact-vps first",
513
- );
514
- }
515
510
  addNativeAgents(plan, pluginRoot, "opencode");
516
511
  addNativeSkills(plan, bundle, "opencode");
517
512
  const mcp = jsonMerge(plan, "opencode.json");