@goodfoot/agent-hooks 1.0.6 → 1.0.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @goodfoot/agent-hooks npm package changelog
2
2
 
3
+ ## 1.0.8
4
+
5
+ Maintenance release accompanying a repository version-bump hook fix: a version surface is now exempt only for its version, not for its whole contents, so an edit to a manifest or a version-bearing source file can no longer ship unversioned. No changes to the hook API, the compiler, or the CLI.
6
+
7
+ ## 1.0.7
8
+
9
+ Corrects the README's OpenCode install rationale. The plugin packages now declare a `main` entrypoint, so `opencode plugin` no longer rejects them with `No plugin targets found`; the reason a checkout is still required is that `opencode plugin` never writes `skills.paths`, so installing the plugin does not deliver the skill. Also moves a sentence about compiling hooks for OpenCode out of the version-checking paragraph it had attached itself to. No changes to the hook API, the compiler, or the CLI.
10
+
3
11
  ## 1.0.6
4
12
 
5
13
  Restructures the README's Install section to separate the npm package from the plugin, and documents verified plugin installation for Claude Code, Codex, Antigravity, and OpenCode. Adds `README.md` and `CHANGELOG.md` to the package's `files` list so both ship to npm; previously neither was published. No changes to the hook API, the compiler, or the CLI.
package/README.md CHANGED
@@ -34,10 +34,10 @@ yarn add @goodfoot/agent-hooks
34
34
 
35
35
  ### The plugin, for development
36
36
 
37
- All four hosts install from the published marketplace at
38
- [`goodfoot-io/marketplace`](https://github.com/goodfoot-io/marketplace). Claude Code and
39
- Codex resolve the repository directly; Antigravity and OpenCode need a local checkout
40
- because neither exposes a remote marketplace for skills.
37
+ All four hosts install from
38
+ [`goodfoot-io/marketplace`](https://github.com/goodfoot-io/marketplace). Claude Code,
39
+ Codex, and Antigravity resolve the repository directly. Only OpenCode needs a checkout,
40
+ because it loads skills from a config path rather than from a plugin.
41
41
 
42
42
  Note that the plugin and the npm package version independently — the plugin version you
43
43
  install will not match the package version above.
@@ -65,16 +65,20 @@ Verify with `codex plugin list --json`; the skill tree lands under
65
65
 
66
66
  #### Antigravity
67
67
 
68
- `agy` has no marketplace command, so install from a checkout:
68
+ `agy` has no marketplace command. It installs a plugin root directly, from a git URL
69
+ with the in-repo path appended:
69
70
 
70
71
  ```bash
71
- git clone https://github.com/goodfoot-io/marketplace.git
72
- agy plugin install ./marketplace/plugins-antigravity/agent-hooks
72
+ agy plugin install https://github.com/goodfoot-io/marketplace.git/plugins-antigravity/agent-hooks
73
73
  ```
74
74
 
75
- A successful install reports `skills : N processed`; `agents`, `commands`, `mcpServers`,
76
- and `hooks` report `skipped (not found)`, which is expected for a skills-only plugin.
77
- Verify with `agy plugin list`.
75
+ The `#subdir` fragment form other tools accept fails here with `could not detect plugin
76
+ structure`. A local path works the same way: `agy plugin install
77
+ ./plugins-antigravity/agent-hooks`.
78
+
79
+ A successful install reports `skills : 1 processed`; `agents`, `commands`, `mcpServers`,
80
+ and `hooks` report `skipped (not found)`, expected for a skills-only plugin. Files land
81
+ in `~/.gemini/config/plugins/agent-hooks/`. Verify with `agy plugin list`.
78
82
 
79
83
  This installs the authoring skill only. It is unrelated to `--agent antigravity`, which
80
84
  the compiler CLI still rejects (see the status note above).
@@ -82,8 +86,9 @@ the compiler CLI still rejects (see the status note above).
82
86
  #### OpenCode
83
87
 
84
88
  OpenCode plugins are hook-transport modules and cannot contribute skills — skills load
85
- only from `skills.paths`. `opencode plugin` will not install this. Clone the repository
86
- and register the skill directory in `opencode.json`:
89
+ only from `skills.paths`, and `opencode plugin` never writes that key. Installing the
90
+ plugin is not a way to get the skill. Clone the repository and register the skill
91
+ directory in `opencode.json`:
87
92
 
88
93
  ```bash
89
94
  git clone https://github.com/goodfoot-io/marketplace.git
@@ -97,8 +102,28 @@ git clone https://github.com/goodfoot-io/marketplace.git
97
102
  }
98
103
  ```
99
104
 
100
- Verify with `opencode debug skill`, which lists every discovered skill. This is separate
101
- from compiling hooks *for* OpenCode, covered in [OpenCode](#opencode) below.
105
+ Verify with `opencode debug skill`. Its output is large and embeds whole skill bodies:
106
+ redirect it to a file and search there. Piping it to `head` truncates the JSON mid-string
107
+ and reports a present skill as missing.
108
+
109
+ Installing this skill is separate from compiling hooks *for* OpenCode, covered in
110
+ [OpenCode](#opencode) below.
111
+
112
+ #### Updating an existing install
113
+
114
+ Re-running the install command does not move the version on every host.
115
+
116
+ - **Claude Code** — `plugin install` is a no-op once the plugin is installed: it reports
117
+ success and leaves the old version pinned. Use `claude plugin marketplace update
118
+ goodfoot`, then `claude plugin update agent-hooks@goodfoot`. A restart applies it.
119
+ - **Codex** — `codex plugin marketplace upgrade goodfoot` moves the installed version;
120
+ there is no separate plugin-update command.
121
+ - **Antigravity** — re-run `agy plugin install`.
122
+ - **OpenCode** — pull the checkout.
123
+
124
+ Check the installed version rather than the exit code. Several hosts report success while
125
+ leaving a stale version in place, and a newer directory in a host's cache proves only that
126
+ it was fetched, not that it is the active install.
102
127
 
103
128
  ## Quick Start
104
129
 
@@ -55,7 +55,7 @@ function generatePackageJson(projectName, outputPath) {
55
55
  typecheck: "tsc --noEmit",
56
56
  },
57
57
  dependencies: {
58
- [PACKAGE_NAME]: "^1.0.6",
58
+ [PACKAGE_NAME]: "^1.0.8",
59
59
  },
60
60
  devDependencies: {
61
61
  "@biomejs/biome": "2.4.9",
package/dist/cli.js CHANGED
@@ -26,7 +26,7 @@ import { scaffoldProject } from "./scaffold.js";
26
26
  // ============================================================================
27
27
  // Constants
28
28
  // ============================================================================
29
- const VERSION = "1.0.6";
29
+ const VERSION = "1.0.8";
30
30
  const DEFAULT_ESBUILD_LOADERS = {
31
31
  ".md": "text",
32
32
  };
package/dist/scaffold.js CHANGED
@@ -131,7 +131,7 @@ function generatePackageJson(projectName, outputPath) {
131
131
  typecheck: "tsc --noEmit",
132
132
  },
133
133
  dependencies: {
134
- "@goodfoot/agent-hooks": "^1.0.6",
134
+ "@goodfoot/agent-hooks": "^1.0.8",
135
135
  },
136
136
  devDependencies: {
137
137
  "@biomejs/biome": "2.4.16",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodfoot/agent-hooks",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Unified agent hooks library: shared core runtime with per-agent entry points for Claude Code, Codex, and Antigravity",
5
5
  "homepage": "https://github.com/goodfoot-io/marketplace/tree/main/packages/agent-hooks",
6
6
  "repository": {