Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
path: |
dist
package.json
src/adapters/claude/plugin/.claude-plugin/plugin.json
if-no-files-found: error
retention-days: 1

Expand Down Expand Up @@ -133,7 +134,7 @@ jobs:
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add package.json
git add package.json src/adapters/claude/plugin/.claude-plugin/plugin.json
git commit -m "chore(release): $VERSION [skip ci]"
git push origin HEAD:main

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
dist/
src/mcp/identity.ts
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logickoder/agent-bridge",
"version": "0.2.3",
"version": "0.2.4",
"description": "Live messaging between agent CLI sessions (Claude Code, Antigravity, opencode). Each message wakes the receiving session in place.",
"author": {
"name": "Jeffery Orazulike",
Expand All @@ -16,7 +16,9 @@
},
"packageManager": "pnpm@12.16.1",
"scripts": {
"build": "rm -rf dist && tsc -p tsconfig.build.json && chmod +x dist/cli.js",
"sync-version": "node scripts/sync-version.mjs",
"prepare": "pnpm sync-version",
"build": "pnpm sync-version && rm -rf dist && tsc -p tsconfig.build.json && chmod +x dist/cli.js",
"typecheck": "tsc --noEmit",
"test": "vitest run --dir src",
"test:e2e": "pnpm build && vitest run --dir test",
Expand Down
25 changes: 25 additions & 0 deletions scripts/sync-version.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import fs from 'node:fs'

const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'))
const name = pkg.name.replace(/^@[^/]+\//, '')
const version = pkg.version

const pluginPath = 'src/adapters/claude/plugin/.claude-plugin/plugin.json'
const plugin = JSON.parse(fs.readFileSync(pluginPath, 'utf8'))
if (plugin.version !== version) {
plugin.version = version
fs.writeFileSync(pluginPath, `${JSON.stringify(plugin, null, 2)}\n`)
}

const identityPath = 'src/mcp/identity.ts'
const nextIdentity = [
'// Generated from package.json by scripts/sync-version.mjs. Do not edit by hand.',
'/** Name every client sees for this server. Also the key in client configs. */',
`export const SERVER_NAME = ${JSON.stringify(name)}`,
`export const VERSION = ${JSON.stringify(version)}`,
'',
].join('\n')
const prevIdentity = fs.existsSync(identityPath) ? fs.readFileSync(identityPath, 'utf8') : ''
if (nextIdentity !== prevIdentity) {
fs.writeFileSync(identityPath, nextIdentity)
}
2 changes: 1 addition & 1 deletion src/adapters/claude/plugin/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agent-bridge",
"version": "0.2.0",
"version": "0.2.4",
"description": "Join agent-bridge from Claude Code with /bridge. A monitor delivers messages from peer agents (other Claude sessions, agy).",
"author": { "name": "logickoder" }
}
3 changes: 0 additions & 3 deletions src/mcp/identity.ts

This file was deleted.