Skip to content

Commit fe26469

Browse files
committed
Agentic RAG化
1 parent 7fa3e4c commit fe26469

44 files changed

Lines changed: 710 additions & 532 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

agents/agent-mastra/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@eslint/compat": "^1.4.0",
2929
"@eslint/js": "^9.38.0",
3030
"@stylistic/eslint-plugin": "^5.5.0",
31-
"@types/node": "^24.9.1",
31+
"@types/node": "^24.9.2",
3232
"eslint": "^9.38.0",
3333
"eslint-import-resolver-typescript": "^4.4.4",
3434
"eslint-plugin-import": "^2.32.0",

agents/agent-voltagent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"zod": "3.24.2"
2929
},
3030
"devDependencies": {
31-
"@types/node": "^22.18.12",
31+
"@types/node": "^22.18.13",
3232
"tsx": "^4.20.6",
3333
"typescript": "^5.9.3"
3434
}

basic/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@solidjs/router": "^0.15.3",
2525
"@stylistic/eslint-plugin": "^5.5.0",
2626
"@types/crypto-js": "^4.2.2",
27-
"@types/node": "^22.18.12",
27+
"@types/node": "^22.18.13",
2828
"@types/uuid": "^10.0.0",
2929
"crypto-js": "^4.2.0",
3030
"eslint": "^9.38.0",

basic/cdk/bin/cdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as cdk from 'aws-cdk-lib';
44
import {
55
CloudfrontCdnTemplateStack,
66
Config,
7-
} from '../lib/cdk-stack';
7+
} from '../lib/cdk-stack.js';
88

99
const app = new cdk.App();
1010

basic/cdk/lambda/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { APIGatewayProxyEvent } from 'aws-lambda';
2-
import { handle } from './handler';
32
import { v7 as uuidv7 } from 'uuid';
3+
import { handle } from './handler.js';
44

55
import { logger } from '@llm-ts-example/common-backend';
66

basic/cdk/lib/cdk-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import * as lambda from 'aws-cdk-lib/aws-lambda';
77
import * as nodejs from 'aws-cdk-lib/aws-lambda-nodejs';
88
import * as awslogs from 'aws-cdk-lib/aws-logs';
99
import * as iam from 'aws-cdk-lib/aws-iam';
10-
import { buildCommon, buildFrontend } from './process/setup';
1110
import * as deployment from 'aws-cdk-lib/aws-s3-deployment';
11+
import { buildCommon, buildFrontend } from './process/setup.js';
1212

1313
export interface Config extends cdk.StackProps {
1414
bucketName: string;

basic/cdk/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"@eslint/core": "^0.16.0",
1818
"@eslint/js": "^9.38.0",
1919
"@stylistic/eslint-plugin": "^5.5.0",
20-
"@types/aws-lambda": "^8.10.156",
21-
"@types/node": "^24.9.1",
20+
"@types/aws-lambda": "^8.10.157",
21+
"@types/node": "^24.9.2",
2222
"@vitest/eslint-plugin": "^1.3.26",
2323
"aws-cdk": "^2.1031.0",
2424
"dotenv": "^16.6.1",
@@ -42,9 +42,9 @@
4242
"@aws-sdk/credential-provider-node": "^3.918.0",
4343
"@langchain/anthropic": "^1.0.0",
4444
"@langchain/aws": "^1.0.0",
45-
"@langchain/classic": "^1.0.1",
46-
"@langchain/core": "^1.0.2",
47-
"@langchain/langgraph": "^1.0.1",
45+
"@langchain/classic": "1.0.0",
46+
"@langchain/core": "1.0.0",
47+
"@langchain/langgraph": "1.0.0",
4848
"@langchain/openai": "^1.0.0",
4949
"@llm-ts-example/common-backend": "workspace:*",
5050
"@opentelemetry/api": "^1.9.0",

basic/cdk/test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test } from 'vitest';
2-
import { handle } from '../lambda/handler';
32
import { stdout } from 'node:process';
43
import { PassThrough } from 'node:stream';
4+
import { handle } from '../lambda/handler.js';
55

66
function sleep(time: number) {
77
return new Promise<void>((resolve) => {

basic/cdk/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"compilerOptions": {
33
"target": "esnext",
4-
"module": "esnext",
4+
"module": "nodenext",
55
"lib": [
66
"esnext",
77
"dom"
88
],
9-
"moduleResolution": "bundler",
9+
"moduleResolution": "nodenext",
1010
"moduleDetection": "force",
1111
"resolveJsonModule": true,
1212
"allowJs": true,

common/backend/eslint.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ export default defineConfig(
4949
'@stylistic': stylistic,
5050
},
5151
extends: [importPlugin.flatConfigs.recommended, importPlugin.flatConfigs.typescript],
52+
settings: {
53+
'import/resolver': {
54+
// You will also need to install and configure the TypeScript resolver
55+
// See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
56+
'typescript': {
57+
alwaysTryTypes: true,
58+
},
59+
'node': true,
60+
},
61+
},
5262
rules: {
5363
'@stylistic/semi': ['error', 'always'],
5464
'@stylistic/indent': ['error', 2],

0 commit comments

Comments
 (0)