plan: service package isolation roadmap#1533
Draft
Huijiro wants to merge 22 commits into
Draft
Conversation
Document the phased migration to move service implementations out of @agentuity/core and make standalone service packages self-contained. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest Agentuity deployment details.
|
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
📦 Canary Packages Publishedversion: PackagesInstallAdd to your {
"dependencies": {
"@agentuity/core": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-core-3.0.5-24a5648.tgz",
"@agentuity/coder-tui": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-coder-tui-3.0.5-24a5648.tgz",
"@agentuity/schema": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-schema-3.0.5-24a5648.tgz",
"@agentuity/schedule": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-schedule-3.0.5-24a5648.tgz",
"@agentuity/runtime": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-runtime-3.0.5-24a5648.tgz",
"@agentuity/analytics": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-analytics-3.0.5-24a5648.tgz",
"@agentuity/opencode": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-opencode-3.0.5-24a5648.tgz",
"create-agentuity": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/create-agentuity-3.0.5-24a5648.tgz",
"@agentuity/stream": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-stream-3.0.5-24a5648.tgz",
"@agentuity/task": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-task-3.0.5-24a5648.tgz",
"@agentuity/vite": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-vite-3.0.5-24a5648.tgz",
"@agentuity/queue": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-queue-3.0.5-24a5648.tgz",
"@agentuity/telemetry": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-telemetry-3.0.5-24a5648.tgz",
"@agentuity/db": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-db-3.0.5-24a5648.tgz",
"@agentuity/api": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-api-3.0.5-24a5648.tgz",
"@agentuity/vector": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-vector-3.0.5-24a5648.tgz",
"@agentuity/pi": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-pi-3.0.5-24a5648.tgz",
"@agentuity/webhook": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-webhook-3.0.5-24a5648.tgz",
"@agentuity/storage": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-storage-3.0.5-24a5648.tgz",
"@agentuity/hono": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-hono-3.0.5-24a5648.tgz",
"@agentuity/adapter": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-adapter-3.0.5-24a5648.tgz",
"@agentuity/migrate": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-migrate-3.0.5-24a5648.tgz",
"@agentuity/postgres": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-postgres-3.0.5-24a5648.tgz",
"@agentuity/drizzle": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-drizzle-3.0.5-24a5648.tgz",
"@agentuity/aigateway": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-aigateway-3.0.5-24a5648.tgz",
"@agentuity/keyvalue": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-keyvalue-3.0.5-24a5648.tgz",
"@agentuity/client": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-client-3.0.5-24a5648.tgz",
"@agentuity/sandbox": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-sandbox-3.0.5-24a5648.tgz",
"@agentuity/email": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-email-3.0.5-24a5648.tgz",
"@agentuity/local": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-local-3.0.5-24a5648.tgz",
"@agentuity/coder": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-coder-3.0.5-24a5648.tgz",
"@agentuity/cli": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-cli-3.0.5-24a5648.tgz",
"@agentuity/config": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-config-3.0.5-24a5648.tgz",
"@agentuity/claude-code": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-claude-code-3.0.5-24a5648.tgz",
"@agentuity/server": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-server-3.0.5-24a5648.tgz"
}
}Or install directly: bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-core-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-coder-tui-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-schema-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-schedule-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-runtime-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-analytics-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-opencode-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/create-agentuity-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-stream-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-task-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-vite-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-queue-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-telemetry-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-db-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-api-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-vector-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-pi-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-webhook-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-storage-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-hono-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-adapter-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-migrate-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-postgres-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-drizzle-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-aigateway-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-keyvalue-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-client-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-sandbox-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-email-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-local-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-coder-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-cli-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-config-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-claude-code-3.0.5-24a5648.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.0.5-24a5648/agentuity-server-3.0.5-24a5648.tgz |
Move fetch types, ServiceException, and HTTP helpers into @agentuity/adapter. Move KeyValueStorageService into @agentuity/keyvalue so the standalone package owns its API. Core retains duplicate copies until Phase 5 shim removal. Co-authored-by: Cursor <cursoragent@cursor.com>
Route local KV storage interfaces through the standalone keyvalue package instead of @agentuity/core. Co-authored-by: Cursor <cursoragent@cursor.com>
Add @agentuity/config with getEnv, getServiceUrls, and resolveRegion. Core re-exports through shims for backward compatibility. Wire keyvalue client to depend on config instead of @agentuity/core/config. Co-authored-by: Cursor <cursoragent@cursor.com>
…onfig Switch all standalone service clients from @agentuity/core/config to @agentuity/config for getEnv and getServiceUrls imports. Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce @agentuity/client with createServiceAdapter, resolveApiKey, resolveRegion, and isLogger. Refactor KeyValueClient to use the shared helpers as the pilot for deduplicating client constructors. Co-authored-by: Cursor <cursoragent@cursor.com>
Centralize API key, region, URL, and adapter setup in @agentuity/client across every service package and switch CLI keyvalue commands to KeyValueClient. Co-authored-by: Cursor <cursoragent@cursor.com>
Add shared pagination helpers to @agentuity/client, route keyvalue through them without @agentuity/core, and relocate stream service sources into @agentuity/stream with CLI util wired to the package. Co-authored-by: Cursor <cursoragent@cursor.com>
Declare adapter's dependency on core in tsconfig references so clean tsc --build runs core first, wire CLI to keyvalue/stream packages, and narrow getAllStats union in the kv REPL. Co-authored-by: Cursor <cursoragent@cursor.com>
Relocate vector service sources from core, wire CLI cloud commands to the package, and keep the core copy as a backward-compat shim for now. Co-authored-by: Cursor <cursoragent@cursor.com>
Add a standalone package for APIClient and Pulse-style platform errors, mirroring the adapter duplicate-until-Phase-4 pattern. Core keeps its copy because api→core (StructuredError) blocks a shim without creating incompatible duplicate class types across packages. Co-authored-by: Cursor <cursoragent@cursor.com>
EmailStorageService and types now live in the email package with adapter imports; core retains its copy until Phase 5. CLI email util imports from @agentuity/email, matching the vector/stream migration pattern. Co-authored-by: Cursor <cursoragent@cursor.com>
ScheduleService now lives in the schedule package with adapter-only deps; core keeps its copy until Phase 5. CLI imports from @agentuity/schedule. Co-authored-by: Cursor <cursoragent@cursor.com>
Storage client, types, and domain errors now live in the webhook package; platform APIClient helpers remain in core until Phase 4. Co-authored-by: Cursor <cursoragent@cursor.com>
dbQuery, dbTables, dbLogs, and dbLogStats now live in the db package with APIClient from @agentuity/core/api; core retains its copy until Phase 5. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep only StreamStorageService and StreamClient in the stream package; streamList/streamGet and related APIClient code remain in core for @agentuity/server until Phase 4. Co-authored-by: Cursor <cursoragent@cursor.com>
Storage client now lives in the queue package with adapter imports; platform queue admin (messages, DLQ, analytics) stays in core until Phase 4. Co-authored-by: Cursor <cursoragent@cursor.com>
Task service, types, and TaskClient now live in the task package with adapter imports; core retains its copy until Phase 5. CLI task util imports TaskStorageService from @agentuity/task. Co-authored-by: Cursor <cursoragent@cursor.com>
…package Gateway service and helpers now live in the aigateway package with adapter imports; core retains its copy until Phase 5. CLI and pi import from the package directly. Co-authored-by: Cursor <cursoragent@cursor.com>
Copy core sandbox client module into the standalone package with config/client/core imports; keep cli-list and api-reference in core for server and docs. Co-authored-by: Cursor <cursoragent@cursor.com>
Copy core coder module into the standalone package with sandbox/config/client/core imports; export base64Encode from sandbox; point CLI at @agentuity/coder; keep api-reference in core. Co-authored-by: Cursor <cursoragent@cursor.com>
Move user, org env, project get/list/malware, and region create into @agentuity/server; point sandbox API stubs at @agentuity/sandbox; trim migrated symbols from core barrel exports. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PLAN.mdwith a phased roadmap for decoupling standalone service packages from@agentuity/core.PLAN.md; no code changes in this PR.Test plan
Made with Cursor