Skip to content

Update deno.json and README.md for improved dependency management and…#170

Merged
florianbgt merged 1 commit intomainfrom
feat/retire/stackcore
Apr 12, 2026
Merged

Update deno.json and README.md for improved dependency management and…#170
florianbgt merged 1 commit intomainfrom
feat/retire/stackcore

Conversation

@florianbgt
Copy link
Copy Markdown
Member

@florianbgt florianbgt commented Apr 12, 2026

… documentation

  • Added new dependencies to deno.json, including various Radix UI components and Tailwind CSS.
  • Updated README.md to enhance project description, features, installation instructions, and CLI commands.
  • Refactored the structure of the README for better clarity and added new sections for quick start and supported languages.
  • Adjusted the CLI commands to reflect the new structure and functionality.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • Documentation update

Description

Please include a summary of the changes and the related issue. Explain the
motivation behind this change.

Related Issue

Issue Number: #<issue_number>

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of this project.
  • I have added tests that prove my fix is effective or that my feature works
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Note

Medium Risk
Shifts core CLI flows (generate, extract) from API-backed/authenticated behavior to local .napi/manifests files and introduces a new embedded viewer build/serve pipeline, so regressions could impact primary workflows and packaging across platforms.

Overview
napi is refocused to be fully offline: generate now writes a manifest envelope to .napi/manifests/{timestamp}-{sha}.json, and extract reads from local manifests (defaulting to the latest) instead of fetching from the NanoAPI API.

Adds a new napi view command that serves the bundled React viewer plus local API endpoints (/api/manifests, /api/manifests/:id, /api/manifests/:id/audit) and opens the browser automatically; audit thresholds are added to .napirc and an auditManifest is generated server-side.

Removes API/auth plumbing (ApiService, login, manifest command, auth middleware) and updates build/dev tooling (deno.json tasks to build/include viewer/dist, new viewer dependencies, CI step labels), plus documentation and example .napirc updates (new audit config and local manifest storage guidance).

Reviewed by Cursor Bugbot for commit 7faeb80. Bugbot is set up for automated code reviews on this repo. Configure here.

… documentation

- Added new dependencies to deno.json, including various Radix UI components and Tailwind CSS.
- Updated README.md to enhance project description, features, installation instructions, and CLI commands.
- Refactored the structure of the README for better clarity and added new sections for quick start and supported languages.
- Adjusted the CLI commands to reflect the new structure and functionality.
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7faeb80. Configure here.

if (props.name.length > maxChar) {
const displayedName = props.truncateBefore
? "..." + props.name.slice(0, maxChar)
: props.name.slice(0, maxChar) + "...";
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

truncateBefore shows wrong end of string

Medium Severity

When truncateBefore is true, the intent is to truncate the beginning of the string and show the end (e.g., ...authenticate (function)). However, props.name.slice(0, maxChar) still takes the first maxChar characters, so the result is "..." + first N chars — identical to the non-truncated case but with the ellipsis on the wrong side. It needs props.name.slice(-maxChar) to take the last maxChar characters. This affects three call sites displaying symbol and file names in the viewer UI.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 7faeb80. Configure here.

commitShaDate: string;
createdAt: string;
manifest: DependencyManifest;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ManifestEnvelope and constants duplicated across three handlers

Low Severity

The NAPI_DIR and MANIFESTS_DIR constants and the ManifestEnvelope interface are independently defined in extract/index.ts, generate/index.ts, and view/index.ts. If the directory name or envelope shape changes, all three must be updated in sync. Extracting these into a shared module would reduce maintenance burden and the risk of inconsistencies.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 7faeb80. Configure here.

@florianbgt florianbgt merged commit ddbe6ef into main Apr 12, 2026
3 of 4 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.

1 participant