diff --git a/package-lock.json b/package-lock.json index 7eeb1b4..2376dc6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@oconva/qvikchat", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@oconva/qvikchat", - "version": "1.0.1", + "version": "1.0.2", "license": "MIT", "dependencies": { "@genkit-ai/ai": "^0.5.4", diff --git a/package.json b/package.json index a6ccd4d..3dc8a3c 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,14 @@ { "name": "@oconva/qvikchat", - "version": "1.0.1", + "version": "1.0.2", "repository": { "type": "git", "url": "https://github.com/oconva/qvikchat.git" }, + "bugs": { + "url": "ttps://github.com/oconva/qvikchat/issues" + }, + "homepage": "https://qvikchat.pkural.ca", "main": "lib/index.js", "scripts": { "start": "node lib/index.js", @@ -18,6 +22,7 @@ "predeploy": "pnpm lint && pnpm format && pnpm build && pnpm test" }, "keywords": [ + "qvikchat", "conversational ai", "chat", "chatbot", @@ -38,10 +43,22 @@ "src/*" ], "exports": { + ".": { + "types": "./lib/index.d.ts", + "import": "./lib/index.js", + "require": "./lib/index.js", + "default": "./lib/index.js" + }, "./agents": { "types": "./lib/agents/chat-agents.d.ts", - "import": "./lib/agents/chat-agent.js", - "require": "./lib/agents/chat-agent.js", + "import": { + "default": "./lib/agents/chat-agents.js", + "types": "./lib/agents/chat-agents.d.ts" + }, + "require": { + "default": "./lib/agents/chat-agents.js", + "types": "./lib/agents/chat-agents.d.ts" + }, "default": "./lib/agents/chat-agent.js" }, "./auth": { diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..d8c04c5 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,4 @@ +console.warn( + `[WARNING]: The root QvikChat entrypoint is empty. Please use a specific entrypoint instead.` +); +export {}; diff --git a/src/utils/utils.ts b/src/utils/utils.ts index fe9cb05..414b964 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -42,7 +42,6 @@ export function getChatHistoryAsString(messages: MessageData[]): string { export function getEnvironmentVariable(name: string, envFileName?: string) { // Certain Deno setups will throw an error if you try to access environment variables // https://github.com/langchain-ai/langchainjs/issues/1412 - console.log("getEnvironmentVariable: ", pathResolve(envFileName ?? ".env")); try { dotenvConfig({ path: pathResolve(envFileName ?? ".env"),