Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(headless): refreeze Claude profile after runtime pin update

MagicLizie588d2550567
diff --git a/apps/cindy-headless/profiles/cindy-production-claude/profile.lock.json b/apps/cindy-headless/profiles/cindy-production-claude/profile.lock.json
index 52917559d2..e6632c89ec 100644
--- a/apps/cindy-headless/profiles/cindy-production-claude/profile.lock.json
+++ b/apps/cindy-headless/profiles/cindy-production-claude/profile.lock.json
@@ -6,9 +6,9 @@
"cindy-production-cc"
],
"profileFile": "profile.example.json",
- "profileFileSha256": "cdcc4f7e72edc612003d18d6a62bcc9656d9770ae770d33e12c3151f68bebed3",
- "profileDigest": "60fbb73363327fac9906df702fbbbdb28eec2095e2d3c645df10f54fb2364a5d",
+ "profileFileSha256": "c4e523ac7267a53b711318fa8006799149fdf709732e2111ec2f5f064495f334",
+ "profileDigest": "042bdbdd0b35e27dd93584f34fd722fba970399b963e6e0faf59913e4f12527b",
"systemPromptDigest": "b5a12214b75db6628f1e619f170af54fb14b0702934620b4dbfc66b12380f879",
- "agentBinaryVersion": "2.1.280",
+ "agentBinaryVersion": "2.1.296",
"cindyUpstreamCommit": "fa3fc88d37d205ea993a67d85612fa9a5436fae5"
}
diff --git a/apps/cindy-headless/src/production-profile-parity.test.ts b/apps/cindy-headless/src/production-profile-parity.test.ts
index d0c9134c3d..22235e1e2a 100644
--- a/apps/cindy-headless/src/production-profile-parity.test.ts
+++ b/apps/cindy-headless/src/production-profile-parity.test.ts
@@ -1,8 +1,17 @@
import { readFile, readdir } from 'node:fs/promises';
import path from 'node:path';
import { describe, expect, it } from 'vitest';
+import { readProfile } from './profile';
describe('example profiles match the packaged runtime pins', () => {
+ it.each(['cindy-production-claude', 'cindy-production-pi'])('loads the frozen %s profile with its committed lock', async (directory) => {
+ const profilePath = path.resolve('profiles', directory, 'profile.example.json');
+ const lock = JSON.parse(await readFile(path.resolve('profiles', directory, 'profile.lock.json'), 'utf8'));
+ expect(lock.profileFile).toBe(path.basename(profilePath));
+ const resolved = await readProfile(profilePath);
+ expect(resolved.profile.id).toBe(directory);
+ });
+
it('keeps every example and smoke profile aligned with the repository runtime versions', async () => {
const tools = { 'claude-code': 'claude', codex: 'codex', pi: 'pi' } as const;
const versions = Object.fromEntries(await Promise.all(Object.entries(tools).map(async ([backend, tool]) => {