@devshub198211/devguard 2.0.1
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/CHANGELOG.md +35 -0
- package/LICENSE +21 -0
- package/README.md +207 -0
- package/dist/ai.cjs +867 -0
- package/dist/ai.d.cts +169 -0
- package/dist/ai.d.ts +169 -0
- package/dist/ai.js +2 -0
- package/dist/api-contract-5kJEwFIh.d.cts +157 -0
- package/dist/api-contract-5kJEwFIh.d.ts +157 -0
- package/dist/auth.cjs +787 -0
- package/dist/auth.d.cts +245 -0
- package/dist/auth.d.ts +245 -0
- package/dist/auth.js +1 -0
- package/dist/chunk-3SMY53XX.js +747 -0
- package/dist/chunk-4WCL5IUZ.js +493 -0
- package/dist/chunk-6IXDDYYA.js +345 -0
- package/dist/chunk-D7GNA6TS.js +611 -0
- package/dist/chunk-KSFZPDFO.js +366 -0
- package/dist/chunk-MT3VUCLS.js +35 -0
- package/dist/cli.cjs +1162 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +270 -0
- package/dist/dx.cjs +747 -0
- package/dist/dx.d.cts +96 -0
- package/dist/dx.d.ts +96 -0
- package/dist/dx.js +2 -0
- package/dist/index.cjs +2655 -0
- package/dist/index.d.cts +38 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +6 -0
- package/dist/security.cjs +654 -0
- package/dist/security.d.cts +114 -0
- package/dist/security.d.ts +114 -0
- package/dist/security.js +1 -0
- package/package.json +96 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export { HookFinding, LockfileEntry, LockfileReport, LockfileSnapshot, PinViolation, RotationResult, SRICheck, ScanRule, TokenConfig, TokenStatus, autoPin, checkTokenAge, createNpmToken, createSnapshot, enforceExactPins, extractLockfileSRI, extractTransitiveDeps, fetchRegistrySRI, hashFile, inspectGitHubToken, inspectNpmToken, loadTokensFromEnv, maskToken, scanNodeModules, scanPackage, scanProject, verifyLockfile, verifySRI } from './security.cjs';
|
|
2
|
+
export { AgentMemory, BudgetConfig, FileSystemAdapter, LLMBudget, LLMUsage, MCPPrompt, MCPResource, MCPServerBuilder, MCPTool, MCPToolSchema, MemoryAdapter, MemoryEntry, ParseResult, RedisAdapter, ParseResult as SchemaParseResult, cleanLLMOutput, parseSchema, parseWithRetry } from './ai.cjs';
|
|
3
|
+
export { AnomalyReport, AuthenticationOptions, BotScore, ChallengeStore, CredentialStore, IPRateLimiter, JWKSKey, JWTPayload, JWTVerifier, MiddlewareOptions, RPConfig, RegistrationOptions, RequestFingerprint, RevocationList, StoredCredential, VerificationResult, VerifyResult, createMiddleware, decodeJWT, detectAnomalies, fetchJWKS, generateAuthenticationOptions, generateRegistrationOptions, jwksCacheUtils, scoreRequest, signHMAC, verifyAuthentication, verifyHMAC, verifyRS256, verifyRegistration } from './auth.cjs';
|
|
4
|
+
export { EnvSchema, FieldSpec, FieldType, LogLevel, LogOutput, LogRecord, Logger, LoggerOptions, OTLPConfig, ParsedEnv, createLogger, generateExample, loadDotenvFile, loadEnv, parseDotenv, parseEnv } from './dx.cjs';
|
|
5
|
+
export { P as ContractParseResult, I as Infer, I as InferSchemaType, S as Schema, V as ValidationError, c, c as s, t as typedFetch, v as validateBody, a as validateQuery } from './api-contract-5kJEwFIh.cjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* devguard v2.0.0 — Single package. 14 features. Zero external dependencies.
|
|
9
|
+
*
|
|
10
|
+
* import { runAllChecks, verifyLockfile, LLMBudget, AgentMemory, ... } from 'devguard'
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
interface DevGuardReport {
|
|
14
|
+
lockfile: {
|
|
15
|
+
valid: boolean;
|
|
16
|
+
tampered: string[];
|
|
17
|
+
missing: string[];
|
|
18
|
+
};
|
|
19
|
+
hooks: {
|
|
20
|
+
count: number;
|
|
21
|
+
criticals: number;
|
|
22
|
+
findings: any[];
|
|
23
|
+
};
|
|
24
|
+
pins: {
|
|
25
|
+
unpinned: string[];
|
|
26
|
+
autoFixAvailable: boolean;
|
|
27
|
+
};
|
|
28
|
+
tokens: {
|
|
29
|
+
stale: string[];
|
|
30
|
+
expiringSoon: string[];
|
|
31
|
+
};
|
|
32
|
+
passedAll: boolean;
|
|
33
|
+
score: number;
|
|
34
|
+
scannedAt: string;
|
|
35
|
+
}
|
|
36
|
+
declare function runAllChecks(root?: string): Promise<DevGuardReport>;
|
|
37
|
+
|
|
38
|
+
export { type DevGuardReport, runAllChecks };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export { HookFinding, LockfileEntry, LockfileReport, LockfileSnapshot, PinViolation, RotationResult, SRICheck, ScanRule, TokenConfig, TokenStatus, autoPin, checkTokenAge, createNpmToken, createSnapshot, enforceExactPins, extractLockfileSRI, extractTransitiveDeps, fetchRegistrySRI, hashFile, inspectGitHubToken, inspectNpmToken, loadTokensFromEnv, maskToken, scanNodeModules, scanPackage, scanProject, verifyLockfile, verifySRI } from './security.js';
|
|
2
|
+
export { AgentMemory, BudgetConfig, FileSystemAdapter, LLMBudget, LLMUsage, MCPPrompt, MCPResource, MCPServerBuilder, MCPTool, MCPToolSchema, MemoryAdapter, MemoryEntry, ParseResult, RedisAdapter, ParseResult as SchemaParseResult, cleanLLMOutput, parseSchema, parseWithRetry } from './ai.js';
|
|
3
|
+
export { AnomalyReport, AuthenticationOptions, BotScore, ChallengeStore, CredentialStore, IPRateLimiter, JWKSKey, JWTPayload, JWTVerifier, MiddlewareOptions, RPConfig, RegistrationOptions, RequestFingerprint, RevocationList, StoredCredential, VerificationResult, VerifyResult, createMiddleware, decodeJWT, detectAnomalies, fetchJWKS, generateAuthenticationOptions, generateRegistrationOptions, jwksCacheUtils, scoreRequest, signHMAC, verifyAuthentication, verifyHMAC, verifyRS256, verifyRegistration } from './auth.js';
|
|
4
|
+
export { EnvSchema, FieldSpec, FieldType, LogLevel, LogOutput, LogRecord, Logger, LoggerOptions, OTLPConfig, ParsedEnv, createLogger, generateExample, loadDotenvFile, loadEnv, parseDotenv, parseEnv } from './dx.js';
|
|
5
|
+
export { P as ContractParseResult, I as Infer, I as InferSchemaType, S as Schema, V as ValidationError, c, c as s, t as typedFetch, v as validateBody, a as validateQuery } from './api-contract-5kJEwFIh.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* devguard v2.0.0 — Single package. 14 features. Zero external dependencies.
|
|
9
|
+
*
|
|
10
|
+
* import { runAllChecks, verifyLockfile, LLMBudget, AgentMemory, ... } from 'devguard'
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
interface DevGuardReport {
|
|
14
|
+
lockfile: {
|
|
15
|
+
valid: boolean;
|
|
16
|
+
tampered: string[];
|
|
17
|
+
missing: string[];
|
|
18
|
+
};
|
|
19
|
+
hooks: {
|
|
20
|
+
count: number;
|
|
21
|
+
criticals: number;
|
|
22
|
+
findings: any[];
|
|
23
|
+
};
|
|
24
|
+
pins: {
|
|
25
|
+
unpinned: string[];
|
|
26
|
+
autoFixAvailable: boolean;
|
|
27
|
+
};
|
|
28
|
+
tokens: {
|
|
29
|
+
stale: string[];
|
|
30
|
+
expiringSoon: string[];
|
|
31
|
+
};
|
|
32
|
+
passedAll: boolean;
|
|
33
|
+
score: number;
|
|
34
|
+
scannedAt: string;
|
|
35
|
+
}
|
|
36
|
+
declare function runAllChecks(root?: string): Promise<DevGuardReport>;
|
|
37
|
+
|
|
38
|
+
export { type DevGuardReport, runAllChecks };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { runAllChecks } from './chunk-MT3VUCLS.js';
|
|
2
|
+
export { AgentMemory, FileSystemAdapter, LLMBudget, MCPServerBuilder, RedisAdapter, cleanLLMOutput, parseSchema, parseWithRetry } from './chunk-4WCL5IUZ.js';
|
|
3
|
+
export { ChallengeStore, CredentialStore, IPRateLimiter, JWTVerifier, RevocationList, createMiddleware, decodeJWT, detectAnomalies, fetchJWKS, generateAuthenticationOptions, generateRegistrationOptions, jwksCacheUtils, scoreRequest, signHMAC, verifyAuthentication, verifyHMAC, verifyRS256, verifyRegistration } from './chunk-3SMY53XX.js';
|
|
4
|
+
export { Logger, createLogger, generateExample, loadDotenvFile, loadEnv, parseDotenv, parseEnv } from './chunk-6IXDDYYA.js';
|
|
5
|
+
export { c, c as s, typedFetch, validateBody, validateQuery } from './chunk-KSFZPDFO.js';
|
|
6
|
+
export { autoPin, checkTokenAge, createNpmToken, createSnapshot, enforceExactPins, extractLockfileSRI, extractTransitiveDeps, fetchRegistrySRI, hashFile, inspectGitHubToken, inspectNpmToken, loadTokensFromEnv, maskToken, scanNodeModules, scanPackage, scanProject, verifyLockfile, verifySRI } from './chunk-D7GNA6TS.js';
|