Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@aligntrue/plugin-contracts

Latest version: v0.9.4

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: gmays
1 Versions
136 Downloads

Scan summary

@aligntrue/plugin-contracts was last scanned on 29 Nov 2026 at version 0.9.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 29 Nov 2026.
  • Findings: No rules fired in version 0.9.4.
  • Downloads: 136 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.9.4 LATEST 29 Nov 2026 No rules fired

No rules fired in 0.9.4

Findings

Findings for v0.9.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.9.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@aligntrue/plugin-contracts

Plugin interface definitions for the AlignTrue ecosystem.

This package contains TypeScript interfaces and type definitions for all AlignTrue plugins. It contains no implementations—only contracts that plugins must implement.

Purpose

AlignTrue uses a plugin architecture to support multiple AI agents and development workflows. Plugin contracts define the interface between the core orchestration engine and plugin implementations.

By keeping contracts separate from implementations:

  • Clear boundaries: Plugins depend on contracts, not on each other
  • Scalability: New plugin types can be added without circular dependencies
  • Versioning: Contract changes are explicit and can be versioned independently
  • Testing: Mock implementations can implement contracts for testing

Architecture

@aligntrue/schema (data structures)
   ↓
@aligntrue/plugin-contracts (interfaces)  ← This package
   ↓
@aligntrue/core (orchestration) + Plugin implementations (exporters, etc.)

Plugin Types

Exporters (Core exporters)

Exporters convert AlignTrue IR (Intermediate Representation) to agent-specific formats.

Interface: ExporterPlugin

import type {
  ExporterPlugin,
  ScopedExportRequest,
  ExportOptions,
} from "@aligntrue/plugin-contracts";

export class MyExporter implements ExporterPlugin {
  name = "my-exporter";
  version = "1.0.0";

  async export(request: ScopedExportRequest, options: ExportOptions) {
    // Convert request.align.sections to agent format
    // Write to options.outputDir
    return {
      success: true,
      filesWritten: [".myagent/rules.txt"],
      contentHash: "sha256...",
      fidelityNotes: ["field X not supported"],
    };
  }
}

Key types:

  • ExporterPlugin - Main plugin interface
  • ScopedExportRequest - Rules + scope information
  • ExportOptions - Output directory and flags
  • ExportResult - Files written, hash, fidelity notes
  • ExporterManifest - Declarative manifest.json metadata
Supported Plugin Types
  • Exporters: Convert IR to agent-ready formats
  • MCP Servers: Model Context Protocol integrations
  • Scopes/overlays helpers: Shared contracts used by core/CLI

Usage

For Plugin Implementers
import type {
  ExporterPlugin,
  ScopedExportRequest,
  ExportOptions,
} from "@aligntrue/plugin-contracts";

export class MyExporter implements ExporterPlugin {
  // Implementation
}
For Core/Orchestration
import type { ExporterPlugin } from "@aligntrue/plugin-contracts";

function runExporter(plugin: ExporterPlugin, request: ScopedExportRequest) {
  return plugin.export(request, { outputDir: ".myagent" });
}

Scoped Exports

Exporters are called once per scope with pre-merged rules:

// Default scope
await exporter.export(
  {
    scope: { path: ".", normalizedPath: ".", isDefault: true },
    rules: [rule1, rule2],
    outputPath: ".cursor/rules/testing.mdc",
  },
  options,
);

// Named scope (monorepo)
await exporter.export(
  {
    scope: { path: "apps/web", normalizedPath: "apps/web", isDefault: false },
    rules: [rule3, rule4],
    outputPath: ".cursor/rules/apps-web/testing.mdc",
  },
  options,
);

Philosophy

Why separate contracts from implementations?

  1. Dependency Management: Prevents circular dependencies between core and plugins
  2. Semantic Clarity: Interfaces represent abstract contracts, not concrete behavior
  3. Versioning: Contract changes can be versioned independently from implementations
  4. Testing: Easy to create mocks and stubs for testing
  5. Scalability: New plugin types can be added without refactoring existing code

Why not put contracts in @aligntrue/schema?

Schema defines data structures (IR format, validation rules). Plugin contracts define behavioral interfaces. These are different concerns and should live in separate packages.

Why not put contracts in @aligntrue/core?

Core orchestrates plugins but shouldn't define their contracts. Plugins depend on contracts, not on the orchestration engine. This keeps the dependency graph clean:

Correct:   Plugin → Contracts
Incorrect: Plugin → Core (creates coupling)

API Reference

See TypeScript definitions in src/exporter.ts for detailed documentation.

Contributing

When adding new plugin types:

  1. Create a new file: src/<plugin-type>.ts
  2. Export types from src/index.ts
  3. Document usage in this README
  4. Update packages/core to use new contracts
  5. Create example implementation

License

MIT

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @aligntrue/plugin-contracts

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229