feat: assistant IA — approbation groupee des actions, bloc d'etapes, refresh UI et bouton Stop (BUG-074, BUG-075, BUG-076, BUG-077)
This commit is contained in:
@@ -333,8 +333,13 @@ test("bookslm.js reports the edited document and the assistant writes", () => {
|
||||
assert.match(bookslmSrc, /this\._notifyFileWritten\(data\);/);
|
||||
const notify = bookslmSrc.match(/_notifyFileWritten\(data\) \{([\s\S]*?)\n \}/);
|
||||
assert.ok(notify, "_notifyFileWritten not found");
|
||||
for (const tool of ["edit_file", "append_to_file", "create_file", "restore_backup"]) {
|
||||
assert.ok(notify[1].includes(`'${tool}'`), `${tool} missing from the write tools`);
|
||||
// BUG-076: the write-tool list is a module-level set (documents included).
|
||||
assert.match(notify[1], /FILE_WRITE_TOOLS\.has\(data\.name\)/);
|
||||
const writeSet = bookslmSrc.match(/const FILE_WRITE_TOOLS = new Set\(\[([\s\S]*?)\]\);/);
|
||||
assert.ok(writeSet, "FILE_WRITE_TOOLS not found");
|
||||
for (const tool of ["edit_file", "append_to_file", "create_file", "restore_backup",
|
||||
"create_xlsx", "create_docx", "create_csv", "create_pdf"]) {
|
||||
assert.ok(writeSet[1].includes(`'${tool}'`), `${tool} missing from the write tools`);
|
||||
}
|
||||
assert.match(notify[1], /new CustomEvent\('obsigate:file-written'/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user