feat: advance browser agent integration workflows

This commit is contained in:
go0p
2026-08-06 15:11:35 +08:00
committed by go0p
parent af5a4db694
commit 0c8e1c7b69
215 changed files with 35137 additions and 5442 deletions
@@ -92,6 +92,19 @@ function describe(
Boolean(callableKind),
roles[index] === 'options' ? options.summary : undefined,
)),
inputEvidence() {
const evidence = toolkit.collectEvidence(args[0], '$input');
for (let index = 1; index < Math.min(args.length, roles.length); index += 1) {
const role = roles[index];
if (role === 'options') {
const iv = ownValue(args[index], 'iv');
if (iv !== undefined) evidence.push(...toolkit.collectEvidence(iv, '$input.iv'));
continue;
}
if (role !== 'unknown') evidence.push(...toolkit.collectEvidence(args[index], `$input.${role}`));
}
return evidence.slice(0, 48);
},
outputEvidence(value) {
const output = toolkit.defaultOutputEvidence(value);
if (!value || (typeof value !== 'object' && typeof value !== 'function') || output.length >= 48) return output;