Skip to content

Commit 52cff05

Browse files
authored
Merge branch 'main' into renovate/all-minor-patch
2 parents f8235d6 + c9e9821 commit 52cff05

File tree

10 files changed

+0
-25
lines changed

10 files changed

+0
-25
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -289,18 +289,6 @@ import { hasProtocol } from 'ufo'
289289
| Constants | SCREAMING_SNAKE_CASE | `NPM_REGISTRY`, `ALLOWED_TAGS` |
290290
| Types/Interfaces | PascalCase | `NpmSearchResponse` |
291291

292-
> [!TIP]
293-
> Exports in `app/composables/`, `app/utils/`, and `server/utils/` are auto-imported by Nuxt. To prevent [knip](https://knip.dev/) from flagging them as unused, add a `@public` JSDoc annotation:
294-
>
295-
> ```typescript
296-
> /**
297-
> * @public
298-
> */
299-
> export function myAutoImportedFunction() {
300-
> // ...
301-
> }
302-
> ```
303-
304292
### Vue components
305293

306294
- Use Composition API with `<script setup lang="ts">`

app/composables/useActiveTocItem.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import type { Ref } from 'vue'
77
*
88
* @param toc - Reactive array of TOC items
99
* @returns Object containing activeId
10-
* @public
1110
*/
1211
export function useActiveTocItem(toc: Ref<TocItem[]>) {
1312
const activeId = shallowRef<string | null>(null)

app/composables/useMarkdown.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ interface UseMarkdownOptions {
88
packageName?: string
99
}
1010

11-
/** @public */
1211
export function useMarkdown(options: MaybeRefOrGetter<UseMarkdownOptions>) {
1312
return computed(() => parseMarkdown(toValue(options)))
1413
}

server/utils/provenance.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ function repoUrlToBlobUrl(repository: string, path: string, ref = 'main'): strin
9090
/**
9191
* Parse npm attestations API response into ProvenanceDetails.
9292
* Prefers SLSA provenance v1; falls back to v0.2 for provider label and ledger only (no source commit/build file from v0.2).
93-
* @public
9493
*/
9594
export function parseAttestationToProvenanceDetails(response: unknown): ProvenanceDetails | null {
9695
const body = response as NpmAttestationsResponse

server/utils/skills.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export interface SkillDirInfo {
7373
/**
7474
* Find skill directories in a package file tree.
7575
* Returns skill names and their children for file counting.
76-
* @public
7776
*/
7877
export function findSkillDirs(tree: PackageFileTree[]): SkillDirInfo[] {
7978
const skillsDir = tree.find(node => node.type === 'directory' && node.name === 'skills')
@@ -176,7 +175,6 @@ export function validateSkill(frontmatter: SkillFrontmatter): SkillWarning[] {
176175

177176
/**
178177
* Fetch skill list with frontmatter for discovery endpoint.
179-
* @public
180178
*/
181179
export async function fetchSkillsList(
182180
packageName: string,
@@ -215,7 +213,6 @@ export interface WellKnownSkillItem {
215213

216214
/**
217215
* Fetch skill list for well-known index.json format (CLI compatibility).
218-
* @public
219216
*/
220217
export async function fetchSkillsListForWellKnown(
221218
packageName: string,

shared/schemas/blog.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ export interface ResolvedAuthor extends Author {
3434
/**
3535
* Inferred type for blog post frontmatter
3636
*/
37-
/** @public */
3837
export type BlogPostFrontmatter = InferOutput<typeof BlogPostSchema>

shared/schemas/user.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ export const GravatarQuerySchema = v.object({
2121
username: NpmUsernameSchema,
2222
})
2323

24-
/** @public */
2524
export type NpmUsername = v.InferOutput<typeof NpmUsernameSchema>
26-
/** @public */
2725
export type GravatarQuery = v.InferOutput<typeof GravatarQuerySchema>

shared/types/npm-registry.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ export interface NpmVersionDist {
233233
/**
234234
* Parsed provenance details for display (from attestation bundle SLSA predicate).
235235
* Used by the provenance API and PackageProvenanceSection.
236-
* @public
237236
*/
238237
export interface ProvenanceDetails {
239238
/** Provider ID (e.g. "github", "gitlab") */

shared/utils/constants.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ export const ERROR_SUGGESTIONS_FETCH_FAILED = 'Failed to fetch suggestions.'
3131
export const ERROR_SKILLS_FETCH_FAILED = 'Failed to fetch skills.'
3232
export const ERROR_SKILL_NOT_FOUND = 'Skill not found.'
3333
export const ERROR_SKILL_FILE_NOT_FOUND = 'Skill file not found.'
34-
/** @public */
3534
export const ERROR_GRAVATAR_FETCH_FAILED = 'Failed to fetch Gravatar profile.'
36-
/** @public */
3735
export const ERROR_GRAVATAR_EMAIL_UNAVAILABLE = "User's email not accessible."
3836
export const ERROR_NEED_REAUTH = 'User needs to reauthenticate'
3937

shared/utils/npm.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export function assertValidPackageName(name: string): void {
5252
/**
5353
* Validate an npm username and throw an HTTP error if invalid.
5454
* Uses a regular expression to check against npm naming rules.
55-
* @public
5655
*/
5756
export function assertValidUsername(username: string): void {
5857
if (!username || username.length > NPM_USERNAME_MAX_LENGTH || !NPM_USERNAME_RE.test(username)) {

0 commit comments

Comments
 (0)