@agentic-sdlc-kit/contracts 1.2.1 → 1.3.0
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/dist/agent/capability.d.ts +12 -1
- package/dist/agent/capability.d.ts.map +1 -1
- package/dist/agent/errors.d.ts +29 -11
- package/dist/agent/errors.d.ts.map +1 -1
- package/dist/agent/events.d.ts +42 -153
- package/dist/agent/events.d.ts.map +1 -1
- package/dist/agent/execution.d.ts +151 -415
- package/dist/agent/execution.d.ts.map +1 -1
- package/dist/agent/policy.d.ts +30 -92
- package/dist/agent/policy.d.ts.map +1 -1
- package/dist/agent/session.d.ts +1 -7
- package/dist/agent/session.d.ts.map +1 -1
- package/dist/agent-tools/index.d.ts +20 -58
- package/dist/agent-tools/index.d.ts.map +1 -1
- package/dist/application/application-context.d.ts +80 -582
- package/dist/application/application-context.d.ts.map +1 -1
- package/dist/application/application-persistence.d.ts +161 -924
- package/dist/application/application-persistence.d.ts.map +1 -1
- package/dist/application/application-state.d.ts +94 -70
- package/dist/application/application-state.d.ts.map +1 -1
- package/dist/architecture/api-contract.d.ts +56 -208
- package/dist/architecture/api-contract.d.ts.map +1 -1
- package/dist/architecture/architecture-approval.d.ts +2 -26
- package/dist/architecture/architecture-approval.d.ts.map +1 -1
- package/dist/architecture/architecture-options.d.ts +30 -82
- package/dist/architecture/architecture-options.d.ts.map +1 -1
- package/dist/architecture/component-map.d.ts +34 -60
- package/dist/architecture/component-map.d.ts.map +1 -1
- package/dist/architecture/data-model.d.ts +91 -205
- package/dist/architecture/data-model.d.ts.map +1 -1
- package/dist/architecture/operational-design.d.ts +48 -115
- package/dist/architecture/operational-design.d.ts.map +1 -1
- package/dist/architecture/security-design.d.ts +40 -90
- package/dist/architecture/security-design.d.ts.map +1 -1
- package/dist/benchmark/bench.d.ts +44 -263
- package/dist/benchmark/bench.d.ts.map +1 -1
- package/dist/common/identifier.d.ts +1 -1
- package/dist/common/identifier.d.ts.map +1 -1
- package/dist/constitution/cli-output.d.ts +58 -618
- package/dist/constitution/cli-output.d.ts.map +1 -1
- package/dist/constitution/result.d.ts +31 -84
- package/dist/constitution/result.d.ts.map +1 -1
- package/dist/constitution/rule.d.ts +97 -408
- package/dist/constitution/rule.d.ts.map +1 -1
- package/dist/context/project-context.d.ts +57 -227
- package/dist/context/project-context.d.ts.map +1 -1
- package/dist/evaluation/benchmark.d.ts +26 -66
- package/dist/evaluation/benchmark.d.ts.map +1 -1
- package/dist/evaluation/metrics.d.ts +15 -120
- package/dist/evaluation/metrics.d.ts.map +1 -1
- package/dist/evolution/experiment.d.ts +29 -51
- package/dist/evolution/experiment.d.ts.map +1 -1
- package/dist/evolution/improvement-hypothesis.d.ts +56 -78
- package/dist/evolution/improvement-hypothesis.d.ts.map +1 -1
- package/dist/execution/execution-profile.d.ts +25 -111
- package/dist/execution/execution-profile.d.ts.map +1 -1
- package/dist/improvement/config.d.ts +3 -17
- package/dist/improvement/config.d.ts.map +1 -1
- package/dist/improvement/config.js +1 -1
- package/dist/improvement/config.js.map +1 -1
- package/dist/improvement/finding.d.ts +24 -71
- package/dist/improvement/finding.d.ts.map +1 -1
- package/dist/improvement/issue.d.ts +10 -39
- package/dist/improvement/issue.d.ts.map +1 -1
- package/dist/improvement/kit-feedback.d.ts +45 -29
- package/dist/improvement/kit-feedback.d.ts.map +1 -1
- package/dist/improvement/review.d.ts +22 -28
- package/dist/improvement/review.d.ts.map +1 -1
- package/dist/installer/install-plan.d.ts +52 -137
- package/dist/installer/install-plan.d.ts.map +1 -1
- package/dist/installer/ownership-manifest.d.ts +7 -62
- package/dist/installer/ownership-manifest.d.ts.map +1 -1
- package/dist/installer/package-manifest.d.ts +25 -40
- package/dist/installer/package-manifest.d.ts.map +1 -1
- package/dist/learning/engineering-lesson.d.ts +19 -65
- package/dist/learning/engineering-lesson.d.ts.map +1 -1
- package/dist/learning/engineering-memory.d.ts +32 -64
- package/dist/learning/engineering-memory.d.ts.map +1 -1
- package/dist/learning/experience-episode.d.ts +33 -141
- package/dist/learning/experience-episode.d.ts.map +1 -1
- package/dist/learning/experience.d.ts +16 -50
- package/dist/learning/experience.d.ts.map +1 -1
- package/dist/learning/hypothesis.d.ts +14 -39
- package/dist/learning/hypothesis.d.ts.map +1 -1
- package/dist/learning/learning-event.d.ts +32 -62
- package/dist/learning/learning-event.d.ts.map +1 -1
- package/dist/learning/memory.d.ts +12 -28
- package/dist/learning/memory.d.ts.map +1 -1
- package/dist/learning/promotion.d.ts +7 -20
- package/dist/learning/promotion.d.ts.map +1 -1
- package/dist/maintenance/bug-fix-workflow.d.ts +49 -30
- package/dist/maintenance/bug-fix-workflow.d.ts.map +1 -1
- package/dist/maintenance/bug-report.d.ts +39 -46
- package/dist/maintenance/bug-report.d.ts.map +1 -1
- package/dist/maintenance/performance-baseline.d.ts +18 -64
- package/dist/maintenance/performance-baseline.d.ts.map +1 -1
- package/dist/maintenance/refactor-contract.d.ts +47 -133
- package/dist/maintenance/refactor-contract.d.ts.map +1 -1
- package/dist/maintenance/refactor-workflow.d.ts +50 -51
- package/dist/maintenance/refactor-workflow.d.ts.map +1 -1
- package/dist/observer/event-schema.d.ts +31 -31
- package/dist/observer/event-schema.d.ts.map +1 -1
- package/dist/observer/journal.d.ts +32 -57
- package/dist/observer/journal.d.ts.map +1 -1
- package/dist/observer/journal.js +1 -1
- package/dist/observer/journal.js.map +1 -1
- package/dist/observer/retention.d.ts +2 -16
- package/dist/observer/retention.d.ts.map +1 -1
- package/dist/observer/run-summary.d.ts +45 -213
- package/dist/observer/run-summary.d.ts.map +1 -1
- package/dist/onboard/onboard-report.d.ts +85 -279
- package/dist/onboard/onboard-report.d.ts.map +1 -1
- package/dist/patterns/pattern.d.ts +28 -74
- package/dist/patterns/pattern.d.ts.map +1 -1
- package/dist/planning/task.d.ts +70 -149
- package/dist/planning/task.d.ts.map +1 -1
- package/dist/policy/policy.d.ts +61 -56
- package/dist/policy/policy.d.ts.map +1 -1
- package/dist/product/mvp-scope.d.ts +8 -18
- package/dist/product/mvp-scope.d.ts.map +1 -1
- package/dist/product/product-brief.d.ts +6 -74
- package/dist/product/product-brief.d.ts.map +1 -1
- package/dist/product/requirements.d.ts +99 -215
- package/dist/product/requirements.d.ts.map +1 -1
- package/dist/product/traceability.d.ts +7 -39
- package/dist/product/traceability.d.ts.map +1 -1
- package/dist/project/project-profile.d.ts +34 -146
- package/dist/project/project-profile.d.ts.map +1 -1
- package/dist/project/repository-scan.d.ts +8 -64
- package/dist/project/repository-scan.d.ts.map +1 -1
- package/dist/routing/capability-registry.d.ts +15 -67
- package/dist/routing/capability-registry.d.ts.map +1 -1
- package/dist/routing/escalation.d.ts +10 -17
- package/dist/routing/escalation.d.ts.map +1 -1
- package/dist/routing/measured-routing.d.ts +18 -28
- package/dist/routing/measured-routing.d.ts.map +1 -1
- package/dist/routing/routing-policy.d.ts +56 -84
- package/dist/routing/routing-policy.d.ts.map +1 -1
- package/dist/routing/routing-request.d.ts +50 -46
- package/dist/routing/routing-request.d.ts.map +1 -1
- package/dist/runtime-guard/action-classification.d.ts +66 -36
- package/dist/runtime-guard/action-classification.d.ts.map +1 -1
- package/dist/runtime-guard/action-classification.js +1 -1
- package/dist/runtime-guard/action-classification.js.map +1 -1
- package/dist/runtime-guard/audit-event.d.ts +45 -77
- package/dist/runtime-guard/audit-event.d.ts.map +1 -1
- package/dist/runtime-guard/policy-schema.d.ts +100 -116
- package/dist/runtime-guard/policy-schema.d.ts.map +1 -1
- package/dist/scaffolding/scaffold-contract.d.ts +46 -450
- package/dist/scaffolding/scaffold-contract.d.ts.map +1 -1
- package/dist/scaffolding/template-manifest.d.ts +5 -77
- package/dist/scaffolding/template-manifest.d.ts.map +1 -1
- package/dist/secret-guard/detection-rule.d.ts +25 -19
- package/dist/secret-guard/detection-rule.d.ts.map +1 -1
- package/dist/secret-guard/finding.d.ts +70 -69
- package/dist/secret-guard/finding.d.ts.map +1 -1
- package/dist/secret-guard/redaction-policy.d.ts +7 -17
- package/dist/secret-guard/redaction-policy.d.ts.map +1 -1
- package/dist/secret-guard/scanner-failure.d.ts +17 -45
- package/dist/secret-guard/scanner-failure.d.ts.map +1 -1
- package/dist/specification/specification.d.ts +48 -184
- package/dist/specification/specification.d.ts.map +1 -1
- package/dist/stack-pack/manifest.d.ts +19 -90
- package/dist/stack-pack/manifest.d.ts.map +1 -1
- package/dist/verification/report.d.ts +49 -164
- package/dist/verification/report.d.ts.map +1 -1
- package/dist/verification/strength.d.ts +62 -188
- package/dist/verification/strength.d.ts.map +1 -1
- package/dist/workflow/next-action.d.ts +55 -137
- package/dist/workflow/next-action.d.ts.map +1 -1
- package/dist/workflow/workflow.d.ts +50 -50
- package/dist/workflow/workflow.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/improvement/config.ts +1 -1
- package/src/observer/journal.ts +1 -1
- package/src/runtime-guard/action-classification.ts +1 -1
- package/src/zod-defaults.test.ts +28 -0
|
@@ -2,28 +2,34 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const DetectionRuleSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
name: z.ZodString;
|
|
5
|
-
kind: z.ZodEnum<
|
|
5
|
+
kind: z.ZodEnum<{
|
|
6
|
+
unknown: "unknown";
|
|
7
|
+
jwt: "jwt";
|
|
8
|
+
"aws-access-key": "aws-access-key";
|
|
9
|
+
"aws-secret-key": "aws-secret-key";
|
|
10
|
+
"github-token": "github-token";
|
|
11
|
+
"gitlab-token": "gitlab-token";
|
|
12
|
+
"google-api-key": "google-api-key";
|
|
13
|
+
"google-oauth-id": "google-oauth-id";
|
|
14
|
+
"stripe-key": "stripe-key";
|
|
15
|
+
"slack-token": "slack-token";
|
|
16
|
+
"generic-api-key": "generic-api-key";
|
|
17
|
+
"private-key-pem": "private-key-pem";
|
|
18
|
+
"jwt-token": "jwt-token";
|
|
19
|
+
"dhan-credential": "dhan-credential";
|
|
20
|
+
"connection-string": "connection-string";
|
|
21
|
+
"bearer-token": "bearer-token";
|
|
22
|
+
}>;
|
|
6
23
|
pattern: z.ZodString;
|
|
7
24
|
checksumValidator: z.ZodOptional<z.ZodString>;
|
|
8
|
-
severity: z.ZodEnum<
|
|
25
|
+
severity: z.ZodEnum<{
|
|
26
|
+
low: "low";
|
|
27
|
+
medium: "medium";
|
|
28
|
+
high: "high";
|
|
29
|
+
critical: "critical";
|
|
30
|
+
}>;
|
|
9
31
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
-
},
|
|
11
|
-
enabled: boolean;
|
|
12
|
-
name: string;
|
|
13
|
-
kind: "unknown" | "jwt" | "aws-access-key" | "aws-secret-key" | "github-token" | "gitlab-token" | "google-api-key" | "google-oauth-id" | "stripe-key" | "slack-token" | "generic-api-key" | "private-key-pem" | "jwt-token" | "dhan-credential" | "connection-string" | "bearer-token";
|
|
14
|
-
id: string;
|
|
15
|
-
severity: "low" | "medium" | "high" | "critical";
|
|
16
|
-
pattern: string;
|
|
17
|
-
checksumValidator?: string | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
name: string;
|
|
20
|
-
kind: "unknown" | "jwt" | "aws-access-key" | "aws-secret-key" | "github-token" | "gitlab-token" | "google-api-key" | "google-oauth-id" | "stripe-key" | "slack-token" | "generic-api-key" | "private-key-pem" | "jwt-token" | "dhan-credential" | "connection-string" | "bearer-token";
|
|
21
|
-
id: string;
|
|
22
|
-
severity: "low" | "medium" | "high" | "critical";
|
|
23
|
-
pattern: string;
|
|
24
|
-
enabled?: boolean | undefined;
|
|
25
|
-
checksumValidator?: string | undefined;
|
|
26
|
-
}>;
|
|
32
|
+
}, z.core.$strip>;
|
|
27
33
|
export type DetectionRule = z.infer<typeof DetectionRuleSchema>;
|
|
28
34
|
/**
|
|
29
35
|
* Built-in detection rules. The M11 detector ships these by default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detection-rule.d.ts","sourceRoot":"","sources":["../../src/secret-guard/detection-rule.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgCxB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"detection-rule.d.ts","sourceRoot":"","sources":["../../src/secret-guard/detection-rule.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgCxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAc9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAAa,CAAC,aAAa,CAoHhE,CAAC"}
|
|
@@ -1,83 +1,84 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const SecretKindSchema: z.ZodEnum<
|
|
3
|
-
|
|
2
|
+
export declare const SecretKindSchema: z.ZodEnum<{
|
|
3
|
+
unknown: "unknown";
|
|
4
|
+
jwt: "jwt";
|
|
5
|
+
"aws-access-key": "aws-access-key";
|
|
6
|
+
"aws-secret-key": "aws-secret-key";
|
|
7
|
+
"github-token": "github-token";
|
|
8
|
+
"gitlab-token": "gitlab-token";
|
|
9
|
+
"google-api-key": "google-api-key";
|
|
10
|
+
"google-oauth-id": "google-oauth-id";
|
|
11
|
+
"stripe-key": "stripe-key";
|
|
12
|
+
"slack-token": "slack-token";
|
|
13
|
+
"generic-api-key": "generic-api-key";
|
|
14
|
+
"private-key-pem": "private-key-pem";
|
|
15
|
+
"jwt-token": "jwt-token";
|
|
16
|
+
"dhan-credential": "dhan-credential";
|
|
17
|
+
"connection-string": "connection-string";
|
|
18
|
+
"bearer-token": "bearer-token";
|
|
19
|
+
}>;
|
|
20
|
+
export declare const SecretSeveritySchema: z.ZodEnum<{
|
|
21
|
+
low: "low";
|
|
22
|
+
medium: "medium";
|
|
23
|
+
high: "high";
|
|
24
|
+
critical: "critical";
|
|
25
|
+
}>;
|
|
4
26
|
export declare const SecretFindingSchema: z.ZodObject<{
|
|
5
27
|
id: z.ZodString;
|
|
6
|
-
kind: z.ZodEnum<
|
|
7
|
-
|
|
28
|
+
kind: z.ZodEnum<{
|
|
29
|
+
unknown: "unknown";
|
|
30
|
+
jwt: "jwt";
|
|
31
|
+
"aws-access-key": "aws-access-key";
|
|
32
|
+
"aws-secret-key": "aws-secret-key";
|
|
33
|
+
"github-token": "github-token";
|
|
34
|
+
"gitlab-token": "gitlab-token";
|
|
35
|
+
"google-api-key": "google-api-key";
|
|
36
|
+
"google-oauth-id": "google-oauth-id";
|
|
37
|
+
"stripe-key": "stripe-key";
|
|
38
|
+
"slack-token": "slack-token";
|
|
39
|
+
"generic-api-key": "generic-api-key";
|
|
40
|
+
"private-key-pem": "private-key-pem";
|
|
41
|
+
"jwt-token": "jwt-token";
|
|
42
|
+
"dhan-credential": "dhan-credential";
|
|
43
|
+
"connection-string": "connection-string";
|
|
44
|
+
"bearer-token": "bearer-token";
|
|
45
|
+
}>;
|
|
46
|
+
location: z.ZodObject<{
|
|
8
47
|
filePath: z.ZodOptional<z.ZodString>;
|
|
9
48
|
line: z.ZodOptional<z.ZodNumber>;
|
|
10
49
|
column: z.ZodOptional<z.ZodNumber>;
|
|
11
50
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
12
51
|
length: z.ZodNumber;
|
|
13
|
-
source: z.ZodEnum<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
filePath?: string | undefined;
|
|
40
|
-
column?: number | undefined;
|
|
41
|
-
offset?: number | undefined;
|
|
52
|
+
source: z.ZodEnum<{
|
|
53
|
+
"file-read": "file-read";
|
|
54
|
+
"file-write": "file-write";
|
|
55
|
+
"tool-output": "tool-output";
|
|
56
|
+
"git-staged": "git-staged";
|
|
57
|
+
"git-commit": "git-commit";
|
|
58
|
+
"git-push": "git-push";
|
|
59
|
+
"mcp-response": "mcp-response";
|
|
60
|
+
}>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
detector: z.ZodEnum<{
|
|
63
|
+
custom: "custom";
|
|
64
|
+
builtin: "builtin";
|
|
65
|
+
gitleaks: "gitleaks";
|
|
66
|
+
trufflehog: "trufflehog";
|
|
67
|
+
}>;
|
|
68
|
+
confidence: z.ZodEnum<{
|
|
69
|
+
low: "low";
|
|
70
|
+
medium: "medium";
|
|
71
|
+
high: "high";
|
|
72
|
+
}>;
|
|
73
|
+
severity: z.ZodEnum<{
|
|
74
|
+
low: "low";
|
|
75
|
+
medium: "medium";
|
|
76
|
+
high: "high";
|
|
77
|
+
critical: "critical";
|
|
42
78
|
}>;
|
|
43
|
-
detector: z.ZodEnum<["builtin", "gitleaks", "trufflehog", "custom"]>;
|
|
44
|
-
confidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
45
|
-
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
46
79
|
redactedPreview: z.ZodString;
|
|
47
80
|
redacted: z.ZodDefault<z.ZodBoolean>;
|
|
48
|
-
},
|
|
49
|
-
kind: "unknown" | "jwt" | "aws-access-key" | "aws-secret-key" | "github-token" | "gitlab-token" | "google-api-key" | "google-oauth-id" | "stripe-key" | "slack-token" | "generic-api-key" | "private-key-pem" | "jwt-token" | "dhan-credential" | "connection-string" | "bearer-token";
|
|
50
|
-
id: string;
|
|
51
|
-
confidence: "low" | "medium" | "high";
|
|
52
|
-
severity: "low" | "medium" | "high" | "critical";
|
|
53
|
-
location: {
|
|
54
|
-
length: number;
|
|
55
|
-
source: "file-read" | "file-write" | "tool-output" | "git-staged" | "git-commit" | "git-push" | "mcp-response";
|
|
56
|
-
line?: number | undefined;
|
|
57
|
-
filePath?: string | undefined;
|
|
58
|
-
column?: number | undefined;
|
|
59
|
-
offset?: number | undefined;
|
|
60
|
-
};
|
|
61
|
-
detector: "custom" | "builtin" | "gitleaks" | "trufflehog";
|
|
62
|
-
redactedPreview: string;
|
|
63
|
-
redacted: boolean;
|
|
64
|
-
}, {
|
|
65
|
-
kind: "unknown" | "jwt" | "aws-access-key" | "aws-secret-key" | "github-token" | "gitlab-token" | "google-api-key" | "google-oauth-id" | "stripe-key" | "slack-token" | "generic-api-key" | "private-key-pem" | "jwt-token" | "dhan-credential" | "connection-string" | "bearer-token";
|
|
66
|
-
id: string;
|
|
67
|
-
confidence: "low" | "medium" | "high";
|
|
68
|
-
severity: "low" | "medium" | "high" | "critical";
|
|
69
|
-
location: {
|
|
70
|
-
length: number;
|
|
71
|
-
source: "file-read" | "file-write" | "tool-output" | "git-staged" | "git-commit" | "git-push" | "mcp-response";
|
|
72
|
-
line?: number | undefined;
|
|
73
|
-
filePath?: string | undefined;
|
|
74
|
-
column?: number | undefined;
|
|
75
|
-
offset?: number | undefined;
|
|
76
|
-
};
|
|
77
|
-
detector: "custom" | "builtin" | "gitleaks" | "trufflehog";
|
|
78
|
-
redactedPreview: string;
|
|
79
|
-
redacted?: boolean | undefined;
|
|
80
|
-
}>;
|
|
81
|
+
}, z.core.$strip>;
|
|
81
82
|
export type SecretKind = z.infer<typeof SecretKindSchema>;
|
|
82
83
|
export type SecretSeverity = z.infer<typeof SecretSeveritySchema>;
|
|
83
84
|
export type SecretFinding = z.infer<typeof SecretFindingSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finding.d.ts","sourceRoot":"","sources":["../../src/secret-guard/finding.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"finding.d.ts","sourceRoot":"","sources":["../../src/secret-guard/finding.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;EAiB3B,CAAC;AAMH,eAAO,MAAM,oBAAoB;;;;;EAAgD,CAAC;AAElF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2C9B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKrD"}
|
|
@@ -2,25 +2,15 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const REDACTION_POLICY_SCHEMA_VERSION: 1;
|
|
3
3
|
export declare const RedactionPolicySchema: z.ZodObject<{
|
|
4
4
|
schemaVersion: z.ZodLiteral<1>;
|
|
5
|
-
placeholderFormat: z.ZodDefault<z.ZodEnum<
|
|
5
|
+
placeholderFormat: z.ZodDefault<z.ZodEnum<{
|
|
6
|
+
"[REDACTED]": "[REDACTED]";
|
|
7
|
+
"[REDACTED:<kind>]": "[REDACTED:<kind>]";
|
|
8
|
+
"[REDACTED:<kind>:<id>]": "[REDACTED:<kind>:<id>]";
|
|
9
|
+
}>>;
|
|
6
10
|
redactPartial: z.ZodDefault<z.ZodBoolean>;
|
|
7
11
|
redactRepeated: z.ZodDefault<z.ZodBoolean>;
|
|
8
12
|
maxInputBytes: z.ZodDefault<z.ZodNumber>;
|
|
9
|
-
ignorePaths: z.ZodDefault<z.ZodArray<z.ZodString
|
|
10
|
-
},
|
|
11
|
-
schemaVersion: 1;
|
|
12
|
-
placeholderFormat: "[REDACTED]" | "[REDACTED:<kind>]" | "[REDACTED:<kind>:<id>]";
|
|
13
|
-
redactPartial: boolean;
|
|
14
|
-
redactRepeated: boolean;
|
|
15
|
-
maxInputBytes: number;
|
|
16
|
-
ignorePaths: string[];
|
|
17
|
-
}, {
|
|
18
|
-
schemaVersion: 1;
|
|
19
|
-
placeholderFormat?: "[REDACTED]" | "[REDACTED:<kind>]" | "[REDACTED:<kind>:<id>]" | undefined;
|
|
20
|
-
redactPartial?: boolean | undefined;
|
|
21
|
-
redactRepeated?: boolean | undefined;
|
|
22
|
-
maxInputBytes?: number | undefined;
|
|
23
|
-
ignorePaths?: string[] | undefined;
|
|
24
|
-
}>;
|
|
13
|
+
ignorePaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
25
15
|
export type RedactionPolicy = z.infer<typeof RedactionPolicySchema>;
|
|
26
16
|
//# sourceMappingURL=redaction-policy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redaction-policy.d.ts","sourceRoot":"","sources":["../../src/secret-guard/redaction-policy.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,+BAA+B,EAAG,CAAU,CAAC;AAE1D,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"redaction-policy.d.ts","sourceRoot":"","sources":["../../src/secret-guard/redaction-policy.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,+BAA+B,EAAG,CAAU,CAAC;AAE1D,eAAO,MAAM,qBAAqB;;;;;;;;;;;iBAmBhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,59 +1,31 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const ScannerOutcomeSchema: z.ZodEnum<
|
|
2
|
+
export declare const ScannerOutcomeSchema: z.ZodEnum<{
|
|
3
|
+
failed: "failed";
|
|
4
|
+
clean: "clean";
|
|
5
|
+
findings: "findings";
|
|
6
|
+
"skipped-too-large": "skipped-too-large";
|
|
7
|
+
"skipped-ignored": "skipped-ignored";
|
|
8
|
+
}>;
|
|
3
9
|
export declare const ScannerResultSchema: z.ZodObject<{
|
|
4
|
-
outcome: z.ZodEnum<
|
|
10
|
+
outcome: z.ZodEnum<{
|
|
11
|
+
failed: "failed";
|
|
12
|
+
clean: "clean";
|
|
13
|
+
findings: "findings";
|
|
14
|
+
"skipped-too-large": "skipped-too-large";
|
|
15
|
+
"skipped-ignored": "skipped-ignored";
|
|
16
|
+
}>;
|
|
5
17
|
findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6
18
|
id: z.ZodString;
|
|
7
19
|
kind: z.ZodString;
|
|
8
20
|
redactedPreview: z.ZodString;
|
|
9
|
-
},
|
|
10
|
-
kind: string;
|
|
11
|
-
id: string;
|
|
12
|
-
redactedPreview: string;
|
|
13
|
-
}, {
|
|
14
|
-
kind: string;
|
|
15
|
-
id: string;
|
|
16
|
-
redactedPreview: string;
|
|
17
|
-
}>, "many">>;
|
|
21
|
+
}, z.core.$strip>>>;
|
|
18
22
|
error: z.ZodOptional<z.ZodObject<{
|
|
19
23
|
code: z.ZodString;
|
|
20
24
|
message: z.ZodString;
|
|
21
|
-
},
|
|
22
|
-
code: string;
|
|
23
|
-
message: string;
|
|
24
|
-
}, {
|
|
25
|
-
code: string;
|
|
26
|
-
message: string;
|
|
27
|
-
}>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
28
26
|
bytesProcessed: z.ZodNumber;
|
|
29
27
|
durationMs: z.ZodNumber;
|
|
30
|
-
},
|
|
31
|
-
durationMs: number;
|
|
32
|
-
outcome: "failed" | "clean" | "findings" | "skipped-too-large" | "skipped-ignored";
|
|
33
|
-
findings: {
|
|
34
|
-
kind: string;
|
|
35
|
-
id: string;
|
|
36
|
-
redactedPreview: string;
|
|
37
|
-
}[];
|
|
38
|
-
bytesProcessed: number;
|
|
39
|
-
error?: {
|
|
40
|
-
code: string;
|
|
41
|
-
message: string;
|
|
42
|
-
} | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
durationMs: number;
|
|
45
|
-
outcome: "failed" | "clean" | "findings" | "skipped-too-large" | "skipped-ignored";
|
|
46
|
-
bytesProcessed: number;
|
|
47
|
-
findings?: {
|
|
48
|
-
kind: string;
|
|
49
|
-
id: string;
|
|
50
|
-
redactedPreview: string;
|
|
51
|
-
}[] | undefined;
|
|
52
|
-
error?: {
|
|
53
|
-
code: string;
|
|
54
|
-
message: string;
|
|
55
|
-
} | undefined;
|
|
56
|
-
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
57
29
|
export type ScannerOutcome = z.infer<typeof ScannerOutcomeSchema>;
|
|
58
30
|
export type ScannerResult = z.infer<typeof ScannerResultSchema>;
|
|
59
31
|
//# sourceMappingURL=scanner-failure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scanner-failure.d.ts","sourceRoot":"","sources":["../../src/secret-guard/scanner-failure.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"scanner-failure.d.ts","sourceRoot":"","sources":["../../src/secret-guard/scanner-failure.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;EAM/B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;iBAwB9B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,229 +1,93 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const SpecificationSectionSchema: z.ZodEnum<
|
|
3
|
-
|
|
2
|
+
export declare const SpecificationSectionSchema: z.ZodEnum<{
|
|
3
|
+
scope: "scope";
|
|
4
|
+
overview: "overview";
|
|
5
|
+
problem: "problem";
|
|
6
|
+
actors: "actors";
|
|
7
|
+
functionalRequirements: "functionalRequirements";
|
|
8
|
+
nonFunctionalRequirements: "nonFunctionalRequirements";
|
|
9
|
+
acceptanceCriteria: "acceptanceCriteria";
|
|
10
|
+
edgeCases: "edgeCases";
|
|
11
|
+
dependencies: "dependencies";
|
|
12
|
+
risks: "risks";
|
|
13
|
+
openQuestions: "openQuestions";
|
|
14
|
+
}>;
|
|
15
|
+
export declare const SeveritySchema: z.ZodEnum<{
|
|
16
|
+
low: "low";
|
|
17
|
+
medium: "medium";
|
|
18
|
+
high: "high";
|
|
19
|
+
}>;
|
|
4
20
|
export declare const AcceptanceCriterionSchema: z.ZodObject<{
|
|
5
21
|
id: z.ZodString;
|
|
6
22
|
criterion: z.ZodString;
|
|
7
|
-
},
|
|
8
|
-
id: string;
|
|
9
|
-
criterion: string;
|
|
10
|
-
}, {
|
|
11
|
-
id: string;
|
|
12
|
-
criterion: string;
|
|
13
|
-
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
14
24
|
export declare const RequirementSchema: z.ZodObject<{
|
|
15
25
|
id: z.ZodString;
|
|
16
26
|
statement: z.ZodString;
|
|
17
|
-
},
|
|
18
|
-
id: string;
|
|
19
|
-
statement: string;
|
|
20
|
-
}, {
|
|
21
|
-
id: string;
|
|
22
|
-
statement: string;
|
|
23
|
-
}>;
|
|
27
|
+
}, z.core.$strip>;
|
|
24
28
|
export declare const RiskSchema: z.ZodObject<{
|
|
25
29
|
id: z.ZodString;
|
|
26
|
-
severity: z.ZodEnum<
|
|
30
|
+
severity: z.ZodEnum<{
|
|
31
|
+
low: "low";
|
|
32
|
+
medium: "medium";
|
|
33
|
+
high: "high";
|
|
34
|
+
}>;
|
|
27
35
|
description: z.ZodString;
|
|
28
|
-
},
|
|
29
|
-
id: string;
|
|
30
|
-
severity: "low" | "medium" | "high";
|
|
31
|
-
description: string;
|
|
32
|
-
}, {
|
|
33
|
-
id: string;
|
|
34
|
-
severity: "low" | "medium" | "high";
|
|
35
|
-
description: string;
|
|
36
|
-
}>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
37
|
export declare const OpenQuestionSchema: z.ZodObject<{
|
|
38
38
|
id: z.ZodString;
|
|
39
39
|
question: z.ZodString;
|
|
40
40
|
resolved: z.ZodBoolean;
|
|
41
|
-
},
|
|
42
|
-
id: string;
|
|
43
|
-
question: string;
|
|
44
|
-
resolved: boolean;
|
|
45
|
-
}, {
|
|
46
|
-
id: string;
|
|
47
|
-
question: string;
|
|
48
|
-
resolved: boolean;
|
|
49
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
50
42
|
export declare const FeatureSpecificationSchema: z.ZodObject<{
|
|
51
43
|
id: z.ZodString;
|
|
52
44
|
title: z.ZodString;
|
|
53
45
|
overview: z.ZodString;
|
|
54
46
|
problem: z.ZodString;
|
|
55
47
|
scope: z.ZodObject<{
|
|
56
|
-
in: z.ZodArray<z.ZodString
|
|
57
|
-
out: z.ZodArray<z.ZodString
|
|
58
|
-
},
|
|
59
|
-
in: string[];
|
|
60
|
-
out: string[];
|
|
61
|
-
}, {
|
|
62
|
-
in: string[];
|
|
63
|
-
out: string[];
|
|
64
|
-
}>;
|
|
48
|
+
in: z.ZodArray<z.ZodString>;
|
|
49
|
+
out: z.ZodArray<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>;
|
|
65
51
|
actors: z.ZodArray<z.ZodObject<{
|
|
66
52
|
name: z.ZodString;
|
|
67
53
|
role: z.ZodString;
|
|
68
|
-
},
|
|
69
|
-
name: string;
|
|
70
|
-
role: string;
|
|
71
|
-
}, {
|
|
72
|
-
name: string;
|
|
73
|
-
role: string;
|
|
74
|
-
}>, "many">;
|
|
54
|
+
}, z.core.$strip>>;
|
|
75
55
|
functionalRequirements: z.ZodArray<z.ZodObject<{
|
|
76
56
|
id: z.ZodString;
|
|
77
57
|
statement: z.ZodString;
|
|
78
|
-
},
|
|
79
|
-
id: string;
|
|
80
|
-
statement: string;
|
|
81
|
-
}, {
|
|
82
|
-
id: string;
|
|
83
|
-
statement: string;
|
|
84
|
-
}>, "many">;
|
|
58
|
+
}, z.core.$strip>>;
|
|
85
59
|
nonFunctionalRequirements: z.ZodArray<z.ZodObject<{
|
|
86
60
|
id: z.ZodString;
|
|
87
61
|
statement: z.ZodString;
|
|
88
|
-
},
|
|
89
|
-
id: string;
|
|
90
|
-
statement: string;
|
|
91
|
-
}, {
|
|
92
|
-
id: string;
|
|
93
|
-
statement: string;
|
|
94
|
-
}>, "many">;
|
|
62
|
+
}, z.core.$strip>>;
|
|
95
63
|
acceptanceCriteria: z.ZodArray<z.ZodObject<{
|
|
96
64
|
id: z.ZodString;
|
|
97
65
|
criterion: z.ZodString;
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}, {
|
|
102
|
-
id: string;
|
|
103
|
-
criterion: string;
|
|
104
|
-
}>, "many">;
|
|
105
|
-
edgeCases: z.ZodArray<z.ZodString, "many">;
|
|
106
|
-
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
edgeCases: z.ZodArray<z.ZodString>;
|
|
68
|
+
dependencies: z.ZodArray<z.ZodString>;
|
|
107
69
|
risks: z.ZodArray<z.ZodObject<{
|
|
108
70
|
id: z.ZodString;
|
|
109
|
-
severity: z.ZodEnum<
|
|
71
|
+
severity: z.ZodEnum<{
|
|
72
|
+
low: "low";
|
|
73
|
+
medium: "medium";
|
|
74
|
+
high: "high";
|
|
75
|
+
}>;
|
|
110
76
|
description: z.ZodString;
|
|
111
|
-
},
|
|
112
|
-
id: string;
|
|
113
|
-
severity: "low" | "medium" | "high";
|
|
114
|
-
description: string;
|
|
115
|
-
}, {
|
|
116
|
-
id: string;
|
|
117
|
-
severity: "low" | "medium" | "high";
|
|
118
|
-
description: string;
|
|
119
|
-
}>, "many">;
|
|
77
|
+
}, z.core.$strip>>;
|
|
120
78
|
openQuestions: z.ZodArray<z.ZodObject<{
|
|
121
79
|
id: z.ZodString;
|
|
122
80
|
question: z.ZodString;
|
|
123
81
|
resolved: z.ZodBoolean;
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
question: string;
|
|
127
|
-
resolved: boolean;
|
|
128
|
-
}, {
|
|
129
|
-
id: string;
|
|
130
|
-
question: string;
|
|
131
|
-
resolved: boolean;
|
|
132
|
-
}>, "many">;
|
|
133
|
-
}, "strict", z.ZodTypeAny, {
|
|
134
|
-
scope: {
|
|
135
|
-
in: string[];
|
|
136
|
-
out: string[];
|
|
137
|
-
};
|
|
138
|
-
id: string;
|
|
139
|
-
title: string;
|
|
140
|
-
overview: string;
|
|
141
|
-
problem: string;
|
|
142
|
-
actors: {
|
|
143
|
-
name: string;
|
|
144
|
-
role: string;
|
|
145
|
-
}[];
|
|
146
|
-
functionalRequirements: {
|
|
147
|
-
id: string;
|
|
148
|
-
statement: string;
|
|
149
|
-
}[];
|
|
150
|
-
nonFunctionalRequirements: {
|
|
151
|
-
id: string;
|
|
152
|
-
statement: string;
|
|
153
|
-
}[];
|
|
154
|
-
acceptanceCriteria: {
|
|
155
|
-
id: string;
|
|
156
|
-
criterion: string;
|
|
157
|
-
}[];
|
|
158
|
-
edgeCases: string[];
|
|
159
|
-
dependencies: string[];
|
|
160
|
-
risks: {
|
|
161
|
-
id: string;
|
|
162
|
-
severity: "low" | "medium" | "high";
|
|
163
|
-
description: string;
|
|
164
|
-
}[];
|
|
165
|
-
openQuestions: {
|
|
166
|
-
id: string;
|
|
167
|
-
question: string;
|
|
168
|
-
resolved: boolean;
|
|
169
|
-
}[];
|
|
170
|
-
}, {
|
|
171
|
-
scope: {
|
|
172
|
-
in: string[];
|
|
173
|
-
out: string[];
|
|
174
|
-
};
|
|
175
|
-
id: string;
|
|
176
|
-
title: string;
|
|
177
|
-
overview: string;
|
|
178
|
-
problem: string;
|
|
179
|
-
actors: {
|
|
180
|
-
name: string;
|
|
181
|
-
role: string;
|
|
182
|
-
}[];
|
|
183
|
-
functionalRequirements: {
|
|
184
|
-
id: string;
|
|
185
|
-
statement: string;
|
|
186
|
-
}[];
|
|
187
|
-
nonFunctionalRequirements: {
|
|
188
|
-
id: string;
|
|
189
|
-
statement: string;
|
|
190
|
-
}[];
|
|
191
|
-
acceptanceCriteria: {
|
|
192
|
-
id: string;
|
|
193
|
-
criterion: string;
|
|
194
|
-
}[];
|
|
195
|
-
edgeCases: string[];
|
|
196
|
-
dependencies: string[];
|
|
197
|
-
risks: {
|
|
198
|
-
id: string;
|
|
199
|
-
severity: "low" | "medium" | "high";
|
|
200
|
-
description: string;
|
|
201
|
-
}[];
|
|
202
|
-
openQuestions: {
|
|
203
|
-
id: string;
|
|
204
|
-
question: string;
|
|
205
|
-
resolved: boolean;
|
|
206
|
-
}[];
|
|
207
|
-
}>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
}, z.core.$strict>;
|
|
208
84
|
export type FeatureSpecification = z.infer<typeof FeatureSpecificationSchema>;
|
|
209
85
|
export declare const BddScenarioSchema: z.ZodObject<{
|
|
210
86
|
feature: z.ZodString;
|
|
211
87
|
scenario: z.ZodString;
|
|
212
|
-
given: z.ZodArray<z.ZodString
|
|
213
|
-
when: z.ZodArray<z.ZodString
|
|
214
|
-
then: z.ZodArray<z.ZodString
|
|
215
|
-
},
|
|
216
|
-
feature: string;
|
|
217
|
-
scenario: string;
|
|
218
|
-
given: string[];
|
|
219
|
-
when: string[];
|
|
220
|
-
then: string[];
|
|
221
|
-
}, {
|
|
222
|
-
feature: string;
|
|
223
|
-
scenario: string;
|
|
224
|
-
given: string[];
|
|
225
|
-
when: string[];
|
|
226
|
-
then: string[];
|
|
227
|
-
}>;
|
|
88
|
+
given: z.ZodArray<z.ZodString>;
|
|
89
|
+
when: z.ZodArray<z.ZodString>;
|
|
90
|
+
then: z.ZodArray<z.ZodString>;
|
|
91
|
+
}, z.core.$strip>;
|
|
228
92
|
export type BddScenario = z.infer<typeof BddScenarioSchema>;
|
|
229
93
|
//# sourceMappingURL=specification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specification.d.ts","sourceRoot":"","sources":["../../src/specification/specification.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"specification.d.ts","sourceRoot":"","sources":["../../src/specification/specification.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAYrC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;EAAoC,CAAC;AAEhE,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;iBAIrB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmB5B,CAAC;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,iBAAiB;;;;;;iBAM5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|