@agimon-ai/po-notification 0.0.0-alpha.160 → 0.0.0-alpha.161

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/README.md +13 -18
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  Native push delivery, notification text helpers, and shell-tab title utilities for
4
4
  [Po](https://www.npmjs.com/package/@agimon-ai/po) sessions.
5
5
 
6
- Long agent runs are worth walking away from. This package supplies the native push sender and `/notify` command. Hosts own notification
7
- routing through the shared `po/notification` service and live session entries.
6
+ This package supplies the native push sender and `/notify` command. Hosts own routing through
7
+ the shared `po/notification` service and live session entries.
8
8
 
9
9
  ## What it does
10
10
 
@@ -50,17 +50,16 @@ page receives live notification entries for every attached session, not only the
50
50
  is requested only from an explicit settings action.
51
51
 
52
52
  Browser Web Push is not supported. Closed-app delivery uses the paired native iOS or Android app,
53
- with explicit notification permission and native push enrollment. The server subscribes once to live
54
- hub events across all sessions, even with no client sockets connected. It pushes notification entries
55
- marked `attention: true`, and derives "Input needed" (`Po needs your input`) and "Run finished"
56
- (`Po finished`) pushes from live hub events. Other notification entries stay in-app.
57
- without adding transcript entries. It never reads history
58
- for push, and has no durable outbox or replay. Enrollment is persisted on the trusted device record;
53
+ with explicit notification permission and native push enrollment. The server subscribes to live
54
+ hub events across all sessions, even with no client sockets connected. It pushes entries marked
55
+ `attention: true`, and derives "Input needed" (`Po needs your input`) and "Run finished"
56
+ (`Po finished`) notices without adding transcript entries. Other entries stay in-app. Push does
57
+ not read history and has no durable outbox or replay. Enrollment is persisted on the trusted device record;
59
58
  revocation, token rotation and remote disable are rechecked before queued work is dispatched.
60
59
 
61
60
  ## Native push server credentials
62
61
 
63
- Add these four variables to the server user's `~/.zshrc` (use absolute paths):
62
+ Configure the needed provider credentials in the server's launch environment, using absolute paths:
64
63
 
65
64
  ```sh
66
65
  export PO_APNS_KEY_FILE="$HOME/.po-secrets/AuthKey.p8"
@@ -70,9 +69,8 @@ export PO_FCM_SERVICE_ACCOUNT_FILE="$HOME/.po-secrets/firebase-service-account.j
70
69
  ```
71
70
 
72
71
  Restrict the directory to the server user (`chmod 700`) and credential files to owner read/write
73
- (`chmod 600`). Never commit, paste into logs, or distribute these files with the app. Start Po from a
74
- shell that inherited these variables. GUI or service launches may not read `~/.zshrc`; configure their
75
- launch environment explicitly. Restart the server after changing credentials or variables: files and
72
+ (`chmod 600`). Never commit, paste into logs, or distribute these files with the app. The server must inherit these variables. GUI or service launches may not read shell configuration;
73
+ configure their launch environment explicitly. Restart the server after changing credentials or variables: files and
76
74
  key material are validated once at startup. Missing or invalid credentials disable only that provider,
77
75
  with a redacted diagnostic. No provider credentials are read from a session's environment.
78
76
 
@@ -105,13 +103,10 @@ Delivery is bounded, best effort, and timeout-limited, not guaranteed. FCM uses
105
103
  expiration 0, so providers are asked not to retain notifications for offline delivery. This is an
106
104
  offline-retention ceiling, not a guarantee that every background or terminated app receives a notice.
107
105
  Excess pending work is dropped. Invalid endpoints are conditionally cleared without deleting a rotated
108
- token. Physical-device verification remains blocked until signed Apple/Firebase builds, credentials,
109
- and paired devices are available; source tests do not establish real-device delivery.
106
+ token. Verify delivery on signed Apple/Firebase builds with configured credentials and paired devices;
107
+ source tests alone do not establish real-device delivery.
110
108
 
111
- Forgetting a paired host first requires successful remote device revocation. If the host is unreachable
112
- or revocation fails, Po keeps local keys so you can reconnect and retry. A confirmed revocation is
113
- checkpointed so interrupted local key deletion can finish after a restart. Revocation cannot recall
114
- notifications already submitted to Apple or Google.
109
+ Forgetting a paired host is local and works offline: the phone clears its keys and cached host data immediately. If remote revocation cannot finish, it retains only revoke-only metadata and retries later, not credentials for reconnecting. Revocation cannot recall notifications already submitted to Apple or Google.
115
110
 
116
111
  ## The shell title
117
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-notification",
3
- "version": "0.0.0-alpha.160",
3
+ "version": "0.0.0-alpha.161",
4
4
  "description": "Desktop notifications and an animated shell-tab title for Po sessions.",
5
5
  "keywords": [
6
6
  "ai",
@@ -60,13 +60,13 @@
60
60
  "access": "public"
61
61
  },
62
62
  "dependencies": {
63
- "@agimon-ai/po-autostop": "0.0.0-alpha.160",
64
- "@agimon-ai/po-core": "0.0.0-alpha.160",
63
+ "@agimon-ai/po-autostop": "0.0.0-alpha.161",
64
+ "@agimon-ai/po-core": "0.0.0-alpha.161",
65
65
  "@deepseek-ai/cordis": "4.0.5"
66
66
  },
67
67
  "devDependencies": {
68
- "@agimon-ai/po-build": "0.0.0-alpha.160",
69
- "@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.160",
68
+ "@agimon-ai/po-build": "0.0.0-alpha.161",
69
+ "@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.161",
70
70
  "@earendil-works/pi-coding-agent": "1.5.1",
71
71
  "@types/node": "26.6.5",
72
72
  "@vitest/coverage-v8": "5.0.4",