@changw98ic/core 1.0.0 → 1.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.
- package/README.md +24 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @changw98ic/core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
通用网文创作 TypeScript 工具链的核心类型与 Skill 定义。
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
@@ -10,19 +10,36 @@ npm install @changw98ic/core
|
|
|
10
10
|
|
|
11
11
|
## 使用
|
|
12
12
|
|
|
13
|
+
### 根入口
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
Skill,
|
|
18
|
+
SkillContext,
|
|
19
|
+
SkillResult,
|
|
20
|
+
ProjectState,
|
|
21
|
+
Entity,
|
|
22
|
+
EntityType,
|
|
23
|
+
} from '@changw98ic/core';
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### 子路径导入
|
|
27
|
+
|
|
13
28
|
```typescript
|
|
14
|
-
import { Skill, SkillContext, SkillResult } from '@changw98ic/core';
|
|
15
29
|
import { ProjectState, Entity, EntityType } from '@changw98ic/core/types';
|
|
16
30
|
```
|
|
17
31
|
|
|
18
|
-
##
|
|
32
|
+
## 说明
|
|
19
33
|
|
|
20
|
-
|
|
34
|
+
- 根入口当前主要重导出 `types` 模块。
|
|
35
|
+
- 已发布的导出路径见 `packages/core/package.json`:`.`、`./types`。
|
|
36
|
+
- 上层 CLI、数据层和适配器包都依赖这里的类型定义。
|
|
21
37
|
|
|
22
|
-
##
|
|
38
|
+
## 文档
|
|
23
39
|
|
|
24
|
-
|
|
40
|
+
- 项目主页:<https://github.com/changw98ic/webnovel-writer-skill#readme>
|
|
41
|
+
- 工作区包总览:`packages/README.md`
|
|
25
42
|
|
|
26
43
|
## License
|
|
27
44
|
|
|
28
|
-
|
|
45
|
+
GPL-3.0-or-later
|