@toolplex/client 0.1.35 → 0.1.36
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.
|
@@ -172,6 +172,22 @@ export async function handleInitialize(params) {
|
|
|
172
172
|
.replace("{ALLOWED_MCP_SERVERS}", clientContext.permissions.allowed_mcp_servers.join(", ")),
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
+
// For org users with no tools approved yet, add explicit message
|
|
176
|
+
if (clientContext.isOrgUser && allSucceeded.length === 0) {
|
|
177
|
+
result.content.push({
|
|
178
|
+
type: "text",
|
|
179
|
+
text: "IMPORTANT: No tools have been approved for this organization yet. You cannot use any tools until an admin approves them. Do NOT hallucinate or make up tool capabilities - simply inform the user that no tools are currently available and they should contact their admin.",
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
// Add custom prompt / agent instructions for org users
|
|
183
|
+
if (clientContext.permissions.custom_prompt) {
|
|
184
|
+
result.content.push({
|
|
185
|
+
type: "text",
|
|
186
|
+
text: "ORGANIZATION INSTRUCTIONS:\n" +
|
|
187
|
+
"The following instructions have been set by your organization's administrator. Follow these guidelines:\n\n" +
|
|
188
|
+
clientContext.permissions.custom_prompt,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
175
191
|
result.content.push({
|
|
176
192
|
type: "text",
|
|
177
193
|
text: "Your Most Recently Used Playbooks:\n" +
|
|
@@ -172,6 +172,22 @@ export async function handleInitialize(params) {
|
|
|
172
172
|
.replace("{ALLOWED_MCP_SERVERS}", clientContext.permissions.allowed_mcp_servers.join(", ")),
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
+
// For org users with no tools approved yet, add explicit message
|
|
176
|
+
if (clientContext.isOrgUser && allSucceeded.length === 0) {
|
|
177
|
+
result.content.push({
|
|
178
|
+
type: "text",
|
|
179
|
+
text: "IMPORTANT: No tools have been approved for this organization yet. You cannot use any tools until an admin approves them. Do NOT hallucinate or make up tool capabilities - simply inform the user that no tools are currently available and they should contact their admin.",
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
// Add custom prompt / agent instructions for org users
|
|
183
|
+
if (clientContext.permissions.custom_prompt) {
|
|
184
|
+
result.content.push({
|
|
185
|
+
type: "text",
|
|
186
|
+
text: "ORGANIZATION INSTRUCTIONS:\n" +
|
|
187
|
+
"The following instructions have been set by your organization's administrator. Follow these guidelines:\n\n" +
|
|
188
|
+
clientContext.permissions.custom_prompt,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
175
191
|
result.content.push({
|
|
176
192
|
type: "text",
|
|
177
193
|
text: "Your Most Recently Used Playbooks:\n" +
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.1.
|
|
1
|
+
export declare const version = "0.1.36";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.1.
|
|
1
|
+
export const version = '0.1.36';
|