@gitlab/opencode-gitlab-plugin 1.0.4 → 1.0.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
4
4
 
5
+ ## [1.0.5](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/compare/v1.0.4...v1.0.5) (2026-01-07)
6
+
7
+
8
+ ### 📚 Documentation
9
+
10
+ * add required GitLab handbook documentation files ([46a2a53](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/commit/46a2a5302330b24e5b7506bdfc70fe0141ce16ed))
11
+
5
12
  ## [1.0.4](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/compare/v1.0.3...v1.0.4) (2026-01-07)
6
13
 
7
14
 
package/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ Copyright (c) 2011-present GitLab Inc.
2
+
3
+ Portions of this software are licensed as follows:
4
+
5
+ * All content residing under the "doc/" directory of this repository is licensed under "Creative Commons: CC BY-SA 4.0 license".
6
+ * All content that resides under the "ee/" directory of this repository, if that directory exists, is licensed under the license defined in "ee/LICENSE".
7
+ * All content that resides under the "jh/" directory of this repository, if that directory exists, is licensed under the license defined in "jh/LICENSE".
8
+ * All client-side JavaScript (when served directly or after being compiled, arranged, augmented, or combined), is licensed under the "MIT Expat" license.
9
+ * All third party components incorporated into the GitLab Software are licensed under the original license provided by the owner of the applicable component.
10
+ * Content outside of the above mentioned directories or restrictions above is available under the "MIT Expat" license as defined below.
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
package/README.md CHANGED
@@ -1131,129 +1131,44 @@ The plugin enforces HTTPS for all API calls. HTTP URLs are not supported.
1131
1131
 
1132
1132
  ## 🤝 Contributing
1133
1133
 
1134
- Contributions are welcome! Please follow these guidelines:
1134
+ Contributions are welcome! Please see our [Contributing Guide](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/-/blob/main/CONTRIBUTING.md) for detailed guidelines on:
1135
1135
 
1136
- ### Contribution Workflow
1136
+ - Code style and conventions
1137
+ - Development workflow
1138
+ - Testing requirements
1139
+ - Submitting merge requests
1140
+ - Developer Certificate of Origin and License
1137
1141
 
1138
- ```mermaid
1139
- graph TD
1140
- A[Fork Repository] --> B[Create Feature Branch]
1141
- B --> C[Make Changes]
1142
- C --> D[Write Tests]
1143
- D --> E[Run Linting]
1144
- E --> F[Commit with Convention]
1145
- F --> G[Push to Fork]
1146
- G --> H[Create Merge Request]
1147
- H --> I[Code Review]
1148
- I --> J{Approved?}
1149
- J -->|Yes| K[Merge to Main]
1150
- J -->|No| C
1151
- K --> L[Automated Release]
1152
- ```
1142
+ **Quick Start for Contributors**:
1153
1143
 
1154
- ### Steps to Contribute
1144
+ 1. **Commit Messages**: Use conventional commits format
1155
1145
 
1156
- 1. **Fork the repository**
1157
-
1158
- ```bash
1159
- # Fork on GitLab UI, then clone
1160
- git clone https://gitlab.com/YOUR_USERNAME/editor-extensions/opencode-gitlab-plugin.git
1161
1146
  ```
1162
-
1163
- 2. **Create a feature branch**
1164
-
1165
- ```bash
1166
- git checkout -b feat/my-new-feature
1147
+ feat(scope): add new feature
1148
+ fix(scope): fix bug
1149
+ docs(scope): update documentation
1167
1150
  ```
1168
1151
 
1169
- 3. **Make your changes**
1170
- - Follow TypeScript best practices
1171
- - Add JSDoc comments for public APIs
1172
- - Update documentation if needed
1173
-
1174
- 4. **Run quality checks**
1152
+ 2. **Code Quality**: Ensure all checks pass
1175
1153
 
1176
1154
  ```bash
1177
1155
  npm run lint
1178
- npm run format
1179
- npm run build
1180
1156
  npm test
1181
1157
  ```
1182
1158
 
1183
- 5. **Commit with conventional commits**
1184
-
1185
- ```bash
1186
- git commit -m "feat: add new tool for project milestones"
1187
- ```
1188
-
1189
- 6. **Push and create MR**
1190
-
1191
- ```bash
1192
- git push origin feat/my-new-feature
1193
- # Create merge request on GitLab
1194
- ```
1195
-
1196
- ### Code Style
1197
-
1198
- - **TypeScript**: Strict mode enabled
1199
- - **ESLint**: Follow configured rules
1200
- - **Prettier**: Auto-format on commit
1201
- - **Line Length**: 100 characters max
1202
- - **Indentation**: 2 spaces, no tabs
1203
-
1204
- ### Adding New Tools
1205
-
1206
- To
1207
-
1208
- ---
1209
-
1210
- ## Assistant
1211
-
1212
- add a new GitLab API tool:
1213
-
1214
- 1. **Add API method to GitLabApiClient**
1215
-
1216
- ```typescript
1217
- async getProjectMilestones(projectId: string) {
1218
- const encodedProject = this.encodeProjectId(projectId);
1219
- return this.fetch<Record<string, unknown>[]>(
1220
- 'GET',
1221
- `/projects/${encodedProject}/milestones`
1222
- );
1223
- }
1224
- ```
1225
-
1226
- 2. **Add tool definition**
1227
-
1228
- ```typescript
1229
- gitlab_list_milestones: tool({
1230
- description: 'List milestones for a project',
1231
- args: {
1232
- project_id: z.string().describe('The project ID or path'),
1233
- state: z.enum(['active', 'closed', 'all']).optional(),
1234
- },
1235
- execute: async (args, _ctx) => {
1236
- const client = getGitLabClient();
1237
- const milestones = await client.getProjectMilestones(args.project_id);
1238
- return JSON.stringify(milestones, null, 2);
1239
- },
1240
- });
1241
- ```
1242
-
1243
- 3. **Update documentation**
1244
- - Add tool to README.md
1245
- - Update tool count
1246
- - Add usage example if applicable
1159
+ 3. **Testing**: Add tests for new features
1247
1160
 
1248
1161
  ## 🔗 Links
1249
1162
 
1250
- - **Repository**: <https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin>
1251
- - **npm Package**: <https://www.npmjs.com/package/@gitlab/opencode-gitlab-plugin>
1252
- - **Issues**: <https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/-/issues>
1253
- - **Merge Requests**: <https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/-/merge_requests>
1254
- - **CI/CD Pipelines**: <https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/-/pipelines>
1255
- - **GitLab API Documentation**: <https://docs.gitlab.com/ee/api/>
1256
- - **OpenCode Plugin SDK**: <https://github.com/opencode-ai/plugin>
1163
+ - [GitLab Repository](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin)
1164
+ - [npm Package](https://www.npmjs.com/package/@gitlab/opencode-gitlab-plugin)
1165
+ - [Issue Tracker](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/-/issues)
1166
+ - [Merge Requests](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/-/merge_requests)
1167
+ - [Contributing Guide](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/-/blob/main/CONTRIBUTING.md)
1168
+ - [Changelog](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/-/blob/main/CHANGELOG.md)
1169
+ - [CI/CD Pipelines](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/-/pipelines)
1170
+ - [GitLab API Documentation](https://docs.gitlab.com/ee/api/)
1171
+ - [OpenCode Plugin SDK](https://github.com/opencode-ai/plugin)
1257
1172
 
1258
1173
  ## 🙏 Acknowledgments
1259
1174
 
@@ -1265,10 +1180,13 @@ add a new GitLab API tool:
1265
1180
 
1266
1181
  For questions, issues, or feature requests:
1267
1182
 
1268
- 1. **Check existing issues**: <https://gitlab.com/vglafirov/opencode-gitlab-plugin/-/issues>
1183
+ 1. **Check existing issues**: <https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/-/issues>
1269
1184
  2. **Create new issue**: Use issue templates for bugs or features
1270
1185
  3. **Discussions**: Use GitLab discussions for questions
1271
- 4. **Email**: Contact the maintainer via GitLab profile
1186
+
1187
+ ## 📄 License
1188
+
1189
+ This project is licensed under the MIT License - see the [LICENSE](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/-/blob/main/LICENSE) file for details.
1272
1190
 
1273
1191
  ---
1274
1192
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/opencode-gitlab-plugin",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "GitLab tools plugin for OpenCode - provides GitLab API access for merge requests, issues, pipelines, and more",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",