@fish-under-sea/fish-dock-plugin-magpie 0.0.0-stage → 1.0.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/LICENSE +32 -0
- package/README.md +16 -2
- package/THIRD_PARTY_NOTICES.md +14 -0
- package/bin/install.mjs +17 -0
- package/licenses/Magpie.txt +21 -0
- package/magpie.fish-plugin +0 -0
- package/package.json +27 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Fish-under-sea
|
|
4
|
+
Copyright (c) 2026 Pengjie Zhou
|
|
5
|
+
Copyright (c) 2026 Ebony-Vinyl
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
The root license covers FISH Dock integration code and MIT-licensed upstream
|
|
28
|
+
code, subject to the original notices retained in Wakuwaku/LICENSE and
|
|
29
|
+
dsh-our-free-model/LICENSE. Other bundled libraries retain their own licenses.
|
|
30
|
+
This license does not grant rights to pet sprites, application icons,
|
|
31
|
+
wallpapers, third-party trademarks, accounts, or model services. Verify the
|
|
32
|
+
applicable permissions before redistributing artwork or other assets.
|
package/README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @fish-under-sea/fish-dock-plugin-magpie
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
FISH Dock 官方「Magpie 网关」插件,版本 1.0.0。适用于 FISH Dock 1.1.0+、Windows x64 和宿主 API 1。
|
|
4
|
+
|
|
5
|
+
此 npm 包只包含文件「magpie.fish-plugin」,可按需安装单个插件,不会安装其他插件,不运行安装后脚本,也不会自动修改系统设置。
|
|
6
|
+
|
|
7
|
+
## 使用
|
|
8
|
+
|
|
9
|
+
安装:
|
|
10
|
+
npm install @fish-under-sea/fish-dock-plugin-magpie@1.0.0
|
|
11
|
+
npx @fish-under-sea/fish-dock-plugin-magpie --out C:/work/plugins
|
|
12
|
+
|
|
13
|
+
命令只把已校验的「magpie.fish-plugin」复制到指定目录;然后在 FISH Dock 的「插件」页选择该文件导入。目标文件已存在时命令会停止,避免覆盖已有版本。
|
|
14
|
+
|
|
15
|
+
功能:独立 Magpie 网关和原生管理页。
|
|
16
|
+
|
|
17
|
+
GitHub Release:[FISH-DOCK-Plugins v1.0.0](https://github.com/Fish-under-sea/FISH-DOCK-Plugins/releases/tag/v1.0.0)。
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# 第三方组件
|
|
2
|
+
|
|
3
|
+
此仓的 Dock 插件适配代码沿用 MIT 许可;各上游组件保留自己的许可证,组合发行不更改原版权。
|
|
4
|
+
|
|
5
|
+
| 组件 | 固定版本/来源 | 许可与源码 |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| Magpie | 0.1.1549;commit `ef3b9f85a46769713d55d21c6c3259fe70b69acd`;原始 Windows x64 可执行文件 | [MIT 原文](licenses/Magpie.txt);[对应源码](https://github.com/yetone/magpie/tree/ef3b9f85a46769713d55d21c6c3259fe70b69acd) |
|
|
8
|
+
| mihomo | v1.19.15;Windows amd64 compatible | [GPL-3.0 原文](licenses/mihomo.txt);[对应源码和构建资料](https://github.com/MetaCubeX/mihomo/tree/v1.19.15) |
|
|
9
|
+
| OFM | 本轮 Dock 源码仓中的 `dsh-our-free-model` 及其 standalone 构建 | [原始项目](https://github.com/Ebony-Vinyl/dsh-our-free-model);LICENSE、channel-pack NOTICE 和 third-party 清单随服务资源一起分发 |
|
|
10
|
+
| Dock Node/浏览器 SDK | FISH Dock 1.1.0;宿主 API 1 | [源码](https://github.com/Fish-under-sea/FISH-Dock/tree/v1.1.0/sdk);MIT |
|
|
11
|
+
|
|
12
|
+
原生服务为上游未修改二进制。mihomo 发行 ZIP 的 SHA-256 为 `e9251191e459816c1aca55d495eabd50d525e83aff0cd445608d69da7e0f470c`。解压后的 mihomo 可执行文件为 `7f49fdbfc5c5a2a32807fadfeddbcefc61e439165495337a9b72ca090febaaf4`;Magpie 可执行文件为 `ea2ceec71757a5e8a9a892055e773506b8c046603bad09ade4d6f4499b876918`。最终插件包另以商店索引和 SHA256SUMS 记录摘要。
|
|
13
|
+
|
|
14
|
+
Windhawk 由 Dock 安装包分发,不属于此仓业务插件。运行时不附带个人账号、Cookie、订阅或密钥。
|
package/bin/install.mjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import fs from 'node:fs/promises';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import {createHash} from 'node:crypto';
|
|
5
|
+
import {fileURLToPath} from 'node:url';
|
|
6
|
+
const expected="04dfb9030805567c56fad02d4b05a5cd0fa5b3d8019a6e24230e41cf166379e8";
|
|
7
|
+
const root=path.resolve(path.dirname(fileURLToPath(import.meta.url)),'..');
|
|
8
|
+
const source=path.join(root,"magpie.fish-plugin");
|
|
9
|
+
const args=process.argv.slice(2),index=args.indexOf('--out');
|
|
10
|
+
const output=path.resolve(index>=0&&args[index+1]?args[index+1]:process.cwd());
|
|
11
|
+
const bytes=await fs.readFile(source);
|
|
12
|
+
const digest=createHash('sha256').update(bytes).digest('hex');
|
|
13
|
+
if(digest!==expected)throw Error('插件包 SHA-256 校验失败');
|
|
14
|
+
await fs.mkdir(output,{recursive:true});
|
|
15
|
+
const target=path.join(output,"magpie.fish-plugin");
|
|
16
|
+
await fs.writeFile(target,bytes,{flag:'wx'});
|
|
17
|
+
console.log(`已安装:${target}\nSHA-256:${digest}`);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 yetone
|
|
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.
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fish-under-sea/fish-dock-plugin-magpie",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "FISH Dock 官方Magpie 网关插件(按需单包)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"fish-dock-plugin-magpie": "bin/install.mjs"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"magpie.fish-plugin",
|
|
11
|
+
"bin/install.mjs",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE",
|
|
14
|
+
"THIRD_PARTY_NOTICES.md",
|
|
15
|
+
"licenses"
|
|
16
|
+
],
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=24.0.0"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/Fish-under-sea/FISH-DOCK-Plugins.git"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/Fish-under-sea/FISH-DOCK-Plugins/releases/tag/v1.0.0",
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
}
|
|
29
|
+
}
|