zcode-app-cli 3.14.1-27 → 3.14.3-27

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,17 +4,22 @@
4
4
  [![npm downloads](https://img.shields.io/npm/dm/zcode-app-cli.svg)](https://www.npmjs.com/package/zcode-app-cli)
5
5
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
6
6
 
7
- Unofficial terminal client for the official agent runtime shipped with ZCode Desktop.
7
+ Unofficial terminal client for the ZCode agent runtime.
8
8
 
9
- The project extracts the upstream `resources/glm` runtime, injects a local
10
- `@zcode/tui` implementation based on
9
+ The official ZCode source is available at
10
+ [zai-org/ZCode](https://github.com/zai-org/ZCode), with first-party source under
11
+ Apache-2.0 and separate terms for third-party content.
12
+
13
+ This community client packages the runtime from a pinned ZCode Desktop release,
14
+ applies compatibility patches, and supplies a terminal interface based on
11
15
  [`@earendil-works/pi-tui`](https://github.com/earendil-works/pi/tree/main/packages/tui),
12
- and launches it as a Node.js child process that directly inherits the user's
13
- terminal.
16
+ running as a Node.js child process in your terminal. The npm package includes
17
+ the runtime; installing ZCode Desktop is not required for normal terminal use.
18
+ Local development can also extract the runtime from an installed Desktop app.
14
19
 
15
- This project is not affiliated with or endorsed by Z.ai. ZCode and its bundled
16
- runtime remain subject to their upstream terms. Confirm that you are allowed to
17
- redistribute the extracted runtime before publishing the npm package.
20
+ This project is not affiliated with or endorsed by Z.ai. Its own code is MIT;
21
+ bundled upstream content retains its respective licenses. See
22
+ [License and attribution](#license-and-attribution).
18
23
 
19
24
  ![zcode-app-cli TUI demo](./docs/assets/demo.svg)
20
25
 
@@ -49,6 +54,7 @@ Node.js example, terminal/PTY requirements, and compatibility rules.
49
54
 
50
55
  - [Quick start](#quick-start)
51
56
  - [Host integration](#host-integration)
57
+ - [Relationship to the official project](#relationship-to-the-official-project)
52
58
  - [Install and update](#install-and-update)
53
59
  - [Architecture](#architecture)
54
60
  - [Features](#features)
@@ -58,7 +64,25 @@ Node.js example, terminal/PTY requirements, and compatibility rules.
58
64
  - [Configuration](#configuration)
59
65
  - [Local development](#local-development)
60
66
  - [Contributing](#contributing)
61
- - [License](#license)
67
+ - [License and attribution](#license-and-attribution)
68
+
69
+ ## Relationship to the official project
70
+
71
+ The [official repository](https://github.com/zai-org/ZCode) contains Desktop,
72
+ Web, backend services, and the Agent CLI/runtime in `apps/zcode-cli`. It also
73
+ contains an official TUI implemented with OpenTUI and React. Follow its README
74
+ for official build and installation instructions.
75
+
76
+ `zcode-app-cli` supplies its own pi-tui interface and npm packaging. Its release
77
+ pipeline still extracts compiled Desktop artifacts using
78
+ `zcode-runtime.lock.json`; it does not build the newly published source tree.
79
+ `vendor/extraction.json` records the artifact origin and local patches. The
80
+ public source revision and the extracted release are separate provenance records.
81
+
82
+ Provider configuration is shared with Desktop by default. Session storage and
83
+ feature compatibility depend on the runtime version and configured paths;
84
+ sharing providers does not guarantee that every client discovers the same
85
+ sessions. See [Configuration](./docs/CONFIGURATION.md).
62
86
 
63
87
  ## Install and update
64
88
 
@@ -91,6 +115,11 @@ Node.js npm launcher (config / login / version metadata)
91
115
  └─ @earendil-works/pi-tui
92
116
  ```
93
117
 
118
+ `@zcode/tui` is the interface package loaded by the upstream runtime. During
119
+ synchronization this project installs its local implementation from
120
+ `packages/zcode-tui`, built on `@earendil-works/pi-tui`. This is separate from
121
+ the official OpenTUI implementation in `apps/zcode-cli/packages/tui`.
122
+
94
123
  The official agent, model, session, tool, plugin, MCP, credential store and
95
124
  provider-configuration logic remains in the extracted runtime. The local
96
125
  package supplies the missing terminal interface and a narrow macOS callback
@@ -317,9 +346,9 @@ entire message at once. `Esc` leaves search or transcript navigation.
317
346
 
318
347
  ## Plugin management
319
348
 
320
- Built-in Plugins such as Browser Use, document skills and Skill Creator are
321
- seeded by the official runtime. Existing installed-plugin commands continue to
322
- use the runtime directly:
349
+ Built-in Plugins such as Browser Use, Image Search and Skill Creator are seeded
350
+ by the official runtime. Existing installed-plugin commands continue to use the
351
+ runtime directly:
323
352
 
324
353
  ```bash
325
354
  zcode plugins list --json
@@ -328,6 +357,11 @@ zcode plugins disable <plugin-id>
328
357
  zcode plugins uninstall <plugin-id> --force
329
358
  ```
330
359
 
360
+ The npm package includes the document, PDF, presentation and spreadsheet skill
361
+ Plugins with their original license files. Their bundled skills retain the
362
+ upstream personal, educational and non-commercial use terms.
363
+ See [Third-party content](./docs/THIRD_PARTY_CONTENT.md).
364
+
331
365
  The npm launcher adds marketplace operations by calling the runtime's public
332
366
  `app-server` protocol; it does not patch or reimplement the Plugin subsystem.
333
367
  Run `zcode plugins --help` for the full command list. A typical third-party
@@ -460,6 +494,18 @@ Please open an issue first to discuss substantial changes. See
460
494
  [Development](./docs/DEVELOPMENT.md) for the local setup and validation
461
495
  commands, and [Releasing](./docs/RELEASING.md) for the release flow.
462
496
 
463
- ## License
497
+ ## License and attribution
498
+
499
+ This project's launcher, local TUI and other original source are MIT — see
500
+ [LICENSE](./LICENSE). That license does not relicense bundled dependencies,
501
+ upstream code or plugin assets.
502
+
503
+ ZCode's public first-party source is Apache-2.0. The npm package includes
504
+ [the license text](./LICENSES/Apache-2.0.txt), copies of upstream notices, and
505
+ [their source revision](./LICENSES/README.md). The extracted runtime has a
506
+ modification notice; `vendor/extraction.json` records its compatibility patches.
464
507
 
465
- MIT — see [LICENSE](./LICENSE).
508
+ Plugin manifests and embedded dependencies have their own license declarations.
509
+ The four document-related plugin packages are included in npm releases with
510
+ their original non-commercial skill licenses. See [Third-party content](./docs/THIRD_PARTY_CONTENT.md)
511
+ for the scope of these notices and the distribution policy.
@@ -0,0 +1,102 @@
1
+ # Third-party content in the published package
2
+
3
+ This project's original launcher, TUI and supporting code use the
4
+ [MIT license](../LICENSE). The npm package also contains upstream code and
5
+ dependencies; the MIT declaration in `package.json` does not replace their terms.
6
+
7
+ ## Source and release provenance
8
+
9
+ [zai-org/ZCode](https://github.com/zai-org/ZCode) publishes first-party source
10
+ under Apache-2.0. Its root notices explicitly preserve separate terms for
11
+ third-party code, dependencies, assets and native binaries.
12
+
13
+ This project extracts the compiled runtime from Desktop release artifacts,
14
+ rather than building that source tree. Release artifacts are pinned by URL and
15
+ SHA-512 in `zcode-runtime.lock.json`. Local development can instead use an
16
+ installed Desktop app. `vendor/extraction.json` records the source, version and
17
+ compatibility patches applied.
18
+
19
+ The [upstream notices shipped here](../LICENSES/README.md) come from a separately
20
+ pinned public source revision. That revision declares version 3.14.0; the current
21
+ runtime lock selects Desktop 3.14.1. The notices are a conservative upstream
22
+ inventory, not proof that the extracted binary was built from that exact commit
23
+ or that every listed component is included in this npm package. Review artifact
24
+ contents and applicable terms when updating the runtime.
25
+
26
+ ## Included components
27
+
28
+ | Component | Package location | Attribution and terms |
29
+ | --- | --- | --- |
30
+ | Extracted agent runtime | `vendor/zcode.cjs` | ZCode first-party source: Apache-2.0; embedded dependencies retain their own terms |
31
+ | Provider catalog | `vendor/provider/zcode-builtin.json` | Copied from the selected Desktop artifact; upstream first-party source: Apache-2.0 |
32
+ | Built-in plugin packages | `vendor/packages/*` | Per-package declarations and any nested license files; see below |
33
+ | Bundled npm dependencies | Inside runtime bundles and plugin `node_modules` | Original dependency licenses and notices |
34
+ | Local TUI adapter and configuration bridge | `vendor/node_modules/@zcode/tui`, `vendor/cli-config.cjs` | This project's MIT-licensed code and its dependencies |
35
+ | Public launcher | `bin/zcode.js` | This project's MIT-licensed code |
36
+ | Installed npm dependencies | `@earendil-works/pi-tui`, `playwright-core` and their dependencies | Their respective licenses, distributed with those packages |
37
+
38
+ The compiled runtime carries a notice identifying local modifications.
39
+ Synchronization retains the existing upstream content and adds compatibility
40
+ patches; the patch report is in `vendor/extraction.json`.
41
+
42
+ ## Plugin declarations
43
+
44
+ These are the declarations observed in the Desktop 3.14.1 packages, not a
45
+ replacement for nested dependency or asset licenses:
46
+
47
+ | Package directory | Manifest declaration |
48
+ | --- | --- |
49
+ | `browser-use-plugin` | MIT |
50
+ | `image-search-plugin` | Apache-2.0 |
51
+ | `node-repl-host` | No package-level license field; its public first-party source falls under the upstream root Apache-2.0 license |
52
+ | `skill-creator-plugin`, `plugin-creator-plugin`, `zcode-guide-plugin` | MIT |
53
+ | `zcode-cua-plugin`, `ios-simulator-plugin`, `android-emulator-plugin` | MIT |
54
+ | `restore-legacy-sessions-plugin` | MIT |
55
+
56
+ A package's manifest does not establish the license of every bundled asset.
57
+ For example, the public source repository describes Computer Use as a placeholder;
58
+ it must not be assumed identical to the implementation in a Desktop artifact.
59
+ Preserve the license and notice files distributed with dependencies.
60
+
61
+ ## Document plugins
62
+
63
+ The following Desktop packages declare `SEE LICENSE IN skills/<name>/LICENSE.txt`.
64
+ Their skill licenses state:
65
+
66
+ > Copyright (c) 2026 Z.ai All rights reserved.
67
+ >
68
+ > Permission is granted for personal, educational, and non-commercial use only.
69
+ >
70
+ > Commercial use is strictly prohibited without prior written permission from the author.
71
+
72
+ | Package directory | License file within the package |
73
+ | --- | --- |
74
+ | `documents-plugin` | `skills/docx/LICENSE.txt` |
75
+ | `pdf-plugin` | `skills/pdf/LICENSE.txt` |
76
+ | `presentations-plugin` | `skills/pptx/LICENSE.txt` |
77
+ | `spreadsheets-plugin` | `skills/xlsx/LICENSE.txt` |
78
+
79
+ This project includes these four packages in its non-commercial npm distribution
80
+ with their original skill license files. Their use restrictions remain in effect;
81
+ this project's MIT license does not replace those terms.
82
+
83
+ Synchronization copies these plugins from the selected Desktop source into
84
+ `vendor/packages/`, and `package.json` includes them in the npm package. The
85
+ installed-package smoke test verifies that all four plugins initialize and are
86
+ enabled. Package validation and installation checks also require their original
87
+ skill license files.
88
+
89
+ ## Notices shipped with the package
90
+
91
+ - [Apache-2.0 license](../LICENSES/Apache-2.0.txt)
92
+ - [Upstream NOTICE](../LICENSES/ZCode-NOTICE.md)
93
+ - [Upstream third-party notices](../LICENSES/ZCode-THIRD-PARTY-NOTICES.md)
94
+ - [Notice provenance and scope](../LICENSES/README.md)
95
+
96
+ These copies retain the upstream text with LF line endings. Relative links inside
97
+ them refer to the upstream source tree, not this repository. Upstream behavioral descriptions
98
+ apply to the distributions they describe; this CLI's behavior is documented in
99
+ its own README and configuration guide.
100
+
101
+ ZCode and Z.ai names identify the upstream project. This community client is
102
+ not affiliated with or endorsed by Z.ai.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zcode-app-cli",
3
- "version": "3.14.1-27",
3
+ "version": "3.14.3-27",
4
4
  "description": "Unofficial terminal client for the ZCode agent runtime",
5
5
  "keywords": [
6
6
  "agent",
@@ -38,6 +38,11 @@
38
38
  "docs/CONFIGURATION.zh-CN.md",
39
39
  "docs/PROVIDER_CONFIG.md",
40
40
  "docs/PROVIDER_CONFIG.zh-CN.md",
41
+ "docs/THIRD_PARTY_CONTENT.md",
42
+ "LICENSES/Apache-2.0.txt",
43
+ "LICENSES/README.md",
44
+ "LICENSES/ZCode-NOTICE.md",
45
+ "LICENSES/ZCode-THIRD-PARTY-NOTICES.md",
41
46
  "zcode-runtime.lock.json",
42
47
  "README.md",
43
48
  "LICENSE"
@@ -1,9 +1,9 @@
1
1
  {
2
- "appVersion": "3.14.1",
2
+ "appVersion": "3.14.3",
3
3
  "cliVersion": "0.16.9",
4
- "extractedAt": "2026-09-21T00:45:13.738Z",
5
- "sha512": "A9DWUap7niTm66ZSZ63vhOZElmjQgQf0yVL0nrLDW7dX7diO+GoAO8QbwD8E1tzPL6JI4Y8LTqk7jZzpjiuA1g==",
6
- "source": "https://cdn-zcode.z.ai/zcode/electron/releases/3.14.1/linux-x64/ZCode-3.14.1-linux-x64.deb",
4
+ "extractedAt": "2026-09-23T02:17:40.060Z",
5
+ "sha512": "VDYryL9bIYjM3uxRNJ8sRw5S5z9LBmRvvW1amQ9wEnhJBMc3Rlb2g8JvxWv04CPn0GgKHEJEZmWmLZuI6EYg1g==",
6
+ "source": "https://cdn-zcode.z.ai/zcode/electron/releases/3.14.3/linux-x64/ZCode-3.14.3-linux-x64.deb",
7
7
  "runtimeCapabilities": {
8
8
  "schemaVersion": 1,
9
9
  "cli": {
@@ -0,0 +1,29 @@
1
+ # bundled-skills
2
+
3
+ Skills that ship with the ZCode CLI as a built-in capability, outside the plugin system.
4
+
5
+ A skill lives here when a product feature depends on it: the feature's tools are registered
6
+ by the runtime, so the skill that teaches the model how to use them must be just as
7
+ unremovable. Unlike an official plugin, this pack is never listed in the plugin store, has no
8
+ enable/disable switch, cannot be uninstalled, and does not appear in the Settings skill list
9
+ or the composer's `$` skill picker. The runtime discovers its `skills/` directory as a
10
+ `source: "bundled"`, `scope: "system"` skill root on every start.
11
+
12
+ | Skill | Feature | Contract |
13
+ | ------------------- | ------------------------------------------------- | ------------------------------------ |
14
+ | `dynamic-workflows` | dynamic workflows (`/workflow`, `CreateWorkflow`) | `docs/dynamic-workflow/authoring.md` |
15
+
16
+ ## How it reaches users
17
+
18
+ - **Development and Electron desktop**: the directory is resolved on disk next to the CLI entry
19
+ (`packages/bundled-skills` relative to the entry, the same candidate walk official plugins
20
+ use) and read in place; nothing is copied.
21
+ - **SEA binaries**: `scripts/sea-bundled-skill-assets.mjs` embeds `skills/**` under the
22
+ `zcode-bundled-skills/` asset prefix. On start the CLI extracts them once into
23
+ `~/.zcode/cli/bundled-skills/<content-hash>/` and reads from there.
24
+ - **Remote hosts**: `scripts/prepare-prebuilds.mjs` stages the directory next to the remote
25
+ `zcode.cjs`, like the official plugin packages.
26
+
27
+ The resolver is `apps/zcode-cli/packages/bootstrap/src/app/bundled-skills.ts`. Every file
28
+ under `skills/dynamic-workflows/` is a required asset: a stage or seed that loses one refuses
29
+ the whole pack and logs a warning instead of shipping a skill with a missing reference file.