@ebowwa/glm-daemon 0.4.4 → 0.4.6

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.
@@ -0,0 +1,37 @@
1
+ /**
2
+ * GLM Agent - Individual GLM-powered agent
3
+ *
4
+ * Wraps GLM 4.7 API with tool access and hook integration.
5
+ */
6
+ import type { GLMAgentConfig, GLMToolResult } from "./types.js";
7
+ export declare class GLMAgent {
8
+ private config;
9
+ private client;
10
+ private tools;
11
+ constructor(config: GLMAgentConfig);
12
+ /**
13
+ * Execute a prompt and get response
14
+ */
15
+ execute(prompt: string, tools?: Record<string, unknown>): Promise<string>;
16
+ /**
17
+ * Execute a tool call
18
+ */
19
+ executeTool(toolName: string, args: unknown): Promise<GLMToolResult>;
20
+ /**
21
+ * Register a tool
22
+ */
23
+ registerTool(name: string, handler: (args: unknown) => Promise<unknown>): void;
24
+ /**
25
+ * Get available tools
26
+ */
27
+ getAvailableTools(): string[];
28
+ /**
29
+ * Get agent ID
30
+ */
31
+ get agentId(): string;
32
+ /**
33
+ * Get agent name
34
+ */
35
+ get name(): string;
36
+ }
37
+ //# sourceMappingURL=agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAIhE,qBAAa,QAAQ;IACnB,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,KAAK,CAA+D;gBAEhE,MAAM,EAAE,cAAc;IAKlC;;OAEG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IA6B/E;;OAEG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC;IA4B1E;;OAEG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI;IAI9E;;OAEG;IACH,iBAAiB,IAAI,MAAM,EAAE;IAI7B;;OAEG;IACH,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;CACF"}