@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.
- package/package.json +1 -1
- package/src/cli.mjs +9 -0
package/package.json
CHANGED
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
|