resolve residual registry and persona numbering paths
This commit is contained in:
parent
64f6736209
commit
5e7171eaba
15 changed files with 307 additions and 83 deletions
|
|
@ -20,9 +20,9 @@ const repositories = JSON.parse(
|
|||
);
|
||||
|
||||
const registrations = [
|
||||
{ canonicalId: "CHENGLU-AGENT-001", aliases: [] },
|
||||
{ canonicalId: "ICE-P-CL0720", aliases: ["CHENGLU-AGENT-001"] },
|
||||
{ canonicalId: "ICE-P-GD0720", aliases: ["GUIDENG-AGENT-001"] },
|
||||
{ canonicalId: "ICE-GL-KZ-001", aliases: [] },
|
||||
{ canonicalId: "ICE-P-KZ0720", aliases: ["ICE-GL-KZ-001"] },
|
||||
];
|
||||
for (const registration of registrations) {
|
||||
const subject = subjects.subjects.find((candidate) => candidate.id === registration.canonicalId);
|
||||
|
|
@ -50,6 +50,7 @@ for (const registration of registrations) {
|
|||
for (const code of ["REPO-009", "REPO-010", "REPO-011"]) {
|
||||
const allRepositories = [
|
||||
...(repositories.historical_repositories || []),
|
||||
...(repositories.private_persona_repositories || []),
|
||||
...(repositories.repositories || []),
|
||||
];
|
||||
const repository = allRepositories.find(
|
||||
|
|
@ -59,8 +60,11 @@ for (const code of ["REPO-009", "REPO-010", "REPO-011"]) {
|
|||
assert.equal(repository.controller, "ICE-P-ZY001");
|
||||
assert.equal(
|
||||
repository.state,
|
||||
"CURRENT_PRIVATE_PERSONA_HISTORY_AND_DAILY_ROLE_MEMORY_PENDING_DEPLOYMENT",
|
||||
"CURRENT_PRIVATE_HISTORY_ACTIVE_DAILY_ROLE_MEMORY_DEPLOYED",
|
||||
);
|
||||
assert.equal(repository.code_channel_push_allowed, false);
|
||||
assert.equal(repository.scheduled_persona_memory_write_allowed, true);
|
||||
assert.equal(repository.deployment_source_allowed, false);
|
||||
assert.match(repository.primary.url, /\/code\/bingshuo\//);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue