@madh-io/alfred-ai 0.3.1 → 0.3.2

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/bundle/index.js +22 -3
  2. package/package.json +1 -1
package/bundle/index.js CHANGED
@@ -2239,8 +2239,8 @@ var init_system_info = __esm({
2239
2239
  properties: {
2240
2240
  category: {
2241
2241
  type: "string",
2242
- enum: ["general", "memory", "uptime"],
2243
- description: "Category of system info"
2242
+ enum: ["general", "memory", "uptime", "datetime"],
2243
+ description: "Category of system info (use datetime for current date/time)"
2244
2244
  }
2245
2245
  },
2246
2246
  required: ["category"]
@@ -2255,6 +2255,8 @@ var init_system_info = __esm({
2255
2255
  return this.getMemoryInfo();
2256
2256
  case "uptime":
2257
2257
  return this.getUptimeInfo();
2258
+ case "datetime":
2259
+ return this.getDateTimeInfo();
2258
2260
  default:
2259
2261
  return {
2260
2262
  success: false,
@@ -2304,6 +2306,21 @@ var init_system_info = __esm({
2304
2306
  display: `Uptime: ${info.formatted}`
2305
2307
  };
2306
2308
  }
2309
+ getDateTimeInfo() {
2310
+ const now = /* @__PURE__ */ new Date();
2311
+ const info = {
2312
+ iso: now.toISOString(),
2313
+ date: now.toLocaleDateString("de-DE", { weekday: "long", year: "numeric", month: "long", day: "numeric" }),
2314
+ time: now.toLocaleTimeString("de-DE"),
2315
+ timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
2316
+ timestamp: now.getTime()
2317
+ };
2318
+ return {
2319
+ success: true,
2320
+ data: info,
2321
+ display: `${info.date}, ${info.time} (${info.timezone})`
2322
+ };
2323
+ }
2307
2324
  };
2308
2325
  }
2309
2326
  });
@@ -3906,6 +3923,7 @@ var init_message_pipeline = __esm({
3906
3923
  const result = await this.executeToolCall(toolCall, {
3907
3924
  userId: user.id,
3908
3925
  chatId: message.chatId,
3926
+ chatType: message.chatType,
3909
3927
  platform: message.platform,
3910
3928
  conversationId: conversation.id
3911
3929
  });
@@ -3940,7 +3958,8 @@ var init_message_pipeline = __esm({
3940
3958
  action: toolCall.name,
3941
3959
  riskLevel: skill.metadata.riskLevel,
3942
3960
  platform: context.platform,
3943
- chatId: context.chatId
3961
+ chatId: context.chatId,
3962
+ chatType: context.chatType
3944
3963
  });
3945
3964
  if (!evaluation.allowed) {
3946
3965
  this.logger.warn({ tool: toolCall.name, reason: evaluation.reason, rule: evaluation.matchedRule?.id }, "Skill execution denied by security rules");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madh-io/alfred-ai",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Alfred — Personal AI Assistant across Telegram, Discord, WhatsApp, Matrix & Signal",
5
5
  "type": "module",
6
6
  "bin": {