mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 06:30:45 +08:00
feat: add agent preset chat commands
This commit is contained in:
parent
2ad6f1a44e
commit
eea29fe296
33 changed files with 1519 additions and 234 deletions
|
|
@ -185,9 +185,19 @@ test('all nine production channels use channel presets only as bot creation defa
|
|||
);
|
||||
assert.match(
|
||||
source,
|
||||
/agentPresetCatalog:\s*\(\)\s*=>\s*listAgentPresetCatalog\(ctx\)/,
|
||||
/const agentPresetCatalog\s*=\s*\(\)\s*=>\s*listAgentPresetCatalog\(ctx\)/,
|
||||
`${path} must read the Host preset catalog dynamically`,
|
||||
);
|
||||
assert.match(
|
||||
source,
|
||||
/createBotWorkspaceScope\([^;]*agentPresetCatalog[^;]*\)/,
|
||||
`${path} must expose the same dynamic catalog to bot commands`,
|
||||
);
|
||||
assert.match(
|
||||
source,
|
||||
/createWorkspaceAwareController\([^;]*agentPresetCatalog,?[^;]*\)/,
|
||||
`${path} must expose the same dynamic catalog to RPC updates`,
|
||||
);
|
||||
}
|
||||
|
||||
for (const channel of ['telegram', 'discord']) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue