Compare commits

..

10 Commits

Author SHA1 Message Date
c1bd85fc58 1.1.24 2024-04-14 00:59:25 +02:00
b81220b2ba fix(core): update 2024-04-14 00:59:24 +02:00
ca26d9e98d 1.1.23 2024-04-14 00:52:04 +02:00
61b6161470 fix(core): update 2024-04-14 00:52:04 +02:00
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
4 changed files with 10 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@git.zone/tsdoc", "name": "@git.zone/tsdoc",
"version": "1.1.19", "version": "1.1.24",
"private": false, "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.", "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", "main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@git.zone/tsdoc', name: '@git.zone/tsdoc',
version: '1.1.19', version: '1.1.24',
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.' 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; this.openaiToken = this.argvArg.OPENAI_TOKEN;
} else { } else {
// lets try smartinteract // lets try smartinteract
// wait for a second until OpenAI fixes punycode problem...
await plugins.smartdelay.delayFor(1000);
const answerObject = await this.smartinteractInstance.askQuestion({ const answerObject = await this.smartinteractInstance.askQuestion({
type: 'input', type: 'input',
message: `Please provide your OpenAI token`, message: `Please provide your OpenAI token`,
@ -59,7 +61,7 @@ export class AiDoc {
} }
this.printSanitizedToken(); this.printSanitizedToken();
// await this.npmextraKV.writeKey('OPENAI_TOKEN', this.openaiToken); await this.npmextraKV.writeKey('OPENAI_TOKEN', this.openaiToken);
} }
} }

View File

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