fix(core): update

This commit is contained in:
Philipp Kunz 2024-06-23 12:11:06 +02:00
parent 240d6bb314
commit e074562362
2 changed files with 5 additions and 5 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@git.zone/tsdoc', name: '@git.zone/tsdoc',
version: '1.1.35', version: '1.1.36',
description: 'An advanced TypeScript documentation tool using AI to generate and enhance documentation for TypeScript projects.' description: 'An advanced TypeScript documentation tool using AI to generate and enhance documentation for TypeScript projects.'
} }

View File

@ -7,7 +7,7 @@ export class AiDoc {
public npmextraKV: plugins.npmextra.KeyValueStore; public npmextraKV: plugins.npmextra.KeyValueStore;
public qenvInstance: plugins.qenv.Qenv; public qenvInstance: plugins.qenv.Qenv;
public smartinteractInstance: plugins.smartinteract.SmartInteract; public aidocInteract: plugins.smartinteract.SmartInteract;
public openaiInstance: plugins.smartai.OpenAiProvider; public openaiInstance: plugins.smartai.OpenAiProvider;
argvArg: any; argvArg: any;
@ -33,7 +33,7 @@ export class AiDoc {
public async start() { public async start() {
// lets care about prerequisites // lets care about prerequisites
this.smartinteractInstance = new plugins.smartinteract.SmartInteract(); this.aidocInteract = new plugins.smartinteract.SmartInteract();
this.qenvInstance = new plugins.qenv.Qenv(); this.qenvInstance = new plugins.qenv.Qenv();
if (!(await this.qenvInstance.getEnvVarOnDemand('OPENAI_TOKEN'))) { if (!(await this.qenvInstance.getEnvVarOnDemand('OPENAI_TOKEN'))) {
this.npmextraKV = new plugins.npmextra.KeyValueStore({ this.npmextraKV = new plugins.npmextra.KeyValueStore({
@ -51,9 +51,9 @@ export class AiDoc {
// lets try smartinteract // lets try smartinteract
// wait for a second until OpenAI fixes punycode problem... // wait for a second until OpenAI fixes punycode problem...
await plugins.smartdelay.delayFor(1000); await plugins.smartdelay.delayFor(1000);
const answerObject = await this.smartinteractInstance.askQuestion({ const answerObject = await this.aidocInteract.askQuestion({
type: 'input', type: 'input',
message: `Please provide your OpenAI token`, message: `Please provide your OpenAI token. This will be persisted in your home directory.`,
name: 'OPENAI_TOKEN', name: 'OPENAI_TOKEN',
default: '', default: '',
}); });