gitlab-cloud-connector 1.19.0 → 1.20.0
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70f12d85a7eb01ff9cf08c2da1d04d59d269253f91f9d0c2daaf9bca164d0fb6
|
4
|
+
data.tar.gz: dd845af8d47d7b34f00b2428589039ce02212261492cefe1da3738868a59ec2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be470fa7caa56a2bf552cf969678414711db8fa58f54047928a74bd58f922820e3bed19fe8f88d52befc8842226548a03ef79b2213e1fbf7aa51776212d5535e
|
7
|
+
data.tar.gz: 97bebda7550b7b3f0432ab1ed0200af0130176a94bfa3d1f058b0a1f8621c8c30864dc3cc729f5c068bb6a16cfc1d296ffdeb9b80e5d4e008de6a59faa2849c7
|
data/README.md
CHANGED
@@ -70,6 +70,24 @@ To test changes to the Ruby gem in your environment, you need to source gem cont
|
|
70
70
|
gem "gitlab-cloud-connector", "~> 1.5", require: 'gitlab/cloud_connector', feature_category: :plan_provisioning, path: '/path/to/gitlab-cloud-connector/src/ruby/'
|
71
71
|
```
|
72
72
|
|
73
|
+
1. In GitLab Rails, add configuration to point to the cloud-connector config
|
74
|
+
|
75
|
+
```diff
|
76
|
+
diff --git i/config/application.rb w/config/application.rb
|
77
|
+
index 3d8b4af3c3305b..53c1788d784ddc 100644
|
78
|
+
--- i/config/application.rb
|
79
|
+
+++ w/config/application.rb
|
80
|
+
@@ -20,6 +20,7 @@
|
81
|
+
module Gitlab
|
82
|
+
class Application < Rails::Application
|
83
|
+
config.load_defaults 7.0
|
84
|
+
+ CloudConnector::Configuration.config_dir = '/Users/name/workspace/gitlab-cloud-connector/config'
|
85
|
+
|
86
|
+
# This section contains configuration from Rails upgrades to override the new defaults so that we
|
87
|
+
# keep existing behavior.
|
88
|
+
|
89
|
+
```
|
90
|
+
|
73
91
|
1. Run `bundle install` to apply the changes
|
74
92
|
|
75
93
|
Note: you may need to restart GitLab instance for changes to take effect (depends on your hot-reload configuration)
|
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
name: include_user_rule_context
|
3
|
+
description: Include user-defined rules and instructions in the conversation context.
|
4
|
+
group: group::duo_chat
|
5
|
+
feature_category: duo_chat
|
6
|
+
introduced_by_url: https://gitlab.com/gitlab-org/cloud-connector/gitlab-cloud-connector/-/merge_requests/167
|
7
|
+
backend_services:
|
8
|
+
- ai_gateway
|
9
|
+
- duo_workflow_service
|
10
|
+
add_ons:
|
11
|
+
- duo_pro
|
12
|
+
- duo_enterprise
|
@@ -7,6 +7,15 @@ module Gitlab
|
|
7
7
|
module DataModel
|
8
8
|
autoload(:YamlDataLoader, 'gitlab/cloud_connector/data_model/yaml_data_loader')
|
9
9
|
|
10
|
+
# Returns a hash of all data objects loaded from YAML files.
|
11
|
+
def self.load_all(loader_class: YamlDataLoader)
|
12
|
+
Base.subclasses.each_with_object({}) do |clazz, h|
|
13
|
+
data_obj = loader_class.new(clazz).load!
|
14
|
+
key = clazz.name.demodulize.pluralize.underscore.to_sym
|
15
|
+
h[key] = data_obj.map(&:to_hash)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
10
19
|
class UnitPrimitive < Base
|
11
20
|
has_and_belongs_to_many :backend_services
|
12
21
|
has_and_belongs_to_many :add_ons
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-cloud-connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikola Milojevic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -154,6 +154,7 @@ files:
|
|
154
154
|
- config/unit_primitives/include_repository_context.yml
|
155
155
|
- config/unit_primitives/include_snippet_context.yml
|
156
156
|
- config/unit_primitives/include_terminal_context.yml
|
157
|
+
- config/unit_primitives/include_user_rule_context.yml
|
157
158
|
- config/unit_primitives/measure_comment_temperature.yml
|
158
159
|
- config/unit_primitives/observability_all.yml
|
159
160
|
- config/unit_primitives/refactor_code.yml
|