codeproof 1.2.0 → 1.2.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.
@@ -40,21 +40,11 @@ export async function runReportDashboard({ cwd }) {
40
40
  return;
41
41
  }
42
42
 
43
- const integration = config?.integration || {};
44
- const integrationEnabled = features.integration && Boolean(integration.enabled);
45
-
46
- if (integrationEnabled) {
47
- // Integrations are fail-open: never throw on network errors.
48
- withFailOpenIntegration(() => {
49
- sendReportToServer(latestReport, {
50
- enabled: true,
51
- endpointUrl: integration.endpointUrl
52
- });
53
- });
54
- logInfo("Report sent to server.");
55
- } else {
56
- reportFeatureDisabled("Integration", verbose, logInfo);
57
- }
43
+ // Integrations are fail-open: never throw on network errors.
44
+ withFailOpenIntegration(() => {
45
+ sendReportToServer(latestReport, { enabled: true });
46
+ });
47
+ logInfo("Report sent to server.");
58
48
 
59
49
  if (latestReport?.projectId) {
60
50
  logInfo(`View dashboard: https://dashboard.codeproof.dev/project/${latestReport.projectId}`);
package/commands/run.js CHANGED
@@ -160,23 +160,12 @@ export async function runCli({ args = [], cwd }) {
160
160
  writeReport({ projectRoot: gitRoot, report });
161
161
  logSuccess("Report saved locally.");
162
162
 
163
- const integration = config?.integration || {};
164
- const integrationEnabled = features.integration && Boolean(integration.enabled);
165
-
166
- // Always send to server in pre-commit or manual mode
167
- if (integrationEnabled) {
168
- logInfo("Syncing report to server...");
169
- await withFailOpenIntegration(async () => {
170
- // Network calls are fail-open; never affect exit codes.
171
- return await sendReportToServer(report, {
172
- enabled: true,
173
- endpointUrl: integration.endpointUrl
174
- });
175
- });
176
- logSuccess("Report synced to server.");
177
- } else {
178
- reportFeatureDisabled("Integration", verbose, logInfo);
179
- }
163
+ logInfo("Syncing report to server...");
164
+ await withFailOpenIntegration(async () => {
165
+ // Network calls are fail-open; never affect exit codes.
166
+ return await sendReportToServer(report, { enabled: true });
167
+ });
168
+ logSuccess("Report synced to server.");
180
169
  }, () => {
181
170
  logWarn("Failed to process report. Continuing without blocking.");
182
171
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeproof",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "CodeProof CLI",
5
5
  "type": "module",
6
6
  "bin": {