|
| 1 | +# Keeping Your CALM Tools Up to Date |
| 2 | + |
| 3 | +We make frequent updates to improve your experience with CALM. This page explains how to ensure you're always using the latest versions of all CALM tools. |
| 4 | + |
| 5 | +## CALM CLI |
| 6 | + |
| 7 | +The CALM CLI (`@finos/calm-cli`) is the core command-line tool for working with CALM architecture files. |
| 8 | + |
| 9 | +### Check Your Current Version |
| 10 | + |
| 11 | +```bash |
| 12 | +calm --version |
| 13 | +``` |
| 14 | + |
| 15 | +### Update to the Latest Version |
| 16 | + |
| 17 | +To update the CALM CLI to the latest version, run: |
| 18 | + |
| 19 | +```bash |
| 20 | +npm install -g @finos/calm-cli |
| 21 | +``` |
| 22 | + |
| 23 | +This will fetch and install the latest release from npm. We recommend doing this regularly, especially if you encounter any issues or want to use new features. |
| 24 | + |
| 25 | +### Verify the Update |
| 26 | + |
| 27 | +After updating, verify the new version: |
| 28 | + |
| 29 | +```bash |
| 30 | +calm --version |
| 31 | +``` |
| 32 | + |
| 33 | +## CALM VS Code Extension |
| 34 | + |
| 35 | +The CALM VS Code Extension provides syntax highlighting, validation, and IntelliSense for CALM JSON files. |
| 36 | + |
| 37 | +### Check for Updates |
| 38 | + |
| 39 | +1. Open VS Code |
| 40 | +2. Click on the Extensions icon in the sidebar (or press `Cmd+Shift+X` / `Ctrl+Shift+X`) |
| 41 | +3. Search for "CALM" in your installed extensions |
| 42 | +4. If an update is available, you'll see an "Update" button |
| 43 | + |
| 44 | +### Enable Auto-Updates |
| 45 | + |
| 46 | +To ensure you always have the latest version: |
| 47 | + |
| 48 | +1. Open VS Code Settings (`Cmd+,` / `Ctrl+,`) |
| 49 | +2. Search for "extensions auto update" |
| 50 | +3. Set **Extensions: Auto Update** to "All Extensions" or "Only Enabled Extensions" |
| 51 | + |
| 52 | +### Manual Update |
| 53 | + |
| 54 | +If auto-update is disabled, you can manually update: |
| 55 | + |
| 56 | +1. Go to the Extensions view |
| 57 | +2. Find the CALM extension |
| 58 | +3. Click the gear icon and select "Check for Updates" |
| 59 | +4. Click "Update" if available |
| 60 | + |
| 61 | +## CALM Copilot Chatmode |
| 62 | + |
| 63 | +The CALM Copilot Chatmode enhances GitHub Copilot with deep knowledge of the CALM specification, making it an expert assistant for architecture authoring. |
| 64 | + |
| 65 | +### What is a Chatmode? |
| 66 | + |
| 67 | +Chatmodes are specialized configurations for GitHub Copilot Chat that provide domain-specific expertise. The CALM chatmode includes: |
| 68 | +- Complete CALM schema knowledge |
| 69 | +- Best practices for architecture modeling |
| 70 | +- Examples and patterns |
| 71 | + |
| 72 | +### Install or Update the Chatmode |
| 73 | + |
| 74 | +Use the CALM CLI to install or update the chatmode: |
| 75 | + |
| 76 | +```bash |
| 77 | +calm copilot-chatmode |
| 78 | +``` |
| 79 | + |
| 80 | +This command will: |
| 81 | +- Create or update `.github/copilot-instructions.md` in your repository |
| 82 | +- Download the latest chatmode configuration from the CALM project |
| 83 | +- Ensure you have the most up-to-date CALM expertise for Copilot |
| 84 | + |
| 85 | +### Apply the Update |
| 86 | + |
| 87 | +After installing or updating the chatmode: |
| 88 | + |
| 89 | +1. **Start a new Copilot Chat session** in VS Code |
| 90 | + - Close any existing chat panels |
| 91 | + - Open a fresh chat session (click the Copilot chat icon or use `Cmd+Shift+I` / `Ctrl+Shift+I`) |
| 92 | + |
| 93 | +2. The updated chatmode will be active in your new chat session |
| 94 | + |
| 95 | +**Note:** You don't need to restart VS Code - just start a new chat session! |
| 96 | + |
| 97 | +## Why Keep Updated? |
| 98 | + |
| 99 | +Regular updates ensure you have: |
| 100 | +- **Latest features** - New capabilities and commands |
| 101 | +- **Bug fixes** - Resolved issues and improved stability |
| 102 | +- **Better performance** - Optimizations and speed improvements |
| 103 | +- **Security patches** - Important security updates |
| 104 | +- **Updated documentation** - Accurate help and examples |
| 105 | +- **Schema updates** - Support for new CALM specification versions |
| 106 | + |
| 107 | +## Troubleshooting |
| 108 | + |
| 109 | +### CLI Issues |
| 110 | + |
| 111 | +If you experience issues after updating the CLI: |
| 112 | + |
| 113 | +1. Clear npm cache: `npm cache clean --force` |
| 114 | +2. Reinstall: `npm uninstall -g @finos/calm-cli && npm install -g @finos/calm-cli` |
| 115 | +3. Check Node.js version: `node --version` (Node.js 18+ recommended) |
| 116 | + |
| 117 | +### VS Code Extension Issues |
| 118 | + |
| 119 | +If the extension isn't working properly: |
| 120 | + |
| 121 | +1. Reload VS Code window |
| 122 | +2. Disable and re-enable the extension |
| 123 | +3. Uninstall and reinstall the extension |
| 124 | +4. Check the Output panel (View → Output → select "CALM" from dropdown) |
| 125 | + |
| 126 | +### Chatmode Issues |
| 127 | + |
| 128 | +If Copilot doesn't seem to be using the chatmode: |
| 129 | + |
| 130 | +1. Verify `.github/copilot-instructions.md` exists in your repository root |
| 131 | +2. Run `calm copilot-chatmode` to ensure it's up to date |
| 132 | +3. Start a completely new chat session (close and reopen) |
| 133 | +4. Ensure GitHub Copilot is active (check status bar) |
| 134 | +5. Make sure you're chatting from within your repository directory |
| 135 | + |
| 136 | +## Getting Help |
| 137 | + |
| 138 | +If you continue to experience issues: |
| 139 | + |
| 140 | +- Check the [CALM documentation](https://calm.finos.org) |
| 141 | +- Visit the [GitHub repository](https://github.com/finos/architecture-as-code) |
| 142 | +- Open an issue on GitHub |
| 143 | + |
0 commit comments