brainiac-fizzy 0.0.33 → 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: 73e0fdc588f36dbb58a5b2bd1d0bbf09ccd7809f15bb617f724bbb475a133509
4
- data.tar.gz: 4850ccddc2c85919f647c8366abd7eb02def7a5a6af8c4e27d197a96ba49a1a3
3
+ metadata.gz: 521af9bdc041753be700051f9030e6423b50d9b3e30540ceedc04c6e3afd437f
4
+ data.tar.gz: 2359e3b29fed26076532d20f490a171b71d3c2aedba48d5e58ed768906dc8e69
5
5
  SHA512:
6
- metadata.gz: adf01018ab21bf8cfe45ce46f07a78ec0555d087b8dc52c723e8aaa45e8645d8d6af0e4a2f1361aba29ba67e5461f0c082702e555eb5aabc7989c8b6fa6a8ec2
7
- data.tar.gz: df58a01aabc1ea99c0957c122db69fe4f9daf46647a300da2e20f62724bab31df156da360508162b11a80229e444da05ec188173dd2af175a6f3248754222359
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) }
@@ -3,7 +3,7 @@
3
3
  module Brainiac
4
4
  module Plugins
5
5
  module Fizzy
6
- VERSION = "0.0.33"
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.33
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Davis