@rubytech/taskmaster 1.0.52 → 1.0.54

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.
@@ -41,11 +41,11 @@ export function createAuthorizeAdminTool() {
41
41
  return {
42
42
  label: "Admin",
43
43
  name: "authorize_admin",
44
- description: "Authorize a phone number as an admin. The number will be routed to the management agent with full access. Use this when someone asks to add their personal phone as an admin device.",
44
+ description: "Authorize a phone number as an admin. The number will be routed to the admin agent with full access. Use this when someone asks to add their personal phone as an admin device.",
45
45
  parameters: AuthorizeAdminSchema,
46
46
  execute: async (_toolCallId, params) => {
47
47
  const phoneNumber = normalizePhoneNumber(params.phoneNumber);
48
- const agentId = "management";
48
+ const agentId = "admin";
49
49
  // Validate phone number format
50
50
  if (!/^\+\d{7,15}$/.test(phoneNumber)) {
51
51
  return jsonResult({
@@ -124,7 +124,7 @@ export function createRevokeAdminTool() {
124
124
  return {
125
125
  label: "Admin",
126
126
  name: "revoke_admin",
127
- description: "Revoke admin access from a phone number. The number will no longer be routed to the management agent.",
127
+ description: "Revoke admin access from a phone number. The number will no longer be routed to the admin agent.",
128
128
  parameters: RevokeAdminSchema,
129
129
  execute: async (_toolCallId, params) => {
130
130
  const phoneNumber = normalizePhoneNumber(params.phoneNumber);
@@ -168,14 +168,15 @@ export function createListAdminsTool() {
168
168
  return {
169
169
  label: "Admin",
170
170
  name: "list_admins",
171
- description: "List all phone numbers that have admin (management agent) access.",
171
+ description: "List all phone numbers that have admin agent access.",
172
172
  parameters: ListAdminsSchema,
173
173
  execute: async (_toolCallId) => {
174
174
  const cfg = loadConfig();
175
175
  const bindings = cfg.bindings ?? [];
176
176
  const admins = bindings
177
177
  .filter((b) => {
178
- if (b.agentId !== "management")
178
+ // Accept both "admin" and legacy "management" agent IDs
179
+ if (b.agentId !== "admin" && b.agentId !== "management")
179
180
  return false;
180
181
  if (b.match.channel !== "whatsapp")
181
182
  return false;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.52",
3
- "commit": "af87858f71fcc427c4d9a0c30e290a317b1fbd8c",
4
- "builtAt": "2026-02-17T17:41:25.955Z"
2
+ "version": "1.0.54",
3
+ "commit": "2a1c2ac37038aee2573fee7b793fe2bd24823740",
4
+ "builtAt": "2026-02-17T18:13:05.512Z"
5
5
  }