Skip to content

feat(org): export-standalone as commercializable openXYOS source pack (P1.2) - #77

Merged
XYAIStudio merged 1 commit into
mainfrom
cursor/org-export-source-pack-3fef
Sep 20, 2026
Merged

XYAIStudio merged 1 commit into
mainfrom
cursor/org-export-source-pack-3fef

Conversation

@XYAIStudio

Copy link
Copy Markdown
Owner

结论

freeos org export-standalone 默认不再只产出「薄 org-ui SPA + 反代」,而是一份可二次产品化的 openXYOS 系统源码包。--mode slice 保留原来的宿主桥 SPA。

宿主内 /organization 原生路径未删。桌面 / NSIS 未改。

之前 / 之后

之前 之后(本 PR)
默认 uv run freeos org export-standalone --out dist/openxyos-web Vite SPA(Open-12 org-ui)+ server/proxy.mjs 把 /api 反代到 FREEOS_UPSTREAM --mode full:openxyos/(Apache-2.0,完整 App.tsx + Express)+ slice/(MIT 宿主桥)+ modules.json + 中英 README / NOTICE
完整组织前端 明确不导出商业垂类;Chat 整条不导出 完整树含 Open-12、合同/资产/考勤等商业路由、组织沟通协作 /chat
工作室智能体对话 不导出 仍不导出(有意省略,清单与 /coverage、slice /chat 说明页写明)
身份 slice 登录打 FreeOS /api/auth/login 写成用法 完整树用组织房间自己的注册/登录;slice 打宿主只标为过渡桥。工作室日常与组织房间两种进入方式分开

包内结构(--mode full)

dist/openxyos-web/
  README.md / README.zh-CN.md   # 含什么、仍反代什么、怎么跑、许可证
  NOTICE
  modules.json                  # 对照桌面 /organization 与 App.tsx
  openxyos/                     # Apache-2.0 源码树(npm ci && npm run dev)
  slice/                        # MIT org-ui SPA(仍可反代 FreeOS)

--mode slice 只把 MIT SPA 写到输出根目录(与 full 包里的 slice/ 相同),命令仍然可用。

怎么验证

uv run pytest tests/unit/cli/test_org_export_standalone.py -q
uv run freeos org export-standalone --out /tmp/openxyos-web
# 默认 full:
test -f /tmp/openxyos-web/openxyos/frontend/src/App.tsx
test -f /tmp/openxyos-web/slice/src/App.tsx
grep -q Apache-2.0 /tmp/openxyos-web/README.md
# 对照清单里 /contracts in_slice=false、/chat in_full_tree=true

uv run freeos org export-standalone --out /tmp/openxyos-slice --mode slice
test -f /tmp/openxyos-slice/src/App.tsx
test ! -d /tmp/openxyos-slice/openxyos

本地已跑:uv run pytest tests/unit/cli/test_org_export_standalone.py 通过。

说明

  • 许可证:openxyos/ Apache-2.0;slice/ MIT 宿主桥。
  • 完整树跑 App.tsx 仍需要 Node;这是原系统表面,不是把 Node 打进默认安装器。
  • slice 的 /api/org-module 反代仍是过渡;slice 内自包含 API、以及与 POST /api/org-module/source/download 合一,仍是跟进项。
Open in Web Open in Cursor 

… (P1.2)

Default freeos org export-standalone --mode full copies the Apache-2.0
openXYOS tree plus an MIT host-bridge slice and a route/module manifest.
--mode slice keeps the earlier org-ui SPA that proxies to FreeOS.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
@cursor
cursor Bot force-pushed the cursor/org-export-source-pack-3fef branch from e406021 to 3538aa2 Compare September 20, 2026 10:30
@XYAIStudio
XYAIStudio merged commit e942039 into main Sep 20, 2026
2 of 4 checks passed
@XYAIStudio
XYAIStudio deleted the cursor/org-export-source-pack-3fef branch September 20, 2026 10:31
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