@unity-china/codely-cli 1.0.0-rc.47 → 1.0.0-rc.49

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.
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: codely-guide
3
+ description: >-
4
+ Codely platform guide. Activate when the user asks about Model Config, Model
5
+ Slot Overrides, Skills, Extension, MCP Server, Hooks, multi-workspace,
6
+ editor view, Unity Insight, Unity Tools, LSP CLI, pricing, billing, usage,
7
+ FAQ, or any how-to / troubleshooting question about Codely. Fetches the
8
+ latest answer from the official docs site (https://codely-docs.tuanjie.cn).
9
+ This skill should be used proactively without asking the user for
10
+ confirmation.
11
+ ---
12
+
13
+ # Codely Guide
14
+
15
+ ## Online Docs Lookup (Primary)
16
+
17
+ All URLs are under `https://codely-docs.tuanjie.cn`.
18
+
19
+ ### Step 1: Always try FAQ first
20
+
21
+ When the user asks a usage / how-to / troubleshooting / pricing question,
22
+ **always fetch the FAQ page first**:
23
+
24
+ `/faq/common-questions`
25
+
26
+ In the `prompt` parameter, specify what information to extract (e.g., "Extract
27
+ all information about how to configure Hooks, including setup steps and
28
+ examples" or "Extract all pricing, billing, and subscription-related
29
+ information").
30
+
31
+ If the FAQ page contains a sufficient answer, respond to the user based on the
32
+ FAQ content. Do not fetch additional pages.
33
+
34
+ ### Step 2: Fall back to the feature-specific page
35
+
36
+ If the FAQ does not cover the question, fetch the corresponding feature page
37
+ from the table below:
38
+
39
+ | Topic | URL path |
40
+ | ------------------------------ | ----------------------------------------------- |
41
+ | Model Config | `/features-introduction/model-config` |
42
+ | Model Slot Overrides | `/features-introduction/model-slot-overrides` |
43
+ | Skills | `/features-introduction/skills-experimental` |
44
+ | Extension | `/features-introduction/extensions` |
45
+ | MCP Server | `/features-introduction/MCP-guide` |
46
+ | Hooks | `/features-introduction/Hooks` |
47
+ | 多工作区 (Multi-workspace) | `/features-introduction/multiworkspace` |
48
+ | 编辑器视图 (Editor View) | `/features-introduction/unity-view-user-manual` |
49
+ | Unity Insight | `/features-introduction/unity-insight-guide` |
50
+ | Unity Tools | `/features-introduction/unity-tools-guide` |
51
+ | Language Server Protocol - CLI | `/features-introduction/lsp-cli` |
52
+
53
+ ### Answering rules
54
+
55
+ 1. Answer using only the fetched content. Do not fabricate information not
56
+ present on the page.
57
+ 2. If neither the FAQ nor the feature page contains enough detail, tell the
58
+ user and link to the full page URL.
59
+
60
+ > **重要:** 当用户询问收费、价格、计费相关问题时,必须去 FAQ 页面
61
+ > (`/faq/common-questions`) 查询,**不要**去 usage 页面查询。Usage 页面
62
+ > 仅展示用量数据,不包含收费标准。
63
+
64
+ ## Offline References (Fallback)
65
+
66
+ If the online docs are unavailable, or for Codely topics not listed above,
67
+ consult the offline references in `references/`:
68
+
69
+ - **Codely App (Tuanjie Cowork)**: [references/app.md](references/app.md)
70
+ - Desktop application: unified interface surfaces (sidebar, chat canvas),
71
+ agent settings & permissions, scheduled tasks, project management.
72
+
73
+ ## Fallback
74
+
75
+ If the user asks about a Codely topic not covered above, fetch the docs
76
+ homepage `https://codely-docs.tuanjie.cn` to discover available documentation
77
+ pages, then fetch the most relevant page.
@@ -0,0 +1,125 @@
1
+ # Codely App (Cowork) Reference
2
+
3
+ Cowork is a standalone desktop application that provides a unified GUI
4
+ platform to orchestrate agent activities independently of a terminal or IDE. It
5
+ shares the same underlying agentic capabilities as Codely CLI.
6
+
7
+ > [!NOTE] Cowork coexists with **Codely CLI**. While the CLI provides
8
+ > a terminal-based experience, Cowork offers a full desktop application with
9
+ > graphical project management, visual settings, and integrated workspaces. Both
10
+ > share the same settings hierarchy, skills system, and MCP support.
11
+
12
+ ## 1. Unified Interface Surfaces
13
+
14
+ ### Left-hand Sidebar
15
+
16
+ The sidebar provides session history, workspace management, and quick actions.
17
+
18
+ - **New Session**: Start a new chat session with the agent.
19
+ - **Asset Marketplace**: Browse and install assets via natural language.
20
+ - **Search**: Search across session history.
21
+ - **History**: Scrollable list of past sessions, grouped by time period
22
+ (Today, Yesterday, Last 7 Days, etc.).
23
+ - **Workspaces**: In Hub mode, the sidebar shows multiple workspace sections,
24
+ each with its own session list. Workspaces can be opened, closed,
25
+ reordered, and pinned.
26
+ - **User Profile**: Bottom of sidebar — access Settings, Theme switching,
27
+ Account, and Login/Logout.
28
+
29
+ ### Settings Page
30
+
31
+ Accessed via the User Profile menu or the settings gear icon. Organized into
32
+ sidebar groups:
33
+
34
+ **Workspace group:**
35
+
36
+ - **General**: Chat settings (wrap codeblocks, session titles, format
37
+ markdown), notifications, appearance (language, font size), autocomplete
38
+ settings, and external script editor.
39
+ - **Devices**: Remote tunnel and keep-awake settings (Tauri shell only).
40
+ - **Shortcuts**: Keyboard shortcut reference.
41
+
42
+ **Personal group:**
43
+
44
+ - **Account & Usage**: Opens the usage dashboard in a browser.
45
+
46
+ **Capabilities group:**
47
+
48
+ - **Models**: Custom model profile management.
49
+ - **Skills**: Manage skills (list, enable/disable, install/uninstall).
50
+ - **Subagents**: Manage custom subagent definitions.
51
+ - **Commands**: Manage custom slash commands.
52
+ - **Extensions**: Manage installed extensions (bundles of skills, agents, and
53
+ MCP servers).
54
+ - **MCP Servers**: Add, edit, and remove MCP server configurations.
55
+
56
+ **Help group:**
57
+
58
+ - **Docs**: Opens external documentation.
59
+
60
+ ### Chat Canvas
61
+
62
+ The main panel for direct agent interaction, planning, and task execution.
63
+
64
+ - **Slash Commands**: Type `/` to invoke built-in workflows. Available
65
+ commands include `/manage skills`, `/manage commands`, `/manage extensions`,
66
+ `/manage mcp`, `/manage subagents`, `/switch model`, `/attach file`,
67
+ `/mention file`, `/clear conversation`, `/account usage`, and more.
68
+ - **@ Mentions**: Type `@` to attach context directly to your message.
69
+ Supported categories include files and folders, previous conversations, and
70
+ MCP tools.
71
+ - **Media Uploads**: Drag-and-drop or paste images and files into the chat
72
+ canvas to share them with the agent. Uploaded media is analyzed via the
73
+ `analyze_multimedia` tool.
74
+
75
+ ## 2. Agent Settings & Permissions
76
+
77
+ The **Settings** page provides global and project-level controls for agent
78
+ behavior, security, and permissions. All settings are stored in JSON
79
+ configuration files and shared with Codely CLI.
80
+
81
+ ### Global Settings
82
+
83
+ Path: `~/.codely-cli/settings.json`
84
+
85
+ These settings apply across all projects and conversations:
86
+
87
+ - **Model Selection**: Choose the active model (e.g., `codely-core`,
88
+ `codely-flash`, `codely-air`). Configured via `model-config.json`.
89
+ - **Authentication**: Configure auth method via `selectedAuthType`
90
+ (e.g., `codely-oauth`).
91
+ - **MCP Servers**: Add HTTP(S)-based MCP server endpoints under
92
+ `mcpServers`.
93
+ - **Unity Insight**: Enable/disable Unity project analysis via
94
+ `unityInsight.enabled`.
95
+ - **IDE Mode**: Toggle `ideMode` for IDE integration features.
96
+
97
+ ### Project-Level Settings
98
+
99
+ Path: `<project-root>/.codely-cli/settings.json`
100
+
101
+ Each project can override specific fields from global settings:
102
+
103
+ - **Model Override**: Use a different model for a specific project (e.g.,
104
+ `codely-core` for large codebases, `codely-flash` for lightweight tasks).
105
+ - **MCP Servers**: Project-level servers are merged with global servers.
106
+ - **Skills**: Project-level skills in `.codely-cli/skills/` can be shared via
107
+ Git. Team members clone and use the in-app Skills manager to install or
108
+ enable them.
109
+
110
+ > **Security**: Do not commit API keys or tokens in project-level settings.
111
+ > Store secrets in user-level settings or local overrides excluded from Git.
112
+
113
+ ## 3. Applying Changes
114
+
115
+ | Change | How to apply |
116
+ | :-------------------------- | :------------------------------------------- |
117
+ | Skill content / new install | Use in-app Skills manager, or restart Cowork |
118
+ | Subagent (`agents/*.toml`) | Restart Cowork or open new session |
119
+ | Settings / MCP / Model | Restart Cowork |
120
+
121
+ ## 4. FAQ
122
+
123
+ For common questions and troubleshooting (including pricing and billing),
124
+ see the official FAQ page:
125
+ <https://codely-docs.tuanjie.cn/faq/common-questions>
@@ -0,0 +1,145 @@
1
+ ---
2
+ name: tuanjie-cli
3
+ description: Manage Tuanjie Engine editors, project templates, and projects through the Windows-only tuanjie-cli. Use on Windows when the user asks to list or install Tuanjie editor versions, manage editor modules or install paths, list or download templates, register, inspect, create, remove, or open a Tuanjie project, or uninstall an editor.
4
+ allowedTools:
5
+ - run_shell_command
6
+ ---
7
+
8
+ # tuanjie-cli
9
+
10
+ Use tuanjie-cli for editor and project management. Read
11
+ [commands.md](references/commands.md) before constructing a command when exact
12
+ arguments or current implementation limits matter.
13
+
14
+ ## Invoke the executable
15
+
16
+ Cowork places its bundled `tuanjie.exe` executable at the front of the child
17
+ process `PATH`. Invoke it by command name. Do not run setup or path-discovery
18
+ commands before the requested command.
19
+
20
+ ```powershell
21
+ tuanjie.exe editors list-installed
22
+ ```
23
+
24
+ If `tuanjie.exe` cannot be resolved, report that Cowork must be restarted or
25
+ updated; do not search the filesystem.
26
+
27
+ Always quote user-provided paths by passing them as PowerShell arguments; do
28
+ not concatenate them into a command string.
29
+
30
+ ## Operating rules
31
+
32
+ 1. Use this skill only on Windows. On macOS, Linux, or any other platform,
33
+ report that tuanjie-cli is currently unsupported and do not invoke it.
34
+ 2. Use long command and option names for clarity.
35
+ 3. Every version argument passed to the CLI must use the public `1.x.x`
36
+ semantic version shown by Hub, for example `1.6.11`. Never pass the internal
37
+ editor version such as `2022.3.61t12`. When output contains both forms, use
38
+ the `1.x.x` value.
39
+ 4. Do not add `--json`. Preserve the CLI's human-readable output and live
40
+ progress in the standard terminal tool UI.
41
+ 5. Inspect current state before changing it:
42
+ - Before installing an editor, run `editors list-releases` and
43
+ `editors list-installed`.
44
+ - Before installing modules, run `install-modules <semver> --list`.
45
+ - Before uninstalling, run `editors list-installed`.
46
+ - Before removing a project, run `projects info <path>`.
47
+ 6. Treat editor installation and module installation as long-running
48
+ foreground commands. Wait for completion and report the final output.
49
+ 7. Never run `uninstall` or `projects remove` unless the user explicitly
50
+ requested that exact destructive action. If intent is ambiguous, ask for
51
+ confirmation after showing the resolved version or project path.
52
+ 8. Prefer a specific module list over `--all`. Use `--all` only when the user
53
+ explicitly requests every available module.
54
+ 9. Report command failures faithfully. Do not claim success based only on a
55
+ zero exit code when output says the operation is unsupported.
56
+ 10. Before using `template`, `projects create`, or the implemented `open`
57
+ workflow, verify that `template` appears in
58
+ `tuanjie.exe --help`. If it
59
+ does not, report that the installed tuanjie-cli is outdated.
60
+
61
+ ## Common workflows
62
+
63
+ ### List editor versions
64
+
65
+ ```powershell
66
+ tuanjie.exe editors list-releases
67
+ tuanjie.exe editors list-installed
68
+ ```
69
+
70
+ ### Install an editor
71
+
72
+ Confirm that the requested semantic version appears in `list-releases`, then:
73
+
74
+ ```powershell
75
+ tuanjie.exe install <semver>
76
+ ```
77
+
78
+ To include selected modules, repeat `--module`:
79
+
80
+ ```powershell
81
+ tuanjie.exe install <semver> --module <module-id-1> --module <module-id-2>
82
+ ```
83
+
84
+ ### Manage modules
85
+
86
+ ```powershell
87
+ tuanjie.exe install-modules <semver> --list
88
+ tuanjie.exe install-modules <semver> --module <module-id>
89
+ ```
90
+
91
+ ### Manage the install path
92
+
93
+ ```powershell
94
+ tuanjie.exe install-path --get
95
+ tuanjie.exe install-path --set '<absolute-path>'
96
+ ```
97
+
98
+ ### Manage registered projects
99
+
100
+ ```powershell
101
+ tuanjie.exe projects list
102
+ tuanjie.exe projects info '<project-path>'
103
+ tuanjie.exe projects add '<project-path>'
104
+ ```
105
+
106
+ `projects remove` removes only the Hub registry entry according to the current
107
+ CLI documentation, but it is still destructive registry state and requires
108
+ explicit user intent.
109
+
110
+ ### Manage project templates
111
+
112
+ The editor version must already be installed. List templates before choosing
113
+ one:
114
+
115
+ ```powershell
116
+ tuanjie.exe template list <semver>
117
+ tuanjie.exe template download <semver> '<template-name>'
118
+ ```
119
+
120
+ Use `--upgrade` with `template download` only when the user asks to update an
121
+ existing template.
122
+
123
+ ### Create a project
124
+
125
+ Before creation, verify the editor is installed and list valid templates for
126
+ that version. Obtain the project name, parent directory, editor semantic
127
+ version, and exact template ID from the user or unambiguous context.
128
+
129
+ ```powershell
130
+ tuanjie.exe projects create '<name>' --path '<parent-directory>' --editor-version <semver> --template '<template-id>'
131
+ ```
132
+
133
+ Add `--uos-enabled` only when requested. If `--path` is omitted, the CLI uses
134
+ the project directory configured in Hub.
135
+
136
+ ### Open a project
137
+
138
+ By default, the CLI reads the required editor version from the project:
139
+
140
+ ```powershell
141
+ tuanjie.exe open '<project-path>'
142
+ ```
143
+
144
+ Use `--editor-version <semver>` only when the user explicitly requests a
145
+ different editor version. On Windows, leave `--architecture` unset.
@@ -0,0 +1,138 @@
1
+ # tuanjie-cli command reference
2
+
3
+ This CLI skill is supported only on Windows.
4
+
5
+ The executable is named `tuanjie.exe`. Run `<exe> <command> --help` if the
6
+ installed CLI differs from this reference.
7
+
8
+ ## Version arguments
9
+
10
+ Every `<semver>` and `--editor-version` argument below requires the public
11
+ `1.x.x` version reported by Hub, such as `1.6.11`. Do not pass the internal
12
+ editor version, such as `2022.3.61t12`. If a command output shows both values,
13
+ select the `1.x.x` value for subsequent commands.
14
+
15
+ ## Editors
16
+
17
+ ```text
18
+ editors list-releases [--architecture <value>]
19
+ editors list-installed [--architecture <value>]
20
+ editors add <paths...>
21
+ ```
22
+
23
+ - `list-releases` lists downloadable releases.
24
+ - `list-installed` lists installed editors and their locations/platforms.
25
+ - `add` accepts an editor root, an `Editor` directory, or an editor executable
26
+ path. On Windows, directory inputs are resolved to `Editor/Tuanjie.exe`.
27
+ - `--architecture` is intended for macOS. Leave it unset on Windows.
28
+
29
+ ## Install an editor
30
+
31
+ ```text
32
+ install <semver> [--module <id> ...] [--childModules]
33
+ ```
34
+
35
+ - `<semver>` is the public `1.x.x` version, such as `1.9.3`; it is not the
36
+ internal `2022.x.x` editor version.
37
+ - Repeat `--module` for multiple module IDs.
38
+ - `--childModules` defaults to true and expands selected parent modules to
39
+ include their child modules.
40
+ - The command waits for installation progress to finish.
41
+
42
+ ## Editor modules
43
+
44
+ ```text
45
+ install-modules <semver> --list
46
+ install-modules <semver> --module <id> ... [--childModules]
47
+ install-modules <semver> --all [--childModules]
48
+ ```
49
+
50
+ - The editor version must already be installed.
51
+ - Use `--list` to obtain valid module IDs and installation state.
52
+ - Repeat `--module` for multiple module IDs.
53
+ - `--all` installs all currently uninstalled modules.
54
+ - `--childModules` defaults to true.
55
+
56
+ ## Install path
57
+
58
+ ```text
59
+ install-path --get
60
+ install-path --set <path>
61
+ ```
62
+
63
+ `--get` defaults to true when `--set` is absent.
64
+
65
+ ## Uninstall an editor
66
+
67
+ ```text
68
+ uninstall <semver> [--architecture <value>]
69
+ ```
70
+
71
+ - Confirm the semantic version against `editors list-installed`.
72
+ - `--architecture` is normally unnecessary on Windows.
73
+ - This is destructive and must follow the confirmation rule in `SKILL.md`.
74
+
75
+ ## Projects
76
+
77
+ ```text
78
+ projects list [pattern]
79
+ projects add <paths...>
80
+ projects remove <paths...>
81
+ projects info <path>
82
+ projects create <name> [--path <parent-directory>]
83
+ --editor-version <semver> --template <template-id>
84
+ [--architecture <value>] [--uos-enabled]
85
+ ```
86
+
87
+ - `list` optionally filters by a case-insensitive title/path substring.
88
+ - `add` registers existing Tuanjie project directories with Hub.
89
+ - `remove` removes projects from the Hub registry without an interactive
90
+ confirmation. The CLI source indicates registry removal, not filesystem
91
+ deletion.
92
+ - `info` reports title, path, editor version, architecture, modification time,
93
+ cloud metadata, arguments, and project size.
94
+ - `create` creates and registers a project. `--editor-version` and `--template`
95
+ are required.
96
+ - When `--path` is omitted, `create` uses the project directory configured in
97
+ Hub.
98
+ - Obtain template IDs from `template list <semver>`.
99
+ - `--uos-enabled` enables the UOS template variant.
100
+
101
+ ## Project templates
102
+
103
+ ```text
104
+ template list <semver>
105
+ template download <semver> <template-name> [--upgrade]
106
+ ```
107
+
108
+ - The semantic editor version must be installed.
109
+ - `list` returns template IDs, display names, status, and versions.
110
+ - `download` downloads a remote template and waits for completion.
111
+ - `--upgrade` updates an existing template; omit it for a normal download.
112
+
113
+ ## Open a project
114
+
115
+ ```text
116
+ open <path> [--editor-version <semver>] [--architecture <value>]
117
+ ```
118
+
119
+ - Without `--editor-version`, the command reads the required version from the
120
+ project's settings.
121
+ - With `--editor-version`, the public semantic version is resolved to the
122
+ editor's internal version.
123
+ - The command delegates to Hub's project opening service.
124
+ - `--architecture` is intended for macOS; leave it unset on Windows.
125
+
126
+ ## Version compatibility
127
+
128
+ The current command set includes `template`, implemented `projects create`,
129
+ and implemented `open`. Older binaries may expose older help text while those
130
+ operations are unavailable. Check top-level `--help`; if `template` is absent,
131
+ do not attempt these newer workflows.
132
+
133
+ ## Exit and output handling
134
+
135
+ - Preserve the CLI's human-readable stdout and live progress output.
136
+ - Installation and uninstallation may emit progress before the final result.
137
+ - The top-level CLI error handler may print help and exit with code 0 for some
138
+ argument errors. Check output content as well as the process exit code.