@lemoncat7/dsh-partner 1.0.0 → 1.3.9
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 +24 -7
- package/lib/agent-runtime.d.ts +53 -4
- package/lib/agent-runtime.d.ts.map +1 -1
- package/lib/agent-runtime.js +674 -52
- package/lib/agent-runtime.js.map +1 -1
- package/lib/api.d.ts +2 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +29 -2
- package/lib/api.js.map +1 -1
- package/lib/autonomy.d.ts +3 -0
- package/lib/autonomy.d.ts.map +1 -0
- package/lib/autonomy.js +44 -0
- package/lib/autonomy.js.map +1 -0
- package/lib/channel-message.d.ts +23 -0
- package/lib/channel-message.d.ts.map +1 -0
- package/lib/channel-message.js +8 -0
- package/lib/channel-message.js.map +1 -0
- package/lib/channels/manager.d.ts +28 -1
- package/lib/channels/manager.d.ts.map +1 -1
- package/lib/channels/manager.js +230 -15
- package/lib/channels/manager.js.map +1 -1
- package/lib/channels/weixin/api.d.ts +2 -0
- package/lib/channels/weixin/api.d.ts.map +1 -1
- package/lib/channels/weixin/api.js +80 -1
- package/lib/channels/weixin/api.js.map +1 -1
- package/lib/channels/weixin/media.d.ts +4 -0
- package/lib/channels/weixin/media.d.ts.map +1 -0
- package/lib/channels/weixin/media.js +78 -0
- package/lib/channels/weixin/media.js.map +1 -0
- package/lib/channels/weixin/types.d.ts +19 -2
- package/lib/channels/weixin/types.d.ts.map +1 -1
- package/lib/client-api.d.ts +43 -0
- package/lib/client-api.d.ts.map +1 -1
- package/lib/client-api.js.map +1 -1
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +939 -481
- package/lib/client.js.map +4 -4
- package/lib/concern-domain.d.ts +121 -0
- package/lib/concern-domain.d.ts.map +1 -0
- package/lib/concern-domain.js +182 -0
- package/lib/concern-domain.js.map +1 -0
- package/lib/concern-notification.d.ts +6 -0
- package/lib/concern-notification.d.ts.map +1 -0
- package/lib/concern-notification.js +27 -0
- package/lib/concern-notification.js.map +1 -0
- package/lib/concern-sources.d.ts +10 -0
- package/lib/concern-sources.d.ts.map +1 -0
- package/lib/concern-sources.js +81 -0
- package/lib/concern-sources.js.map +1 -0
- package/lib/concern-store.d.ts +41 -0
- package/lib/concern-store.d.ts.map +1 -0
- package/lib/concern-store.js +527 -0
- package/lib/concern-store.js.map +1 -0
- package/lib/daily-review.d.ts +3 -1
- package/lib/daily-review.d.ts.map +1 -1
- package/lib/daily-review.js +8 -2
- package/lib/daily-review.js.map +1 -1
- package/lib/domain.d.ts +4 -1
- package/lib/domain.d.ts.map +1 -1
- package/lib/domain.js +23 -0
- package/lib/domain.js.map +1 -1
- package/lib/heartbeat.d.ts +10 -2
- package/lib/heartbeat.d.ts.map +1 -1
- package/lib/heartbeat.js +81 -17
- package/lib/heartbeat.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +39 -9
- package/lib/index.js.map +1 -1
- package/lib/memory-domain.d.ts +3 -0
- package/lib/memory-domain.d.ts.map +1 -1
- package/lib/memory-reflection.d.ts +8 -3
- package/lib/memory-reflection.d.ts.map +1 -1
- package/lib/memory-reflection.js +66 -13
- package/lib/memory-reflection.js.map +1 -1
- package/lib/memory-store.d.ts +8 -0
- package/lib/memory-store.d.ts.map +1 -1
- package/lib/memory-store.js +27 -0
- package/lib/memory-store.js.map +1 -1
- package/lib/store.d.ts.map +1 -1
- package/lib/store.js +39 -3
- package/lib/store.js.map +1 -1
- package/lib/time-format.d.ts +2 -0
- package/lib/time-format.d.ts.map +1 -0
- package/lib/time-format.js +20 -0
- package/lib/time-format.js.map +1 -0
- package/lib/workspace-ownership.d.ts +5 -0
- package/lib/workspace-ownership.d.ts.map +1 -0
- package/lib/workspace-ownership.js +18 -0
- package/lib/workspace-ownership.js.map +1 -0
- package/package.json +13 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function futureTime(value, now = Date.now()) {
|
|
2
|
+
const minutes = Math.ceil((value - now) / 60_000);
|
|
3
|
+
if (minutes <= 0)
|
|
4
|
+
return '即将检查';
|
|
5
|
+
if (minutes < 60)
|
|
6
|
+
return `${minutes} 分钟后`;
|
|
7
|
+
const hours = Math.ceil(minutes / 60);
|
|
8
|
+
if (hours < 24)
|
|
9
|
+
return `${hours} 小时后`;
|
|
10
|
+
const days = Math.ceil(hours / 24);
|
|
11
|
+
if (days <= 7)
|
|
12
|
+
return `${days} 天后`;
|
|
13
|
+
const date = new Date(value);
|
|
14
|
+
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
15
|
+
const day = String(date.getDate()).padStart(2, '0');
|
|
16
|
+
const hour = String(date.getHours()).padStart(2, '0');
|
|
17
|
+
const minute = String(date.getMinutes()).padStart(2, '0');
|
|
18
|
+
return `${month}/${day} ${hour}:${minute}`;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=time-format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-format.js","sourceRoot":"","sources":["../src/time-format.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAC,KAAa,EAAE,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;IACxD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,CAAA;IACjD,IAAI,OAAO,IAAI,CAAC;QAAE,OAAO,MAAM,CAAA;IAC/B,IAAI,OAAO,GAAG,EAAE;QAAE,OAAO,GAAG,OAAO,MAAM,CAAA;IACzC,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAA;IACrC,IAAI,KAAK,GAAG,EAAE;QAAE,OAAO,GAAG,KAAK,MAAM,CAAA;IACrC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,CAAA;IAClC,IAAI,IAAI,IAAI,CAAC;QAAE,OAAO,GAAG,IAAI,KAAK,CAAA;IAClC,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA;IAC5B,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IAC1D,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IACnD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IACrD,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IACzD,OAAO,GAAG,KAAK,IAAI,GAAG,IAAI,IAAI,IAAI,MAAM,EAAE,CAAA;AAC5C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Claim the conversation workspace while remaining compatible with installed plugin versions. */
|
|
2
|
+
export declare function activatePluginWorkspace(pluginId: string): void;
|
|
3
|
+
/** Close this workspace when another plugin claims the conversation area. */
|
|
4
|
+
export declare function observePluginWorkspace(pluginId: string, close: () => void): () => void;
|
|
5
|
+
//# sourceMappingURL=workspace-ownership.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-ownership.d.ts","sourceRoot":"","sources":["../src/workspace-ownership.ts"],"names":[],"mappings":"AAMA,kGAAkG;AAClG,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAI9D;AAED,6EAA6E;AAC7E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAOtF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const WORKSPACE_ACTIVATE_EVENT = '@lemoncat7/dsh-plugin-ui/workspace-activate';
|
|
2
|
+
/** Claim the conversation workspace while remaining compatible with installed plugin versions. */
|
|
3
|
+
export function activatePluginWorkspace(pluginId) {
|
|
4
|
+
window.dispatchEvent(new CustomEvent(WORKSPACE_ACTIVATE_EVENT, {
|
|
5
|
+
detail: { pluginId },
|
|
6
|
+
}));
|
|
7
|
+
}
|
|
8
|
+
/** Close this workspace when another plugin claims the conversation area. */
|
|
9
|
+
export function observePluginWorkspace(pluginId, close) {
|
|
10
|
+
const onActivate = (event) => {
|
|
11
|
+
const detail = event.detail;
|
|
12
|
+
if (detail?.pluginId !== pluginId)
|
|
13
|
+
close();
|
|
14
|
+
};
|
|
15
|
+
window.addEventListener(WORKSPACE_ACTIVATE_EVENT, onActivate);
|
|
16
|
+
return () => window.removeEventListener(WORKSPACE_ACTIVATE_EVENT, onActivate);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=workspace-ownership.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-ownership.js","sourceRoot":"","sources":["../src/workspace-ownership.ts"],"names":[],"mappings":"AAAA,MAAM,wBAAwB,GAAG,6CAA6C,CAAA;AAM9E,kGAAkG;AAClG,MAAM,UAAU,uBAAuB,CAAC,QAAgB;IACtD,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAA0B,wBAAwB,EAAE;QACtF,MAAM,EAAE,EAAE,QAAQ,EAAE;KACrB,CAAC,CAAC,CAAA;AACL,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,sBAAsB,CAAC,QAAgB,EAAE,KAAiB;IACxE,MAAM,UAAU,GAAG,CAAC,KAAY,EAAQ,EAAE;QACxC,MAAM,MAAM,GAAI,KAA8C,CAAC,MAAM,CAAA;QACrE,IAAI,MAAM,EAAE,QAAQ,KAAK,QAAQ;YAAE,KAAK,EAAE,CAAA;IAC5C,CAAC,CAAA;IACD,MAAM,CAAC,gBAAgB,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAA;IAC7D,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAA;AAC/E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemoncat7/dsh-partner",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"description": "Long-lived AI companions with WeChat channel routing for DeepSeek Harness",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -66,10 +66,16 @@
|
|
|
66
66
|
"@deepseek-ai/dsh-agent": "^0.1.1-rc.2",
|
|
67
67
|
"@deepseek-ai/dsh-agent-default-model": "^0.1.1-rc.2",
|
|
68
68
|
"@deepseek-ai/dsh-agent-presets": "^0.1.1-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-host-apiproxy": "^0.1.1-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-attachment": "^0.1.1-rc.2",
|
|
69
71
|
"@deepseek-ai/dsh-credentials": "^0.1.1-rc.2",
|
|
70
72
|
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
|
|
71
73
|
"@deepseek-ai/dsh-session": "^0.1.1-rc.2",
|
|
74
|
+
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2",
|
|
75
|
+
"@deepseek-ai/dsh-scope": "^0.1.1-rc.2",
|
|
72
76
|
"@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
|
|
77
|
+
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
|
|
78
|
+
"@deepseek-ai/dsh-user-questions": "^0.1.1-rc.2",
|
|
73
79
|
"@deepseek-ai/dsh-workspace": "^0.1.1-rc.2"
|
|
74
80
|
},
|
|
75
81
|
"devDependencies": {
|
|
@@ -77,6 +83,7 @@
|
|
|
77
83
|
"@deepseek-ai/dsh-agent": "0.1.1-rc.2",
|
|
78
84
|
"@deepseek-ai/dsh-agent-default-model": "0.1.1-rc.2",
|
|
79
85
|
"@deepseek-ai/dsh-agent-presets": "0.1.1-rc.2",
|
|
86
|
+
"@deepseek-ai/dsh-attachment": "^0.1.1-rc.2",
|
|
80
87
|
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
81
88
|
"@deepseek-ai/dsh-client-ui-conversation": "0.1.1-rc.2",
|
|
82
89
|
"@deepseek-ai/dsh-client-ui-layout": "0.1.1-rc.2",
|
|
@@ -85,11 +92,15 @@
|
|
|
85
92
|
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
|
|
86
93
|
"@deepseek-ai/dsh-client-ui-theme": "0.1.1-rc.2",
|
|
87
94
|
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
|
|
95
|
+
"@deepseek-ai/dsh-host-apiproxy": "^0.1.1-rc.2",
|
|
88
96
|
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
89
97
|
"@deepseek-ai/dsh-session": "0.1.1-rc.2",
|
|
98
|
+
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2",
|
|
99
|
+
"@deepseek-ai/dsh-scope": "0.1.1-rc.2",
|
|
90
100
|
"@deepseek-ai/dsh-system-prompt": "0.1.1-rc.2",
|
|
101
|
+
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
102
|
+
"@deepseek-ai/dsh-user-questions": "^0.1.1-rc.2",
|
|
91
103
|
"@deepseek-ai/dsh-workspace": "0.1.1-rc.2",
|
|
92
|
-
"@lemoncat7/dsh-plugin-ui": "file:../dsh-plugin-ui",
|
|
93
104
|
"@types/node": "^24.0.0",
|
|
94
105
|
"@types/react": "18.3.28",
|
|
95
106
|
"esbuild": "^0.25.0",
|