naracli 1.0.61 → 1.0.64
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/README.md +1 -1
- package/bin/nara-cli.ts +3 -2
- package/dist/nara-cli-bundle.cjs +42332 -5929
- package/package.json +2 -2
- package/src/cli/commands/agent.ts +240 -147
- package/src/cli/commands/quest.ts +18 -5
- package/src/cli/utils/agent-config.ts +91 -25
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/nara-chain/nara-web/main/public/favicon.
|
|
2
|
+
<img src="https://raw.githubusercontent.com/nara-chain/nara-web/main/public/favicon-v3.svg" width="48" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<h3 align="center">Nara CLI</h3>
|
package/bin/nara-cli.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
import { registerCommands } from "../src/cli/index";
|
|
7
|
+
import { migrateAgentIdFormat } from "../src/cli/utils/agent-config";
|
|
7
8
|
// __CLI_VERSION__ is injected by the build script via esbuild --define.
|
|
8
9
|
// In dev mode (tsx), fall back to "dev".
|
|
9
10
|
declare const __CLI_VERSION__: string;
|
|
@@ -33,5 +34,5 @@ if (!process.argv.slice(2).length) {
|
|
|
33
34
|
process.exit(0);
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
//
|
|
37
|
-
program.parse(process.argv);
|
|
37
|
+
// Migrate legacy agent_id format, then parse
|
|
38
|
+
migrateAgentIdFormat().catch(() => {}).then(() => program.parse(process.argv));
|