melaya 0.2.0 → 0.3.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/README.md +92 -25
- data/lib/melaya/accounts.rb +13 -0
- data/lib/melaya/billing.rb +23 -0
- data/lib/melaya/connector_tools.rb +177 -0
- data/lib/melaya/connectors.rb +73 -0
- data/lib/melaya/credentials.rb +118 -0
- data/lib/melaya/evals.rb +36 -6
- data/lib/melaya/http_client.rb +124 -34
- data/lib/melaya/namespaces.rb +5 -1
- data/lib/melaya/phone.rb +23 -0
- data/lib/melaya/pipelines.rb +246 -9
- data/lib/melaya/team.rb +10 -0
- data/lib/melaya/version.rb +1 -1
- data/lib/melaya.rb +13 -3
- metadata +3 -2
data/lib/melaya/team.rb
CHANGED
|
@@ -68,6 +68,16 @@ module Melaya
|
|
|
68
68
|
@http.delete("/api/v1/private/projects/#{enc(project)}/members/#{enc(user_id)}")
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
+
# POST /api/v1/private/projects/:project/transfer-ownership
|
|
72
|
+
# Transfer project ownership (creator) to another active member. Only the
|
|
73
|
+
# current project owner may call this.
|
|
74
|
+
# @param project [String]
|
|
75
|
+
# @param new_owner_user_id [String] uuid of an existing active member
|
|
76
|
+
def transfer_ownership(project, new_owner_user_id)
|
|
77
|
+
@http.post("/api/v1/private/projects/#{enc(project)}/transfer-ownership",
|
|
78
|
+
"newOwnerUserId" => new_owner_user_id)
|
|
79
|
+
end
|
|
80
|
+
|
|
71
81
|
# ── Pipeline visibility ────────────────────────────────────────────────────
|
|
72
82
|
|
|
73
83
|
# GET /api/v1/private/projects/:project/pipelines/:pipeline/visibility
|
data/lib/melaya/version.rb
CHANGED
data/lib/melaya.rb
CHANGED
|
@@ -23,6 +23,7 @@ require_relative "melaya/pipelines"
|
|
|
23
23
|
require_relative "melaya/hitl"
|
|
24
24
|
require_relative "melaya/credentials"
|
|
25
25
|
require_relative "melaya/connectors"
|
|
26
|
+
require_relative "melaya/connector_tools"
|
|
26
27
|
require_relative "melaya/phone"
|
|
27
28
|
require_relative "melaya/team"
|
|
28
29
|
require_relative "melaya/templates"
|
|
@@ -57,7 +58,8 @@ module Melaya
|
|
|
57
58
|
#
|
|
58
59
|
# **Namespace groupings**:
|
|
59
60
|
# - +trading+ — market, account, sim, strategies, backtest, stream, trade
|
|
60
|
-
# - +agents+ — pipelines (also +.runs+), hitl, assistant, phone, evals, models
|
|
61
|
+
# - +agents+ — pipelines (also +.runs+), hitl, assistant, phone, evals, models,
|
|
62
|
+
# connector_tools
|
|
61
63
|
# - +platform+ — projects, credentials, connectors, billing, team, templates,
|
|
62
64
|
# overview, runner, auth (also +.mfa+), accounts, bugs, events
|
|
63
65
|
#
|
|
@@ -126,6 +128,10 @@ module Melaya
|
|
|
126
128
|
attr_reader :credentials
|
|
127
129
|
# Project-scoped connector credentials.
|
|
128
130
|
attr_reader :connectors
|
|
131
|
+
# Call already-connected connector tools directly (Gmail, Slack, Stripe, ...)
|
|
132
|
+
# — the same surface the MCP server and Assistant use. Not to be confused
|
|
133
|
+
# with +connectors+ (credential storage).
|
|
134
|
+
attr_reader :connector_tools
|
|
129
135
|
# Phone device control: pair, list, screen-tree, apps.
|
|
130
136
|
attr_reader :phone
|
|
131
137
|
# Project team management: members, roles, invite links.
|
|
@@ -156,7 +162,8 @@ module Melaya
|
|
|
156
162
|
attr_reader :trading
|
|
157
163
|
|
|
158
164
|
# Agent-plane namespace.
|
|
159
|
-
# Groups: pipelines (alias: runs), hitl, assistant, phone, evals, models
|
|
165
|
+
# Groups: pipelines (alias: runs), hitl, assistant, phone, evals, models,
|
|
166
|
+
# connector_tools.
|
|
160
167
|
#
|
|
161
168
|
# @return [AgentsNamespace]
|
|
162
169
|
# @example
|
|
@@ -166,6 +173,7 @@ module Melaya
|
|
|
166
173
|
# melaya.agents.assistant.get_profile
|
|
167
174
|
# melaya.agents.evals.list_runs
|
|
168
175
|
# melaya.agents.models.list_models(provider: "anthropic")
|
|
176
|
+
# melaya.agents.connector_tools.services
|
|
169
177
|
attr_reader :agents
|
|
170
178
|
|
|
171
179
|
# Platform-plane namespace.
|
|
@@ -230,6 +238,7 @@ module Melaya
|
|
|
230
238
|
@hitl = HitlAPI.new(http)
|
|
231
239
|
@credentials = CredentialsAPI.new(http)
|
|
232
240
|
@connectors = ConnectorsAPI.new(http)
|
|
241
|
+
@connector_tools = ConnectorToolsAPI.new(http)
|
|
233
242
|
@phone = PhoneAPI.new(http)
|
|
234
243
|
@team = TeamAPI.new(http)
|
|
235
244
|
@templates = TemplatesAPI.new(http)
|
|
@@ -268,7 +277,8 @@ module Melaya
|
|
|
268
277
|
evals: @evals,
|
|
269
278
|
# credentials#list_models is the canonical "models" surface; expose the
|
|
270
279
|
# full CredentialsAPI object here so callers can do agents.models.list_models(...)
|
|
271
|
-
models: @credentials
|
|
280
|
+
models: @credentials,
|
|
281
|
+
connector_tools: @connector_tools
|
|
272
282
|
)
|
|
273
283
|
|
|
274
284
|
# Platform namespace: events slot uses a lazy proxy so the Socket.IO
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: melaya
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Melaya
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Official Ruby SDK for Melaya Agent Builder and Mobile Device Control.
|
|
14
14
|
Includes preview Melaya Trading namespaces that are not yet generally available.
|
|
@@ -28,6 +28,7 @@ files:
|
|
|
28
28
|
- lib/melaya/backtest.rb
|
|
29
29
|
- lib/melaya/billing.rb
|
|
30
30
|
- lib/melaya/bugs.rb
|
|
31
|
+
- lib/melaya/connector_tools.rb
|
|
31
32
|
- lib/melaya/connectors.rb
|
|
32
33
|
- lib/melaya/credentials.rb
|
|
33
34
|
- lib/melaya/errors.rb
|