{"_id":"@autodoc-ai/sdk","_rev":"2-25674b873909f0ffea17b74ef02219ca","name":"@autodoc-ai/sdk","dist-tags":{"latest":"0.9.0"},"versions":{"0.8.0":{"name":"@autodoc-ai/sdk","version":"0.8.0","keywords":["autodoc","code-intelligence","semantic-search","documentation","ai","embeddings"],"author":{"name":"Emberfield"},"license":"MIT","_id":"@autodoc-ai/sdk@0.8.0","maintainers":[{"name":"agentfactor","email":"cal@agentfactor.io"}],"homepage":"https://emberfield.github.io/autodoc/","bugs":{"url":"https://github.com/Emberfield/autodoc/issues"},"dist":{"shasum":"5de7db4a314a379298c39bb4d515f7502b4c5819","tarball":"https://registry.npmjs.org/@autodoc-ai/sdk/-/sdk-0.8.0.tgz","fileCount":4,"integrity":"sha512-C6+LsSNogasDO3p54lI6uge1GMAyUl9JXPkZEPk4kE1bXOQtXPTC8AdDby3vYuOh/DyiCMRGD0asAzjkLThKWw==","signatures":[{"sig":"MEYCIQCfZlPnUTQbI0vpYSIYiVk6/cC2Os/sEPPG+l1mr/OEIQIhANmYP0MifMZ0yHrCl2/SZefami0xTDdAh1qZLXWYyZ6A","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53674},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"7610ad800f25f2542026a15258ebf3a79c49ccc9","scripts":{"test":"jest","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"agentfactor","email":"cal@agentfactor.io"},"repository":{"url":"git+https://github.com/Emberfield/autodoc.git","type":"git","directory":"sdk/nodejs"},"_npmVersion":"11.4.1","description":"Node.js SDK for Autodoc - AI-powered code intelligence","directories":{},"_nodeVersion":"22.16.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.0","@types/node":"^20.10.0"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.8.0_1767812279028_0.21116229965371924","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"@autodoc-ai/sdk","version":"0.9.0","description":"Node.js SDK for Autodoc - AI-powered code intelligence","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","test":"jest","prepublishOnly":"npm run build"},"keywords":["autodoc","code-intelligence","semantic-search","documentation","ai","embeddings"],"author":{"name":"Emberfield"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Emberfield/autodoc.git","directory":"sdk/nodejs"},"homepage":"https://emberfield.github.io/autodoc/","bugs":{"url":"https://github.com/Emberfield/autodoc/issues"},"engines":{"node":">=18.0.0","npm":">=11.5.1"},"dependencies":{},"devDependencies":{"@types/node":"^20.10.0","typescript":"^5.3.0"},"peerDependencies":{},"_id":"@autodoc-ai/sdk@0.9.0","gitHead":"1294e2e018e757a79e38f608a544dd9c492b04bb","_nodeVersion":"22.16.0","_npmVersion":"11.4.1","dist":{"integrity":"sha512-7LwvaU0F1QOTI8Di70j8iP4NBw9KVR/Z/1m9iouLSDrnFbal4At1Iv6R/ubFManWG6do3UXF0cO0HLwRRH1ifg==","shasum":"5f619703853916d774987db530374926ff4ca86a","tarball":"https://registry.npmjs.org/@autodoc-ai/sdk/-/sdk-0.9.0.tgz","fileCount":4,"unpackedSize":53697,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCSyAXIYZ0iQxHNzKz6HqNuHq0+IfdGrTAk9I1r/BaqcgIgPbBTHhRywy7cC5S92eolL3jjNz4z1BMz/26A9FzQI1o="}]},"_npmUser":{"name":"agentfactor","email":"cal@agentfactor.io"},"directories":{},"maintainers":[{"name":"agentfactor","email":"cal@agentfactor.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.9.0_1767906074383_0.49456290674138303"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-07T18:57:58.948Z","modified":"2026-01-08T21:01:15.255Z","0.8.0":"2026-01-07T18:57:59.147Z","0.9.0":"2026-01-08T21:01:14.525Z"},"bugs":{"url":"https://github.com/Emberfield/autodoc/issues"},"author":{"name":"Emberfield"},"license":"MIT","homepage":"https://emberfield.github.io/autodoc/","keywords":["autodoc","code-intelligence","semantic-search","documentation","ai","embeddings"],"repository":{"type":"git","url":"git+https://github.com/Emberfield/autodoc.git","directory":"sdk/nodejs"},"description":"Node.js SDK for Autodoc - AI-powered code intelligence","maintainers":[{"name":"agentfactor","email":"cal@agentfactor.io"}],"readme":"# Autodoc Node.js SDK\n\nNode.js/TypeScript SDK for [Autodoc](https://emberfield.github.io/autodoc/) - AI-powered code intelligence.\n\n## Prerequisites\n\nAutodoc must be installed via pip:\n\n```bash\npip install ai-code-autodoc\n```\n\n## Installation\n\n```bash\nnpm install @autodoc-ai/sdk\n```\n\n## Quick Start\n\n```typescript\nimport { Autodoc } from '@autodoc-ai/sdk';\n\n// Initialize with your repo path\nconst autodoc = new Autodoc('/path/to/your/repo');\n\n// Analyze the codebase\nawait autodoc.analyze();\n\n// Search with natural language\nconst results = await autodoc.search('user authentication flow');\nconsole.log(results);\n\n// List context packs\nconst packs = await autodoc.listPacks();\n\n// Analyze impact of changes\nconst impact = await autodoc.analyzeImpact(['src/auth/login.ts']);\nif (impact.criticalPacks.length > 0) {\n  console.warn('Critical packs affected:', impact.criticalPacks);\n}\n```\n\n## API Reference\n\n### `new Autodoc(options)`\n\nCreate a new Autodoc instance.\n\n```typescript\n// Simple usage\nconst autodoc = new Autodoc('/path/to/repo');\n\n// With options\nconst autodoc = new Autodoc({\n  path: '/path/to/repo',\n  quiet: true,\n  pythonPath: '/usr/bin/python3',\n});\n```\n\n### `autodoc.analyze(options?)`\n\nAnalyze the codebase.\n\n```typescript\nconst result = await autodoc.analyze({\n  incremental: true,        // Only analyze changed files\n  excludePatterns: ['*.test.ts'],\n  save: true,               // Save to cache\n});\n```\n\n### `autodoc.search(query, options?)`\n\nSearch with natural language.\n\n```typescript\nconst results = await autodoc.search('authentication', {\n  limit: 10,\n  typeFilter: 'function',\n});\n\n// Returns: SearchResult[]\n// {\n//   name: string;\n//   type: string;\n//   filePath: string;\n//   lineNumber: number;\n//   similarity: number;\n// }\n```\n\n### `autodoc.listPacks(options?)`\n\nList all context packs.\n\n```typescript\nconst packs = await autodoc.listPacks({\n  tag: 'security',\n  securityLevel: 'critical',\n});\n```\n\n### `autodoc.getPack(name)`\n\nGet a specific pack by name.\n\n```typescript\nconst authPack = await autodoc.getPack('auth');\n```\n\n### `autodoc.analyzeImpact(changedFiles)`\n\nAnalyze impact of file changes.\n\n```typescript\nconst impact = await autodoc.analyzeImpact([\n  'src/auth/login.ts',\n  'src/auth/session.ts',\n]);\n\nconsole.log('Affected packs:', impact.affectedPacks);\nconsole.log('Critical packs:', impact.criticalPacks);\nconsole.log('Security implications:', impact.securityImplications);\n```\n\n### `autodoc.queryPack(packName, query, options?)`\n\nSearch within a specific pack.\n\n```typescript\nconst results = await autodoc.queryPack('auth', 'token validation', {\n  limit: 5,\n});\n```\n\n### `autodoc.buildPack(name, options?)`\n\nBuild a pack's index.\n\n```typescript\nawait autodoc.buildPack('auth', {\n  withEmbeddings: true,\n  withSummary: true,    // Requires LLM API key\n  dryRun: false,\n});\n\n// Build all packs\nawait autodoc.buildPack('all');\n```\n\n### `autodoc.getPackDependencies(name, options?)`\n\nGet pack dependencies.\n\n```typescript\nconst deps = await autodoc.getPackDependencies('payments', {\n  transitive: true,  // Include transitive dependencies\n});\n```\n\n### `isAutodocInstalled(pythonPath?)`\n\nCheck if autodoc is available.\n\n```typescript\nimport { isAutodocInstalled } from 'autodoc-sdk';\n\nif (!isAutodocInstalled()) {\n  console.error('Please install autodoc: pip install ai-code-autodoc');\n}\n```\n\n## TypeScript Support\n\nFull TypeScript support with exported types:\n\n```typescript\nimport {\n  Autodoc,\n  SearchResult,\n  AnalysisResult,\n  ImpactResult,\n  Pack,\n  AutodocOptions,\n} from '@autodoc-ai/sdk';\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}