@toolplex/client 0.1.28 → 0.1.29

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.
@@ -20,7 +20,7 @@ export async function handleLookupEntityTool(params) {
20
20
  if (params.entity_type === "server") {
21
21
  policyEnforcer.enforceUseServerPolicy(params.entity_id);
22
22
  }
23
- const lookupResponse = await apiService.lookupEntity(params.entity_type, params.entity_id);
23
+ const lookupResponse = await apiService.lookupEntity(params.entity_type, params.entity_id, params.include_readme);
24
24
  // Annotate installed server using resultAnnotators
25
25
  if (params.entity_type === "server" &&
26
26
  lookupResponse &&
@@ -20,7 +20,7 @@ export declare class ToolplexApiService {
20
20
  eventType: LogTelemetryRequest["event_type"];
21
21
  data: Partial<Omit<LogTelemetryRequest, "event_type">>;
22
22
  }>): Promise<LogTelemetryBatchResponse>;
23
- lookupEntity(entityType: "server" | "playbook" | "feedback", entityId: string): Promise<any>;
23
+ lookupEntity(entityType: "server" | "playbook" | "feedback", entityId: string, includeReadme?: boolean): Promise<any>;
24
24
  search(query: string, expandedKeywords?: string[], filter?: string, size?: number, scope?: string): Promise<SearchResponse>;
25
25
  createPlaybook(playbook_name: string, description: string, actions: Array<PlaybookAction>, domain?: string, keywords?: string[], requirements?: string[], privacy?: "public" | "private", sourcePlaybookId?: string, forkReason?: string): Promise<CreatePlaybookResponse>;
26
26
  logPlaybookUsage(playbookId: string, success: boolean, errorMessage?: string): Promise<LogPlaybookUsageResponse>;
@@ -93,7 +93,7 @@ export class ToolplexApiService {
93
93
  return { success: false };
94
94
  }
95
95
  }
96
- async lookupEntity(entityType, entityId) {
96
+ async lookupEntity(entityType, entityId, includeReadme) {
97
97
  try {
98
98
  const response = await fetch(`${this.baseUrl}/lookup-entity`, {
99
99
  method: "POST",
@@ -101,6 +101,7 @@ export class ToolplexApiService {
101
101
  body: JSON.stringify({
102
102
  entity_type: entityType,
103
103
  entity_id: entityId,
104
+ include_readme: includeReadme,
104
105
  }),
105
106
  });
106
107
  return this.handleFetchResponse(response);
@@ -140,12 +140,15 @@ export type SearchParams = z.infer<typeof SearchParamsSchema>;
140
140
  export declare const LookupEntityParamsSchema: z.ZodObject<{
141
141
  entity_type: z.ZodEnum<["server", "playbook", "feedback"]>;
142
142
  entity_id: z.ZodString;
143
+ include_readme: z.ZodOptional<z.ZodBoolean>;
143
144
  }, "strip", z.ZodTypeAny, {
144
145
  entity_type: "server" | "playbook" | "feedback";
145
146
  entity_id: string;
147
+ include_readme?: boolean | undefined;
146
148
  }, {
147
149
  entity_type: "server" | "playbook" | "feedback";
148
150
  entity_id: string;
151
+ include_readme?: boolean | undefined;
149
152
  }>;
150
153
  export type LookupEntityParams = z.infer<typeof LookupEntityParamsSchema>;
151
154
  export declare const InstallParamsSchema: z.ZodObject<{
@@ -51,6 +51,7 @@ export const SearchParamsSchema = z.object({
51
51
  export const LookupEntityParamsSchema = z.object({
52
52
  entity_type: z.enum(["server", "playbook", "feedback"]),
53
53
  entity_id: z.string(),
54
+ include_readme: z.boolean().optional(),
54
55
  });
55
56
  // --------------------
56
57
  // InstallParams
@@ -93,7 +93,7 @@ export class ToolplexApiService {
93
93
  return { success: false };
94
94
  }
95
95
  }
96
- async lookupEntity(entityType, entityId) {
96
+ async lookupEntity(entityType, entityId, includeReadme) {
97
97
  try {
98
98
  const response = await fetch(`${this.baseUrl}/lookup-entity`, {
99
99
  method: "POST",
@@ -101,6 +101,7 @@ export class ToolplexApiService {
101
101
  body: JSON.stringify({
102
102
  entity_type: entityType,
103
103
  entity_id: entityId,
104
+ include_readme: includeReadme,
104
105
  }),
105
106
  });
106
107
  return this.handleFetchResponse(response);
@@ -51,6 +51,7 @@ export const SearchParamsSchema = z.object({
51
51
  export const LookupEntityParamsSchema = z.object({
52
52
  entity_type: z.enum(["server", "playbook", "feedback"]),
53
53
  entity_id: z.string(),
54
+ include_readme: z.boolean().optional(),
54
55
  });
55
56
  // --------------------
56
57
  // InstallParams
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.1.28";
1
+ export declare const version = "0.1.29";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '0.1.28';
1
+ export const version = '0.1.29';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolplex/client",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
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",