@coze/cli 0.3.2 → 0.3.3-alpha.05e9c5
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 +36 -0
- package/lib/cli.js +3 -3
- package/lib/fetch-client-DmaLBNmf.js +1 -0
- package/lib/{index-JxWKC7px.js → index-CEfCTKR1.js} +1 -1
- package/lib/send-message.worker.js +1 -1
- package/lib/session-task-refresh.worker.js +1 -1
- package/lib/task-worker-DXd41LkV.js +1 -0
- package/package.json +7 -8
- package/skills/manifest.json +6 -6
- package/skills/using-coze-cli/SKILL.md +36 -3
- package/skills/using-coze-cli/coze-claw/MODULE.md +1 -1
- package/skills/using-coze-cli/coze-code/MODULE.md +77 -15
- package/skills/using-coze-cli/coze-code/references/coze-code-message.md +33 -12
- package/skills/using-coze-cli/coze-code/references/coze-code-project.md +6 -4
- package/skills/using-coze-cli/coze-file/MODULE.md +1 -1
- package/skills/using-coze-cli/coze-generate/MODULE.md +1 -1
- package/lib/fetch-client-CgQGE-CR.js +0 -1
- package/lib/task-worker-BJO9Ixaq.js +0 -1
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 |
|