From 664777fc2bd52eb5ce068d00e569fbc2258303aa Mon Sep 17 00:00:00 2001 From: AlkaidSTART <2595006848@qq.com> Date: Sun, 23 Aug 2026 16:19:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E5=B0=86=20.DS=5FStore=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=88=B0=20.gitignore=EF=BC=8C=E4=BB=A5=E9=81=BF?= =?UTF-8?q?=E5=85=8D=20macOS=20=E7=94=9F=E6=88=90=E7=9A=84=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=B9=B2=E6=89=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index b986d75..b517a53 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ bundle.* docs/* !docs/call-code-architecture.html !docs/call-code-architecture.png +.DS_Store # macOS \ No newline at end of file From b650b9df162f0b974fdb794043adfdab1a899b13 Mon Sep 17 00:00:00 2001 From: AlkaidSTART <2595006848@qq.com> Date: Sun, 23 Aug 2026 16:32:32 +0800 Subject: [PATCH 2/2] =?UTF-8?q?ci:=20=E5=B0=86=E6=9E=B6=E6=9E=84=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=8F=91=E5=B8=83=E5=88=B0=20gh-pages=20=E5=B9=B6?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=9D=99=E6=80=81=E4=BC=9A=E8=AF=9D=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-gh-pages.yml | 15 ++------------- .github/workflows/pages.yml | 15 ++------------- README.md | 14 +++++++------- docs/call-code-architecture.html | 26 ++------------------------ packages/agent-core/src/web/export.ts | 6 +++--- packages/client/README.md | 14 +++++++------- source/app.tsx | 2 +- tests/web-export.spec.ts | 2 +- 8 files changed, 25 insertions(+), 69 deletions(-) diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index c470683..0afdc00 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -1,4 +1,4 @@ -name: Deploy to gh-pages +name: Deploy docs to gh-pages on: push: @@ -14,21 +14,10 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Setup Bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.3.11 - - - name: Install dependencies - run: bun install --frozen-lockfile - - - name: Build client - run: bun run build:client - - name: Deploy to gh-pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: packages/client/dist + publish_dir: docs publish_branch: gh-pages force_orphan: true diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 8b298d0..9b8d938 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,4 +1,4 @@ -name: Deploy Client to GitHub Pages +name: Deploy Docs to GitHub Pages on: push: @@ -19,21 +19,10 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Setup Bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.3.11 - - - name: Install dependencies - run: bun install --frozen-lockfile - - - name: Build client - run: bun run build:client - - name: Deploy to gh-pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: packages/client/dist + publish_dir: docs publish_branch: gh-pages force_orphan: true diff --git a/README.md b/README.md index 4b1e340..235fdef 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ call-code 是一个本地运行的终端编程 Agent(CLI coding agent),基 - 本地记忆:短期记忆按任务保存,长期记忆按主题沉淀,仅在进程内使用,不写入本地 JSON。 - 上下文预算:运行时基于 token 估算对历史消息做裁剪,减少超出模型上下文的风险。 - 会话持久化:基于 Node 内置 `node:sqlite` 保存会话、条目、泳道、分支、记录、统计、事实和租约,默认写入 `.agent-sessions/sessions.db`。 -- 会话展示端:`packages/client` 提供 React + Vite 静态页面,可把会话数据导出为 JSON 后部署到 GitHub Pages。 +- 会话客户端:`packages/client` 提供 React + Vite 会话界面,静态展示已停止,后续用于实时对话展示。 ## 架构 @@ -55,7 +55,7 @@ OpenAI-compatible LLM 模型层 call-code 架构图

-交互式版本见 [docs/call-code-architecture.html](docs/call-code-architecture.html),可明暗主题切换、搜索、关系高亮与节点聚焦,直接在浏览器打开。 +交互式版本见 [docs/call-code-architecture.html](docs/call-code-architecture.html),可明暗主题切换、搜索、关系高亮与节点聚焦,直接在浏览器打开。`docs/` 目录会由 GitHub Actions 发布到 `gh-pages` 分支。 运行时核心流程: @@ -86,8 +86,8 @@ packages/ utils/ # shell 与文本截断等工具 types/ # 领域类型 utils/ # JSON、日志工具 - web/ # GitHub Pages 客户端数据导出 - client/ # TypeScript + React 会话历史界面,可部署到 GitHub Pages + web/ # 会话数据导出 + client/ # TypeScript + React 会话界面客户端 session-sqlite/ # 基于 node:sqlite 的会话历史与运行状态存储 tests/ # 项目统一单元测试 vitest.config.ts # Vitest 测试配置 @@ -136,7 +136,7 @@ bun dev /pages 打开相关页面选择 /memory 查看 memory 概览 /status 查看当前 CLI 状态 -/export 导出会话数据到 GitHub Pages 客户端 +/export 导出会话数据到 JSON 文件 /mode 查看当前模式和阶段 /plan 切换到 PLAN 模式 /build 切换到 BUILD 模式 @@ -170,10 +170,10 @@ bun run test # 构建 agent-core bun run build:agent-core -# 导出会话历史到 packages/client/public/data.json +# 导出会话数据到 packages/client/public/data.json bun run export:web -# 构建 GitHub Pages 客户端 +# 构建会话客户端(本地预览用) bun run build:client ``` diff --git a/docs/call-code-architecture.html b/docs/call-code-architecture.html index 879a330..9ac4637 100644 --- a/docs/call-code-architecture.html +++ b/docs/call-code-architecture.html @@ -4841,7 +4841,7 @@

call-code 架构

- +