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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8ff0645627f89f9f4478145566d6386d3137125bfee4f0baea077476da8d7e7
4
- data.tar.gz: 94260b420442e04c89015fc58ac2536ba312d177876fe7d310064de341e24a3c
3
+ metadata.gz: e3f4bd862f49cc66a46223d4c0f5749a92150d3b2a9fa3a6164933a6bf3970f7
4
+ data.tar.gz: 2a018829f56a8cbd42679fef24e16a7e8645c22ddeb7b4be2ca6b7b6c3c88211
5
5
  SHA512:
6
- metadata.gz: 0c334924b153062646d61d9f09f7a98a9a6932a364fe461b76284392de112242437f5d0381d16b6b8882b6d9b4073dd590172a3389dc0393f05d810ff9117eba
7
- data.tar.gz: 2cced2c61abe233c7bdaef8b9918239105724ca1b59d4524beec770709d269c814343216e6c7d5ee8545a146229db73201f161b7d711ca0e18eff3895cfb6801
6
+ metadata.gz: 5857b6c507783ce2dadaaf2fbd6c4df72defe1ea46c09e93e91cec3f9bb74b2e1bfc5dcd4d1a10eddd4b92eece7cb1b6f597e0bd0599841d1947e1682494589b
7
+ data.tar.gz: d1bfc879a720dd2a486e5a754cecbdb958a8a2bdefe930b9d1a86d34841c625d201ffdf8e151005423cd9813b9533d54db953fbaf59f5877a8874040e6543582
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ShapeupCli
4
- VERSION = "0.5.0"
4
+ VERSION = "0.6.0"
5
5
  end
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.5.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: 3.6.9
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: []