Scan your whole stack
Are you using @farmslot/protocol?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.92.4
@farmslot/protocol was last scanned on 29 Nov 2026 at version 0.92.4. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.92.4 LATEST | 29 Nov 2026 | No rules fired |
| 0.92.2 | 27 Nov 2026 | No rules fired |
| 0.92.1 | 25 Nov 2026 | No rules fired |
| 0.92.0 | 21 Nov 2026 | Not shown |
| 0.91.0 | 19 Nov 2026 | Not shown |
Findings for v0.92.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.92.4; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Shared TypeScript contract for Farmslot gateway, nodes, recipes, runners, and artifact packages.
This package is intentionally small at runtime: it exports protocol constants, TypeScript types, and validation helpers. It does not execute recipes, talk to browsers/devices, or contain project-specific actions.
The experimental @farmslot/protocol/client-cache is the portable ADR-071 client
controller shared by Command Center and Companion. It owns query identities,
freshness and the ResourceStore seam; socket and storage adapters remain with
their platform owners. It requires gateway builds advertising
capabilities.resourceChanges.version: 1. Older published gateway builds are
reported as unsupported, without panel polling. Protocol, gateway and client
builds containing this unreleased contract must be released together.
The npm package is a consumable API surface. The source-of-truth architecture is published on the Farmslot docs site:
If this README conflicts with the public Recipe Protocol v1 reference, the protocol reference wins.
yarn add @farmslot/protocol
# or
npm install @farmslot/protocol
import {
OFFICIAL_RECIPE_ACTIONS,
RECIPE_PROTOCOL_SCHEMA_VERSION,
getRecipeActionManifestActionNames,
getRecipeWorkflowActions,
validateArtifactManifestDocument,
validateRecipeActionManifestDocument,
validateRecipeArtifactPackage,
validateRecipeDocument,
validateRecipeSuitePackage,
validateRecipeWithManifest,
type OfficialActionName,
type RecipeActionManifestDocument,
} from '@farmslot/protocol';
| Import path | Use for |
|---|---|
@farmslot/protocol |
Root import for common recipe validators, constants, shared contracts, RPC names, and transport helpers. |
@farmslot/protocol/contracts |
Shared domain data contracts. |
@farmslot/protocol/client-cache |
Experimental shared resource cache, memory store and portable store conformance contract. |
@farmslot/protocol/contracts/runs |
Run, run-family, evidence, and publication contracts. |
@farmslot/protocol/contracts/slots |
Slot and slot-adjacent contracts. |
@farmslot/protocol/rpc |
Gateway RPC method registry and typed method maps. |
@farmslot/protocol/rpc/run |
Run RPC params/results and run method names. |
@farmslot/protocol/recipe |
Recipe Protocol v1 validation, action vocabulary, schema URL mapping, and manifest helpers. |
@farmslot/protocol/schemas/recipe-v1.schema.json |
Published JSON Schema for Recipe Protocol v1. |
@farmslot/protocol/schemas/action-manifest-v1.schema.json |
Published JSON Schema for Action Manifest v1. |
@farmslot/protocol/schemas/recipe-suite-scope-v1.schema.json |
Published JSON Schema for immutable recipe-suite case scope. |
@farmslot/protocol/schemas/recipe-suite-result-v1.schema.json |
Published JSON Schema for reconciled recipe-suite results. |
@farmslot/protocol/recipes/step-io |
Runner recipe artifact reference contracts. |
@farmslot/protocol/surfaces/command-center |
Command Center client surface registry used to build safe chat context. |
@farmslot/protocol/transport/events |
Gateway event contracts. |
Public subpaths are explicit and extensionless. There are no types, methods,
or recipe-compat package aliases.
Key responsibilities:
https://farmslot.io/schemas/recipe-v1.schema.json and @farmslot/protocol/schemas/recipe-v1.schema.json;recipe.json, summary.json, trace.json, artifact-manifest.json);The protocol package is organized by contract ownership:
| Path | Owns |
|---|---|
src/index.ts |
Package root export surface. Keep it stable and intentional. |
src/version.ts |
Node↔Gateway protocol version. |
src/agents/*.ts |
Agent role labels/window/ranking helpers shared by Gateway and clients. |
src/contracts/*.ts |
Domain data contracts for runs, slots, recipes, reviews, resources, backlog, chat, evals, etc. |
src/rpc/*.ts |
Gateway RPC params/results and typed method-name maps. |
src/recipe/*.ts |
Recipe Protocol v1 validation context, recipe graph validation, action manifests, and artifact packages. |
src/recipes/*.ts |
Worker/runner recipe IO and artifact reference contracts. |
src/surfaces/*.ts |
Client surface registries used to derive safe chat/tool context. |
src/integrations/*.ts |
External-system reference helpers such as canonical GitHub PR ref parsing/formatting. |
src/transport/*.ts |
Gateway events, WebSocket frame shapes, binary relay markers, and worker signal contracts. |
src/runs/*.ts |
Run-family analytics, readiness projection helpers, and run-specific behavior not owned by raw data contracts. |
src/workers/*.ts |
Shared worker-control predicates such as tmux worker watchlist helpers. |
Tests live under test/, mirroring the source ownership directories. Source files
should not contain colocated package tests.
package.json#exports; do not add glob exports..js package subpath aliases. Source-relative imports still use .js as required by NodeNext.@farmslot/protocol/types, @farmslot/protocol/methods, or @farmslot/protocol/recipe-compat.PROTOCOL_VERSION in src/version.ts when node↔gateway methods, events, binary frames, or required payload fields change.package.json exports aligned with any new public owner directory.import { validateRecipeDocument } from '@farmslot/protocol';
const result = validateRecipeDocument(recipeJson);
if (result.status === 'invalid') {
throw new Error(result.findings.map((finding) => finding.message).join('\n'));
}
validateRecipeDocument checks protocol-level structure. It does not prove that
a project runner can execute every action. Use validateRecipeWithManifest for
that.
Every runner publishes a manifest describing what it can actually execute.
Official actions come from OFFICIAL_RECIPE_ACTIONS; project actions must be
namespaced, for example example.trade.place_order or checkout.ensure_cart.
import {
RECIPE_ACTION_MANIFEST_SCHEMA_URL,
validateRecipeActionManifestDocument,
validateRecipeWithManifest,
type RecipeActionManifestDocument,
} from '@farmslot/protocol';
const manifest: RecipeActionManifestDocument = {
$schema: RECIPE_ACTION_MANIFEST_SCHEMA_URL,
actions: {
end: {
description: 'Finish recipe execution.',
examples: [{ action: 'end', status: 'pass' }],
},
'example.echo': {
description: 'Echoes a message for adapter smoke tests.',
schema: {
type: 'object',
properties: { message: { type: 'string' } },
required: ['message'],
additionalProperties: false,
},
examples: [
{
action: 'example.echo',
intent: 'Echo the test message.',
message: 'hello',
next: 'done',
},
],
execution_capabilities: [],
},
},
};
const manifestResult = validateRecipeActionManifestDocument(manifest);
const recipeResult = validateRecipeWithManifest(recipeJson, manifest);
A valid manifest must stay honest: declare only actions the runner implements, and keep custom actions durable enough to reuse across tasks.
Recipe runs should emit a portable evidence package. Use protocol validation before a gateway or reviewer trusts the result.
import { validateRecipeArtifactPackage } from '@farmslot/protocol';
const result = validateRecipeArtifactPackage({
manifest: artifactManifestJson,
artifactPaths: [
'recipe.json',
'recipe-resolution.json',
'summary.json',
'trace.json',
'artifact-manifest.json',
],
recipe: recipeJson,
trace: traceJson,
summary: summaryJson,
recipeResolution: recipeResolutionJson,
resolvedRecipes: resolvedRecipeDocumentsByDigest,
});
Failed trace entries require cause_class (subject, harness, environment,
or unknown); successful entries omit it. summary.json carries matching
cause_counts, and package validation reconciles both documents.
Suite scope and result documents cover multiple completed recipe runs without changing Recipe v1 or scheduling cases:
import { digestRecipeSuiteScope, validateRecipeSuitePackage } from '@farmslot/protocol';
const scopeDigest = digestRecipeSuiteScope(scopeJson);
const validation = validateRecipeSuitePackage({
scope: scopeJson,
result: { ...resultJson, scope_digest: scopeDigest },
summaries: {
'summaries/0001.json': retainedSummaryJson,
},
});
The validator requires exactly one resolution per frozen case. Non-execution is
always explicit; oversight remains representable but makes the suite invalid.
These rules keep the public contract small and stable:
test/**/*.ts set.src/contracts/*, src/rpc/*, src/recipe/*, or focused helper owners, never to package-root exports.Before merging protocol changes:
src/contracts/*, src/rpc/*, src/recipe/*, or focused helper).test/ coverage.From the Farmslot repository root:
yarn workspace @farmslot/protocol quality
# or, for protocol tests through Command Center wiring:
yarn test:protocol
Do not publish a protocol version unless these pass and the canonical docs match the exported API.
MIT. See LICENSE.
Run ticket helpers runLinkedTicketRefs, runLinkedTicketsView and
normalizeRunLinkedTicketRefs serve Command Center and Companion list/detail/search.
runElapsedTimeView supplies total/current-step elapsed labels and whether each list clock should tick.
runLinkedTicketsView.references supplies their source-first inline list without repeating the source ticket or PR.
parseRunLinkedTicketRefs validates their additional-ticket editor text.
Run.linkedTicketRefs stores operator additions; frozen ticket data stays intact.
RunMethods.setLinkedTickets names the supported metadata RPC. See the
task directory contract.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.