Skip to content

Fix install script PATH activation after curl install#35

Merged
paulius-krutkis-dcd merged 4 commits into
mainfrom
post-install-launch
Jun 17, 2026
Merged

Fix install script PATH activation after curl install#35
paulius-krutkis-dcd merged 4 commits into
mainfrom
post-install-launch

Conversation

@paulius-krutkis-dcd

@paulius-krutkis-dcd paulius-krutkis-dcd commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Install scripts auto-append the npm bin directory to the shell profile when it is missing from PATH
  • Print an explicit source / export PATH step and use the full binary path for the setup prompt and get-started examples
  • Replace broken PowerShell setx guidance with SetEnvironmentVariable; bump version to 0.1.7

Test plan

  • Run docs/install.sh with a read-only global npm prefix; verify profile is updated and activation steps are printed
  • Re-run the installer; confirm no duplicate export lines in the profile
  • On Windows, verify user PATH is persisted without setx and the restart-terminal message appears

… for better PATH management, and improve README instructions for setup. The install scripts now auto-configure the user's PATH and provide clearer next steps after installation.
…ted printf statements to use consistent syntax for better readability and maintainability.
…string interpolation for improved clarity in user instructions.
@paulius-krutkis-dcd paulius-krutkis-dcd changed the title Update version to 0.1.7 in package.json, enhance installation scripts… Fix install script PATH activation after curl install Jun 16, 2026
* Fix remaining critical CLI audit items

- Object/array schema params now register as --flag <json> with a
  JSON-parsing argParser; invalid JSON is a usage error
- Derive binary PNG output context from the built body so generated
  commands (universal --headless png) write a PNG, not base64 text
- Map syscall-coded network failures (ENOTFOUND, ECONNREFUSED, ...) in
  the cause chain to exit 7 and render the cause
- setup now rejects as a usage error on EOF/closed stdin instead of
  exiting 0 having saved nothing; handle TTY EOF and Ctrl+D
- Add offline README docs regression test validating documented
  commands and flags against the command tree built from BundledSchema

* Skip parse/markdown defaults for headless png screenshots

Manual end-to-end testing surfaced that generated commands routed PNG
output correctly but applyRequestDefaults still injected markdown:true,
so the API returned markdown instead of a screenshot and PNG extraction
failed. Skip the defaults when headless is png so universal --headless
png writes a real PNG, matching the curated screenshot command.

* Refactor CLI error handling by introducing CliUsageError class

- Moved CliUsageError definition to a new file for better organization.
- Updated imports across multiple files to reference the new location of CliUsageError.
- Added tests for CliUsageError to ensure proper functionality and error message handling.
@paulius-krutkis-dcd paulius-krutkis-dcd merged commit c2ba109 into main Jun 17, 2026
1 check 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