Skip to content

feat(cli): add safe markdown thread export - #163

Merged
github-actions[bot] merged 9 commits into
mainfrom
autopilot
Oct 27, 2026
Merged

github-actions[bot] merged 9 commits into
mainfrom
autopilot

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add agentrelay export-thread <id> --out <path> using the existing participant-authorized thread fetch. Export deterministic Markdown containing typed thread data, ordered messages, lifecycle/resolution fields, and preserved provenance; store it with exclusive mode-0600 creation, refuse existing paths, and sanitize fetch/write failures. Include focused regressions, usage documentation, and run memory; no additional product issue has been implemented.

Closes #40

Testing

Passing implementation verification from run 40297266338 (before its product commit):

  • pnpm lint
  • pnpm -r typecheck
  • pnpm -r build
  • env -u RELAY_TEST_DATABASE_URL -u RELAY_DATABASE_URL pnpm --filter @agentrelay/protocol --filter relay --filter agentrelay-mcp --filter agentrelay-node test
  • pnpm --filter agentrelay-mcp exec vitest run src/cli/export-thread.test.ts src/tools/tools.test.ts
  • pnpm --filter agentrelay-mcp exec vitest run src/bin/export-thread-cli.test.ts
  • RELAY_TEST_DATABASE_URL=postgres://agentrelay:agentrelay-dev@localhost:5433/agentrelay RELAY_TEST_TRUNCATE_VIA_PSQL=1 pnpm --filter relay test:integration
  • RELAY_TEST_DATABASE_URL=postgres://agentrelay:agentrelay-dev@localhost:5433/agentrelay RELAY_TEST_TRUNCATE_VIA_PSQL=1 pnpm --filter agentrelay-e2e exec vitest run src/handoff-roundtrip.e2e.test.ts
  • git diff --check and git diff --cached --check
  • node --input-type=module with an inline local Markdown-link checker for the changed public documentation

Passing memory-only verification in run 40297811021:

  • pnpm install --frozen-lockfile (expected warnings for unbuilt Node binaries)
  • RELAY_DATABASE_URL=postgres://agentrelay:agentrelay-dev@localhost:5433/agentrelay pnpm --filter relay exec node --import tsx/esm src/db/migrate.ts
  • pnpm lint (four existing unused-suppression warnings)
  • git diff --check
  • git diff --cached --check
  • node --input-type=module with an inline local Markdown-link checker for autopilot/STATE.md and autopilot/JOURNAL.md

Product typecheck, build, unit, integration, and process tests were not rerun in the latest memory-only session.

Scope

No Relay mutations, new audit claims, dependencies, migrations, runtime expansion, workflow edits, or release changes. Archives deliberately retain authored content and are not secret-redacted. #40 is implemented on this branch, not yet merged into main. #165 awaits selection among #111, #10, and #103; the recommendation is not approval. Run-memory paths require the owner's review on GitHub under the repository's merge policy.

@github-actions github-actions Bot mentioned this pull request Oct 26, 2026
@github-actions
github-actions Bot marked this pull request as ready for review October 26, 2026 09:26
@github-actions
github-actions Bot requested a review from swayamg20 as a code owner October 26, 2026 09:26
@github-actions github-actions Bot changed the title chore(autopilot): update run memory feat(cli): add safe markdown thread export Oct 26, 2026
Comment thread mcp-server/src/cli/export-thread.test.ts Fixed
@swayamg20

Copy link
Copy Markdown
Owner

merge

@github-actions
github-actions Bot merged commit 4acf32d into main Oct 27, 2026
13 checks passed
@github-actions

Copy link
Copy Markdown
Contributor Author

@swayamg20 Merged #163 into main as 4acf32d. Closed #40. CI on main has been started. Reply merges do not publish the relay container image; a merge or push you make yourself does.

Run: https://github.com/swayamg20/AgentRelay/actions/runs/40597853353

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a safe agentrelay export-thread Markdown archive command

2 participants