@slock-ai/daemon 0.53.1-alpha.2 → 0.53.1-alpha.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/dist/chat-bridge.js +5 -11
- package/dist/{chunk-RFGC74KF.js → chunk-WJZJFOKB.js} +697 -258
- package/dist/cli/index.js +2 -1
- package/dist/core.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -58,18 +58,12 @@ var server = new McpServer({
|
|
|
58
58
|
var RUNTIME_PROFILE_MIGRATION_DONE_TOOL_NAME = "runtime_profile_migration_done";
|
|
59
59
|
server.tool(
|
|
60
60
|
RUNTIME_PROFILE_MIGRATION_DONE_TOOL_NAME,
|
|
61
|
-
"
|
|
61
|
+
"Deprecated compatibility no-op. Runtime Profile changes now reset the session automatically; this tool is kept so old prompts can acknowledge without blocking.",
|
|
62
62
|
{
|
|
63
|
-
migration_key: z.string().describe("
|
|
63
|
+
migration_key: z.string().optional().describe("Ignored legacy migration key, if an old prompt provided one")
|
|
64
64
|
},
|
|
65
65
|
async ({ migration_key }) => {
|
|
66
|
-
const key = migration_key
|
|
67
|
-
if (!key) {
|
|
68
|
-
return {
|
|
69
|
-
isError: true,
|
|
70
|
-
content: [{ type: "text", text: "Error: migration_key is required" }]
|
|
71
|
-
};
|
|
72
|
-
}
|
|
66
|
+
const key = migration_key?.trim() ?? "";
|
|
73
67
|
try {
|
|
74
68
|
const { response: res, data } = await executeJsonRequest(
|
|
75
69
|
`${serverUrl}/internal/agent/${agentId}/runtime-profile/migration-done`,
|
|
@@ -86,11 +80,11 @@ server.tool(
|
|
|
86
80
|
if (!res.ok) {
|
|
87
81
|
return {
|
|
88
82
|
isError: true,
|
|
89
|
-
content: [{ type: "text", text: `Error: ${data.error || "Runtime Profile
|
|
83
|
+
content: [{ type: "text", text: `Error: ${data.error || "Runtime Profile reset acknowledgment failed"}` }]
|
|
90
84
|
};
|
|
91
85
|
}
|
|
92
86
|
return {
|
|
93
|
-
content: [{ type: "text", text: "Runtime Profile migration
|
|
87
|
+
content: [{ type: "text", text: data.message || "Runtime Profile migration acknowledgments are deprecated; runtime changes reset the session automatically." }]
|
|
94
88
|
};
|
|
95
89
|
} catch (err) {
|
|
96
90
|
return {
|