@agentpie/cli 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/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @agentpie/cli
2
+
3
+ Global AgentPie CLI. It uses the same production command surface as `xiashe`, but defaults to:
4
+
5
+ - Actions: `https://actions.agentpie.app`
6
+ - Convex: `https://adept-porcupine-970.convex.cloud`
7
+ - Relay: `https://relay.agentpie.app`
8
+ - Market: `intl`
9
+ - Locale: `en`
10
+ - Local config: `~/.agentpie/config.json`
11
+
12
+ ## Local development
13
+
14
+ ```bash
15
+ node packages/agentpie-cli/bin/agentpie.mjs --help
16
+ node packages/agentpie-cli/bin/agentpie.mjs config path
17
+ node packages/agentpie-cli/bin/agentpie.mjs env use global
18
+ ```
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+
3
+ import os from 'node:os';
4
+ import path from 'node:path';
5
+
6
+ process.env.XIASHE_CLI_NAME = process.env.XIASHE_CLI_NAME || 'agentpie';
7
+ process.env.XIASHE_PRODUCT_NAME = process.env.XIASHE_PRODUCT_NAME || 'AgentPie';
8
+ process.env.XIASHE_DEFAULT_ENV = process.env.XIASHE_DEFAULT_ENV || 'global';
9
+ process.env.XIASHE_CONFIG_DIR = process.env.XIASHE_CONFIG_DIR || path.join(os.homedir(), '.agentpie');
10
+
11
+ try {
12
+ await import('@xiashe/cli/bin/xiashe.mjs');
13
+ } catch {
14
+ try {
15
+ await import('xiashe/bin/xiashe.mjs');
16
+ } catch {
17
+ await import('../../xiashe-cli/bin/xiashe.mjs');
18
+ }
19
+ }
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@agentpie/cli",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "bin": {
6
+ "agentpie": "bin/agentpie.mjs"
7
+ },
8
+ "files": [
9
+ "bin",
10
+ "README.md"
11
+ ],
12
+ "dependencies": {
13
+ "@xiashe/cli": "0.1.0",
14
+ "@xiashe/sdk": "0.1.0"
15
+ },
16
+ "engines": {
17
+ "node": ">=20"
18
+ }
19
+ }