shapeup-cli 0.5.0 → 0.6.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/lib/shapeup_cli/client.rb +13 -0
- data/lib/shapeup_cli/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: e3f4bd862f49cc66a46223d4c0f5749a92150d3b2a9fa3a6164933a6bf3970f7
|
|
4
|
+
data.tar.gz: 2a018829f56a8cbd42679fef24e16a7e8645c22ddeb7b4be2ca6b7b6c3c88211
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5857b6c507783ce2dadaaf2fbd6c4df72defe1ea46c09e93e91cec3f9bb74b2e1bfc5dcd4d1a10eddd4b92eece7cb1b6f597e0bd0599841d1947e1682494589b
|
|
7
|
+
data.tar.gz: d1bfc879a720dd2a486e5a754cecbdb958a8a2bdefe930b9d1a86d34841c625d201ffdf8e151005423cd9813b9533d54db953fbaf59f5877a8874040e6543582
|
data/lib/shapeup_cli/client.rb
CHANGED
|
@@ -32,6 +32,7 @@ module ShapeupCli
|
|
|
32
32
|
request["Content-Type"] = "application/json"
|
|
33
33
|
request["Authorization"] = "Bearer #{@token}"
|
|
34
34
|
request["MCP-Protocol-Version"] = MCP_PROTOCOL_VERSION
|
|
35
|
+
request["X-Shapeup-Agent"] = agent_hint
|
|
35
36
|
|
|
36
37
|
body = {
|
|
37
38
|
jsonrpc: "2.0",
|
|
@@ -50,6 +51,18 @@ module ShapeupCli
|
|
|
50
51
|
handle_response(response)
|
|
51
52
|
end
|
|
52
53
|
|
|
54
|
+
# Declare who is driving so the server can attribute agent work honestly
|
|
55
|
+
# ("tapster and Claude") and keep human-typed commands attributed to the
|
|
56
|
+
# human alone. Agent harnesses mark their sessions with an env var.
|
|
57
|
+
AGENT_ENV_HINTS = { "CLAUDECODE" => "claude", "CODEX_THREAD_ID" => "codex" }.freeze
|
|
58
|
+
|
|
59
|
+
def agent_hint
|
|
60
|
+
AGENT_ENV_HINTS.each do |variable, hint|
|
|
61
|
+
return hint unless ENV[variable].to_s.empty?
|
|
62
|
+
end
|
|
63
|
+
"none"
|
|
64
|
+
end
|
|
65
|
+
|
|
53
66
|
def with_network_error_handling
|
|
54
67
|
yield
|
|
55
68
|
rescue Net::OpenTimeout, Net::ReadTimeout
|
data/lib/shapeup_cli/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shapeup-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ShapeUp
|
|
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
69
|
version: '0'
|
|
70
70
|
requirements: []
|
|
71
|
-
rubygems_version:
|
|
71
|
+
rubygems_version: 4.0.16
|
|
72
72
|
specification_version: 4
|
|
73
73
|
summary: ShapeUp CLI — manage pitches, scopes, tasks, and cycles from the terminal
|
|
74
74
|
test_files: []
|