feat: add native result-file delivery

This commit is contained in:
xmanrui 2026-08-23 20:02:06 +08:00
parent 2803bbcbab
commit d472dd5a75
65 changed files with 10205 additions and 255 deletions

View file

@ -66,7 +66,14 @@ test('production assembly keeps secrets in credentials and creates per-bot runti
});
assert.ok(runtime instanceof Runtime);
assert.equal(seen.runtimeOptions.clientSecret, 'host-only-secret');
assert.equal(Object.hasOwn(seen.runtimeOptions, 'outboundArtifactsEnabled'), false);
assert.match(seen.statePath, /dt_abc\/state\.json$/);
await seen.controllerOptions.createRuntime({
botId: 'dt_disabled',
config: { botId: 'dt_disabled', clientId: 'dingdisabled' },
clientSecret: 'host-only-secret',
});
assert.equal(Object.hasOwn(seen.runtimeOptions, 'outboundArtifactsEnabled'), false);
await production.close();
assert.equal(seen.supervisorClosed, true);
@ -93,6 +100,7 @@ test('production assembly keeps secrets in credentials and creates per-bot runti
config: { botId: 'dt_new', clientId: 'dingnew' },
clientSecret: 'host-only-secret',
});
assert.equal(Object.hasOwn(seen.runtimeOptions, 'outboundArtifactsEnabled'), false);
const stored = JSON.parse(await readFile(join(directory, 'workspaces.json'), 'utf8'));
assert.equal(stored.agentPresets.dt_new, 'router-standard');
assert.equal(Object.hasOwn(stored.agentPresets, 'dt_abc'), false);