Skip to content

puter shell - #79

Merged
reynaldichernando merged 4 commits into
masterfrom
puter-shell
Aug 25, 2026
Merged

puter shell#79
reynaldichernando merged 4 commits into
masterfrom
puter-shell

Conversation

@reynaldichernando

Copy link
Copy Markdown
Member
  • move remaining things to puter-sh namespace
  • fix issue connecting with the shell (revalidate token and username change)
  • remove app and site related commands

@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Copilot AI left a comment

Copy link
Copy Markdown

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 rebrands and refocuses the CLI into a “Puter Shell” experience, consolidating state under the profile system, improving session robustness by revalidating identity on startup, and removing app/site-related functionality that no longer belongs in this shell-focused package.

Changes:

  • Removed apps/sites/subdomains/deploy/init commands (and associated utilities/tests) to narrow scope to shell + file operations.
  • Moved cwd ownership into ProfileModule and added identity refresh to handle token invalidation and username renames (with path re-homing).
  • Added improved error normalization/auth-error detection and global unhandled-rejection handling to prevent noisy #<Object> crashes.

Reviewed changes

Copilot reviewed 27 out of 29 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/utils.test.js Drops tests for removed utils; keeps tests for formatDateTime/formatSize.
tests/subdomains.test.js Removes subdomain command tests (feature removed).
tests/sites.test.js Removes sites command tests (feature removed).
tests/shell.test.js Updates shell mocks and welcome-message expectation.
tests/ProfileModule.test.js Updates config expectations; adds tests for rehomePaths; adjusts constants mocking.
tests/files.test.js Updates getInfo path resolution expectations; updates showCwd to profile-based cwd.
tests/executor.test.js Mocks ProfileModule to match new cwd storage behavior.
tests/ErrorModule.test.js Adds tests for normalizeError, isAuthError, and formatError.
tests/deploy.test.js Removes deploy command tests (feature removed).
tests/commons.test.js Updates PROJECT_NAME; adds/updates tests for home/path resolution helpers; removes app/site helpers tests.
tests/apps.test.js Removes apps command tests (feature removed).
src/utils.js Removes unused app/site-related helpers (formatDate, arg parsing, UUID helpers, table display).
src/modules/ProfileModule.js Adds config migration, identity refresh, username-rehome, and rekeying onto server UUIDs; moves cwd into profile.
src/modules/ErrorModule.js Adds error normalization and auth-error classification utilities.
src/executor.js Removes app/site commands; routes errors through ErrorModule; prompt now derives cwd via auth/profile.
src/commons.js Renames project; introduces HOME, HOME_PATH, setHomePath, expandHome, isAbsolutePath, improved resolvePath.
src/commands/subdomains.js Removes subdomain commands (feature removed).
src/commands/sites.js Removes site commands (feature removed).
src/commands/shell.js Stores cwd via ProfileModule.setCwd; improves error reporting; updates welcome message.
src/commands/init.js Removes init scaffolding command (feature removed).
src/commands/files.js Routes path handling through new home-aware resolution; updates trash/cwd usage to profile-based home/cwd.
src/commands/deploy.js Removes deploy command (feature removed).
src/commands/auth.js Updates logout cleanup; updates isAuthenticated; makes cwd come from profile + expandHome.
src/commands/apps.js Removes app commands (feature removed).
package.json Bumps major version; removes unused dependencies; adds packageManager field.
bin/index.js Removes app/site/init CLIs; adds unhandled rejection guard; improves top-level error/auth messaging.
.github/workflows/npm-publish.yml Removes hardcoded pnpm v8 setup to align with new packaging/tooling.
.github/workflows/npm-build.yml Removes hardcoded pnpm v8 setup to align with new packaging/tooling.

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

Comment thread src/executor.js
Comment thread src/commands/files.js
Comment thread src/modules/ProfileModule.js
@reynaldichernando
reynaldichernando merged commit 6b5cf6e into master Aug 25, 2026
6 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.

3 participants