chatccc 0.2.266 → 0.2.268

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,6 +100,7 @@ export function createEmptyStreamState(sessionId, cwd, tool, turnCount) {
100
100
  status: "running",
101
101
  accumulatedContent: "",
102
102
  finalReply: "",
103
+ transcript: [],
103
104
  activity: createAgentActivityTracker(now).activity,
104
105
  chunkCount: 0,
105
106
  turnCount,
@@ -17,6 +17,7 @@ import { AGENT_TEAM_PAGE_HTML } from "./agent-team/web/agent-team-page.js";
17
17
  export { AGENT_TEAM_PAGE_HTML } from "./agent-team/web/agent-team-page.js";
18
18
  import { buildWebUiUrl, createInternalRestartEnv, openWebUiInDefaultBrowser, } from "./startup-lifecycle.js";
19
19
  import { engineManager } from "./engines/engine-specs.js";
20
+ import { isSafeMaintenanceAdmissionClosed } from "./safe-maintenance.js";
20
21
  const PROJECT_ROOT = CHATCCC_PACKAGE_ROOT;
21
22
  const USER_DATA_DIR = join(homedir(), ".chatccc");
22
23
  const CONFIG_FILE = join(USER_DATA_DIR, "config.json");
@@ -656,6 +657,10 @@ async function handleEngineStatus(engineId, res) {
656
657
  }
657
658
  }
658
659
  async function handleEngineInstall(engineId, res) {
660
+ if (isSafeMaintenanceAdmissionClosed()) {
661
+ jsonReply(res, 409, { ok: false, error: "ChatCCC 正在等待安全维护,暂不接受新的依赖安装任务。" });
662
+ return;
663
+ }
659
664
  try {
660
665
  jsonReply(res, 202, { ok: true, job: await engineManager.startInstall(engineId) });
661
666
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatccc",
3
- "version": "0.2.266",
3
+ "version": "0.2.268",
4
4
  "description": "Feishu bot bridge for Claude Code",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",