Repository navigation
feat(cli): add safe markdown thread export - #163
Merged
Merged
Conversation
Owner
|
merge |
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 |
This was referenced Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 lintpnpm -r typecheckpnpm -r buildenv -u RELAY_TEST_DATABASE_URL -u RELAY_DATABASE_URL pnpm --filter @agentrelay/protocol --filter relay --filter agentrelay-mcp --filter agentrelay-node testpnpm --filter agentrelay-mcp exec vitest run src/cli/export-thread.test.ts src/tools/tools.test.tspnpm --filter agentrelay-mcp exec vitest run src/bin/export-thread-cli.test.tsRELAY_TEST_DATABASE_URL=postgres://agentrelay:agentrelay-dev@localhost:5433/agentrelay RELAY_TEST_TRUNCATE_VIA_PSQL=1 pnpm --filter relay test:integrationRELAY_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.tsgit diff --checkandgit diff --cached --checknode --input-type=modulewith an inline local Markdown-link checker for the changed public documentationPassing 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.tspnpm lint(four existing unused-suppression warnings)git diff --checkgit diff --cached --checknode --input-type=modulewith an inline local Markdown-link checker forautopilot/STATE.mdandautopilot/JOURNAL.mdProduct 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.