@aigne/deepseek 0.1.0

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # Changelog
2
+
3
+ ## [0.1.0](https://github.com/AIGNE-io/aigne-framework/compare/deepseek-v0.0.1...deepseek-v0.1.0) (2025-05-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * **models:** publish model adapters as standalone packages ([#126](https://github.com/AIGNE-io/aigne-framework/issues/126)) ([588b8ae](https://github.com/AIGNE-io/aigne-framework/commit/588b8aea6abcee5fa87def1358bf51f84021c6ef))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/openai bumped to 0.1.0
16
+ * devDependencies
17
+ * @aigne/test-utils bumped to 0.3.0
package/LICENSE.md ADDED
@@ -0,0 +1,93 @@
1
+ Elastic License 2.0
2
+
3
+ URL: https://www.elastic.co/licensing/elastic-license
4
+
5
+ ## Acceptance
6
+
7
+ By using the software, you agree to all of the terms and conditions below.
8
+
9
+ ## Copyright License
10
+
11
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
12
+ non-sublicensable, non-transferable license to use, copy, distribute, make
13
+ available, and prepare derivative works of the software, in each case subject to
14
+ the limitations and conditions below.
15
+
16
+ ## Limitations
17
+
18
+ You may not provide the software to third parties as a hosted or managed
19
+ service, where the service provides users with access to any substantial set of
20
+ the features or functionality of the software.
21
+
22
+ You may not move, change, disable, or circumvent the license key functionality
23
+ in the software, and you may not remove or obscure any functionality in the
24
+ software that is protected by the license key.
25
+
26
+ You may not alter, remove, or obscure any licensing, copyright, or other notices
27
+ of the licensor in the software. Any use of the licensor’s trademarks is subject
28
+ to applicable law.
29
+
30
+ ## Patents
31
+
32
+ The licensor grants you a license, under any patent claims the licensor can
33
+ license, or becomes able to license, to make, have made, use, sell, offer for
34
+ sale, import and have imported the software, in each case subject to the
35
+ limitations and conditions in this license. This license does not cover any
36
+ patent claims that you cause to be infringed by modifications or additions to
37
+ the software. If you or your company make any written claim that the software
38
+ infringes or contributes to infringement of any patent, your patent license for
39
+ the software granted under these terms ends immediately. If your company makes
40
+ such a claim, your patent license ends immediately for work on behalf of your
41
+ company.
42
+
43
+ ## Notices
44
+
45
+ You must ensure that anyone who gets a copy of any part of the software from you
46
+ also gets a copy of these terms.
47
+
48
+ If you modify the software, you must include in any modified copies of the
49
+ software prominent notices stating that you have modified the software.
50
+
51
+ ## No Other Rights
52
+
53
+ These terms do not imply any licenses other than those expressly granted in
54
+ these terms.
55
+
56
+ ## Termination
57
+
58
+ If you use the software in violation of these terms, such use is not licensed,
59
+ and your licenses will automatically terminate. If the licensor provides you
60
+ with a notice of your violation, and you cease all violation of this license no
61
+ later than 30 days after you receive that notice, your licenses will be
62
+ reinstated retroactively. However, if you violate these terms after such
63
+ reinstatement, any additional violation of these terms will cause your licenses
64
+ to terminate automatically and permanently.
65
+
66
+ ## No Liability
67
+
68
+ *As far as the law allows, the software comes as is, without any warranty or
69
+ condition, and the licensor will not be liable to you for any damages arising
70
+ out of these terms or the use or nature of the software, under any kind of
71
+ legal claim.*
72
+
73
+ ## Definitions
74
+
75
+ The **licensor** is the entity offering these terms, and the **software** is the
76
+ software the licensor makes available under these terms, including any portion
77
+ of it.
78
+
79
+ **you** refers to the individual or entity agreeing to these terms.
80
+
81
+ **your company** is any legal entity, sole proprietorship, or other kind of
82
+ organization that you work for, plus all organizations that have control over,
83
+ are under the control of, or are under common control with that
84
+ organization. **control** means ownership of substantially all the assets of an
85
+ entity, or the power to direct its management and policies by vote, contract, or
86
+ otherwise. Control can be direct or indirect.
87
+
88
+ **your licenses** are all the licenses granted to you for the software under
89
+ these terms.
90
+
91
+ **use** means anything you do with the software requiring one of your licenses.
92
+
93
+ **trademark** means trademarks, service marks, and similar rights.
package/README.md ADDED
@@ -0,0 +1,113 @@
1
+ # @aigne/deepseek
2
+
3
+ [![GitHub star chart](https://img.shields.io/github/stars/AIGNE-io/aigne-framework?style=flat-square)](https://star-history.com/#AIGNE-io/aigne-framework)
4
+ [![Open Issues](https://img.shields.io/github/issues-raw/AIGNE-io/aigne-framework?style=flat-square)](https://github.com/AIGNE-io/aigne-framework/issues)
5
+ [![codecov](https://codecov.io/gh/AIGNE-io/aigne-framework/graph/badge.svg?token=DO07834RQL)](https://codecov.io/gh/AIGNE-io/aigne-framework)
6
+ [![NPM Version](https://img.shields.io/npm/v/@aigne/deepseek)](https://www.npmjs.com/package/@aigne/deepseek)
7
+ [![Elastic-2.0 licensed](https://img.shields.io/npm/l/@aigne/deepseek)](https://github.com/AIGNE-io/aigne-framework/blob/main/LICENSE.md)
8
+
9
+ **English** | [中文](README.zh.md)
10
+
11
+ AIGNE Deepseek SDK for integrating with Deepseek AI models within the [AIGNE Framework](https://github.com/AIGNE-io/aigne-framework).
12
+
13
+ ## Introduction
14
+
15
+ `@aigne/deepseek` provides a seamless integration between the AIGNE Framework and Deepseek's powerful language models and API. This package enables developers to easily leverage Deepseek's AI models in their AIGNE applications, providing a consistent interface across the framework while taking advantage of Deepseek's advanced AI capabilities.
16
+
17
+ ## Features
18
+
19
+ * **Deepseek API Integration**: Direct connection to Deepseek's API services
20
+ * **Chat Completions**: Support for Deepseek's chat completions API with all available models
21
+ * **Function Calling**: Built-in support for function calling capabilities
22
+ * **Streaming Responses**: Support for streaming responses for more responsive applications
23
+ * **Type-Safe**: Comprehensive TypeScript typings for all APIs and models
24
+ * **Consistent Interface**: Compatible with the AIGNE Framework's model interface
25
+ * **Error Handling**: Robust error handling and retry mechanisms
26
+ * **Full Configuration**: Extensive configuration options for fine-tuning behavior
27
+
28
+ ## Installation
29
+
30
+ ### Using npm
31
+
32
+ ```bash
33
+ npm install @aigne/deepseek @aigne/core
34
+ ```
35
+
36
+ ### Using yarn
37
+
38
+ ```bash
39
+ yarn add @aigne/deepseek @aigne/core
40
+ ```
41
+
42
+ ### Using pnpm
43
+
44
+ ```bash
45
+ pnpm add @aigne/deepseek @aigne/core
46
+ ```
47
+
48
+ ## Basic Usage
49
+
50
+ ```typescript file="test/deepseek-chat-model.test.ts" region="example-deepseek-chat-model"
51
+ import { DeepSeekChatModel } from "@aigne/deepseek";
52
+
53
+ const model = new DeepSeekChatModel({
54
+ // Provide API key directly or use environment variable DEEPSEEK_API_KEY
55
+ apiKey: "your-api-key", // Optional if set in env variables
56
+ // Specify model version (defaults to 'deepseek-chat')
57
+ model: "deepseek-chat",
58
+ modelOptions: {
59
+ temperature: 0.7,
60
+ },
61
+ });
62
+
63
+ const result = await model.invoke({
64
+ messages: [{ role: "user", content: "Introduce yourself" }],
65
+ });
66
+
67
+ console.log(result);
68
+ /* Output:
69
+ {
70
+ text: "Hello! I'm an AI assistant powered by DeepSeek's language model.",
71
+ model: "deepseek-chat",
72
+ usage: {
73
+ inputTokens: 7,
74
+ outputTokens: 12
75
+ }
76
+ }
77
+ */
78
+ ```
79
+
80
+ ## Streaming Responses
81
+
82
+ ```typescript file="test/deepseek-chat-model.test.ts" region="example-deepseek-chat-model-streaming"
83
+ import { DeepSeekChatModel } from "@aigne/deepseek";
84
+
85
+ const model = new DeepSeekChatModel({
86
+ apiKey: "your-api-key",
87
+ model: "deepseek-chat",
88
+ });
89
+
90
+ const stream = await model.invoke(
91
+ {
92
+ messages: [{ role: "user", content: "Introduce yourself" }],
93
+ },
94
+ undefined,
95
+ { streaming: true },
96
+ );
97
+
98
+ let fullText = "";
99
+ const json = {};
100
+
101
+ for await (const chunk of stream) {
102
+ const text = chunk.delta.text?.text;
103
+ if (text) fullText += text;
104
+ if (chunk.delta.json) Object.assign(json, chunk.delta.json);
105
+ }
106
+
107
+ console.log(fullText); // Output: "Hello! I'm an AI assistant powered by DeepSeek's language model."
108
+ console.log(json); // { model: "deepseek-chat", usage: { inputTokens: 7, outputTokens: 12 } }
109
+ ```
110
+
111
+ ## License
112
+
113
+ Elastic-2.0
package/README.zh.md ADDED
@@ -0,0 +1,113 @@
1
+ # @aigne/deepseek
2
+
3
+ [![GitHub star chart](https://img.shields.io/github/stars/AIGNE-io/aigne-framework?style=flat-square)](https://star-history.com/#AIGNE-io/aigne-framework)
4
+ [![Open Issues](https://img.shields.io/github/issues-raw/AIGNE-io/aigne-framework?style=flat-square)](https://github.com/AIGNE-io/aigne-framework/issues)
5
+ [![codecov](https://codecov.io/gh/AIGNE-io/aigne-framework/graph/badge.svg?token=DO07834RQL)](https://codecov.io/gh/AIGNE-io/aigne-framework)
6
+ [![NPM Version](https://img.shields.io/npm/v/@aigne/deepseek)](https://www.npmjs.com/package/@aigne/deepseek)
7
+ [![Elastic-2.0 licensed](https://img.shields.io/npm/l/@aigne/deepseek)](https://github.com/AIGNE-io/aigne-framework/blob/main/LICENSE.md)
8
+
9
+ [English](README.md) | **中文**
10
+
11
+ AIGNE Deepseek SDK,用于在 [AIGNE 框架](https://github.com/AIGNE-io/aigne-framework) 中集成 Deepseek AI 模型。
12
+
13
+ ## 简介
14
+
15
+ `@aigne/deepseek` 提供了 AIGNE 框架与 Deepseek 强大的语言模型和 API 之间的无缝集成。该包使开发者能够在 AIGNE 应用程序中轻松利用 Deepseek 的 AI 模型,同时提供框架内一致的接口,充分发挥 Deepseek 先进的 AI 能力。
16
+
17
+ ## 特性
18
+
19
+ * **Deepseek API 集成**:直接连接到 Deepseek 的 API 服务
20
+ * **聊天完成**:支持 Deepseek 的聊天完成 API 和所有可用模型
21
+ * **函数调用**:内置支持函数调用功能
22
+ * **流式响应**:支持流式响应,提供更高响应性的应用程序体验
23
+ * **类型安全**:为所有 API 和模型提供全面的 TypeScript 类型定义
24
+ * **一致接口**:兼容 AIGNE 框架的模型接口
25
+ * **错误处理**:健壮的错误处理和重试机制
26
+ * **完整配置**:丰富的配置选项用于微调行为
27
+
28
+ ## 安装
29
+
30
+ ### 使用 npm
31
+
32
+ ```bash
33
+ npm install @aigne/deepseek @aigne/core
34
+ ```
35
+
36
+ ### 使用 yarn
37
+
38
+ ```bash
39
+ yarn add @aigne/deepseek @aigne/core
40
+ ```
41
+
42
+ ### 使用 pnpm
43
+
44
+ ```bash
45
+ pnpm add @aigne/deepseek @aigne/core
46
+ ```
47
+
48
+ ## 基本用法
49
+
50
+ ```typescript file="test/deepseek-chat-model.test.ts" region="example-deepseek-chat-model"
51
+ import { DeepSeekChatModel } from "@aigne/deepseek";
52
+
53
+ const model = new DeepSeekChatModel({
54
+ // Provide API key directly or use environment variable DEEPSEEK_API_KEY
55
+ apiKey: "your-api-key", // Optional if set in env variables
56
+ // Specify model version (defaults to 'deepseek-chat')
57
+ model: "deepseek-chat",
58
+ modelOptions: {
59
+ temperature: 0.7,
60
+ },
61
+ });
62
+
63
+ const result = await model.invoke({
64
+ messages: [{ role: "user", content: "Introduce yourself" }],
65
+ });
66
+
67
+ console.log(result);
68
+ /* Output:
69
+ {
70
+ text: "Hello! I'm an AI assistant powered by DeepSeek's language model.",
71
+ model: "deepseek-chat",
72
+ usage: {
73
+ inputTokens: 7,
74
+ outputTokens: 12
75
+ }
76
+ }
77
+ */
78
+ ```
79
+
80
+ ## 流式响应
81
+
82
+ ```typescript file="test/deepseek-chat-model.test.ts" region="example-deepseek-chat-model-streaming"
83
+ import { DeepSeekChatModel } from "@aigne/deepseek";
84
+
85
+ const model = new DeepSeekChatModel({
86
+ apiKey: "your-api-key",
87
+ model: "deepseek-chat",
88
+ });
89
+
90
+ const stream = await model.invoke(
91
+ {
92
+ messages: [{ role: "user", content: "Introduce yourself" }],
93
+ },
94
+ undefined,
95
+ { streaming: true },
96
+ );
97
+
98
+ let fullText = "";
99
+ const json = {};
100
+
101
+ for await (const chunk of stream) {
102
+ const text = chunk.delta.text?.text;
103
+ if (text) fullText += text;
104
+ if (chunk.delta.json) Object.assign(json, chunk.delta.json);
105
+ }
106
+
107
+ console.log(fullText); // Output: "Hello! I'm an AI assistant powered by DeepSeek's language model."
108
+ console.log(json); // { model: "deepseek-chat", usage: { inputTokens: 7, outputTokens: 12 } }
109
+ ```
110
+
111
+ ## 许可证
112
+
113
+ Elastic-2.0
@@ -0,0 +1,23 @@
1
+ import { OpenAIChatModel, type OpenAIChatModelOptions } from "@aigne/openai";
2
+ /**
3
+ * Implementation of the ChatModel interface for DeepSeek's API
4
+ *
5
+ * This model uses OpenAI-compatible API format to interact with DeepSeek's models,
6
+ * but with specific configuration and capabilities for DeepSeek.
7
+ *
8
+ * Default model: 'deepseek-chat'
9
+ *
10
+ * @example
11
+ * Here's how to create and use a DeepSeek chat model:
12
+ * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model}
13
+ *
14
+ * @example
15
+ * Here's an example with streaming response:
16
+ * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model-streaming}
17
+ */
18
+ export declare class DeepSeekChatModel extends OpenAIChatModel {
19
+ constructor(options?: OpenAIChatModelOptions);
20
+ protected apiKeyEnvName: string;
21
+ protected supportsNativeStructuredOutputs: boolean;
22
+ protected supportsToolsEmptyParameters: boolean;
23
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeepSeekChatModel = void 0;
4
+ const openai_1 = require("@aigne/openai");
5
+ const DEEPSEEK_DEFAULT_CHAT_MODEL = "deepseek-chat";
6
+ const DEEPSEEK_BASE_URL = "https://api.deepseek.com";
7
+ /**
8
+ * Implementation of the ChatModel interface for DeepSeek's API
9
+ *
10
+ * This model uses OpenAI-compatible API format to interact with DeepSeek's models,
11
+ * but with specific configuration and capabilities for DeepSeek.
12
+ *
13
+ * Default model: 'deepseek-chat'
14
+ *
15
+ * @example
16
+ * Here's how to create and use a DeepSeek chat model:
17
+ * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model}
18
+ *
19
+ * @example
20
+ * Here's an example with streaming response:
21
+ * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model-streaming}
22
+ */
23
+ class DeepSeekChatModel extends openai_1.OpenAIChatModel {
24
+ constructor(options) {
25
+ super({
26
+ ...options,
27
+ model: options?.model || DEEPSEEK_DEFAULT_CHAT_MODEL,
28
+ baseURL: options?.baseURL || DEEPSEEK_BASE_URL,
29
+ });
30
+ }
31
+ apiKeyEnvName = "DEEPSEEK_API_KEY";
32
+ supportsNativeStructuredOutputs = false;
33
+ supportsToolsEmptyParameters = false;
34
+ }
35
+ exports.DeepSeekChatModel = DeepSeekChatModel;
@@ -0,0 +1 @@
1
+ export * from "./deepseek-chat-model.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./deepseek-chat-model.js"), exports);
@@ -0,0 +1 @@
1
+ {"type": "commonjs"}
@@ -0,0 +1,23 @@
1
+ import { OpenAIChatModel, type OpenAIChatModelOptions } from "@aigne/openai";
2
+ /**
3
+ * Implementation of the ChatModel interface for DeepSeek's API
4
+ *
5
+ * This model uses OpenAI-compatible API format to interact with DeepSeek's models,
6
+ * but with specific configuration and capabilities for DeepSeek.
7
+ *
8
+ * Default model: 'deepseek-chat'
9
+ *
10
+ * @example
11
+ * Here's how to create and use a DeepSeek chat model:
12
+ * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model}
13
+ *
14
+ * @example
15
+ * Here's an example with streaming response:
16
+ * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model-streaming}
17
+ */
18
+ export declare class DeepSeekChatModel extends OpenAIChatModel {
19
+ constructor(options?: OpenAIChatModelOptions);
20
+ protected apiKeyEnvName: string;
21
+ protected supportsNativeStructuredOutputs: boolean;
22
+ protected supportsToolsEmptyParameters: boolean;
23
+ }
@@ -0,0 +1 @@
1
+ export * from "./deepseek-chat-model.js";
@@ -0,0 +1,23 @@
1
+ import { OpenAIChatModel, type OpenAIChatModelOptions } from "@aigne/openai";
2
+ /**
3
+ * Implementation of the ChatModel interface for DeepSeek's API
4
+ *
5
+ * This model uses OpenAI-compatible API format to interact with DeepSeek's models,
6
+ * but with specific configuration and capabilities for DeepSeek.
7
+ *
8
+ * Default model: 'deepseek-chat'
9
+ *
10
+ * @example
11
+ * Here's how to create and use a DeepSeek chat model:
12
+ * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model}
13
+ *
14
+ * @example
15
+ * Here's an example with streaming response:
16
+ * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model-streaming}
17
+ */
18
+ export declare class DeepSeekChatModel extends OpenAIChatModel {
19
+ constructor(options?: OpenAIChatModelOptions);
20
+ protected apiKeyEnvName: string;
21
+ protected supportsNativeStructuredOutputs: boolean;
22
+ protected supportsToolsEmptyParameters: boolean;
23
+ }
@@ -0,0 +1,31 @@
1
+ import { OpenAIChatModel } from "@aigne/openai";
2
+ const DEEPSEEK_DEFAULT_CHAT_MODEL = "deepseek-chat";
3
+ const DEEPSEEK_BASE_URL = "https://api.deepseek.com";
4
+ /**
5
+ * Implementation of the ChatModel interface for DeepSeek's API
6
+ *
7
+ * This model uses OpenAI-compatible API format to interact with DeepSeek's models,
8
+ * but with specific configuration and capabilities for DeepSeek.
9
+ *
10
+ * Default model: 'deepseek-chat'
11
+ *
12
+ * @example
13
+ * Here's how to create and use a DeepSeek chat model:
14
+ * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model}
15
+ *
16
+ * @example
17
+ * Here's an example with streaming response:
18
+ * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model-streaming}
19
+ */
20
+ export class DeepSeekChatModel extends OpenAIChatModel {
21
+ constructor(options) {
22
+ super({
23
+ ...options,
24
+ model: options?.model || DEEPSEEK_DEFAULT_CHAT_MODEL,
25
+ baseURL: options?.baseURL || DEEPSEEK_BASE_URL,
26
+ });
27
+ }
28
+ apiKeyEnvName = "DEEPSEEK_API_KEY";
29
+ supportsNativeStructuredOutputs = false;
30
+ supportsToolsEmptyParameters = false;
31
+ }
@@ -0,0 +1 @@
1
+ export * from "./deepseek-chat-model.js";
@@ -0,0 +1 @@
1
+ export * from "./deepseek-chat-model.js";
@@ -0,0 +1 @@
1
+ {"type": "module"}
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@aigne/deepseek",
3
+ "version": "0.1.0",
4
+ "description": "AIGNE Deepseek SDK for integrating with Deepseek AI models",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "author": "Arcblock <blocklet@arcblock.io> https://github.com/blocklet",
9
+ "homepage": "https://github.com/AIGNE-io/aigne-framework",
10
+ "license": "Elastic-2.0",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/AIGNE-io/aigne-framework"
14
+ },
15
+ "files": [
16
+ "lib/cjs",
17
+ "lib/dts",
18
+ "lib/esm",
19
+ "LICENSE",
20
+ "README.md",
21
+ "CHANGELOG.md"
22
+ ],
23
+ "type": "module",
24
+ "main": "./lib/cjs/index.js",
25
+ "module": "./lib/esm/index.js",
26
+ "types": "./lib/dts/index.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "import": "./lib/esm/index.js",
30
+ "require": "./lib/cjs/index.js",
31
+ "types": "./lib/dts/index.d.ts"
32
+ }
33
+ },
34
+ "dependencies": {
35
+ "@aigne/openai": "^0.1.0"
36
+ },
37
+ "devDependencies": {
38
+ "@types/bun": "^1.2.12",
39
+ "@types/node": "^22.15.15",
40
+ "npm-run-all": "^4.1.5",
41
+ "rimraf": "^6.0.1",
42
+ "typescript": "^5.8.3",
43
+ "@aigne/test-utils": "^0.3.0"
44
+ },
45
+ "scripts": {
46
+ "lint": "tsc --noEmit",
47
+ "build": "tsc --build scripts/tsconfig.build.json",
48
+ "clean": "rimraf lib test/coverage",
49
+ "test": "bun test",
50
+ "test:coverage": "bun test --coverage --coverage-reporter=lcov --coverage-reporter=text",
51
+ "postbuild": "echo '{\"type\": \"module\"}' > lib/esm/package.json && echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json"
52
+ }
53
+ }