quidproquo-webserver
Advanced tools
Comparing version 0.0.177 to 0.0.178
@@ -8,3 +8,2 @@ export * from './api'; | ||
export * from './serviceFunction'; | ||
export * from './logApi'; | ||
export * from './migration'; | ||
@@ -11,0 +10,0 @@ export * from './openApi'; |
@@ -24,3 +24,2 @@ "use strict"; | ||
__exportStar(require("./serviceFunction"), exports); | ||
__exportStar(require("./logApi"), exports); | ||
__exportStar(require("./migration"), exports); | ||
@@ -27,0 +26,0 @@ __exportStar(require("./openApi"), exports); |
@@ -6,3 +6,4 @@ import { QPQConfig, QPQConfigAdvancedSettings } from 'quidproquo-core'; | ||
cloudflareApiKeySecretName?: string; | ||
claudeAiApiKeySecretName?: string; | ||
} | ||
export declare const defineLogs: (buildPath: string, webFilesPath: string, rootDomain: string, advancedSettings?: QPQConfigAdvancedLogSettings) => QPQConfig; |
@@ -75,2 +75,6 @@ "use strict"; | ||
(0, route_1.defineRoute)('GET', '/log/downloadurl/{correlationId}', (0, quidproquo_core_1.getServiceEntry)('log', 'controller', 'logController'), 'downloadUrl', routeAuthSettings), | ||
(0, route_1.defineRoute)('POST', '/log/chat/message', (0, quidproquo_core_1.getServiceEntry)('log', 'controller', 'logController'), 'sendChatMessage', routeAuthSettings), | ||
(0, quidproquo_core_1.defineGlobal)('claudeAi-api-key', (advancedSettings === null || advancedSettings === void 0 ? void 0 : advancedSettings.claudeAiApiKeySecretName) || ''), | ||
(0, route_1.defineRoute)('POST', '/log/chat', (0, quidproquo_core_1.getServiceEntry)('log', 'controller', 'logController'), 'getChatMessages', routeAuthSettings), | ||
(0, quidproquo_core_1.defineKeyValueStore)('qpq-log-messages', 'correlationId', ['timestamp']), | ||
(0, webEntry_1.defineWebEntry)('admin', { | ||
@@ -77,0 +81,0 @@ buildPath: webFilesPath, |
@@ -19,1 +19,3 @@ import { QpqRuntimeType } from 'quidproquo-core'; | ||
}): Generator<import("quidproquo-core").FileGenerateTemporarySecureUrlAction, import("../../../../types").HTTPEventResponse<string>, string>; | ||
export declare function sendChatMessage(event: HTTPEvent): Generator<import("quidproquo-core").Action<any>, import("../../../../types").HTTPEventResponse<string>, any>; | ||
export declare function getChatMessages(event: HTTPEvent): Generator<import("quidproquo-core").Action<any>, import("../../../../types").HTTPEventResponse<string>, any>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.downloadUrl = exports.getChildren = exports.getLog = exports.getLogs = void 0; | ||
exports.getChatMessages = exports.sendChatMessage = exports.downloadUrl = exports.getChildren = exports.getLog = exports.getLogs = void 0; | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
@@ -8,2 +8,4 @@ const quidproquo_core_1 = require("quidproquo-core"); | ||
const logMetadataData_1 = require("../data/logMetadataData"); | ||
const askLogSendChatMessage_1 = require("../logic/askLogSendChatMessage"); | ||
const askGetLogChatMessages_1 = require("../logic/askGetLogChatMessages"); | ||
function* getLogs(event, params) { | ||
@@ -33,1 +35,13 @@ const { nextPageKey, startIsoDateTime, endIsoDateTime, runtimeType } = (0, httpEventUtils_1.fromJsonEventRequest)(event); | ||
exports.downloadUrl = downloadUrl; | ||
function* sendChatMessage(event) { | ||
const sendLogChatMessage = (0, httpEventUtils_1.fromJsonEventRequest)(event); | ||
const message = yield* (0, askLogSendChatMessage_1.askLogSendChatMessage)(sendLogChatMessage.correlationId, sendLogChatMessage.message); | ||
return (0, httpEventUtils_1.toJsonEventResponse)(message); | ||
} | ||
exports.sendChatMessage = sendChatMessage; | ||
function* getChatMessages(event) { | ||
const listLogChatMessages = (0, httpEventUtils_1.fromJsonEventRequest)(event); | ||
const messages = yield* (0, askGetLogChatMessages_1.askGetLogChatMessages)(listLogChatMessages.correlationId, listLogChatMessages.nextPageKey); | ||
return (0, httpEventUtils_1.toJsonEventResponse)(messages); | ||
} | ||
exports.getChatMessages = getChatMessages; |
@@ -1,1 +0,4 @@ | ||
export * from "./LogMetadata"; | ||
export * from './LogMetadata'; | ||
export * from './LogChatMessage'; | ||
export * from './SendLogChatMessage'; | ||
export * from './ListLogChatMessages'; |
@@ -18,1 +18,4 @@ "use strict"; | ||
__exportStar(require("./LogMetadata"), exports); | ||
__exportStar(require("./LogChatMessage"), exports); | ||
__exportStar(require("./SendLogChatMessage"), exports); | ||
__exportStar(require("./ListLogChatMessages"), exports); |
{ | ||
"name": "quidproquo-webserver", | ||
"version": "0.0.177", | ||
"version": "0.0.178", | ||
"description": "", | ||
@@ -28,8 +28,9 @@ "main": "./lib/commonjs/index.js", | ||
"dependencies": { | ||
"quidproquo-core": "0.0.177" | ||
"@anthropic-ai/sdk": "^0.19.1", | ||
"quidproquo-core": "0.0.178" | ||
}, | ||
"devDependencies": { | ||
"quidproquo-tsconfig": "0.0.177", | ||
"quidproquo-tsconfig": "0.0.178", | ||
"typescript": "^4.9.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
190741
234
3577
2
+ Added@anthropic-ai/sdk@^0.19.1
+ Added@anthropic-ai/sdk@0.19.2(transitive)
+ Added@types/node@18.19.64(transitive)
+ Added@types/node-fetch@2.6.12(transitive)
+ Addedabort-controller@3.0.0(transitive)
+ Addedagentkeepalive@4.5.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedform-data-encoder@1.7.2(transitive)
+ Addedformdata-node@4.4.1(transitive)
+ Addedhumanize-ms@1.2.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-domexception@1.0.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedquidproquo-core@0.0.178(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedundici-types@5.26.5(transitive)
+ Addedweb-streams-polyfill@3.3.34.0.0-beta.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removedquidproquo-core@0.0.177(transitive)
Updatedquidproquo-core@0.0.178