docs: add pkg descriptions/keywords/engines, fix core README
Fixes #70, #71, #72, #73
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>;
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user