@noir-ai/cli 1.0.0-beta.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/LICENSE +21 -0
- package/README.md +51 -0
- package/dist/bin.d.ts +14 -0
- package/dist/bin.js +1445 -0
- package/dist/bin.js.map +1 -0
- package/dist/chunk-UXT7YWQY.js +530 -0
- package/dist/chunk-UXT7YWQY.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/output-De3lKbZq.d.ts +38 -0
- package/dist/sync-7YLRJYMR.js +20 -0
- package/dist/sync-7YLRJYMR.js.map +1 -0
- package/package.json +69 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 agaaaptr
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# @noir-ai/cli
|
|
2
|
+
|
|
3
|
+
> The `noir` command-line entry point to the [Noir](../../README.md) AI toolkit — the discipline, context, and memory layer for any agentic CLI.
|
|
4
|
+
|
|
5
|
+
Noir wires three capabilities every long-running agent loses without help:
|
|
6
|
+
|
|
7
|
+
1. **Spec-driven workflow** — an escapable, observable lifecycle (idea → spec → plan → implement → verify → document) where every gate decision is recorded.
|
|
8
|
+
2. **Native working-context** — hybrid retrieval (BM25 + vector kNN + Reciprocal Rank Fusion) so the host queries small ranked snippets instead of re-reading whole files.
|
|
9
|
+
3. **Cross-session memory** — typed, searchable, governable long-term memory; save an insight in one session and recall it in another.
|
|
10
|
+
|
|
11
|
+
**Noir is an orchestration layer, NOT an LLM runtime** — it contains no agent loop and no `tools`/`stream` generation surface. The optional model layer is single-shot, provider-explicit, and degrades to pure orchestration when no key is set.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install -g @noir-ai/cli
|
|
17
|
+
# or use it on the fly:
|
|
18
|
+
npx @noir-ai/cli init
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Requires Node ≥ 20.
|
|
22
|
+
|
|
23
|
+
## Quick start
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# 1. Initialize a project (from the project you want Noir to manage)
|
|
27
|
+
cd /path/to/your/project
|
|
28
|
+
noir init # scaffolds .noir/ + emits 31 builtin skills + host wiring
|
|
29
|
+
|
|
30
|
+
# 2. Open the project in Claude Code (the v1 host) → it auto-spawns the Noir MCP server.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
`noir init` creates `.noir/` (project id, `config.yml`, `NOIR.md`, the SQLite store), root `.mcp.json`, a managed `CLAUDE.md` `@import` block, and the **31 native `noir-*` skills** in `.claude/skills/`. There is no plugin and no marketplace — `noir init` / `noir sync` overwrite the `noir-*` namespace idempotently.
|
|
34
|
+
|
|
35
|
+
## Commands
|
|
36
|
+
|
|
37
|
+
`noir` (home menu / `status --json`), `status [--json]`, `init`, `sync`, `mcp serve [--stdio]`, `daemon {start|stop|status|restart}`, `context {search|index|status}`, `memory {recall|save|sessions|forget|consolidate}`, `skills {list|sync}`, `task {new|status|advance|next}`, `doctor`.
|
|
38
|
+
|
|
39
|
+
Global flags: `--json`, `--no-input`, `--quiet`, `--verbose`, `--cwd`. Data → stdout, diagnostics → stderr. Exit codes: `0` ok · `1` error · `2` usage · `3` not-found · `4` daemon-down · `5` cancelled.
|
|
40
|
+
|
|
41
|
+
## The toolkit
|
|
42
|
+
|
|
43
|
+
This package is the CLI shell. Noir is a pnpm monorepo of 10 `@noir-ai/*` packages: `core`, `store`, `workflow`, `skills`, `daemon`, `adapters`, `cli`, `context`, `model`, `memory`.
|
|
44
|
+
|
|
45
|
+
- **Full toolkit overview:** [root README](../../README.md)
|
|
46
|
+
- **Getting-started walkthrough:** [docs/getting-started.md](../../docs/getting-started.md)
|
|
47
|
+
- **Command reference + config schema:** [docs/usage.md](../../docs/usage.md)
|
|
48
|
+
- **Roadmap & status:** [docs/roadmap.md](../../docs/roadmap.md)
|
|
49
|
+
- **Releasing (npm token + provenance):** [docs/releasing.md](../../docs/releasing.md)
|
|
50
|
+
|
|
51
|
+
MIT © agaaaptr
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
export { E as EXIT, N as NoirCliError, f as fail, i as inferExitCode } from './output-De3lKbZq.js';
|
|
3
|
+
|
|
4
|
+
declare function createProgram(): Command;
|
|
5
|
+
/** Singleton program used by the bin entry (`run`) and re-exported for convenience. */
|
|
6
|
+
declare const program: Command;
|
|
7
|
+
/**
|
|
8
|
+
* Parse `argv` (user-form: NO node/script prefix) on the singleton program and
|
|
9
|
+
* return the resulting exit code. Sets `process.exitCode` for the real bin;
|
|
10
|
+
* tests can either call this or drive `createProgram().parseAsync` directly.
|
|
11
|
+
*/
|
|
12
|
+
declare function run(argv?: readonly string[]): Promise<number>;
|
|
13
|
+
|
|
14
|
+
export { createProgram, program, run };
|