hamster-wheel-cli 0.3.4 → 0.3.5
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/CHANGELOG.md +4 -0
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/cli.ts +3 -1
package/CHANGELOG.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -4688,8 +4688,8 @@ async function runCli(argv) {
|
|
|
4688
4688
|
program.command("logs").description("\u67E5\u770B\u5386\u53F2\u65E5\u5FD7").action(async () => {
|
|
4689
4689
|
await runLogsViewer();
|
|
4690
4690
|
});
|
|
4691
|
-
const agentCommand = program.command("agent").description("\u7BA1\u7406 AI CLI agent \u914D\u7F6E");
|
|
4692
|
-
agentCommand.command("add <name> [command...]").description("\u65B0\u589E agent").allowUnknownOption(true).allowExcessArguments(true).action(async (name) => {
|
|
4691
|
+
const agentCommand = program.command("agent").description("\u7BA1\u7406 AI CLI agent \u914D\u7F6E").enablePositionalOptions();
|
|
4692
|
+
agentCommand.command("add <name> [command...]").description("\u65B0\u589E agent").passThroughOptions().allowUnknownOption(true).allowExcessArguments(true).action(async (name) => {
|
|
4693
4693
|
const normalized = normalizeAgentName(name);
|
|
4694
4694
|
if (!normalized) {
|
|
4695
4695
|
throw new Error("agent \u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\u4E14\u4E0D\u80FD\u5305\u542B\u7A7A\u767D\u5B57\u7B26");
|