feat(tools): add minio ingestion into memory namespaces
This commit is contained in:
@@ -17,6 +17,8 @@ const ALL_TOOL_NAMES = [
|
||||
'memory.read',
|
||||
'memory.write',
|
||||
'memory.search',
|
||||
'minio.share',
|
||||
'minio.ingest',
|
||||
'process.start',
|
||||
'process.status',
|
||||
'process.output',
|
||||
@@ -480,6 +482,19 @@ describe('ToolPolicy', () => {
|
||||
expect(names).toContain('file.read'); // from minimal
|
||||
});
|
||||
|
||||
it('expands group:minio', () => {
|
||||
const policy = new ToolPolicy(defaultConfig({
|
||||
profile: 'minimal',
|
||||
allow: ['group:minio'],
|
||||
}));
|
||||
const result = policy.filterTools(ALL_TOOLS);
|
||||
const names = result.map(t => t.name);
|
||||
expect(names).toContain('minio.share');
|
||||
expect(names).toContain('minio.ingest');
|
||||
expect(names).toContain('file.read');
|
||||
expect(names).not.toContain('shell.exec');
|
||||
});
|
||||
|
||||
it('unknown group name passes through as literal', () => {
|
||||
const policy = new ToolPolicy(defaultConfig({
|
||||
profile: 'minimal',
|
||||
|
||||
Reference in New Issue
Block a user