Skip to content

Commit 3bf6344

Browse files
FL4TLiN3claude
andauthored
refactor: use package.json for create-expert CLI metadata (#514)
* refactor: use package.json for create-expert CLI metadata Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: add empty changeset Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5068138 commit 3bf6344

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/fancy-months-lie.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

apps/create-expert/bin/cli.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { startHandler } from "@perstack/tui"
66
import { PROVIDER_ENV_MAP } from "@perstack/tui/provider-config"
77
import { Command } from "commander"
88
import TOML from "smol-toml"
9+
import packageJson from "../package.json" with { type: "json" }
910

1011
const tomlPath = new URL("../perstack.toml", import.meta.url)
1112
const config = parseWithFriendlyError(
@@ -14,8 +15,9 @@ const config = parseWithFriendlyError(
1415
)
1516

1617
new Command()
17-
.name("create-expert")
18-
.description("Create and modify Perstack expert definitions")
18+
.name(packageJson.name)
19+
.description(packageJson.description)
20+
.version(packageJson.version)
1921
.argument("[query]", "Description of the expert to create or modify")
2022
.option("--continue", "Continue the most recent job with new query")
2123
.option("--continue-job <jobId>", "Continue the specified job with new query")

0 commit comments

Comments
 (0)