dsh-plugin-yushe 0.28.2 → 0.28.4
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/README.md +2 -4
- package/game/game.js +12 -12
- package/game/index.html +1 -1
- package/lib/index.js +16 -8
- package/package.json +1 -1
package/game/index.html
CHANGED
package/lib/index.js
CHANGED
|
@@ -5176,8 +5176,16 @@ var HOMETOWN = {
|
|
|
5176
5176
|
chat: ["\u5916\u5A46\u5BB6\u9662\u5B50\u91CC\u7684\u5927\u6C34\u7F38", "\u4E00\u5BB6\u6DF1\u591C\u5496\u5561\u9986\u7684\u5427\u53F0\u7F38", "\u513F\u7AE5\u533B\u9662\u5019\u8BCA\u533A\u7684\u9C7C\u7F38"],
|
|
5177
5177
|
write: ["\u6C5F\u5357\u53E4\u9547\u4E00\u5EA7\u77F3\u6865\u4E0B\u9762", "\u4E00\u5BB6\u65E7\u4E66\u5E97\u7684\u7A97\u53F0\u7F38", "\u67D0\u4F4D\u4F5C\u5BB6\u4E66\u623F\u91CC\u7684\u781A\u53F0\u65C1"],
|
|
5178
5178
|
debate: ["\u5927\u5B66\u8FA9\u8BBA\u793E\u6D3B\u52A8\u5BA4\u7684\u9C7C\u7F38", "\u6CD5\u9662\u95E8\u53E3\u7684\u55B7\u6CC9\u6C60", "\u83DC\u5E02\u573A\u4E24\u5BB6\u5435\u4E86\u5341\u5E74\u67B6\u7684\u644A\u4F4D\u4E2D\u95F4"],
|
|
5179
|
-
slack: ["\u516C\u56ED\u91CC\u6CA1\u4EBA\u7BA1\u7684\u8377\u82B1\u6C60", "\u4E00\u5BB6\u5012\u95ED\u4E86\u53C8\u91CD\u5F00\u7684\u732B\u5496", "\u5348\u7761\u65F6\u95F4\u7684\u5E7C\u513F\u56ED\u6C34\u65CF\u89D2"]
|
|
5179
|
+
slack: ["\u516C\u56ED\u91CC\u6CA1\u4EBA\u7BA1\u7684\u8377\u82B1\u6C60", "\u4E00\u5BB6\u5012\u95ED\u4E86\u53C8\u91CD\u5F00\u7684\u732B\u5496", "\u5348\u7761\u65F6\u95F4\u7684\u5E7C\u513F\u56ED\u6C34\u65CF\u89D2"],
|
|
5180
|
+
angel: ["\u7F8E\u672F\u5B66\u9662\u753B\u5BA4\u7A97\u53F0\u4E0A\u7684\u73BB\u7483\u7F38", "\u4E00\u5BB6\u82B1\u5E97\u95E8\u53E3\u7684\u7761\u83B2\u76C6", "\u8BBE\u8BA1\u5DE5\u4F5C\u5BA4\u91CC\u6446\u7740\u8272\u5361\u7684\u9020\u666F\u7F38"],
|
|
5181
|
+
shark: ["\u6E2F\u53E3\u96C6\u88C5\u7BB1\u7801\u5934\u8FB9\u7684\u6D77\u6C34", "\u4E00\u5BB6\u521B\u4E1A\u5B75\u5316\u5668\u5927\u5802\u7684\u5927\u9C7C\u7F38", "\u9A6C\u62C9\u677E\u7EC8\u70B9\u65C1\u8FB9\u7684\u55B7\u6CC9\u6C60"],
|
|
5182
|
+
seahorse: ["\u5916\u5A46\u5BB6\u6536\u62FE\u5F97\u4E00\u5C18\u4E0D\u67D3\u7684\u5BA2\u5385\u9C7C\u7F38", "\u793E\u533A\u670D\u52A1\u7AD9\u7684\u5C0F\u6C34\u7BB1", "\u4E00\u5BB6\u8001\u5B57\u53F7\u9152\u5E97\u524D\u53F0\u7684\u9C7C\u7F38"],
|
|
5183
|
+
angler: ["24 \u5C0F\u65F6\u81EA\u4E60\u5BA4\u89D2\u843D\u7684\u591C\u706F\u9C7C\u7F38", "\u6DF1\u6D77\u9986\u6700\u6697\u7684\u90A3\u4E00\u683C\u5C55\u7F38", "\u4E00\u5BB6\u53EA\u5728\u591C\u91CC\u5F00\u95E8\u7684\u5C0F\u9152\u9986\u5427\u53F0"],
|
|
5184
|
+
butterfly: ["\u70ED\u5E26\u9C7C\u5E02\u573A\u6700\u70ED\u95F9\u7684\u90A3\u4E00\u6392", "\u5927\u5B66\u793E\u56E2\u62DB\u65B0\u644A\u4F4D\u65C1\u7684\u9C7C\u7F38", "\u4E00\u5BB6\u7F51\u7EA2\u5976\u8336\u5E97\u7684\u843D\u5730\u7A97\u7F38"],
|
|
5185
|
+
marlin: ["\u6E38\u6CF3\u9986\u9694\u58C1\u7684\u8BAD\u7EC3\u6C60", "\u4E00\u8258\u8FDC\u6D0B\u6E14\u8239\u7684\u6C34\u8231", "\u8D5B\u8247\u4FF1\u4E50\u90E8\u7801\u5934\u4E0B\u9762\u7684\u6CB3\u6E7E"],
|
|
5186
|
+
flounder: ["\u6D77\u8FB9\u7901\u77F3\u4E0B\u7684\u4E00\u7247\u7EC6\u6C99", "\u89C2\u9E1F\u7AD9\u7A97\u53F0\u4E0A\u7684\u73BB\u7483\u7F38", "\u4E00\u5BB6\u4FA6\u63A2\u4E8B\u52A1\u6240\u7684\u524D\u53F0\u9C7C\u7F38"]
|
|
5180
5187
|
};
|
|
5188
|
+
var HOMETOWN_ANY = ["\u4E00\u4E2A\u4E0B\u96E8\u5929\u4F1A\u5192\u6CE1\u6CE1\u7684\u5C0F\u6C60\u5858", "\u57CE\u5E02\u89D2\u843D\u4E00\u5BB6\u6C34\u65CF\u5E97\u7684\u6700\u91CC\u9762\u4E00\u7F38", "\u4E00\u6240\u5C0F\u5B66\u81EA\u7136\u89D2\u7684\u9C7C\u7F38"];
|
|
5181
5189
|
var RARE_ORIGIN = ["\u636E\u8BF4\u662F\u4E00\u9897\u6D41\u661F\u6389\u8FDB\u6C60\u5858\u65F6\u4E00\u8D77\u6389\u4E0B\u6765\u7684", "\u5728\u4E00\u5C01\u5BC4\u9519\u5730\u5740\u7684\u6F02\u6D41\u74F6\u91CC\u88AB\u53D1\u73B0", "\u5988\u5988\u9C7C\u8BF4\u5979\u662F\u5728\u5F69\u8679\u51FA\u73B0\u90A3\u5929\u5B75\u51FA\u6765\u7684", "\u6CA1\u4EBA\u77E5\u9053\u5979\u4ECE\u54EA\u6765\uFF0C\u7B2C\u4E00\u6B21\u51FA\u73B0\u65F6\u5634\u91CC\u53FC\u7740\u4E00\u679A\u65E7\u786C\u5E01"];
|
|
5182
5190
|
var CHILDHOOD = [
|
|
5183
5191
|
"\u5C0F\u65F6\u5019\u603B\u8DB4\u5728\u7F38\u8FB9\u770B\u4EBA\u7C7B\u6572\u952E\u76D8\uFF0C\u4EE5\u4E3A\u90A3\u662F\u4E00\u79CD\u4E50\u5668",
|
|
@@ -5297,7 +5305,7 @@ function backstory(seed, protoId, rarity, pts, salts = {}, overrides = {}) {
|
|
|
5297
5305
|
if (!videos.includes(v)) videos.push(v);
|
|
5298
5306
|
}
|
|
5299
5307
|
const b = {
|
|
5300
|
-
hometown: pick(HOMETOWN[protoId], seed, "home", s("hometown")),
|
|
5308
|
+
hometown: pick(HOMETOWN[protoId] || HOMETOWN_ANY, seed, "home", s("hometown")),
|
|
5301
5309
|
origin: high ? pick(RARE_ORIGIN, seed, "origin", s("origin")) : "",
|
|
5302
5310
|
childhood: pick(CHILDHOOD, seed, protoId, "child", s("childhood")),
|
|
5303
5311
|
hobby: hobbies.join("\u3001"),
|
|
@@ -7461,8 +7469,8 @@ var HABIT_FIELDS = {
|
|
|
7461
7469
|
threads: { label: "\u770B\u697C\u4E2D\u697C", type: "bool", def: true, chat: true, group: "read" },
|
|
7462
7470
|
commentsPerVideo: { label: "\u6BCF\u4E2A\u89C6\u9891\u770B\u51E0\u6761\u8BC4\u8BBA", type: "int", min: 0, max: 20, def: 5, chat: true, group: "read" },
|
|
7463
7471
|
// —— 细配置:互动上限(max = 硬顶)——
|
|
7464
|
-
commentsPerDay: { label: "\u6BCF\u5929\u6700\u591A\u8BC4\u8BBA\u51E0\u6761", type: "int", min: 0, max:
|
|
7465
|
-
repliesPerDay: { label: "\u6BCF\u5929\u6700\u591A\u56DE\u590D\u51E0\u6761\u8BC4\u8BBA", type: "int", min: 0, max:
|
|
7472
|
+
commentsPerDay: { label: "\u6BCF\u5929\u6700\u591A\u8BC4\u8BBA\u51E0\u6761", type: "int", min: 0, max: 30, def: 12, chat: true, group: "cap" },
|
|
7473
|
+
repliesPerDay: { label: "\u6BCF\u5929\u6700\u591A\u56DE\u590D\u51E0\u6761\u8BC4\u8BBA", type: "int", min: 0, max: 30, def: 12, chat: true, group: "cap" },
|
|
7466
7474
|
dynCommentsPerDay: { label: "\u6BCF\u5929\u6700\u591A\u8BC4\u8BBA\u51E0\u6761\u52A8\u6001", type: "int", min: 0, max: 10, def: 3, chat: true, group: "cap" },
|
|
7467
7475
|
postsPerDay: { label: "\u6BCF\u5929\u6700\u591A\u53D1\u51E0\u6761\u52A8\u6001", type: "int", min: 0, max: 5, def: 2, chat: true, group: "cap" },
|
|
7468
7476
|
dmsPerDay: { label: "\u6BCF\u5929\u6700\u591A\u56DE\u51E0\u6761\u964C\u751F\u4EBA\u79C1\u4FE1", type: "int", min: 0, max: 10, def: 3, zero: "\u4E0D\u56DE", chat: true, group: "cap" },
|
|
@@ -7482,7 +7490,7 @@ var HABIT_FIELDS = {
|
|
|
7482
7490
|
var KNOBS = {
|
|
7483
7491
|
out: { label: "\u7231\u4E0D\u7231\u51FA\u95E8", levels: ["\u5B85", "\u770B\u6027\u683C", "\u7231\u901B"], fields: { outBias: [0.5, 1, 1.8], tripsPerDay: [2, 0, 0], restBias: [1.5, 1, 0.6] } },
|
|
7484
7492
|
depth: { label: "\u8BFB\u591A\u6DF1", levels: ["\u6D45", "\u4E2D", "\u6DF1"], fields: { readBudget: [150, 300, 600], tripToolCalls: [6, 12, 20], subtitle: [false, true, true], subtitleChars: [0, 1500, 4e3], danmaku: [false, false, true], threads: [false, true, true], commentsPerVideo: [3, 5, 10] } },
|
|
7485
|
-
interact: { label: "\u4E92\u52A8\u591A\u5C11", levels: L3, fields: { commentsPerDay: [
|
|
7493
|
+
interact: { label: "\u4E92\u52A8\u591A\u5C11", levels: L3, fields: { commentsPerDay: [4, 12, 20], repliesPerDay: [4, 12, 20], dynCommentsPerDay: [1, 3, 6], postsPerDay: [1, 2, 3], dmsPerDay: [1, 3, 6], likesPerDay: [5, 15, 30], commentLikesPerDay: [5, 15, 30], collectsPerDay: [2, 5, 10], followsPerDay: [1, 2, 4], unfollowsPerDay: [0, 1, 2], perPersonPerDay: [2, 4, 6], replyToReplies: [false, true, true] } }
|
|
7486
7494
|
};
|
|
7487
7495
|
var CUSTOM = "\u81EA\u5B9A\u4E49";
|
|
7488
7496
|
function schemaWith(caps = []) {
|
|
@@ -9472,7 +9480,7 @@ async function speak(deps, from, { kind, what, max, target, args, material = [],
|
|
|
9472
9480
|
}
|
|
9473
9481
|
|
|
9474
9482
|
// plugin/src/host/tools/speak/comment.js
|
|
9475
|
-
var CAP6 = { key: "commentsPerDay", label: "\u6BCF\u5929\u6700\u591A\u8BC4\u8BBA\u51E0\u6761", levels: { \u5C11:
|
|
9483
|
+
var CAP6 = { key: "commentsPerDay", label: "\u6BCF\u5929\u6700\u591A\u8BC4\u8BBA\u51E0\u6761", levels: { \u5C11: 4, \u9002\u4E2D: 12, \u591A: 20 }, max: 30 };
|
|
9476
9484
|
async function videoMaterial(biliRead, bvid, ledger) {
|
|
9477
9485
|
const v = await viewOf(biliRead, bvid);
|
|
9478
9486
|
ledger.note("bili_video", { bvid: v.bvid }, { ok: true });
|
|
@@ -9627,7 +9635,7 @@ var post_default = defineTool({
|
|
|
9627
9635
|
});
|
|
9628
9636
|
|
|
9629
9637
|
// plugin/src/host/tools/speak/reply.js
|
|
9630
|
-
var CAP10 = { key: "repliesPerDay", label: "\u6BCF\u5929\u6700\u591A\u56DE\u590D\u51E0\u6761\u8BC4\u8BBA", levels: { \u5C11:
|
|
9638
|
+
var CAP10 = { key: "repliesPerDay", label: "\u6BCF\u5929\u6700\u591A\u56DE\u590D\u51E0\u6761\u8BC4\u8BBA", levels: { \u5C11: 4, \u9002\u4E2D: 12, \u591A: 20 }, max: 30 };
|
|
9631
9639
|
var reply_default = defineTool({
|
|
9632
9640
|
name: "bili_reply",
|
|
9633
9641
|
kind: "speak",
|
|
@@ -10780,7 +10788,7 @@ function createWorkSessions({ ctx, pond, life, log: log2 }) {
|
|
|
10780
10788
|
// plugin/src/host/index.js
|
|
10781
10789
|
var name = "dsh-plugin-yushe";
|
|
10782
10790
|
var inject = ["systemPrompt"];
|
|
10783
|
-
var VERSION = "0.28.
|
|
10791
|
+
var VERSION = "0.28.4";
|
|
10784
10792
|
var STATUS_PATH = "/api/dsh-yushe/status";
|
|
10785
10793
|
var SAY_PATH = "/api/dsh-yushe/probe/say";
|
|
10786
10794
|
var ROAM_PATH = "/api/dsh-yushe/probe/roam";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-yushe",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.4",
|
|
4
4
|
"repository": { "type": "git", "url": "git+https://github.com/yuna78/dsh-plugin-yushe.git" },
|
|
5
5
|
"homepage": "https://github.com/yuna78/dsh-plugin-yushe#readme",
|
|
6
6
|
"bugs": "https://github.com/yuna78/dsh-plugin-yushe/issues",
|