Skip to main content

aiConnected Platform v2 — Port Map

Old path → New v2 path, with migration instructions March 2026

Overview

The v2 monorepo follows the same Turborepo structure as v1. Package names and locations are preserved where possible for developer familiarity. The key differences are: a new packages/ui package (shadcn/ui layer), a replaced packages/db schema, and three fully rebuilt apps/.

Package Port Map


packages/permissions

Action: Copy as-is. Zero changes required. The USER_ROLES constants, ROLE_GROUPS, and all helper functions (isSuperAdmin, isAgencyUser, isBusinessUser, etc.) are correct and match the v2 user model exactly. Copy verbatim.

packages/app-sdk

Action: Port + extend for events. Manifest extension required: Add to every module manifest object:
The existing inputs, outputs, extensionPoints, permissions, and capabilities fields are correct and carry forward unchanged. The two new fields complete the event bus contract. Updated Chat manifest (example):

packages/kb-engine

Action: Port as-is. No logic changes. The scraper already points to crawl.sec-admn.com as the Crawl4AI endpoint. This infrastructure carries forward. No changes to the engine logic.

packages/chat-core

Action: Port as-is. One file to review. Note on composio.js: In v2, all external service calls route through the module’s declared API surface and the platform API gateway — not via direct SDK imports. Review composio.js to confirm it follows this pattern before porting. If it makes direct SDK calls, wrap them in the platform.http or composio.connection input pattern.

packages/branding

Action: Port merge logic, replace token definitions. Token replacement mapping (v1 → v2 TweakCN):
Map all remaining v1 tokens to their shadcn/TweakCN equivalents. The mergeTheme(...themes) function logic is correct and carries forward unchanged.

packages/db

Action: Port client patterns. Rebuild schema. Schema: Rebuild from v2 contracts. Do not run v1 migrations. v2 core schema (new migrations, written fresh):

packages/ui — NEW PACKAGE

Action: Create from scratch. This package did not exist meaningfully in v1. In v2 it is the shadcn/ui component layer used by all apps and modules.
All apps import from @aiconnected/ui. No app ever imports directly from shadcn/ui. This enforces design system consistency and enables global component updates.

App Port Map


apps/platform → Rebuild

Do not port. Build fresh. New platform shell structure:
Reference from v1 (logic only, no UI):
  • src/lib/navigation.js — sidebar menu structure logic
  • src/lib/auth.js — auth utility patterns
  • src/context/ImpersonationContext.jsx — impersonation state logic (rewrite in TypeScript)

apps/chat → Rebuild

Do not port. Build fresh. New chat app structure:
Port from v1 (logic only):
  • All of packages/chat-core (unchanged)
  • apps/chat/public/widget.js — widget embed logic (review and port)

apps/kb-studio → Rebuild

Do not port. Build fresh.
Port from v1 (logic only):
  • All of packages/kb-engine (unchanged)
  • apps/kb-studio/kb-ui/kb-editor-spec.md — reference for editor UI design

Infrastructure Port Map


Port map v1.0 — March 2026 Read alongside: aiConnected-Platform-V2-Build-Plan.md