@lingda-ai/dsh-plugin-ledger 0.0.0-stage → 0.1.3
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 +22 -2
- package/cordis.patch.yml +4 -0
- package/package.json +26 -3
package/README.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @lingda-ai/dsh-plugin-ledger
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**这是分发入口,不是实现。** 真正的代码在 [`@lingda-ai/ledger`](https://www.npmjs.com/package/@lingda-ai/ledger)。
|
|
4
|
+
|
|
5
|
+
存在的唯一理由:DSH 社区插件的惯例命名是 `dsh-plugin-*`,用这个名字便于在插件市场被检索到。
|
|
6
|
+
|
|
7
|
+
## 装
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
dsh plugin --profile <profile> add @lingda-ai/dsh-plugin-ledger
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
装完请在 `cordis.patch.yml` 里打开面板(默认关,因为写盘是外部副作用):
|
|
14
|
+
|
|
15
|
+
```yaml
|
|
16
|
+
- id: lingda-ledger
|
|
17
|
+
name: '@lingda-ai/ledger'
|
|
18
|
+
config:
|
|
19
|
+
panel:
|
|
20
|
+
enabled: true
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
> 与 `@lingda-ai/ledger` **二选一**,两个都装会重复注册同一个插件席位。
|
package/cordis.patch.yml
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingda-ai/dsh-plugin-ledger",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "DSH 插件搜索入口:运行时账本(成本/用量观测)。实现在 @lingda-ai/ledger,本包仅转发装配。",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"dsh",
|
|
8
|
+
"dsh-plugin",
|
|
9
|
+
"ledger",
|
|
10
|
+
"cost",
|
|
11
|
+
"token-usage",
|
|
12
|
+
"budget"
|
|
13
|
+
],
|
|
14
|
+
"dsh": {
|
|
15
|
+
"bundle": {
|
|
16
|
+
"patch": "./cordis.patch.yml"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"cordis.patch.yml",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@lingda-ai/ledger": "^0.1.0"
|
|
28
|
+
}
|
|
6
29
|
}
|