Spaces:
Sleeping
Sleeping
fix: remove resource_link
Browse filesSigned-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
- src/tools/addUserToGroup.ts +0 -5
- src/tools/createGroup.ts +0 -9
- src/tools/createUser.ts +0 -9
- src/tools/getGroups.ts +0 -5
- src/tools/getOneGroup.ts +0 -5
- src/tools/getOneUser.ts +0 -5
- src/tools/getUsers.ts +0 -5
- src/tools/patchGroup.ts +0 -5
- src/tools/patchUser.ts +0 -5
- src/tools/removeUserFromGroup.ts +0 -5
- src/tools/replaceGroup.ts +0 -5
- src/tools/replaceUser.ts +0 -5
src/tools/addUserToGroup.ts
CHANGED
|
@@ -77,11 +77,6 @@ export default async function addUserToGroup(
|
|
| 77 |
type: "text",
|
| 78 |
text: `User ${userId} added to group ${groupId} successfully`,
|
| 79 |
},
|
| 80 |
-
{
|
| 81 |
-
type: "resource_link",
|
| 82 |
-
name: "Group resource",
|
| 83 |
-
uri: `groups://${groupId}`,
|
| 84 |
-
},
|
| 85 |
],
|
| 86 |
structuredContent: data ?? undefined,
|
| 87 |
};
|
|
|
|
| 77 |
type: "text",
|
| 78 |
text: `User ${userId} added to group ${groupId} successfully`,
|
| 79 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
],
|
| 81 |
structuredContent: data ?? undefined,
|
| 82 |
};
|
src/tools/createGroup.ts
CHANGED
|
@@ -64,15 +64,6 @@ export default async function createGroup(
|
|
| 64 |
type: "text",
|
| 65 |
text: `Group created successfully`,
|
| 66 |
},
|
| 67 |
-
...(data?.id
|
| 68 |
-
? [
|
| 69 |
-
{
|
| 70 |
-
type: "resource_link",
|
| 71 |
-
name: "Group resource",
|
| 72 |
-
uri: `groups://${data.id}`,
|
| 73 |
-
},
|
| 74 |
-
]
|
| 75 |
-
: []),
|
| 76 |
],
|
| 77 |
structuredContent: data ?? undefined,
|
| 78 |
};
|
|
|
|
| 64 |
type: "text",
|
| 65 |
text: `Group created successfully`,
|
| 66 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
],
|
| 68 |
structuredContent: data ?? undefined,
|
| 69 |
};
|
src/tools/createUser.ts
CHANGED
|
@@ -64,15 +64,6 @@ export default async function createUser(
|
|
| 64 |
type: "text",
|
| 65 |
text: `User created successfully`,
|
| 66 |
},
|
| 67 |
-
...(data?.id
|
| 68 |
-
? [
|
| 69 |
-
{
|
| 70 |
-
type: "resource_link",
|
| 71 |
-
name: "User resource",
|
| 72 |
-
uri: `users://${data.id}`,
|
| 73 |
-
},
|
| 74 |
-
]
|
| 75 |
-
: []),
|
| 76 |
],
|
| 77 |
structuredContent: data ?? undefined,
|
| 78 |
};
|
|
|
|
| 64 |
type: "text",
|
| 65 |
text: `User created successfully`,
|
| 66 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
],
|
| 68 |
structuredContent: data ?? undefined,
|
| 69 |
};
|
src/tools/getGroups.ts
CHANGED
|
@@ -146,11 +146,6 @@ export default async function getGroups(params: InferSchema<typeof schema>) {
|
|
| 146 |
type: "text",
|
| 147 |
text: `Get groups successfully`,
|
| 148 |
},
|
| 149 |
-
{
|
| 150 |
-
type: "resource_link",
|
| 151 |
-
name: "Group resources",
|
| 152 |
-
uri: "groups://",
|
| 153 |
-
},
|
| 154 |
],
|
| 155 |
structuredContent: data ?? undefined,
|
| 156 |
};
|
|
|
|
| 146 |
type: "text",
|
| 147 |
text: `Get groups successfully`,
|
| 148 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
],
|
| 150 |
structuredContent: data ?? undefined,
|
| 151 |
};
|
src/tools/getOneGroup.ts
CHANGED
|
@@ -103,11 +103,6 @@ export default async function getOneGroup(params: InferSchema<typeof schema>) {
|
|
| 103 |
type: "text",
|
| 104 |
text: `Get one group successfully`,
|
| 105 |
},
|
| 106 |
-
{
|
| 107 |
-
type: "resource_link",
|
| 108 |
-
name: "Group resource",
|
| 109 |
-
uri: `groups://${groupId}`,
|
| 110 |
-
},
|
| 111 |
],
|
| 112 |
structuredContent: data ?? undefined,
|
| 113 |
};
|
|
|
|
| 103 |
type: "text",
|
| 104 |
text: `Get one group successfully`,
|
| 105 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
],
|
| 107 |
structuredContent: data ?? undefined,
|
| 108 |
};
|
src/tools/getOneUser.ts
CHANGED
|
@@ -103,11 +103,6 @@ export default async function getOneUser(params: InferSchema<typeof schema>) {
|
|
| 103 |
type: "text",
|
| 104 |
text: `Get one user successfully`,
|
| 105 |
},
|
| 106 |
-
{
|
| 107 |
-
type: "resource_link",
|
| 108 |
-
name: "User resource",
|
| 109 |
-
uri: `users://${userId}`,
|
| 110 |
-
},
|
| 111 |
],
|
| 112 |
structuredContent: data ?? undefined,
|
| 113 |
};
|
|
|
|
| 103 |
type: "text",
|
| 104 |
text: `Get one user successfully`,
|
| 105 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
],
|
| 107 |
structuredContent: data ?? undefined,
|
| 108 |
};
|
src/tools/getUsers.ts
CHANGED
|
@@ -146,11 +146,6 @@ export default async function getUsers(params: InferSchema<typeof schema>) {
|
|
| 146 |
type: "text",
|
| 147 |
text: `Get users successfully`,
|
| 148 |
},
|
| 149 |
-
{
|
| 150 |
-
type: "resource_link",
|
| 151 |
-
name: "User resources",
|
| 152 |
-
uri: "users://",
|
| 153 |
-
},
|
| 154 |
],
|
| 155 |
structuredContent: data ?? undefined,
|
| 156 |
};
|
|
|
|
| 146 |
type: "text",
|
| 147 |
text: `Get users successfully`,
|
| 148 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
],
|
| 150 |
structuredContent: data ?? undefined,
|
| 151 |
};
|
src/tools/patchGroup.ts
CHANGED
|
@@ -61,11 +61,6 @@ export default async function patchGroup(
|
|
| 61 |
type: "text",
|
| 62 |
text: `Group ${groupId} patched successfully`,
|
| 63 |
},
|
| 64 |
-
{
|
| 65 |
-
type: "resource_link",
|
| 66 |
-
name: "Group resource",
|
| 67 |
-
uri: `groups://${groupId}`,
|
| 68 |
-
},
|
| 69 |
],
|
| 70 |
structuredContent: data ?? undefined,
|
| 71 |
};
|
|
|
|
| 61 |
type: "text",
|
| 62 |
text: `Group ${groupId} patched successfully`,
|
| 63 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
],
|
| 65 |
structuredContent: data ?? undefined,
|
| 66 |
};
|
src/tools/patchUser.ts
CHANGED
|
@@ -61,11 +61,6 @@ export default async function patchUser(
|
|
| 61 |
type: "text",
|
| 62 |
text: `User ${userId} patched successfully`,
|
| 63 |
},
|
| 64 |
-
{
|
| 65 |
-
type: "resource_link",
|
| 66 |
-
name: "User resource",
|
| 67 |
-
uri: `users://${userId}`,
|
| 68 |
-
},
|
| 69 |
],
|
| 70 |
structuredContent: data ?? undefined,
|
| 71 |
};
|
|
|
|
| 61 |
type: "text",
|
| 62 |
text: `User ${userId} patched successfully`,
|
| 63 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
],
|
| 65 |
structuredContent: data ?? undefined,
|
| 66 |
};
|
src/tools/removeUserFromGroup.ts
CHANGED
|
@@ -79,11 +79,6 @@ export default async function removeUserFromGroup(
|
|
| 79 |
type: "text",
|
| 80 |
text: `User ${userId} removed from group ${groupId} successfully`,
|
| 81 |
},
|
| 82 |
-
{
|
| 83 |
-
type: "resource_link",
|
| 84 |
-
name: "Group resource",
|
| 85 |
-
uri: `groups://${groupId}`,
|
| 86 |
-
},
|
| 87 |
],
|
| 88 |
structuredContent: data ?? undefined,
|
| 89 |
};
|
|
|
|
| 79 |
type: "text",
|
| 80 |
text: `User ${userId} removed from group ${groupId} successfully`,
|
| 81 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
],
|
| 83 |
structuredContent: data ?? undefined,
|
| 84 |
};
|
src/tools/replaceGroup.ts
CHANGED
|
@@ -61,11 +61,6 @@ export default async function replaceGroup(
|
|
| 61 |
type: "text",
|
| 62 |
text: `Group ${groupId} replaced successfully`,
|
| 63 |
},
|
| 64 |
-
{
|
| 65 |
-
type: "resource_link",
|
| 66 |
-
name: "Group resource",
|
| 67 |
-
uri: `groups://${groupId}`,
|
| 68 |
-
},
|
| 69 |
],
|
| 70 |
structuredContent: data ?? undefined,
|
| 71 |
};
|
|
|
|
| 61 |
type: "text",
|
| 62 |
text: `Group ${groupId} replaced successfully`,
|
| 63 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
],
|
| 65 |
structuredContent: data ?? undefined,
|
| 66 |
};
|
src/tools/replaceUser.ts
CHANGED
|
@@ -61,11 +61,6 @@ export default async function replaceUser(
|
|
| 61 |
type: "text",
|
| 62 |
text: `User ${userId} replaced successfully`,
|
| 63 |
},
|
| 64 |
-
{
|
| 65 |
-
type: "resource_link",
|
| 66 |
-
name: "User resource",
|
| 67 |
-
uri: `users://${userId}`,
|
| 68 |
-
},
|
| 69 |
],
|
| 70 |
structuredContent: data ?? undefined,
|
| 71 |
};
|
|
|
|
| 61 |
type: "text",
|
| 62 |
text: `User ${userId} replaced successfully`,
|
| 63 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
],
|
| 65 |
structuredContent: data ?? undefined,
|
| 66 |
};
|