Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
bf99dcb
fix(ops): make recording exporters honor --help without writing artif…
nish3451 Aug 11, 2026
2b0f3b3
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 12, 2026
831bec0
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 12, 2026
6670a4f
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 12, 2026
08da46a
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 12, 2026
71b64f3
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 12, 2026
883dccb
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 12, 2026
e9c7414
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 12, 2026
27b92c7
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 12, 2026
e093da8
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 12, 2026
4cbe390
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 12, 2026
21805b4
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 13, 2026
5d30b79
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 13, 2026
e204128
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 13, 2026
8cab031
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 13, 2026
c55cd39
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 13, 2026
ca0d6ff
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 13, 2026
eaf5116
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 13, 2026
4d82c3d
merge: resolve conflicts with main (adopt shared handleHelp refactor)
nish3451 Aug 18, 2026
fde1cd9
Merge branch 'main' into fix/recording-exporter-cli-help-lane1-20260812
nish3451 Aug 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/export-recording-cockpit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import { sendChannelGuidance } from "./lib/send-channel-guidance.mjs";
import { routedContactPlan } from "./lib/contact-route.mjs";
import { listOutboundProspectFolders } from "./lib/outbound-prospects.mjs";

if (process.argv.includes("--help") || process.argv.includes("-h")) {
console.log("Usage: npm run prospect:cockpit -- [--limit=5] [--output=prospects/recording-cockpit.html]");
process.exit(0);
}

const limitArg = process.argv.find((arg) => arg.startsWith("--limit="));
const limit = limitArg ? Number(limitArg.split("=")[1]) : 5;
const outputArg = process.argv.find((arg) => arg.startsWith("--output="));
Expand Down
5 changes: 5 additions & 0 deletions scripts/export-recording-queue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import { join } from "node:path";
import { listOutboundProspectFolders } from "./lib/outbound-prospects.mjs";
import { checkProspectReadiness, prospectWarningWeight } from "./lib/prospect-readiness.mjs";

if (process.argv.includes("--help") || process.argv.includes("-h")) {
console.log("Usage: npm run prospect:queue -- [--limit=5] [--output=prospects/recording-queue.md]");
process.exit(0);
}

const limitArg = process.argv.find((arg) => arg.startsWith("--limit="));
const limit = limitArg ? Number(limitArg.split("=")[1]) : 5;
const outputArg = process.argv.find((arg) => arg.startsWith("--output="));
Expand Down
5 changes: 5 additions & 0 deletions scripts/export-recording-rehearsal-check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import { routedContactPlan } from "./lib/contact-route.mjs";
import { localIsoDate } from "./date-utils.mjs";
import { listOutboundProspectFolders } from "./lib/outbound-prospects.mjs";

if (process.argv.includes("--help") || process.argv.includes("-h")) {
console.log("Usage: npm run prospect:rehearsal -- [--limit=5] [--include-smoke] [--output=prospects/recording-rehearsal-check.md] [--html=prospects/recording-rehearsal-check.html]");
process.exit(0);
}

const args = process.argv.slice(2);
const limitArg = args.find((arg) => arg.startsWith("--limit="));
const outputArg = args.find((arg) => arg.startsWith("--output="));
Expand Down
5 changes: 5 additions & 0 deletions scripts/export-recording-teleprompter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import { sendChannelGuidance } from "./lib/send-channel-guidance.mjs";
import { routedContactPlan } from "./lib/contact-route.mjs";
import { listOutboundProspectFolders } from "./lib/outbound-prospects.mjs";

if (process.argv.includes("--help") || process.argv.includes("-h")) {
console.log("Usage: npm run prospect:teleprompter -- [--limit=5] [--output=prospects/recording-teleprompter.html]");
process.exit(0);
}

const limitArg = process.argv.find((arg) => arg.startsWith("--limit="));
const limit = limitArg ? Number(limitArg.split("=")[1]) : 5;
const outputArg = process.argv.find((arg) => arg.startsWith("--output="));
Expand Down
19 changes: 19 additions & 0 deletions scripts/test-active-operator-surfaces.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,25 @@ try {
}
for (const path of privateRuntimeArtifacts) eq(existsSync(join(T, path)), true, `Private runtime artifact is missing: ${path}`)

// Recording exporters must honor --help/-h before doing any work: print
// usage, exit 0, and never write or overwrite a recording artifact.
const recordingHelpSurface = [
["export-recording-queue.mjs", ["prospects/recording-queue.md"]],
["export-recording-cockpit.mjs", ["prospects/recording-cockpit.html"]],
["export-recording-teleprompter.mjs", ["prospects/recording-teleprompter.html"]],
["export-recording-rehearsal-check.mjs", ["prospects/recording-rehearsal-check.md", "prospects/recording-rehearsal-check.html"]]
]
for (const [name, artifactPaths] of recordingHelpSurface) {
for (const path of artifactPaths) writeFileSync(join(T, path), "help sentinel\n")
const helped = run([`scripts/${name}`, "--help"])
eq(helped.status, 0, `${name} --help must exit 0: ${helped.stderr || helped.stdout}`)
mat(helped.stdout, /Usage:/, `${name} --help must print usage`)
for (const path of artifactPaths) {
deq(readFileSync(join(T, path), "utf8"), "help sentinel\n", `${name} --help must not overwrite ${path}`)
unlinkSync(join(T, path))
}
}

const application = JSON.parse(readFileSync(join(T, "contracts/fixtures/sprint-application.v1.json"), "utf8"))
const importResult = run(["scripts/import-sprint-application.mjs", "contracts/fixtures/sprint-application.v1.json"])
eq(importResult.status, 0)
Expand Down