docs: add pkg descriptions/keywords/engines, fix core README

Fixes #70, #71, #72, #73
This commit is contained in:
2026-06-03 23:23:48 +00:00
parent c4d9205eb2
commit 5e9b266ebd
4 changed files with 31 additions and 7 deletions
+9
View File
@@ -1,6 +1,15 @@
{
"name": "@ocas/cli",
"version": "0.3.0",
"description": "CLI for OCAS content-addressed store",
"keywords": [
"cas",
"cli",
"content-addressing"
],
"engines": {
"node": ">=22.5.0"
},
"type": "module",
"bin": {
"ocas": "dist/index.js"
+2 -7
View File
@@ -8,7 +8,7 @@ Core CAS engine — hashing, schema, store, verify, bootstrap.
Other packages build on this layer: `@ocas/fs` provides persistence, and `@ocas/cli` exposes store operations on the command line.
**Dependencies:** `ajv`, `cborg`, `xxhash-wasm`
**Dependencies:** `ajv`, `cborg`, `liquidjs`, `xxhash-wasm`
## Installation
@@ -32,12 +32,7 @@ type CasNode<T = unknown> = {
timestamp: number; // Unix epoch ms
};
type Store = {
put(typeHash: Hash, payload: unknown): Promise<Hash>;
get(hash: Hash): CasNode | null;
has(hash: Hash): boolean;
listByType(typeHash: Hash): Hash[];
};
type Store = { cas: CasStore; var: VarStore; tag: TagStore; };
type JSONSchema = Record<string, unknown>;
+10
View File
@@ -1,6 +1,16 @@
{
"name": "@ocas/core",
"version": "0.3.0",
"description": "Core CAS engine — hashing, schema, store, verify, bootstrap",
"keywords": [
"cas",
"content-addressing",
"json-schema",
"typescript"
],
"engines": {
"node": ">=22.5.0"
},
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
+10
View File
@@ -1,6 +1,16 @@
{
"name": "@ocas/fs",
"version": "0.3.0",
"description": "Filesystem-backed CAS store with SQLite",
"keywords": [
"cas",
"filesystem",
"sqlite",
"storage"
],
"engines": {
"node": ">=22.5.0"
},
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",