@conto_finance/create-conto-agent 0.1.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/bin/conto.js +2 -0
- package/bin/create-conto-agent.js +2 -0
- package/dist/chunk-6TRDZ4JG.js +98 -0
- package/dist/chunk-M7X7S5QC.js +777 -0
- package/dist/chunk-QGM4M3NI.js +37 -0
- package/dist/chunk-X7AY7G2E.js +439 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +1228 -0
- package/dist/config-63WIUTLL.js +19 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +34 -0
- package/dist/output-6522BGYZ.js +33 -0
- package/package.json +56 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearGlobalConfig,
|
|
3
|
+
loadConfig,
|
|
4
|
+
loadGlobalConfig,
|
|
5
|
+
loadProjectEnv,
|
|
6
|
+
saveGlobalConfig,
|
|
7
|
+
writeContoConfig,
|
|
8
|
+
writeEnvLocal
|
|
9
|
+
} from "./chunk-X7AY7G2E.js";
|
|
10
|
+
import "./chunk-QGM4M3NI.js";
|
|
11
|
+
export {
|
|
12
|
+
clearGlobalConfig,
|
|
13
|
+
loadConfig,
|
|
14
|
+
loadGlobalConfig,
|
|
15
|
+
loadProjectEnv,
|
|
16
|
+
saveGlobalConfig,
|
|
17
|
+
writeContoConfig,
|
|
18
|
+
writeEnvLocal
|
|
19
|
+
};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runInit
|
|
3
|
+
} from "./chunk-M7X7S5QC.js";
|
|
4
|
+
import "./chunk-6TRDZ4JG.js";
|
|
5
|
+
import "./chunk-X7AY7G2E.js";
|
|
6
|
+
import "./chunk-QGM4M3NI.js";
|
|
7
|
+
|
|
8
|
+
// src/index.ts
|
|
9
|
+
var args = process.argv.slice(2);
|
|
10
|
+
var options = {};
|
|
11
|
+
for (let i = 0; i < args.length; i++) {
|
|
12
|
+
const arg = args[i];
|
|
13
|
+
if (arg === "--chain" && args[i + 1]) {
|
|
14
|
+
options.chain = args[++i];
|
|
15
|
+
} else if (arg === "--name" && args[i + 1]) {
|
|
16
|
+
options.name = args[++i];
|
|
17
|
+
} else if (arg === "--type" && args[i + 1]) {
|
|
18
|
+
options.type = args[++i];
|
|
19
|
+
} else if (arg === "--limit" && args[i + 1]) {
|
|
20
|
+
options.limit = args[++i];
|
|
21
|
+
} else if (arg === "--base-url" && args[i + 1]) {
|
|
22
|
+
options.baseUrl = args[++i];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
runInit({
|
|
26
|
+
chain: options.chain,
|
|
27
|
+
name: options.name,
|
|
28
|
+
type: options.type,
|
|
29
|
+
limit: options.limit ? Number(options.limit) : void 0,
|
|
30
|
+
baseUrl: options.baseUrl
|
|
31
|
+
}).catch((err) => {
|
|
32
|
+
console.error("Fatal error:", err.message || err);
|
|
33
|
+
process.exit(1);
|
|
34
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isJsonMode,
|
|
3
|
+
printAmount,
|
|
4
|
+
printBanner,
|
|
5
|
+
printError,
|
|
6
|
+
printHeader,
|
|
7
|
+
printInfo,
|
|
8
|
+
printJson,
|
|
9
|
+
printKeyValue,
|
|
10
|
+
printPending,
|
|
11
|
+
printSuccess,
|
|
12
|
+
printTable,
|
|
13
|
+
printWarning,
|
|
14
|
+
setJsonMode,
|
|
15
|
+
truncateAddress
|
|
16
|
+
} from "./chunk-6TRDZ4JG.js";
|
|
17
|
+
import "./chunk-QGM4M3NI.js";
|
|
18
|
+
export {
|
|
19
|
+
isJsonMode,
|
|
20
|
+
printAmount,
|
|
21
|
+
printBanner,
|
|
22
|
+
printError,
|
|
23
|
+
printHeader,
|
|
24
|
+
printInfo,
|
|
25
|
+
printJson,
|
|
26
|
+
printKeyValue,
|
|
27
|
+
printPending,
|
|
28
|
+
printSuccess,
|
|
29
|
+
printTable,
|
|
30
|
+
printWarning,
|
|
31
|
+
setJsonMode,
|
|
32
|
+
truncateAddress
|
|
33
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@conto_finance/create-conto-agent",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "CLI quickstart for Conto — Agentic Payments Control Center",
|
|
5
|
+
"bin": {
|
|
6
|
+
"create-conto-agent": "bin/create-conto-agent.js",
|
|
7
|
+
"conto": "bin/conto.js"
|
|
8
|
+
},
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"bin"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsup src/index.ts src/cli.ts --format esm --dts --clean",
|
|
17
|
+
"dev": "tsup src/index.ts src/cli.ts --format esm --dts --watch",
|
|
18
|
+
"lint": "tsc --noEmit"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"conto",
|
|
25
|
+
"ai",
|
|
26
|
+
"agent",
|
|
27
|
+
"payments",
|
|
28
|
+
"cli",
|
|
29
|
+
"quickstart",
|
|
30
|
+
"tempo",
|
|
31
|
+
"blockchain"
|
|
32
|
+
],
|
|
33
|
+
"author": "Conto",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "https://github.com/kwattana/conto.git",
|
|
38
|
+
"directory": "packages/cli"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://conto.finance",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/kwattana/conto/issues"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@clack/prompts": "^0.9.1",
|
|
46
|
+
"chalk": "^5.4.1",
|
|
47
|
+
"cli-table3": "^0.6.5",
|
|
48
|
+
"commander": "^13.1.0",
|
|
49
|
+
"open": "^10.1.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^20.0.0",
|
|
53
|
+
"tsup": "^8.0.0",
|
|
54
|
+
"typescript": "^5.0.0"
|
|
55
|
+
}
|
|
56
|
+
}
|