krillplayer-plugin 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.
Files changed (43) hide show
  1. package/README.md +5 -0
  2. package/dist/cli.js +949 -636
  3. package/package.json +3 -2
  4. package/skill/krillplayer-plugin/SKILL.md +2 -1
  5. package/skill/krillplayer-plugin/assets/samples/file-share/plugin.ts +1 -20
  6. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-connect.json +23 -0
  7. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-decode.json +19 -0
  8. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-content-rejected.json +31 -0
  9. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-login-expired.json +31 -0
  10. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-muted.json +31 -0
  11. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-not-logged-in.json +14 -0
  12. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-other.json +31 -0
  13. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-rate-limited.json +31 -0
  14. package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-sent.json +28 -0
  15. package/skill/krillplayer-plugin/assets/samples/live-video-platform/manifest.ts +2 -1
  16. package/skill/krillplayer-plugin/assets/samples/live-video-platform/plugin.ts +40 -1
  17. package/skill/krillplayer-plugin/assets/samples/media-server/plugin.ts +1 -35
  18. package/skill/krillplayer-plugin/assets/samples/network-share/plugin.ts +1 -20
  19. package/skill/krillplayer-plugin/references/choosing-a-kind.md +2 -2
  20. package/skill/krillplayer-plugin/references/contract.d.ts +80 -112
  21. package/skill/krillplayer-plugin/references/errors-and-fixes.md +1 -1
  22. package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-empty-folder.json +0 -11
  23. package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-folder-gone-not-found.json +0 -12
  24. package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-folder-lists-subfolders-and-media.json +0 -28
  25. package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-folder-second-page.json +0 -22
  26. package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-folder-skips-subtitles.json +0 -21
  27. package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-root-first-page.json +0 -25
  28. package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-root-second-page.json +0 -22
  29. package/skill/krillplayer-plugin/assets/samples/media-server/cases/library-changes-everything-first-page.json +0 -74
  30. package/skill/krillplayer-plugin/assets/samples/media-server/cases/library-changes-everything-last-page.json +0 -86
  31. package/skill/krillplayer-plugin/assets/samples/media-server/cases/library-changes-nothing-new.json +0 -12
  32. package/skill/krillplayer-plugin/assets/samples/media-server/cases/library-changes-since-a-token-with-a-removal.json +0 -88
  33. package/skill/krillplayer-plugin/assets/samples/media-server/cases/library-ids-first-page.json +0 -15
  34. package/skill/krillplayer-plugin/assets/samples/media-server/cases/library-ids-last-page.json +0 -14
  35. package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-empty-folder.json +0 -60
  36. package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-folder-gives-size-and-modified-time.json +0 -78
  37. package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-folder-gone-not-found.json +0 -60
  38. package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-folder-second-page.json +0 -71
  39. package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-read-a-range.json +0 -62
  40. package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-read-an-info-file.json +0 -62
  41. package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-read-file-gone-not-found.json +0 -62
  42. package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-root.json +0 -84
  43. package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-source-offline-retryable.json +0 -61
@@ -1,86 +0,0 @@
1
- {
2
- "slot": "library",
3
- "call": "changes",
4
- "args": [
5
- null,
6
- "4"
7
- ],
8
- "exchanges": [],
9
- "output": {
10
- "entries": [
11
- {
12
- "type": "identified",
13
- "item": {
14
- "kind": "episode",
15
- "id": "e1-2",
16
- "title": "回信(上下)",
17
- "season": {
18
- "id": "s1-1",
19
- "kind": "season",
20
- "title": "第 1 季",
21
- "index": 1
22
- },
23
- "series": {
24
- "id": "s1",
25
- "kind": "series",
26
- "title": "深海来信",
27
- "ids": {
28
- "tmdb": "100001"
29
- }
30
- },
31
- "index": 2,
32
- "duration": 5400,
33
- "indexEnd": 3,
34
- "absolute": 2
35
- },
36
- "series": {
37
- "kind": "series",
38
- "id": "s1",
39
- "title": "深海来信",
40
- "year": 2025,
41
- "count": 3,
42
- "ids": {
43
- "tmdb": "100001"
44
- }
45
- }
46
- },
47
- {
48
- "type": "identified",
49
- "item": {
50
- "kind": "episode",
51
- "id": "e2-1",
52
- "title": "潮汐",
53
- "season": {
54
- "id": "s1-2",
55
- "kind": "season",
56
- "title": "第 2 季",
57
- "index": 2
58
- },
59
- "series": {
60
- "id": "s1",
61
- "kind": "series",
62
- "title": "深海来信",
63
- "ids": {
64
- "tmdb": "100001"
65
- }
66
- },
67
- "index": 1,
68
- "duration": 2700,
69
- "absolute": 4,
70
- "published": 1795132800
71
- },
72
- "series": {
73
- "kind": "series",
74
- "id": "s1",
75
- "title": "深海来信",
76
- "year": 2025,
77
- "count": 3,
78
- "ids": {
79
- "tmdb": "100001"
80
- }
81
- }
82
- }
83
- ],
84
- "since": "5"
85
- }
86
- }
@@ -1,12 +0,0 @@
1
- {
2
- "slot": "library",
3
- "call": "changes",
4
- "args": [
5
- "5"
6
- ],
7
- "exchanges": [],
8
- "output": {
9
- "entries": [],
10
- "since": "5"
11
- }
12
- }
@@ -1,88 +0,0 @@
1
- {
2
- "slot": "library",
3
- "call": "changes",
4
- "args": [
5
- "3"
6
- ],
7
- "exchanges": [],
8
- "output": {
9
- "entries": [
10
- {
11
- "type": "identified",
12
- "item": {
13
- "kind": "episode",
14
- "id": "e1-2",
15
- "title": "回信(上下)",
16
- "season": {
17
- "id": "s1-1",
18
- "kind": "season",
19
- "title": "第 1 季",
20
- "index": 1
21
- },
22
- "series": {
23
- "id": "s1",
24
- "kind": "series",
25
- "title": "深海来信",
26
- "ids": {
27
- "tmdb": "100001"
28
- }
29
- },
30
- "index": 2,
31
- "duration": 5400,
32
- "indexEnd": 3,
33
- "absolute": 2
34
- },
35
- "series": {
36
- "kind": "series",
37
- "id": "s1",
38
- "title": "深海来信",
39
- "year": 2025,
40
- "count": 3,
41
- "ids": {
42
- "tmdb": "100001"
43
- }
44
- }
45
- },
46
- {
47
- "type": "identified",
48
- "item": {
49
- "kind": "episode",
50
- "id": "e2-1",
51
- "title": "潮汐",
52
- "season": {
53
- "id": "s1-2",
54
- "kind": "season",
55
- "title": "第 2 季",
56
- "index": 2
57
- },
58
- "series": {
59
- "id": "s1",
60
- "kind": "series",
61
- "title": "深海来信",
62
- "ids": {
63
- "tmdb": "100001"
64
- }
65
- },
66
- "index": 1,
67
- "duration": 2700,
68
- "absolute": 4,
69
- "published": 1795132800
70
- },
71
- "series": {
72
- "kind": "series",
73
- "id": "s1",
74
- "title": "深海来信",
75
- "year": 2025,
76
- "count": 3,
77
- "ids": {
78
- "tmdb": "100001"
79
- }
80
- }
81
- }
82
- ],
83
- "removed": [
84
- "m0"
85
- ],
86
- "since": "5"
87
- }
88
- }
@@ -1,15 +0,0 @@
1
- {
2
- "slot": "library",
3
- "call": "ids",
4
- "args": [],
5
- "exchanges": [],
6
- "output": {
7
- "ids": [
8
- "m1",
9
- "m2",
10
- "e0-1",
11
- "e1-1"
12
- ],
13
- "next": "4"
14
- }
15
- }
@@ -1,14 +0,0 @@
1
- {
2
- "slot": "library",
3
- "call": "ids",
4
- "args": [
5
- "4"
6
- ],
7
- "exchanges": [],
8
- "output": {
9
- "ids": [
10
- "e1-2",
11
- "e2-1"
12
- ]
13
- }
14
- }
@@ -1,60 +0,0 @@
1
- {
2
- "slot": "library",
3
- "call": "list",
4
- "args": [
5
- "Home Videos/2025"
6
- ],
7
- "files": {
8
- "entries": {
9
- "电影/Big Buck Bunny (2008).mkv": {
10
- "size": 734003200,
11
- "modified": 1795748400
12
- },
13
- "电影/Big Buck Bunny (2008).srt": {
14
- "content": "1\n00:00:01,000 --> 00:00:02,000\n你好\n",
15
- "modified": 1795748401
16
- },
17
- "电影/Big Buck Bunny (2008).zh-Hant.ass": {
18
- "content": "[Script Info]\n"
19
- },
20
- "电影/Big Buck Bunny (2008).nfo": {
21
- "content": "<movie><title>Big Buck Bunny</title><year>2008</year></movie>"
22
- },
23
- "电影/Big Buck Bunny 2.mkv": {
24
- "size": 10
25
- },
26
- "电影/Big Buck Bunny 2.srt": {
27
- "content": ""
28
- },
29
- "电影/.DS_Store": {
30
- "size": 6148
31
- },
32
- "Home Videos/2025": {
33
- "directory": true,
34
- "modified": 1795000000
35
- },
36
- "Home Videos/beach.MOV": {
37
- "size": 1073741824
38
- },
39
- "Home Videos/interview.m4a": {
40
- "size": 8388608
41
- },
42
- "Home Videos/interview.srt": {
43
- "content": ""
44
- },
45
- "trailer.mp4": {
46
- "size": 52428800
47
- },
48
- "readme.txt": {
49
- "content": "hello"
50
- },
51
- "私人": {
52
- "directory": true,
53
- "error": "loginRequired"
54
- }
55
- }
56
- },
57
- "output": {
58
- "entries": []
59
- }
60
- }
@@ -1,78 +0,0 @@
1
- {
2
- "slot": "library",
3
- "call": "list",
4
- "args": [
5
- "电影"
6
- ],
7
- "files": {
8
- "entries": {
9
- "电影/Big Buck Bunny (2008).mkv": {
10
- "size": 734003200,
11
- "modified": 1795748400
12
- },
13
- "电影/Big Buck Bunny (2008).srt": {
14
- "content": "1\n00:00:01,000 --> 00:00:02,000\n你好\n",
15
- "modified": 1795748401
16
- },
17
- "电影/Big Buck Bunny (2008).zh-Hant.ass": {
18
- "content": "[Script Info]\n"
19
- },
20
- "电影/Big Buck Bunny (2008).nfo": {
21
- "content": "<movie><title>Big Buck Bunny</title><year>2008</year></movie>"
22
- },
23
- "电影/Big Buck Bunny 2.mkv": {
24
- "size": 10
25
- },
26
- "电影/Big Buck Bunny 2.srt": {
27
- "content": ""
28
- },
29
- "电影/.DS_Store": {
30
- "size": 6148
31
- },
32
- "Home Videos/2025": {
33
- "directory": true,
34
- "modified": 1795000000
35
- },
36
- "Home Videos/beach.MOV": {
37
- "size": 1073741824
38
- },
39
- "Home Videos/interview.m4a": {
40
- "size": 8388608
41
- },
42
- "Home Videos/interview.srt": {
43
- "content": ""
44
- },
45
- "trailer.mp4": {
46
- "size": 52428800
47
- },
48
- "readme.txt": {
49
- "content": "hello"
50
- },
51
- "私人": {
52
- "directory": true,
53
- "error": "loginRequired"
54
- }
55
- }
56
- },
57
- "output": {
58
- "entries": [
59
- {
60
- "type": "file",
61
- "path": "电影/Big Buck Bunny (2008).mkv",
62
- "name": "Big Buck Bunny (2008).mkv",
63
- "itemId": "电影/Big Buck Bunny (2008).mkv",
64
- "media": "video",
65
- "size": 734003200,
66
- "modified": 1795748400
67
- },
68
- {
69
- "type": "file",
70
- "path": "电影/Big Buck Bunny 2.mkv",
71
- "name": "Big Buck Bunny 2.mkv",
72
- "itemId": "电影/Big Buck Bunny 2.mkv",
73
- "media": "video",
74
- "size": 10
75
- }
76
- ]
77
- }
78
- }
@@ -1,60 +0,0 @@
1
- {
2
- "slot": "library",
3
- "call": "list",
4
- "args": [
5
- "没有"
6
- ],
7
- "files": {
8
- "entries": {
9
- "电影/Big Buck Bunny (2008).mkv": {
10
- "size": 734003200,
11
- "modified": 1795748400
12
- },
13
- "电影/Big Buck Bunny (2008).srt": {
14
- "content": "1\n00:00:01,000 --> 00:00:02,000\n你好\n",
15
- "modified": 1795748401
16
- },
17
- "电影/Big Buck Bunny (2008).zh-Hant.ass": {
18
- "content": "[Script Info]\n"
19
- },
20
- "电影/Big Buck Bunny (2008).nfo": {
21
- "content": "<movie><title>Big Buck Bunny</title><year>2008</year></movie>"
22
- },
23
- "电影/Big Buck Bunny 2.mkv": {
24
- "size": 10
25
- },
26
- "电影/Big Buck Bunny 2.srt": {
27
- "content": ""
28
- },
29
- "电影/.DS_Store": {
30
- "size": 6148
31
- },
32
- "Home Videos/2025": {
33
- "directory": true,
34
- "modified": 1795000000
35
- },
36
- "Home Videos/beach.MOV": {
37
- "size": 1073741824
38
- },
39
- "Home Videos/interview.m4a": {
40
- "size": 8388608
41
- },
42
- "Home Videos/interview.srt": {
43
- "content": ""
44
- },
45
- "trailer.mp4": {
46
- "size": 52428800
47
- },
48
- "readme.txt": {
49
- "content": "hello"
50
- },
51
- "私人": {
52
- "directory": true,
53
- "error": "loginRequired"
54
- }
55
- }
56
- },
57
- "error": {
58
- "kind": "notFound"
59
- }
60
- }
@@ -1,71 +0,0 @@
1
- {
2
- "slot": "library",
3
- "call": "list",
4
- "args": [
5
- "Home Videos",
6
- "2"
7
- ],
8
- "files": {
9
- "entries": {
10
- "电影/Big Buck Bunny (2008).mkv": {
11
- "size": 734003200,
12
- "modified": 1795748400
13
- },
14
- "电影/Big Buck Bunny (2008).srt": {
15
- "content": "1\n00:00:01,000 --> 00:00:02,000\n你好\n",
16
- "modified": 1795748401
17
- },
18
- "电影/Big Buck Bunny (2008).zh-Hant.ass": {
19
- "content": "[Script Info]\n"
20
- },
21
- "电影/Big Buck Bunny (2008).nfo": {
22
- "content": "<movie><title>Big Buck Bunny</title><year>2008</year></movie>"
23
- },
24
- "电影/Big Buck Bunny 2.mkv": {
25
- "size": 10
26
- },
27
- "电影/Big Buck Bunny 2.srt": {
28
- "content": ""
29
- },
30
- "电影/.DS_Store": {
31
- "size": 6148
32
- },
33
- "Home Videos/2025": {
34
- "directory": true,
35
- "modified": 1795000000
36
- },
37
- "Home Videos/beach.MOV": {
38
- "size": 1073741824
39
- },
40
- "Home Videos/interview.m4a": {
41
- "size": 8388608
42
- },
43
- "Home Videos/interview.srt": {
44
- "content": ""
45
- },
46
- "trailer.mp4": {
47
- "size": 52428800
48
- },
49
- "readme.txt": {
50
- "content": "hello"
51
- },
52
- "私人": {
53
- "directory": true,
54
- "error": "loginRequired"
55
- }
56
- },
57
- "pageSize": 2
58
- },
59
- "output": {
60
- "entries": [
61
- {
62
- "type": "file",
63
- "path": "Home Videos/interview.m4a",
64
- "name": "interview.m4a",
65
- "itemId": "Home Videos/interview.m4a",
66
- "media": "audio",
67
- "size": 8388608
68
- }
69
- ]
70
- }
71
- }
@@ -1,62 +0,0 @@
1
- {
2
- "slot": "library",
3
- "call": "read",
4
- "args": [
5
- "readme.txt",
6
- 1,
7
- 3
8
- ],
9
- "files": {
10
- "entries": {
11
- "电影/Big Buck Bunny (2008).mkv": {
12
- "size": 734003200,
13
- "modified": 1795748400
14
- },
15
- "电影/Big Buck Bunny (2008).srt": {
16
- "content": "1\n00:00:01,000 --> 00:00:02,000\n你好\n",
17
- "modified": 1795748401
18
- },
19
- "电影/Big Buck Bunny (2008).zh-Hant.ass": {
20
- "content": "[Script Info]\n"
21
- },
22
- "电影/Big Buck Bunny (2008).nfo": {
23
- "content": "<movie><title>Big Buck Bunny</title><year>2008</year></movie>"
24
- },
25
- "电影/Big Buck Bunny 2.mkv": {
26
- "size": 10
27
- },
28
- "电影/Big Buck Bunny 2.srt": {
29
- "content": ""
30
- },
31
- "电影/.DS_Store": {
32
- "size": 6148
33
- },
34
- "Home Videos/2025": {
35
- "directory": true,
36
- "modified": 1795000000
37
- },
38
- "Home Videos/beach.MOV": {
39
- "size": 1073741824
40
- },
41
- "Home Videos/interview.m4a": {
42
- "size": 8388608
43
- },
44
- "Home Videos/interview.srt": {
45
- "content": ""
46
- },
47
- "trailer.mp4": {
48
- "size": 52428800
49
- },
50
- "readme.txt": {
51
- "content": "hello"
52
- },
53
- "私人": {
54
- "directory": true,
55
- "error": "loginRequired"
56
- }
57
- }
58
- },
59
- "output": {
60
- "$bytes": "ZWxs"
61
- }
62
- }
@@ -1,62 +0,0 @@
1
- {
2
- "slot": "library",
3
- "call": "read",
4
- "args": [
5
- "电影/Big Buck Bunny (2008).nfo",
6
- 0,
7
- 65536
8
- ],
9
- "files": {
10
- "entries": {
11
- "电影/Big Buck Bunny (2008).mkv": {
12
- "size": 734003200,
13
- "modified": 1795748400
14
- },
15
- "电影/Big Buck Bunny (2008).srt": {
16
- "content": "1\n00:00:01,000 --> 00:00:02,000\n你好\n",
17
- "modified": 1795748401
18
- },
19
- "电影/Big Buck Bunny (2008).zh-Hant.ass": {
20
- "content": "[Script Info]\n"
21
- },
22
- "电影/Big Buck Bunny (2008).nfo": {
23
- "content": "<movie><title>Big Buck Bunny</title><year>2008</year></movie>"
24
- },
25
- "电影/Big Buck Bunny 2.mkv": {
26
- "size": 10
27
- },
28
- "电影/Big Buck Bunny 2.srt": {
29
- "content": ""
30
- },
31
- "电影/.DS_Store": {
32
- "size": 6148
33
- },
34
- "Home Videos/2025": {
35
- "directory": true,
36
- "modified": 1795000000
37
- },
38
- "Home Videos/beach.MOV": {
39
- "size": 1073741824
40
- },
41
- "Home Videos/interview.m4a": {
42
- "size": 8388608
43
- },
44
- "Home Videos/interview.srt": {
45
- "content": ""
46
- },
47
- "trailer.mp4": {
48
- "size": 52428800
49
- },
50
- "readme.txt": {
51
- "content": "hello"
52
- },
53
- "私人": {
54
- "directory": true,
55
- "error": "loginRequired"
56
- }
57
- }
58
- },
59
- "output": {
60
- "$bytes": "PG1vdmllPjx0aXRsZT5CaWcgQnVjayBCdW5ueTwvdGl0bGU+PHllYXI+MjAwODwveWVhcj48L21vdmllPg=="
61
- }
62
- }
@@ -1,62 +0,0 @@
1
- {
2
- "slot": "library",
3
- "call": "read",
4
- "args": [
5
- "电影/没有.nfo",
6
- 0,
7
- 65536
8
- ],
9
- "files": {
10
- "entries": {
11
- "电影/Big Buck Bunny (2008).mkv": {
12
- "size": 734003200,
13
- "modified": 1795748400
14
- },
15
- "电影/Big Buck Bunny (2008).srt": {
16
- "content": "1\n00:00:01,000 --> 00:00:02,000\n你好\n",
17
- "modified": 1795748401
18
- },
19
- "电影/Big Buck Bunny (2008).zh-Hant.ass": {
20
- "content": "[Script Info]\n"
21
- },
22
- "电影/Big Buck Bunny (2008).nfo": {
23
- "content": "<movie><title>Big Buck Bunny</title><year>2008</year></movie>"
24
- },
25
- "电影/Big Buck Bunny 2.mkv": {
26
- "size": 10
27
- },
28
- "电影/Big Buck Bunny 2.srt": {
29
- "content": ""
30
- },
31
- "电影/.DS_Store": {
32
- "size": 6148
33
- },
34
- "Home Videos/2025": {
35
- "directory": true,
36
- "modified": 1795000000
37
- },
38
- "Home Videos/beach.MOV": {
39
- "size": 1073741824
40
- },
41
- "Home Videos/interview.m4a": {
42
- "size": 8388608
43
- },
44
- "Home Videos/interview.srt": {
45
- "content": ""
46
- },
47
- "trailer.mp4": {
48
- "size": 52428800
49
- },
50
- "readme.txt": {
51
- "content": "hello"
52
- },
53
- "私人": {
54
- "directory": true,
55
- "error": "loginRequired"
56
- }
57
- }
58
- },
59
- "error": {
60
- "kind": "notFound"
61
- }
62
- }