create-expert 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +9 -14
- package/dist/bin/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -4378,21 +4378,16 @@ var config = parseWithFriendlyError(
|
|
|
4378
4378
|
perstackConfigSchema,
|
|
4379
4379
|
TOML.parse(readFileSync(tomlPath, "utf-8"))
|
|
4380
4380
|
);
|
|
4381
|
-
new Command().name("create-expert").description("Create and modify Perstack expert definitions").argument("
|
|
4382
|
-
await startHandler(
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
const provider = config.provider?.providerName ?? "anthropic";
|
|
4390
|
-
const envKey = PROVIDER_ENV_MAP[provider];
|
|
4391
|
-
const value = envKey ? env[envKey] : void 0;
|
|
4392
|
-
return value ? { PROVIDER_API_KEY: value } : {};
|
|
4393
|
-
}
|
|
4381
|
+
new Command().name("create-expert").description("Create and modify Perstack expert definitions").argument("[query]", "Description of the expert to create or modify").option("--continue", "Continue the most recent job with new query").option("--continue-job <jobId>", "Continue the specified job with new query").action(async (query, options) => {
|
|
4382
|
+
await startHandler("expert", query, options, {
|
|
4383
|
+
perstackConfig: config,
|
|
4384
|
+
additionalEnv: (env) => {
|
|
4385
|
+
const provider = config.provider?.providerName ?? "anthropic";
|
|
4386
|
+
const envKey = PROVIDER_ENV_MAP[provider];
|
|
4387
|
+
const value = envKey ? env[envKey] : void 0;
|
|
4388
|
+
return value ? { PROVIDER_API_KEY: value } : {};
|
|
4394
4389
|
}
|
|
4395
|
-
);
|
|
4390
|
+
});
|
|
4396
4391
|
}).parse();
|
|
4397
4392
|
/*! Bundled license information:
|
|
4398
4393
|
|