@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.
@@ -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 };
@@ -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';