wokku-cli 0.5.1 → 0.5.2
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 +6 -0
- data/README.md +1 -1
- data/lib/wokku/auth.rb +1 -1
- data/lib/wokku/commands/auth.rb +3 -9
- data/lib/wokku/commands/mcp.rb +1 -2
- data/lib/wokku/config.rb +5 -1
- data/lib/wokku/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 51db3894481aec24701a7fc0172ca81910c1f6967c6a00decbf5d0dadb6454eb
|
|
4
|
+
data.tar.gz: 7e3151f3a81c249667e3a1128eaaa58763b40d453c401504f53b35783f5da96c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c021749b27b73a5c325c1f268de70c329b9aff10c325e67cfe6ef9b2a274f656967e2bb51732393a1548ea19d193255715e8bab66bafd50b7f92de650cbc570a
|
|
7
|
+
data.tar.gz: e8c0fe5d6878a6105247fa049153a784885906decdc8cc92f8d3385ef357655f2d54c827658f30e6b6853a2e8eefe853ae37829f6ec92794294e0ec63c62f4c7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.2 — 2026-06-06
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- API endpoint is now hard-locked to `https://wokku.cloud/api/v1`. Wokku is a managed-cloud product, so the endpoint is no longer configurable: removed the `WOKKU_API_URL` env override, the `auth:login --url` flag, and persisting `api_url` to `~/.wokku/config`. `mcp:install`/`mcp:switch` now pass only the token to the plugin (the MCP plugin's endpoint is fixed too, v1.2.0). Eliminates the class of bug where a stale/wrong API URL silently pointed the CLI at a dead host.
|
|
8
|
+
|
|
3
9
|
## 0.5.1 — 2026-06-04
|
|
4
10
|
|
|
5
11
|
### Fixed
|
data/README.md
CHANGED
|
@@ -61,7 +61,7 @@ Set once and forget:
|
|
|
61
61
|
export WOKKU_API_TOKEN=... # from wokku.cloud/dashboard/profile
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
The API endpoint is fixed to `https://wokku.cloud/api/v1` and is not configurable (Wokku is managed-cloud only).
|
|
65
65
|
|
|
66
66
|
## What's New in v0.2.0 (May 2026)
|
|
67
67
|
|
data/lib/wokku/auth.rb
CHANGED
|
@@ -50,7 +50,7 @@ module Wokku
|
|
|
50
50
|
when 200
|
|
51
51
|
token = body.fetch("token")
|
|
52
52
|
email = body.dig("user", "email")
|
|
53
|
-
save_config({ "
|
|
53
|
+
save_config({ "token" => token, "email" => email })
|
|
54
54
|
puts
|
|
55
55
|
Wokku::Output.status "Logged in as #{email}"
|
|
56
56
|
Wokku::Output.status "Connected to: #{instance_label(url)}"
|
data/lib/wokku/commands/auth.rb
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
DEFAULT_API_URL = "https://wokku.cloud/api/v1"
|
|
4
|
-
|
|
5
3
|
# --- Auth ---
|
|
6
|
-
register "auth:login", "Authenticate with Wokku via browser device flow
|
|
7
|
-
url = DEFAULT_API_URL
|
|
4
|
+
register "auth:login", "Authenticate with Wokku via browser device flow" do
|
|
8
5
|
while (arg = ARGV.shift)
|
|
9
|
-
|
|
10
|
-
when "--url" then url = ARGV.shift or abort "--url requires a value"
|
|
11
|
-
else abort "Unknown argument: #{arg}"
|
|
12
|
-
end
|
|
6
|
+
abort "Unknown argument: #{arg}"
|
|
13
7
|
end
|
|
14
8
|
|
|
15
|
-
Wokku::Auth.login_with_device_flow!(
|
|
9
|
+
Wokku::Auth.login_with_device_flow!(Wokku::Config.api_url)
|
|
16
10
|
end
|
|
17
11
|
|
|
18
12
|
register "auth:logout", "Log out" do
|
data/lib/wokku/commands/mcp.rb
CHANGED
|
@@ -27,15 +27,14 @@ def require_logged_in!
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def install_mcp_entry!
|
|
30
|
-
url = Wokku::Config.api_url
|
|
31
30
|
token = Wokku::Config.api_token
|
|
32
31
|
|
|
33
32
|
# Idempotent — silently no-ops if the entry doesn't exist yet.
|
|
34
33
|
system("claude mcp remove #{Shellwords.escape(MCP_SERVER_NAME)} > /dev/null 2>&1")
|
|
35
34
|
|
|
35
|
+
# Only the token is passed — the plugin's endpoint is fixed to wokku.cloud.
|
|
36
36
|
ok = system(
|
|
37
37
|
"claude", "mcp", "add", MCP_SERVER_NAME,
|
|
38
|
-
"--env", "WOKKU_API_URL=#{url}",
|
|
39
38
|
"--env", "WOKKU_API_TOKEN=#{token}",
|
|
40
39
|
"--", "npx", "-y", "@johannesdwicahyo/wokku-plugin"
|
|
41
40
|
)
|
data/lib/wokku/config.rb
CHANGED
|
@@ -30,8 +30,12 @@ module Wokku
|
|
|
30
30
|
File.chmod(0600, file)
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
# Wokku is managed-cloud only — the endpoint is fixed and intentionally
|
|
34
|
+
# NOT overridable (no config key, no env var). Mirrors the MCP plugin.
|
|
35
|
+
API_URL = "https://wokku.cloud/api/v1"
|
|
36
|
+
|
|
33
37
|
def api_url
|
|
34
|
-
|
|
38
|
+
API_URL
|
|
35
39
|
end
|
|
36
40
|
|
|
37
41
|
def api_token
|
data/lib/wokku/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wokku-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Johannes Dwicahyo
|
|
@@ -24,7 +24,7 @@ dependencies:
|
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
25
|
version: '0.7'
|
|
26
26
|
description: Deploy and manage apps, databases, domains, and SSH keys on Wokku.cloud
|
|
27
|
-
|
|
27
|
+
(managed cloud).
|
|
28
28
|
email:
|
|
29
29
|
- johannesdwicahyo@gmail.com
|
|
30
30
|
executables:
|