Skip to content

The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.

chore: bump lazycodex-ai to 0.2.2

YeonGyu-Kim63d56a10ff65
diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml
index e2f43d67..e6820129 100644
--- a/.github/workflows/npm-publish.yml
+++ b/.github/workflows/npm-publish.yml
@@ -6,7 +6,7 @@ on:
version:
description: "Package version to publish"
required: true
- default: "0.2.1"
+ default: "0.2.2"
permissions:
contents: write
diff --git a/package-lock.json b/package-lock.json
index fb47f79a..48531efa 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "lazycodex-ai",
- "version": "0.2.1",
+ "version": "0.2.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "lazycodex-ai",
- "version": "0.2.1",
+ "version": "0.2.2",
"license": "MIT",
"bin": {
"lazycodex-ai": "bin/lazycodex-ai.js"
diff --git a/package.json b/package.json
index dad70d64..7e228288 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "lazycodex-ai",
- "version": "0.2.1",
+ "version": "0.2.2",
"description": "Codex install alias for oh-my-openagent. Run `npx lazycodex-ai install` to set up the Codex platform.",
"type": "module",
"bin": {
diff --git a/test/lazycodex-ai-bin.test.mjs b/test/lazycodex-ai-bin.test.mjs
index a9898283..babc96e8 100644
--- a/test/lazycodex-ai-bin.test.mjs
+++ b/test/lazycodex-ai-bin.test.mjs
@@ -6,7 +6,10 @@ import { describe, it } from "node:test"
const root = new URL("..", import.meta.url).pathname
const packageJsonPath = join(root, "package.json")
+const packageLockPath = join(root, "package-lock.json")
+const publishWorkflowPath = join(root, ".github", "workflows", "npm-publish.yml")
const binPath = join(root, "bin", "lazycodex-ai.js")
+const releaseVersion = "0.2.2"
describe("lazycodex-ai npm package", () => {
it("maps the package name and bin to lazycodex-ai", () => {
@@ -18,11 +21,29 @@ describe("lazycodex-ai npm package", () => {
// then
assert.equal(manifest.name, "lazycodex-ai")
- assert.equal(manifest.version, "0.2.1")
+ assert.equal(manifest.version, releaseVersion)
assert.equal(manifest.bin?.["lazycodex-ai"], "bin/lazycodex-ai.js")
assert.equal(manifest.private, undefined)
})
+ it("keeps publish metadata aligned with the release version", () => {
+ // given
+ assert.equal(existsSync(packageJsonPath), true, "root package.json must exist")
+ assert.equal(existsSync(packageLockPath), true, "package-lock.json must exist")
+ assert.equal(existsSync(publishWorkflowPath), true, "npm publish workflow must exist")
+
+ // when
+ const manifest = JSON.parse(readFileSync(packageJsonPath, "utf8"))
+ const lockfile = JSON.parse(readFileSync(packageLockPath, "utf8"))
+ const publishWorkflow = readFileSync(publishWorkflowPath, "utf8")
+
+ // then
+ assert.equal(manifest.version, releaseVersion)
+ assert.equal(lockfile.version, releaseVersion)
+ assert.equal(lockfile.packages?.[""]?.version, releaseVersion)
+ assert.match(publishWorkflow, new RegExp(`default: "${releaseVersion}"`))
+ })
+
it("dry-runs install through oh-my-openagent with the Codex platform default", () => {
// given
assert.equal(existsSync(binPath), true, "lazycodex-ai bin must exist")