From d3125ba488696b538aa09a92119674945da3adbd Mon Sep 17 00:00:00 2001 From: HiranoMasaaki Date: Sun, 15 Feb 2026 09:38:30 +0000 Subject: [PATCH 1/3] fix: make create-expert query optional and add --continue support Align create-expert CLI with perstack start by making query an optional argument and adding --continue/--continue-job flags. Co-Authored-By: Claude Opus 4.6 --- apps/create-expert/bin/cli.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/create-expert/bin/cli.ts b/apps/create-expert/bin/cli.ts index e6a3bc25..525d2591 100644 --- a/apps/create-expert/bin/cli.ts +++ b/apps/create-expert/bin/cli.ts @@ -16,12 +16,14 @@ const config = parseWithFriendlyError( new Command() .name("create-expert") .description("Create and modify Perstack expert definitions") - .argument("", "Description of the expert to create or modify") - .action(async (query: string) => { + .argument("[query]", "Description of the expert to create or modify") + .option("--continue", "Continue the most recent job with new query") + .option("--continue-job ", "Continue the specified job with new query") + .action(async (query: string | undefined, options: Record) => { await startHandler( "expert", query, - {}, + options, { perstackConfig: config, additionalEnv: (env) => { From 9e57094486adfaa8d4612d1226ad00b45f834196 Mon Sep 17 00:00:00 2001 From: HiranoMasaaki Date: Sun, 15 Feb 2026 09:39:51 +0000 Subject: [PATCH 2/3] chore: add changeset Co-Authored-By: Claude Opus 4.6 --- .changeset/create-expert-optional-query.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/create-expert-optional-query.md diff --git a/.changeset/create-expert-optional-query.md b/.changeset/create-expert-optional-query.md new file mode 100644 index 00000000..84bf241f --- /dev/null +++ b/.changeset/create-expert-optional-query.md @@ -0,0 +1,5 @@ +--- +"create-expert": patch +--- + +Make query argument optional and add --continue/--continue-job support From 68887f1b95380b13814d9e2863b5dd05af3143e7 Mon Sep 17 00:00:00 2001 From: HiranoMasaaki Date: Sun, 15 Feb 2026 09:41:01 +0000 Subject: [PATCH 3/3] style: fix biome formatting Co-Authored-By: Claude Opus 4.6 --- apps/create-expert/bin/cli.ts | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/apps/create-expert/bin/cli.ts b/apps/create-expert/bin/cli.ts index 525d2591..0d0a12f6 100644 --- a/apps/create-expert/bin/cli.ts +++ b/apps/create-expert/bin/cli.ts @@ -20,19 +20,14 @@ new Command() .option("--continue", "Continue the most recent job with new query") .option("--continue-job ", "Continue the specified job with new query") .action(async (query: string | undefined, options: Record) => { - await startHandler( - "expert", - query, - options, - { - perstackConfig: config, - additionalEnv: (env) => { - const provider = config.provider?.providerName ?? "anthropic" - const envKey = PROVIDER_ENV_MAP[provider] - const value = envKey ? env[envKey] : undefined - return value ? { PROVIDER_API_KEY: value } : ({} as Record) - }, + await startHandler("expert", query, options, { + perstackConfig: config, + additionalEnv: (env) => { + const provider = config.provider?.providerName ?? "anthropic" + const envKey = PROVIDER_ENV_MAP[provider] + const value = envKey ? env[envKey] : undefined + return value ? { PROVIDER_API_KEY: value } : ({} as Record) }, - ) + }) }) .parse()