@coze/cli 0.3.2 → 0.3.3-alpha.078ca8

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
@@ -96,6 +96,8 @@ View and switch workspaces to set the default Space ID for subsequent commands.
96
96
  | `coze space list` | List all spaces under the current organization |
97
97
  | `coze space use <space_id>` | Set the default workspace |
98
98
 
99
+ > By default, when no Space ID is configured, the CLI auto-selects the **first** available space. Install the [`default-space` plugin](#coze-plugin--plugin-management) to instead resolve the **default workspace configured on the server** for the current organization.
100
+
99
101
  ### `coze code` — Coze Coding
100
102
 
101
103
  #### Project
@@ -836,6 +838,40 @@ coze config set upgrade.channel beta # track the beta channel
836
838
 
837
839
  Upgrade checks are automatically skipped in CI (the `CI` env var is set), for dev/local builds, and when `COZE_CLI_NO_UPDATE_NOTIFIER` is set. Version checks are throttled to at most once every **4 hours**; a failed background upgrade is retried at most once every **10 minutes**. In JSON output the hint is attached as `_notice.update` with a ready-to-run `command` field. See [`docs/design/auto-upgrade-and-skill-sync.md`](docs/design/auto-upgrade-and-skill-sync.md) for the full auto-upgrade and bundled-skill design.
838
840
 
841
+ ### `coze plugin` — Plugin Management
842
+
843
+ Manage opt-in CLI plugins. A plugin's feature is enabled **only after the plugin is installed**; otherwise the CLI behaves exactly as before. "Installing" a plugin simply writes a switch to the local configuration (`plugins.<id>.enabled`) — no network access required, so these commands work without login.
844
+
845
+ | Command | Description |
846
+ | -------------------------------- | ---------------------------------------------------- |
847
+ | `coze plugin list` | List all available plugins and their installed status |
848
+ | `coze plugin install <id>` | Install (enable) a plugin |
849
+ | `coze plugin uninstall <id>` | Uninstall (disable) a plugin |
850
+
851
+ ```bash
852
+ # List plugins and whether each is installed
853
+ coze plugin list
854
+
855
+ # Enable the default-space plugin
856
+ coze plugin install default-space
857
+
858
+ # Disable it again
859
+ coze plugin uninstall default-space
860
+ ```
861
+
862
+ #### Built-in plugin: `default-space`
863
+
864
+ Once installed, when you have **not** explicitly passed `--space-id`, the CLI resolves the **default workspace configured on the server** (for the current organization) instead of auto-selecting the first available space.
865
+
866
+ Resolution priority (highest to lowest):
867
+
868
+ 1. `--space-id` command-line flag
869
+ 2. Server-side default workspace (when `default-space` is installed and the organization has one set)
870
+ 3. Stored `spaceId` in configuration
871
+ 4. First available space (fallback)
872
+
873
+ > The default workspace is an organization-scoped concept. Under a personal account (no organization context), the plugin does nothing and the CLI falls back to the existing behavior.
874
+
839
875
  ### Other Commands
840
876
 
841
877
  | Command | Description |