humanish 0.83.2 → 0.84.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/README.md +3 -1
- package/dist/cua-actor-lab.js +3 -2
- package/dist/cua-actor-lab.js.map +1 -1
- package/dist/export-bundle.d.ts +7 -0
- package/dist/export-bundle.js +431 -0
- package/dist/export-bundle.js.map +1 -0
- package/dist/export.d.ts +4 -1
- package/dist/export.js +19 -0
- package/dist/export.js.map +1 -1
- package/dist/feedback-proof.d.ts +8 -0
- package/dist/feedback-proof.js +44 -0
- package/dist/feedback-proof.js.map +1 -0
- package/dist/feedback.js +6 -5
- package/dist/feedback.js.map +1 -1
- package/dist/observer-app.html +6 -6
- package/dist/observer-data.d.ts +3 -4
- package/dist/observer-data.js.map +1 -1
- package/dist/observer.js +5 -0
- package/dist/observer.js.map +1 -1
- package/dist/oss-meta-lab.js +6 -5
- package/dist/oss-meta-lab.js.map +1 -1
- package/dist/program.js +9 -5
- package/dist/program.js.map +1 -1
- package/dist/run.js +57 -1
- package/dist/run.js.map +1 -1
- package/docs/contracts/feedback.md +15 -0
- package/docs/contracts/run-bundle.md +47 -0
- package/docs/contracts/schemas.md +1 -1
- package/docs/goals/current.md +8 -2
- package/docs/principles/invariants-and-defaults.md +6 -5
- package/docs/ramp/README.md +1 -1
- package/docs/release/0.84.0-redacted-evidence.md +42 -0
- package/docs/release/0.84.1-portable-feedback.md +20 -0
- package/package.json +1 -1
package/dist/program.js
CHANGED
|
@@ -943,20 +943,24 @@ function registerReviewCommand(parent, io) {
|
|
|
943
943
|
function registerExportCommand(parent, io) {
|
|
944
944
|
parent
|
|
945
945
|
.command("export")
|
|
946
|
-
.description("
|
|
947
|
-
.summary("Export
|
|
946
|
+
.description("Export a run as self-contained Observer HTML, or a separately verified redacted bundle workspace. HTML requires share_ready unless --local-only; bundle format requires --redact-screenshots and preserves the original.")
|
|
947
|
+
.summary("Export Observer HTML or a redacted bundle workspace.")
|
|
948
948
|
.option("--run <id>", "Run id or 'latest'.", "latest")
|
|
949
|
-
.
|
|
949
|
+
.addOption(new Option("--format <format>", "Output format; bundle creates a new standalone workspace.").choices(["html", "bundle"]).default("html"))
|
|
950
|
+
.option("--redact-screenshots", "Bundle only: blur PNG screenshots in a verified copy; keep original evidence unchanged.")
|
|
951
|
+
.option("--out <path>", "HTML file or new bundle workspace. Default: .humanish/exports/<runId>.html or <runId>-redacted/.")
|
|
950
952
|
.option("--local-only", "Export a bundle that is not share_ready, with a LOCAL ONLY banner in the file.")
|
|
951
953
|
.option("--max-bytes <n>", "Refuse an export larger than this.", String(DEFAULT_EXPORT_MAX_BYTES))
|
|
952
954
|
.option("--cwd <path>", "Target project directory.", ".")
|
|
953
955
|
.option("--json", JSON_OPTION_DESCRIPTION)
|
|
954
956
|
.action(async (options, command) => {
|
|
955
|
-
const maxBytes = Number.parseInt(options.maxBytes, 10);
|
|
957
|
+
const maxBytes = options.format === "bundle" ? Number(options.maxBytes) : Number.parseInt(options.maxBytes, 10);
|
|
956
958
|
const result = await exportRun(options.cwd, options.run, {
|
|
959
|
+
format: options.format,
|
|
960
|
+
...(options.redactScreenshots === undefined ? {} : { redactScreenshots: options.redactScreenshots }),
|
|
957
961
|
...(options.out === undefined ? {} : { out: options.out }),
|
|
958
962
|
...(options.localOnly === undefined ? {} : { localOnly: options.localOnly }),
|
|
959
|
-
...(Number.isFinite(maxBytes) && maxBytes > 0 ? { maxBytes } : {})
|
|
963
|
+
...(options.format === "bundle" || (Number.isFinite(maxBytes) && maxBytes > 0) ? { maxBytes } : {})
|
|
960
964
|
});
|
|
961
965
|
writeResult(command, io, result, formatExportHuman);
|
|
962
966
|
io.setExitCode(result.ok ? 0 : 2);
|