@coinfello/agent-cli 0.1.8 → 0.1.10
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
CHANGED
|
@@ -98,19 +98,9 @@ Creating subdelegation...
|
|
|
98
98
|
Signing subdelegation...
|
|
99
99
|
Sending signed delegation...
|
|
100
100
|
Transaction submitted successfully.
|
|
101
|
-
Transaction ID: <
|
|
101
|
+
Transaction ID: <txn_hash_>
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
### 6. get_transaction_status
|
|
105
|
-
|
|
106
|
-
Checks the status of a previously submitted transaction.
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
node dist/index.js get_transaction_status <txn_id>
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
Expected output is a JSON object with the transaction status.
|
|
113
|
-
|
|
114
104
|
### Help
|
|
115
105
|
|
|
116
106
|
View all commands and options:
|
package/dist/index.js
CHANGED
|
@@ -2888,16 +2888,6 @@ async function sendConversation({
|
|
|
2888
2888
|
}
|
|
2889
2889
|
return response.json();
|
|
2890
2890
|
}
|
|
2891
|
-
async function getTransactionStatus(txnId) {
|
|
2892
|
-
const response = await fetchWithCookies(
|
|
2893
|
-
`${BASE_URL_V1}/transaction_status?txn_id=${encodeURIComponent(txnId)}`
|
|
2894
|
-
);
|
|
2895
|
-
if (!response.ok) {
|
|
2896
|
-
const text = await response.text();
|
|
2897
|
-
throw new Error(`Transaction status request failed (${response.status}): ${text}`);
|
|
2898
|
-
}
|
|
2899
|
-
return response.json();
|
|
2900
|
-
}
|
|
2901
2891
|
async function signInWithAgent(baseUrl, config) {
|
|
2902
2892
|
if (!config.smart_account_address) {
|
|
2903
2893
|
throw new Error("No smart account address found in config. Run 'create_account' first.");
|
|
@@ -3251,13 +3241,4 @@ program.command("send_prompt").description("Send a prompt to CoinFello, creating
|
|
|
3251
3241
|
process.exit(1);
|
|
3252
3242
|
}
|
|
3253
3243
|
});
|
|
3254
|
-
program.command("get_transaction_status").description("Check the status of a submitted transaction").argument("<txn_id>", "The transaction ID to check").action(async (txnId) => {
|
|
3255
|
-
try {
|
|
3256
|
-
const result = await getTransactionStatus(txnId);
|
|
3257
|
-
console.log(JSON.stringify(result, null, 2));
|
|
3258
|
-
} catch (err) {
|
|
3259
|
-
console.error(`Failed to get transaction status: ${err.message}`);
|
|
3260
|
-
process.exit(1);
|
|
3261
|
-
}
|
|
3262
|
-
});
|
|
3263
3244
|
program.parse();
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinfello/agent-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"@noble/curves": "^2.0.1",
|
|
27
27
|
"@noble/hashes": "^2.0.1",
|
|
28
28
|
"@types/node": "^25.2.1",
|
|
29
|
+
"clawhub": "^0.7.0",
|
|
29
30
|
"dotenv": "^17.3.1",
|
|
30
31
|
"eslint": "^10.0.0",
|
|
31
32
|
"eslint-config-prettier": "^10.1.8",
|