nuxt-agent-md 0.0.1-alpha.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ export declare function detectNuxtVersion(cwd?: string): Promise<string>;
2
+ export declare function mapToDocsVersion(nuxtVersion: string): string;
@@ -0,0 +1 @@
1
+ export declare function downloadDocs(version: string, docsDir: string): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { IndexResult } from './types';
2
+ export declare function generateIndex(docsDir: string): Promise<IndexResult>;
@@ -0,0 +1,7 @@
1
+ import type { Options } from './types';
2
+ export { detectNuxtVersion, mapToDocsVersion } from './detect';
3
+ export { downloadDocs } from './download';
4
+ export { generateIndex } from './generate';
5
+ export { injectAgentsMd } from './inject';
6
+ export type * from './types';
7
+ export declare function generateAgentsMd(options?: Partial<Options>): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { IndexResult } from './types';
2
+ export declare function injectAgentsMd(outputPath: string, index: IndexResult, nuxtVersion: string, docsDir: string, minify: boolean): Promise<void>;
@@ -0,0 +1,18 @@
1
+ export interface Options {
2
+ docsDir: string;
3
+ outputPath: string;
4
+ nuxtVersion?: string;
5
+ minify: boolean;
6
+ dryRun: boolean;
7
+ }
8
+ export interface DocEntry {
9
+ path: string;
10
+ title: string;
11
+ keywords: string[];
12
+ category: string;
13
+ }
14
+ export interface IndexResult {
15
+ entries: DocEntry[];
16
+ minified: string;
17
+ full: string;
18
+ }
package/package.json CHANGED
@@ -1,7 +1,45 @@
1
1
  {
2
2
  "name": "nuxt-agent-md",
3
- "version": "0.0.1-alpha.1",
4
- "description": "Coming soon - stay tuned!",
5
- "main": "index.js",
3
+ "version": "0.1.0",
4
+ "description": "Generate AGENTS.md with Nuxt documentation for AI coding agents",
5
+ "type": "module",
6
+ "bin": {
7
+ "nuxt-agent-md": "./dist/cli.js"
8
+ },
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "scripts": {
20
+ "build": "bun build ./src/cli.ts --outdir ./dist --target node && bun run build:types",
21
+ "build:types": "tsc --emitDeclarationOnly",
22
+ "dev": "bun run ./src/cli.ts",
23
+ "typecheck": "tsc --noEmit",
24
+ "prepublishOnly": "bun run build"
25
+ },
26
+ "devDependencies": {
27
+ "@types/bun": "^1.2.0",
28
+ "@types/node": "^22.0.0",
29
+ "@types/tar": "^6.1.13",
30
+ "typescript": "^5.7.3"
31
+ },
32
+ "dependencies": {
33
+ "tar": "^7.4.3"
34
+ },
35
+ "keywords": [
36
+ "nuxt",
37
+ "agents",
38
+ "ai",
39
+ "documentation",
40
+ "cursor",
41
+ "copilot",
42
+ "claude"
43
+ ],
6
44
  "license": "MIT"
7
- }
45
+ }
package/index.js DELETED
@@ -1 +0,0 @@
1
- // placeholder