completion-kit 0.5.27 → 0.5.28
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: e5b7b1f667eb85b17d7ae6302671129a1e68821bffd1a83f667a7336776f5927
|
|
4
|
+
data.tar.gz: 2f0e3642574d60e69a466bf0fe097c3287a104ba2a049c33afa6462a83dccaf2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19bc73fa1f422a5bee002c10681966fa263fe8a69f8928bb48d9630d53feca65721cbc81b3b3415c4dac9d60dc67a616dde7ac1d5e3154b2aa136b73e25a7077
|
|
7
|
+
data.tar.gz: 5ba36b81ebc2a7df4421423dc8614c624c73f8dde0477bf4a579e914a36ed7c36821840f8c2aed963eb04a50cf840db14119a81a794a251576026731648e49d8
|
|
@@ -22,7 +22,7 @@ module CompletionKit
|
|
|
22
22
|
ActiveSupport::SecurityUtils.secure_compare(u, cfg.username) &
|
|
23
23
|
ActiveSupport::SecurityUtils.secure_compare(p, cfg.password)
|
|
24
24
|
end
|
|
25
|
-
elsif Rails.env.
|
|
25
|
+
elsif !Rails.env.local?
|
|
26
26
|
render plain: "CompletionKit authentication not configured. See README for setup instructions.",
|
|
27
27
|
status: :forbidden
|
|
28
28
|
end
|
|
@@ -35,7 +35,8 @@ module CompletionKit
|
|
|
35
35
|
rescue ActiveRecord::RecordInvalid, ActiveRecord::InvalidForeignKey => e
|
|
36
36
|
render json: jsonrpc_error(request_body.dig("id"), -32602, e.message), status: :ok
|
|
37
37
|
rescue StandardError => e
|
|
38
|
-
|
|
38
|
+
Rails.error.report(e, handled: true, context: { controller: "CompletionKit::McpController" })
|
|
39
|
+
render json: jsonrpc_error(request_body.dig("id"), -32603, "Internal error"), status: :ok
|
|
39
40
|
end
|
|
40
41
|
|
|
41
42
|
def destroy
|