@coworker-jp/aidr 0.1.10 → 0.1.11

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 +1 -1
  2. package/src/cli.mjs +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coworker-jp/aidr",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "AIDR setup CLI - installs ai-scanner hooks for 19+ AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.mjs CHANGED
@@ -154,6 +154,15 @@ async function cmdInstall(opts) {
154
154
  opts.scheduled = true;
155
155
  }
156
156
 
157
+ // On Windows there is no ai-scanner binary and no cron/systemd/launchd, so
158
+ // the scheduled endpoint-info scan cannot run — the standalone install is
159
+ // coworker-sentinel-only there (`--with-sentinel` installs the daemon below).
160
+ // Force scheduled off so it doesn't abort the install before sentinel.
161
+ if (process.platform === "win32" && opts.scheduled) {
162
+ console.error("Note: scheduled scanning is not available on Windows; installing coworker-sentinel only.");
163
+ opts.scheduled = false;
164
+ }
165
+
157
166
  // --scheduled installs a system-wide cron / systemd / launchd entry that
158
167
  // runs `ai-scanner scan endpoint-info` periodically as root, against an
159
168
  // agent-independent binary at /opt/coworker/aidr/bin/ai-scanner. Auto-add