feat: add guarded BPM category and template workflow
Implement server-owned read-only sample checks, category publication, explicit order-version identity and durable PDF/archive/notification steps. Freeze category-bound templates and recipients for isolated scheduled delivery, and require human verification for unknown SMTP outcomes. Add order/batch views and local HTTP/browser/PDF/archive regression coverage. Fix Unicode Windows startup links found by full regression using IShellLinkW. Automatic processing and sending stay disabled; no service deployment. Validation: npm ci; npm test -- --test-concurrency=1 (242 pass, 1 optional ZCode skip, 0 fail); 31 syntax checks; scoped independent code review. Live BPM V13/SMB/163 acceptance remains pending.
This commit is contained in:
1 parent
6e795a99b7
commit
94fc985553
38 files changed
+1204
-131
No files matched your search
@@ -15,6 +15,9 @@ test('formal runtime wires BPM sessions and preserves users across restart',asyn
|
||||
t.after(async()=>{if(app)await app.stop();fs.rmSync(stateDir,{recursive:true,force:true});});
|
||||
const config={port:await freePort(),dashboard:{host:'127.0.0.1',port:await freePort()}};
|
||||
app=await main({stateDir,config,quiet:true});
|
||||
assert.ok(app.pipeline,'runtime must wire the guarded order pipeline');
|
||||
assert.equal(app.pipeline.config().enabled,false);
|
||||
assert.equal(app.pipeline.config().sendEnabled,false);
|
||||
const base=`http://127.0.0.1:${config.dashboard.port}`;
|
||||
const post=(route,body,cookie)=>fetch(base+route,{method:'POST',headers:{Origin:base,'Content-Type':'application/json',...(cookie?{Cookie:cookie}:{})},body:JSON.stringify(body)});
|
||||
const bootstrap=await post('/api/bootstrap',{username:'runtime-admin',password:'Runtime-test-password-123'});
|
||||
|
||||
Reference in new issue
Block a user