buildproof 3.12.0 → 3.12.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/core/config.js CHANGED
@@ -21,7 +21,7 @@ const DEFAULTS = {
21
21
  budget: { maxAiCallsPerTask: 3, maxTaskSeconds: 900 },
22
22
  commandTimeoutMs: 300000,
23
23
  maxScopeFiles: 8,
24
- licenseServer: '', // e.g. https://buildproof.dev - countersigned, publicly logged certificates
24
+ licenseServer: NPM_MODE ? 'https://buildproof.mgrprosnetwork.com' : '', // installed copies use the BuildProof server (trial, monthly renewals, countersigned certificates); a dev checkout stays offline
25
25
  maxFileBytes: 60000,
26
26
  maxProjectFiles: 100000, // more files than this: the guard refuses (it never guards half a project)
27
27
  bugHunter: 'warn', // hidden-bug hunt on proven changes: 'warn' (shown, not blocking), 'block', 'off'
package/core/license.js CHANGED
@@ -99,8 +99,8 @@ function onlineTrial(){
99
99
  const url=new URL('/api/trial/start',base).href;
100
100
  const childCode="const u=process.argv[1],d=process.argv[2],m=u.startsWith('https:')?require('https'):require('http');const r=m.request(u,{method:'POST',headers:{'content-type':'application/json'},timeout:3000},s=>{let b='';s.on('data',x=>b+=x);s.on('end',()=>{if(s.statusCode!==200)process.exit(4);try{const v=JSON.parse(b);if(!v.ok||!['trial','expired'].includes(v.status)||!Number.isInteger(v.daysLeft))process.exit(5);process.stdout.write(JSON.stringify(v))}catch{process.exit(6)}})});r.on('timeout',()=>r.destroy());r.on('error',()=>process.exit(7));r.end(JSON.stringify({device:d}))";
101
101
  const r=cp.spawnSync(process.execPath,['-e',childCode,url,device],{encoding:'utf8',timeout:4500,windowsHide:true});
102
- if(r.status!==0||r.error)return {status:'expired',daysLeft:0,reason:'trial_server_unavailable'};
103
- try{const result=JSON.parse(r.stdout);global.__bpTrialCache=result;global.__bpTrialCacheAt=Date.now();return result}catch{return {status:'expired',daysLeft:0,reason:'trial_response_invalid'}}
102
+ if(r.status!==0||r.error)return null; // server unreachable: use the local trial clock, never lock a user out because of the network
103
+ try{const result=JSON.parse(r.stdout);global.__bpTrialCache=result;global.__bpTrialCacheAt=Date.now();return result}catch{return null}
104
104
  }
105
105
  function status() {
106
106
  const now = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildproof",
3
- "version": "3.12.0",
3
+ "version": "3.12.1",
4
4
  "description": "BuildProof - proof gate for AI-written code: test-integrity guard, fail-closed checks, scope lock, full rollback, signed certificates, local AI under supervision.",
5
5
  "main": "core/server.js",
6
6
  "scripts": {