
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
@isl-lang/cli-ux
Advanced tools
CLI UX components for ISL verification output - pretty rendering and JSON mode
CLI UX components for ISL verification output - pretty rendering and JSON mode.
pnpm add @isl-lang/cli-ux
import { render, print } from '@isl-lang/cli-ux';
// Render to string
const output = render(verificationResult, {
colors: true,
maxFailures: 5,
showFixes: true,
showRepro: true,
showBreakdown: true,
});
console.log(output);
// Or print directly
print(verificationResult);
import { formatJson, parseJson, validateJsonOutput } from '@isl-lang/cli-ux';
// Format as JSON
const result = formatJson(verificationResult, {
pretty: true,
validate: true,
});
if (result.valid) {
console.log(result.output);
} else {
console.error('Validation errors:', result.errors);
}
// Parse JSON input
const parsed = parseJson(jsonString);
if (parsed.success) {
console.log('Decision:', parsed.data.decision);
}
import { validateVerificationResult, JsonOutputSchema } from '@isl-lang/cli-ux';
// Validate verification result
const validation = validateVerificationResult(data);
if (!validation.success) {
console.error('Invalid result:', validation.errors);
}
// Use Zod schema directly
const result = JsonOutputSchema.safeParse(data);
╭──────────────────────────────────────────────────────────╮
│ ISL Verification Result │
├──────────────────────────────────────────────────────────┤
│ Score: 100/100 SHIP │
│ Confidence: 95% │
│ Recommendation: Production Ready │
╰──────────────────────────────────────────────────────────╯
📊 Category Breakdown
────────────────────────────────────
Postconditions ████████████████████ 100% 2/2
Invariants ████████████████████ 100% 1/1
Scenarios ████████████████████ 100% 1/1
Temporal ████████████████████ 100% 1/1
{
"schemaVersion": "1.0",
"decision": "SHIP",
"result": {
"success": true,
"score": 100,
"confidence": 95,
"recommendation": "production_ready",
"specFile": "specs/payment.isl",
"implFile": "src/payment.ts",
"clauses": [...],
"breakdown": {...},
"duration": 93,
"timestamp": "2026-02-01T12:00:00.000Z"
},
"meta": {
"cliVersion": "0.1.0",
"nodeVersion": "v20.0.0",
"platform": "linux",
"timestamp": "2026-02-01T12:00:00.000Z"
}
}
| Function | Description |
|---|---|
render(result, options?) | Render complete verification output |
print(result, options?) | Print to stdout |
renderBanner(result, options?) | Render summary banner |
renderFailures(result, options?) | Render failure details |
renderHowToFix(result, options?) | Render fix suggestions |
renderReproCommands(result, options?) | Render repro commands |
renderBreakdown(result, options?) | Render category breakdown |
| Function | Description |
|---|---|
formatJson(result, options?) | Format result as JSON string |
printJson(result, options?) | Print JSON to stdout |
parseJson(input) | Parse JSON string |
createJsonOutput(result, options?) | Create JSON output object |
getDecision(result) | Get SHIP/NO_SHIP decision |
getKeyMetrics(result) | Extract key metrics |
| Function | Description |
|---|---|
validateJsonOutput(data) | Validate JSON output structure |
validateVerificationResult(data) | Validate verification result |
formatValidationErrors(errors) | Format Zod errors as strings |
VerificationResult - Full verification resultClauseResult - Individual clause/test resultCategoryScore - Category score breakdownJsonOutput - Complete JSON output structureRenderOptions - Pretty renderer optionsJsonOutputOptions - JSON formatter optionsinterface RenderOptions {
colors?: boolean; // Enable/disable colors (default: true)
maxFailures?: number; // Max failures to show (default: 5)
showFixes?: boolean; // Show fix suggestions (default: true)
showRepro?: boolean; // Show repro commands (default: true)
showBreakdown?: boolean; // Show category breakdown (default: true)
terminalWidth?: number; // Terminal width (default: 80)
}
The JSON output follows a stable schema (version 1.0):
schemaVersion: Always "1.0"decision: "SHIP" or "NO_SHIP"result: Full verification resultmeta: Runtime metadata (CLI version, Node version, platform, timestamp)success must be truescore must be >= 95impact: 'critical' and status: 'failed'# Install dependencies
pnpm install
# Run tests
pnpm test
# Run tests with watch
pnpm test:watch
# Update snapshots
pnpm test:update
# Build
pnpm build
# Type check
pnpm typecheck
MIT
FAQs
CLI UX components for ISL verification output - pretty rendering and JSON mode
We found that @isl-lang/cli-ux 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.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.