claude-flow 3.63.1 → 3.63.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/proven-config.json +1 -1
- package/node_modules/@claude-flow/codex/dist/cli.js +0 -0
- package/node_modules/@claude-flow/plugin-agent-federation/dist/bin.js +0 -0
- package/node_modules/@claude-flow/security/dist/input-validator.d.ts +6 -6
- package/package.json +1 -1
- package/v3/@claude-flow/cli/README.md +63 -179
- package/v3/@claude-flow/cli/catalog-manifest.json +5 -5
- package/v3/@claude-flow/cli/dist/src/mcp-tools/http-fetch-tools.js +36 -8
- package/v3/@claude-flow/cli/dist/src/missions/schemas.d.ts +120 -120
- package/v3/@claude-flow/cli/dist/src/mods/command-registry/schema.d.ts +193 -193
- package/v3/@claude-flow/cli/package.json +1 -1
- package/.claude/helpers/.helpers-version +0 -1
- package/.claude/helpers/helpers.manifest.json +0 -13
- package/.claude/settings.local.json +0 -8
- package/v3/@claude-flow/cli/dist/src/ruvector/diskann-backend.d.ts +0 -78
- package/v3/@claude-flow/cli/dist/src/ruvector/diskann-backend.js +0 -310
- package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
- package/v3/@claude-flow/shared/dist/events/event-store.test.js +0 -293
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.js +0 -322
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js +0 -93
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 Hooks System - Export Verification
|
|
3
|
-
*
|
|
4
|
-
* Verifies that all exports are accessible through the public API.
|
|
5
|
-
*
|
|
6
|
-
* @module v3/shared/hooks/verify-exports.test
|
|
7
|
-
*/
|
|
8
|
-
import { describe, it, expect } from 'vitest';
|
|
9
|
-
describe('Hooks Module Exports', () => {
|
|
10
|
-
it('should export all types from main module', async () => {
|
|
11
|
-
const module = await import('./index.js');
|
|
12
|
-
// Enums
|
|
13
|
-
expect(module.HookEvent).toBeDefined();
|
|
14
|
-
expect(module.HookPriority).toBeDefined();
|
|
15
|
-
// Classes
|
|
16
|
-
expect(module.HookRegistry).toBeDefined();
|
|
17
|
-
expect(module.HookExecutor).toBeDefined();
|
|
18
|
-
// Factory functions
|
|
19
|
-
expect(module.createHookRegistry).toBeDefined();
|
|
20
|
-
expect(module.createHookExecutor).toBeDefined();
|
|
21
|
-
});
|
|
22
|
-
it('should export types (type-only imports)', () => {
|
|
23
|
-
expect(true).toBe(true);
|
|
24
|
-
});
|
|
25
|
-
it('should create instances from exported factories', async () => {
|
|
26
|
-
const { createHookRegistry, createHookExecutor } = await import('./index.js');
|
|
27
|
-
const registry = createHookRegistry();
|
|
28
|
-
expect(registry).toBeDefined();
|
|
29
|
-
expect(typeof registry.register).toBe('function');
|
|
30
|
-
expect(typeof registry.unregister).toBe('function');
|
|
31
|
-
const executor = createHookExecutor(registry);
|
|
32
|
-
expect(executor).toBeDefined();
|
|
33
|
-
expect(typeof executor.execute).toBe('function');
|
|
34
|
-
});
|
|
35
|
-
it('should have all 26 hook events defined', async () => {
|
|
36
|
-
const { HookEvent } = await import('./index.js');
|
|
37
|
-
const expectedEvents = [
|
|
38
|
-
'PreToolUse',
|
|
39
|
-
'PostToolUse',
|
|
40
|
-
'PreEdit',
|
|
41
|
-
'PostEdit',
|
|
42
|
-
'PreRead',
|
|
43
|
-
'PostRead',
|
|
44
|
-
'PreWrite',
|
|
45
|
-
'PostWrite',
|
|
46
|
-
'PreCommand',
|
|
47
|
-
'PostCommand',
|
|
48
|
-
'SessionStart',
|
|
49
|
-
'SessionEnd',
|
|
50
|
-
'SessionPause',
|
|
51
|
-
'SessionResume',
|
|
52
|
-
'PreAgentSpawn',
|
|
53
|
-
'PostAgentSpawn',
|
|
54
|
-
'PreAgentTerminate',
|
|
55
|
-
'PostAgentTerminate',
|
|
56
|
-
'PreTaskExecute',
|
|
57
|
-
'PostTaskExecute',
|
|
58
|
-
'PreTaskComplete',
|
|
59
|
-
'PostTaskComplete',
|
|
60
|
-
'PreMemoryStore',
|
|
61
|
-
'PostMemoryStore',
|
|
62
|
-
'PreMemoryRetrieve',
|
|
63
|
-
'PostMemoryRetrieve',
|
|
64
|
-
'OnError',
|
|
65
|
-
'OnWarning',
|
|
66
|
-
];
|
|
67
|
-
for (const event of expectedEvents) {
|
|
68
|
-
expect(HookEvent[event]).toBeDefined();
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
it('should have all 5 priority levels defined', async () => {
|
|
72
|
-
const { HookPriority } = await import('./index.js');
|
|
73
|
-
expect(HookPriority.Critical).toBe(1000);
|
|
74
|
-
expect(HookPriority.High).toBe(500);
|
|
75
|
-
expect(HookPriority.Normal).toBe(0);
|
|
76
|
-
expect(HookPriority.Low).toBe(-500);
|
|
77
|
-
expect(HookPriority.Lowest).toBe(-1000);
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
describe('Hooks Integration with Shared Module', () => {
|
|
81
|
-
it('should be importable from @claude-flow/shared', async () => {
|
|
82
|
-
// This would be the actual import path in production
|
|
83
|
-
const module = await import('../index.js');
|
|
84
|
-
// Verify hooks are exported from main shared module
|
|
85
|
-
expect(module.HookEvent).toBeDefined();
|
|
86
|
-
expect(module.HookPriority).toBeDefined();
|
|
87
|
-
expect(module.HookRegistry).toBeDefined();
|
|
88
|
-
expect(module.HookExecutor).toBeDefined();
|
|
89
|
-
expect(module.createHookRegistry).toBeDefined();
|
|
90
|
-
expect(module.createHookExecutor).toBeDefined();
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
//# sourceMappingURL=verify-exports.test.js.map
|