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

+3 -1
View File
@@ -363,7 +363,9 @@ check_target() {
# harness prints plugins.harness as JSON, or `none`, from the copy's loader
# launchby prints launch.by, the PM's instance, from a plain JSON read (row 232); it imports
# only business.mjs, for the business file's path
# A failure exits 1 and prints its first line.
# A failure exits 1 and prints its first line. The path stays packages/business/src/business.mjs
# (rename r2 stage B): a copy from before the rename has only that file, and a newer copy keeps it
# as a shim of packages/organization/src/organization-config.mjs, so one path reads both.
PLUGINS_JS='
const {readFileSync}=require("node:fs");const {pathToFileURL}=require("node:url");
const [mode,copy,id,kind]=process.argv.slice(1);