natureco-cli 5.1.1 → 5.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "OpenClaw'dan daha güvenli, daha hızlı, daha ucuz AI agent CLI. Multi-agent, self-evolving skills, audit log, maliyet optimizasyonu ve NatureCo platform-native.",
5
5
  "bin": {
6
6
  "natureco": "bin/natureco.js"
@@ -90,22 +90,19 @@ async function setAlarm({ time, label = "Alarm", calendarName = "Calendar" }) {
90
90
 
91
91
  // AppleScript ile macOS Calendar'a all-day etkinlik olarak alarm ekle
92
92
  // (Reminder ile ayni sonuc, daha guvenilir cunku Calendar otomasyon izni Reminders'dan once verilir)
93
- const script = `
94
- tell application "Calendar"
95
- set targetCal to first calendar whose writable is true
93
+ // 2 adim: Reminders'a alarm ekle (ana mekanizma) + Calendar'a event (gorunurluk icin)
94
+ const reminderScript = `
95
+ tell application "Reminders"
96
+ set targetList to default list
96
97
  set startDate to date "${parsed.formattedDate} ${parsed.formattedTime}"
97
- set endDate to startDate + (1 * minutes)
98
- set newEvent to make new event at end of events of targetCal with properties {summary:"⏰ ${label.replace(/"/g, "'")} - NatureCo", start date:startDate, end date:endDate, allday event:false}
99
- -- Alarm ekle: 0 dakika once = tam zamanda
100
- set the number of sound alarms of newEvent to 1
101
- make new sound alarm at end of sound alarms of newEvent with properties {trigger interval:-0}
98
+ set newReminder to make new reminder at end of targetList with properties {name:"⏰ ${label.replace(/"/g, "'")} - NatureCo", body:"NatureCo CLI tarafindan ${parsed.humanReadable} icin kuruldu", due date:startDate}
102
99
  save
103
- return id of newEvent
100
+ return id of newReminder
104
101
  end tell
105
102
  `;
106
103
 
107
104
  try {
108
- const eventId = await runAppleScript(script);
105
+ const eventId = await runAppleScript(reminderScript);
109
106
  return {
110
107
  success: true,
111
108
  eventId,