promptlayer 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ * @jzone3
@@ -0,0 +1,29 @@
1
+ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run lint across different versions of node
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3
+
4
+ name: Node.js CI
5
+
6
+ on:
7
+ push:
8
+ branches: ["master"]
9
+ pull_request:
10
+ branches: ["master"]
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ubuntu-latest
15
+
16
+ strategy:
17
+ matrix:
18
+ node-version: [16.x, 18.x]
19
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20
+
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - name: Use Node.js ${{ matrix.node-version }}
24
+ uses: actions/setup-node@v3
25
+ with:
26
+ node-version: ${{ matrix.node-version }}
27
+ cache: "npm"
28
+ - run: npm ci
29
+ - run: npm run lint && npm run build
@@ -0,0 +1,35 @@
1
+ # This workflow will publish a package to NPM when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name: Node.js Package
5
+
6
+ on:
7
+ release:
8
+ types: [created]
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-node@v3
16
+ with:
17
+ node-version: 16
18
+ cache: "npm"
19
+ - run: npm ci
20
+ - run: npm run lint && npm run build
21
+
22
+ publish-npm:
23
+ needs: build
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ - uses: actions/setup-node@v3
28
+ with:
29
+ node-version: 16
30
+ registry-url: https://registry.npmjs.org/
31
+ cache: "npm"
32
+ - run: npm ci
33
+ - run: npm publish
34
+ env:
35
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Magniv
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,97 @@
1
+ <div align="center">
2
+
3
+ # šŸ° PromptLayer
4
+
5
+ **The first platform built for <span style="background-color: rgb(219, 234, 254);">prompt engineers</span>**
6
+
7
+ <a href="https://nodejs.org"><img alt="Node" src="https://img.shields.io/badge/Node.js-43853D?style=for-the-badge&logo=node.js&logoColor=white"></a>
8
+ <a href="https://docs.promptlayer.com"><img alt="Docs" src="https://custom-icon-badges.herokuapp.com/badge/docs-PL-green.svg?logo=cake&style=for-the-badge"></a>
9
+ <a href="https://www.loom.com/share/196c42e43acd4a369d75e9a7374a0850"><img alt="Demo with Loom" src="https://img.shields.io/badge/Demo-loom-552586.svg?logo=loom&style=for-the-badge&labelColor=gray"></a>
10
+
11
+ ---
12
+
13
+ <div align="left">
14
+
15
+ [PromptLayer](https://promptlayer.com/) is the first platform that allows you to track, manage, and share your GPT prompt engineering. PromptLayer acts a middleware between your code and OpenAI’s JavaScript library.
16
+
17
+ PromptLayer records all your OpenAI API requests, allowing you to search and explore request history in the PromptLayer dashboard.
18
+
19
+ This repo contains the JavaScript wrapper library for PromptLayer.
20
+
21
+ ## Quickstart ⚔
22
+
23
+ ### Install PromptLayer
24
+
25
+ ```bash
26
+ npm install promptlayer
27
+ ```
28
+
29
+ ### Installing PromptLayer Locally
30
+
31
+ Use `npm install .` to install locally.
32
+
33
+ ### Using PromptLayer
34
+
35
+ To get started, create an account by clicking ā€œ_Log in_ā€ on [PromptLayer](https://promptlayer.com/). Once logged in, click the button to create an API key and save this in a secure location ([Guide to Using Env Vars](https://nodejs.dev/en/learn/how-to-read-environment-variables-from-nodejs/)).
36
+
37
+ ```bash
38
+ export OPENAI_API_KEY=sk_xxxxxx
39
+ export PROMPTLAYER_API_KEY=pl_xxxxxx
40
+ ```
41
+
42
+ Once you have that all set up, install PromptLayer using `npm`.
43
+
44
+ In the JavaScript file where you use OpenAI APIs, add the following. This allows us to keep track of your requests without needing any other code changes.
45
+
46
+ ```js
47
+ import BaseOpenAI from "openai";
48
+ import promptlayer from "promptlayer";
49
+
50
+ // Typescript
51
+ const OpenAI: typeof BaseOpenAI = promptlayer.OpenAI;
52
+ const openai = new OpenAI();
53
+ ```
54
+
55
+ **You can then use `openai` as you would if you had imported it directly.**
56
+
57
+ <aside>
58
+ šŸ’” Your OpenAI API Key is **never** sent to our servers. All OpenAI requests are made locally from your machine, PromptLayer just logs the request.
59
+ </aside>
60
+
61
+ ### Adding PromptLayer tags: `pl_tags`
62
+
63
+ PromptLayer allows you to add tags through the `pl_tags` argument. This allows you to track and group requests in the dashboard.
64
+
65
+ _Tags are not required but we recommend them!_
66
+
67
+ ```js
68
+ openai.chat.completions.create({
69
+ messages: [{ role: "user", content: "Say this is a test" }],
70
+ model: "gpt-3.5-turbo",
71
+ // @ts-ignore
72
+ pl_tags: ["test"],
73
+ });
74
+ ```
75
+
76
+ ### Returning request id: `return_pl_id`
77
+
78
+ PromptLayer allows you to return the request id through the `return_pl_id` argument. When you set this to `true`, a tuple is returned with the request id as the second element.
79
+
80
+ ```js
81
+ openai.chat.completions.create({
82
+ messages: [{ role: "user", content: "Say this is a test" }],
83
+ model: "gpt-3.5-turbo",
84
+ // @ts-ignore
85
+ return_pl_id: true,
86
+ });
87
+ ```
88
+
89
+ <aside>
90
+ Notice the `ts-ignore` comment. This is because the `pl_tags` and `return_pl_id` arguments are not part of the OpenAI API. We are working on a way to make this more seamless.
91
+ </aside>
92
+
93
+ After making your first few requests, you should be able to see them in the PromptLayer dashboard!
94
+
95
+ ## Contributing
96
+
97
+ We welcome contributions to our open source project, including new features, infrastructure improvements, and better documentation. For more information or any questions, contact us at [hello@promptlayer.com](mailto:hello@promptlayer.com).
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "promptlayer",
3
+ "license": "MIT",
4
+ "version": "0.0.1",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/index.d.ts",
8
+ "private": false,
9
+ "scripts": {
10
+ "build": "tsup-node src/index.ts --format cjs,esm --minify --dts-resolve --clean --sourcemap --legacy-output",
11
+ "lint": "tsc",
12
+ "release": "npm run build && npm publish"
13
+ },
14
+ "devDependencies": {
15
+ "@types/node": "^20.8.0",
16
+ "tsup": "^7.2.0",
17
+ "typescript": "^5.2.2"
18
+ }
19
+ }
package/src/index.ts ADDED
@@ -0,0 +1,8 @@
1
+ import promptlayer from "@/promptlayer";
2
+ import * as utils from "@/utils";
3
+
4
+ export default {
5
+ OpenAI: promptlayer.OpenAI,
6
+ api_key: promptlayer.api_key,
7
+ utils,
8
+ };
@@ -0,0 +1,91 @@
1
+ import { getApiKey, promptLayerApiRequest } from "@/utils";
2
+
3
+ const promptLayerBase = (
4
+ llm: object,
5
+ function_name = "",
6
+ provider = "openai"
7
+ ) => {
8
+ const handler: ProxyHandler<any> = {
9
+ construct: (target, args) => {
10
+ const newTarget = Reflect.construct(target, args);
11
+ Object.defineProperties(newTarget, {
12
+ function_name: {
13
+ value: function_name,
14
+ writable: true,
15
+ },
16
+ provider: {
17
+ value: provider,
18
+ },
19
+ });
20
+ return new Proxy(newTarget, handler);
21
+ },
22
+ get: (target, prop, receiver) => {
23
+ const value = target[prop];
24
+ if (prop === "post") return value;
25
+ const function_name = Reflect.get(target, "function_name");
26
+ Object.defineProperties(value, {
27
+ function_name: {
28
+ value: `${function_name}.${prop.toString()}`,
29
+ writable: true,
30
+ },
31
+ provider: {
32
+ value: Reflect.get(target, "provider"),
33
+ },
34
+ });
35
+ return new Proxy(value, handler);
36
+ },
37
+ apply: (target, thisArg, argArray) => {
38
+ const request_start_time = new Date().toISOString();
39
+ const function_name = Reflect.get(target, "function_name");
40
+ const provider_type = Reflect.get(target, "provider");
41
+ const return_pl_id = argArray[0]?.return_pl_id;
42
+ const pl_tags = argArray[0]?.pl_tags;
43
+ delete argArray[0]?.return_pl_id;
44
+ delete argArray[0]?.pl_tags;
45
+ const response = Reflect.apply(target, thisArg, argArray);
46
+ if (response instanceof Promise) {
47
+ return new Promise((resolve, reject) => {
48
+ response
49
+ .then(async (request_response) => {
50
+ const response = await promptLayerApiRequest({
51
+ api_key: getApiKey(),
52
+ provider_type,
53
+ function_name,
54
+ request_start_time,
55
+ request_end_time: new Date().toISOString(),
56
+ request_response,
57
+ kwargs: argArray[0],
58
+ return_pl_id,
59
+ tags: pl_tags,
60
+ });
61
+ resolve(response);
62
+ })
63
+ .catch((error) => {
64
+ reject(error);
65
+ });
66
+ });
67
+ }
68
+ return response;
69
+ },
70
+ };
71
+ return new Proxy(llm, handler);
72
+ };
73
+
74
+ const dynamicExports = new Proxy<{ OpenAI: any; api_key: string | undefined }>(
75
+ {
76
+ OpenAI: {},
77
+ api_key: process.env.PROMPTLAYER_API_KEY,
78
+ },
79
+ {
80
+ get: (target, prop, receiver) => {
81
+ if (prop === "OpenAI") {
82
+ const moduleName = "openai";
83
+ const module = require(moduleName).default;
84
+ return promptLayerBase(module, moduleName, moduleName);
85
+ }
86
+ return Reflect.get(target, prop, receiver);
87
+ },
88
+ }
89
+ );
90
+
91
+ export default dynamicExports;
@@ -0,0 +1 @@
1
+ export { TrackRequest } from "@/types/track-request";
@@ -0,0 +1,16 @@
1
+ export interface TrackRequest {
2
+ api_key: string;
3
+ provider_type?: string;
4
+ function_name: string;
5
+ args?: unknown[];
6
+ kwargs?: Record<string, unknown>;
7
+ request_end_time: string;
8
+ request_start_time: string;
9
+ prompt_id?: number;
10
+ prompt_version?: number;
11
+ metadata?: Record<string, string>;
12
+ tags?: string[];
13
+ request_response?: Record<string, unknown>;
14
+ prompt_input_variables?: Record<string, string> | string[];
15
+ [k: string]: unknown;
16
+ }
@@ -0,0 +1,44 @@
1
+ import promptlayer from "@/promptlayer";
2
+ import { TrackRequest } from "@/types";
3
+
4
+ const URL_API_PROMPTLAYER = "https://api.promptlayer.com";
5
+
6
+ const getApiKey = () => {
7
+ if (promptlayer.api_key === undefined) {
8
+ throw new Error(
9
+ "Please set your PROMPTLAYER_API_KEY environment variable or set API KEY in code using 'promptlayer.api_key = <your_api_key>' "
10
+ );
11
+ } else {
12
+ return promptlayer.api_key;
13
+ }
14
+ };
15
+
16
+ const promptLayerApiRequest = async (body: TrackRequest) => {
17
+ try {
18
+ const response = await fetch(`${URL_API_PROMPTLAYER}/track-request`, {
19
+ method: "POST",
20
+ headers: {
21
+ "Content-Type": "application/json",
22
+ },
23
+ body: JSON.stringify(body),
24
+ });
25
+ const data = await response.json();
26
+ if (response.status !== 200) {
27
+ console.warn(
28
+ `WARNING: While logging your request PromptLayer had the following error: ${JSON.stringify(
29
+ data
30
+ )}`
31
+ );
32
+ }
33
+ if (data && body.return_pl_id) {
34
+ return [body.request_response, data.request_id];
35
+ }
36
+ return body.request_response;
37
+ } catch (e) {
38
+ console.warn(
39
+ `WARNING: While logging your request PromptLayer had the following error: ${e}`
40
+ );
41
+ }
42
+ };
43
+
44
+ export { getApiKey, promptLayerApiRequest };
package/tsconfig.json ADDED
@@ -0,0 +1,114 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
+ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
+
13
+ /* Language and Environment */
14
+ "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
15
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
+ // "jsx": "preserve", /* Specify what JSX code is generated. */
17
+ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
18
+ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
+
27
+ /* Modules */
28
+ "module": "commonjs" /* Specify what module code is generated. */,
29
+ // "rootDir": "./", /* Specify the root folder within your source files. */
30
+ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
31
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
34
+ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
35
+ // "types": [], /* Specify type package names to be included without being referenced in a source file. */
36
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
37
+ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
38
+ // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39
+ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
40
+ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
41
+ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
42
+ // "resolveJsonModule": true, /* Enable importing .json files. */
43
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
44
+ // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
45
+
46
+ /* JavaScript Support */
47
+ // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
48
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
49
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
50
+
51
+ /* Emit */
52
+ // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
53
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
54
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55
+ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
56
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
57
+ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58
+ // "outDir": "./", /* Specify an output folder for all emitted files. */
59
+ // "removeComments": true, /* Disable emitting comments. */
60
+ // "noEmit": true, /* Disable emitting files from a compilation. */
61
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
62
+ // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
63
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
64
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
65
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
66
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
67
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
68
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
69
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
70
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
71
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
72
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
73
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
74
+ // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
75
+
76
+ /* Interop Constraints */
77
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
78
+ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
79
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
80
+ "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
81
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
82
+ "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
83
+
84
+ /* Type Checking */
85
+ "strict": true /* Enable all strict type-checking options. */,
86
+ // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
87
+ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
88
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
89
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
90
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
91
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
92
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
93
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
94
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
95
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
96
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
97
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
98
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
99
+ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
100
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
101
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
102
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
103
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
104
+
105
+ /* Completeness */
106
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
107
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */,
108
+ "noEmit": true,
109
+ "baseUrl": "./src",
110
+ "paths": {
111
+ "@/*": ["*"]
112
+ }
113
+ }
114
+ }