@yandy-r/ycc-opencode 6.2.1 → 6.3.0

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
@@ -1,7 +1,7 @@
1
1
  # @yandy-r/ycc-opencode
2
2
 
3
3
  Experimental, opt-in [OpenCode](https://opencode.ai) V2 plugin carrying the ycc bundle
4
- (version 6.2.1). It is unlisted and never the default install: the
4
+ (version 6.3.0). It is unlisted and never the default install: the
5
5
  `install.sh --target opencode` file copy remains the primary path.
6
6
 
7
7
  Requires OpenCode `>=2.0.30` (V2 plugin API; V1 hook plugins are not supported).
@@ -11,7 +11,7 @@ Requires OpenCode `>=2.0.30` (V2 plugin API; V1 hook plugins are not supported).
11
11
  Add the package to the V2 `plugins` array in your own `opencode.json`, pinned to an exact release:
12
12
 
13
13
  ```json
14
- { "plugins": ["@yandy-r/ycc-opencode@6.2.1"] }
14
+ { "plugins": ["@yandy-r/ycc-opencode@6.3.0"] }
15
15
  ```
16
16
 
17
17
  Pin the version instead of using the bare name. Right after a release, the registry can briefly serve
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yandy-r/ycc-opencode",
3
- "version": "6.2.1",
3
+ "version": "6.3.0",
4
4
  "description": "Experimental opt-in OpenCode V2 plugin registering the ycc bundle (skills, agents, commands, MCP servers, and session instructions) through its setup hook. The file-copy install remains the primary path.",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -67,11 +67,11 @@ from installer-managed artifacts and gated work in `ycc/settings/packages.json`.
67
67
  `listed: false` packages are not published catalog entries; generated trees and successful spikes
68
68
  alone do not make them shipping user install paths. This does not revise the capability verdicts above.
69
69
 
70
- | target | native, listed today | install.sh fallback today | unlisted or gated native packages |
70
+ | target | native, listed today | install.sh today | unlisted or gated native packages |
71
71
  | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- |
72
- | Claude | `ycc@ycc`, `ycc-mcp@ycc`, `ycc-hooks@ycc` (2.1.300+), `ycc-all@ycc`; `status-bar@ycc-mods` | Rules, settings, statusline, MCP, standalone skills/agents; hooks via the native `ycc-hooks` plugin at project scope (global hooks link with `--global`) | `ycc-agents@ycc` in v7.0.0 |
73
- | Cursor | `ycc`, `ycc-rules`, `ycc-mcp`, `ycc-hooks` via the root `.cursor-plugin/marketplace.json` (interactive `/plugins`); hooks `sessionStart` only | Skills, agents, commands, rules, settings under `~/.cursor/`; optional hooks | None |
74
- | Codex | `ycc@ycc`, `ycc-mcp@ycc` via the root `.agents/plugins/marketplace.json` | Agent TOMLs, `AGENTS.md`, `config.toml` | `ycc-hooks` excluded (YAN-1149) |
72
+ | Claude | `ycc@ycc`, `ycc-mcp@ycc`, `ycc-hooks@ycc` (2.1.300+), `ycc-all@ycc`; `status-bar@ycc-mods` | Installs the native plugins via `claude plugin` (`mcp`/`hooks` at project scope by default, user scope with `--global`); rules, settings, statusline | `ycc-agents@ycc` in v7.0.0 |
73
+ | Cursor | `ycc`, `ycc-rules`, `ycc-mcp`, `ycc-hooks` via the root `.cursor-plugin/marketplace.json` (interactive `/plugins`); hooks `sessionStart` only | Registers the marketplace and prints the `/plugins` step; `cli-config.json` settings (`--global`) | None |
74
+ | Codex | `ycc@ycc`, `ycc-mcp@ycc` via the root `.agents/plugins/marketplace.json` | Installs both via `codex plugin add` (codex 0.160+ required); agent TOMLs, `AGENTS.md`, `config.toml` | `ycc-hooks` excluded (YAN-1149) |
75
75
  | opencode | None | Skills, agents, commands, shared, `opencode.json`, `AGENTS.md` | `@yandy-r/ycc-opencode` npm plugin: experimental, opt-in, unpublished |
76
76
  | `agents` | None | Skills and `ycc-shared` copied into `~/.agents/` | None planned |
77
77
  | `omp` | `ycc@ycc`, `ycc-mcp@ycc`, `ycc-rules@ycc` via the root `.omp-plugin/marketplace.json` (omp `>=18.12.2`) | `install.sh --target omp`: local export (`--mode local`) or the repository catalog (`--mode repo`) installed through `omp plugin` (user or project scope); opt-in `--rules` (`AGENTS.md`) and `--settings` (`config.yml`), user scope only | `ycc-hooks` and `ycc-all` excluded (herdr: `herdr integration install omp`) |
@@ -121,9 +121,10 @@ The recommendation in `docs/research/ystack/recommendation.md` is qualified by
121
121
  **COMMANDS:claude**
122
122
  Claude Code has no separate ycc command-wrapper layer. Public skills are native slash
123
123
  invocations (`/ycc:<name>`); `user-invocable: false` hides a skill from the slash menu.
124
- The standalone installer's Claude `commands` intent aliases `skills`. It retires only
125
- legacy wrappers recorded in installer ownership state, and only after a successful
126
- skills install. Foreign wrappers are never touched.
124
+ Claude `skills`, `agents` and `commands` intents map to the `ycc@ycc` plugin; the
125
+ installer writes no standalone copies. Its legacy cleanup retires only wrappers and
126
+ copies recorded in installer ownership state (or identical to the bundle). Foreign
127
+ wrappers are never touched.
127
128
 
128
129
  **INVOCATION POLICY**
129
130
  `disable-model-invocation: true` is source frontmatter for manual-only skills; it is
@@ -135,11 +136,9 @@ target has no portable key, so it omits the flag and keeps the description.
135
136
  **COMMANDS:cursor**
136
137
  The native `packages/cursor/ycc/commands/` contains thin commands derived from
137
138
  user-invocable skills in `ycc/skills/`; each loads its package-local skill. This is not
138
- an installed-plugin dispatch proof. The file-copy installer's `commands` intent installs
139
- owned wrappers into `~/.cursor/commands/` that reference the installed skills, and its
140
- `hooks` intent is an optional explicit carrier that registers `sessionStart` only.
141
- Native plugin install is interactive (`/plugins`); the agent CLI has no non-interactive
142
- `plugin install`.
139
+ an installed-plugin dispatch proof. The installer writes no Cursor command or hook files:
140
+ native plugin install is interactive (`/plugins`), and the agent CLI has no
141
+ non-interactive `plugin install`.
143
142
 
144
143
  **COMMANDS:codex**
145
144
  The Codex customization platform does not support a slash-command layer. Skills are exposed
@@ -214,42 +213,43 @@ file so the committed `ycc/settings/settings.json` is not modified, and the `set
214
213
  later merges repo-managed keys while preserving the CLI-written marketplace entry. It also
215
214
  removes legacy `local-ycc-plugins` marketplace and `ycc@local-ycc-plugins` entries from
216
215
  `~/.claude.json` and `~/.claude/settings.local.json`, deleting `settings.local.json` if that
217
- leaves it empty. Other steps: `rules` links `~/.claude/CLAUDE.md`; `hooks` (the
218
- default) enables the native `ycc-hooks@ycc` plugin at project scope, declaring
219
- the `ycc` marketplace at project scope (repo mode, committed) or local scope
220
- (local mode) only when no visible declaration supplies it — never repointing an
221
- existing declaration — while `--global` links `~/.claude/hooks`; `mods`
222
- registers the `ycc-mods` directory marketplace; and `skills`/`agents`
223
- install standalone copies into `~/.claude/` (warning about duplicate names if
224
- `ycc@ycc` is also installed). The `base` step of `remove --target claude`
225
- uninstalls `ycc@ycc` and the `ycc` marketplace. The `hooks` intent removes
226
- `ycc-hooks@ycc` at project scope, then removes only installer-written
227
- marketplace declarations when no other `@ycc` install remains; with
228
- `--global`, it removes the installer-managed global hooks link.
216
+ leaves it empty. Other steps: `rules` links `~/.claude/CLAUDE.md`; `mcp` and `hooks`
217
+ install the native `ycc-mcp@ycc` and `ycc-hooks@ycc` plugins at project scope (the
218
+ default), declaring the `ycc` marketplace at project scope (repo mode, committed) or
219
+ local scope (local mode) only when no visible declaration supplies it — never
220
+ repointing an existing declaration — or at user scope with `--global`; `mods`
221
+ registers the `ycc-mods` directory marketplace. A successful native install then
222
+ retires proven installer-owned legacy state (standalone `~/.claude/{skills,agents}`
223
+ copies, command wrappers, and — once the add-on is explicitly enabled in
224
+ `~/.claude/settings.json` — the settings hook, `~/.claude/hooks` link and managed MCP
225
+ servers). The `base` step of `remove --target claude` uninstalls `ycc@ycc` and the
226
+ `ycc` marketplace. The `mcp`/`hooks` intents uninstall the plugin at the step's scope;
227
+ at project scope they remove only installer-written marketplace declarations when no
228
+ other `@ycc` install remains.
229
229
 
230
230
  **INSTALL_PATH:cursor**
231
231
  Sources under `ycc/` generate `packages/cursor/ycc/{skills,agents,commands}/`,
232
232
  `packages/cursor/ycc-rules/rules/`, `packages/cursor/ycc-mcp/mcp.json`, and
233
233
  `packages/cursor/ycc-hooks/hooks/`. Canonical `ycc/settings/cursor/cli-config.json`
234
234
  is copied byte-for-byte to `packages/cursor/installer-fallback/config/cli-config.json`.
235
- The file-copy installer copies skills, agents, and rules into `~/.cursor/`, installs
236
- owned `commands` wrappers into `~/.cursor/commands/`, and merges the config there. The
237
- `hooks` step is an optional explicit carrier that installs the `sessionStart` hook only
238
- (no `WorktreeCreate`) and is not inherited by other selections. All four native packages
239
- are listed in the generated root `.cursor-plugin/marketplace.json`; native installation is
235
+ `install.sh install --target cursor` runs `agent plugin marketplace add
236
+ https://github.com/yandy-r/ystack` (also in local mode: Cursor rejects filesystem
237
+ marketplaces), prints the `/plugins` step naming the packages for the requested intents,
238
+ and retires proven installer-owned copies an older installer wrote under `~/.cursor/`.
239
+ Its only other step merges `cli-config.json` (`--global`). All four native packages are
240
+ listed in the generated root `.cursor-plugin/marketplace.json`; native installation is
240
241
  interactive (`/plugins`). See `docs/internal/cursor-native-packages.md`.
241
242
 
242
243
  **INSTALL_PATH:codex**
243
- `install.sh install --target codex` symlinks `~/.codex/plugins/ycc/` to the repo's
244
- `.codex-plugin/ycc/`, also symlinks `~/.agents/plugins/ycc` to the same bundle,
245
- rsyncs custom agents to `~/.codex/agents/`, registers `./.agents/plugins/ycc`
246
- (resolved from the marketplace root, `$HOME`) as the local marketplace source in
247
- `~/.agents/plugins/marketplace.json`, and installs + enables the plugin with
248
- `codex plugin add ycc@local-ycc-plugins`, which snapshots it into
249
- `~/.codex/plugins/cache/local-ycc-plugins/ycc/<version>/`. Codex builds without
250
- the plugin CLI get the legacy hand-written flat cache instead. Rerun the base
251
- install step after regenerating the bundle via `./scripts/sync.sh --only codex`
252
- or after clearing `~/.codex/plugins/cache/`.
244
+ `install.sh install --target codex` syncs custom agents to `~/.codex/agents/`, registers the
245
+ checkout (local mode) or `https://github.com/yandy-r/ystack.git` at `main` (repo mode) as the
246
+ Codex marketplace `ycc` with `codex plugin marketplace add`, and installs + enables
247
+ `ycc@ycc` and `ycc-mcp@ycc` with `codex plugin add`, which snapshots each into
248
+ `~/.codex/plugins/cache/ycc/<package>/<version>/`. The codex CLI 0.160+ is required; there
249
+ is no copy fallback. It then retires proven legacy state (`ycc@local-ycc-plugins`, its links,
250
+ cache and catalog entry, `~/.codex/skills` copies, merged `[mcp_servers]`), keeping every
251
+ `~/.codex/agents/` file. Rerun the base install step after regenerating the bundle via
252
+ `./scripts/sync.sh --only codex` or after clearing `~/.codex/plugins/cache/`.
253
253
 
254
254
  **INSTALL_PATH:opencode**
255
255
  Generated bundle lives at `.opencode-plugin/` (skills, agents, commands, AGENTS.md,
@@ -310,7 +310,7 @@ last matching rule wins. Source: opencode.ai/v2/docs/permissions/.
310
310
  Full support. Worktree isolation is **on by default** for the 9 worktree-aware skills; pass
311
311
  `--no-worktree` to opt out. The legacy `--worktree` flag is accepted as a silent no-op.
312
312
  Harness-managed worktrees exist (`Agent(isolation: "worktree")`, `EnterWorktree`, plus the
313
- `WorktreeCreate` hook registered in `ycc/settings/settings.json`), but the current ycc
313
+ `WorktreeCreate` hook shipped by the native `ycc-hooks@ycc` plugin), but the current ycc
314
314
  single-worktree contract should not use per-agent tool-side isolation for parallel task fan-out.
315
315
  Instead, pre-create one feature worktree and point every agent at it via `Working directory:`.
316
316
  A Bash fallback (`git worktree add`) is always available. See
@@ -129,9 +129,11 @@ worktrees follow the table above via the scripts, not via these defaults,
129
129
  except where noted:
130
130
 
131
131
  - **Claude Code**: repo-local placement is provided by the `WorktreeCreate`
132
- hook (`ycc/settings/hooks/worktree-create.sh`), which defaults to
132
+ hook (`ycc/settings/hooks/worktree-create.sh`, shipped by the native
133
+ `ycc-hooks@ycc` plugin that `install.sh sync --target claude --intent
134
+ hooks` installs), which defaults to
133
135
  `<repo-root>/.claude/worktrees` and honors `YCC_WORKTREE_ROOT`. Without the
134
- hook, Claude Code creates worktrees with `git worktree add` under its
136
+ plugin, Claude Code creates worktrees with `git worktree add` under its
135
137
  default location and copies gitignored files per `.worktreeinclude`.
136
138
  - **opencode**: the built-in worktree tools (`opencode.worktree_create` /
137
139
  `worktree_list`) manage their own worktrees; their placement is not