@bili-agent-kit/core 0.0.0-stage → 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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ALTERSSSS
4
+ Copyright (c) 2026 Cansiny0320 (bili-agent-kit modifications)
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/NOTICE.md ADDED
@@ -0,0 +1,7 @@
1
+ # Third-party notices
2
+
3
+ See LICENSE for copyright notices and MIT license terms.
4
+
5
+ This is an independent, unofficial tool. Bilibili does not endorse or maintain it. Bilibili web interfaces may change without notice.
6
+
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,3 +1,24 @@
1
- # Temporary Holding Version
1
+ # @bili-agent-kit/core
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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
+
5
+ ```sh
6
+ npm install @bili-agent-kit/core
7
+ ```
8
+
9
+ ```ts
10
+ import { BiliKit, FileStore, loadAuth } from "@bili-agent-kit/core";
11
+
12
+ const kit = new BiliKit({ store: new FileStore("./.bili-agent-kit") });
13
+ const video = await kit.reads.video({ bvid: "BV1xx411c7mD" });
14
+
15
+ // Trusted host: the config explicitly selects credentialsFile and stateDir.
16
+ const auth = await loadAuth("./config.local.json");
17
+ const status = await auth.status();
18
+ ```
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 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
+
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
+
24
+ MIT; see LICENSE and NOTICE.md. Not affiliated with Bilibili.