@rosmeowtis/dsh-aria2-rpc 0.1.0 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/client.js +2 -2
  3. package/package.json +32 -7
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # dsh-aria2-rpc
1
+ # @rosmeowtis/dsh-aria2-rpc
2
2
 
3
3
  DSH 插件:连接**已有的 aria2 JSON-RPC 服务**(HTTP,`/jsonrpc`),为模型提供四个工具。不携带、不启动、不管理 aria2。
4
4
 
package/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  window.__ModuleLoader__.load({
2
- id: 'dsh-aria2-rpc',
2
+ id: '@rosmeowtis/dsh-aria2-rpc',
3
3
  factory(require) {
4
4
  const React = require('react');
5
5
  const h = React.createElement;
@@ -184,7 +184,7 @@ window.__ModuleLoader__.load({
184
184
  notice && h('p', { role: failed ? 'alert' : 'status', className: `aria2-rpc-note${failed ? ' aria2-rpc-error' : ''}` }, notice),
185
185
  );
186
186
  }
187
- ready.slots.inject('plugins.bundle.config', () => ready.slots.register({ name: 'plugins.bundle.config', key: 'dsh-aria2-rpc' }, Settings));
187
+ ready.slots.inject('plugins.bundle.config', () => ready.slots.register({ name: 'plugins.bundle.config', key: '@rosmeowtis/dsh-aria2-rpc' }, Settings));
188
188
  });
189
189
  },
190
190
  };
package/package.json CHANGED
@@ -1,24 +1,49 @@
1
1
  {
2
2
  "name": "@rosmeowtis/dsh-aria2-rpc",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Control an existing aria2 JSON-RPC service from DSH. No bundled downloader.",
5
5
  "license": "MIT",
6
- "repository": { "type": "git", "url": "git+https://github.com/Rosmeowtis/dsh-aria2-rpc.git" },
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Rosmeowtis/dsh-aria2-rpc.git"
9
+ },
7
10
  "type": "module",
8
11
  "main": "./lib/src/index.js",
9
12
  "types": "./lib/src/index.d.ts",
10
13
  "icon": "./icon.svg",
11
14
  "exports": {
12
- ".": { "types": "./lib/src/index.d.ts", "import": "./lib/src/index.js" },
15
+ ".": {
16
+ "types": "./lib/src/index.d.ts",
17
+ "import": "./lib/src/index.js"
18
+ },
13
19
  "./client": "./client.js",
14
20
  "./package.json": "./package.json",
15
21
  "./locale/*.json": "./locale/*.json"
16
22
  },
17
- "files": ["lib/src", "client.js", "locale/*.json", "icon.svg", "cordis.patch.yml", "README.md", "LICENSE"],
18
- "engines": { "node": ">=22.18", "dsh": "^0.2.1-rc.5" },
23
+ "files": [
24
+ "lib/src",
25
+ "client.js",
26
+ "locale/*.json",
27
+ "icon.svg",
28
+ "cordis.patch.yml",
29
+ "README.md",
30
+ "LICENSE"
31
+ ],
32
+ "engines": {
33
+ "node": ">=22.18",
34
+ "dsh": "^0.2.1-rc.5"
35
+ },
19
36
  "dsh": {
20
- "bundle": { "patch": "./cordis.patch.yml" },
21
- "client": { "platform": "web", "inject": ["@deepseek-ai/dsh-client-ui-plugin-manager", "@deepseek-ai/dsh-client-ui-settings"] }
37
+ "bundle": {
38
+ "patch": "./cordis.patch.yml"
39
+ },
40
+ "client": {
41
+ "platform": "web",
42
+ "inject": [
43
+ "@deepseek-ai/dsh-client-ui-plugin-manager",
44
+ "@deepseek-ai/dsh-client-ui-settings"
45
+ ]
46
+ }
22
47
  },
23
48
  "scripts": {
24
49
  "build": "tsc",