@agentpie/cli 0.1.33 → 0.1.38

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
@@ -1,6 +1,6 @@
1
1
  # @agentpie/cli
2
2
 
3
- Global AgentPie CLI. It uses the same production command surface as `xiashe`, but defaults to:
3
+ Global AgentPie CLI. It shares the core SDK, Agent, Skill, connectors and runtime implementation with `xiashe`, but defaults to:
4
4
 
5
5
  - Actions: `https://agentpie.app`
6
6
  - Convex: `https://adept-porcupine-970.convex.cloud`
@@ -26,3 +26,11 @@ When testing from this monorepo after `npm run env:use:dev`, the CLI reads
26
26
  deployment instead of the production Convex HTTP site.
27
27
 
28
28
  `agentpie agent run --ack` is the recommended lightweight receiver for shell-capable Agents. It does not require a public webhook or long-lived socket; it sends cheap heartbeats and only lists/executes work when pending tasks or transfers exist. Default cadence is about 30s while idle, 10s while work is active, and up to 2 minutes after long idle periods.
29
+
30
+ ## Updates and feature boundaries
31
+
32
+ `agentpie cli update --check` checks `@agentpie/cli`; `agentpie cli update` updates an owned global installation. Source, project and npx installations receive a version-pinned command instead. It does not install the XiaShe CLI in place of AgentPie.
33
+
34
+ Numbers V2, the numbered Skill entry installer, its doctor and legacy scenes currently require a CN backend. AgentPie rejects those commands without writing files or switching environments. Use `agentpie skills list`, `agentpie agent`, `agentpie connectors`, `agentpie runtime`, and `agentpie ops doctor` for the shared workflows. Availability still depends on the selected backend's deployment and feature configuration.
35
+
36
+ Release the SDK, both brand CLIs and the `xiashe` short wrapper as one version family with exact dependencies. See the repository's `docs/cli/versioning-and-parity.zh-CN.md`; `npm run cli:versions:registry` detects published brand drift.
package/bin/agentpie.mjs CHANGED
@@ -6,6 +6,7 @@ import path from 'node:path';
6
6
  import { fileURLToPath } from 'node:url';
7
7
 
8
8
  const ownPackagePath = fileURLToPath(new URL('../package.json', import.meta.url));
9
+ process.env.XIASHE_CLI_PACKAGE_ROOT = path.dirname(ownPackagePath);
9
10
  const ownVersion = JSON.parse(readFileSync(ownPackagePath, 'utf8')).version;
10
11
 
11
12
  if (process.argv[2] === '--version' || process.argv[2] === '-v') {
@@ -88,12 +89,14 @@ process.env.XIASHE_CONFIG_DIR = process.env.XIASHE_CONFIG_DIR || path.join(os.ho
88
89
  process.env.AGENTPIE_CONVEX_URL = process.env.AGENTPIE_CONVEX_URL || localConvexUrl;
89
90
  process.env.AGENTPIE_ACTIONS_URL = process.env.AGENTPIE_ACTIONS_URL || localActionsUrl;
90
91
 
91
- try {
92
- await import('@xiashe/cli/bin/xiashe.mjs');
93
- } catch {
94
- try {
95
- await import('xiashe/bin/xiashe.mjs');
96
- } catch {
97
- await import('../../xiashe-cli/bin/xiashe.mjs');
92
+ let entry;
93
+ try { entry = import.meta.resolve('@xiashe/cli/bin/xiashe.mjs'); }
94
+ catch (error) {
95
+ if (error.code !== 'ERR_MODULE_NOT_FOUND' || !error.message.includes("Cannot find package '@xiashe/cli'")) throw error;
96
+ try { entry = import.meta.resolve('xiashe/bin/xiashe.mjs'); }
97
+ catch (error) {
98
+ if (error.code !== 'ERR_MODULE_NOT_FOUND' || !error.message.includes("Cannot find package 'xiashe'")) throw error;
99
+ entry = new URL('../../xiashe-cli/bin/xiashe.mjs', import.meta.url).href;
98
100
  }
99
101
  }
102
+ await import(entry);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentpie/cli",
3
- "version": "0.1.33",
3
+ "version": "0.1.38",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "agentpie": "bin/agentpie.mjs"
@@ -10,8 +10,8 @@
10
10
  "README.md"
11
11
  ],
12
12
  "dependencies": {
13
- "@xiashe/cli": "0.1.33",
14
- "@xiashe/sdk": "0.1.33"
13
+ "@xiashe/cli": "0.1.38",
14
+ "@xiashe/sdk": "0.1.38"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=20"