cadenya 0.31.0 → 0.32.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: dac0e8c6022a63f3c33c62fca0c5bb8ba01434057ed39f8550e2e47069c6e701
4
- data.tar.gz: 8612305347fd260fc37629022d774ef83a6b8a964f76dcfaca996810f86a4ecc
3
+ metadata.gz: b7cbd78d3ea5bcae1f284af2ac67c82d99bf07e88f5ae3b6a495043fe94593fc
4
+ data.tar.gz: c9366600d25fc2c8571b045f3fe7cf22aec78f1a60f7cd1aaa6721ac6dbc6183
5
5
  SHA512:
6
- metadata.gz: 6805e7d3a55694fbcbcbaba00c56dbfd7eae5b28e5a6b9b7a2e524ac902cfb1f6a79fa03dd282b7dde3d88954b51d7d7c6a3b30ec88e6f71eb83b3a76f220c84
7
- data.tar.gz: 10847a32205e46f2b42a110d458cb1236dafcbc1d55bce5aabc80dcf334aee9dba326b7a660ee98e05f0bc35fddd60f7a5072f602f1b7936d41ca50c77d694c6
6
+ metadata.gz: 38d5dcc81936365971a2ccb51e3103211eaac42a69274257e66484ab7d1953a71a11cd6ec5303da3f4f8992136ede7fae01dc3165e020b87e6c51061a92c954e
7
+ data.tar.gz: 286d38aec2428b7ec9100cfd3b4e76a4e3e19ba964c6d07bf601dd468671647b6a7a261a87823d9509e410e2f13838836f0c853c2481c9a4fa75b79f81ee8539
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.32.0 (2026-07-08)
4
+
5
+ Full Changelog: [v0.31.0...v0.32.0](https://github.com/cadenya/cadenya-ruby/compare/v0.31.0...v0.32.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([e75213d](https://github.com/cadenya/cadenya-ruby/commit/e75213d6fbd2a00f6b710f805154002f39e832f8))
10
+
3
11
  ## 0.31.0 (2026-07-07)
4
12
 
5
13
  Full Changelog: [v0.30.0...v0.31.0](https://github.com/cadenya/cadenya-ruby/compare/v0.30.0...v0.31.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "cadenya", "~> 0.31.0"
20
+ gem "cadenya", "~> 0.32.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -6,12 +6,18 @@ module Cadenya
6
6
  class AgentVariationSpecConstraints < Cadenya::Internal::Type::BaseModel
7
7
  # @!attribute inactivity_timeout
8
8
  # How long an objective may sit with no activity (no user messages, no LLM calls)
9
- # before it is finalized as timed out. Between 1 minute and 24 hours. When not
10
- # set, objectives are still swept at the system-wide 24 hour maximum every
11
- # objective eventually reaches a terminal state.
9
+ # before it is finalized as timed out. Between 1 minute and 24 hours, expressed as
10
+ # a duration string in seconds (e.g. "7200s"). When not set, objectives are still
11
+ # swept at the system-wide 24 hour maximum — every objective eventually reaches a
12
+ # terminal state.
12
13
  #
13
- # @return [Integer, nil]
14
- optional :inactivity_timeout, Integer, api_name: :inactivityTimeout
14
+ # Note: no gnostic integer hint here on purpose. The Envoy gRPC-JSON transcoder
15
+ # only accepts the canonical protobuf JSON form for Durations — a "<seconds>s"
16
+ # string — so the SDKs must type this as a string (like AgentScheduleSpec.every),
17
+ # not an integer.
18
+ #
19
+ # @return [String, nil]
20
+ optional :inactivity_timeout, String, api_name: :inactivityTimeout
15
21
 
16
22
  # @!attribute max_sub_objectives
17
23
  # The maximum number of sub-objectives that can be created. 0 means no limit.
@@ -29,7 +35,7 @@ module Cadenya
29
35
  # Some parameter documentations has been truncated, see
30
36
  # {Cadenya::Models::Agents::AgentVariationSpecConstraints} for more details.
31
37
  #
32
- # @param inactivity_timeout [Integer] How long an objective may sit with no activity (no user messages, no
38
+ # @param inactivity_timeout [String] How long an objective may sit with no activity (no user messages, no
33
39
  #
34
40
  # @param max_sub_objectives [Integer] The maximum number of sub-objectives that can be created. 0 means no limit.
35
41
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cadenya
4
- VERSION = "0.31.0"
4
+ VERSION = "0.32.0"
5
5
  end
@@ -15,13 +15,19 @@ module Cadenya
15
15
  end
16
16
 
17
17
  # How long an objective may sit with no activity (no user messages, no LLM calls)
18
- # before it is finalized as timed out. Between 1 minute and 24 hours. When not
19
- # set, objectives are still swept at the system-wide 24 hour maximum every
20
- # objective eventually reaches a terminal state.
21
- sig { returns(T.nilable(Integer)) }
18
+ # before it is finalized as timed out. Between 1 minute and 24 hours, expressed as
19
+ # a duration string in seconds (e.g. "7200s"). When not set, objectives are still
20
+ # swept at the system-wide 24 hour maximum — every objective eventually reaches a
21
+ # terminal state.
22
+ #
23
+ # Note: no gnostic integer hint here on purpose. The Envoy gRPC-JSON transcoder
24
+ # only accepts the canonical protobuf JSON form for Durations — a "<seconds>s"
25
+ # string — so the SDKs must type this as a string (like AgentScheduleSpec.every),
26
+ # not an integer.
27
+ sig { returns(T.nilable(String)) }
22
28
  attr_reader :inactivity_timeout
23
29
 
24
- sig { params(inactivity_timeout: Integer).void }
30
+ sig { params(inactivity_timeout: String).void }
25
31
  attr_writer :inactivity_timeout
26
32
 
27
33
  # The maximum number of sub-objectives that can be created. 0 means no limit.
@@ -40,16 +46,22 @@ module Cadenya
40
46
 
41
47
  sig do
42
48
  params(
43
- inactivity_timeout: Integer,
49
+ inactivity_timeout: String,
44
50
  max_sub_objectives: Integer,
45
51
  max_tool_calls: Integer
46
52
  ).returns(T.attached_class)
47
53
  end
48
54
  def self.new(
49
55
  # How long an objective may sit with no activity (no user messages, no LLM calls)
50
- # before it is finalized as timed out. Between 1 minute and 24 hours. When not
51
- # set, objectives are still swept at the system-wide 24 hour maximum every
52
- # objective eventually reaches a terminal state.
56
+ # before it is finalized as timed out. Between 1 minute and 24 hours, expressed as
57
+ # a duration string in seconds (e.g. "7200s"). When not set, objectives are still
58
+ # swept at the system-wide 24 hour maximum — every objective eventually reaches a
59
+ # terminal state.
60
+ #
61
+ # Note: no gnostic integer hint here on purpose. The Envoy gRPC-JSON transcoder
62
+ # only accepts the canonical protobuf JSON form for Durations — a "<seconds>s"
63
+ # string — so the SDKs must type this as a string (like AgentScheduleSpec.every),
64
+ # not an integer.
53
65
  inactivity_timeout: nil,
54
66
  # The maximum number of sub-objectives that can be created. 0 means no limit.
55
67
  max_sub_objectives: nil,
@@ -61,7 +73,7 @@ module Cadenya
61
73
  sig do
62
74
  override.returns(
63
75
  {
64
- inactivity_timeout: Integer,
76
+ inactivity_timeout: String,
65
77
  max_sub_objectives: Integer,
66
78
  max_tool_calls: Integer
67
79
  }
@@ -5,15 +5,15 @@ module Cadenya
5
5
  module Agents
6
6
  type agent_variation_spec_constraints =
7
7
  {
8
- inactivity_timeout: Integer,
8
+ inactivity_timeout: String,
9
9
  max_sub_objectives: Integer,
10
10
  max_tool_calls: Integer
11
11
  }
12
12
 
13
13
  class AgentVariationSpecConstraints < Cadenya::Internal::Type::BaseModel
14
- attr_reader inactivity_timeout: Integer?
14
+ attr_reader inactivity_timeout: String?
15
15
 
16
- def inactivity_timeout=: (Integer) -> Integer
16
+ def inactivity_timeout=: (String) -> String
17
17
 
18
18
  attr_reader max_sub_objectives: Integer?
19
19
 
@@ -24,13 +24,13 @@ module Cadenya
24
24
  def max_tool_calls=: (Integer) -> Integer
25
25
 
26
26
  def initialize: (
27
- ?inactivity_timeout: Integer,
27
+ ?inactivity_timeout: String,
28
28
  ?max_sub_objectives: Integer,
29
29
  ?max_tool_calls: Integer
30
30
  ) -> void
31
31
 
32
32
  def to_hash: -> {
33
- inactivity_timeout: Integer,
33
+ inactivity_timeout: String,
34
34
  max_sub_objectives: Integer,
35
35
  max_tool_calls: Integer
36
36
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cadenya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cadenya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-07 00:00:00.000000000 Z
11
+ date: 2026-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi