@claude-flow/security 3.0.0-alpha.7 → 3.0.0-alpha.9
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-flow/data/pending-insights.jsonl +6 -0
- package/.claude-flow/neural/stats.json +6 -0
- package/README.md +292 -234
- package/__tests__/acceptance/security-compliance.test.ts +674 -674
- package/__tests__/authorization-propagator.test.ts +155 -0
- package/__tests__/credential-generator.test.ts +310 -310
- package/__tests__/fixtures/configurations.ts +425 -425
- package/__tests__/fixtures/index.ts +21 -21
- package/__tests__/helpers/create-mock.ts +469 -469
- package/__tests__/helpers/index.ts +32 -32
- package/__tests__/input-validator.test.ts +382 -382
- package/__tests__/integration/security-flow.test.ts +606 -606
- package/__tests__/password-hasher.test.ts +239 -239
- package/__tests__/path-validator.test.ts +302 -302
- package/__tests__/plugin-integrity-verifier.test.ts +199 -0
- package/__tests__/safe-executor.test.ts +292 -292
- package/__tests__/token-generator.test.ts +371 -371
- package/__tests__/tool-output-guardrail.test.ts +256 -0
- package/__tests__/unit/credential-generator.test.ts +182 -182
- package/__tests__/unit/password-hasher.test.ts +359 -359
- package/__tests__/unit/path-validator.test.ts +509 -509
- package/__tests__/unit/safe-executor.test.ts +667 -667
- package/__tests__/unit/token-generator.test.ts +310 -310
- package/dist/authorization/propagator.d.ts +148 -0
- package/dist/authorization/propagator.d.ts.map +1 -0
- package/dist/authorization/propagator.js +182 -0
- package/dist/authorization/propagator.js.map +1 -0
- package/dist/credential-generator.js +9 -9
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/plugins/integrity-verifier.d.ts +125 -0
- package/dist/plugins/integrity-verifier.d.ts.map +1 -0
- package/dist/plugins/integrity-verifier.js +186 -0
- package/dist/plugins/integrity-verifier.js.map +1 -0
- package/dist/tool-output-guardrail.d.ts +126 -0
- package/dist/tool-output-guardrail.d.ts.map +1 -0
- package/dist/tool-output-guardrail.js +257 -0
- package/dist/tool-output-guardrail.js.map +1 -0
- package/package.json +27 -27
- package/ruvector.db +0 -0
- package/src/CVE-REMEDIATION.ts +251 -251
- package/src/application/index.ts +10 -10
- package/src/application/services/security-application-service.ts +193 -193
- package/src/authorization/propagator.ts +279 -0
- package/src/credential-generator.ts +368 -368
- package/src/domain/entities/security-context.ts +173 -173
- package/src/domain/index.ts +17 -17
- package/src/domain/services/security-domain-service.ts +296 -296
- package/src/index.ts +314 -271
- package/src/input-validator.ts +466 -466
- package/src/password-hasher.ts +277 -277
- package/src/path-validator.ts +525 -525
- package/src/plugins/integrity-verifier.ts +265 -0
- package/src/safe-executor.ts +546 -546
- package/src/token-generator.ts +463 -463
- package/src/tool-output-guardrail.ts +360 -0
- package/tsconfig.json +9 -9
- package/tsconfig.tsbuildinfo +1 -1
- package/vitest.config.ts +20 -20
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test Helpers Index
|
|
3
|
-
*
|
|
4
|
-
* Re-exports all testing utilities for the security module.
|
|
5
|
-
*
|
|
6
|
-
* @module v3/security/__tests__/helpers
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
createMock,
|
|
11
|
-
createPartialMock,
|
|
12
|
-
createSpy,
|
|
13
|
-
createMockPasswordHasher,
|
|
14
|
-
createMockCredentialGenerator,
|
|
15
|
-
createMockPathValidator,
|
|
16
|
-
createMockSafeExecutor,
|
|
17
|
-
createMockTokenGenerator,
|
|
18
|
-
createMockInputValidator,
|
|
19
|
-
resetMock,
|
|
20
|
-
clearMock,
|
|
21
|
-
restoreMock,
|
|
22
|
-
expectCalledWith,
|
|
23
|
-
expectCalledTimes,
|
|
24
|
-
type MockedInterface,
|
|
25
|
-
type DeepMockedInterface,
|
|
26
|
-
type MockPasswordHasher,
|
|
27
|
-
type MockCredentialGenerator,
|
|
28
|
-
type MockPathValidator,
|
|
29
|
-
type MockSafeExecutor,
|
|
30
|
-
type MockTokenGenerator,
|
|
31
|
-
type MockInputValidator,
|
|
32
|
-
} from './create-mock.js';
|
|
1
|
+
/**
|
|
2
|
+
* Test Helpers Index
|
|
3
|
+
*
|
|
4
|
+
* Re-exports all testing utilities for the security module.
|
|
5
|
+
*
|
|
6
|
+
* @module v3/security/__tests__/helpers
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
createMock,
|
|
11
|
+
createPartialMock,
|
|
12
|
+
createSpy,
|
|
13
|
+
createMockPasswordHasher,
|
|
14
|
+
createMockCredentialGenerator,
|
|
15
|
+
createMockPathValidator,
|
|
16
|
+
createMockSafeExecutor,
|
|
17
|
+
createMockTokenGenerator,
|
|
18
|
+
createMockInputValidator,
|
|
19
|
+
resetMock,
|
|
20
|
+
clearMock,
|
|
21
|
+
restoreMock,
|
|
22
|
+
expectCalledWith,
|
|
23
|
+
expectCalledTimes,
|
|
24
|
+
type MockedInterface,
|
|
25
|
+
type DeepMockedInterface,
|
|
26
|
+
type MockPasswordHasher,
|
|
27
|
+
type MockCredentialGenerator,
|
|
28
|
+
type MockPathValidator,
|
|
29
|
+
type MockSafeExecutor,
|
|
30
|
+
type MockTokenGenerator,
|
|
31
|
+
type MockInputValidator,
|
|
32
|
+
} from './create-mock.js';
|