@raidiant/notifai 0.5.0 → 1.0.0
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 +165 -0
- package/README.md +11 -4
- package/dist/claude-wake.d.ts +101 -0
- package/dist/claude-wake.js +397 -0
- package/dist/claude-wake.js.map +1 -0
- package/dist/codex-wake.d.ts +84 -0
- package/dist/codex-wake.js +238 -0
- package/dist/codex-wake.js.map +1 -0
- package/dist/commands.d.ts +31 -11
- package/dist/commands.js +679 -232
- package/dist/commands.js.map +1 -1
- package/dist/config-schema.d.ts +3 -3
- package/dist/config-schema.js +11 -49
- package/dist/config-schema.js.map +1 -1
- package/dist/config.d.ts +23 -45
- package/dist/config.js +61 -39
- package/dist/config.js.map +1 -1
- package/dist/harnesses.d.ts +4 -13
- package/dist/harnesses.js +12 -17
- package/dist/harnesses.js.map +1 -1
- package/dist/hook-adapter.d.ts +10 -1
- package/dist/hook-adapter.js +79 -10
- package/dist/hook-adapter.js.map +1 -1
- package/dist/hooks.d.ts +119 -65
- package/dist/hooks.js +330 -285
- package/dist/hooks.js.map +1 -1
- package/dist/install-hooks.d.ts +76 -24
- package/dist/install-hooks.js +301 -125
- package/dist/install-hooks.js.map +1 -1
- package/dist/interactive.d.ts +32 -1
- package/dist/interactive.js +165 -51
- package/dist/interactive.js.map +1 -1
- package/dist/main.js +14 -21
- package/dist/main.js.map +1 -1
- package/dist/native-skills.d.ts +1 -1
- package/dist/native-skills.js +23 -58
- package/dist/native-skills.js.map +1 -1
- package/dist/pack-feedback-slice.d.ts +35 -0
- package/dist/pack-feedback-slice.js +126 -0
- package/dist/pack-feedback-slice.js.map +1 -0
- package/dist/readiness.d.ts +20 -0
- package/dist/readiness.js +24 -0
- package/dist/readiness.js.map +1 -1
- package/dist/release.d.ts +31 -0
- package/dist/release.js +52 -0
- package/dist/release.js.map +1 -0
- package/dist/ui/theme.d.ts +1 -1
- package/package.json +11 -10
- package/src/commands.test.ts +386 -36
- package/src/commands.ts +473 -182
- package/src/config-schema.ts +2 -17
- package/src/config.test.ts +29 -4
- package/src/config.ts +67 -11
- package/src/harnesses.ts +7 -0
- package/src/hook-adapter.test.ts +43 -1
- package/src/hook-adapter.ts +83 -11
- package/src/hooks.test.ts +4 -5
- package/src/install-hooks.test.ts +154 -2
- package/src/install-hooks.ts +231 -44
- package/src/interactive.test.ts +338 -0
- package/src/interactive.ts +221 -49
- package/src/main.ts +14 -20
- package/src/native-skills.test.ts +75 -0
- package/src/native-skills.ts +31 -75
- package/src/pack-feedback-slice.test.ts +212 -0
- package/src/pack-feedback-slice.ts +187 -0
- package/src/readiness.test.ts +25 -0
- package/src/readiness.ts +38 -0
- package/src/release.ts +51 -0
- package/src/skill.test.ts +43 -0
- package/src/ui/config-view.test.ts +5 -4
- package/dist/idle.d.ts +0 -16
- package/dist/idle.js +0 -44
- package/dist/idle.js.map +0 -1
package/dist/release.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
/**
|
|
5
|
+
* What this build is, according to the manifest npm actually shipped.
|
|
6
|
+
*
|
|
7
|
+
* Read from disk rather than compiled in, because a constant baked into
|
|
8
|
+
* `dist/` is only ever as fresh as the last build. A stale `dist/` sitting
|
|
9
|
+
* next to a newer `package.json` is a real failure mode — it produces a CLI
|
|
10
|
+
* that reports the new version perfectly while running the old code — and the
|
|
11
|
+
* only defence that survives it is refusing to carry a second copy of the
|
|
12
|
+
* number at all.
|
|
13
|
+
*
|
|
14
|
+
* The manifest sits one level above both `src/` and `dist/`, so a single
|
|
15
|
+
* relative path resolves in a source checkout and in a published install.
|
|
16
|
+
*
|
|
17
|
+
* Returns null rather than guessing: a build that cannot establish its own
|
|
18
|
+
* identity has to say so, so callers can degrade honestly instead of
|
|
19
|
+
* asserting something they do not know.
|
|
20
|
+
*/
|
|
21
|
+
export function packageVersion() {
|
|
22
|
+
try {
|
|
23
|
+
const manifest = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', 'package.json');
|
|
24
|
+
const parsed = JSON.parse(readFileSync(manifest, 'utf8'));
|
|
25
|
+
if (typeof parsed === 'object' && parsed !== null) {
|
|
26
|
+
const { version } = parsed;
|
|
27
|
+
if (typeof version === 'string' && version.length > 0)
|
|
28
|
+
return version;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
// Fall through: an unreadable manifest must not stop the CLI running.
|
|
33
|
+
}
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Where `npx skills add` fetches the agent skill from, as printed to users.
|
|
38
|
+
*
|
|
39
|
+
* Always an immutable tag naming this exact build. The skill and the CLI ship
|
|
40
|
+
* from one repository at one version, and the skill describes how to drive the
|
|
41
|
+
* CLI — so a moving ref would hand someone guidance for a tool they do not
|
|
42
|
+
* have. Deriving it from the version is what keeps the two from disagreeing;
|
|
43
|
+
* it used to be maintained by hand in three places, and the copies drifted.
|
|
44
|
+
*
|
|
45
|
+
* In the skills CLI grammar `owner/repo#ref` selects a Git ref, while
|
|
46
|
+
* `owner/repo@name` selects a skill — so the `#` here is load-bearing.
|
|
47
|
+
*/
|
|
48
|
+
export function skillsSource() {
|
|
49
|
+
const version = packageVersion();
|
|
50
|
+
return version === null ? null : `Raidiant-io/notifai#v${version}`;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=release.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.js","sourceRoot":"","sources":["../src/release.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,cAAc;IAC5B,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,CAAA;QAC9F,MAAM,MAAM,GAAY,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAA;QAClE,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YAClD,MAAM,EAAE,OAAO,EAAE,GAAG,MAA+B,CAAA;YACnD,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC;gBAAE,OAAO,OAAO,CAAA;QACvE,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,sEAAsE;IACxE,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,OAAO,GAAG,cAAc,EAAE,CAAA;IAChC,OAAO,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,wBAAwB,OAAO,EAAE,CAAA;AACpE,CAAC"}
|
package/dist/ui/theme.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export declare const glyph: {
|
|
|
55
55
|
readonly warn: "!" | "▲";
|
|
56
56
|
readonly bad: "✕" | "x";
|
|
57
57
|
readonly pending: "○" | "o";
|
|
58
|
-
readonly bullet: "
|
|
58
|
+
readonly bullet: "-" | "•";
|
|
59
59
|
readonly arrow: "→" | "->";
|
|
60
60
|
readonly chevron: "›" | ">";
|
|
61
61
|
readonly bar: "│" | "|";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raidiant/notifai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Send native phone notifications from agents and local programs",
|
|
6
6
|
"bin": {
|
|
@@ -9,14 +9,9 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"src",
|
|
12
|
-
"tsconfig.json"
|
|
12
|
+
"tsconfig.json",
|
|
13
|
+
"CHANGELOG.md"
|
|
13
14
|
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "tsc -p tsconfig.json",
|
|
16
|
-
"pretest": "pnpm run build",
|
|
17
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
18
|
-
"test": "vitest run"
|
|
19
|
-
},
|
|
20
15
|
"dependencies": {
|
|
21
16
|
"@clack/prompts": "^1.7.0",
|
|
22
17
|
"@raidiant/notifai-protocol": "0.3.0",
|
|
@@ -54,5 +49,11 @@
|
|
|
54
49
|
"ai",
|
|
55
50
|
"claude",
|
|
56
51
|
"codex"
|
|
57
|
-
]
|
|
58
|
-
|
|
52
|
+
],
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "node ../../scripts/clean-dist.mjs && tsc -p tsconfig.json",
|
|
55
|
+
"pretest": "pnpm run build",
|
|
56
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
57
|
+
"test": "vitest run"
|
|
58
|
+
}
|
|
59
|
+
}
|