doer-agent 0.6.8 → 0.6.9

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.
@@ -97,6 +97,7 @@ async function showMobileNotification(args) {
97
97
  title: args.title,
98
98
  text: args.text,
99
99
  notificationId: args.notificationId,
100
+ url: args.url,
100
101
  });
101
102
  }
102
103
  async function getMobileLogs(args) {
@@ -283,10 +284,11 @@ async function main() {
283
284
  deviceId: z.string().optional().describe("Mobile device id. Defaults to the first registered mobile agent."),
284
285
  title: z.string().min(1).describe("Notification title."),
285
286
  text: z.string().min(1).describe("Notification body text."),
287
+ url: z.string().nullable().optional().describe("Optional URL or deep link to open when the notification is tapped."),
286
288
  notificationId: z.number().int().optional().describe("Optional Android notification id. Reusing an id updates the existing notification."),
287
289
  },
288
- }, async ({ deviceId, title, text, notificationId }) => {
289
- const result = await showMobileNotification({ deviceId, title, text, notificationId });
290
+ }, async ({ deviceId, title, text, url, notificationId }) => {
291
+ const result = await showMobileNotification({ deviceId, title, text, url, notificationId });
290
292
  return {
291
293
  content: [{ type: "text", text: formatJson(result) }],
292
294
  structuredContent: result,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doer-agent",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "Reverse-polling agent runtime for doer",
5
5
  "type": "module",
6
6
  "main": "dist/agent.js",