@frockbot/plugin-clock 0.3.2 → 0.3.3

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/agent.ts +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frockbot/plugin-clock",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -17,7 +17,7 @@
17
17
  "typecheck": "tsc --noEmit -p tsconfig.json"
18
18
  },
19
19
  "dependencies": {
20
- "@frockbot/kernel-contracts": "0.3.2",
20
+ "@frockbot/kernel-contracts": "0.3.3",
21
21
  "cordis": "4.0.0-rc.8"
22
22
  },
23
23
  "devDependencies": {
package/src/agent.ts CHANGED
@@ -14,6 +14,7 @@ function currentTime(): string {
14
14
 
15
15
  const clockTool: ToolDefinition = {
16
16
  name: "current_time",
17
+ namespace: "frockbot",
17
18
  description: "Return the current local date and time.",
18
19
  inputSchema: { type: "object", properties: {}, additionalProperties: false },
19
20
  idempotent: true,
@@ -28,7 +29,15 @@ async function* requestClockTool(
28
29
  yield {
29
30
  // pi-lens-ignore: ts:2322
30
31
  type: "tool-call",
31
- call: { id: crypto.randomUUID(), name: "current_time", input: {} },
32
+ call: {
33
+ id: crypto.randomUUID(),
34
+ name: "call_dynamic_tool",
35
+ input: {
36
+ namespace: "frockbot",
37
+ toolName: "current_time",
38
+ arguments: {},
39
+ },
40
+ },
32
41
  };
33
42
  yield {
34
43
  type: "finish",