Compare commits

...

10 Commits

Author SHA1 Message Date
463183bd3a 1.1.22 2024-04-14 00:47:50 +02:00
069a74d2b4 fix(core): update 2024-04-14 00:47:49 +02:00
87c1ae53b3 1.1.21 2024-04-14 00:40:57 +02:00
774aea55ff fix(core): update 2024-04-14 00:40:57 +02:00
ee7038e0d7 1.1.20 2024-04-13 16:22:34 +02:00
7c3bae4c6e fix(core): update 2024-04-13 16:22:33 +02:00
69d59e02f8 1.1.19 2024-04-13 16:19:14 +02:00
b4b6797fdf fix(core): update 2024-04-13 16:19:14 +02:00
4bbb154c4f 1.1.18 2024-04-12 15:35:10 +02:00
eec33e29d3 fix(core): update 2024-04-12 15:35:09 +02:00
4 changed files with 15 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@git.zone/tsdoc",
"version": "1.1.17",
"version": "1.1.22",
"private": false,
"description": "An advanced TypeScript documentation tool leveraging AI for enhanced insights and automated documentation generation, with capabilities for automated and enhanced documentation creation tailor-made for TypeScript projects.",
"main": "dist_ts/index.js",
@ -12,7 +12,8 @@
"tsdoc": "cli.js"
},
"scripts": {
"test": "(tstest test/) && (node ./cli.ts.js)",
"test": "(tstest test/) && npm run testCli",
"testCli": "(node ./cli.ts.js) && (node ./cli.ts.js aidocs)",
"build": "(tsbuild --web --allowimplicitany)"
},
"devDependencies": {

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tsdoc',
version: '1.1.17',
version: '1.1.22',
description: 'An advanced TypeScript documentation tool leveraging AI for enhanced insights and automated documentation generation, with capabilities for automated and enhanced documentation creation tailor-made for TypeScript projects.'
}

View File

@ -49,6 +49,8 @@ export class AiDoc {
this.openaiToken = this.argvArg.OPENAI_TOKEN;
} else {
// lets try smartinteract
// wait for a second until OpenAI fixes punycode problem...
await plugins.smartdelay.delayFor(1000);
const answerObject = await this.smartinteractInstance.askQuestion({
type: 'input',
message: `Please provide your OpenAI token`,

View File

@ -27,8 +27,15 @@ export const run = async () => {
});
});
tsdocCli.addCommand('aidocs').subscribe(async (argvArg) => {
const aidocs = new AiDoc();
tsdocCli.addCommand('aidoc').subscribe(async (argvArg) => {
logger.log('info', `Generating new readme...`);
logger.log('info', `This may take some time...`);
const aidocInstance = new AiDoc();
await aidocInstance.start();
aidocInstance.buildReadme(paths.cwd);
logger.log('info', `Generating new keywords...`);
logger.log('info', `This may take some time...`);
aidocInstance.buildDescription(paths.cwd);
})
tsdocCli.addCommand('test').subscribe((argvArg) => {