@raidiant/notifai 11.0.2 → 11.0.4
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/CHANGELOG.md +31 -0
- package/README.md +5 -1
- package/dist/cli-bin.js +26 -12
- package/dist/cli-bin.js.map +1 -1
- package/dist/commands-ask.js +1 -1
- package/dist/commands-ask.js.map +1 -1
- package/dist/commands-close.js +4 -2
- package/dist/commands-close.js.map +1 -1
- package/dist/commands-doctor.js +116 -14
- package/dist/commands-doctor.js.map +1 -1
- package/dist/commands-harness-context.d.ts +9 -29
- package/dist/commands-harness-context.js +12 -67
- package/dist/commands-harness-context.js.map +1 -1
- package/dist/commands-hook-shape.d.ts +3 -3
- package/dist/commands-hook-shape.js +6 -6
- package/dist/commands-hook-shape.js.map +1 -1
- package/dist/commands-init.d.ts +1 -1
- package/dist/commands-init.js +117 -49
- package/dist/commands-init.js.map +1 -1
- package/dist/commands-send-support.d.ts +1 -1
- package/dist/commands-send-support.js +3 -3
- package/dist/commands-send-support.js.map +1 -1
- package/dist/commands-send.js +2 -2
- package/dist/commands-send.js.map +1 -1
- package/dist/commands-setup-proof.d.ts +13 -0
- package/dist/commands-setup-proof.js +42 -9
- package/dist/commands-setup-proof.js.map +1 -1
- package/dist/commands-skill.d.ts +1 -0
- package/dist/commands-skill.js +6 -4
- package/dist/commands-skill.js.map +1 -1
- package/dist/commands-update.js +39 -3
- package/dist/commands-update.js.map +1 -1
- package/dist/guidance-render.d.ts +7 -2
- package/dist/guidance-render.js +7 -2
- package/dist/guidance-render.js.map +1 -1
- package/dist/hook-acknowledgements.js +10 -6
- package/dist/hook-acknowledgements.js.map +1 -1
- package/dist/install-hooks.d.ts +2 -0
- package/dist/install-hooks.js +1 -4
- package/dist/install-hooks.js.map +1 -1
- package/dist/logging.js +1 -1
- package/dist/logging.js.map +1 -1
- package/dist/native-skills.d.ts +1 -0
- package/dist/native-skills.js +1 -1
- package/dist/native-skills.js.map +1 -1
- package/dist/openclaw-plugin.d.ts +1 -1
- package/dist/openclaw-plugin.js +6 -7
- package/dist/openclaw-plugin.js.map +1 -1
- package/dist/opencode-plugin.js +8 -5
- package/dist/opencode-plugin.js.map +1 -1
- package/dist/readiness.d.ts +3 -4
- package/dist/readiness.js.map +1 -1
- package/dist/session-activation.d.ts +1 -1
- package/dist/session-activation.js +1 -1
- package/dist/session-activation.js.map +1 -1
- package/dist/skill-source/manifest.json +4 -4
- package/dist/skill-source/notifai/SKILL.md +4 -3
- package/dist/skill-source/notifai/references/harness-setup.md +20 -5
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opencode-plugin.js","sourceRoot":"","sources":["../src/opencode-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EAAE,gBAAgB,EAAyB,MAAM,mBAAmB,CAAA;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EACL,kCAAkC,EAClC,yBAAyB,GAC1B,MAAM,yBAAyB,CAAA;AAEhC;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,4EAA4E;AAC5E,MAAM,CAAC,MAAM,sBAAsB,GAAG,oCAAoC,CAAA;AAE1E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAA;AAEpD,oFAAoF;AACpF,MAAM,wBAAwB,GAAG,EAAE,CAAA;AAEnC,MAAM,UAAU,iBAAiB,CAC/B,MAAyB,OAAO,CAAC,GAAG,EACpC,WAA+C,OAAO,CAAC,QAAQ;IAE/D,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAA;AACnG,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,MAAyB,OAAO,CAAC,GAAG,EACpC,WAA+C,OAAO,CAAC,QAAQ;IAE/D,O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CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAA;IACzF,IAAI,OAAO,KAAK,SAAS,IAAI,YAAY,KAAK,SAAS;QAAE,OAAO,IAAI,CAAA;IACpE,IAAI,CAAC;QACH,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,YAAa,CAAW;YACvD,OAAO,EAAE,OAAO,KAAK,wBAAwB;YAC7C,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,SAAS,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC3E,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAW,EAAE,CAAC;SACxE,CAAA;IACH,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC"}
|
package/dist/readiness.d.ts
CHANGED
|
@@ -32,10 +32,9 @@ export type Remedy =
|
|
|
32
32
|
command?: string;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* treat it as out of reach.
|
|
35
|
+
* An action the User completes. `interactive` marks a flow the CLI can
|
|
36
|
+
* start for them: init starts machine approval for either caller, while the
|
|
37
|
+
* User still signs in and approves in their browser.
|
|
39
38
|
*/
|
|
40
39
|
| {
|
|
41
40
|
by: 'user-here';
|
package/dist/readiness.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readiness.js","sourceRoot":"","sources":["../src/readiness.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;
|
|
1
|
+
{"version":3,"file":"readiness.js","sourceRoot":"","sources":["../src/readiness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@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HookHarness } from './hook-types.js';
|
|
2
2
|
export declare const WORKER_ACTIVATION_CONTEXT = "Notifai worker context: an Agent Event is a meaningful occurrence in your work; a Notification Request is a deliberate User-visible message about one. Report Agent Events to the parent and do not send Notification Requests unless the parent explicitly delegated that ownership. If delegated, load the Notifai skill and run `notifai guidance` before composing one.";
|
|
3
|
-
export declare const MISSING_LIFECYCLE_GUIDANCE_CONTEXT = "Notifai
|
|
3
|
+
export declare const MISSING_LIFECYCLE_GUIDANCE_CONTEXT = "Notifai lifecycle guidance could not be loaded, so Project Enablement is unverified. Run `notifai init --json` to check setup, then `notifai guidance` before deciding whether or how to send a Notification Request.";
|
|
4
4
|
/** One lifecycle meaning, encoded for each harness output contract. */
|
|
5
5
|
export declare function sessionActivationOutput(harness: HookHarness | undefined, hookEventName: 'SessionStart' | 'SubagentStart', cwd?: string, env?: NodeJS.ProcessEnv): string | undefined;
|
|
6
6
|
/** Inject a journaled device answer into the User's new turn. */
|
|
@@ -3,7 +3,7 @@ import { GUIDANCE_CONTEXT_MAX_BYTES, boundedEffectiveGuidance } from './guidance
|
|
|
3
3
|
const ROOT_OWNERSHIP = 'Notifai is enabled for this Project. The effective, provenance-marked guidance below governs Notification Requests. ' +
|
|
4
4
|
'Missing CLI readiness is handled through `notifai init --json`.';
|
|
5
5
|
export const WORKER_ACTIVATION_CONTEXT = 'Notifai worker context: an Agent Event is a meaningful occurrence in your work; a Notification Request is a deliberate User-visible message about one. Report Agent Events to the parent and do not send Notification Requests unless the parent explicitly delegated that ownership. If delegated, load the Notifai skill and run `notifai guidance` before composing one.';
|
|
6
|
-
export const MISSING_LIFECYCLE_GUIDANCE_CONTEXT = 'Notifai
|
|
6
|
+
export const MISSING_LIFECYCLE_GUIDANCE_CONTEXT = 'Notifai lifecycle guidance could not be loaded, so Project Enablement is unverified. Run `notifai init --json` to check setup, then `notifai guidance` before deciding whether or how to send a Notification Request.';
|
|
7
7
|
function rootActivationContext(cwd, env) {
|
|
8
8
|
const guidance = boundedEffectiveGuidance({
|
|
9
9
|
cwd,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-activation.js","sourceRoot":"","sources":["../src/session-activation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAE3F,MAAM,cAAc,GAClB,sHAAsH;IACtH,iEAAiE,CAAA;AAEnE,MAAM,CAAC,MAAM,yBAAyB,GACpC,6WAA6W,CAAA;AAE/W,MAAM,CAAC,MAAM,kCAAkC,GAC7C,
|
|
1
|
+
{"version":3,"file":"session-activation.js","sourceRoot":"","sources":["../src/session-activation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAE3F,MAAM,cAAc,GAClB,sHAAsH;IACtH,iEAAiE,CAAA;AAEnE,MAAM,CAAC,MAAM,yBAAyB,GACpC,6WAA6W,CAAA;AAE/W,MAAM,CAAC,MAAM,kCAAkC,GAC7C,uNAAuN,CAAA;AAEzN,SAAS,qBAAqB,CAAC,GAAW,EAAE,GAAsB;IAChE,MAAM,QAAQ,GAAG,wBAAwB,CAAC;QACxC,GAAG;QACH,GAAG;QACH,QAAQ,EAAE,0BAA0B,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,cAAc,MAAM,EAAE,MAAM,CAAC;KAC1F,CAAC,CAAA;IACF,OAAO,GAAG,cAAc,OAAO,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAA;AACrF,CAAC;AAED,uEAAuE;AACvE,MAAM,UAAU,uBAAuB,CACrC,OAAgC,EAChC,aAA+C,EAC/C,MAAc,OA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AO,CAAC,GAAG;IAEpC,OAAO,IAAI,CAAC,SAAS,CAAC;QACpB,gBAAgB,EAAE,qBAAqB,CAAC,GAAG,EAAE,GAAG,CAAC;KAClD,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"package_version": "11.0.
|
|
3
|
+
"package_version": "11.0.4",
|
|
4
4
|
"skill": "notifai",
|
|
5
|
-
"digest": "sha256:
|
|
5
|
+
"digest": "sha256:7ce9560daaf60cbe9d5186e4f46260e04acd13a7d1da3ddca3f5d0b8b031f567",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": "SKILL.md",
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "a24c8341c75d42b3f0ce45cefd42fcfe414ca79ace4aa9dc408aa7ad85434bd9"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"path": "references/harness-setup.md",
|
|
13
|
-
"sha256": "
|
|
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
|
-
|
|
309
|
-
|
|
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
|
|
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
|
|
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`
|
|
33
|
-
|
|
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
|
|
@@ -58,6 +61,9 @@ changes. Stop definitions differ by harness: Claude Code's runs asynchronously
|
|
|
58
61
|
with an explicit timeout above the longest answer window (POSIX hosts only — on
|
|
59
62
|
Windows it blocks like the others), and Codex declares the same full-window
|
|
60
63
|
timeout; prompt-submit and session-end retain fixed short limits on both.
|
|
64
|
+
Codex SessionStart stays within the harness's built-in inline-context budget;
|
|
65
|
+
Notifai does not add an output-limit override that would create a second trust
|
|
66
|
+
identity. Upgrades preserve both the source file and the approved definition.
|
|
61
67
|
Migrating an older Codex definition requires one unavoidable `/hooks` approval;
|
|
62
68
|
later upgrades must not require another.
|
|
63
69
|
|
|
@@ -94,6 +100,11 @@ foreground owner. Keep it alive for the complete answer window and set
|
|
|
94
100
|
request ID, inspect the original with `notifai replies <request_id> --json` and
|
|
95
101
|
`notifai status <request_id> --json`, and never send a duplicate.
|
|
96
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
|
+
|
|
97
108
|
## Activation by harness
|
|
98
109
|
|
|
99
110
|
- **Claude Code:** run the installer if needed, start one fresh Agent Session,
|
|
@@ -112,8 +123,9 @@ request ID, inspect the original with `notifai replies <request_id> --json` and
|
|
|
112
123
|
reporting-only worker contract and explicit textual delegation rule as
|
|
113
124
|
Claude. A fresh install writes the Machine layer's `~/.codex/hooks.json`, or
|
|
114
125
|
joins inline `[hooks]` when that is the layer's existing representation.
|
|
115
|
-
Upgrades preserve whichever source already owns Notifai's approved handlers
|
|
116
|
-
|
|
126
|
+
Upgrades preserve whichever source already owns Notifai's approved handlers
|
|
127
|
+
and keep the default SessionStart output-limit identity, because moving the
|
|
128
|
+
definition or adding identity-bearing fields creates a new Codex trust
|
|
117
129
|
identity. One install covers every project and every worktree, so there is
|
|
118
130
|
nothing to repeat in a new checkout; a Project-scoped `.codex` hook file from
|
|
119
131
|
an older Notifai is removed once the Machine copy is proven current.
|
|
@@ -134,6 +146,9 @@ request ID, inspect the original with `notifai replies <request_id> --json` and
|
|
|
134
146
|
lookup fails or returns unusable data it also fails safe as a non-sending
|
|
135
147
|
worker; only a proven parent Agent Session receives owner context. Explicit textual
|
|
136
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.
|
|
137
152
|
OpenCode has no locally proven exactly-once continuation after `session.idle`,
|
|
138
153
|
so `notifai ask` fails closed instead of accepting an answer into a void.
|
|
139
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
|
+
"version": "11.0.4",
|
|
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.
|
|
15
|
+
"@raidiant/notifai-protocol": "6.1.4",
|
|
16
16
|
"commander": "^14.0.0",
|
|
17
17
|
"picocolors": "^1.1.1",
|
|
18
18
|
"smol-toml": "^1.4.0"
|