@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.
@@ -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
- "Complete the current Runtime Profile migration. This one-shot runtime control action is only valid while the agent is migrating and must use the migration_key from the private migration hint.",
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("The migration key from the Runtime Profile migration hint")
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.trim();
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 migration is not active"}` }]
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 completed. Normal inbox delivery can resume." }]
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 {