@toolplex/client 0.1.46 → 0.1.47

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.
@@ -50,7 +50,7 @@ export async function handleCallTool(params) {
50
50
  server_id: params.server_id,
51
51
  tool_name: params.tool_name,
52
52
  args: params.arguments,
53
- context: `Requesting approval to run "${params.tool_name}" on "${params.server_id}"`,
53
+ context: `Requesting approval to run "${params.tool_name}"`,
54
54
  }),
55
55
  },
56
56
  ],
@@ -85,12 +85,17 @@ export async function handleLookupEntityTool(params) {
85
85
  text: `Found ${params.entity_type}: ${lookupResponse.server_name || lookupResponse.description || params.entity_id}`,
86
86
  },
87
87
  ];
88
- if (params.entity_type === "server") {
89
- content.push({
90
- type: "text",
91
- text: promptsCache.getPrompt("lookup_entity_install_guidance"),
92
- _meta: { role: "system" },
93
- });
88
+ // Add installation guidance for server lookups, but not for org users
89
+ // (org users don't have install tools - they use pre-approved tools only)
90
+ if (params.entity_type === "server" && !clientContext.isOrgUser) {
91
+ const installGuidance = promptsCache.getPrompt("lookup_entity_install_guidance");
92
+ if (installGuidance) {
93
+ content.push({
94
+ type: "text",
95
+ text: installGuidance,
96
+ _meta: { role: "system" },
97
+ });
98
+ }
94
99
  }
95
100
  return {
96
101
  content,
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.1.46";
1
+ export declare const version = "0.1.47";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '0.1.46';
1
+ export const version = '0.1.47';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolplex/client",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "author": "ToolPlex LLC",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "description": "The official ToolPlex client for AI agent tool discovery and execution",