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>
91 lines
4.8 KiB
JSON
91 lines
4.8 KiB
JSON
{
|
|
"name": "@logicsrc/schemas",
|
|
"version": "0.1.0",
|
|
"description": "LogicSRC JSON schemas for tasks, agents, runs, events, plugins, the AgentAd ad standard, the OpenOntology knowledge contracts, and the OpenContext context plane.",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/profullstack/logicsrc.git",
|
|
"directory": "packages/schemas"
|
|
},
|
|
"homepage": "https://github.com/profullstack/logicsrc/tree/master/packages/schemas",
|
|
"keywords": [
|
|
"advertising",
|
|
"agentad",
|
|
"agents",
|
|
"cli",
|
|
"context",
|
|
"json-schema",
|
|
"knowledge-graph",
|
|
"logicsrc",
|
|
"ontology",
|
|
"opencontext",
|
|
"openontology",
|
|
"standards"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"exports": {
|
|
"./account-audit-event": "./schemas/logicsrc-account-audit-event.schema.json",
|
|
"./account-grant": "./schemas/logicsrc-account-grant.schema.json",
|
|
"./account-provider": "./schemas/logicsrc-account-provider.schema.json",
|
|
"./agent": "./schemas/logicsrc-agent.schema.json",
|
|
"./agentad-ad": "./schemas/agentad-ad.schema.json",
|
|
"./agentad-ad-request": "./schemas/agentad-ad-request.schema.json",
|
|
"./agentad-ad-response": "./schemas/agentad-ad-response.schema.json",
|
|
"./agentad-campaign": "./schemas/agentad-campaign.schema.json",
|
|
"./agentad-click": "./schemas/agentad-click.schema.json",
|
|
"./agentad-impression": "./schemas/agentad-impression.schema.json",
|
|
"./agentad-placement": "./schemas/agentad-placement.schema.json",
|
|
"./connected-account": "./schemas/logicsrc-connected-account.schema.json",
|
|
"./credential-audit-event": "./schemas/logicsrc-credential-audit-event.schema.json",
|
|
"./credential-provider": "./schemas/logicsrc-credential-provider.schema.json",
|
|
"./credential-sync-plan": "./schemas/logicsrc-credential-sync-plan.schema.json",
|
|
"./credential-sync-run": "./schemas/logicsrc-credential-sync-run.schema.json",
|
|
"./email-message": "./schemas/logicsrc-email-message.schema.json",
|
|
"./event": "./schemas/logicsrc-event.schema.json",
|
|
"./opencontext-audit-event": "./schemas/logicsrc-opencontext-audit-event.schema.json",
|
|
"./opencontext-bundle": "./schemas/logicsrc-opencontext-bundle.schema.json",
|
|
"./opencontext-conformance": "./fixtures/opencontext/conformance.json",
|
|
"./opencontext-decision": "./schemas/logicsrc-opencontext-decision.schema.json",
|
|
"./opencontext-diagnostic": "./schemas/logicsrc-opencontext-diagnostic.schema.json",
|
|
"./opencontext-manifest": "./schemas/logicsrc-opencontext-manifest.schema.json",
|
|
"./opencontext-object": "./schemas/logicsrc-opencontext-object.schema.json",
|
|
"./opencontext-provenance": "./schemas/logicsrc-opencontext-provenance.schema.json",
|
|
"./opencontext-role": "./schemas/logicsrc-opencontext-role.schema.json",
|
|
"./openontology-action": "./schemas/logicsrc-openontology-action.schema.json",
|
|
"./openontology-approval": "./schemas/logicsrc-openontology-approval.schema.json",
|
|
"./openontology-changeset": "./schemas/logicsrc-openontology-changeset.schema.json",
|
|
"./openontology-claim": "./schemas/logicsrc-openontology-claim.schema.json",
|
|
"./openontology-conformance": "./fixtures/openontology/conformance.json",
|
|
"./openontology-constraint": "./schemas/logicsrc-openontology-constraint.schema.json",
|
|
"./openontology-entity": "./schemas/logicsrc-openontology-entity.schema.json",
|
|
"./openontology-entity-type": "./schemas/logicsrc-openontology-entity-type.schema.json",
|
|
"./openontology-event": "./schemas/logicsrc-openontology-event.schema.json",
|
|
"./openontology-evidence": "./schemas/logicsrc-openontology-evidence.schema.json",
|
|
"./openontology-manifest": "./schemas/logicsrc-openontology-manifest.schema.json",
|
|
"./openontology-namespace": "./schemas/logicsrc-openontology-namespace.schema.json",
|
|
"./openontology-package": "./schemas/logicsrc-openontology-package.schema.json",
|
|
"./openontology-property": "./schemas/logicsrc-openontology-property.schema.json",
|
|
"./openontology-query": "./schemas/logicsrc-openontology-query.schema.json",
|
|
"./openontology-relationship-type": "./schemas/logicsrc-openontology-relationship-type.schema.json",
|
|
"./openontology-review": "./schemas/logicsrc-openontology-review.schema.json",
|
|
"./openontology-source": "./schemas/logicsrc-openontology-source.schema.json",
|
|
"./openprd-prd": "./schemas/openprd-prd.schema.json",
|
|
"./plugin": "./schemas/logicsrc-plugin.schema.json",
|
|
"./pull-request": "./schemas/logicsrc-pull-request.schema.json",
|
|
"./repo": "./schemas/logicsrc-repo.schema.json",
|
|
"./run": "./schemas/logicsrc-run.schema.json",
|
|
"./social-post": "./schemas/logicsrc-social-post.schema.json",
|
|
"./task": "./schemas/logicsrc-task.schema.json"
|
|
},
|
|
"files": [
|
|
"schemas",
|
|
"fixtures"
|
|
],
|
|
"scripts": {
|
|
"build": "node -e \"console.log('schemas: no build step')\""
|
|
}
|
|
}
|