Skip to content

feat: add source update and delete commands#324

Merged
siisee11 merged 2 commits into
mainfrom
codex/source-update-delete
Jul 22, 2026
Merged

feat: add source update and delete commands#324
siisee11 merged 2 commits into
mainfrom
codex/source-update-delete

Conversation

@siisee11

Copy link
Copy Markdown
Contributor

One-Line Summary

Users can update and delete organization data sources from the OneQuery CLI.

User-Facing Changes

  • Add onequery source update <source> --input <path|->.
  • Add onequery source delete <source> --yes.
  • Expose source write capability through the organization capability response.
  • Validate and connection-test merged credentials before persisting supported source updates.

Why This Changed

Data-source mutations were not part of the OneQuery contract, which prevented OneQuery from acting as the source of truth and forced downstream clients to own mutation behavior.

How It Changed

  • Add update/delete RPCs and generated TypeScript/Rust protocol bindings.
  • Add organization-scoped authorization and encrypted credential mutation logic.
  • Add CLI parsing, transport, output handling, and confirmation requirements.
  • Add domain, authorization, service snapshot, and CLI parsing coverage.

Verification

  • cargo test -p onequery-cli --bin onequery (447 passed)
  • bunx turbo test --filter=@onequery/cli-server --filter=@onequery/server --json (455 passed)
  • bunx turbo typecheck --filter=@onequery/cli-server --filter=@onequery/server
  • just fix -p onequery-cli
  • pre-commit format and changed-file lint hooks

The repository-wide type-aware lint currently reports 8 unrelated existing errors in Landing/Astro generated types and deprecated Linear adapter APIs. The full cargo test -p onequery-cli run also has one unrelated environment-sensitive failure in api_json_stdout_stays_parseable_when_verbose_startup_failure_is_logged; source mutation tests pass.

Video / Screenshot (Optional)

  • N/A

@siisee11
siisee11 requested a review from lentil32 as a code owner July 22, 2026 03:48
@siisee11
siisee11 enabled auto-merge (squash) July 22, 2026 03:48
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 22, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
onequery-landing 1ed4310 Commit Preview URL

Branch Preview URL
Jul 22 2026, 03:53 AM

@siisee11
siisee11 merged commit cb92528 into main Jul 22, 2026
9 checks passed
@siisee11
siisee11 deleted the codex/source-update-delete branch July 22, 2026 03:55
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