@sdods/cli 0.5.1 → 0.5.2
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/.tsbuildinfo +1 -1
- package/dist/commands/run.js +11 -1
- package/package.json +8 -8
package/dist/commands/run.js
CHANGED
|
@@ -3,7 +3,7 @@ import { isAbsolute, join, relative, resolve as resolvePath } from 'node:path';
|
|
|
3
3
|
import { execa } from 'execa';
|
|
4
4
|
import pc from 'picocolors';
|
|
5
5
|
import { RecordingModeSchema, newRunId, runFiles, } from '@sdods/contracts';
|
|
6
|
-
import { SdodsError, CLI_OVERRIDES_ENV, VERSION, formatFindings, lintProject, listGeneratedProjects, moduleByName, moduleDir, normalizeTagExpr, parseTagExpr, serializeCliOverrides, setupTierOf, } from '@sdods/core';
|
|
6
|
+
import { SdodsError, CLI_OVERRIDES_ENV, VERSION, formatFindings, lintProject, listGeneratedProjects, moduleByName, moduleDir, normalizeTagExpr, parseTagExpr, redactRunTraces, serializeCliOverrides, setupTierOf, } from '@sdods/core';
|
|
7
7
|
import { analyzeChangeImpact } from '@sdods/mcp';
|
|
8
8
|
import { createContext } from '../context.js';
|
|
9
9
|
import { browserStatuses } from './browsers.js';
|
|
@@ -378,6 +378,16 @@ export async function runCommand(flags, cmd) {
|
|
|
378
378
|
manifest.finishedAt = new Date().toISOString();
|
|
379
379
|
manifest.exitCode = exitCode;
|
|
380
380
|
writeManifest();
|
|
381
|
+
// Traces carry the session of the account that ran each test (cookies, Authorization headers,
|
|
382
|
+
// localStorage/IndexedDB tokens). Redact every copy before anything reads the run directory:
|
|
383
|
+
// ingest, integrations, and the CI step that uploads it as an artifact (#101).
|
|
384
|
+
if (cfg.project.evidence.redactTraces !== false) {
|
|
385
|
+
const redaction = redactRunTraces(runDir);
|
|
386
|
+
if (redaction.files.length)
|
|
387
|
+
out(pc.dim(`traces: redacted ${redaction.values} credential value(s) in ${redaction.files.length} file(s)`));
|
|
388
|
+
for (const e of redaction.errors)
|
|
389
|
+
warn(`trace redaction failed for ${relative(ctx.rootDir, e.file)}: ${e.error}`);
|
|
390
|
+
}
|
|
381
391
|
const summary = readSummary(runDir, runId, exitCode, Date.now() - started);
|
|
382
392
|
if (summary)
|
|
383
393
|
writeFileSync(join(runDir, runFiles.summary), JSON.stringify(summary, null, 2));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdods/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "SDODS command line: run, record, analyze, agents, MCP server, scheduler and the web server.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "SDODS <admin@sdods.com>",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"node": ">=22"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@sdods/contracts": "0.5.
|
|
27
|
-
"@sdods/core": "0.5.
|
|
26
|
+
"@sdods/contracts": "0.5.2",
|
|
27
|
+
"@sdods/core": "0.5.2",
|
|
28
28
|
"commander": "^15.0.0",
|
|
29
29
|
"execa": "^10.0.1",
|
|
30
30
|
"picocolors": "^1.1.1",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"zod": "^4.5.4",
|
|
34
34
|
"@playwright/test": "^1.63.0",
|
|
35
35
|
"playwright-core": "^1.63.0",
|
|
36
|
-
"@sdods/integrations": "0.5.
|
|
37
|
-
"@sdods/mcp": "0.5.
|
|
38
|
-
"@sdods/agents": "0.5.
|
|
39
|
-
"@sdods/db": "0.5.
|
|
36
|
+
"@sdods/integrations": "0.5.2",
|
|
37
|
+
"@sdods/mcp": "0.5.2",
|
|
38
|
+
"@sdods/agents": "0.5.2",
|
|
39
|
+
"@sdods/db": "0.5.2",
|
|
40
40
|
"csv-parse": "^7.0.2",
|
|
41
|
-
"@sdods/server": "0.5.
|
|
41
|
+
"@sdods/server": "0.5.2"
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://sdods.com",
|
|
44
44
|
"bugs": {
|