logicsrc/packages/schemas/package.json
Anthony Ettinger 7650cfe604 OpenErrand reference runner: @logicsrc/openerrand and logicsrc errand
Ship the runner docs/openerrand.md promised. `logicsrc errand run <file>`
reads an OpenErrand 0.1 file, validates it with @logicsrc/validators, and
drives headless Chrome through it under the spec's thirteen rules;
`errand validate` shows what a file will ask of you and `errand status`
shows the last run of each errand, its card and any lockout.

The engine is generalised from cli-tools `ftb` (PR #125) with no dependency
on cli-tools: the CDP client and Chrome finder from wcag.ts, the page reader,
native-setter fill and forward-button picker from ftb-run.ts, and the rule
matcher, throttle and outcome logic from ftb.ts, all now driven by the file.

- Inputs: document (an extractor hook; the one shipped runs a local command
  that reads JSON requests and prints records), vault (teams or OpenCreds),
  prompt (no echo for secrets), generate, derive, candidate, literal.
  `--input name=value` wins. Shared-secret candidates are ranked as the spec
  says, one is submitted, and a rejection lists the others for --candidate.
- Rules: id before label, step rules first, choices before text, an id match
  final, an unmatched required field stops the run naming it.
- Gates: declare only with --declare after the values are shown; identity
  proofing never touched (URL only) and handed over or stopped on; code from
  the terminal or a code file, used once, a wrong code waits for the next;
  mail ends the run waiting with the card; captcha is the person's, and a
  CaptchaSolver interface is called only where the spec permits (no solver is
  bundled); wait steps are polled, never solved.
- Throttle: 2 runs per errand and account in 30 minutes, 4 a day, 2 minutes
  between runs on a site, lockouts from metadata.lockout or a default, held
  per site and account, never lifted by --force.
- Outputs: credentials written before success to a teams vault by pull,
  merge, push (metadata.vault or --vault), else a 0600 file said aloud;
  downloads type-checked and never overwritten with different bytes; cards
  only in the local run record.
- The user agent is Chrome's own with HeadlessChrome replaced, given at
  launch: a CDP override did not reach a navigation the page's own script
  started, which is exactly the proof-of-work interstitial case.

Tests: 85 in the package (rule engine, inputs, gates, throttle, outcomes,
captcha gating, vaults, outputs, commands) including an integration test
that runs the published FTB example unchanged in real headless Chrome
against a local HTTPS fake site (Chrome maps webapp.ftb.ca.gov to it and
every other host to NOTFOUND; all data fictional), and 2 in the CLI.

CLI 0.6.0 -> 0.7.0; @logicsrc/schemas and @logicsrc/validators 0.3.0 ->
0.4.0 (the OpenErrand schemas, and the vocabularies now exported for
runners); PRD 0009; the spec's Reference runner section and the landing
page say it ships.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 16:02:17 +00:00

111 lines
6.1 KiB
JSON

{
"name": "@logicsrc/schemas",
"version": "0.4.0",
"description": "LogicSRC JSON schemas for tasks, agents, runs, events, plugins, the AgentAd ad standard, the OpenOntology knowledge contracts, the OpenContext context plane, the OpenCreds credential vault, OpenRental membership and rental offers, and the OpenWall messaging proposal. Includes the OpenABTest draft experiment and event contracts.",
"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",
"opencreds",
"openrental",
"openerrand",
"browser-automation",
"openontology",
"password-manager",
"standards",
"vault",
"openabtest"
],
"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",
"./opencreds-audit-event": "./schemas/logicsrc-opencreds-audit-event.schema.json",
"./opencreds-database": "./schemas/logicsrc-opencreds-database.schema.json",
"./opencreds-envelope": "./schemas/logicsrc-opencreds-envelope.schema.json",
"./opencreds-item": "./schemas/logicsrc-opencreds-item.schema.json",
"./opencreds-manifest": "./schemas/logicsrc-opencreds-manifest.schema.json",
"./opencreds-vault-meta": "./schemas/logicsrc-opencreds-vault-meta.schema.json",
"./openrental": "./schemas/logicsrc-openrental.schema.json",
"./openerrand": "./schemas/logicsrc-openerrand.schema.json",
"./openerrand-index": "./schemas/logicsrc-openerrand-index.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",
"./openwall-message": "./schemas/logicsrc-openwall-message.schema.json",
"./openwall-receipt": "./schemas/logicsrc-openwall-receipt.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",
"./openabtest-manifest": "./schemas/logicsrc-openabtest-manifest.schema.json",
"./openabtest-event": "./schemas/logicsrc-openabtest-event.schema.json"
},
"files": [
"schemas",
"fixtures"
],
"scripts": {
"build": "node -e \"console.log('schemas: no build step')\""
}
}