Skip to content

Commit

Permalink
chore(deps): upgrade dependencies (#9)
Browse files Browse the repository at this point in the history
* chore(deps): upgrade dependencies

Upgrades project dependencies. See details in [workflow run].

[Workflow Run]: https://github.com/WiseGPT/slack-bot/actions/runs/3915975026

------

*Automatically created by projen via the "upgrade-main" workflow*

Signed-off-by: github-actions <[email protected]>

* chore: self mutation

Signed-off-by: github-actions <[email protected]>

Signed-off-by: github-actions <[email protected]>
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
Yengas and github-actions authored Jan 14, 2023
1 parent dee6354 commit e43a88b
Show file tree
Hide file tree
Showing 9 changed files with 388 additions and 347 deletions.
699 changes: 370 additions & 329 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/domain/conversation/conversation.aggregate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import config from "../../config";
import { ConversationAIService } from "./ai/conversation-ai.service";
import {
AddUserMessageCommand,
Expand All @@ -17,6 +16,7 @@ import {
ConversationStarted,
} from "./conversation.events";
import { gpt3TokenCount } from "./gpt3-token-count";
import config from "../../config";

export class ConversationAggregate {
static create(
Expand Down
2 changes: 1 addition & 1 deletion src/infrastructure/cdk/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import {
import { Secret } from "aws-cdk-lib/aws-secretsmanager";
import { DeduplicationScope, Queue } from "aws-cdk-lib/aws-sqs";
import { Construct } from "constructs";
import config from "../../config";
import { CustomNodejsFunction } from "./custom-nodejs-function";
import config from "../../config";

const CONVERSATION_ID_INDEX_NAME = "CONVERSATION_ID_INDEX";
const CONVERSATION_LAMBDA_TIMEOUT = Duration.seconds(15);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { QueryCommand } from "@aws-sdk/lib-dynamodb";
import { SlackConversationView } from "../../domain/slack-adapter/slack-adapter.dto";
import { CrudDynamodbRepository } from "./crud-dynamodb-repository";
import { SlackConversationView } from "../../domain/slack-adapter/slack-adapter.dto";

type DatabaseEntity = Omit<
SlackConversationView,
Expand Down
2 changes: 1 addition & 1 deletion src/infrastructure/lambdas/conversation.lambda.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createHandler, EventListenerLambda, SQSEvent } from "./lambda";
import { ConversationCommandHandler } from "../../application/conversation/conversation-command.handler";
import { ConversationCommand } from "../../domain/conversation/conversation.commands";
import { createHandler, EventListenerLambda, SQSEvent } from "./lambda";

class ConversationLambda extends EventListenerLambda {
constructor(
Expand Down
2 changes: 1 addition & 1 deletion src/infrastructure/lambdas/open-ai.lambda.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AsyncLambda, createHandler } from "./lambda";
import { OpenAICommandHandler } from "../../application/open-ai/open-ai-command.handler";
import { ConversationAICommand } from "../../domain/conversation/ai/conversation-ai.commands";
import { AsyncLambda, createHandler } from "./lambda";

class OpenAILambda extends AsyncLambda<ConversationAICommand> {
constructor(
Expand Down
8 changes: 4 additions & 4 deletions src/infrastructure/lambdas/slack-adapter.lambda.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ConversationEventHandler } from "../../application/slack-adapter/conversation-event-handler";
import { SlackEventHandler } from "../../application/slack-adapter/slack-event-handler";
import { DomainEvent } from "../../domain/bus/event-bus";
import { SlackEventType } from "../../domain/slack-adapter/slack-adapter.dto";
import {
createHandler,
EventListenerLambda,
isSlackEventTypeOf,
SlackEventBridgeEvent,
SQSEvent,
} from "./lambda";
import { ConversationEventHandler } from "../../application/slack-adapter/conversation-event-handler";
import { SlackEventHandler } from "../../application/slack-adapter/slack-event-handler";
import { DomainEvent } from "../../domain/bus/event-bus";
import { SlackEventType } from "../../domain/slack-adapter/slack-adapter.dto";

class SlackAdapterLambda extends EventListenerLambda<SlackEventBridgeEvent> {
constructor(
Expand Down
2 changes: 1 addition & 1 deletion src/infrastructure/openai/openai.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import {
ConversationCompleteOutput,
ConversationSummaryOutput,
} from "@wisegpt/gpt-conversation-prompt";
import { ConversationPromptServiceFactory } from "./conversation-prompt-service.factory";
import config from "../../config";
import { getPersonaByConfigName } from "../../domain/persona";
import { Persona } from "../../domain/persona/base-persona/base-persona.dto";
import { ConversationPromptServiceFactory } from "./conversation-prompt-service.factory";

export class OpenAIService {
constructor(
Expand Down

0 comments on commit e43a88b

Please sign in to comment.