cuonztech-privacy-chaos-gate 0.3.7 → 0.3.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/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  BannerKindSchema,
3
3
  CORE_SCENARIOS,
4
- ChaosScanner,
5
4
  ChaosScenarioSchema,
6
5
  ENV_FILE_KEYS_HELP,
7
6
  EXIT,
@@ -14,61 +13,29 @@ import {
14
13
  LeakReportSchema,
15
14
  PrivacyChaosGate,
16
15
  PullRequestResultSchema,
17
- RemediationEngine,
18
16
  RemediationResultSchema,
19
17
  RequestEventSchema,
20
18
  ReviewVerdictSchema,
21
19
  StorageSnapshotSchema,
22
20
  TrackerCategorySchema,
23
21
  TrackerViolationSchema,
24
- assessReport,
25
- buildCoverHtml,
26
- buildEvidenceHtml,
27
- buildEvidenceMarkdown,
28
- checkTargetReachable,
29
- codeSolutionsFor,
30
- comparisonIntro,
31
- consentSignalTable,
32
- coverLede,
33
- deriveReportFacts,
34
- evidenceLabelOf,
35
- findingsCountText,
36
- gateNotesOf,
37
- groupFindings,
38
22
  isEnvKeyAllowedFromFile,
39
23
  isLoopbackTarget,
40
- judgeRescan,
41
- leakSubpagePaths,
42
- licenseSkipText,
43
24
  loadProjectEnv,
44
25
  parseGateConfig,
45
- placeholderLegend,
46
- printScanProgress,
47
- problemsTextOf,
48
- provenanceText,
49
- renderDeluxeCombined,
50
- renderDeluxePdf,
51
- reproductionText,
52
- requestedLicensedFeatures,
53
26
  resolveEntitlement,
54
- resolveGateConfig,
55
- resolveReportGate,
56
- statusLabelOf,
57
- uncheckableReasons,
58
- uncheckableReasonsForReport,
59
- waitForVerifyUrl
60
- } from "./chunk-RXTWCLK5.js";
27
+ resolveGateConfig
28
+ } from "./chunk-R4ZBJZOY.js";
61
29
 
62
30
  // src/index.ts
63
- async function runGate(optionsOrConfig) {
31
+ async function runGate(optionsOrConfig, options = {}) {
64
32
  const input = "targetUrl" in optionsOrConfig && typeof optionsOrConfig.targetUrl === "string" ? optionsOrConfig : resolveGateConfig(optionsOrConfig);
65
- const gate = new PrivacyChaosGate();
66
- return gate.run(input);
33
+ const licenseKey = options.licenseKey ?? ("license" in optionsOrConfig && typeof optionsOrConfig.license === "string" ? optionsOrConfig.license : void 0);
34
+ return new PrivacyChaosGate().run(input, { licenseKey });
67
35
  }
68
36
  export {
69
37
  BannerKindSchema,
70
38
  CORE_SCENARIOS,
71
- ChaosScanner,
72
39
  ChaosScenarioSchema,
73
40
  ENV_FILE_KEYS_HELP,
74
41
  EXIT,
@@ -81,48 +48,17 @@ export {
81
48
  LeakReportSchema,
82
49
  PrivacyChaosGate,
83
50
  PullRequestResultSchema,
84
- RemediationEngine,
85
51
  RemediationResultSchema,
86
52
  RequestEventSchema,
87
53
  ReviewVerdictSchema,
88
54
  StorageSnapshotSchema,
89
55
  TrackerCategorySchema,
90
56
  TrackerViolationSchema,
91
- assessReport,
92
- buildCoverHtml,
93
- buildEvidenceHtml,
94
- buildEvidenceMarkdown,
95
- checkTargetReachable,
96
- codeSolutionsFor,
97
- comparisonIntro,
98
- consentSignalTable,
99
- coverLede,
100
- deriveReportFacts,
101
- evidenceLabelOf,
102
- findingsCountText,
103
- gateNotesOf,
104
- groupFindings,
105
57
  isEnvKeyAllowedFromFile,
106
58
  isLoopbackTarget,
107
- judgeRescan,
108
- leakSubpagePaths,
109
- licenseSkipText,
110
59
  loadProjectEnv,
111
60
  parseGateConfig,
112
- placeholderLegend,
113
- printScanProgress,
114
- problemsTextOf,
115
- provenanceText,
116
- renderDeluxeCombined,
117
- renderDeluxePdf,
118
- reproductionText,
119
- requestedLicensedFeatures,
120
61
  resolveEntitlement,
121
62
  resolveGateConfig,
122
- resolveReportGate,
123
- runGate,
124
- statusLabelOf,
125
- uncheckableReasons,
126
- uncheckableReasonsForReport,
127
- waitForVerifyUrl
63
+ runGate
128
64
  };
@@ -9,8 +9,8 @@
9
9
  **Kategorie:** CI-Gate · Chaos-Scanner · Auto-Fix-PR
10
10
  **Auftraggeber/Pilot:** Beispiel (Platzhalter), Read-only Audit, 20.10.2026
11
11
  **Status:** Gate BLOCKED — 10 Tracker-Leaks vor Einwilligung (Beispielwerte)
12
- **Rechtsraum:** `CH,EU` (Standard). Nach EU (opt-in) blockieren Tracker vor der Einwilligung; nach CH allein (opt-out) wären
13
- die Befunde vor der Einwilligung Hinweise, blockierend bliebe Tracking nach dem Ablehnen.
12
+ **Rechtsraum:** `CH,EU` (Standard). Nach EU (opt-in) und nach CH (Widerspruch vor Aktivierung, seit 0.3.8) blockieren Werbe- und
13
+ Analyse-Tracker vor der Einwilligung; rein funktionale Anbieter und cookielose Reichweitenmessung sind Hinweise.
14
14
 
15
15
  > ⚠️ **Hinweis / Disclaimer:** CPCG ist ein technisches Hilfsmittel zur Unterstützung bei der
16
16
  > Implementierung von Consent-Lösungen — **keine Rechtsberatung** und keine Garantie für
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "cuonztech-privacy-chaos-gate",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "CuonzTech Privacy Chaos Gate — CI/CD Consent-Scanner, Chaos-Szenarien und Auto-Fix-PR",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js"
11
+ },
12
+ "./package.json": "./package.json"
13
+ },
7
14
  "bin": {
8
15
  "cpcg": "dist/cli.js"
9
16
  },