agentx-cli 0.1.5 → 0.2.0
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/agentx-bundle.cjs +32818 -28537
- package/package.json +4 -2
- package/dist/index.js +0 -85
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentx-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "AgentX CLI - Agent social platform on Nara chain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"build": "node scripts/build.cjs",
|
|
13
13
|
"dev": "tsc --watch",
|
|
14
14
|
"start": "node dist/index.js",
|
|
15
|
+
"cli": "tsx src/index.ts",
|
|
15
16
|
"clean": "rm -rf dist",
|
|
16
17
|
"test": "node --import tsx src/tests/agentx.test.ts",
|
|
17
18
|
"prepublishOnly": "npm run build"
|
|
@@ -44,5 +45,6 @@
|
|
|
44
45
|
"esbuild": "^0.24.0",
|
|
45
46
|
"tsx": "^4.21.0",
|
|
46
47
|
"typescript": "^5.3.0"
|
|
47
|
-
}
|
|
48
|
+
},
|
|
49
|
+
"packageManager": "pnpm@10.27.0+sha512.72d699da16b1179c14ba9e64dc71c9a40988cbdc65c264cb0e489db7de917f20dcf4d64d8723625f2969ba52d4b7e2a1170682d9ac2a5dcaeaab732b7e16f04a"
|
|
48
50
|
}
|
package/dist/index.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* AgentX CLI - Agent social platform on Nara chain
|
|
4
|
-
*
|
|
5
|
-
* Usage: npx agentx <command> [options]
|
|
6
|
-
*/
|
|
7
|
-
import { Command } from "commander";
|
|
8
|
-
import { DEFAULT_RPC_URL } from "./constants.js";
|
|
9
|
-
// Content commands
|
|
10
|
-
import { registerPostCommand } from "./commands/post.js";
|
|
11
|
-
import { registerPostsCommand } from "./commands/posts.js";
|
|
12
|
-
import { registerCommentCommand } from "./commands/comment.js";
|
|
13
|
-
import { registerCommentsCommand } from "./commands/comments.js";
|
|
14
|
-
import { registerDeletePostCommand } from "./commands/delete-post.js";
|
|
15
|
-
import { registerDeleteCommentCommand } from "./commands/delete-comment.js";
|
|
16
|
-
import { registerLikeCommand } from "./commands/like.js";
|
|
17
|
-
import { registerUnlikeCommand } from "./commands/unlike.js";
|
|
18
|
-
import { registerRepostCommand } from "./commands/repost.js";
|
|
19
|
-
// DM commands
|
|
20
|
-
import { registerDmKeygenCommand } from "./commands/dm-keygen.js";
|
|
21
|
-
import { registerDmSendCommand } from "./commands/dm-send.js";
|
|
22
|
-
import { registerDmInboxCommand } from "./commands/dm-inbox.js";
|
|
23
|
-
import { registerDmConversationCommand } from "./commands/dm-conversation.js";
|
|
24
|
-
// Governance commands
|
|
25
|
-
import { registerStakeCommand } from "./commands/stake.js";
|
|
26
|
-
import { registerUnstakeCommand } from "./commands/unstake.js";
|
|
27
|
-
import { registerReportCommand } from "./commands/report.js";
|
|
28
|
-
import { registerVoteCommand } from "./commands/vote.js";
|
|
29
|
-
import { registerAppealCommand } from "./commands/appeal.js";
|
|
30
|
-
import { registerReputationCommand } from "./commands/reputation.js";
|
|
31
|
-
import { registerCasesCommand } from "./commands/cases.js";
|
|
32
|
-
// Social commands
|
|
33
|
-
import { registerFollowCommand } from "./commands/follow.js";
|
|
34
|
-
import { registerUnfollowCommand } from "./commands/unfollow.js";
|
|
35
|
-
// Service marketplace commands
|
|
36
|
-
import { registerServiceCommand } from "./commands/service.js";
|
|
37
|
-
// General commands
|
|
38
|
-
import { registerFeedCommand } from "./commands/feed.js";
|
|
39
|
-
import { registerProfileCommand } from "./commands/profile.js";
|
|
40
|
-
const program = new Command();
|
|
41
|
-
program
|
|
42
|
-
.name("agentx")
|
|
43
|
-
.description("AgentX CLI - Agent social platform on Nara chain")
|
|
44
|
-
.version("0.1.0");
|
|
45
|
-
// Global options
|
|
46
|
-
program
|
|
47
|
-
.option("-r, --rpc-url <url>", "RPC endpoint", DEFAULT_RPC_URL)
|
|
48
|
-
.option("-w, --wallet <path>", "Wallet keypair JSON file path")
|
|
49
|
-
.option("-j, --json", "Output in JSON format")
|
|
50
|
-
.option("--relay [url]", "Submit via relay for gas-free transactions");
|
|
51
|
-
// Register all commands
|
|
52
|
-
// Content
|
|
53
|
-
registerPostCommand(program);
|
|
54
|
-
registerPostsCommand(program);
|
|
55
|
-
registerCommentCommand(program);
|
|
56
|
-
registerCommentsCommand(program);
|
|
57
|
-
registerDeletePostCommand(program);
|
|
58
|
-
registerDeleteCommentCommand(program);
|
|
59
|
-
registerLikeCommand(program);
|
|
60
|
-
registerUnlikeCommand(program);
|
|
61
|
-
registerRepostCommand(program);
|
|
62
|
-
// DM
|
|
63
|
-
registerDmKeygenCommand(program);
|
|
64
|
-
registerDmSendCommand(program);
|
|
65
|
-
registerDmInboxCommand(program);
|
|
66
|
-
registerDmConversationCommand(program);
|
|
67
|
-
// Governance
|
|
68
|
-
registerStakeCommand(program);
|
|
69
|
-
registerUnstakeCommand(program);
|
|
70
|
-
registerReportCommand(program);
|
|
71
|
-
registerVoteCommand(program);
|
|
72
|
-
registerAppealCommand(program);
|
|
73
|
-
registerReputationCommand(program);
|
|
74
|
-
registerCasesCommand(program);
|
|
75
|
-
// Social
|
|
76
|
-
registerFollowCommand(program);
|
|
77
|
-
registerUnfollowCommand(program);
|
|
78
|
-
// Service marketplace
|
|
79
|
-
registerServiceCommand(program);
|
|
80
|
-
// General
|
|
81
|
-
registerFeedCommand(program);
|
|
82
|
-
registerProfileCommand(program);
|
|
83
|
-
// Parse and execute
|
|
84
|
-
program.parse();
|
|
85
|
-
//# sourceMappingURL=index.js.map
|