@raidiant/notifai 11.0.3 → 11.0.5

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 (55) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/cli-bin.js +26 -12
  3. package/dist/cli-bin.js.map +1 -1
  4. package/dist/commands-ask.js +1 -1
  5. package/dist/commands-ask.js.map +1 -1
  6. package/dist/commands-close.js +4 -2
  7. package/dist/commands-close.js.map +1 -1
  8. package/dist/commands-doctor.js +116 -14
  9. package/dist/commands-doctor.js.map +1 -1
  10. package/dist/commands-harness-context.d.ts +9 -29
  11. package/dist/commands-harness-context.js +12 -67
  12. package/dist/commands-harness-context.js.map +1 -1
  13. package/dist/commands-hook-shape.d.ts +3 -3
  14. package/dist/commands-hook-shape.js +6 -6
  15. package/dist/commands-hook-shape.js.map +1 -1
  16. package/dist/commands-init.d.ts +1 -1
  17. package/dist/commands-init.js +117 -49
  18. package/dist/commands-init.js.map +1 -1
  19. package/dist/commands-send-support.d.ts +1 -1
  20. package/dist/commands-send-support.js +3 -3
  21. package/dist/commands-send-support.js.map +1 -1
  22. package/dist/commands-send.js +2 -2
  23. package/dist/commands-send.js.map +1 -1
  24. package/dist/commands-setup-proof.d.ts +13 -0
  25. package/dist/commands-setup-proof.js +42 -9
  26. package/dist/commands-setup-proof.js.map +1 -1
  27. package/dist/commands-skill.d.ts +1 -0
  28. package/dist/commands-skill.js +6 -4
  29. package/dist/commands-skill.js.map +1 -1
  30. package/dist/commands-update.js +39 -3
  31. package/dist/commands-update.js.map +1 -1
  32. package/dist/hook-acknowledgements.js +10 -6
  33. package/dist/hook-acknowledgements.js.map +1 -1
  34. package/dist/install-hooks.d.ts +2 -0
  35. package/dist/install-hooks.js +1 -0
  36. package/dist/install-hooks.js.map +1 -1
  37. package/dist/logging.js +1 -1
  38. package/dist/logging.js.map +1 -1
  39. package/dist/native-skills.d.ts +1 -0
  40. package/dist/native-skills.js +1 -1
  41. package/dist/native-skills.js.map +1 -1
  42. package/dist/openclaw-plugin.d.ts +1 -1
  43. package/dist/openclaw-plugin.js +6 -7
  44. package/dist/openclaw-plugin.js.map +1 -1
  45. package/dist/opencode-plugin.js +8 -5
  46. package/dist/opencode-plugin.js.map +1 -1
  47. package/dist/readiness.d.ts +3 -4
  48. package/dist/readiness.js.map +1 -1
  49. package/dist/session-activation.d.ts +1 -1
  50. package/dist/session-activation.js +1 -1
  51. package/dist/session-activation.js.map +1 -1
  52. package/dist/skill-source/manifest.json +4 -4
  53. package/dist/skill-source/notifai/SKILL.md +4 -3
  54. package/dist/skill-source/notifai/references/harness-setup.md +14 -3
  55. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "package_version": "11.0.3",
3
+ "package_version": "11.0.5",
4
4
  "skill": "notifai",
5
- "digest": "sha256:380c49e6555eb44d06fdd92f3129050277ee21d04d2f9d42586fa2da906a4588",
5
+ "digest": "sha256:7ce9560daaf60cbe9d5186e4f46260e04acd13a7d1da3ddca3f5d0b8b031f567",
6
6
  "files": [
7
7
  {
8
8
  "path": "SKILL.md",
9
- "sha256": "8d9b88e8b8e33e3bf3ff41cee8f8409dbeae30a844077dfc720266e152ee5a38"
9
+ "sha256": "a24c8341c75d42b3f0ce45cefd42fcfe414ca79ace4aa9dc408aa7ad85434bd9"
10
10
  },
11
11
  {
12
12
  "path": "references/harness-setup.md",
13
- "sha256": "8b8f7feef8360caab00fe37dbf69e01aa1c39ce9ebaa434b9522b615d70c5fe5"
13
+ "sha256": "78f2c373ceb57e80f77851603cb5ea4f085e6cdceea20b8a82b4f7ccff61a6ed"
14
14
  }
15
15
  ]
16
16
  }
@@ -305,8 +305,9 @@ user to run a command you could have run yourself.
305
305
  do not ask again. Run the send. If setup is missing, run `notifai init --json`
306
306
  and retry the exact send. Projectless requests never enable a Project.
307
307
 
308
- Flagless `notifai init --json` asks nothing and reaches delivery
309
- proof. Two independent decisions remain: Question Routing — devices or
308
+ `notifai init --json` starts needed browser approval without a terminal prompt.
309
+ Keep it running while the User approves.
310
+ Two independent decisions remain: Question Routing — devices or
310
311
  terminal only — and the skill: this project or every project here.
311
312
  Lifecycle wiring has no scope: one install per harness for this machine;
312
313
  `notifai project enable` is the per-project switch. Never guess unattended:
@@ -328,7 +329,7 @@ its own exact-session admission check.
328
329
 
329
330
  Then gather the human-only steps its reported gap needs:
330
331
 
331
- - approving this machine in the browser (after **you** started `notifai login`)
332
+ - approving this machine in the browser opened by `notifai init`
332
333
  - installing the companion app, signing in, and allowing notifications
333
334
 
334
335
  Never emulate User-owned actions, claim to approve hooks yourself, or claim an
@@ -14,7 +14,9 @@ diagnosing, or recovering — not before.
14
14
 
15
15
  ## Signing this machine in
16
16
 
17
- Run `notifai login` yourself. It opens a browser page only the user can approve.
17
+ Run `notifai init --json` yourself. It starts machine approval when needed and
18
+ opens a browser page only the User can approve. Keep the command running while
19
+ they approve; its bounded progress is on stderr and final readiness is on stdout.
18
20
 
19
21
  In a headless or remote shell, `notifai login --no-open` prints the approval URL
20
22
  instead of trying to open a browser — hand the user that URL. `--name <name>`
@@ -29,8 +31,9 @@ either as broken.
29
31
 
30
32
  ## Install deliberately
31
33
 
32
- Flagless `notifai init --json` needs no answer and closes everything before
33
- this point. Hooks place files, so this is where a question belongs: ask whether
34
+ Flagless `notifai init --json` asks no terminal questions and advances the
35
+ required setup steps; its reported gap names any remaining User action. Hooks
36
+ place files, so this is where a question belongs: ask whether
34
37
  they want questions routed. There is no scope to ask about — Notifai installs
35
38
  one lifecycle mechanism per harness, for this machine, and whether it acts in a
36
39
  project is `notifai project enable`. Never tell the user to run setup commands
@@ -97,6 +100,11 @@ foreground owner. Keep it alive for the complete answer window and set
97
100
  request ID, inspect the original with `notifai replies <request_id> --json` and
98
101
  `notifai status <request_id> --json`, and never send a duplicate.
99
102
 
103
+ Conflicting inherited harness markers also require that foreground flow.
104
+ Historical hook timestamps cannot prove which nested Agent Session owns a
105
+ shell. Do not strip markers or borrow another Agent Session's identity to make
106
+ `ask` pass; basic sending remains available without guessed Source Context.
107
+
100
108
  ## Activation by harness
101
109
 
102
110
  - **Claude Code:** run the installer if needed, start one fresh Agent Session,
@@ -138,6 +146,9 @@ request ID, inspect the original with `notifai replies <request_id> --json` and
138
146
  lookup fails or returns unusable data it also fails safe as a non-sending
139
147
  worker; only a proven parent Agent Session receives owner context. Explicit textual
140
148
  delegation promotes that worker through the same skill-and-guidance rule.
149
+ Each model request receives current guidance when the Project is enabled,
150
+ including after compaction. Disabled Projects add no context; enabling one
151
+ takes effect on a subsequent request in the same Agent Session.
141
152
  OpenCode has no locally proven exactly-once continuation after `session.idle`,
142
153
  so `notifai ask` fails closed instead of accepting an answer into a void.
143
154
  Use a blocking `notifai send --reply` question when its answer must return to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raidiant/notifai",
3
- "version": "11.0.3",
3
+ "version": "11.0.5",
4
4
  "type": "module",
5
5
  "description": "Send native device notifications from agents and local programs",
6
6
  "bin": {
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "dependencies": {
14
14
  "@clack/prompts": "^1.7.0",
15
- "@raidiant/notifai-protocol": "6.1.3",
15
+ "@raidiant/notifai-protocol": "6.1.5",
16
16
  "commander": "^14.0.0",
17
17
  "picocolors": "^1.1.1",
18
18
  "smol-toml": "^1.4.0"