@rubytech/taskmaster 1.0.53 → 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.
- package/dist/agents/tools/authorize-admin-tool.js +6 -5
- package/dist/build-info.json +2 -2
- package/dist/control-ui/assets/{index-BY1YsAT8.js → index-DC6oJyqi.js} +371 -369
- package/dist/control-ui/assets/index-DC6oJyqi.js.map +1 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/gateway/server-methods/update.js +4 -0
- package/package.json +1 -1
- package/dist/control-ui/assets/index-BY1YsAT8.js.map +0 -1
|
@@ -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
|
|
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 = "
|
|
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
|
|
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
|
|
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
|
-
|
|
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;
|
package/dist/build-info.json
CHANGED