cadenya 0.26.0 → 0.28.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 +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/cadenya/models/account_info.rb +13 -1
- data/lib/cadenya/models/account_rotate_challenge_token_params.rb +14 -0
- data/lib/cadenya/models/agent_spec.rb +16 -15
- data/lib/cadenya/models/agents/agent_schedule_spec.rb +21 -20
- data/lib/cadenya/models/agents/agent_variation_spec.rb +16 -14
- data/lib/cadenya/models/agents/webhook_delivery_data.rb +1 -0
- data/lib/cadenya/models/agents/webhook_delivery_list_params.rb +1 -0
- data/lib/cadenya/models/objective.rb +18 -16
- data/lib/cadenya/models/objective_continue_params.rb +1 -26
- data/lib/cadenya/models/objective_create_params.rb +28 -25
- data/lib/cadenya/models/objective_event_data.rb +63 -1
- data/lib/cadenya/models/rotate_challenge_token_response.rb +18 -0
- data/lib/cadenya/models/tool_set_adapter_mcp.rb +38 -1
- data/lib/cadenya/models/tool_sets/tool_info.rb +14 -1
- data/lib/cadenya/models.rb +4 -0
- data/lib/cadenya/resources/account.rb +19 -0
- data/lib/cadenya/resources/objectives.rb +6 -8
- data/lib/cadenya/version.rb +1 -1
- data/lib/cadenya.rb +2 -0
- data/rbi/cadenya/models/account_info.rbi +19 -0
- data/rbi/cadenya/models/account_rotate_challenge_token_params.rbi +30 -0
- data/rbi/cadenya/models/agent_spec.rbi +23 -19
- data/rbi/cadenya/models/agents/agent_schedule_spec.rbi +38 -36
- data/rbi/cadenya/models/agents/agent_variation_spec.rbi +25 -21
- data/rbi/cadenya/models/agents/webhook_delivery_data.rbi +5 -0
- data/rbi/cadenya/models/agents/webhook_delivery_list_params.rbi +5 -0
- data/rbi/cadenya/models/objective.rbi +24 -24
- data/rbi/cadenya/models/objective_continue_params.rbi +0 -49
- data/rbi/cadenya/models/objective_create_params.rbi +39 -37
- data/rbi/cadenya/models/objective_event_data.rbi +128 -0
- data/rbi/cadenya/models/rotate_challenge_token_response.rbi +30 -0
- data/rbi/cadenya/models/tool_set_adapter_mcp.rbi +69 -0
- data/rbi/cadenya/models/tool_sets/tool_info.rbi +17 -0
- data/rbi/cadenya/models.rbi +5 -0
- data/rbi/cadenya/resources/account.rbi +10 -0
- data/rbi/cadenya/resources/objectives.rbi +16 -20
- data/sig/cadenya/models/account_info.rbs +11 -1
- data/sig/cadenya/models/account_rotate_challenge_token_params.rbs +15 -0
- data/sig/cadenya/models/agent_spec.rbs +9 -7
- data/sig/cadenya/models/agents/agent_schedule_spec.rbs +15 -15
- data/sig/cadenya/models/agents/agent_variation_spec.rbs +7 -7
- data/sig/cadenya/models/agents/webhook_delivery_data.rbs +2 -0
- data/sig/cadenya/models/agents/webhook_delivery_list_params.rbs +2 -0
- data/sig/cadenya/models/objective.rbs +14 -14
- data/sig/cadenya/models/objective_continue_params.rbs +1 -26
- data/sig/cadenya/models/objective_create_params.rbs +16 -16
- data/sig/cadenya/models/objective_event_data.rbs +56 -0
- data/sig/cadenya/models/rotate_challenge_token_response.rbs +15 -0
- data/sig/cadenya/models/tool_set_adapter_mcp.rbs +32 -0
- data/sig/cadenya/models/tool_sets/tool_info.rbs +11 -1
- data/sig/cadenya/models.rbs +4 -0
- data/sig/cadenya/resources/account.rbs +4 -0
- data/sig/cadenya/resources/objectives.rbs +3 -4
- metadata +8 -2
|
@@ -8,6 +8,7 @@ module Cadenya
|
|
|
8
8
|
error: Cadenya::ObjectiveError,
|
|
9
9
|
finalized: Cadenya::ObjectiveEventData::Finalized,
|
|
10
10
|
memory_read: Cadenya::MemoryRead,
|
|
11
|
+
notice: Cadenya::ObjectiveEventData::Notice,
|
|
11
12
|
sub_agent_spawned: Cadenya::SubAgentSpawned,
|
|
12
13
|
sub_agent_updated: Cadenya::SubAgentUpdated,
|
|
13
14
|
tool_approval_requested: Cadenya::ToolApprovalRequested,
|
|
@@ -53,6 +54,12 @@ module Cadenya
|
|
|
53
54
|
|
|
54
55
|
def memory_read=: (Cadenya::MemoryRead) -> Cadenya::MemoryRead
|
|
55
56
|
|
|
57
|
+
attr_reader notice: Cadenya::ObjectiveEventData::Notice?
|
|
58
|
+
|
|
59
|
+
def notice=: (
|
|
60
|
+
Cadenya::ObjectiveEventData::Notice
|
|
61
|
+
) -> Cadenya::ObjectiveEventData::Notice
|
|
62
|
+
|
|
56
63
|
attr_reader sub_agent_spawned: Cadenya::SubAgentSpawned?
|
|
57
64
|
|
|
58
65
|
def sub_agent_spawned=: (
|
|
@@ -106,6 +113,7 @@ module Cadenya
|
|
|
106
113
|
?error: Cadenya::ObjectiveError,
|
|
107
114
|
?finalized: Cadenya::ObjectiveEventData::Finalized,
|
|
108
115
|
?memory_read: Cadenya::MemoryRead,
|
|
116
|
+
?notice: Cadenya::ObjectiveEventData::Notice,
|
|
109
117
|
?sub_agent_spawned: Cadenya::SubAgentSpawned,
|
|
110
118
|
?sub_agent_updated: Cadenya::SubAgentUpdated,
|
|
111
119
|
?tool_approval_requested: Cadenya::ToolApprovalRequested,
|
|
@@ -125,6 +133,7 @@ module Cadenya
|
|
|
125
133
|
error: Cadenya::ObjectiveError,
|
|
126
134
|
finalized: Cadenya::ObjectiveEventData::Finalized,
|
|
127
135
|
memory_read: Cadenya::MemoryRead,
|
|
136
|
+
notice: Cadenya::ObjectiveEventData::Notice,
|
|
128
137
|
sub_agent_spawned: Cadenya::SubAgentSpawned,
|
|
129
138
|
sub_agent_updated: Cadenya::SubAgentUpdated,
|
|
130
139
|
tool_approval_requested: Cadenya::ToolApprovalRequested,
|
|
@@ -160,6 +169,53 @@ module Cadenya
|
|
|
160
169
|
|
|
161
170
|
def to_hash: -> { output: top }
|
|
162
171
|
end
|
|
172
|
+
|
|
173
|
+
type notice =
|
|
174
|
+
{
|
|
175
|
+
key: String,
|
|
176
|
+
level: Cadenya::Models::ObjectiveEventData::Notice::level,
|
|
177
|
+
message: String
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
class Notice < Cadenya::Internal::Type::BaseModel
|
|
181
|
+
attr_reader key: String?
|
|
182
|
+
|
|
183
|
+
def key=: (String) -> String
|
|
184
|
+
|
|
185
|
+
attr_reader level: Cadenya::Models::ObjectiveEventData::Notice::level?
|
|
186
|
+
|
|
187
|
+
def level=: (
|
|
188
|
+
Cadenya::Models::ObjectiveEventData::Notice::level
|
|
189
|
+
) -> Cadenya::Models::ObjectiveEventData::Notice::level
|
|
190
|
+
|
|
191
|
+
attr_reader message: String?
|
|
192
|
+
|
|
193
|
+
def message=: (String) -> String
|
|
194
|
+
|
|
195
|
+
def initialize: (
|
|
196
|
+
?key: String,
|
|
197
|
+
?level: Cadenya::Models::ObjectiveEventData::Notice::level,
|
|
198
|
+
?message: String
|
|
199
|
+
) -> void
|
|
200
|
+
|
|
201
|
+
def to_hash: -> {
|
|
202
|
+
key: String,
|
|
203
|
+
level: Cadenya::Models::ObjectiveEventData::Notice::level,
|
|
204
|
+
message: String
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
type level = :LEVEL_UNSPECIFIED | :LEVEL_INFO | :LEVEL_WARN
|
|
208
|
+
|
|
209
|
+
module Level
|
|
210
|
+
extend Cadenya::Internal::Type::Enum
|
|
211
|
+
|
|
212
|
+
LEVEL_UNSPECIFIED: :LEVEL_UNSPECIFIED
|
|
213
|
+
LEVEL_INFO: :LEVEL_INFO
|
|
214
|
+
LEVEL_WARN: :LEVEL_WARN
|
|
215
|
+
|
|
216
|
+
def self?.values: -> ::Array[Cadenya::Models::ObjectiveEventData::Notice::level]
|
|
217
|
+
end
|
|
218
|
+
end
|
|
163
219
|
end
|
|
164
220
|
end
|
|
165
221
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Cadenya
|
|
2
|
+
module Models
|
|
3
|
+
type rotate_challenge_token_response = { challenge_token: String }
|
|
4
|
+
|
|
5
|
+
class RotateChallengeTokenResponse < Cadenya::Internal::Type::BaseModel
|
|
6
|
+
attr_reader challenge_token: String?
|
|
7
|
+
|
|
8
|
+
def challenge_token=: (String) -> String
|
|
9
|
+
|
|
10
|
+
def initialize: (?challenge_token: String) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { challenge_token: String }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -5,6 +5,7 @@ module Cadenya
|
|
|
5
5
|
exclude_tools: Cadenya::ToolFilter,
|
|
6
6
|
headers: ::Hash[Symbol, String],
|
|
7
7
|
include_tools: Cadenya::ToolFilter,
|
|
8
|
+
just_in_time: Cadenya::ToolSetAdapterMcp::JustInTime,
|
|
8
9
|
tool_approvals: Cadenya::ApprovalRequirementFilter,
|
|
9
10
|
url: String
|
|
10
11
|
}
|
|
@@ -22,6 +23,12 @@ module Cadenya
|
|
|
22
23
|
|
|
23
24
|
def include_tools=: (Cadenya::ToolFilter) -> Cadenya::ToolFilter
|
|
24
25
|
|
|
26
|
+
attr_reader just_in_time: Cadenya::ToolSetAdapterMcp::JustInTime?
|
|
27
|
+
|
|
28
|
+
def just_in_time=: (
|
|
29
|
+
Cadenya::ToolSetAdapterMcp::JustInTime
|
|
30
|
+
) -> Cadenya::ToolSetAdapterMcp::JustInTime
|
|
31
|
+
|
|
25
32
|
attr_reader tool_approvals: Cadenya::ApprovalRequirementFilter?
|
|
26
33
|
|
|
27
34
|
def tool_approvals=: (
|
|
@@ -36,6 +43,7 @@ module Cadenya
|
|
|
36
43
|
?exclude_tools: Cadenya::ToolFilter,
|
|
37
44
|
?headers: ::Hash[Symbol, String],
|
|
38
45
|
?include_tools: Cadenya::ToolFilter,
|
|
46
|
+
?just_in_time: Cadenya::ToolSetAdapterMcp::JustInTime,
|
|
39
47
|
?tool_approvals: Cadenya::ApprovalRequirementFilter,
|
|
40
48
|
?url: String
|
|
41
49
|
) -> void
|
|
@@ -44,9 +52,33 @@ module Cadenya
|
|
|
44
52
|
exclude_tools: Cadenya::ToolFilter,
|
|
45
53
|
headers: ::Hash[Symbol, String],
|
|
46
54
|
include_tools: Cadenya::ToolFilter,
|
|
55
|
+
just_in_time: Cadenya::ToolSetAdapterMcp::JustInTime,
|
|
47
56
|
tool_approvals: Cadenya::ApprovalRequirementFilter,
|
|
48
57
|
url: String
|
|
49
58
|
}
|
|
59
|
+
|
|
60
|
+
type just_in_time =
|
|
61
|
+
{ enabled: bool, fail_objective_on_tool_list_error: bool }
|
|
62
|
+
|
|
63
|
+
class JustInTime < Cadenya::Internal::Type::BaseModel
|
|
64
|
+
attr_reader enabled: bool?
|
|
65
|
+
|
|
66
|
+
def enabled=: (bool) -> bool
|
|
67
|
+
|
|
68
|
+
attr_reader fail_objective_on_tool_list_error: bool?
|
|
69
|
+
|
|
70
|
+
def fail_objective_on_tool_list_error=: (bool) -> bool
|
|
71
|
+
|
|
72
|
+
def initialize: (
|
|
73
|
+
?enabled: bool,
|
|
74
|
+
?fail_objective_on_tool_list_error: bool
|
|
75
|
+
) -> void
|
|
76
|
+
|
|
77
|
+
def to_hash: -> {
|
|
78
|
+
enabled: bool,
|
|
79
|
+
fail_objective_on_tool_list_error: bool
|
|
80
|
+
}
|
|
81
|
+
end
|
|
50
82
|
end
|
|
51
83
|
end
|
|
52
84
|
end
|
|
@@ -2,7 +2,11 @@ module Cadenya
|
|
|
2
2
|
module Models
|
|
3
3
|
module ToolSets
|
|
4
4
|
type tool_info =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
created_by: Cadenya::Profile,
|
|
7
|
+
signature: String,
|
|
8
|
+
tool_set: Cadenya::ResourceMetadata
|
|
9
|
+
}
|
|
6
10
|
|
|
7
11
|
class ToolInfo < Cadenya::Internal::Type::BaseModel
|
|
8
12
|
attr_reader created_by: Cadenya::Profile?
|
|
@@ -13,13 +17,19 @@ module Cadenya
|
|
|
13
17
|
|
|
14
18
|
def tool_set=: (Cadenya::ResourceMetadata) -> Cadenya::ResourceMetadata
|
|
15
19
|
|
|
20
|
+
attr_reader signature: String?
|
|
21
|
+
|
|
22
|
+
def signature=: (String) -> String
|
|
23
|
+
|
|
16
24
|
def initialize: (
|
|
17
25
|
?created_by: Cadenya::Profile,
|
|
26
|
+
?signature: String,
|
|
18
27
|
?tool_set: Cadenya::ResourceMetadata
|
|
19
28
|
) -> void
|
|
20
29
|
|
|
21
30
|
def to_hash: -> {
|
|
22
31
|
created_by: Cadenya::Profile,
|
|
32
|
+
signature: String,
|
|
23
33
|
tool_set: Cadenya::ResourceMetadata
|
|
24
34
|
}
|
|
25
35
|
end
|
data/sig/cadenya/models.rbs
CHANGED
|
@@ -7,6 +7,8 @@ module Cadenya
|
|
|
7
7
|
|
|
8
8
|
class AccountRetrieveParams = Cadenya::Models::AccountRetrieveParams
|
|
9
9
|
|
|
10
|
+
class AccountRotateChallengeTokenParams = Cadenya::Models::AccountRotateChallengeTokenParams
|
|
11
|
+
|
|
10
12
|
class AccountRotateWebhookSigningKeyParams = Cadenya::Models::AccountRotateWebhookSigningKeyParams
|
|
11
13
|
|
|
12
14
|
class AccountSpec = Cadenya::Models::AccountSpec
|
|
@@ -179,6 +181,8 @@ module Cadenya
|
|
|
179
181
|
|
|
180
182
|
class ResourceMetadata = Cadenya::Models::ResourceMetadata
|
|
181
183
|
|
|
184
|
+
class RotateChallengeTokenResponse = Cadenya::Models::RotateChallengeTokenResponse
|
|
185
|
+
|
|
182
186
|
class RotateWebhookSigningKeyResponse = Cadenya::Models::RotateWebhookSigningKeyResponse
|
|
183
187
|
|
|
184
188
|
class SearchSearchToolsOrToolSetsParams = Cadenya::Models::SearchSearchToolsOrToolSetsParams
|
|
@@ -5,6 +5,10 @@ module Cadenya
|
|
|
5
5
|
?request_options: Cadenya::request_opts
|
|
6
6
|
) -> Cadenya::AccountAPI
|
|
7
7
|
|
|
8
|
+
def rotate_challenge_token: (
|
|
9
|
+
?request_options: Cadenya::request_opts
|
|
10
|
+
) -> Cadenya::RotateChallengeTokenResponse
|
|
11
|
+
|
|
8
12
|
def rotate_webhook_signing_key: (
|
|
9
13
|
?request_options: Cadenya::request_opts
|
|
10
14
|
) -> Cadenya::RotateWebhookSigningKeyResponse
|
|
@@ -12,13 +12,13 @@ module Cadenya
|
|
|
12
12
|
def create: (
|
|
13
13
|
String workspace_id,
|
|
14
14
|
agent_id: String,
|
|
15
|
-
|
|
15
|
+
system_prompt_data: ::Hash[Symbol, top],
|
|
16
16
|
?episodic_memory: Cadenya::ObjectiveCreateParams::EpisodicMemory,
|
|
17
|
-
?
|
|
17
|
+
?first_user_message: String,
|
|
18
|
+
?first_user_message_data: ::Hash[Symbol, top],
|
|
18
19
|
?memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
19
20
|
?metadata: Cadenya::CreateOperationMetadata,
|
|
20
21
|
?secrets: ::Array[Cadenya::ObjectiveCreateParams::Secret],
|
|
21
|
-
?user_data: ::Hash[Symbol, top],
|
|
22
22
|
?variation_id: String,
|
|
23
23
|
?request_options: Cadenya::request_opts
|
|
24
24
|
) -> Cadenya::Objective
|
|
@@ -62,7 +62,6 @@ module Cadenya
|
|
|
62
62
|
workspace_id: String,
|
|
63
63
|
?enqueue: bool,
|
|
64
64
|
?message: String,
|
|
65
|
-
?secrets: ::Array[Cadenya::ObjectiveContinueParams::Secret],
|
|
66
65
|
?request_options: Cadenya::request_opts
|
|
67
66
|
) -> Cadenya::ObjectiveEvent
|
|
68
67
|
|
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.
|
|
4
|
+
version: 0.28.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-
|
|
11
|
+
date: 2026-07-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -90,6 +90,7 @@ files:
|
|
|
90
90
|
- lib/cadenya/models/account_info.rb
|
|
91
91
|
- lib/cadenya/models/account_resource_metadata.rb
|
|
92
92
|
- lib/cadenya/models/account_retrieve_params.rb
|
|
93
|
+
- lib/cadenya/models/account_rotate_challenge_token_params.rb
|
|
93
94
|
- lib/cadenya/models/account_rotate_webhook_signing_key_params.rb
|
|
94
95
|
- lib/cadenya/models/account_spec.rb
|
|
95
96
|
- lib/cadenya/models/agent.rb
|
|
@@ -253,6 +254,7 @@ files:
|
|
|
253
254
|
- lib/cadenya/models/profile_spec.rb
|
|
254
255
|
- lib/cadenya/models/profile_whoami_params.rb
|
|
255
256
|
- lib/cadenya/models/resource_metadata.rb
|
|
257
|
+
- lib/cadenya/models/rotate_challenge_token_response.rb
|
|
256
258
|
- lib/cadenya/models/rotate_webhook_signing_key_response.rb
|
|
257
259
|
- lib/cadenya/models/search_search_tools_or_tool_sets_params.rb
|
|
258
260
|
- lib/cadenya/models/search_search_tools_or_tool_sets_response.rb
|
|
@@ -402,6 +404,7 @@ files:
|
|
|
402
404
|
- rbi/cadenya/models/account_info.rbi
|
|
403
405
|
- rbi/cadenya/models/account_resource_metadata.rbi
|
|
404
406
|
- rbi/cadenya/models/account_retrieve_params.rbi
|
|
407
|
+
- rbi/cadenya/models/account_rotate_challenge_token_params.rbi
|
|
405
408
|
- rbi/cadenya/models/account_rotate_webhook_signing_key_params.rbi
|
|
406
409
|
- rbi/cadenya/models/account_spec.rbi
|
|
407
410
|
- rbi/cadenya/models/agent.rbi
|
|
@@ -565,6 +568,7 @@ files:
|
|
|
565
568
|
- rbi/cadenya/models/profile_spec.rbi
|
|
566
569
|
- rbi/cadenya/models/profile_whoami_params.rbi
|
|
567
570
|
- rbi/cadenya/models/resource_metadata.rbi
|
|
571
|
+
- rbi/cadenya/models/rotate_challenge_token_response.rbi
|
|
568
572
|
- rbi/cadenya/models/rotate_webhook_signing_key_response.rbi
|
|
569
573
|
- rbi/cadenya/models/search_search_tools_or_tool_sets_params.rbi
|
|
570
574
|
- rbi/cadenya/models/search_search_tools_or_tool_sets_response.rbi
|
|
@@ -713,6 +717,7 @@ files:
|
|
|
713
717
|
- sig/cadenya/models/account_info.rbs
|
|
714
718
|
- sig/cadenya/models/account_resource_metadata.rbs
|
|
715
719
|
- sig/cadenya/models/account_retrieve_params.rbs
|
|
720
|
+
- sig/cadenya/models/account_rotate_challenge_token_params.rbs
|
|
716
721
|
- sig/cadenya/models/account_rotate_webhook_signing_key_params.rbs
|
|
717
722
|
- sig/cadenya/models/account_spec.rbs
|
|
718
723
|
- sig/cadenya/models/agent.rbs
|
|
@@ -876,6 +881,7 @@ files:
|
|
|
876
881
|
- sig/cadenya/models/profile_spec.rbs
|
|
877
882
|
- sig/cadenya/models/profile_whoami_params.rbs
|
|
878
883
|
- sig/cadenya/models/resource_metadata.rbs
|
|
884
|
+
- sig/cadenya/models/rotate_challenge_token_response.rbs
|
|
879
885
|
- sig/cadenya/models/rotate_webhook_signing_key_response.rbs
|
|
880
886
|
- sig/cadenya/models/search_search_tools_or_tool_sets_params.rbs
|
|
881
887
|
- sig/cadenya/models/search_search_tools_or_tool_sets_response.rbs
|