Skip to content

Add structured automation outputs and bump to 0.1.35-rc.2#10

Merged
Ring-wdr merged 1 commit intomainfrom
feat/round2-cli-ux-rc2
Mar 26, 2026
Merged

Add structured automation outputs and bump to 0.1.35-rc.2#10
Ring-wdr merged 1 commit intomainfrom
feat/round2-cli-ux-rc2

Conversation

@Ring-wdr
Copy link
Owner

Summary

  • add the README-driven CLI ergonomics shipped from the demo review follow-up
  • keep the release on the prerelease lane by bumping package.json and package-lock.json to 0.1.35-rc.2 so npm trusted publishing continues to target the next dist-tag
  • update docs to match the new command surface (rdt doctor, tree stats, structured search/source output, and click delivery controls)

Validation

  • npm run build
  • npm test
  • README or docs updated when behavior changed

Maintainer Notes

  • This PR stays on the 0.1.35 prerelease line intentionally instead of minting a new stable tag while follow-up validation is still ongoing.
  • Follow-up work remains separate: selector targeting improvements, broad search payload trimming, and the inconsistent session open --format json stdout report from round 2.

@Ring-wdr Ring-wdr merged commit f2603c3 into main Mar 26, 2026
4 checks passed
@Ring-wdr Ring-wdr deleted the feat/round2-cli-ux-rc2 branch March 26, 2026 06:28
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 73da14fd2a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const response = await requestSession(options.session, "tree.get");
const action = command === "stats" ? "tree.stats" : "tree.get";
const response = await requestSession(options.session, action, {
top: options.top ? Number(options.top) : undefined,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Respect explicit --top 0 in tree stats requests

The payload builder drops --top 0 because the truthy check treats 0 as absent, so rdt tree stats --top 0 sends top: undefined and the runtime falls back to the default (10) instead of honoring the caller’s explicit limit handling. This produces unexpectedly larger summaries and diverges from runtime-side clamping behavior.

Useful? React with 👍 / 👎.

Comment on lines +1125 to +1128
if (!details) {
return createRuntimeError(
"node-not-found",
`Node "${nodeId}" is not available in the current snapshot or commit context.`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve raw source.reveal null semantics for missing nodes

This now returns a runtime error whenever the node is missing, even when structured is not requested. Previously, raw source reveal returned null for missing nodes (node ? node.source : null), and the docs in this change describe unstructured mode as preserving legacy behavior; with this branch, stale or out-of-scope node IDs now hard-fail automation flows that previously treated missing source data as nullable.

Useful? React with 👍 / 👎.

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.

1 participant