mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-13 14:37:26 +00:00
@logicsrc/opencontext could not be installed from npm. Three defects, each of
which alone breaks a published tarball:
1. opencontext depended on "@logicsrc/validators": "file:../validators". A
file: specifier is unresolvable for anyone installing from the registry, so
`npm install @logicsrc/opencontext` failed outright.
2. validators imported all 50 schemas by relative path across the repository
("../../schemas/schemas/*.json"). That resolves inside the monorepo and
escapes the package once published, so an installed validators could not
load a single schema. Now imported through @logicsrc/schemas package
exports, with a real dependency declared.
3. Three of those schemas — repo, pull-request, openprd-prd — had no entry in
the schemas exports map, so they were unreachable by package specifier.
Added; the map is now sorted so it stays readable as it grows.
validators also gained files/publishConfig/license so it publishes the same way
its siblings do.
Verified the way a stranger would: npm pack all three, install the tarballs
into a clean project outside the monorepo, and run the installed binary —
version, init, validate --strict (which exercises schema loading through the
package exports), and resolve --explain all succeed. Full workspace suite green.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
{
|
|
"name": "@logicsrc/opencontext",
|
|
"version": "0.1.0",
|
|
"description": "Reference implementation of the LogicSRC OpenContext standard: durable, portable, permissioned, provenance-aware context resolved into deterministic bundles for humans and AI agents.",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./adapters": "./dist/adapters/index.js",
|
|
"./commands": "./dist/commands.js"
|
|
},
|
|
"bin": {
|
|
"opencontext": "./dist/cli.js"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/profullstack/logicsrc.git",
|
|
"directory": "packages/opencontext"
|
|
},
|
|
"homepage": "https://logicsrc.com/opencontext",
|
|
"keywords": [
|
|
"logicsrc",
|
|
"opencontext",
|
|
"context",
|
|
"agents",
|
|
"provenance",
|
|
"permissions",
|
|
"json-schema",
|
|
"standards"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json",
|
|
"test": "vitest run src",
|
|
"bench": "node dist/bench.js"
|
|
},
|
|
"dependencies": {
|
|
"@libsql/client": "^0.17.4",
|
|
"@logicsrc/validators": "^0.1.0",
|
|
"commander": "^14.0.2",
|
|
"yaml": "^2.8.1"
|
|
},
|
|
"devDependencies": {
|
|
"vitest": "^4.0.8"
|
|
}
|
|
}
|