Skip to content

fix(exports): add default export conditions for Node/tsx resolution - #1614

Merged
Huijiro merged 2 commits into
mainfrom
fix/1613-node-tsx-export-defaults
Jul 8, 2026
Merged

fix(exports): add default export conditions for Node/tsx resolution#1614
Huijiro merged 2 commits into
mainfrom
fix/1613-node-tsx-export-defaults

Conversation

@Huijiro

@Huijiro Huijiro commented Jul 7, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds "default" export conditions to 31 @agentuity/* packages that previously defined only "import" (and "types") in their export maps
  • Fixes ERR_PACKAGE_PATH_NOT_EXPORTED when loading SDK packages via Node or tsx — for example import '@agentuity/core' through tsx, which failed because @agentuity/adapter (and other dependencies) had import-only exports
  • Aligns export map shape with @agentuity/core and @agentuity/drizzle, which already used "default"

Test plan

  • Reproduced failure before fix: node -e "require('@agentuity/adapter')"ERR_PACKAGE_PATH_NOT_EXPORTED
  • Verified after fix: node -e "require('@agentuity/core')" succeeds
  • Verified after fix: bun x tsx -e "import '@agentuity/core'" succeeds
  • Verified after fix: bun x tsx -e "import '@agentuity/server'" and import '@agentuity/genesis/hono' succeed
  • Verified Bun imports still work: bun -e "import '@agentuity/core'"

Fixes #1613

Made with Cursor

Summary by CodeRabbit

  • Bug Fixes
    • Improved package entrypoint compatibility across the workspace by adding explicit default export targets to many packages, improving resolution when default conditions are used.
    • Updated conditional exports for select subpaths (including special handling for different runtimes) to ensure consistent JavaScript entrypoints alongside existing type mappings.
    • Adjusted one test utility package’s exports so both import and default resolve predictably.

Import-only package export maps caused ERR_PACKAGE_PATH_NOT_EXPORTED when
loading SDK packages via Node or tsx. Add default conditions across packages
so standard Node tooling can resolve the same entrypoints Bun already uses.

Fixes #1613

Co-authored-by: Cursor <cursoragent@cursor.com>
@agentuity-agent

agentuity-agent Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest Agentuity deployment details.

Project Deployment Preview Updated (UTC)
docs 🟢 Ready (deploy_a7e5ac3adb491fc09bccb7b121318af8) - 2026-07-07T23:56:49Z

View deployment logs with the Agentuity CLI:

agentuity cloud deployment logs deploy_a7e5ac3adb491fc09bccb7b121318af8 --project-id=proj_5ed7da797bef771d65e1bd6946a052b1

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c3cb7807-f284-4a5c-b59a-f97bc14b08bf

📥 Commits

Reviewing files that changed from the base of the PR and between 1c49606 and e43b730.

📒 Files selected for processing (23)
  • packages/aigateway/package.json
  • packages/analytics/package.json
  • packages/cli/package.json
  • packages/coder-tui/package.json
  • packages/coder/package.json
  • packages/create-agentuity/package.json
  • packages/db/package.json
  • packages/email/package.json
  • packages/hono/package.json
  • packages/keyvalue/package.json
  • packages/migrate/package.json
  • packages/pi/package.json
  • packages/queue/package.json
  • packages/runtime/package.json
  • packages/sandbox/package.json
  • packages/schedule/package.json
  • packages/server/package.json
  • packages/stream/package.json
  • packages/task/package.json
  • packages/telemetry/package.json
  • packages/vector/package.json
  • packages/vite/package.json
  • packages/webhook/package.json
✅ Files skipped from review due to trivial changes (1)
  • packages/schedule/package.json
🚧 Files skipped from review as they are similar to previous changes (20)
  • packages/telemetry/package.json
  • packages/db/package.json
  • packages/analytics/package.json
  • packages/sandbox/package.json
  • packages/vector/package.json
  • packages/task/package.json
  • packages/stream/package.json
  • packages/webhook/package.json
  • packages/keyvalue/package.json
  • packages/create-agentuity/package.json
  • packages/cli/package.json
  • packages/email/package.json
  • packages/pi/package.json
  • packages/hono/package.json
  • packages/coder-tui/package.json
  • packages/coder/package.json
  • packages/server/package.json
  • packages/queue/package.json
  • packages/runtime/package.json
  • packages/migrate/package.json
📜 Recent review details
⏰ Context from checks skipped due to timeout. (15)
  • GitHub Check: Linux distro install smoke
  • GitHub Check: Native install (macOS)
  • GitHub Check: Native install (Linux)
  • GitHub Check: Installer scenarios
  • GitHub Check: Bun version checks
  • GitHub Check: Queue CLI Tests (node)
  • GitHub Check: Framework Demo Tests
  • GitHub Check: Package Installation & Usage Test (node)
  • GitHub Check: Queue CLI Tests (bun)
  • GitHub Check: Package Installation & Usage Test (bun)
  • GitHub Check: Migrate Chain (v1 → v2 → v3)
  • GitHub Check: Windows WSL CLI Smoke Test
  • GitHub Check: Build
  • GitHub Check: Pack & Upload
  • GitHub Check: Agentuity - docs-docs
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2026-03-27T23:18:58.450Z
Learnt from: jhaynie
Repo: agentuity/sdk PR: 1292
File: packages/keyvalue/package.json:3-3
Timestamp: 2026-03-27T23:18:58.450Z
Learning: In the agentuity/sdk monorepo, subpackage `package.json` files under `packages/` (e.g., `packages/keyvalue`) are allowed to depend on other workspace packages (such as `agentuity/server`) and are not limited to only `agentuity/core` and `zod`. Also, if a subpackage uses `bunx tsc --build --force` as its build script, treat it as a valid/intentional build command and do not flag it as a dependency/build-script violation.

Applied to files:

  • packages/aigateway/package.json
  • packages/vite/package.json
🔇 Additional comments (2)
packages/aigateway/package.json (1)

16-20: LGTM!

packages/vite/package.json (1)

10-16: LGTM!


📝 Walkthrough

Walkthrough

This PR adds explicit default conditions to package exports maps across the monorepo, and updates one package description string. Most affected packages keep the same JS entry targets for import and default.

Changes

Package exports default condition additions

Layer / File(s) Summary
Root exports add default
packages/adapter/package.json, packages/api/package.json, packages/aigateway/package.json, packages/cli/package.json, packages/client/package.json, packages/coder-tui/package.json, packages/coder/package.json, packages/config/package.json, packages/create-agentuity/package.json, packages/db/package.json, packages/email/package.json, packages/hono/package.json, packages/keyvalue/package.json, packages/migrate/package.json, packages/pi/package.json, packages/queue/package.json, packages/runtime/package.json, packages/sandbox/package.json, packages/schedule/package.json, packages/schema/package.json, packages/server/package.json, packages/stream/package.json, packages/task/package.json, packages/telemetry/package.json, packages/test-utils/package.json, packages/vector/package.json, packages/vite/package.json, packages/webhook/package.json
exports["."] now includes a default condition alongside existing runtime and type conditions.
Multi-subpath exports add default
packages/analytics/package.json, packages/genesis/package.json, packages/storage/package.json
Multiple subpath export entries gain matching default conditions that point to the same built outputs as their existing runtime targets.
Migrate metadata and export
packages/migrate/package.json
The package description changes, and exports["."] gains a default condition.

Sequence Diagram(s)

No sequence diagram generated; the changes are static package metadata updates.

Estimated Code Review Effort: 2/5

Related Issues: None specified.

Related PRs: None specified.

Suggested Labels: dependencies, configuration

Suggested Reviewers: None specified.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

📦 Canary Packages Published

version: 3.1.7-e43b730

Packages
Package Version URL
@agentuity/claude-code 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-claude-code-3.1.7-e43b730.tgz
@agentuity/runtime 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-runtime-3.1.7-e43b730.tgz
@agentuity/task 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-task-3.1.7-e43b730.tgz
@agentuity/cli 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-cli-3.1.7-e43b730.tgz
@agentuity/sandbox 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-sandbox-3.1.7-e43b730.tgz
@agentuity/migrate 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-migrate-3.1.7-e43b730.tgz
@agentuity/coder-tui 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-coder-tui-3.1.7-e43b730.tgz
@agentuity/keyvalue 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-keyvalue-3.1.7-e43b730.tgz
@agentuity/telemetry 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-telemetry-3.1.7-e43b730.tgz
@agentuity/webhook 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-webhook-3.1.7-e43b730.tgz
@agentuity/api 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-api-3.1.7-e43b730.tgz
@agentuity/analytics 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-analytics-3.1.7-e43b730.tgz
create-agentuity 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/create-agentuity-3.1.7-e43b730.tgz
@agentuity/aigateway 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-aigateway-3.1.7-e43b730.tgz
@agentuity/drizzle 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-drizzle-3.1.7-e43b730.tgz
@agentuity/core 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-core-3.1.7-e43b730.tgz
@agentuity/server 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-server-3.1.7-e43b730.tgz
@agentuity/hono 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-hono-3.1.7-e43b730.tgz
@agentuity/postgres 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-postgres-3.1.7-e43b730.tgz
@agentuity/skills 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-skills-3.1.7-e43b730.tgz
@agentuity/storage 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-storage-3.1.7-e43b730.tgz
@agentuity/opencode 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-opencode-3.1.7-e43b730.tgz
@agentuity/pi 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-pi-3.1.7-e43b730.tgz
@agentuity/config 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-config-3.1.7-e43b730.tgz
@agentuity/stream 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-stream-3.1.7-e43b730.tgz
@agentuity/email 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-email-3.1.7-e43b730.tgz
@agentuity/queue 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-queue-3.1.7-e43b730.tgz
@agentuity/schedule 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-schedule-3.1.7-e43b730.tgz
@agentuity/coder 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-coder-3.1.7-e43b730.tgz
@agentuity/vector 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-vector-3.1.7-e43b730.tgz
@agentuity/db 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-db-3.1.7-e43b730.tgz
@agentuity/adapter 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-adapter-3.1.7-e43b730.tgz
@agentuity/genesis 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-genesis-3.1.7-e43b730.tgz
@agentuity/vite 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-vite-3.1.7-e43b730.tgz
@agentuity/client 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-client-3.1.7-e43b730.tgz
@agentuity/schema 3.1.7-e43b730 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-schema-3.1.7-e43b730.tgz
Install

Add to your package.json:

{
  "dependencies": {
    "@agentuity/claude-code": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-claude-code-3.1.7-e43b730.tgz",
    "@agentuity/runtime": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-runtime-3.1.7-e43b730.tgz",
    "@agentuity/task": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-task-3.1.7-e43b730.tgz",
    "@agentuity/cli": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-cli-3.1.7-e43b730.tgz",
    "@agentuity/sandbox": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-sandbox-3.1.7-e43b730.tgz",
    "@agentuity/migrate": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-migrate-3.1.7-e43b730.tgz",
    "@agentuity/coder-tui": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-coder-tui-3.1.7-e43b730.tgz",
    "@agentuity/keyvalue": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-keyvalue-3.1.7-e43b730.tgz",
    "@agentuity/telemetry": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-telemetry-3.1.7-e43b730.tgz",
    "@agentuity/webhook": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-webhook-3.1.7-e43b730.tgz",
    "@agentuity/api": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-api-3.1.7-e43b730.tgz",
    "@agentuity/analytics": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-analytics-3.1.7-e43b730.tgz",
    "create-agentuity": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/create-agentuity-3.1.7-e43b730.tgz",
    "@agentuity/aigateway": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-aigateway-3.1.7-e43b730.tgz",
    "@agentuity/drizzle": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-drizzle-3.1.7-e43b730.tgz",
    "@agentuity/core": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-core-3.1.7-e43b730.tgz",
    "@agentuity/server": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-server-3.1.7-e43b730.tgz",
    "@agentuity/hono": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-hono-3.1.7-e43b730.tgz",
    "@agentuity/postgres": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-postgres-3.1.7-e43b730.tgz",
    "@agentuity/skills": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-skills-3.1.7-e43b730.tgz",
    "@agentuity/storage": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-storage-3.1.7-e43b730.tgz",
    "@agentuity/opencode": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-opencode-3.1.7-e43b730.tgz",
    "@agentuity/pi": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-pi-3.1.7-e43b730.tgz",
    "@agentuity/config": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-config-3.1.7-e43b730.tgz",
    "@agentuity/stream": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-stream-3.1.7-e43b730.tgz",
    "@agentuity/email": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-email-3.1.7-e43b730.tgz",
    "@agentuity/queue": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-queue-3.1.7-e43b730.tgz",
    "@agentuity/schedule": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-schedule-3.1.7-e43b730.tgz",
    "@agentuity/coder": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-coder-3.1.7-e43b730.tgz",
    "@agentuity/vector": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-vector-3.1.7-e43b730.tgz",
    "@agentuity/db": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-db-3.1.7-e43b730.tgz",
    "@agentuity/adapter": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-adapter-3.1.7-e43b730.tgz",
    "@agentuity/genesis": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-genesis-3.1.7-e43b730.tgz",
    "@agentuity/vite": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-vite-3.1.7-e43b730.tgz",
    "@agentuity/client": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-client-3.1.7-e43b730.tgz",
    "@agentuity/schema": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-schema-3.1.7-e43b730.tgz"
  }
}

Or install directly:

bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-claude-code-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-runtime-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-task-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-cli-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-sandbox-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-migrate-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-coder-tui-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-keyvalue-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-telemetry-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-webhook-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-api-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-analytics-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/create-agentuity-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-aigateway-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-drizzle-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-core-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-server-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-hono-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-postgres-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-skills-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-storage-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-opencode-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-pi-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-config-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-stream-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-email-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-queue-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-schedule-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-coder-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-vector-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-db-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-adapter-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-genesis-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-vite-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-client-3.1.7-e43b730.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.7-e43b730/agentuity-schema-3.1.7-e43b730.tgz

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 9

🧹 Nitpick comments (12)
packages/db/package.json (1)

16-20: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Move "types" before "import"/"default" in the conditions object.

TypeScript's own module resolution docs require the types condition to appear first in an exports conditions block; since resolution matches the first satisfying key, listing import before types risks TypeScript picking up the wrong entry when it also treats import as a matching condition. packages/genesis/package.json and packages/storage/package.json already order types first — worth aligning here too for consistency and correctness.

♻️ Proposed fix
 "exports": {
   ".": {
-    "import": "./dist/index.js",
     "types": "./dist/index.d.ts",
+    "import": "./dist/index.js",
     "default": "./dist/index.js"
   }
 },
The "types" condition should always come first in "exports".
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/db/package.json` around lines 16 - 20, The exports conditions object
in the package.json entry currently lists import/default before types, which can
cause TypeScript to resolve the wrong target. Update the exports block for the
"." subpath so the types condition is the first key, matching the ordering used
in packages/genesis/package.json and packages/storage/package.json, while
keeping the existing import and default entries unchanged.
packages/email/package.json (1)

16-20: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Same types-ordering issue as other single-entry packages.

Same concern as packages/db/package.json: types should be listed before import/default per The "types" condition should always come first in "exports".

Dependencies (@agentuity/adapter, @agentuity/client, @agentuity/config, no direct @agentuity/core) remain compliant with the guideline for this package. As per coding guidelines, packages/email/**/package.json: Maintain dependencies on @agentuity/adapter, @agentuity/client, and @agentuity/configwithout a direct@agentuity/core dependency.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/email/package.json` around lines 16 - 20, The exports map in
packages/email/package.json has the same condition-order issue as other
single-entry packages: the "types" condition must come first. Update the "."
export entry so the existing fields in that object are reordered to place
"types" before "import" and "default", keeping the rest of the package metadata
and dependency compliance unchanged.

Source: Coding guidelines

packages/analytics/package.json (1)

11-20: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Same types-ordering issue on both "." and "./beacon".

Both subpaths list import before types, which contradicts the TypeScript recommendation that types must be first (The "types" condition should always come first in "exports".). Since this package has multiple subpaths, this affects both entries.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/analytics/package.json` around lines 11 - 20, The exports map in
package.json has the same condition-order problem for both the "." and
"./beacon" subpaths: the types condition is not listed first. Update the exports
entries so that types comes before import and default in each subpath,
preserving the existing targets while reordering the conditions to match the
TypeScript requirement.
packages/keyvalue/package.json (1)

16-20: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Same types-ordering issue.

Same recurring concern as sibling packages — import should not precede types (The "types" condition should always come first in "exports".).

Dependencies on @agentuity/adapter, @agentuity/client, @agentuity/config, and zod are present and compliant. As per coding guidelines, packages/keyvalue/**/package.json: Declare dependencies on @agentuity/adapter, @agentuity/client, @agentuity/config, and zod in package.json.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/keyvalue/package.json` around lines 16 - 20, The package export map
in the keyvalue package has the conditions in the wrong order: `import` is
listed before `types` in the `"."` export entry. Update the `exports` block in
the package.json so `types` comes first, then `import`, then `default`, matching
the convention used by the sibling packages and keeping the `types` condition
first in `exports`.

Source: Coding guidelines

packages/migrate/package.json (1)

20-24: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Same types-ordering issue.

Same recurring concern — import precedes types in the exports conditions block (The "types" condition should always come first in "exports".).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/migrate/package.json` around lines 20 - 24, The exports conditions
block in the package config has the same ordering issue: the "types" condition
must come before "import" in the "." export entry. Update the export map in the
package.json for the migrate package so the condition order matches the expected
convention, keeping the existing targets for import, types, and default
unchanged.
packages/hono/package.json (1)

10-14: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Same types-ordering issue.

Same recurring concern: import precedes types in the conditions object, which deviates from the TypeScript-recommended ordering (The "types" condition should always come first in "exports".).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/hono/package.json` around lines 10 - 14, The exports conditions
object has the wrong condition ordering because import is listed before types.
Update the package.json exports entry for the "." subpath so types is the first
condition, followed by import and default, matching the TypeScript-recommended
order in the exports map.
packages/runtime/package.json (1)

11-15: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Same "types"/"import" ordering concern as packages/pi/package.json.

"import" precedes "types" in this exports block, which can cause incorrect type resolution under node16/nodenext module resolution. Consider reordering to put types first.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/runtime/package.json` around lines 11 - 15, The exports map in the
package manifest has "import" before "types", which can lead to incorrect type
resolution under node16/nodenext. Update the package.json exports entry for "."
so that the "types" condition is listed before "import" and keep "default"
unchanged; use the existing exports block in packages/runtime/package.json as
the target for the reorder.
packages/pi/package.json (1)

16-20: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Consider ordering "types" before "import"/"default" in the exports map.

default correctly comes last as a fallback. However, "types" still comes after "import" (pre-existing, not introduced here). Under TypeScript's node16/nodenext resolution, exports conditions are matched in object-declaration order, so if "import" is listed before "types", type resolution can pick the import string entry instead of the .d.ts file. Since this PR already touches this exact block, it's a good opportunity to fix the ordering too (compare packages/schema/package.json, which already lists types first).

💡 Suggested reorder
 		".": {
-			"import": "./dist/index.js",
 			"types": "./dist/index.d.ts",
+			"import": "./dist/index.js",
 			"default": "./dist/index.js"
 		}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/pi/package.json` around lines 16 - 20, The exports map in the
package.json block for the "." entry has the TypeScript types condition ordered
after "import", which can interfere with node16/nodenext resolution. Reorder the
conditions in this entry so "types" comes first and keep "default" last,
matching the pattern already used in packages/schema/package.json and preserving
the existing paths for the package export.
packages/schedule/package.json (1)

16-20: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Same "types"/"import" ordering concern as packages/pi/package.json.

"import" precedes "types" here as well; consider reordering to match packages/schema/package.json.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/schedule/package.json` around lines 16 - 20, The package export map
in the schedule package has the same key ordering issue as the other package
configs: the subpath export under the main "." entry lists "import" before
"types". Reorder the keys in the package.json export definition for the "."
entry so it matches the convention used in packages/schema/package.json, keeping
the same values but placing "types" before "import".
packages/sandbox/package.json (1)

16-20: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Same "types"/"import" ordering concern as packages/pi/package.json.

"import" precedes "types" here; consider reordering (see packages/schema/package.json for the correct pattern).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/sandbox/package.json` around lines 16 - 20, The package export map
in the root "." entry has the same key ordering issue as the other package
manifest: reorder the conditions so "types" comes before "import" in the exports
object, matching the pattern used in the referenced package.json files. Update
the export entry in the package manifest accordingly without changing the
values.
packages/server/package.json (1)

16-20: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Same "types"/"import" ordering concern as packages/pi/package.json.

"import" precedes "types" here; consider reordering to match packages/schema/package.json.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/server/package.json` around lines 16 - 20, The package export map in
the server package has the same ordering issue as the other package.json files:
the export entry under the "." key places "import" before "types". Update the
exports object in packages/server/package.json so the "types" field comes before
"import", matching the ordering used in packages/schema/package.json and the
other package manifests.
packages/queue/package.json (1)

16-20: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Same "types"/"import" ordering concern as packages/pi/package.json.

"import" precedes "types" here too; under TS node16/nodenext resolution this can cause type declarations to resolve incorrectly since condition matching is order-dependent on the object's key order. Consider moving types first, as in packages/schema/package.json.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/queue/package.json` around lines 16 - 20, The package exports map in
the queue package has the same condition-order issue as the pi package: the
`exports["."]` object currently lists `import` before `types`, which can affect
TypeScript `node16`/`nodenext` resolution. Update the `exports` entry in
`package.json` so `types` is listed before `import` (matching the pattern used
in `schema`), while keeping the same targets for `./dist/index.d.ts` and
`./dist/index.js`.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/aigateway/package.json`:
- Around line 16-20: The export map for the package root currently lists the
conditional entries in the wrong order. Update the package.json exports object
for the "." entry so that the types condition comes before import, keeping the
existing values for index.js and index.d.ts unchanged. Use the export map entry
under the root export key to make the ordering fix.

In `@packages/cli/package.json`:
- Around line 13-17: The package exports for the cli entrypoint are ordered
incorrectly, which can cause TypeScript resolution to bypass the declaration
file. Update the conditional exports in the package.json entry for the root
export so that the types condition in the main export object is listed before
import, keeping the existing paths and default entry unchanged. Use the export
map under the "." key as the place to make this ordering fix.

In `@packages/coder-tui/package.json`:
- Around line 16-20: The export condition order in the package.json exports map
for the coder-tui package is incorrect, causing TypeScript to prefer the JS
entrypoint over the declaration file in node16/nodenext/bundler resolution.
Update the "." export entry so the types condition comes before import, while
keeping the same targets for the exports object.

In `@packages/coder/package.json`:
- Around line 16-20: Reorder the conditional exports entry in the package.json
exports map for the root export so the types condition is listed before import
in the main package export object. Update the "." export block accordingly,
keeping the existing paths the same, so TypeScript can resolve ./dist/index.d.ts
before selecting the runtime module from import/default.

In `@packages/create-agentuity/package.json`:
- Around line 11-15: The package.json exports entry for the root subpath should
list the TypeScript declaration target first so resolution prefers types before
JavaScript. Update the `exports` object for the `.` key by reordering the
existing `types`, `import`, and `default` fields so `types` comes before
`import`, keeping the same paths and values.

In `@packages/stream/package.json`:
- Around line 16-20: Reorder the conditional exports in the package.json exports
map for the stream package so the types condition is listed before import in the
"." entry. Update the export object in the package’s package.json to place the
types field ahead of import (and keep default after), since the TypeScript
resolver used by node16/nodenext/bundler reads conditions in order and the
current ordering in the package exports can cause it to miss the declaration
file.

In `@packages/task/package.json`:
- Around line 16-20: The export map for the package root currently lists the
conditions in an order that can cause TypeScript resolution to pick the JS entry
before declarations; update the package.json export object for "." so the
"types" condition is listed before "import" in the same export map, keeping the
existing values intact and preserving the "default" entry.

In `@packages/telemetry/package.json`:
- Around line 10-14: The exports entry in packages/telemetry/package.json needs
the TypeScript declaration path prioritized before the runtime import path so
node16/nodenext/bundler resolution can find the types reliably. Update the "."
export object to place the types field ahead of import in the same export block,
keeping the existing values for ./dist/index.d.ts and ./dist/index.js unchanged.

In `@packages/vector/package.json`:
- Around line 16-20: The exports entry for the package root in package.json has
the conditions ordered incorrectly, so TypeScript may not pick up the
declaration file. Update the root export object under the "." key in the exports
map so that the types condition is listed before import, while keeping the
existing dist paths and default export intact.

---

Nitpick comments:
In `@packages/analytics/package.json`:
- Around line 11-20: The exports map in package.json has the same
condition-order problem for both the "." and "./beacon" subpaths: the types
condition is not listed first. Update the exports entries so that types comes
before import and default in each subpath, preserving the existing targets while
reordering the conditions to match the TypeScript requirement.

In `@packages/db/package.json`:
- Around line 16-20: The exports conditions object in the package.json entry
currently lists import/default before types, which can cause TypeScript to
resolve the wrong target. Update the exports block for the "." subpath so the
types condition is the first key, matching the ordering used in
packages/genesis/package.json and packages/storage/package.json, while keeping
the existing import and default entries unchanged.

In `@packages/email/package.json`:
- Around line 16-20: The exports map in packages/email/package.json has the same
condition-order issue as other single-entry packages: the "types" condition must
come first. Update the "." export entry so the existing fields in that object
are reordered to place "types" before "import" and "default", keeping the rest
of the package metadata and dependency compliance unchanged.

In `@packages/hono/package.json`:
- Around line 10-14: The exports conditions object has the wrong condition
ordering because import is listed before types. Update the package.json exports
entry for the "." subpath so types is the first condition, followed by import
and default, matching the TypeScript-recommended order in the exports map.

In `@packages/keyvalue/package.json`:
- Around line 16-20: The package export map in the keyvalue package has the
conditions in the wrong order: `import` is listed before `types` in the `"."`
export entry. Update the `exports` block in the package.json so `types` comes
first, then `import`, then `default`, matching the convention used by the
sibling packages and keeping the `types` condition first in `exports`.

In `@packages/migrate/package.json`:
- Around line 20-24: The exports conditions block in the package config has the
same ordering issue: the "types" condition must come before "import" in the "."
export entry. Update the export map in the package.json for the migrate package
so the condition order matches the expected convention, keeping the existing
targets for import, types, and default unchanged.

In `@packages/pi/package.json`:
- Around line 16-20: The exports map in the package.json block for the "." entry
has the TypeScript types condition ordered after "import", which can interfere
with node16/nodenext resolution. Reorder the conditions in this entry so "types"
comes first and keep "default" last, matching the pattern already used in
packages/schema/package.json and preserving the existing paths for the package
export.

In `@packages/queue/package.json`:
- Around line 16-20: The package exports map in the queue package has the same
condition-order issue as the pi package: the `exports["."]` object currently
lists `import` before `types`, which can affect TypeScript `node16`/`nodenext`
resolution. Update the `exports` entry in `package.json` so `types` is listed
before `import` (matching the pattern used in `schema`), while keeping the same
targets for `./dist/index.d.ts` and `./dist/index.js`.

In `@packages/runtime/package.json`:
- Around line 11-15: The exports map in the package manifest has "import" before
"types", which can lead to incorrect type resolution under node16/nodenext.
Update the package.json exports entry for "." so that the "types" condition is
listed before "import" and keep "default" unchanged; use the existing exports
block in packages/runtime/package.json as the target for the reorder.

In `@packages/sandbox/package.json`:
- Around line 16-20: The package export map in the root "." entry has the same
key ordering issue as the other package manifest: reorder the conditions so
"types" comes before "import" in the exports object, matching the pattern used
in the referenced package.json files. Update the export entry in the package
manifest accordingly without changing the values.

In `@packages/schedule/package.json`:
- Around line 16-20: The package export map in the schedule package has the same
key ordering issue as the other package configs: the subpath export under the
main "." entry lists "import" before "types". Reorder the keys in the
package.json export definition for the "." entry so it matches the convention
used in packages/schema/package.json, keeping the same values but placing
"types" before "import".

In `@packages/server/package.json`:
- Around line 16-20: The package export map in the server package has the same
ordering issue as the other package.json files: the export entry under the "."
key places "import" before "types". Update the exports object in
packages/server/package.json so the "types" field comes before "import",
matching the ordering used in packages/schema/package.json and the other package
manifests.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: dfca589a-32e9-430e-8776-cbb10cd49b1b

📥 Commits

Reviewing files that changed from the base of the PR and between 73cf43d and 1c49606.

📒 Files selected for processing (31)
  • packages/adapter/package.json
  • packages/aigateway/package.json
  • packages/analytics/package.json
  • packages/api/package.json
  • packages/cli/package.json
  • packages/client/package.json
  • packages/coder-tui/package.json
  • packages/coder/package.json
  • packages/config/package.json
  • packages/create-agentuity/package.json
  • packages/db/package.json
  • packages/email/package.json
  • packages/genesis/package.json
  • packages/hono/package.json
  • packages/keyvalue/package.json
  • packages/migrate/package.json
  • packages/pi/package.json
  • packages/queue/package.json
  • packages/runtime/package.json
  • packages/sandbox/package.json
  • packages/schedule/package.json
  • packages/schema/package.json
  • packages/server/package.json
  • packages/storage/package.json
  • packages/stream/package.json
  • packages/task/package.json
  • packages/telemetry/package.json
  • packages/test-utils/package.json
  • packages/vector/package.json
  • packages/vite/package.json
  • packages/webhook/package.json
📜 Review details
⏰ Context from checks skipped due to timeout. (16)
  • GitHub Check: Linux distro install smoke
  • GitHub Check: Native install (Linux)
  • GitHub Check: Native install (macOS)
  • GitHub Check: Installer scenarios
  • GitHub Check: Bun version checks
  • GitHub Check: Agentuity - docs-docs
  • GitHub Check: Windows WSL CLI Smoke Test
  • GitHub Check: Framework Demo Tests
  • GitHub Check: Package Installation & Usage Test (node)
  • GitHub Check: Queue CLI Tests (node)
  • GitHub Check: Queue CLI Tests (bun)
  • GitHub Check: Service Client Smoke Tests
  • GitHub Check: Package Installation & Usage Test (bun)
  • GitHub Check: Migrate Chain (v1 → v2 → v3)
  • GitHub Check: Pack & Upload
  • GitHub Check: Build
🧰 Additional context used
📓 Path-based instructions (9)
packages/vector/**/{package.json,bunfig.toml}

📄 CodeRabbit inference engine (packages/vector/AGENTS.md)

packages/vector/**/{package.json,bunfig.toml}: Build the package using bun run build command
Run bun run typecheck for type checking before publishing

Files:

  • packages/vector/package.json
packages/vector/**/package.json

📄 CodeRabbit inference engine (packages/vector/AGENTS.md)

Depend on @agentuity/adapter, @agentuity/client, @agentuity/config, and zod; do not depend on @agentuity/core

Files:

  • packages/vector/package.json
packages/sandbox/**/package.json

📄 CodeRabbit inference engine (packages/sandbox/AGENTS.md)

Declare dependencies on @agentuity/adapter, @agentuity/api, @agentuity/config, @agentuity/client, and zod in package.json

Files:

  • packages/sandbox/package.json
packages/email/**/package.json

📄 CodeRabbit inference engine (packages/email/AGENTS.md)

packages/email/**/package.json: Build the package using bun run build command
Maintain dependencies on @agentuity/adapter, @agentuity/client, and @agentuity/config without a direct @agentuity/core dependency

Files:

  • packages/email/package.json
packages/keyvalue/**/package.json

📄 CodeRabbit inference engine (packages/keyvalue/AGENTS.md)

Declare dependencies on @agentuity/adapter, @agentuity/client, @agentuity/config, and zod in package.json

Files:

  • packages/keyvalue/package.json
packages/queue/**/package.json

📄 CodeRabbit inference engine (packages/queue/AGENTS.md)

Use zod, @agentuity/adapter, @agentuity/client, and @agentuity/config as dependencies

Files:

  • packages/queue/package.json
packages/webhook/**/package.json

📄 CodeRabbit inference engine (packages/webhook/AGENTS.md)

Depend on @agentuity/adapter, @agentuity/client, @agentuity/config, and zod packages

Files:

  • packages/webhook/package.json
packages/task/**/package.json

📄 CodeRabbit inference engine (packages/task/AGENTS.md)

packages/task/**/package.json: Build the package using bun run build command
Clean build artifacts using rm -rf dist
Depend on @agentuity/adapter, @agentuity/client, @agentuity/config, and zod for task service functionality

Files:

  • packages/task/package.json
packages/coder/**/package.json

📄 CodeRabbit inference engine (packages/coder/AGENTS.md)

Maintain dependencies: @agentuity/adapter, @agentuity/api, @agentuity/client, @agentuity/config, @agentuity/sandbox, and zod

Files:

  • packages/coder/package.json
🧠 Learnings (1)
📚 Learning: 2026-03-27T23:18:58.450Z
Learnt from: jhaynie
Repo: agentuity/sdk PR: 1292
File: packages/keyvalue/package.json:3-3
Timestamp: 2026-03-27T23:18:58.450Z
Learning: In the agentuity/sdk monorepo, subpackage `package.json` files under `packages/` (e.g., `packages/keyvalue`) are allowed to depend on other workspace packages (such as `agentuity/server`) and are not limited to only `agentuity/core` and `zod`. Also, if a subpackage uses `bunx tsc --build --force` as its build script, treat it as a valid/intentional build command and do not flag it as a dependency/build-script violation.

Applied to files:

  • packages/cli/package.json
  • packages/adapter/package.json
  • packages/vector/package.json
  • packages/schema/package.json
  • packages/api/package.json
  • packages/sandbox/package.json
  • packages/email/package.json
  • packages/keyvalue/package.json
  • packages/queue/package.json
  • packages/client/package.json
  • packages/db/package.json
  • packages/server/package.json
  • packages/schedule/package.json
  • packages/aigateway/package.json
  • packages/test-utils/package.json
  • packages/migrate/package.json
  • packages/config/package.json
  • packages/stream/package.json
  • packages/runtime/package.json
  • packages/webhook/package.json
  • packages/pi/package.json
  • packages/vite/package.json
  • packages/task/package.json
  • packages/hono/package.json
  • packages/coder-tui/package.json
  • packages/create-agentuity/package.json
  • packages/coder/package.json
  • packages/genesis/package.json
  • packages/analytics/package.json
  • packages/telemetry/package.json
  • packages/storage/package.json
🔇 Additional comments (10)
packages/adapter/package.json (1)

11-15: LGTM!

packages/api/package.json (1)

11-15: LGTM!

packages/test-utils/package.json (1)

9-13: LGTM!

packages/client/package.json (1)

11-15: LGTM! Correct order (types first, default last).

packages/config/package.json (1)

11-15: LGTM! Correct order (types first, default last).

packages/webhook/package.json (1)

16-20: 🎯 Functional Correctness

No change needed. The exports key order here is fine, and the package already depends on @agentuity/adapter, @agentuity/client, @agentuity/config, and zod.

			> Likely an incorrect or invalid review comment.
packages/vite/package.json (1)

11-15: 🎯 Functional Correctness

No change needed in packages/vite/package.json. The exports key order is already consistent with several sibling packages, so types does not need to move first.

			> Likely an incorrect or invalid review comment.
packages/genesis/package.json (1)

10-35: LGTM!

packages/storage/package.json (1)

16-49: LGTM!

types is correctly ordered first in every conditional block (nested bun/node/default and each subpath), consistent with TypeScript's requirement.

packages/schema/package.json (1)

16-20: LGTM!

Comment thread packages/aigateway/package.json
Comment thread packages/cli/package.json
Comment thread packages/coder-tui/package.json
Comment thread packages/coder/package.json
Comment thread packages/create-agentuity/package.json
Comment thread packages/stream/package.json
Comment thread packages/task/package.json
Comment thread packages/telemetry/package.json
Comment thread packages/vector/package.json
Reorder conditional export keys so TypeScript resolves declaration files
before runtime entrypoints, matching @agentuity/core conventions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Huijiro
Huijiro merged commit 06a9e99 into main Jul 8, 2026
29 checks passed
@Huijiro
Huijiro deleted the fix/1613-node-tsx-export-defaults branch July 8, 2026 00:12
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.

@agentuity/adapter: import-only exports break Node/tsx resolution via @agentuity/core

1 participant