Skip to content

[WIP] Standardize examples/app-host to apps/server for unified application structure#1139

Merged
xuyushun441-sys merged 3 commits intomainfrom
claude/standardize-examples-app-host-to-apps-server
Apr 14, 2026
Merged

[WIP] Standardize examples/app-host to apps/server for unified application structure#1139
xuyushun441-sys merged 3 commits intomainfrom
claude/standardize-examples-app-host-to-apps-server

Conversation

@Claude
Copy link
Copy Markdown
Contributor

@Claude Claude AI commented Apr 14, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>将 examples/app-host 标准化为 apps/server 以统一应用目录及支持 Docker 发布</issue_title>
<issue_description>## 建议:标准化 examples/app-hostapps/server

背景

当前仓库的 examples/app-host 实现了 ObjectStack Server 的参考实现,具备生产级应用结构(独立版本、完整依赖、CI/CD、Vercel 部署、API & Server 规范等),其功能、部署和代码组织已经超出现有"示例"的定位。

为什么建议迁移:

  • 语义更准确,适配 apps/* 主目录结构
  • 支持后期 Docker 化、自动化部署及一体化流水线
  • 区分正式应用与轻量示例的目录边界
  • CI/CD 及文档、部署 pipeline 更易维护

建议方案:

  • examples/app-host 迁移为 apps/server
  • 保持 apps/studioapps/docsapps/server 平行
  • examples/ 目录仅保留极简 demo 和插件样例(如 app-crmapp-todo
  • 迁移时处理依赖路径、Vercel 部署脚本、文档引用等

需注意:

  • 更新 pnpm-workspace.yaml(当前已支持apps/*,但需清查引用路径)
  • 修改 package.json 名称与工作目录适配
  • 搜索/替换所有关联脚本与文档中的目录引用
  • 升级一键部署 URL(如 Vercel 按新路径)
    </issue_description>

Comments on the Issue (you are @claude[agent] in this section)

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
objectstack-demo Error Error Apr 14, 2026 8:47am
objectstack-play Ready Ready Preview, Comment Apr 14, 2026 8:47am
spec Ready Ready Preview, Comment Apr 14, 2026 8:47am

Request Review

- Move examples/app-host/ to apps/server/
- Rename package from @example/app-host to @objectstack/server
- Update manifest ID from com.example.host to com.objectstack.server
- Update namespace from 'host' to 'server'
- Fix import paths in objectstack.config.ts (examples are now at ../../examples/)
- Update all build scripts and paths in scripts/build-vercel.sh and bundle-api.mjs
- Update Vercel deploy button URL in README.md
- Update all documentation references (README.md, DEPLOYMENT.md, examples/README.md, content/docs/getting-started/examples.mdx)
- Update repository documentation (.github/copilot-instructions.md, ROADMAP.md, CHANGELOG.md, docs/DX_ROADMAP.md)
- Update Studio environment config comments
- Update examples/plugin-bi/README.md references
- CI/CD workflows already support apps/!(docs)/** pattern

Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/48a58b70-a631-4184-811b-7beba963a51c

Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/48a58b70-a631-4184-811b-7beba963a51c

Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
@xuyushun441-sys xuyushun441-sys marked this pull request as ready for review April 14, 2026 08:46
@xuyushun441-sys xuyushun441-sys merged commit da08548 into main Apr 14, 2026
10 of 14 checks passed
Copilot stopped work on behalf of xuyushun441-sys due to an error April 14, 2026 08:46
@Claude Claude AI requested a review from xuyushun441-sys April 14, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/m tests tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

将 examples/app-host 标准化为 apps/server 以统一应用目录及支持 Docker 发布

2 participants