/** * The package's own version and name — read once, from one place * (roadmap-revamp/AC-18). * * Two call sites resolved `package.json` independently before this module * existed, at *different* relative depths because each computed the path from * its own compiled location: `cli.ts` builds to `dist/cli.js` so the package * root is `..`, while `commands/update.ts` builds to `dist/commands/update.js` * so it is `../..`. Both were correct and neither was copyable. A third reader * at a third depth — roadmap-revamp added one — is a third chance to get it * wrong, and the failure mode is silent: a bad path throws, the catch returns * `0.0.0`, and the CLI reports a version it is not. * * Resolving here once removes the choice. This module compiles to * `dist/core/version.js`, so the package root is `../..`. * * The values are module constants rather than functions because the manifest * cannot change while the process runs, and a constant is what a template * emitter can interpolate without threading a call through its signature. * * Deliberately NOT a literal: `scripts/check-docs-drift.mjs` fails the build on * a hardcoded version in `cli.ts` because v1.1.0 shipped reporting `0.1.0`. The * same check now covers the roadmap authoring skill's source template * (roadmap-revamp/AC-17). * * @module */ /** * Absolute path to this package's root — the directory holding `package.json`. * * Exported because `commands/update.ts` needs the root itself, not only the * two fields read from the manifest inside it. */ export declare function cliPackageRoot(): string; /** This package's version, e.g. `1.12.0`. */ export declare const VERSION: string; /** This package's npm name, e.g. `@rasensio/aidlc`. */ export declare const PACKAGE_NAME: string; //# sourceMappingURL=version.d.ts.map