@bodhi-ventures/aiocs 0.1.2 → 0.2.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/README.md +44 -3
- package/dist/{chunk-CZ6C4YUX.js → chunk-M7YEYMJL.js} +940 -168
- package/dist/cli.js +14 -2
- package/dist/mcp-server.js +22 -4
- package/docs/README.md +1 -1
- package/docs/codex-integration.md +25 -18
- package/docs/json-contract.md +21 -3
- package/package.json +20 -20
- package/skills/aiocs/SKILL.md +23 -38
- package/skills/aiocs-curation/SKILL.md +110 -0
- package/sources/nktkas-hyperliquid.yaml +30 -0
- package/docs/2026-03-26-agent-json-and-daemon-design.md +0 -157
- package/docs/2026-03-28-hybrid-search-design.md +0 -423
- package/docs/superpowers/specs/2026-03-29-tag-driven-release-pipeline-design.md +0 -135
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@ Local-only documentation fetch, versioning, and search CLI for AI agents.
|
|
|
5
5
|
## What it does
|
|
6
6
|
|
|
7
7
|
- fetches docs from websites with Playwright
|
|
8
|
+
- snapshots curated external git repositories as shared local reference sources
|
|
8
9
|
- supports authenticated sources via environment-backed headers and cookies
|
|
9
10
|
- runs lightweight canaries to detect source drift before full refreshes
|
|
10
11
|
- normalizes them into Markdown
|
|
@@ -110,10 +111,21 @@ GitHub Actions publishes `@bodhi-ventures/aiocs` publicly to npm and creates the
|
|
|
110
111
|
|
|
111
112
|
For Codex-first setup, automatic-use guidance, MCP recommendations, and agent definitions, see [docs/codex-integration.md](./docs/codex-integration.md).
|
|
112
113
|
|
|
114
|
+
Canonical Codex setup:
|
|
115
|
+
|
|
116
|
+
- register `aiocs-mcp` in `~/.codex/config.toml`
|
|
117
|
+
- link `skills/aiocs` into `~/.codex/skills/aiocs`
|
|
118
|
+
- link `skills/aiocs-curation` into `~/.codex/skills/aiocs-curation`
|
|
119
|
+
- keep the optional specialist subagent linked only as a fallback for heavier docs workflows
|
|
120
|
+
|
|
113
121
|
## Managed sources
|
|
114
122
|
|
|
115
|
-
The open-source repo bundles
|
|
116
|
-
|
|
123
|
+
The open-source repo bundles both web and git sources in `sources/`:
|
|
124
|
+
|
|
125
|
+
- `hyperliquid` for the public docs site
|
|
126
|
+
- `nktkas-hyperliquid` for the `nktkas/hyperliquid` GitHub repository
|
|
127
|
+
|
|
128
|
+
Additional machine-local source specs belong in `~/.aiocs/sources`.
|
|
117
129
|
|
|
118
130
|
`docs init` bootstraps both managed locations, so source behavior is the same regardless of
|
|
119
131
|
whether a spec lives in the repo or in `~/.aiocs/sources`.
|
|
@@ -170,6 +182,7 @@ Search and inspect results:
|
|
|
170
182
|
|
|
171
183
|
```bash
|
|
172
184
|
docs search "maker flow" --source hyperliquid
|
|
185
|
+
docs search "WebSocketTransport" --source nktkas-hyperliquid --path "src/**" --language typescript
|
|
173
186
|
docs search "maker flow" --source hyperliquid --mode lexical
|
|
174
187
|
docs search "maker flow" --source hyperliquid --mode hybrid
|
|
175
188
|
docs search "maker flow" --source hyperliquid --mode semantic
|
|
@@ -194,6 +207,34 @@ For agents, the intended decision order is:
|
|
|
194
207
|
3. if the source is missing but worth reusing, add a spec under `~/.aiocs/sources`, then upsert and refresh only that source
|
|
195
208
|
4. avoid `fetch all` unless the user explicitly asks or the daemon is doing maintenance
|
|
196
209
|
|
|
210
|
+
### Git repo sources
|
|
211
|
+
|
|
212
|
+
`aiocs` supports first-class `kind: git` sources for curated external repositories that should be
|
|
213
|
+
reused across multiple local projects.
|
|
214
|
+
|
|
215
|
+
Example:
|
|
216
|
+
|
|
217
|
+
```yaml
|
|
218
|
+
kind: git
|
|
219
|
+
id: nktkas-hyperliquid
|
|
220
|
+
label: nktkas/hyperliquid Repo
|
|
221
|
+
repo:
|
|
222
|
+
url: https://github.com/nktkas/hyperliquid.git
|
|
223
|
+
ref: main
|
|
224
|
+
include:
|
|
225
|
+
- README.md
|
|
226
|
+
- docs/**
|
|
227
|
+
- src/**
|
|
228
|
+
exclude:
|
|
229
|
+
- .github/**
|
|
230
|
+
- dist/**
|
|
231
|
+
schedule:
|
|
232
|
+
everyHours: 24
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Git source snapshots are commit-based, stored under the shared local catalog, and searchable with
|
|
236
|
+
the same project linking, diffing, canary, and hybrid search flows as website docs.
|
|
237
|
+
|
|
197
238
|
### Hybrid search
|
|
198
239
|
|
|
199
240
|
`aiocs` keeps SQLite FTS5/BM25 as the canonical lexical index and adds an optional hybrid layer:
|
|
@@ -409,7 +450,7 @@ The repo ships two GitHub Actions workflows:
|
|
|
409
450
|
- [ci.yml](./.github/workflows/ci.yml): validation for lint, tests, build, pack, and Docker smoke coverage
|
|
410
451
|
- [release.yml](./.github/workflows/release.yml): tag-driven stable release flow that validates the tagged package state, publishes to npm, and creates a GitHub release
|
|
411
452
|
|
|
412
|
-
The release workflow is triggered only by pushed stable tags matching `vX.Y.Z` and expects
|
|
453
|
+
The release workflow is triggered only by pushed stable tags matching `vX.Y.Z` and expects an npm publish token in GitHub repository secrets. The release job is retryable: if `@bodhi-ventures/aiocs@X.Y.Z` already exists on npm or the GitHub release already exists for `vX.Y.Z`, the workflow skips the completed publication step and finishes the remaining one.
|
|
413
454
|
|
|
414
455
|
Successful MCP results use an envelope:
|
|
415
456
|
|