5分钟策划agent (#159)
Project CI / Repository checks (push) Successful in 3m54s
Project CI / Frontend tests (push) Successful in 4m20s
Project CI / Backend tests (push) Successful in 4m33s
Project CI / Native shell tests (push) Successful in 16m31s

Co-authored-by: 段舒康 <kdletters@qq.com>
Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/159
Co-authored-by: Linghong <ink29535@proton.me>
Co-committed-by: Linghong <ink29535@proton.me>
This commit was merged in pull request #159.
This commit is contained in:
2026-08-24 21:44:44 +08:00
committed by 段舒康
parent 532c6d51fd
commit 3d8e0211db
173 changed files with 50484 additions and 1704 deletions
@@ -9,10 +9,7 @@ import {
describe('普通图片 assetKind 清理脚本', () => {
it('默认 dry-run 并要求调用方显式选择 apply', () => {
expect(
parseOptions(
['--database', 'genarrative-prod', '--server', 'prod'],
{},
),
parseOptions(['--database', 'genarrative-prod', '--server', 'prod'], {}),
).toMatchObject({
apply: false,
chunkSize: 25,
@@ -102,13 +99,15 @@ describe('普通图片 assetKind 清理脚本', () => {
for (let index = 1; index < calls.length; index += 2) {
expect(calls[index]?.expected_batch_sha_256).toEqual([
0,
String(calls[index - 1]?.scope === 'asset'
? 'a'
: calls[index - 1]?.scope === 'project-resource'
? 'b'
: calls[index - 1]?.scope === 'showcase'
? 'c'
: 'd').repeat(64),
String(
calls[index - 1]?.scope === 'asset'
? 'a'
: calls[index - 1]?.scope === 'project-resource'
? 'b'
: calls[index - 1]?.scope === 'showcase'
? 'c'
: 'd',
).repeat(64),
]);
}
});
@@ -188,10 +187,7 @@ describe('普通图片 assetKind 清理脚本', () => {
let message = '';
try {
await scanScopes(
{ chunkSize: 25 },
{ callProcedure: loopingCall },
);
await scanScopes({ chunkSize: 25 }, { callProcedure: loopingCall });
} catch (error) {
message = error instanceof Error ? error.message : String(error);
}