openxiangda-cli 2.0.0-alpha.77 → 2.0.0-alpha.78

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
@@ -4,4 +4,10 @@ OpenXiangda 2.0 installs one developer CLI with exactly eight top-level commands
4
4
 
5
5
  The CLI disables user, development and JIT plugin loading. A clean build removes orphaned command output before TypeScript compilation. `--json` emits one stable result envelope and never mixes progress logs into machine output.
6
6
 
7
+ AI-native development clients use the same pinned executable in pre-command
8
+ stdio mode: `pnpm exec openxiangda --mcp-stdio --cwd <workspace>`. They can read
9
+ `openxiangda://workspace/contracts` or call `contract_describe` to obtain the
10
+ compiler-owned `aiCatalog` and `aiCatalogDigest`. This transport does not add a
11
+ ninth Oclif command and applications must not implement a second MCP server.
12
+
7
13
  `dev` starts local Web/Nest hot reload and a loopback connected proxy. `deploy` defaults to test; production explicitly reuses a successful test AppVersion. Application binding, initialization, generation, tests and builds are internal stages rather than separate commands.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openxiangda-cli",
3
- "version": "2.0.0-alpha.77",
3
+ "version": "2.0.0-alpha.78",
4
4
  "description": "Thin application-level CLI for OpenXiangda 2.0.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,3 +12,4 @@
12
12
  - A single directory user reference uses a `string` field; a single department or same-app resource reference uses `uuid`; every `multiple: true` reference uses `json`. Roles that consume directory-backed fields explicitly include `app:<app-code>:directory:read`.
13
13
  - Do not add compatibility aliases, migration branches or silent fallbacks for an earlier 2.0 alpha contract. Replace an incorrect contract and regenerate the application.
14
14
  - Run `pnpm openxiangda check` after contract changes. Deploy with `pnpm openxiangda deploy`, inspect with `pnpm openxiangda status` and `pnpm openxiangda logs`, and use the platform rollback command rather than mutating K3s directly.
15
+ - AI-native clients start the workspace protocol through the same pinned binary: `pnpm exec openxiangda --mcp-stdio --cwd <workspace>`. Read `openxiangda://workspace/contracts` or call `contract_describe`, and require its `aiCatalog` and `aiCatalogDigest` to match the normal compiler output. This is a stdio transport mode, not a ninth CLI command. Never write an application MCP server, Catalog file, preview store or second authorization path.
@@ -22,7 +22,7 @@
22
22
  "build": "pnpm --recursive build"
23
23
  },
24
24
  "devDependencies": {
25
- "openxiangda-cli": "2.0.0-alpha.77",
25
+ "openxiangda-cli": "2.0.0-alpha.78",
26
26
  "openxiangda-contracts": "2.0.0-alpha.35",
27
27
  "openxiangda-devkit-core": "2.0.0-alpha.46",
28
28
  "typescript": "5.9.3"