
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@promptc/ir
Advanced tools
@promptc/irThe typed prompt intermediate representation (IR) and core utilities for promptc — a deterministic, LM-free compiler for prompts.
This package defines the IR that the rest of the @promptc/* toolchain
operates on:
@promptc/parser produces a PromptIR from markdown / XML / plain input.@promptc/passes runs optimization passes against a PromptIR.@promptc/codegen emits a surface-format string from a PromptIR.@promptc/cli wires them together as the promptc command.If you want to write your own passes, custom parsers, or alternative codegen for the promptc pipeline, this is the package you import.
bun add @promptc/ir
# or
npm install @promptc/ir
import {
buildPromptIR,
addSection,
addInstruction,
validateIR,
serializeIR,
deserializeIR,
type PromptIR,
} from "@promptc/ir";
// Build an IR from scratch.
let ir = buildPromptIR({ sourceFormat: "markdown" });
ir = addSection(ir, { kind: "task", title: "Task" });
ir = addInstruction(ir, { sectionId: /* ... */, kind: "directive", text: "Summarize." });
// Validate it.
const outcome = validateIR(ir);
if (!outcome.valid) throw new Error(outcome.errors[0]?.message);
// Snapshot / restore.
const json = serializeIR(ir);
const round = deserializeIR(json);
PromptIR, Section, Instruction, Example, Slot,
OutputSchema, Pass, PassResult, etc. (canonical definitions for the
whole compiler).buildPromptIR,
addSection, addInstruction, ...) used by the parser and by tests.IRValidationError.validateIR(ir) runs invariant checks (no orphan nodes,
no duplicate ids, etc.).Every entry point is a pure function of its inputs — no I/O, no clock, no RNG. Same inputs in produces same outputs out, bit-for-bit. This is the foundation of the promptc compile-path determinism guarantee.
promptcDESIGN.mddocs/IR.mdApache-2.0. See LICENSE.
FAQs
Prompt IR types and utilities for promptc.
The npm package @promptc/ir receives a total of 24 weekly downloads. As such, @promptc/ir popularity was classified as not popular.
We found that @promptc/ir demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.