@notis_ai/cli 0.2.0-beta.160.1 → 0.2.0-beta.162.1
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/README.md +2 -0
- package/bin/check-runtime.js +15 -0
- package/bin/notis.js +2 -0
- package/dist/agent-hooks/notis-agent-hook.mjs +5216 -4880
- package/dist/base-skills/notis-cli/SKILL.md +0 -1
- package/package.json +6 -5
- package/src/command-specs/diagnostics.js +15 -2
- package/src/runtime/app-platform.js +7 -7
- package/src/runtime/oauth.js +2 -2
- package/template/.harness/index.html.tmpl +1 -1
- package/template/app/globals.css +28 -3
- package/template/app/layout.tsx +1 -1
- package/template/components/ui/button.tsx +1 -1
- package/template/components/ui/native-select.tsx +1 -1
- package/template/package-lock.json +1394 -1889
- package/template/package.json +14 -11
- package/template/packages/sdk/package.json +3 -3
- package/template/packages/sdk/src/styles.css +54 -20
- package/template/packages/sdk/src/tailwind.ts +11 -1
- package/template/packages/sdk/src/vite.ts +18 -3
- package/template/packages/sdk/tsconfig.json +1 -0
- package/template/postcss.config.mjs +1 -1
- package/template/tailwind.config.ts +1 -7
- package/template/tsconfig.json +1 -0
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ Agent-first Notis CLI for apps and generic tool execution.
|
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
|
+
Requires Node.js 22.12.0 or newer (Node 24 LTS recommended). Update Node.js before installing or running the CLI; the CLI never upgrades your host runtime.
|
|
8
|
+
|
|
7
9
|
Use the Notis CLI through NPX; do not rely on an installed `notis` command. Run `notis login` once to authorize a scoped, revocable OAuth credential in the browser — that is how the CLI signs in everywhere, including on a machine that also runs Notis Desktop.
|
|
8
10
|
|
|
9
11
|
After local login, the CLI idempotently adds static Notis guidance to detected Codex and Claude Code user instruction files without changing their hooks. Run `notis agents install` when you explicitly want memory hooks that load the user's profile at session start, recall only new relevant memories before prompts, and save completed turns as automatic cross-session context. Codex then asks you to review and trust those hooks once in `/hooks`.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Keep this dependency-free: npm engines are advisory unless engine-strict is set.
|
|
2
|
+
// Both installation and the public entry point check before loading dependencies.
|
|
3
|
+
import { readFileSync } from 'node:fs';
|
|
4
|
+
|
|
5
|
+
const { engines } = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
6
|
+
// This package declares one inclusive minimum, not a compound semver range.
|
|
7
|
+
const minimum = engines.node.match(/^>=(\d+)\.(\d+)\.(\d+)$/);
|
|
8
|
+
if (!minimum) throw new Error('CLI engines.node must declare one inclusive minimum version.');
|
|
9
|
+
const required = minimum.slice(1).map(Number);
|
|
10
|
+
const current = process.versions.node.split('.').map(Number);
|
|
11
|
+
const difference = current.map((part, index) => part - required[index]).find((part) => part !== 0);
|
|
12
|
+
if (difference < 0) {
|
|
13
|
+
process.stderr.write(`Notis CLI requires Node.js ${engines.node}; found ${process.versions.node}. Upgrade Node.js before running or installing the CLI.\n`);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
package/bin/notis.js
CHANGED