Skip to content

feat(org): host-native organization wave 1 (migration map) - #81

Merged
XYAIStudio merged 5 commits into
mainfrom
cursor/org-host-native-wave1-483f
Sep 20, 2026
Merged

XYAIStudio merged 5 commits into
mainfrom
cursor/org-host-native-wave1-483f

Conversation

@XYAIStudio

@XYAIStudio XYAIStudio commented Sep 20, 2026 •

Copy link
Copy Markdown
Owner

变基说明

已 rebase 到最新 main(含 #78 / #79 / #80)。冲突按 Wave 1 行为保留:宿主人才市场 / host_ingest / 原生 OrganizationEntry 与测试均未丢掉;同时保留 P1.3 双身份文案(roomDoorHint / roomFrameTitle)与 P2 Node 过渡卫生。GitHub 状态:MERGEABLE(无冲突)。CI 仍在跑,mergeStateStatus 在检查完成前可能显示 UNSTABLE。

这一波推进了哪些域

宿主原生组织 Wave 1:加深已有 host API + org-ui,让用户最先碰到的组织面不再依赖托管 Node iframe 当首页。不扩永久 Node,也不拆除 Node。

域 迁移图 做了什么
人才市场 managed_node_iframe → org_ui_slice 宿主 org_chart.sqlite 的 talent_pool;GET/POST /api/org-module/talent*;员工页「人才市场」页签可招募进名册 + 生命周期
双向资产总线 仍 native_host,深度前移 apply/loop 无 Node 也把员工/人才写入宿主名册与人才市场(host_landed);Node ingest 仍是尽力而为
员工目录 仍 org_ui_slice 与人才市场同一 sqlite;资产总线落地后列表立刻可见
治理暂停 仍 native_host 待处理 pause 出现在组织首页与 /organization/workspace
组织工作台 / iframe 壳 工作台仍 native_host;壳仍 managed_node_iframe /organization 即使桌面 integrated 也不再被 iframe 吞掉;原 App 仅作过渡链接
模块目录 / 工作台总览 目录仍 native_host,总览仍 org_ui_slice catalog/overview 叠加 delivery + host_path;总览显示人才与暂停指标

计数:managed_node_iframe 13→12,org_ui_slice 10→11。Chat / 完整 App.tsx / ManagedOrganizationRuntime / NSIS 不在本 PR。

双身份边界保持:工作室 JWT 与组织房间仍是两套空间;文案用「房间」而不是合并登录。非桌面默认仍零 Node。

怎么验证

uv run pytest tests/unit/test_org_talent.py tests/unit/test_org_chart.py tests/unit/test_openxyos_apply.py tests/unit/test_org_module.py tests/unit/test_org_workspace.py tests/unit/test_org_notes.py tests/unit/i18n tests/unit/test_org_loop.py tests/unit/test_asset_loop.py -q
cd dashboard && npx vitest run src/org-ui/pages/employees/EmployeesPage.test.tsx src/org-ui/pages/workspace/WorkspacePage.test.tsx src/pages/Organization/index.test.tsx src/pages/Organization/OrganizationEntry.test.tsx src/org-ui/api/createClient.test.ts
cd dashboard && npx tsc --noEmit
make lint && make typecheck

本云环境 rebase 后实测:相关 pytest 119 passed;OrganizationEntry / Employees / Organization index vitest 22 passed;Prettier check 通过。uv run 在此环境会撞上预装 aliyun-python-sdk-core 的 distutils 卸载问题,已改用 .venv/bin/pytest。

手工:

  1. 不设 FREEOS_ORG_INTEGRATED:打开 /organization 应是原生工作台(无 iframe),可进员工/人才、工作台总览、治理。
  2. 运行 assemble/pack/loop 或 assets apply(无边车):org_chart.sqlite 出现员工与人才;overview 的 host_landed / directory_employees / talent_available 有数。
  3. 桌面集成:/organization 仍是原生工作台;「打开原 App(过渡)」才进 /organization-app。
  4. 治理有 pending pause 时,首页与 /organization/workspace 出现横幅并链到治理页。

仍依赖 Node 的部分

  • 组织房间登录权威、Chat、流程/合同等商业垂类仍走托管 Node / iframe。
  • ManagedOrganizationRuntime 未删除;/organization-app 代理仍在。
  • 人才市场相对原 App 仍薄(分类筛选、智能体定制发布到市场、离职清算未迁)。
  • 插件/MCP ingest 在 Node 健康时仍尽力而为。
Open in Web Open in Cursor 

@XYAIStudio
XYAIStudio marked this pull request as ready for review September 20, 2026 11:49
cursoragent and others added 5 commits September 20, 2026 11:53
Land talent market, asset-bus directory ingest, governance pauses, and
native Organization home on the FreeOS host so those surfaces no longer
need the managed Node iframe. Keep dual-identity bounds and the
zero-Node default; desktop original App remains a transition link.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
FastAPI rejects Union[dict, JSONResponse] without response_model=None.
Talent routes live on the included router, so path checks use that table.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
Keep ruff I001/format checks green for the Wave 1 host-native org changes.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
Keep dashboard format check green for the Wave 1 host-native org UI.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
Format labels and Organization tests so dashboard Prettier check stays green.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
@cursor
cursor Bot force-pushed the cursor/org-host-native-wave1-483f branch from 4dc827f to 1a641f7 Compare September 20, 2026 11:53
@XYAIStudio
XYAIStudio merged commit 910cc44 into main Sep 20, 2026
5 checks passed
@XYAIStudio
XYAIStudio deleted the cursor/org-host-native-wave1-483f branch September 20, 2026 11:54
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.

2 participants