@bili-agent-kit/core 0.1.0 → 0.2.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/NOTICE.md +3 -14
- package/README.md +3 -3
- package/dist/index.d.mts +1315 -7
- package/dist/index.mjs +2313 -165
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/NOTICE.md
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Third-party notices
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
See LICENSE for copyright notices and MIT license terms.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
| Original file | Adaptation |
|
|
8
|
-
| ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
-
| tools/lib/bili-api.mjs | WBI mixing table, canonical signing and signed video endpoints in core/wbi.ts and core/client.ts |
|
|
10
|
-
| tools/lib/traffic.mjs | Conservative budgets, account isolation, persistent risk backoff and uncertain sends in core/traffic.ts and core/writes.ts |
|
|
11
|
-
| tools/lib/dm-history.mjs | Sequence pagination, same-second deduplication and fail-closed cursors in core/poll.ts |
|
|
12
|
-
| tools/commands/{search,subtitles,comments,comment,comment-del,dm,danmaku}.mjs | Read/write endpoints and form parameters |
|
|
13
|
-
|
|
14
|
-
Modified: strict TypeScript, injected credentials/storage/transport/clock, immutable drafts with separate administrator approval, shared SDK/JSON CLI/MCP schemas, explicit local configuration, typed errors, tests and packaging. Removed: DSH/Codex host integration, home-directory assumptions, persona, AI sessions, background scheduling, dashboard and automatic publication. No sibling-port source was used.
|
|
15
|
-
|
|
16
|
-
This is an independent, unofficial tool. Bilibili does not endorse or maintain it. Bilibili web interfaces may change without notice. The upstream repository references bilibili-API-collect; its documentation is not copied into this distribution.
|
|
5
|
+
This is an independent, unofficial tool. Bilibili does not endorse or maintain it. Bilibili web interfaces may change without notice.
|
|
17
6
|
|
|
18
7
|
ffmpeg is optional, separately installed, and not bundled. Its own LGPL/GPL terms depend on the chosen build: https://ffmpeg.org/legal.html. Node.js, Zod, MCP SDK, TypeScript, pnpm and Vite+ retain their respective licenses. The sponsorship image in the repository is reused from Cansiny0320/Nexlet at the owner's request; it is not included in the npm packages.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @bili-agent-kit/core
|
|
2
2
|
|
|
3
|
-
TypeScript SDK for Bilibili reads, QR login,
|
|
3
|
+
TypeScript SDK for Bilibili discovery, content and creator reads, media processing, QR login/Cookie refresh, approved interactions and submissions, and persistent event polling. ESM; requires Node.js 22.18+, 24.11+ or 26+ (Node 23/25 unsupported).
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
6
|
npm install @bili-agent-kit/core
|
|
@@ -17,8 +17,8 @@ const auth = await loadAuth("./config.local.json");
|
|
|
17
17
|
const status = await auth.status();
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
Use `loadKit(configPath)` to share the configured credentials with CLI/MCP. `QrLogin` supports custom login UIs; its success result contains credentials and must remain inside the trusted host. `FileAuth` returns only sanitized account information.
|
|
20
|
+
Use `loadKit(configPath)` to share the configured credentials with CLI/MCP. `QrLogin` supports custom login UIs; its success result contains credentials and must remain inside the trusted host. `FileAuth` returns only sanitized account information and supports explicit `refreshCheck()` / `refresh()`. Expanded APIs include `kit.reads.popular`, `kit.reads.transcript`, `kit.media.call`, `kit.events.peek/ack` and `kit.open.call`. Open-platform access requires separate application credentials and scopes.
|
|
21
21
|
|
|
22
22
|
Writes are disabled by default and require allowlists, durable state and administrator approval. This library is not a shell sandbox. See [configuration and API usage](https://github.com/Cansiny0320/bili-agent-kit/blob/main/docs/usage.md) and [security/recovery](https://github.com/Cansiny0320/bili-agent-kit/blob/main/SECURITY.md).
|
|
23
23
|
|
|
24
|
-
MIT
|
|
24
|
+
MIT; see LICENSE and NOTICE.md. Not affiliated with Bilibili.
|