@agimon-ai/po-notification 0.0.0-alpha.109 → 0.0.0-alpha.110

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 +11 -6
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -13,12 +13,13 @@ routing through the shared `po/notification` service and live session entries.
13
13
  | Shell tab title | `π - <session or first prompt> - <repository>`, with a braille spinner while the agent works |
14
14
  | Notification API | caller-authored notices through the shared `po/notification` Cordis service |
15
15
  | Mid-run | server-derived native push for each dialog during a run, parent sessions only |
16
+ | Attention | native push for notices marked `attention: true` (a pending approval), every session including child sessions |
16
17
  | At rest | server-derived native push once a parent run has finished by po-autostop's test; requires host execution state, skipped for sandbox sessions |
17
18
 
18
19
  The package exports shell-title controllers and a system-notification helper (`cmux notify`, then
19
20
  `osascript` on macOS), but does not install a terminal router or shell-title lifecycle itself.
20
21
  The `/notify` command calls the active headless client's notification API, which appends a versioned
21
- `po-notification` session entry for live clients and the native push subscriber.
22
+ `po-notification` session entry for live clients. Only entries marked `attention: true` also reach native push.
22
23
 
23
24
  ## Service usage
24
25
 
@@ -36,9 +37,11 @@ ctx.inject([PO_NOTIFICATION_SERVICE], (notificationContext) => {
36
37
  });
37
38
  ```
38
39
 
39
- `body` is required. `title`, `subtitle`, and `level` are optional, and `level` accepts `info`,
40
+ `body` is required. `title`, `subtitle`, `level` and `attention` are optional, and `level` accepts `info`,
40
41
  `warning`, or `error`. Entry normalization defaults title and subtitle to empty strings and level to
41
- `info`. A host must provide the optional service. This package does not wrap Pi's `ui.notify` API.
42
+ `info`. Set `attention: true` only when the person must act (po-approval uses it for a new pending request):
43
+ that notice is also pushed to paired devices. A host must provide the optional service. This package does not
44
+ wrap Pi's `ui.notify` API.
42
45
 
43
46
  ## Browser delivery
44
47
 
@@ -48,8 +51,9 @@ is requested only from an explicit settings action.
48
51
 
49
52
  Browser Web Push is not supported. Closed-app delivery uses the paired native iOS or Android app,
50
53
  with explicit notification permission and native push enrollment. The server subscribes once to live
51
- notification entries across all sessions, even with no client sockets connected. It also derives
52
- "Input needed" (`Po needs your input`) and "Run finished" (`Po finished`) pushes from live hub events,
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.
53
57
  without adding transcript entries. It never reads history
54
58
  for push, and has no durable outbox or replay. Enrollment is persisted on the trusted device record;
55
59
  revocation, token rotation and remote disable are rechecked before queued work is dispatched.
@@ -120,7 +124,8 @@ escape sequences never end up in machine-read output.
120
124
 
121
125
  ## Quiet by design
122
126
 
123
- - Server-derived pushes are silent for child sessions.
127
+ - Server-derived pushes are silent for child sessions. Attention notices (pending approvals) push from every
128
+ session, because the work is blocked until the person answers.
124
129
  - Dialogs notify only during a run, once per dialog id. A new run resets deduplication.
125
130
  - A finished push waits for the same completion test po-autostop applies before closing a session:
126
131
  a 5 second cooldown after the run settles, then no holding background work (running commands,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-notification",
3
- "version": "0.0.0-alpha.109",
3
+ "version": "0.0.0-alpha.110",
4
4
  "description": "Desktop notifications and an animated shell-tab title for Po sessions.",
5
5
  "keywords": [
6
6
  "ai",
@@ -60,12 +60,12 @@
60
60
  "access": "public"
61
61
  },
62
62
  "dependencies": {
63
- "@agimon-ai/po-core": "0.0.0-alpha.109",
63
+ "@agimon-ai/po-core": "0.0.0-alpha.110",
64
64
  "@deepseek-ai/cordis": "4.0.5"
65
65
  },
66
66
  "devDependencies": {
67
- "@agimon-ai/po-build": "0.0.0-alpha.109",
68
- "@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.109",
67
+ "@agimon-ai/po-build": "0.0.0-alpha.110",
68
+ "@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.110",
69
69
  "@earendil-works/pi-coding-agent": "1.5.0",
70
70
  "@types/node": "26.6.5",
71
71
  "@vitest/coverage-v8": "5.0.4",