Skip to content

chore: remove migrated packages and consolidate shared into utils#1014

Merged
willwashburn merged 13 commits into
mainfrom
chore/remove-migrated-packages
May 29, 2026
Merged

chore: remove migrated packages and consolidate shared into utils#1014
willwashburn merged 13 commits into
mainfrom
chore/remove-migrated-packages

Conversation

@willwashburn
Copy link
Copy Markdown
Member

@willwashburn willwashburn commented May 29, 2026

Summary

  • Remove 13 packages extracted/moved to other repos: acp-bridge, openclaw, credential-proxy, personas, github-primitive, slack-primitive, browser-primitive, events, agent, memory, hooks, gateway, trajectory
  • Move packages/shared (cli-registry.yaml, codegen-ts.mjs, codegen-py.mjs) into packages/utils; update codegen:models scripts accordingly
  • Drop hooks, memory, trajectory deps and their re-exports from packages/cli
  • Drop github-primitive, slack-primitive, credential-proxy deps and the /github + /slack subpath exports from packages/sdk
  • Remove acp-bridge from the core-maintenance uninstall list
  • Clean up stale build:memory, build:trajectory, build:hooks root scripts
  • Remove build-acp-standalone and build-openclaw-binary.yml CI jobs; drop migrated packages from smoke tests and publish matrix

New package homes

Package(s) New repo
acp-bridge https://github.com/AgentWorkforce/agent-relay-acp-bridge
openclaw https://github.com/AgentWorkforce/agent-relay-openclaw
credential-proxy https://github.com/AgentWorkforce/credential-proxy
personas https://github.com/AgentWorkforce/agent-relay-personas
github-primitive, slack-primitive, browser-primitive https://github.com/AgentWorkforce/relayflows
events, agent, memory https://github.com/AgentWorkforce/proactive

Test plan

  • npm run build:core succeeds
  • npm run typecheck passes
  • npm run test passes

🤖 Generated with Claude Code

Remove packages extracted to standalone repos or other monorepos:
- acp-bridge → agent-relay-acp-bridge
- openclaw → agent-relay-openclaw
- credential-proxy → credential-proxy
- personas → agent-relay-personas
- github-primitive, slack-primitive, browser-primitive → relayflows
- events, agent, memory → proactive
- hooks, gateway, trajectory (dropped entirely)

Move packages/shared (cli-registry.yaml, codegen-ts.mjs, codegen-py.mjs)
into packages/utils and update codegen:models scripts accordingly.

Update sdk: remove /github and /slack subpath exports, drop github-primitive
and slack-primitive deps. Update cli: drop hooks/memory/trajectory deps and
remove their re-exports from the public index. Remove acp-bridge from the
core-maintenance uninstall list.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@willwashburn willwashburn requested a review from khaliqgant as a code owner May 29, 2026 00:16
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 29, 2026

Important

Review skipped

Too many files!

This PR contains 220 files, which is 70 over the limit of 150.

To get a review, narrow the scope:
• coderabbit review --type committed # exclude uncommitted changes
• coderabbit review --dir # limit to a subdirectory
• coderabbit review --base # compare against a closer base

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e6b67f0b-10dc-4822-b9bd-3ff1e25b9d17

📥 Commits

Reviewing files that changed from the base of the PR and between 9eb948b and 948a312.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (220)
  • .agentworkforce/trajectories/completed/2026-05/traj_7xndisfkld4l/summary.md
  • .agentworkforce/trajectories/completed/2026-05/traj_7xndisfkld4l/trajectory.json
  • .agentworkforce/trajectories/completed/2026-05/traj_mutgtir4ce8k/summary.md
  • .agentworkforce/trajectories/completed/2026-05/traj_mutgtir4ce8k/trajectory.json
  • .github/workflows/build-openclaw-binary.yml
  • .github/workflows/codegen-models.yml
  • .github/workflows/deploy-web.yml
  • .github/workflows/package-validation.yml
  • .github/workflows/publish.yml
  • .github/workflows/rust-ci.yml
  • .github/workflows/test-build.yml
  • .github/workflows/test.yml
  • .github/workflows/update-cli-versions.yml
  • .github/workflows/verify-publish-sdk.yml
  • package.json
  • packages/acp-bridge/README.md
  • packages/acp-bridge/package.json
  • packages/acp-bridge/src/acp-agent.ts
  • packages/acp-bridge/src/cli.ts
  • packages/acp-bridge/src/index.ts
  • packages/acp-bridge/src/types.ts
  • packages/acp-bridge/tsconfig.json
  • packages/agent/README.md
  • packages/agent/package.json
  • packages/agent/src/burn.ts
  • packages/agent/src/context.ts
  • packages/agent/src/deploy.ts
  • packages/agent/src/dispatcher.ts
  • packages/agent/src/index.ts
  • packages/agent/src/policy.ts
  • packages/agent/src/types.ts
  • packages/agent/tsconfig.json
  • packages/browser-primitive/DESIGN.md
  • packages/browser-primitive/package.json
  • packages/browser-primitive/src/actions/extraction.ts
  • packages/browser-primitive/src/actions/interaction.ts
  • packages/browser-primitive/src/actions/navigation.ts
  • packages/browser-primitive/src/actions/script.ts
  • packages/browser-primitive/src/actions/waits.ts
  • packages/browser-primitive/src/browser-client.ts
  • packages/browser-primitive/src/index.ts
  • packages/browser-primitive/src/mcp-server.ts
  • packages/browser-primitive/src/types.ts
  • packages/browser-primitive/tsconfig.json
  • packages/cli/package.json
  • packages/cli/scripts/build-cjs.mjs
  • packages/cli/src/cli/lib/core-maintenance.ts
  • packages/cli/src/index.ts
  • packages/cli/tsconfig.json
  • packages/cloud/src/auth.ts
  • packages/config/src/cli-registry.generated.ts
  • packages/credential-proxy/README.md
  • packages/credential-proxy/package.json
  • packages/credential-proxy/src/__tests__/jwt.test.ts
  • packages/credential-proxy/src/__tests__/metering.test.ts
  • packages/credential-proxy/src/__tests__/router.test.ts
  • packages/credential-proxy/src/crypto-polyfill.ts
  • packages/credential-proxy/src/index.ts
  • packages/credential-proxy/src/jwt.ts
  • packages/credential-proxy/src/metering.ts
  • packages/credential-proxy/src/providers/anthropic.ts
  • packages/credential-proxy/src/providers/index.ts
  • packages/credential-proxy/src/providers/openai.ts
  • packages/credential-proxy/src/providers/openrouter.ts
  • packages/credential-proxy/src/providers/types.ts
  • packages/credential-proxy/src/router.ts
  • packages/credential-proxy/src/types.ts
  • packages/credential-proxy/tsconfig.json
  • packages/events/README.md
  • packages/events/package.json
  • packages/events/src/envelope.ts
  • packages/events/src/expand.ts
  • packages/events/src/index.ts
  • packages/events/src/logger.ts
  • packages/events/src/otel.ts
  • packages/events/src/retry.ts
  • packages/events/src/transport.ts
  • packages/events/src/types.ts
  • packages/events/tsconfig.json
  • packages/gateway/package.json
  • packages/gateway/src/adapters/index.ts
  • packages/gateway/src/adapters/slack.ts
  • packages/gateway/src/adapters/telegram.ts
  • packages/gateway/src/adapters/whatsapp.ts
  • packages/gateway/src/index.ts
  • packages/gateway/src/router.ts
  • packages/gateway/src/rules-engine.ts
  • packages/gateway/src/types.ts
  • packages/gateway/tsconfig.json
  • packages/github-primitive/DESIGN.md
  • packages/github-primitive/README.md
  • packages/github-primitive/docs/actions.md
  • packages/github-primitive/examples/github-client.ts
  • packages/github-primitive/package.json
  • packages/github-primitive/src/__tests__/github-actions.test.ts
  • packages/github-primitive/src/actions/branches.ts
  • packages/github-primitive/src/actions/commits.ts
  • packages/github-primitive/src/actions/files.ts
  • packages/github-primitive/src/actions/issues.ts
  • packages/github-primitive/src/actions/pulls.ts
  • packages/github-primitive/src/actions/repos.ts
  • packages/github-primitive/src/actions/users.ts
  • packages/github-primitive/src/actions/utils.ts
  • packages/github-primitive/src/adapter.ts
  • packages/github-primitive/src/client.ts
  • packages/github-primitive/src/cloud-runtime.ts
  • packages/github-primitive/src/constants.ts
  • packages/github-primitive/src/index.ts
  • packages/github-primitive/src/local-runtime.ts
  • packages/github-primitive/src/types.ts
  • packages/github-primitive/templates/repository-inspection.yaml
  • packages/github-primitive/tsconfig.json
  • packages/github-primitive/vitest.config.ts
  • packages/hooks/package.json
  • packages/hooks/src/browser.ts
  • packages/hooks/src/emitter.ts
  • packages/hooks/src/index.ts
  • packages/hooks/src/registry.ts
  • packages/hooks/src/shims.d.ts
  • packages/hooks/src/trajectory-hooks.ts
  • packages/hooks/src/types.ts
  • packages/hooks/tsconfig.json
  • packages/hooks/vitest.config.ts
  • packages/memory/package.json
  • packages/memory/src/adapters/index.ts
  • packages/memory/src/adapters/inmemory.ts
  • packages/memory/src/adapters/supermemory.ts
  • packages/memory/src/context-compaction.test.ts
  • packages/memory/src/context-compaction.ts
  • packages/memory/src/factory.ts
  • packages/memory/src/index.ts
  • packages/memory/src/memory-hooks.ts
  • packages/memory/src/service.ts
  • packages/memory/src/types.ts
  • packages/memory/tsconfig.json
  • packages/memory/vitest.config.ts
  • packages/openclaw/README.md
  • packages/openclaw/bin/relay-openclaw.mjs
  • packages/openclaw/bridge/bridge.mjs
  • packages/openclaw/package.json
  • packages/openclaw/skill/SKILL.md
  • packages/openclaw/src/__tests__/SPEC-ws-client-testing.md
  • packages/openclaw/src/__tests__/gateway-control.test.ts
  • packages/openclaw/src/__tests__/gateway-poll-fallback.test.ts
  • packages/openclaw/src/__tests__/gateway-threads.test.ts
  • packages/openclaw/src/__tests__/naming.test.ts
  • packages/openclaw/src/__tests__/spawn-manager.test.ts
  • packages/openclaw/src/__tests__/ws-client.test.ts
  • packages/openclaw/src/auth/converter.ts
  • packages/openclaw/src/cli.ts
  • packages/openclaw/src/config.ts
  • packages/openclaw/src/control.ts
  • packages/openclaw/src/gateway.ts
  • packages/openclaw/src/identity/contract.ts
  • packages/openclaw/src/identity/files.ts
  • packages/openclaw/src/identity/model.ts
  • packages/openclaw/src/identity/naming.ts
  • packages/openclaw/src/index.ts
  • packages/openclaw/src/inject.ts
  • packages/openclaw/src/mcp/server.ts
  • packages/openclaw/src/mcp/tools.ts
  • packages/openclaw/src/runtime/openclaw-config.ts
  • packages/openclaw/src/runtime/patch.ts
  • packages/openclaw/src/runtime/setup.ts
  • packages/openclaw/src/setup.ts
  • packages/openclaw/src/spawn/docker.ts
  • packages/openclaw/src/spawn/manager.ts
  • packages/openclaw/src/spawn/process.ts
  • packages/openclaw/src/spawn/types.ts
  • packages/openclaw/src/types.ts
  • packages/openclaw/templates/SOUL.md.template
  • packages/openclaw/test/vitest.setup.ts
  • packages/openclaw/tsconfig.json
  • packages/personas/README.md
  • packages/personas/package.json
  • packages/personas/personas/agent-relay-e2e-conductor.json
  • packages/personas/personas/cloud-sandbox-infra.json
  • packages/personas/personas/cloud-slack-proxy-guard.json
  • packages/personas/personas/relay-orchestrator.json
  • packages/personas/personas/sage-proactive-rewirer.json
  • packages/personas/personas/sage-slack-egress-migrator.json
  • packages/personas/scripts/validate-personas.mjs
  • packages/sdk-py/src/agent_relay/models.py
  • packages/sdk/package.json
  • packages/sdk/src/github.ts
  • packages/sdk/src/index.ts
  • packages/sdk/src/models.ts
  • packages/sdk/src/slack.ts
  • packages/sdk/tsconfig.build.json
  • packages/sdk/tsconfig.json
  • packages/slack-primitive/examples/README.md
  • packages/slack-primitive/package.json
  • packages/slack-primitive/src/__tests__/cloud-relay-runtime.test.ts
  • packages/slack-primitive/src/__tests__/noop-runtime.test.ts
  • packages/slack-primitive/src/__tests__/post-message.test.ts
  • packages/slack-primitive/src/__tests__/runtime-selection.test.ts
  • packages/slack-primitive/src/actions/post-message.ts
  • packages/slack-primitive/src/actions/resolve-channel.ts
  • packages/slack-primitive/src/actions/resolve-user.ts
  • packages/slack-primitive/src/adapter.ts
  • packages/slack-primitive/src/client.ts
  • packages/slack-primitive/src/cloud-relay-runtime.ts
  • packages/slack-primitive/src/index.ts
  • packages/slack-primitive/src/local-runtime.ts
  • packages/slack-primitive/src/noop-runtime.ts
  • packages/slack-primitive/src/types.ts
  • packages/slack-primitive/tsconfig.examples.json
  • packages/slack-primitive/tsconfig.json
  • packages/slack-primitive/vitest.config.ts
  • packages/trajectory/package.json
  • packages/trajectory/src/index.ts
  • packages/trajectory/src/integration.ts
  • packages/trajectory/tsconfig.json
  • packages/trajectory/vitest.config.ts
  • packages/utils/cli-registry.yaml
  • packages/utils/codegen-py.mjs
  • packages/utils/codegen-ts.mjs
  • scripts/build-openclaw-bun.sh
  • scripts/check-cli-versions.mjs
  • tsconfig.json

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/remove-migrated-packages

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ce8c0c3f98

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -1,51 +0,0 @@
{
"name": "@agent-relay/hooks",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove stale hooks validation import

Deleting @agent-relay/hooks leaves the package-validation workflow still importing it in .github/workflows/package-validation.yml lines 156-160. On any validation run after this change, that import cannot resolve because the workspace/package no longer exists, so the workflow fails before the remaining package smoke tests; please remove or replace the stale import with the package deletion.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in a5fdede — removed @agent-relay/hooks from the import test list in package-validation.yml.

@@ -1,59 +0,0 @@
{
"name": "@agent-relay/acp-bridge",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the ACP release binary job

Removing packages/acp-bridge leaves the release workflow's build-acp-standalone job still compiling ./packages/acp-bridge/dist/cli.js in .github/workflows/publish.yml lines 365-380. For package=all or package=main releases, this path no longer exists after npm run build, so the publish workflow fails before uploading release assets; please remove or retarget that job together with this package removal.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in the CI workflow cleanup commit — build-acp-standalone job and its downstream verify-acp-* jobs have been removed from publish.yml.

@@ -1,43 +0,0 @@
{
"name": "@agent-relay/github-primitive",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Stop packing deleted primitive workspaces

The publish workflow's SDK smoke step still runs cd packages/github-primitive && npm pack and the same for packages/slack-primitive in .github/workflows/publish.yml lines 683-688, but both directories are removed here and the SDK dependencies were dropped. Any SDK release smoke run will exit on the missing cd before it can install the tarballs; please update that tarball list with the dependency removal.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in the CI workflow cleanup commit — github-primitive and slack-primitive pack steps and tarball references have been removed from the smoke test in publish.yml.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 195 files

Note: This PR contains a large number of files. cubic only reviews up to 100 files per PR, so some files may not have been reviewed. cubic prioritizes the most important files to review.
On a pro plan you can use ultrareview for larger PRs.

Re-trigger cubic

@agent-relay-bot
Copy link
Copy Markdown

Reviewed PR #1014 and fixed the push-back hardening gap I found.

Changes made:

  • Added a live refs/pull/<n>/head verification before post-harness status/no-op/push handling, so stale workspaces fail loudly instead of silently reporting a clean tree.
  • Kept git token cleanup in both pushable and read-only PR paths.
  • Updated the focused tests to assert the remote-head guard, fetch failure message, and cleanup behavior.

Verification:

  • bash -n passes for the generated push-back shell block.
  • Could not run Vitest locally because npm ci was terminated before dependencies installed; I removed the partial node_modules it created.

willwashburn and others added 5 commits May 28, 2026 22:05
@willwashburn willwashburn requested a review from Copilot May 29, 2026 03:16
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

willwashburn and others added 7 commits May 29, 2026 00:28
… memory

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
crypto.randomUUID() via the Web Crypto global requires
--experimental-global-webcrypto in Node 18 and is only
unconditionally available from Node 21. Import randomUUID
from node:crypto to support the Node >=18 engine range.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The Publish Fresh Install Build job always runs without turbo cache.
With 13 packages building concurrently on a 7GB runner (immediately
after a Rust build), tsc processes collectively exceed available RAM.

Split Rust and TS builds into separate steps and cap turbo
concurrency at 2 so at most 2 tsc processes run simultaneously.

Root cause: tsconfig.json is a turbo globalDependency, so changing it
invalidates all cached build outputs and forces a full cold build.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cubic-dev-ai
Copy link
Copy Markdown

cubic-dev-ai Bot commented May 29, 2026

You're iterating quickly on this pull request. To help protect your rate limits, cubic has paused automatic reviews on new pushes for now—when you're ready for another review, comment @cubic-dev-ai review.

@willwashburn willwashburn merged commit 94df613 into main May 29, 2026
27 checks passed
@willwashburn willwashburn deleted the chore/remove-migrated-packages branch May 29, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants