mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
test(ruflo-console): tool.list fixture uses the ruflo-core plugin MCP prefix (audit-plugin-mcp-prefix)
Co-Authored-By: RuFlo <ruv@ruv.net>
This commit is contained in:
1 parent
e1723ef825
commit
cc56d6470f
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -111,7 +111,7 @@ export function worldOf(on: On, files: Readonly<Record<string, string>>, options
|
||||
on('env.get', ($, e) => (refuse ? { deny: 'env withheld' } : { value: e.name === 'HOME' ? HOME : undefined }))
|
||||
on('settings.read', () => (refuse ? { deny: 'settings withheld' } : { value: { enabledPlugins: { 'ruflo-core@ruflo': true } } as never }))
|
||||
on('session.usage', () => (refuse ? { deny: 'usage withheld' } : { value: { context: { tokens: 50_000, window: 200_000, percent: 25 }, rateLimits: [], cost: { usd: 0.4213 } } as never }))
|
||||
on('tool.list', () => (refuse ? { deny: 'tools withheld' } : { value: [{ name: 'mcp__claude-flow__swarm_init' }, { name: 'mcp__claude-flow__claims_board' }, { name: 'Read' }] as never }))
|
||||
on('tool.list', () => (refuse ? { deny: 'tools withheld' } : { value: [{ name: 'mcp__plugin_ruflo-core_ruflo__swarm_init' }, { name: 'mcp__plugin_ruflo-core_ruflo__claims_board' }, { name: 'Read' }] as never }))
|
||||
on('store.get', ($, e) => (refuse ? { deny: 'store withheld' } : { value: world.stored.get(e.key) }))
|
||||
on('store.set', ($, e) => {
|
||||
if (refuse) return { deny: 'store withheld' }
|
||||
|
||||
@@ -44,7 +44,7 @@ describe('views', () => {
|
||||
expect(rasters).toEqual(['header', 'activity'])
|
||||
expect(text).toContain('v3.50.0 (npx-offline)')
|
||||
expect(text).toContain('running per daemon-state.json')
|
||||
expect(text).toContain('1 ruflo server connected (claude-flow) · 2 tools callable now')
|
||||
expect(text).toContain('1 ruflo server connected (plugin_ruflo-core_ruflo) · 2 tools callable now')
|
||||
expect(text).toContain('manifest v3.32.24')
|
||||
expect(text).toContain('seated · policy observe · routed 4')
|
||||
expect(text).toContain('swarm-1790903031804-y9rnjr · hierarchical · running · 2 agents')
|
||||
|
||||
Reference in new issue
Block a user