@conto_finance/create-conto-agent 0.4.2 → 0.4.3
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 +6 -0
- package/README.md +5 -1
- package/dist/{chunk-5OT7YKV4.js → chunk-CMPYURB7.js} +5 -3
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.3
|
|
4
|
+
|
|
5
|
+
- A confirmed mainnet setup creates the agent in the `PROD` environment. Earlier versions always
|
|
6
|
+
created a `DEV` agent, and Conto denied every payment from its mainnet wallet with "DEV agents
|
|
7
|
+
cannot use mainnet or unclassified wallets". Testnet setups still create a `DEV` agent.
|
|
8
|
+
|
|
3
9
|
## 0.4.2
|
|
4
10
|
|
|
5
11
|
- `conto pay --dry-run` no longer calls the payments API. It validates the input locally, prints the
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Set up an AI agent with Conto spending controls. Conto is a buyer-side control layer. Integrate it
|
|
4
4
|
in the agent owner's runtime or payment tools. The owner or budget holder sets policy before the
|
|
5
5
|
agent pays.
|
|
6
|
-
See [buyer-side control](https://conto.finance/docs/
|
|
6
|
+
See [buyer-side control](https://conto.finance/docs/introduction/concepts) for the authorization
|
|
7
7
|
and execution boundary.
|
|
8
8
|
|
|
9
9
|
Node.js 20.19+. Create a temporary simulated sandbox without an account:
|
|
@@ -23,6 +23,10 @@ Run the wizard without `--sandbox` to sign in and provision a managed wallet. Ch
|
|
|
23
23
|
Testnet for free faucet tokens and actual onchain test transfers. For headless organization
|
|
24
24
|
setup, set `CONTO_ORG_API_KEY` or pass `--api-key`.
|
|
25
25
|
|
|
26
|
+
A mainnet setup asks you to confirm the network (pass `--confirm-mainnet` when headless) and
|
|
27
|
+
creates the agent in the `PROD` environment, because only `PROD` agents can pay from mainnet
|
|
28
|
+
wallets. Testnet setups create a `DEV` agent.
|
|
29
|
+
|
|
26
30
|
Inside a CLI-created project, `npx conto <command>` is a shorter form of the same commands. Outside
|
|
27
31
|
one, bare `npx conto` fetches an unrelated npm package, so use the full package name.
|
|
28
32
|
`--help`, `--version`, and `--json` work without an interactive terminal.
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
// package.json
|
|
18
18
|
var package_default = {
|
|
19
19
|
name: "@conto_finance/create-conto-agent",
|
|
20
|
-
version: "0.4.
|
|
20
|
+
version: "0.4.3",
|
|
21
21
|
description: "Set up an AI agent with Conto spending controls",
|
|
22
22
|
bin: {
|
|
23
23
|
"create-conto-agent": "bin/create-conto-agent.js",
|
|
@@ -748,16 +748,18 @@ async function runInit(options = {}) {
|
|
|
748
748
|
printInfo(err instanceof Error ? err.message : "Faucet unavailable");
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
|
+
const agentEnvironment = chain.testnet ? "DEV" : "PROD";
|
|
751
752
|
s.start(`Registering agent "${agentName}"...`);
|
|
752
753
|
let agent;
|
|
753
754
|
try {
|
|
754
755
|
agent = await api.createAgent({
|
|
755
756
|
name: agentName,
|
|
756
757
|
agentType,
|
|
757
|
-
description: `Created via CLI quickstart
|
|
758
|
+
description: `Created via CLI quickstart`,
|
|
759
|
+
environment: agentEnvironment
|
|
758
760
|
});
|
|
759
761
|
s.stop("Agent registered");
|
|
760
|
-
printSuccess(`Agent "${agent.name}" created`);
|
|
762
|
+
printSuccess(`Agent "${agent.name}" created (${agent.environment ?? agentEnvironment})`);
|
|
761
763
|
} catch (err) {
|
|
762
764
|
s.stop("Agent creation failed");
|
|
763
765
|
failInit(err instanceof Error ? err.message : "Failed to create agent");
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED