{"_id":"@arc-forge/prompt-compiler","name":"@arc-forge/prompt-compiler","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@arc-forge/prompt-compiler","version":"1.0.0","description":"FORGE Prompt Compiler (P01) â€” transform raw human intent into a structured, production-ready prompt. Deterministic, offline, zero AI inference cost.","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","bin":{"promptc":"dist/cli.js"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./contract":"./contract.json"},"scripts":{"build":"esbuild src/index.ts src/cli.ts --outdir=dist --format=esm --platform=node --target=node18 --bundle --packages=external && tsc -p tsconfig.json"},"engines":{"node":">=18"},"keywords":["prompt","compiler","cli","forge","developer-tools"],"license":"Apache-2.0","private":false,"gitHead":"675ad633bd687810015814a2b810062590d4ad82","_id":"@arc-forge/prompt-compiler@1.0.0","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-psGVjYFJH+8AAx3+CzE0HgvShrbFApPiuD3d6J7rPZIxbGFh4ukyb4mg/1lfTpPnAdDy08JmM1ZNJzLmSFIhHQ==","shasum":"e2fbe80b17b9c2070e319f0ccccb9a78e26f7db9","tarball":"https://registry.npmjs.org/@arc-forge/prompt-compiler/-/prompt-compiler-1.0.0.tgz","fileCount":13,"unpackedSize":31996,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDGpkAts6wPgirFudOkg9YiVLVIWNtcsE7P43wV836bjQIgBwE63BYFksMem7TP5Fo2Y7pYjqsZm3DAqC/+bHUQVQQ="}]},"_npmUser":{"name":"arcforg21","email":"arcforg21@gmail.com"},"directories":{},"maintainers":[{"name":"arcforg21","email":"arcforg21@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prompt-compiler_1.0.0_1786654419239_0.08948972995032856"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-13T20:53:39.096Z","1.0.0":"2026-08-13T20:53:39.398Z","modified":"2026-08-13T20:53:39.721Z"},"maintainers":[{"name":"arcforg21","email":"arcforg21@gmail.com"}],"description":"FORGE Prompt Compiler (P01) â€” transform raw human intent into a structured, production-ready prompt. Deterministic, offline, zero AI inference cost.","keywords":["prompt","compiler","cli","forge","developer-tools"],"license":"Apache-2.0","readme":"﻿# FORGE Prompt Compiler (P01) â€” @arc-forge/prompt-compiler\n\n> Transform raw human intent into a structured, production-ready prompt â€” deterministically, offline, at zero AI inference cost.\n\n## Installation\n\n```bash\nnpm install @arc-forge/prompt-compiler\n```\n\n## CLI Usage\n\n```bash\nnpx promptc \"write a cold email to pitch an analytics tool\" --goal sell --tone professional\n```\n\n## Programmatic API\n\n```typescript\nimport { compileIntent } from '@arc-forge/prompt-compiler';\n\nconst result = compileIntent({\n  intent: 'write a cold email to pitch an analytics tool',\n  goal: 'acquire SaaS trial users',\n  audience: 'startup founders',\n  tone: 'professional',\n  format: 'email',\n  constraints: ['Include clear CTA link', 'Keep under 150 words']\n});\n\nconsole.log(result.prompt);\nconsole.log(result.report.tokenEstimate);\n```\n\n## Features\n\n- 100% Deterministic execution\n- Zero AI inference costs ($0)\n- Zero external dependencies\n- Canonical prompt structure (`Role â†’ Task â†’ Context â†’ Constraints â†’ Output Format`)\n- Token estimation breakdown\n\r\n","readmeFilename":"README.md","_rev":"1-c2a392b0b6466377d3dd7cd135b27f1b"}