@dsh-agentic-roleplay/state 0.3.6 → 0.4.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/lib/index.d.ts +1 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3457,7 +3457,7 @@ declare class RoleplayState extends Service {
|
|
|
3457
3457
|
private closeAll;
|
|
3458
3458
|
}
|
|
3459
3459
|
declare const name = "@dsh-agentic-roleplay/state";
|
|
3460
|
-
declare function apply(ctx: Context, config: Config):
|
|
3460
|
+
declare function apply(ctx: Context, config: Config): RoleplayState;
|
|
3461
3461
|
//#endregion
|
|
3462
3462
|
//#region src/tools/character.d.ts
|
|
3463
3463
|
declare function createCharacterTools(link: () => AgentLink, characterId: CharacterId): ToolDefinition[];
|
package/lib/index.js
CHANGED
|
@@ -506,6 +506,7 @@ const ZH = {
|
|
|
506
506
|
"Places: ": "地点:",
|
|
507
507
|
"Routes: ": "路径:",
|
|
508
508
|
"Things: ": "物品:",
|
|
509
|
+
"Background you know, to read with recall_my_lore when it bears on the moment: ": "你所知的背景(与当下相关时用 recall_my_lore 查阅):",
|
|
509
510
|
"Your day and what you are after (plans, not orders: keep them, put them off or drop them as the moment and your character suggest):": "你的日程与你想达成的事(只是计划,不是命令:依当下情形和你的性格,可以照做、推迟或放弃):",
|
|
510
511
|
"Your day, now: {activity}{place}, until {until}{note}.": "你此刻的日程:{activity}{place},持续到{until}{note}。",
|
|
511
512
|
"Your day, next: {activity}{place}, from {from}.": "你接下来的日程:{activity}{place},{from}开始。",
|
|
@@ -867,7 +868,7 @@ var SqliteRoutineRepository = class {
|
|
|
867
868
|
this.db.run("INSERT INTO routine_windows (character_id, ordinal, days, filters, start_minute, end_minute, activity, location_id, feature_key, position, interruptible) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", [
|
|
868
869
|
characterId,
|
|
869
870
|
index,
|
|
870
|
-
toJson([...new Set(window.days)].sort()),
|
|
871
|
+
toJson([...new Set(window.days)].sort((a, b) => a - b)),
|
|
871
872
|
toJson([...new Set(window.on ?? [])]),
|
|
872
873
|
window.start,
|
|
873
874
|
window.end,
|
|
@@ -12904,7 +12905,7 @@ var RoleplayState = class extends Service {
|
|
|
12904
12905
|
};
|
|
12905
12906
|
const name = "@dsh-agentic-roleplay/state";
|
|
12906
12907
|
function apply(ctx, config) {
|
|
12907
|
-
new RoleplayState(ctx, config);
|
|
12908
|
+
return new RoleplayState(ctx, config);
|
|
12908
12909
|
}
|
|
12909
12910
|
//#endregion
|
|
12910
12911
|
//#region src/tools/character.ts
|