organization: move packages/business to packages/organization (rename r2 stage B1)

git mv packages/business -> packages/organization (@mosaic/organization). The
old package stays as one-line re-export shims of each moved module, with
src/business.mjs re-exporting src/organization-config.mjs and src/cli.mjs
forwarding to the moved executable. BusinessError is OrganizationConfigError
(one constructor, name kept BusinessError); OrganizationError stays distinct.
The bus adapter gains organization-context.mjs (busOrganization), with
business.mjs (busBusiness) as the same function.

Import consumers, manifests, the lockfile, scripts/mosaic, stack-copy.sh
COPY_PATHS (both roots), seat sandbox RUNNER_FILES and the copy closure
walker (organization-imports.mjs, both roots required) move to the new path.
v1 serialization, v1 writers and the stage A fixtures are unchanged; the stage
A contract tests stay where they were and pass as before.
This commit is contained in:
jason.woltje committed 2026-11-09 11:47:48 -06:00
1 parent d6ab5047af
commit a8d9eecf65
270 files changed
+5678 -5418

No files matched your search

+4 -1
View File
@@ -33,7 +33,10 @@ copy_root() { [[ "$ID" =~ ^[0-9a-f]{40}$ ]] || die '--copy must be a full 40-cha
COPY_PATHS=(
scripts/mosaic scripts/mosaic-config.mjs scripts/case2-persona-import.mjs
adapters roles RELEASE package.json package-lock.json
packages/bus/src packages/bus/schema.sql packages/business/src packages/cli/src packages/project
packages/bus/src packages/bus/schema.sql packages/cli/src packages/project
# Rename r2 stage B: packages/organization/src is the implementation. packages/business/src
# holds the old-path shims that @mosaic/business callers and the stack-release helper import.
packages/organization/src packages/business/src
packages/conversation/src packages/discord/src packages/discord/bin packages/discord/extension packages/harness/src
packages/seat/src packages/tasks/src packages/tasks/fields.json packages/tasks/requirements.json
packages/processing-control