Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
6a9b4f1
fix(opencode): output opencode json schema on run
JacobNWolf Oct 9, 2026
051db21
Merge pull request #32 from JacobNWolf/jacobwolf/opencode-schema-fix
amtiYo Oct 9, 2026
23d208f
chore: prepare the 0.9.2 release
amtiYo Oct 9, 2026
39da6e5
fix: preserve manual MCP configs during reset
amtiYo Oct 10, 2026
81e9968
fix: preserve manual MCP entries during sync
amtiYo Oct 10, 2026
9b072b4
fix: remove managed servers when integrations disconnect
amtiYo Oct 10, 2026
a9bc20d
fix: reject plugin export paths overlapping sources
amtiYo Oct 10, 2026
1003fcf
fix: lock configuration read-modify-write operations
amtiYo Oct 10, 2026
b247aad
fix: fail sync checks when integration configs cannot be applied
amtiYo Oct 10, 2026
ccbe48d
fix: retry failed watch syncs without another source change
amtiYo Oct 10, 2026
ac06157
fix: retain runtime assets when importing plugins
amtiYo Oct 10, 2026
3c8e782
test: use a valid plugin command in runtime regression
amtiYo Oct 10, 2026
3bc914d
fix: update vulnerable brace-expansion dependencies
amtiYo Oct 10, 2026
97313a9
fix: update vulnerable source-map-js dependency
amtiYo Oct 10, 2026
704d388
fix: use applied MCP ownership when resetting configs
amtiYo Oct 10, 2026
f01d7be
fix: preserve unowned project MCP files during reset
amtiYo Oct 12, 2026
9f56039
fix: infer secret env and headers when adding MCP servers
amtiYo Oct 12, 2026
94669cf
fix: lock update metadata writes against MCP mutations
amtiYo Oct 12, 2026
9c6a730
fix: reject external skill roots in Antigravity copies
amtiYo Oct 12, 2026
bb41cd9
fix: replace template symlinks without overwriting targets
amtiYo Oct 12, 2026
85f4dd3
fix: reject literal credentials in exported plugin arguments
amtiYo Oct 12, 2026
e90cab6
fix: retain applied project MCP ownership after partial failures
amtiYo Oct 12, 2026
15a74f5
fix: retain legacy ownership previews after failed syncs
amtiYo Oct 12, 2026
9eeac65
fix: preserve comments when resetting JSONC settings
amtiYo Oct 12, 2026
9dfc978
fix: update same-named Claude local MCP definitions
amtiYo Oct 12, 2026
92b01a4
fix: report Claude local MCP write failures and retry cleanup
amtiYo Oct 12, 2026
fbdff05
fix: resolve imported plugin paths against their snapshot root
amtiYo Oct 12, 2026
4435739
fix: provide persistent plugin data and subprocess environment
amtiYo Oct 12, 2026
620e4d8
fix: export self-contained skill assets with internal links
amtiYo Oct 12, 2026
938eb1a
fix: export grouped skills in the standard flat plugin layout
amtiYo Oct 12, 2026
022be8c
fix: preserve schema 4 MCP fields during import
amtiYo Oct 12, 2026
0b2ef91
fix: resolve MCP test placeholders before validation
amtiYo Oct 12, 2026
3080c77
fix: skip disabled servers in runtime MCP checks
amtiYo Oct 12, 2026
4ab53ed
fix: scope runtime MCP checks to enabled targets and active profiles
amtiYo Oct 12, 2026
e12fb0d
fix: recheck repaired doctor errors before reporting failure
amtiYo Oct 12, 2026
f20ca3d
fix: diagnose missing configs for selected MCP integrations
amtiYo Oct 12, 2026
954d41e
fix: honor bearer token references in HTTP MCP probes
amtiYo Oct 12, 2026
c5738cc
fix: enforce a single deadline for HTTP MCP budget probes
amtiYo Oct 12, 2026
cdc28f4
fix: consume matching SSE replies without waiting for stream closure
amtiYo Oct 12, 2026
219712e
fix: defer update checks until command completion
amtiYo Oct 12, 2026
fe61722
fix: preserve portable authorization placeholders
amtiYo Oct 12, 2026
00952cc
fix: preserve imported runtimes across plugin exports
amtiYo Oct 12, 2026
ce68ec3
fix: exclude gitignored files from plugin snapshots
amtiYo Oct 12, 2026
be156a6
fix: compare legacy ownership structurally
amtiYo Oct 12, 2026
af00bea
fix: retain project MCP ownership after relocation
amtiYo Oct 12, 2026
5822acb
fix: skip unowned configs for disabled integrations
amtiYo Oct 12, 2026
c337c69
fix: isolate legacy Antigravity cleanup failures
amtiYo Oct 12, 2026
6df46b8
fix: reset owned configs without generated previews
amtiYo Oct 12, 2026
457131c
fix: retain shared resources in skill exports
amtiYo Oct 12, 2026
b25ce2f
docs: finalize 0.9.2 release notes
amtiYo Oct 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,102 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- No changes yet.

## [0.9.2] - 2026-10-12

### Fixed

- Plugin export retains shared files and directories beside immediate skills. Grouped exports reject shared group resources or conflicting flattened names before writing, instead of silently breaking relative imports.

- Reset uses saved ownership even when previews are missing or corrupt, and reconstructs matching public definitions to clean commit-generated clones safely.

- Antigravity updates its workspace even if legacy global cleanup fails, retaining separate pending legacy ownership for a later retry.

- Disabled Codex, Grok and VS Code hiding leave unrelated malformed configs untouched instead of failing a sync with no managed settings to clean.

- Project MCP ownership uses portable relative paths; moved legacy projects recover ownership only where the saved preview still matches the local config.

- Legacy sync and reset ownership comparisons ignore JSON property order while preserving servers whose values or argument order differ.

- Plugin snapshots exclude local files ignored by Git, including inherited rules, local excludes and links to ignored credentials. Export inventories keep bundles in ignored output directories importable, retain empty runtime directories, exclude later local files and reject changed exported assets.

- Re-exported plugins include their imported runtime snapshots and preserve executable command paths and nested runtime roots, while writable plugin data stays private and is recreated on import, sync or budget.

- MCP add and import preserve reference-only authorization headers such as `Bearer ${TOKEN}` while keeping literal credentials and fallbacks local.

- Automatic update checks start after the command finishes, so optional metadata writes cannot lock out MCP edits or sync.

- HTTP MCP probes consume matching SSE replies incrementally, handling split UTF-8 and multiline events without waiting for the server to close its stream.

- HTTP MCP budget uses one per-server deadline across protocol negotiation, initialization and every tools/list page instead of resetting the timeout for each request.

- HTTP MCP budget honors bearerTokenEnvVar, preserves explicit authorization headers and reports missing or invalid credentials without printing token values.

- Doctor reports missing configs for integrations with selected MCP servers and repairs them with --fix, while allowing absent configs for empty profiles and respecting Claude scope.

- Doctor rechecks managed config syntax after applying fixes, so repaired errors no longer force a failure while unrelated source errors remain visible.

- Runtime MCP tests check only integrations and servers selected by the effective configuration and active profile, leaving unrelated installed CLIs unprobed.

- Runtime MCP tests skip disabled servers, including local overrides, without probing CLIs when no active servers remain.

- MCP test resolves environment, fallback and project-root placeholders before validation while keeping substituted values out of error output.

- MCP import preserves and validates schema 4 auth, timeout and tool restriction fields, including empty allowlists; OAuth client secrets are kept in local overrides.

- Plugin export flattens self-contained grouped skills with resources stored inside each skill and rejects duplicate output names; validation and import count only standard immediate-child skills.

- Plugin export materializes internal skill links portably, retains executable permissions and refuses escaping resources, so its own bundles can be imported after removing their sources.

- Imported stdio plugin servers receive PLUGIN_ROOT and PLUGIN_DATA, with portable, gitignored data storage retained across package updates and recreated by sync or budget after cloning.

- Imported plugin command and cwd paths resolve independently against the installed snapshot, remain portable and reject paths escaping its root.

- Claude local-scope CLI read and write failures fail sync, retain failed-removal ownership and do not advance successful-sync state.

- Claude local-scope sync refreshes changed definitions and credentials even when server names stay the same, storing only definition hashes in ownership state.

- Reset retains comments and disabled settings in Zed and Kilo JSONC files, including after removing the final managed server.

- Failed integration syncs retain legacy previews until ownership adoption succeeds, allowing retries to remove previously generated servers.

- Project MCP sync records every successfully applied target and retains failed cleanup ownership before reporting partial errors, so retries remove stale servers.

- Plugin export rejects literal credentials in separate and inline token arguments unless explicitly allowed, including unsafe placeholder fallbacks.

- Forced template initialization replaces destination symlinks atomically instead of overwriting their external targets.

- Antigravity rejects skill roots and grouping directories that resolve outside the project before dereferencing their contents.

- Update checks lock local.json metadata writes and defer them while configuration changes are in progress, preventing lost MCP secrets.

- MCP add automatically moves secret-looking env and header values into local.json, matching import and the documented security behavior.

- Reset preserves manual servers in project MCP files absent from an existing applied ownership record, including after disconnect.

- Reset uses applied ownership records instead of preview names, preserving same-named manual servers and cleaning previously applied servers after a failed sync.

- Updated transitive `source-map-js` to 1.2.2 to remove its reported high-severity vulnerability.

- Updated transitive `brace-expansion` dependencies to 5.0.12 and 1.1.21 to remove the reported denial-of-service vulnerabilities.

- Plugin import installs scripts and resources under `.agents/plugins` and points portable `${PLUGIN_ROOT}` references to that snapshot. Escaping links are rejected and executable permissions are preserved.

- Watch retries unchanged source files after a failed sync instead of remembering the failed attempt as already applied.

- Sync and `sync --check` fail when an integration config cannot be read or written, after attempting the remaining integrations. Failed runs no longer update the successful-sync timestamp.

- Profile changes, connect/disconnect and plugin import lock the full config update and reload current state after prompts, preventing concurrent edits from being lost.

- Plugin export rejects output paths overlapping `.agents`, including paths through symlinked parents, before writing or deleting source files.

- Disconnect removes managed MCP servers from Gemini, OpenCode, Cursor, VS Code and Junie while preserving manual entries.

- Sync preserves manual MCP entries and settings in Gemini, OpenCode, Cursor, VS Code and Junie, tracking ownership to remove only stale generated servers.

- Safe reset preserves manual MCP servers and settings in Cursor, Antigravity, VS Code and Junie configs, removing only agents-managed entries.

- New OpenCode configs and configs with a missing or empty `$schema` receive `"$schema": "https://opencode.ai/config.json"`. Existing nonempty custom schemas and unrelated settings are preserved. A from-scratch sync previously wrote `{ "mcp": {} }` only.

## [0.9.1] - 2026-09-13

### Added
Expand Down
20 changes: 19 additions & 1 deletion docs/agents-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,27 @@ than started, and every probe has a timeout.
package: `plugin.json`, `mcp.json` and `skills/`. It reads `.agents/agents.json` only,
never `local.json`, so a package carries `${VAR}` placeholders instead of secrets.
`${PROJECT_ROOT}` becomes the specification's `${PLUGIN_ROOT}`.
Immediate skills keep shared resources beside them. Grouped skills are flattened only
when their grouping directories contain skills alone. Move group-level supporting files
inside each skill before exporting, so flattening cannot silently break relative paths.

`agents plugin import` goes the other way, prefixing imported server names with the
plugin name so nothing already defined is replaced.
plugin name so nothing already defined is replaced. Scripts and resources are installed
in a content-addressed snapshot under `.agents/plugins/`; `${PLUGIN_ROOT}` points
to that snapshot through a portable `${PROJECT_ROOT}` path. Commit the snapshot
alongside `.agents/agents.json` so the imported servers also work in other clones.
Links outside the package are rejected.

Local plugin checkouts exclude files ignored by Git, including parent and local ignore
rules. Exported bundles include `.agents-export.json`, a list of exported files and
their hashes, so import also works from an ignored `dist/agent-plugin` directory.
Files added beside the exported package are excluded. If an exported file changes,
export it again before importing.

Imported stdio servers receive `PLUGIN_ROOT` and `PLUGIN_DATA` in their environment.
`${PLUGIN_DATA}` resolves to a writable directory under `.agents/plugin-data/`, which
is gitignored and retained across package updates. Sync recreates missing data directories
after a clone without changing them during `sync --check`.

## MCP Server Format

Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agents-dev/cli",
"version": "0.9.1",
"version": "0.9.2",
"description": "One config to rule them all \u2014 sync MCP servers, skills and AGENTS.md across 18 AI coding tools, and package them as Agent Plugins.",
"main": "dist/cli.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ async function main(): Promise<void> {
.version(CLI_VERSION)
.option('--no-update-check', 'Disable update availability checks')

program.hook('preAction', async (_thisCommand, actionCommand) => {
// Optional metadata writes must not compete with the command's config lock.
program.hook('postAction', async (_thisCommand, actionCommand) => {
const opts = actionCommand.optsWithGlobals() as { updateCheck?: boolean; path?: string; global?: boolean }
if (opts.updateCheck === false) return
if (process.argv.includes('--no-update-check')) return
Expand Down
25 changes: 12 additions & 13 deletions src/commands/connect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { loadAgentsConfig, saveAgentsConfig } from '../core/config.js'
import { loadAgentsConfig, updateAgentsConfig } from '../core/config.js'
import { performSync } from '../core/sync.js'
import { CancelledError } from '../core/errors.js'
import { formatWarnings } from '../core/warnings.js'
Expand All @@ -16,7 +16,6 @@ export interface ConnectOptions {

export async function runConnect(options: ConnectOptions): Promise<void> {
const config = await loadAgentsConfig(options.projectRoot)
const currentlyEnabled = new Set(config.integrations.enabled)

const rawSelection = options.llm

Expand All @@ -29,27 +28,27 @@ export async function runConnect(options: ConnectOptions): Promise<void> {
throw new Error('No LLM selected. Use --llm or --interactive.')
}

const added = selected.filter((integration) => !currentlyEnabled.has(integration))
if (selected.length === 0) {
ui.info('No integrations selected.')
ui.keyValue('Integrations', ui.formatList(config.integrations.enabled))
return
}

for (const integration of added) {
currentlyEnabled.add(integration)
}
const nextEnabled = [...currentlyEnabled]

const spin = ui.spinner()
spin.start(added.length > 0 ? 'Updating integrations...' : 'Synchronizing integrations...')
spin.start('Updating integrations...')

let added: IntegrationName[] = []
let nextEnabled: IntegrationName[] = []
let syncResult
try {
if (added.length > 0) {
config.integrations.enabled = nextEnabled
await saveAgentsConfig(options.projectRoot, config)
}
const updated = await updateAgentsConfig(options.projectRoot, (current) => {
const enabled = new Set(current.integrations.enabled)
const added = selected.filter(integration => !enabled.has(integration))
current.integrations.enabled = [...new Set([...enabled, ...selected])]
return added
})
added = updated.result
nextEnabled = updated.config.integrations.enabled
syncResult = await performSync({
projectRoot: options.projectRoot,
check: false,
Expand Down
31 changes: 17 additions & 14 deletions src/commands/disconnect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { loadAgentsConfig, saveAgentsConfig } from '../core/config.js'
import { loadAgentsConfig, updateAgentsConfig } from '../core/config.js'
import { CancelledError } from '../core/errors.js'
import { performSync } from '../core/sync.js'
import { formatWarnings } from '../core/warnings.js'
Expand All @@ -15,7 +15,6 @@ export interface DisconnectOptions {

export async function runDisconnect(options: DisconnectOptions): Promise<void> {
const config = await loadAgentsConfig(options.projectRoot)
const enabled = new Set(config.integrations.enabled)

const rawSelection = options.llm

Expand All @@ -28,22 +27,26 @@ export async function runDisconnect(options: DisconnectOptions): Promise<void> {
const spin = ui.spinner()
spin.start('Updating integrations...')

for (const integration of toDisable) {
enabled.delete(integration)
let syncResult
let nextEnabled: IntegrationName[] = []
try {
const updated = await updateAgentsConfig(options.projectRoot, (current) => {
current.integrations.enabled = current.integrations.enabled.filter(integration => !toDisable.includes(integration))
})
nextEnabled = updated.config.integrations.enabled
syncResult = await performSync({
projectRoot: options.projectRoot,
check: false,
verbose: options.verbose
})
} catch (error) {
spin.stop('Synchronization failed')
throw error
}

config.integrations.enabled = [...enabled]
await saveAgentsConfig(options.projectRoot, config)

const syncResult = await performSync({
projectRoot: options.projectRoot,
check: false,
verbose: options.verbose
})

spin.stop('Integrations updated')

ui.keyValue('Integrations', ui.formatList(config.integrations.enabled))
ui.keyValue('Integrations', ui.formatList(nextEnabled))

const warningBlock = formatWarnings(syncResult.warnings, 5)
if (warningBlock) {
Expand Down
Loading
Loading