logicsrc/packages/sdk
Anthony Ettinger 297c5df54a
chore(deps): upgrade all dependencies; next 16.4.3 (RCE GHSA-2464-fhr4-w9xw) (#257)
- next 16.3.8 -> 16.4.3 (GHSA-2464-fhr4-w9xw, GHSA-673q-mjm6-r5xr)
- every workspace dependency to latest; majors: express 5, @simplewebauthn 14,
  imapflow 2 (status() may return false), nodemailer 10, libsodium-wrappers 0.8,
  commander 15, vite 8, @vitejs/plugin-react 6, typescript 7 (base tsconfig
  lists types: ["node"]), @logicsrc/validators 0.6, openmcp 0.4, hqtui 0.11,
  stack 0.5, x402-gateway 0.13
- bun 1.4.4 (image + packageManager)
- bun audit: 3 critical / 34 high -> 0

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 07:06:46 -07:00
..
src OpenABTest 0.2-draft: goal conversions (#239) 2026-10-17 04:58:40 -07:00
package.json chore(deps): upgrade all dependencies; next 16.4.3 (RCE GHSA-2464-fhr4-w9xw) (#257) 2026-10-26 07:06:46 -07:00
README.md OpenABTest 0.2-draft: goal conversions (#239) 2026-10-17 04:58:40 -07:00
tsconfig.json Implement OpenSpec artifacts and SDK contracts 2026-06-06 16:44:58 +00:00

@logicsrc/sdk

LogicSRC contract types and constructors for tasks, AgentSwarm sessions and OpenRental descriptors. These helpers construct documents; they do not start agents, resolve remote identities or initiate payments.

npm install @logicsrc/sdk @logicsrc/validators
import { createOpenRental } from "@logicsrc/sdk";
import { validate } from "@logicsrc/validators";

const listing = createOpenRental({
  id: "https://example.com/listings/research",
  name: "Research",
  owner_did: "operator.coinpay",
  members: [{
    kind: "openagent",
    id: "analyst.coinpay",
    url: "https://example.com/agents/analyst.json"
  }]
});

const result = validate("openrental", listing);
if (!result.ok) throw new Error(JSON.stringify(result.errors));

Use @logicsrc/validators 0.2.0 or newer for OpenRental validation. See the OpenRental specification for member bindings, exact decimal rental rates and CoinPay settlement metadata.

MIT © Profullstack, Inc.

OpenABTest draft

Version 0.3.0 adds OpenABTestManifest, OpenABTestEvent, createOpenABTestManifest and createOpenABTestEvent. The constructors set openabtest: "0.1-draft", or "0.2-draft" when the document uses a goal conversion; validate their result with @logicsrc/validators using openabtest-manifest or openabtest-event before storing it. They do not assign participants, authenticate events or initiate payments. See the OpenABTest specification and its complete Chovy fixture for every referred purchase.