@rubytech/taskmaster 1.9.1 → 1.9.2
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/build-info.json
CHANGED
|
@@ -267,6 +267,34 @@ export const LEGACY_CONFIG_MIGRATIONS_PART_3 = [
|
|
|
267
267
|
changes.push("Set default model fallbacks: google/gemini-3-pro-preview, openai/gpt-5.2.");
|
|
268
268
|
},
|
|
269
269
|
},
|
|
270
|
+
{
|
|
271
|
+
id: "admin-agent-tools-add-image_generate",
|
|
272
|
+
describe: "Add image_generate to admin agent tools.allow",
|
|
273
|
+
apply: (raw, changes) => {
|
|
274
|
+
const agents = getRecord(raw.agents);
|
|
275
|
+
const list = getAgentsList(agents);
|
|
276
|
+
for (const entry of list) {
|
|
277
|
+
if (!isRecord(entry))
|
|
278
|
+
continue;
|
|
279
|
+
const id = typeof entry.id === "string" ? entry.id.trim() : "";
|
|
280
|
+
if (!id)
|
|
281
|
+
continue;
|
|
282
|
+
const isAdmin = id === "admin" || id.endsWith("-admin");
|
|
283
|
+
if (!isAdmin)
|
|
284
|
+
continue;
|
|
285
|
+
const tools = getRecord(entry.tools);
|
|
286
|
+
if (!tools)
|
|
287
|
+
continue;
|
|
288
|
+
if (!Array.isArray(tools.allow))
|
|
289
|
+
continue;
|
|
290
|
+
const allow = tools.allow;
|
|
291
|
+
if (!allow.includes("image_generate")) {
|
|
292
|
+
allow.push("image_generate");
|
|
293
|
+
changes.push(`Added image_generate to agent "${id}" tools.allow.`);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
},
|
|
270
298
|
{
|
|
271
299
|
id: "agents-tools-remove-sessions_send",
|
|
272
300
|
describe: "Remove sessions_send from agent tools.allow (tool removed for security)",
|
|
@@ -102,21 +102,16 @@ export async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
102
102
|
.join("\n")}`);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
//
|
|
106
|
-
//
|
|
107
|
-
//
|
|
105
|
+
// Run all migrations unconditionally to catch additive changes (new tools
|
|
106
|
+
// in agent allow lists, new defaults) that the legacy-rules system cannot
|
|
107
|
+
// detect — rules flag keys that *exist*, not keys that are *missing*.
|
|
108
|
+
// Migrations are idempotent; nothing is written when there are no changes.
|
|
108
109
|
if (configSnapshot.exists && !isNixMode) {
|
|
109
110
|
const parsed = configSnapshot.parsed;
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
if (!Array.isArray(fallbacks) || fallbacks.length === 0) {
|
|
115
|
-
const { config: migrated, changes } = migrateLegacyConfig(parsed ?? {});
|
|
116
|
-
if (migrated && changes.length > 0) {
|
|
117
|
-
await writeConfigFile(migrated);
|
|
118
|
-
log.info(`gateway: applied config defaults:\n${changes.map((entry) => `- ${entry}`).join("\n")}`);
|
|
119
|
-
}
|
|
111
|
+
const { config: migrated, changes } = migrateLegacyConfig(parsed ?? {});
|
|
112
|
+
if (migrated && changes.length > 0) {
|
|
113
|
+
await writeConfigFile(migrated);
|
|
114
|
+
log.info(`gateway: applied config defaults:\n${changes.map((entry) => `- ${entry}`).join("\n")}`);
|
|
120
115
|
}
|
|
121
116
|
}
|
|
122
117
|
configSnapshot = await readConfigFileSnapshot();
|
package/package.json
CHANGED
|
@@ -1356,7 +1356,7 @@ Or, if the SD card is already written:
|
|
|
1356
1356
|
ssh admin@taskmaster.local
|
|
1357
1357
|
```
|
|
1358
1358
|
|
|
1359
|
-
Enter the password when prompted. The default password
|
|
1359
|
+
Enter the password when prompted. The default password is `password` for pre-installed devices, or whatever you chose during Raspberry Pi OS setup.
|
|
1360
1360
|
|
|
1361
1361
|
> **Security tip:** Change the default password after your first SSH login by running `passwd` on the Pi.
|
|
1362
1362
|
|