mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 04:13:17 +08:00
feat: add unified IM access policies
This commit is contained in:
parent
075d2713c1
commit
840e5aa857
89 changed files with 5573 additions and 1676 deletions
|
|
@ -286,9 +286,11 @@ test('all nine production channels use channel presets only as bot creation defa
|
|||
for (const path of PRODUCTION_FILES) {
|
||||
const source = await readFile(new URL(`../${path}`, import.meta.url), 'utf8');
|
||||
assert.doesNotMatch(source, /\bagentPreset:\s*config\.agentPreset/, path);
|
||||
const creationDefaults = source.match(
|
||||
/workspaces\.ensure\([^;]*\{\s*defaultAgentPreset:\s*config\.agentPreset,?\s*\}\)/g,
|
||||
) ?? [];
|
||||
const creationDefaults = (source.match(
|
||||
/workspaces\.ensure\((?:(?!workspaces\.ensure)[\s\S])*?\n\s*\}\)/g,
|
||||
) ?? []).filter((call) => (
|
||||
/\bdefaultAgentPreset:\s*config\.agentPreset\b/.test(call)
|
||||
));
|
||||
assert.equal(
|
||||
creationDefaults.length,
|
||||
2,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue