@tplog/pi-zendy 0.3.3 → 0.3.5

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.
@@ -59,6 +59,18 @@ function registerZendeskTools(pi: ExtensionAPI): void {
59
59
  return textResult(lines.join('\n'), { results: result.results, count: result.count });
60
60
  },
61
61
  });
62
+
63
+ pi.registerTool({
64
+ name: "zendy_whoami",
65
+ label: "Zendy Whoami",
66
+ description: "Check the currently authenticated Zendesk user identity. Use to verify credentials and confirm which account the tool is acting as.",
67
+ promptSnippet: "Check current Zendesk identity with zendy_whoami.",
68
+ parameters: Type.Object({}),
69
+ async execute(_toolCallId: string, _params: Record<string, never>, signal?: AbortSignal) {
70
+ const { user } = await zendesk.getMe(signal);
71
+ return textResult(`Authenticated as ${user.name} (${user.email}), role: ${user.role}.`, { user });
72
+ },
73
+ });
62
74
  }
63
75
 
64
76
  function registerHelmTools(pi: ExtensionAPI): void {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplog/pi-zendy",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Pi package for Dify Enterprise support ticket analysis",
5
5
  "repository": {
6
6
  "type": "git",