@karmaniverous/jeeves-meta 0.3.3 → 0.4.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 +44 -33
- package/dist/cli/jeeves-meta/index.js +3995 -0
- package/dist/index.d.ts +592 -116
- package/dist/index.js +2427 -529
- package/package.json +20 -25
- package/dist/cli.js +0 -2186
package/README.md
CHANGED
|
@@ -1,62 +1,73 @@
|
|
|
1
1
|
# @karmaniverous/jeeves-meta
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
HTTP service for the Jeeves knowledge synthesis engine. Provides a Fastify API, built-in croner-based scheduler, single-threaded synthesis queue, and a Commander CLI.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- **
|
|
8
|
-
- **
|
|
9
|
-
- **
|
|
7
|
+
- **Fastify HTTP API** — `/status`, `/metas`, `/preview`, `/synthesize`, `/seed`, `/unlock`, `/config/validate`
|
|
8
|
+
- **Built-in scheduler** — croner-based cron with adaptive backoff
|
|
9
|
+
- **Synthesis queue** — single-threaded, priority-aware, deduplicated
|
|
10
10
|
- **Three-step orchestration** — architect, builder, critic with conditional re-architecture
|
|
11
|
+
- **Discovery via watcher** — scan-based meta discovery with configurable domain tags
|
|
12
|
+
- **Ownership tree** — hierarchical scoping with child meta rollup
|
|
11
13
|
- **Archive management** — timestamped snapshots with configurable pruning
|
|
12
|
-
- **
|
|
13
|
-
- **
|
|
14
|
-
- **
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
18
|
-
- **
|
|
14
|
+
- **Lock staging** — write to `.lock` → copy to `meta.json` → archive (crash-safe)
|
|
15
|
+
- **Virtual rule registration** — registers 3 watcher inference rules at startup with retry
|
|
16
|
+
- **Progress reporting** — real-time synthesis events via gateway channel messages
|
|
17
|
+
- **Graceful shutdown** — stop scheduler, release locks, close server
|
|
18
|
+
- **Config hot-reload** — schedule, reportChannel, log level reload without restart
|
|
19
|
+
- **Token tracking** — per-step counts with exponential moving averages
|
|
20
|
+
- **CLI** — `status`, `list`, `detail`, `preview`, `synthesize`, `seed`, `unlock`, `validate`, `service` commands
|
|
21
|
+
- **Zod schemas** — validated meta.json and config with open schema support
|
|
19
22
|
|
|
20
23
|
## Install
|
|
21
24
|
|
|
22
25
|
```bash
|
|
23
|
-
npm install @karmaniverous/jeeves-meta
|
|
26
|
+
npm install -g @karmaniverous/jeeves-meta
|
|
24
27
|
```
|
|
25
28
|
|
|
26
29
|
## Quick Start
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
```bash
|
|
32
|
+
# Start the service
|
|
33
|
+
jeeves-meta start --config /path/to/jeeves-meta.config.json
|
|
34
|
+
|
|
35
|
+
# Check status
|
|
36
|
+
jeeves-meta status
|
|
29
37
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
createSynthEngine,
|
|
33
|
-
HttpWatcherClient,
|
|
34
|
-
loadSynthConfig,
|
|
35
|
-
} from '@karmaniverous/jeeves-meta';
|
|
38
|
+
# List all metas
|
|
39
|
+
jeeves-meta list
|
|
36
40
|
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
# Run synthesis
|
|
42
|
+
jeeves-meta synthesize
|
|
39
43
|
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
# Install as a system service (prints OS-specific instructions)
|
|
45
|
+
jeeves-meta service install --config /path/to/jeeves-meta.config.json
|
|
42
46
|
```
|
|
43
47
|
|
|
44
|
-
|
|
48
|
+
## HTTP API
|
|
45
49
|
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
| Method | Path | Description |
|
|
51
|
+
|--------|------|-------------|
|
|
52
|
+
| GET | `/status` | Service health, queue state, dependency checks |
|
|
53
|
+
| GET | `/metas` | List metas with filtering and field projection |
|
|
54
|
+
| GET | `/metas/:path` | Single meta detail with optional archive |
|
|
55
|
+
| GET | `/preview` | Dry-run: preview inputs for next synthesis |
|
|
56
|
+
| POST | `/synthesize` | Enqueue synthesis (stalest or specific path) |
|
|
57
|
+
| POST | `/seed` | Create `.meta/` directory + meta.json |
|
|
58
|
+
| POST | `/unlock` | Remove `.lock` file from a meta entity |
|
|
59
|
+
| GET | `/config/validate` | Return sanitized active configuration |
|
|
48
60
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
npx @karmaniverous/jeeves-meta help # all commands
|
|
53
|
-
```
|
|
61
|
+
## Configuration
|
|
62
|
+
|
|
63
|
+
See the [Configuration Guide](guides/configuration.md) for all fields, defaults, and environment variable substitution.
|
|
54
64
|
|
|
55
65
|
## Documentation
|
|
56
66
|
|
|
57
|
-
- **[
|
|
58
|
-
- **[CLI Reference](guides/cli.md)** — all
|
|
67
|
+
- **[Guides](guides/index.md)** — concepts, configuration, orchestration, scheduling, architecture
|
|
68
|
+
- **[CLI Reference](guides/cli.md)** — all commands with usage
|
|
59
69
|
|
|
60
70
|
## License
|
|
61
71
|
|
|
62
72
|
BSD-3-Clause
|
|
73
|
+
|