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: 1f7b376e0dcf4bf79e502d2291a1efe03d10a69f396ef46c650f3796489947b0
4
- data.tar.gz: 5b195444ea0c32d188ee357433236eb1b3399be3c0c5dc93774fa062b4a49f9c
3
+ metadata.gz: 70f12d85a7eb01ff9cf08c2da1d04d59d269253f91f9d0c2daaf9bca164d0fb6
4
+ data.tar.gz: dd845af8d47d7b34f00b2428589039ce02212261492cefe1da3738868a59ec2c
5
5
  SHA512:
6
- metadata.gz: e3358b30e25e5bea161e38046964eadef417825d0fbc20bb140dac0a5d5c187f32b01e92b1380bd2378058c58c2584b459617ba686f40528cd780542a47b68d3
7
- data.tar.gz: b874724df817fbd72c653763a1774d77f9455eb06dda4ef5e2942d49918ea7bbead8a5ab855d3aad22387909cff746c7421b155f0929f20c828f663a82ef2fa8
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module CloudConnector
5
- VERSION = '1.19.0'
5
+ VERSION = '1.20.0'
6
6
  end
7
7
  end
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.19.0
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-25 00:00:00.000000000 Z
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