Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.9.1] - 2026-02-02

### Fixed

- **CLI version now reads from package.json** — `oddkit --version` was hardcoded as 0.1.0, now correctly shows the actual version

## [0.9.0] - 2026-02-02

### Added
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oddkit",
"version": "0.9.0",
"version": "0.9.1",
"description": "Agent-first CLI for ODD-governed repos. Epistemic terrain rendering with portable baseline.",
"type": "module",
"bin": {
Expand Down
6 changes: 5 additions & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Command } from "commander";
import { createInterface } from "readline";
import { createRequire } from "module";
import { runLibrarian } from "./tasks/librarian.js";
import { runValidate } from "./tasks/validate.js";
import { runIndex } from "./tasks/indexTask.js";
Expand All @@ -10,6 +11,9 @@ import { runHooks } from "./cli/hooks.js";
import { registerSyncAgentsCommand } from "./cli/syncAgents.js";
import { runAuditEpoch } from "./audit/auditEpoch.js";

const require = createRequire(import.meta.url);
const { version: PKG_VERSION } = require("../package.json");

const SCHEMA_VERSION = "1.0";

// Exit codes (tool-grade contract)
Expand Down Expand Up @@ -123,7 +127,7 @@ export function run() {
program
.name("oddkit")
.description("Agent-first CLI for ODD-governed repos")
.version("0.1.0")
.version(PKG_VERSION)
// Global options
.option("--quiet", "Suppress non-essential output (logs, banners)")
.option("--no-color", "Disable colored output");
Expand Down