Skip to content

Fix misleading on npm install with git url#64

Merged
zkat merged 1 commit intonpm:release-nextfrom
zckrs:patch-1
Nov 13, 2018
Merged

Fix misleading on npm install with git url#64
zkat merged 1 commit intonpm:release-nextfrom
zckrs:patch-1

Conversation

@zckrs
Copy link
Copy Markdown

@zckrs zckrs commented Aug 30, 2018

With some tests I note npm use default branch of repository instead of master.

@zckrs zckrs requested a review from a team as a code owner August 30, 2018 16:13
Comment thread doc/cli/npm-install.md Outdated
With some tests I note npm use default branch of repository instead of `master`.
@zckrs
Copy link
Copy Markdown
Author

zckrs commented Sep 12, 2018

Copy link
Copy Markdown
Contributor

@zkat zkat left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for catching this, and this should totally be the case now.

@zkat zkat changed the base branch from latest to release-next November 13, 2018 14:51
@zkat zkat merged commit bcae4ea into npm:release-next Nov 13, 2018
@zkat zkat added the docs label Nov 13, 2018
zkat pushed a commit that referenced this pull request Dec 10, 2018
With some tests I note npm use default branch of repository instead of `master`.

PR-URL: #64
Credit: @zckrs
Reviewed-By: @zkat
Jah-yee pushed a commit to Jah-yee/cli that referenced this pull request Apr 16, 2026
* feat: smarter truncation of method/resource descriptions

- Add shared truncate_description() in src/text.rs with configurable
  limits and optional markdown link stripping
- Named constants: CLI_DESCRIPTION_LIMIT (200), FRONTMATTER_DESCRIPTION_LIMIT (120),
  SKILL_BODY_DESCRIPTION_LIMIT (500)
- CLI help and frontmatter strip markdown links to save space
- Skill body preserves URLs so agents can follow references
- Truncation prefers sentence boundaries, falls back to word boundaries
- Reads full descriptions from discovery doc for skill body text

Fixes npm#64

* fix: address PR review comments and improve coverage

- Fix sentence boundary detection at exact end of prefix (HIGH)
- Use extend() for link text emission (MEDIUM)
- Idiomatic find_char_from with position/map (MEDIUM)
- Idiomatic rfind_char_boundary with rposition (MEDIUM)
- Add 18 new tests for generate_skills.rs coverage:
  truncate_desc, lookup_method_description, capitalize_first,
  product_name_from_title
- Add sentence_boundary_at_exact_limit and zero_max_chars tests

---------

Co-authored-by: jpoehnelt-bot <jpoehnelt-bot@users.noreply.github.com>
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