Skip to content

[PUT-1478] Add KV commands to CLI - #3579

Merged
reynaldichernando merged 3 commits into
HeyPuter:mainfrom
reynaldichernando:kv-cli
Aug 15, 2026
Merged

[PUT-1478] Add KV commands to CLI#3579
reynaldichernando merged 3 commits into
HeyPuter:mainfrom
reynaldichernando:kv-cli

Conversation

@reynaldichernando

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the Puter CLI by adding an interactive puter kv connect <app> REPL that scopes puter.kv operations to a chosen app鈥檚 KV store, while also centralizing access to the SDK鈥檚 apps module and updating CLI metadata/docs to reflect the broader tooling scope.

Changes:

  • Add puter kv connect <app> command that launches a Node REPL with awaited results and one-line error output.
  • Introduce bindApp() KV wrappers to reliably inject optConfig: { appUuid } across kv method call forms.
  • Extract a shared appsApi() guard and update CLI messaging/version/docs for the new KV functionality.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/cli/src/lib/ui.js Adds red() helper used for REPL error formatting.
src/cli/src/lib/kvbind.js New helper to bind puter.kv calls to a specific app UUID across varied signatures.
src/cli/src/lib/apps.js New shared accessor/guard for puter.apps / legacy variants.
src/cli/src/commands/kv.js Implements the interactive KV REPL command (kv connect).
src/cli/src/commands/app.js Reuses shared appsApi() instead of duplicating logic.
src/cli/README.md Documents puter kv connect usage and behavior.
src/cli/package.json Bumps version and updates description to match expanded scope.
src/cli/bin/puter.js Registers the new kv connect command and updates CLI description.

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/cli/src/commands/kv.js Outdated
Comment thread src/cli/src/lib/apps.js
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@reynaldichernando
reynaldichernando merged commit 9e25ce1 into HeyPuter:main Aug 15, 2026
2 checks passed
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.

2 participants