kasumi-plugin-log 0.0.0-stage → 26.11.5

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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 YuiNijika
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.
package/README.md CHANGED
@@ -1,3 +1,27 @@
1
- # Temporary Holding Version
1
+ # kasumi-plugin-log
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
+ > 使用 Kasumi 平台日志插件的独立 TypeScript 入口。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pnpm add kasumi-bridge kasumi-plugin-log
9
+ ```
10
+
11
+ ## 用法
12
+
13
+ ```ts
14
+ import { KSM } from "kasumi-bridge";
15
+ import { write } from "kasumi-plugin-log";
16
+
17
+ KSM.init();
18
+
19
+ await write({
20
+ level: "info",
21
+ target: "application",
22
+ message: "应用已启动"
23
+ });
24
+ ```
25
+
26
+ 日志消息最多 64 KiB,目标最多 128 字节。Windows 写入调试输出,Android 写入
27
+ `android.util.Log`;日志不会自动上传或持久化。
@@ -0,0 +1,3 @@
1
+ export * from 'kasumi-bridge/log';
2
+ export type { KSMLogApi, KSMLogLevel } from 'kasumi-bridge';
3
+ export declare const PLUGIN_ID: "log";
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from 'kasumi-bridge/log';
2
+ export const PLUGIN_ID = 'log';
package/package.json CHANGED
@@ -1,6 +1,38 @@
1
1
  {
2
2
  "name": "kasumi-plugin-log",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "26.11.5",
4
+ "description": "Platform logger access for Kasumi applications",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "LICENSE",
17
+ "README.md"
18
+ ],
19
+ "sideEffects": false,
20
+ "engines": {
21
+ "node": ">=20"
22
+ },
23
+ "dependencies": {
24
+ "kasumi-bridge": "^26.11.5"
25
+ },
26
+ "license": "MIT",
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/YuiNijika/Kasumi.git"
33
+ },
34
+ "homepage": "https://blog.miomoe.cn/docs/kasumi/plugins/log",
35
+ "scripts": {
36
+ "build": "tsc -p tsconfig.json"
37
+ }
6
38
  }