brainiac-fizzy 0.0.32 → 0.0.34

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: 7db11f41fae35db895516e80e9de7e4c8c058523bd8bcc11b5b6a64b00462c41
4
- data.tar.gz: 8cff0f7ca421e7ca5a20344a83f0f89a0a6cce4102f2daa5cc5d4fc5c2f1a2ac
3
+ metadata.gz: 521af9bdc041753be700051f9030e6423b50d9b3e30540ceedc04c6e3afd437f
4
+ data.tar.gz: 2359e3b29fed26076532d20f490a171b71d3c2aedba48d5e58ed768906dc8e69
5
5
  SHA512:
6
- metadata.gz: 66bb5070c162be023a3ed046e9748f4fdf1197841aeb47a07c8b660e3759a48aa01773b587edb68bd762f6ab863280c44578f3ba1cc4c654e4fc9ce74946ccac
7
- data.tar.gz: 9232d4131f5298d4a3e9190c39c360e0a02296ad05b40dacf12be5b64599517af001b94c56bbd9b032fcfafc89b004e6800f6a2a6372868e20e8dc74da5cd996
6
+ metadata.gz: f0ae809a2d5deb97132e2182dca55738ff5aabdcf112ecebc1a9ae5c80e8d0a9a99ac645fb80edbe180bd50693ee01e5f681ea3d12d541c8c1c042968b6d1a00
7
+ data.tar.gz: 0a638ffec02cfefd787dc478c1c99456df2c8296f87f9a2002352c192b600286dffa0443306c06ac1701186eb97365c10a268a426cd260b6ad4ae0c186f9b986
@@ -49,9 +49,14 @@ def handle_card_assigned(payload, board_key: nil)
49
49
  initial_cli = detect_cli_provider(tags: tags)
50
50
  initial_model, initial_model_explicit = detect_model_explicit(project_config, tags: tags)
51
51
  initial_effort = detect_effort(project_config, tags: tags)
52
- # Profile ([profile:X]/[p:X]) can be specified inline in the card title.
52
+ # Profile ([profile:X]/[p:X]) can be specified inline in the card title OR as a
53
+ # card tag (a `p:k+`/`profile:k+` chip, or a bare chip matching a known profile).
53
54
  # It's a named env bundle (e.g. an alternate kiro-cli account) — see core profiles.rb.
54
- initial_profile = parse_inline_tags(title.to_s)[:profile]
55
+ initial_profile = if defined?(detect_profile)
56
+ detect_profile(text: title.to_s, tags: tags)
57
+ else
58
+ parse_inline_tags(title.to_s)[:profile]
59
+ end
55
60
 
56
61
  # Persist initial overrides from card tags to the work item
57
62
  resolve_work_item_overrides(
@@ -147,7 +147,7 @@ def build_comment_context(eventable:, plain_text:, tags:, card_internal_id:, car
147
147
  card_tags: card_tags,
148
148
  worktree_override: resolve_worktree_override(tags, project_config),
149
149
  fresh: tags[:fresh],
150
- profile: tags[:profile],
150
+ profile: detect_comment_profile(plain_text, card_tags, tags),
151
151
  comment_vars: {
152
152
  "COMMENT_CREATOR" => creator_name || "Unknown",
153
153
  "COMMENT_ID" => comment_id.to_s,
@@ -156,6 +156,16 @@ def build_comment_context(eventable:, plain_text:, tags:, card_internal_id:, car
156
156
  )
157
157
  end
158
158
 
159
+ # Resolve the profile for a comment: prefer core's tag-aware detect_profile
160
+ # (inline text + card tags), falling back to inline-only for older core.
161
+ def detect_comment_profile(plain_text, card_tags, tags)
162
+ if defined?(detect_profile)
163
+ detect_profile(text: plain_text, tags: card_tags)
164
+ else
165
+ tags[:profile]
166
+ end
167
+ end
168
+
159
169
  def check_mention_gates(mentioned_agent, plain_text)
160
170
  mentioned_user_ids = detect_mentioned_user_ids(plain_text)
161
171
  if mentioned_user_ids.any? { |id| human_mentioned?(id) }
@@ -214,8 +214,16 @@ module Brainiac
214
214
  uat_col = Config.board_column_id(board_key, "uat")
215
215
  next [] unless uat_col
216
216
 
217
+ # The fizzy CLI's --column filter only works when scoped to a board.
218
+ # Without --board, `fizzy card list --column <id>` returns zero cards
219
+ # even when the column is populated, so the deploy would silently close
220
+ # nothing. Always pass the board ID alongside the column.
221
+ board_id = Config.board_config(board_key)&.dig("board_id")
222
+ next [] unless board_id
223
+
217
224
  env = Helpers.default_fizzy_env
218
- output = run_cmd("fizzy", "card", "list", "--column", uat_col, "--all",
225
+ output = run_cmd("fizzy", "card", "list", "--board", board_id,
226
+ "--column", uat_col, "--all",
219
227
  chdir: repo_path, env: env)
220
228
  card_list = JSON.parse(output)["data"] || []
221
229
  next [] if card_list.empty?
@@ -3,7 +3,7 @@
3
3
  module Brainiac
4
4
  module Plugins
5
5
  module Fizzy
6
- VERSION = "0.0.32"
6
+ VERSION = "0.0.34"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brainiac-fizzy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.32
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Davis