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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 521af9bdc041753be700051f9030e6423b50d9b3e30540ceedc04c6e3afd437f
|
|
4
|
+
data.tar.gz: 2359e3b29fed26076532d20f490a171b71d3c2aedba48d5e58ed768906dc8e69
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 =
|
|
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
|
|
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) }
|