@protolabsai/proto 0.23.0 → 0.24.1

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.
Files changed (51) hide show
  1. package/README.md +88 -1
  2. package/bundled/browser-automation/SKILL.md +358 -0
  3. package/cli.js +6036 -4676
  4. package/package.json +2 -2
  5. package/bundled/qc-helper/docs/_meta.ts +0 -30
  6. package/bundled/qc-helper/docs/common-workflow.md +0 -571
  7. package/bundled/qc-helper/docs/configuration/_meta.ts +0 -10
  8. package/bundled/qc-helper/docs/configuration/auth.md +0 -366
  9. package/bundled/qc-helper/docs/configuration/memory.md +0 -0
  10. package/bundled/qc-helper/docs/configuration/model-providers.md +0 -542
  11. package/bundled/qc-helper/docs/configuration/qwen-ignore.md +0 -55
  12. package/bundled/qc-helper/docs/configuration/settings.md +0 -661
  13. package/bundled/qc-helper/docs/configuration/themes.md +0 -160
  14. package/bundled/qc-helper/docs/configuration/trusted-folders.md +0 -61
  15. package/bundled/qc-helper/docs/extension/_meta.ts +0 -9
  16. package/bundled/qc-helper/docs/extension/extension-releasing.md +0 -204
  17. package/bundled/qc-helper/docs/extension/getting-started-extensions.md +0 -299
  18. package/bundled/qc-helper/docs/extension/introduction.md +0 -331
  19. package/bundled/qc-helper/docs/features/_meta.ts +0 -20
  20. package/bundled/qc-helper/docs/features/approval-mode.md +0 -263
  21. package/bundled/qc-helper/docs/features/arena.md +0 -218
  22. package/bundled/qc-helper/docs/features/checkpointing.md +0 -77
  23. package/bundled/qc-helper/docs/features/commands.md +0 -314
  24. package/bundled/qc-helper/docs/features/export.md +0 -51
  25. package/bundled/qc-helper/docs/features/followup-suggestions.md +0 -109
  26. package/bundled/qc-helper/docs/features/headless.md +0 -318
  27. package/bundled/qc-helper/docs/features/hooks.md +0 -356
  28. package/bundled/qc-helper/docs/features/language.md +0 -139
  29. package/bundled/qc-helper/docs/features/lsp.md +0 -453
  30. package/bundled/qc-helper/docs/features/mcp.md +0 -299
  31. package/bundled/qc-helper/docs/features/sandbox.md +0 -241
  32. package/bundled/qc-helper/docs/features/scheduled-tasks.md +0 -139
  33. package/bundled/qc-helper/docs/features/skills.md +0 -289
  34. package/bundled/qc-helper/docs/features/sub-agents.md +0 -353
  35. package/bundled/qc-helper/docs/features/token-caching.md +0 -29
  36. package/bundled/qc-helper/docs/ide-integration/_meta.ts +0 -4
  37. package/bundled/qc-helper/docs/ide-integration/ide-companion-spec.md +0 -182
  38. package/bundled/qc-helper/docs/ide-integration/ide-integration.md +0 -144
  39. package/bundled/qc-helper/docs/integration-github-action.md +0 -241
  40. package/bundled/qc-helper/docs/integration-jetbrains.md +0 -81
  41. package/bundled/qc-helper/docs/integration-vscode.md +0 -39
  42. package/bundled/qc-helper/docs/integration-zed.md +0 -72
  43. package/bundled/qc-helper/docs/overview.md +0 -65
  44. package/bundled/qc-helper/docs/quickstart.md +0 -273
  45. package/bundled/qc-helper/docs/reference/_meta.ts +0 -4
  46. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +0 -72
  47. package/bundled/qc-helper/docs/reference/sdk-api.md +0 -524
  48. package/bundled/qc-helper/docs/support/Uninstall.md +0 -42
  49. package/bundled/qc-helper/docs/support/_meta.ts +0 -6
  50. package/bundled/qc-helper/docs/support/tos-privacy.md +0 -112
  51. package/bundled/qc-helper/docs/support/troubleshooting.md +0 -123
@@ -1,123 +0,0 @@
1
- # Troubleshooting
2
-
3
- This guide provides solutions to common issues and debugging tips, including topics on:
4
-
5
- - Authentication or login errors
6
- - Frequently asked questions (FAQs)
7
- - Debugging tips
8
- - Existing GitHub Issues similar to yours or creating new Issues
9
-
10
- ## Authentication or login errors
11
-
12
- - **Error: `UNABLE_TO_GET_ISSUER_CERT_LOCALLY`, `UNABLE_TO_VERIFY_LEAF_SIGNATURE`, or `unable to get local issuer certificate`**
13
- - **Cause:** You may be on a corporate network with a firewall that intercepts and inspects SSL/TLS traffic. This often requires a custom root CA certificate to be trusted by Node.js.
14
- - **Solution:** Set the `NODE_EXTRA_CA_CERTS` environment variable to the absolute path of your corporate root CA certificate file.
15
- - Example: `export NODE_EXTRA_CA_CERTS=/path/to/your/corporate-ca.crt`
16
-
17
- - **Error: `Device authorization flow failed: fetch failed`**
18
- - **Cause:** Node.js could not reach Qwen OAuth endpoints (often a proxy or SSL/TLS trust issue). When available, Qwen Code will also print the underlying error cause (for example: `UNABLE_TO_VERIFY_LEAF_SIGNATURE`).
19
- - **Solution:**
20
- - Confirm you can access `https://chat.qwen.ai` from the same machine/network.
21
- - If you are behind a proxy, set it via `qwen --proxy <url>` (or the `proxy` setting in `settings.json`).
22
- - If your network uses a corporate TLS inspection CA, set `NODE_EXTRA_CA_CERTS` as described above.
23
-
24
- - **Issue: Unable to display UI after authentication failure**
25
- - **Cause:** If authentication fails after selecting an authentication type, the `security.auth.selectedType` setting may be persisted in `settings.json`. On restart, the CLI may get stuck trying to authenticate with the failed auth type and fail to display the UI.
26
- - **Solution:** Clear the `security.auth.selectedType` configuration item in your `settings.json` file:
27
- - Open `~/.qwen/settings.json` (or `./.qwen/settings.json` for project-specific settings)
28
- - Remove the `security.auth.selectedType` field
29
- - Restart the CLI to allow it to prompt for authentication again
30
-
31
- ## Frequently asked questions (FAQs)
32
-
33
- - **Q: How do I update Qwen Code to the latest version?**
34
- - A: If you installed it globally via `npm`, update it using the command `npm install -g @qwen-code/qwen-code@latest`. If you compiled it from source, pull the latest changes from the repository, and then rebuild using the command `npm run build`.
35
-
36
- - **Q: Where are the Qwen Code configuration or settings files stored?**
37
- - A: The Qwen Code configuration is stored in two `settings.json` files:
38
- 1. In your home directory: `~/.qwen/settings.json`.
39
- 2. In your project's root directory: `./.qwen/settings.json`.
40
-
41
- Refer to [Qwen Code Configuration](../configuration/settings) for more details.
42
-
43
- - **Q: Why don't I see cached token counts in my stats output?**
44
- - A: Cached token information is only displayed when cached tokens are being used. This feature is available for API key users (Qwen API key or Google Cloud Vertex AI) but not for OAuth users (such as Google Personal/Enterprise accounts like Google Gmail or Google Workspace, respectively). This is because the Qwen Code Assist API does not support cached content creation. You can still view your total token usage using the `/stats` command.
45
-
46
- ## Common error messages and solutions
47
-
48
- - **Error: `EADDRINUSE` (Address already in use) when starting an MCP server.**
49
- - **Cause:** Another process is already using the port that the MCP server is trying to bind to.
50
- - **Solution:**
51
- Either stop the other process that is using the port or configure the MCP server to use a different port.
52
-
53
- - **Error: Command not found (when attempting to run Qwen Code with `qwen`).**
54
- - **Cause:** The CLI is not correctly installed or it is not in your system's `PATH`.
55
- - **Solution:**
56
- The update depends on how you installed Qwen Code:
57
- - If you installed `qwen` globally, check that your `npm` global binary directory is in your `PATH`. You can update using the command `npm install -g @qwen-code/qwen-code@latest`.
58
- - If you are running `qwen` from source, ensure you are using the correct command to invoke it (e.g. `node packages/cli/dist/index.js ...`). To update, pull the latest changes from the repository, and then rebuild using the command `npm run build`.
59
-
60
- - **Error: `MODULE_NOT_FOUND` or import errors.**
61
- - **Cause:** Dependencies are not installed correctly, or the project hasn't been built.
62
- - **Solution:**
63
- 1. Run `npm install` to ensure all dependencies are present.
64
- 2. Run `npm run build` to compile the project.
65
- 3. Verify that the build completed successfully with `npm run start`.
66
-
67
- - **Error: "Operation not permitted", "Permission denied", or similar.**
68
- - **Cause:** When sandboxing is enabled, Qwen Code may attempt operations that are restricted by your sandbox configuration, such as writing outside the project directory or system temp directory.
69
- - **Solution:** Refer to the [Configuration: Sandboxing](../features/sandbox) documentation for more information, including how to customize your sandbox configuration.
70
-
71
- - **Qwen Code is not running in interactive mode in "CI" environments**
72
- - **Issue:** Qwen Code does not enter interactive mode (no prompt appears) if an environment variable starting with `CI_` (e.g. `CI_TOKEN`) is set. This is because the `is-in-ci` package, used by the underlying UI framework, detects these variables and assumes a non-interactive CI environment.
73
- - **Cause:** The `is-in-ci` package checks for the presence of `CI`, `CONTINUOUS_INTEGRATION`, or any environment variable with a `CI_` prefix. When any of these are found, it signals that the environment is non-interactive, which prevents the CLI from starting in its interactive mode.
74
- - **Solution:** If the `CI_` prefixed variable is not needed for the CLI to function, you can temporarily unset it for the command. e.g. `env -u CI_TOKEN qwen`
75
-
76
- - **DEBUG mode not working from project .env file**
77
- - **Issue:** Setting `DEBUG=true` in a project's `.env` file doesn't enable debug mode for the CLI.
78
- - **Cause:** The `DEBUG` and `DEBUG_MODE` variables are automatically excluded from project `.env` files to prevent interference with the CLI behavior.
79
- - **Solution:** Use a `.qwen/.env` file instead, or configure the `advanced.excludedEnvVars` setting in your `settings.json` to exclude fewer variables.
80
-
81
- ## IDE Companion not connecting
82
-
83
- - Ensure VS Code has a single workspace folder open.
84
- - Restart the integrated terminal after installing the extension so it inherits:
85
- - `QWEN_CODE_IDE_WORKSPACE_PATH`
86
- - `QWEN_CODE_IDE_SERVER_PORT`
87
- - If running in a container, verify `host.docker.internal` resolves. Otherwise, map the host appropriately.
88
- - Reinstall the companion with `/ide install` and use “Qwen Code: Run” in the Command Palette to verify it launches.
89
-
90
- ## Exit Codes
91
-
92
- The Qwen Code uses specific exit codes to indicate the reason for termination. This is especially useful for scripting and automation.
93
-
94
- | Exit Code | Error Type | Description |
95
- | --------- | -------------------------- | --------------------------------------------------------------------------------------------------- |
96
- | 41 | `FatalAuthenticationError` | An error occurred during the authentication process. |
97
- | 42 | `FatalInputError` | Invalid or missing input was provided to the CLI. (non-interactive mode only) |
98
- | 44 | `FatalSandboxError` | An error occurred with the sandboxing environment (e.g. Docker, Podman, or Seatbelt). |
99
- | 52 | `FatalConfigError` | A configuration file (`settings.json`) is invalid or contains errors. |
100
- | 53 | `FatalTurnLimitedError` | The maximum number of conversational turns for the session was reached. (non-interactive mode only) |
101
-
102
- ## Debugging Tips
103
-
104
- - **CLI debugging:**
105
- - Use the `--verbose` flag (if available) with CLI commands for more detailed output.
106
- - Check the CLI logs, often found in a user-specific configuration or cache directory.
107
-
108
- - **Core debugging:**
109
- - Check the server console output for error messages or stack traces.
110
- - Increase log verbosity if configurable.
111
- - Use Node.js debugging tools (e.g. `node --inspect`) if you need to step through server-side code.
112
-
113
- - **Tool issues:**
114
- - If a specific tool is failing, try to isolate the issue by running the simplest possible version of the command or operation the tool performs.
115
- - For `run_shell_command`, check that the command works directly in your shell first.
116
- - For _file system tools_, verify that paths are correct and check the permissions.
117
-
118
- - **Pre-flight checks:**
119
- - Always run `npm run preflight` before committing code. This can catch many common issues related to formatting, linting, and type errors.
120
-
121
- ## Existing GitHub Issues similar to yours or creating new Issues
122
-
123
- If you encounter an issue that was not covered here in this _Troubleshooting guide_, consider searching the Qwen Code [Issue tracker on GitHub](https://github.com/QwenLM/qwen-code/issues). If you can't find an issue similar to yours, consider creating a new GitHub Issue with a detailed description. Pull requests are also welcome!