@saadnvd1/agent-os 0.3.514 → 0.3.517
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/README.md +40 -1
- package/app/api/devices/me/push/route.test.ts +209 -0
- package/app/api/devices/me/push/route.ts +115 -0
- package/app/api/devices/me/route.ts +12 -0
- package/app/api/devices/route.ts +2 -0
- package/app/api/push/test/route.test.ts +112 -0
- package/app/api/push/test/route.ts +38 -0
- package/components/Devices/DeviceRow.tsx +52 -3
- package/components/Devices/DevicesPanel.tsx +13 -0
- package/data/devices/queries.ts +30 -2
- package/lib/away/run.ts +15 -3
- package/lib/chat/registry.ts +2 -0
- package/lib/chat/runner.ts +3 -0
- package/lib/connect/control-api.ts +38 -0
- package/lib/connect/serve.ts +107 -31
- package/lib/connect/supervise.ts +110 -11
- package/lib/db/migrations.ts +59 -0
- package/lib/done/index.ts +5 -1
- package/lib/load/alert.ts +5 -1
- package/lib/notify/copy.ts +190 -0
- package/lib/notify/index.ts +46 -7
- package/lib/notify/limiter.ts +6 -1
- package/lib/notify/push/encode.ts +42 -0
- package/lib/notify/push/events.ts +72 -0
- package/lib/notify/push/index.ts +183 -0
- package/lib/notify/push/outbox.ts +238 -0
- package/lib/notify/push/policy.ts +33 -0
- package/lib/notify/push/presence.ts +45 -0
- package/lib/notify/push/relay.ts +50 -0
- package/lib/notify/push/sender.ts +271 -0
- package/lib/notify/push/testing.ts +30 -0
- package/lib/notify/push/waiting.ts +29 -0
- package/lib/notify/push-types.ts +79 -0
- package/lib/notify/redact.ts +68 -0
- package/lib/orchestrator/asks.ts +5 -1
- package/lib/orchestrator/review.ts +3 -0
- package/lib/program-status/tap.ts +11 -1
- package/lib/schedules/start.ts +11 -2
- package/lib/security/demo.ts +1 -0
- package/lib/security/device-me.ts +12 -0
- package/lib/security/devices.ts +213 -5
- package/lib/security/net.ts +47 -11
- package/lib/tasks/finish.ts +2 -0
- package/lib/tasks/session.ts +26 -2
- package/package.json +1 -1
- package/server.ts +3 -0
package/package.json
CHANGED
package/server.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { startOrchestratorWatcher } from "./lib/orchestrator/watcher";
|
|
|
15
15
|
import { realDeps, schedulesEnabled, startScheduler } from "./lib/schedules";
|
|
16
16
|
import { startUsageRollup, usageRollupEnabled } from "./lib/usage/nightly";
|
|
17
17
|
import { resumePhoneOutbox } from "./lib/notify";
|
|
18
|
+
import { resumePushOutbox } from "./lib/notify/push";
|
|
18
19
|
import {
|
|
19
20
|
bindAddresses,
|
|
20
21
|
requestAllowed,
|
|
@@ -318,6 +319,7 @@ app.prepare().then(async () => {
|
|
|
318
319
|
const connect = demo
|
|
319
320
|
? { hostname: () => null }
|
|
320
321
|
: startConnect({ onRequest, onUpgrade }, port);
|
|
322
|
+
policy.machineHost = () => connect.hostname();
|
|
321
323
|
// HTTPS on the tailnet (its own port) for passkeys and other secure-origin APIs.
|
|
322
324
|
if (
|
|
323
325
|
!demo &&
|
|
@@ -394,6 +396,7 @@ app.prepare().then(async () => {
|
|
|
394
396
|
// Schedules tick here, once a minute, and nowhere else.
|
|
395
397
|
if (schedulesEnabled(process.env)) startScheduler(realDeps);
|
|
396
398
|
resumePhoneOutbox();
|
|
399
|
+
resumePushOutbox();
|
|
397
400
|
// The usage ledger's daily rollup and its ratchet alerts.
|
|
398
401
|
if (usageRollupEnabled(process.env)) startUsageRollup();
|
|
399
402
|
// Machine load: a gauge, notes on heavy commands, one alert when red.
|