opencode-gitlab-duo-agentic 0.1.12 → 0.1.13

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 (2) hide show
  1. package/dist/index.js +10 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -30,21 +30,26 @@ function applyRuntimeConfig(config, moduleUrl) {
30
30
  const current = config.provider[PROVIDER_ID] ?? {};
31
31
  const options = current.options ?? {};
32
32
  const models = current.models ?? {};
33
+ const fallbackModel2 = {
34
+ [MODEL_ID]: {
35
+ id: MODEL_ID,
36
+ name: "GitLab Duo Agentic (fallback)"
37
+ }
38
+ };
33
39
  const instanceUrl = normalizeInstanceUrl(options.instanceUrl ?? envInstanceUrl());
34
40
  config.provider[PROVIDER_ID] = {
35
41
  ...current,
36
42
  name: current.name ?? "GitLab Duo Agentic",
37
43
  npm: current.npm ?? moduleUrl,
38
44
  env: current.env ?? ["GITLAB_TOKEN", "GITLAB_INSTANCE_URL"],
45
+ whitelist: [MODEL_ID],
39
46
  options: {
40
47
  ...options,
41
48
  instanceUrl
42
49
  },
43
- models: Object.keys(models).length > 0 ? models : {
44
- [MODEL_ID]: {
45
- id: MODEL_ID,
46
- name: "GitLab Duo Agentic (fallback)"
47
- }
50
+ models: {
51
+ ...fallbackModel2,
52
+ ...models
48
53
  }
49
54
  };
50
55
  if (Array.isArray(config.disabled_providers)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-gitlab-duo-agentic",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "OpenCode plugin and provider for GitLab Duo Agentic workflows",
5
5
  "license": "MIT",
6
6
  "type": "module",