Skip to Content
@package-system

Manifest

The neuralis block in package.json: identity, runtime, trust, provided services, host targeting, data layout and distribution.

The neuralis key in package.json is the single source of truth for package metadata, and the only required file in a package. Tools, workflow templates, markdown contributions, commands, hooks and team members are auto-discovered from the directory contract, and file-based entries override anything declared inline. Routes (routes/*.ts) are discovered the same way and have no inline form at all.

Every declaration is validated before the package registers anything; one error rejects the whole package, never a partial load. For builtin-class packages the block is also the discovery signal: the host loads a dependency if and only if its package.json carries one. A reference-only package opts out with { "neuralis": { "referenceOnly": true } }.

This page covers the package's own fields; each contribution array has its own page — see the element table.

Minimal manifest

{
  "name": "my-package",
  "version": "0.1.0",
  "private": true,
  "neuralis": {
    "id": "my-package",
    "name": "My Package",
    "description": "Human-facing description",
    "descriptionForModel": "LLM-facing: describe USE CASES, not implementation."
  }
}

This is enough for a declarative-only package. Everything else is optional.

Identity fields

FieldTypeRequiredPurpose
idstringyesUnique identifier. Reserved ids that would shadow a host route are rejected: widgets, dock, install, query, command, commands, publish, rescan, runtime, stream, templates.
namestringyesHuman-readable display name.
versionstringnoSemver.
descriptionstringrecommendedShown in the admin panel.
descriptionForModelstringrecommendedWhat the model reads to decide when the package is relevant. Rendered into the always-on packages overview, truncated at 1,536 characters — a routing signal, not documentation.
authors, tags, license, icon, homepage, repository—noStandard metadata; icon is a Lucide icon name.

provides — host service contracts

Native packages may declare provides using the closed service vocabulary: runtime, session-ticket-verifier, agent-directory, channel-gateway, package-source-roots, mcp-server, and oauth-callback:<prefix>. Runtime and ticket verifier are required singletons; the others are optional singletons. OAuth prefixes are lowercase, end in _, have 3–32 characters and cannot overlap. Implementations are resolved by contract id from PackageRuntimeApi.services; lifecycle modules expose them on the state returned by init(ctx), runtime names the native runtimeProvider module, and mcp-server is reserved without an implementation slot. Declarations from other trust tiers are dropped. See Lifecycle.

runtime — how the package executes

"runtime": {
  "type": "wasm",
  "binding": "none",
  "permissions": { "fs": "data-only", "net": "none", "exec": false },
  "hosted": { "tools": "all" },
  "skillScripts": "none"
}
FieldValuesRules
typenode | wasm | mcpnode and mcp are native only — node runs in-process, mcp spawns a subprocess as the host user — so wasm is the only code runtime below that tier. A non-native manifest declaring either loads its declarative contributions, spawns nothing, and returns a clean runtime-unavailable error from every handler (partial, reason untrusted-node / untrusted-mcp). Omit for declarative-only packages.
bindingnone | embedded | subprocess | remoteembedded is native only; remote usually pairs with source.kind: "mcp-server".
entry{ module, command, args, url }WASM packages normally omit it (default dist/package.wasm). MCP packages declare entry.command (and optional args), used verbatim.
permissions.fsnone | data-only | mounts | fullfull is rejected for untrusted packages.
permissions.netnone | allowlist | fullfull is rejected for untrusted packages.
permissions.execbooleanRejected for untrusted packages.
hostedtools/prompts/resources: none | selected | all (+ selected lists)What the platform MCP server advertises to external clients. Omitted, a package with a tool, command or resource is hosted with every tool. "none" withholds a surface: the schema stays in catalogs, the call is refused with Tool not hosted for this agent: <name>. Only all three "none" drops the package from hosting; selected narrows to the listed ids.
skillScriptshost | wasm-only | noneDeclared posture for bundled scripts/*: an untrusted package may only declare none (or omit it). Beyond that it is advertisement — the shell URI-policy gate and the sandbox stop a script.

Tool names are global

A tool name is one key for the whole deployment, with no per-package prefix, and a collision (including with a platform tool) renames nothing. Each agent answers the name with one claimant by a fixed rule, not load order: the native claimant, else the lexically-smaller package id, and any package before an MCP server. A claimant the caller cannot use (off, out of scope, feature-gated) drops out first. Shipped and admin-added packages are both native, so between them the smaller id wins. A collision never stops the deployment: the boot log names owner and shadowed ids, and the tool catalog lists every contested name for the Tool Access panel. Name tools for their domain — acme_release_status, not status.

access.trust

TierWhoKey limits
untrustedProject packages (default)No permissions.exec, no net: "full", no fs: "full" (data-only, mounts and allowlist validate). skillScripts must be "none". 30 s tool timeout, 10 tool calls/min, rules downgraded to docs
trustedAdmin-promoted project packagesAny fs, net or exec value validates (the WASM host API still exposes no exec primitive), and skillScripts may be declared. 120 s tool timeout, 100 tool calls/min, rules downgraded to docs
nativeBuiltin-class onlyIn-process node, no dispatch limits

Self-declaring native does nothing: the host assigns trust by install slot. A package the host installs (as its dependency or from Admin → Packages) is stamped native with source.kind: "neuralis" whatever its manifest says, and only that pair runs code in the host process. A manifest declaring source.kind: "neuralis" itself is ignored (the validator warns).

requires — features, role grants, dependencies

requires declares packages (dependencies by id), providesFeatures, defaultRoleGrants and an optional whole-package accessFeature. Which tools, skills, routes and widgets a feature gates is never stored on the manifest; it is derived at boot. Full reference: Features.

meta.hosts — which hosts load the package

meta carries operational metadata: hosts, families, distribution and free-form extensions. meta.hosts targets the package at named hosts (neuralis-server, neuralis-workspace, …). Omitted or empty, the package reaches every host. A non-empty list without neuralis-workspace silently keeps the package's widgets, dock entries and cards out of the workspace — so a package with app surfaces that lists hosts includes it.

app — UI contributions

Every UI contribution lives under app.surfaces[] (kind: 'widget' | 'card' | 'dock'), and the renderer a surface may use depends on trust. Full reference: App surfaces.

A host-assigned native package may also declare ONE prebuilt browser module, app.module, that carries the React code of all its direct surfaces:

"app": {
  "module": {
    "entry": "dist/app/host.js",
    "provides": ["@acme/reports/app/charts"]
  }
}

entry (.js/.mjs) and optional css are package-relative paths under dist/; the host serves only dist/app/, exactly what neuralis-build ui emits (the build fails on a mismatch). Any other key, an absolute path, .. or a path outside dist/ is a validation error. The host derives the module URL and attaches it with no host rebuild; on any other trust the field is warned and dropped.

provides (optional, ≤ 16 unique ids) lists modules published to other native UI modules — subpaths of the package's own name, never a host-provided module — so their builds import them instead of bundling a copy. The build writes dist/app/shared-imports.json (host API version, React major, shared ids); the host refuses a module that mismatches it or exports no install<Name>HostComponents, showing the "cannot be rendered" placeholder with the reason. After a platform upgrade, rebuild with neuralis-build ui.

Contribution arrays

The arrays below each have their own page. Their headings stay here so existing links keep working.

events — what a person should hear about

Native packages declare the moments a person should be notified about; see Events.

connectors — sources and external services

New source kinds and MCP/OpenAPI/HTTP bindings; see Connectors.

sources — declared source instances

Concrete source instances seeded into projects or offered for add; see Sources.

credentials — declared credential ids

The secret ids a package needs, surfaced as catalog rows; declaring one grants nothing and stores nothing. See Credentials.

configSettings — declared platform config keys

The platform tunables a native package owns; see Config settings.

uriPolicies — path-protection baselines

Baselines for the package's own data://<self>/ and packages://<self>/ namespaces; a foreign-namespace pattern rejects the manifest at load. See URI policies.

dataLayout — where the package keeps its files

"dataLayout": {
  "directories": ["cache", "state"],
  "agentDirectories": ["memory"]
}

A package declares the first-level directory names it uses in its data:// zone: directories (data://<zone>/<name>/) and agentDirectories, keyed by agent id (data://<zone>/<agentId>/<name>/). It creates nothing on disk; it is what agents see — one data_areas row per visible package in the <runtime_stack> prompt block, so even a fresh delegate addresses the layout without guessing or listing.

The zone root is the platform's provisioning mapping, not the package id: data://<slug>/ for an @neuralis/<slug> package, data://runtime/_npm/<id>/ for another npm install, data://runtime/<scheme>/<path>/ for a project instance. Names only. Fail-closed: .., a separator, a placeholder such as <self>, a brace, a comma, whitespace, an unknown key or a duplicate rejects the whole manifest, since the value lands in every agent's cached prompt prefix. An empty declaration renders no row.

machineWritten — the files the package writes on its own

"dataLayout": {
  "machineWritten": [
    { "path": "*/usage/events.jsonl", "class": "metrics" },
    { "path": "audit/**", "class": "log" },
    { "path": "*/runs/**", "class": "runtime-text" }
  ]
}

Files a package writes on its own, each a glob relative to its zone (* one segment, ** any depth) with a class: metrics (numbers only — dashboards read it, search finds nothing), log, or runtime-text (searchable runtime state, such as a run's events). Never rendered into the prompt: a new project's data source leaves metrics files out of its index from the start, logs keep their default exclude, runtime text stays searchable. The seed is written once, when the data source is created (on a fresh install, at first start); an existing project's settings are never rewritten, and its owner can edit the list. Globs stay in your own zone — the validator refuses a leading /, an empty or .. segment and any character but letters, digits, ., _, -, *. Only trusted and native packages' declarations are used.

Distribution

A builtin-class package is a regular npm package under any scope (or none). The host image installs it as a real directory at node_modules/<id>/ (from a registry version, a tarball or a built directory), applying its files whitelist; the host resolves the root via require.resolve('<id>/package.json'), so the exports map (if any) must keep "./package.json" resolvable.

The npm files whitelist

package.json#files declares the runtime contract of the packed tarball. Every first-level directory that carries runtime content — dist, tools, workflows, skills, instructions, rules, agents, docs, commands, team, app — plus hooks.json must be listed, or packing silently drops it and the installed package loses those contributions. Workspace symlinks hide it: the package works in a checkout and breaks only from a tarball.

On this page