@dcrays/scheduled-task 0.1.6-beta.5 → 0.1.6-beta.7
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/package.json +6 -6
- package/plugin/index.js +11 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcrays/scheduled-task",
|
|
3
|
-
"version": "0.1.6-beta.
|
|
3
|
+
"version": "0.1.6-beta.7",
|
|
4
4
|
"description": "Persistent client-facing cron automation service for DeepSeek Harness",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "plugin/index.js",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
37
|
-
"@deepseek-ai/dsh-agent": "
|
|
38
|
-
"@deepseek-ai/dsh-home-paths": "0.1.
|
|
39
|
-
"@deepseek-ai/dsh-host-webserver": "
|
|
40
|
-
"@deepseek-ai/dsh-llm": "
|
|
41
|
-
"@deepseek-ai/dsh-tools": "
|
|
37
|
+
"@deepseek-ai/dsh-agent": "0.1.5-rc.2",
|
|
38
|
+
"@deepseek-ai/dsh-home-paths": "0.1.5-rc.2",
|
|
39
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.5-rc.2",
|
|
40
|
+
"@deepseek-ai/dsh-llm": "0.1.5-rc.2",
|
|
41
|
+
"@deepseek-ai/dsh-tools": "0.1.5-rc.2",
|
|
42
42
|
"@deepseek-ai/schemastery": "^3.18.1"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
package/plugin/index.js
CHANGED
|
@@ -1735,7 +1735,15 @@ function modelSelectionFromEvents(events) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
async function modelSelectionForResume(owner, agentId) {
|
|
1737
1737
|
const persistence = sessionPersistenceOf(owner);
|
|
1738
|
-
|
|
1738
|
+
let persisted;
|
|
1739
|
+
if (persistence) {
|
|
1740
|
+
const handle = await persistence.open(agentId, "read");
|
|
1741
|
+
try {
|
|
1742
|
+
persisted = modelSelectionFromEvents((await handle.read()).events);
|
|
1743
|
+
} finally {
|
|
1744
|
+
await handle.close();
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1739
1747
|
return persisted ?? agentDefaultModelOf(owner)?.currentSelection();
|
|
1740
1748
|
}
|
|
1741
1749
|
async function resumeAgent(owner, agentId) {
|
|
@@ -1753,8 +1761,8 @@ async function resumeAgent(owner, agentId) {
|
|
|
1753
1761
|
model: selection.model
|
|
1754
1762
|
},
|
|
1755
1763
|
...presets ? {
|
|
1756
|
-
setup: async (agentCtx) => {
|
|
1757
|
-
await presets.mount(agentCtx,
|
|
1764
|
+
setup: async (agentCtx, agent) => {
|
|
1765
|
+
await presets.mount(agentCtx, agent.session.header.agentPreset);
|
|
1758
1766
|
}
|
|
1759
1767
|
} : {}
|
|
1760
1768
|
});
|