Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 0a3080518f | |||
| d0a4ddbb4b | 
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "@git.zone/tsdoc",
 | 
					  "name": "@git.zone/tsdoc",
 | 
				
			||||||
  "version": "1.8.0",
 | 
					  "version": "1.8.1",
 | 
				
			||||||
  "private": false,
 | 
					  "private": false,
 | 
				
			||||||
  "description": "A comprehensive TypeScript documentation tool that leverages AI to generate and enhance project documentation, including dynamic README creation, API docs via TypeDoc, and smart commit message generation.",
 | 
					  "description": "A comprehensive TypeScript documentation tool that leverages AI to generate and enhance project documentation, including dynamic README creation, API docs via TypeDoc, and smart commit message generation.",
 | 
				
			||||||
  "type": "module",
 | 
					  "type": "module",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -33,7 +33,10 @@ tap.test('should build commit object', async () => {
 | 
				
			|||||||
  expect(commitObject).toHaveProperty('recommendedNextVersionLevel');
 | 
					  expect(commitObject).toHaveProperty('recommendedNextVersionLevel');
 | 
				
			||||||
  expect(commitObject).toHaveProperty('recommendedNextVersionScope');
 | 
					  expect(commitObject).toHaveProperty('recommendedNextVersionScope');
 | 
				
			||||||
  expect(commitObject).toHaveProperty('recommendedNextVersionMessage');
 | 
					  expect(commitObject).toHaveProperty('recommendedNextVersionMessage');
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
})
 | 
					tap.test('should stop AIdocs', async () => {
 | 
				
			||||||
 | 
					  await aidocs.stop();
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
tap.start();
 | 
					tap.start();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +0,0 @@
 | 
				
			|||||||
import { expect, tap } from '@push.rocks/tapbundle';
 | 
					 | 
				
			||||||
import * as tsdoc from '../ts/index.js';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
tap.test('first test', async () => {
 | 
					 | 
				
			||||||
  console.log('test');
 | 
					 | 
				
			||||||
});
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
tap.start();
 | 
					 | 
				
			||||||
@@ -30,6 +30,14 @@ export class Commit {
 | 
				
			|||||||
    const diffStringArray = await gitRepo.getUncommittedDiff([
 | 
					    const diffStringArray = await gitRepo.getUncommittedDiff([
 | 
				
			||||||
      'pnpm-lock.yaml',
 | 
					      'pnpm-lock.yaml',
 | 
				
			||||||
      'package-lock.json',
 | 
					      'package-lock.json',
 | 
				
			||||||
 | 
					      'npm-shrinkwrap.json',
 | 
				
			||||||
 | 
					      'yarn.lock',
 | 
				
			||||||
 | 
					      'deno.lock',
 | 
				
			||||||
 | 
					      'bun.lockb',
 | 
				
			||||||
 | 
					      '.claude/*',
 | 
				
			||||||
 | 
					      '.cursor/*',
 | 
				
			||||||
 | 
					      '.vscode/*',
 | 
				
			||||||
 | 
					      '.idea/*',
 | 
				
			||||||
    ]);
 | 
					    ]);
 | 
				
			||||||
    // Use the new TaskContextFactory for optimized context
 | 
					    // Use the new TaskContextFactory for optimized context
 | 
				
			||||||
    const taskContextFactory = new (await import('../context/index.js')).TaskContextFactory(
 | 
					    const taskContextFactory = new (await import('../context/index.js')).TaskContextFactory(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -64,7 +64,7 @@ export class AiDoc {
 | 
				
			|||||||
        await this.npmextraKV.writeKey('OPENAI_TOKEN', this.openaiToken);
 | 
					        await this.npmextraKV.writeKey('OPENAI_TOKEN', this.openaiToken);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if (!this.openaiToken) {
 | 
					    if (!this.openaiToken && this.npmextraKV) {
 | 
				
			||||||
      this.openaiToken = await this.npmextraKV.readKey('OPENAI_TOKEN');
 | 
					      this.openaiToken = await this.npmextraKV.readKey('OPENAI_TOKEN');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -76,7 +76,11 @@ export class AiDoc {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  public async stop() {
 | 
					  public async stop() {
 | 
				
			||||||
    await this.openaiInstance.stop();
 | 
					    if (this.openaiInstance) {
 | 
				
			||||||
 | 
					      await this.openaiInstance.stop();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    // No explicit cleanup needed for npmextraKV or aidocInteract
 | 
				
			||||||
 | 
					    // They don't keep event loop alive
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  public async buildReadme(projectDirArg: string) {
 | 
					  public async buildReadme(projectDirArg: string) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user