TenantAtlas/apps/platform/.pnpm-store/v10/files/29/8ce8c3b756a9cf8f5e7f9d05311dbabc49131d885034d806502f6cb94780a24e6c09093b3a946f642f66b51e50e7cea7c27d8473666a02bd23d2b66f3657b7
ahmido 1fec9c6f9d
Some checks failed
Main Confidence / confidence (push) Failing after 45s
feat: compress governance operator outcomes (#253)
## Summary
- introduce surface-aware compressed governance outcomes and reuse the shared truth/explanation seams for operator-first summaries
- apply the compressed outcome hierarchy across baseline, evidence, review, review-pack, canonical review/evidence, and artifact-oriented operation-run surfaces
- expand spec 214 fixtures and Pest coverage, and fix tenant-panel route assertions by generating explicit tenant-panel URLs in the affected Filament tests

## Validation
- `cd apps/platform && ./vendor/bin/sail bin pint --dirty --format agent`
- focused governance compression suite from `specs/214-governance-outcome-compression/quickstart.md` passed (`68` tests, `445` assertions)
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Filament/InventoryItemResourceTest.php tests/Feature/Filament/BackupSetUiEnforcementTest.php tests/Feature/Filament/RestoreRunUiEnforcementTest.php` passed (`18` tests, `81` assertions)

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #253
2026-04-19 12:30:36 +00:00

50 lines
1.9 KiB
Plaintext

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSpawnOpts = void 0;
exports.spawn = spawn;
const assert_1 = __importDefault(require("assert"));
const child_process_1 = require("child_process");
const supports_color_1 = __importDefault(require("supports-color"));
/**
* Spawns a command using `cmd.exe` on Windows, or `/bin/sh` elsewhere.
*/
// Implementation based off of https://github.com/mmalecki/spawn-command/blob/v0.0.2-1/lib/spawn-command.js
function spawn(command, options,
// For testing
spawn = child_process_1.spawn, process = global.process) {
let file = '/bin/sh';
let args = ['-c', command];
if (process.platform === 'win32') {
file = 'cmd.exe';
args = ['/s', '/c', `"${command}"`];
options.windowsVerbatimArguments = true;
}
return spawn(file, args, options);
}
const getSpawnOpts = ({ colorSupport = supports_color_1.default.stdout, cwd, process = global.process, ipc, stdio = 'normal', env = {}, }) => {
const stdioValues = stdio === 'normal'
? ['pipe', 'pipe', 'pipe']
: stdio === 'raw'
? ['inherit', 'inherit', 'inherit']
: ['pipe', 'ignore', 'ignore'];
if (ipc != null) {
// Avoid overriding the stdout/stderr/stdin
assert_1.default.ok(ipc > 2, '[concurrently] the IPC channel number should be > 2');
stdioValues[ipc] = 'ipc';
}
return {
cwd: cwd || process.cwd(),
stdio: stdioValues,
...(process.platform.startsWith('win') && { detached: false }),
env: {
...(colorSupport ? { FORCE_COLOR: colorSupport.level.toString() } : {}),
...process.env,
...env,
},
};
};
exports.getSpawnOpts = getSpawnOpts;