brainiac-fizzy 0.0.34 → 0.0.36
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: 0331a4c7b65d16f904f1881a8f91b0112231bcd454a840a6427913ee69397c6a
|
|
4
|
+
data.tar.gz: f2289e72145e88b40ec226ccaceda3446e843c7b096e48179523bf28514f3efb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32d155eaa59fea6ce594917105878a306b5904acb48da08f3f074a9ce3d0f84d48941e191f3ba0c9e5c7decde2427c7d084cefacd8641cf838932ab962441256
|
|
7
|
+
data.tar.gz: 3d5929611f64d6685e7d8cb76a2cfd4a8e101a0eae52480d38656d8f1b5c7dffe70423d7b481f3c38023eeb0a48721397442070d4e9713de4ffe6969ff5fc043
|
|
@@ -58,12 +58,15 @@ def handle_card_assigned(payload, board_key: nil)
|
|
|
58
58
|
parse_inline_tags(title.to_s)[:profile]
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
# Persist initial overrides from card tags to the work item
|
|
61
|
+
# Persist initial overrides from card tags to the work item (profile included, so
|
|
62
|
+
# later comments without a [p:X] keep using it).
|
|
63
|
+
profile_kwargs = work_item_overrides_support_profile? ? { inline_profile: initial_profile } : {}
|
|
62
64
|
resolve_work_item_overrides(
|
|
63
65
|
branch: branch,
|
|
64
66
|
inline_cli_provider: initial_cli,
|
|
65
67
|
inline_model: initial_model,
|
|
66
|
-
inline_effort: initial_effort
|
|
68
|
+
inline_effort: initial_effort,
|
|
69
|
+
**profile_kwargs
|
|
67
70
|
)
|
|
68
71
|
|
|
69
72
|
maybe_create_ephemeral_belt_env(
|
|
@@ -110,26 +110,32 @@ def build_comment_context(eventable:, plain_text:, tags:, card_internal_id:, car
|
|
|
110
110
|
clean_text = tags[:clean_text]
|
|
111
111
|
|
|
112
112
|
inline_cli = detect_cli_provider(text: plain_text, tags: card_tags)
|
|
113
|
-
inline_model, inline_model_explicit = detect_model_explicit(project_config, text: plain_text)
|
|
113
|
+
inline_model, inline_model_explicit = detect_model_explicit(project_config, text: plain_text, tags: card_tags)
|
|
114
114
|
inline_effort = detect_effort(project_config, tags: card_tags, text: plain_text)
|
|
115
|
+
inline_profile = detect_comment_profile(plain_text, card_tags, tags)
|
|
115
116
|
|
|
116
117
|
# Resolve overrides against the work item — merges stored overrides with inline tags
|
|
117
|
-
# and persists any new inline tags for future dispatches.
|
|
118
|
+
# and persists any new inline tags for future dispatches. The profile is sticky too:
|
|
119
|
+
# a [p:k+] comment keeps later untagged comments on k+ until a different [p:X].
|
|
118
120
|
branch = card_info["branch"] if card_info.is_a?(Hash)
|
|
119
121
|
if branch
|
|
122
|
+
profile_kwargs = work_item_overrides_support_profile? ? { inline_profile: inline_profile } : {}
|
|
120
123
|
resolved = resolve_work_item_overrides(
|
|
121
124
|
branch: branch,
|
|
122
125
|
inline_cli_provider: inline_cli,
|
|
123
126
|
inline_model: inline_model,
|
|
124
|
-
inline_effort: inline_effort
|
|
127
|
+
inline_effort: inline_effort,
|
|
128
|
+
**profile_kwargs
|
|
125
129
|
)
|
|
126
130
|
effective_cli = resolved[:cli_provider]
|
|
127
131
|
effective_model = resolved[:model]
|
|
128
132
|
effective_effort = resolved[:effort]
|
|
133
|
+
effective_profile = resolved.fetch(:profile, inline_profile)
|
|
129
134
|
else
|
|
130
135
|
effective_cli = inline_cli
|
|
131
136
|
effective_model = inline_model
|
|
132
137
|
effective_effort = inline_effort
|
|
138
|
+
effective_profile = inline_profile
|
|
133
139
|
end
|
|
134
140
|
|
|
135
141
|
CommentContext.new(
|
|
@@ -147,7 +153,7 @@ def build_comment_context(eventable:, plain_text:, tags:, card_internal_id:, car
|
|
|
147
153
|
card_tags: card_tags,
|
|
148
154
|
worktree_override: resolve_worktree_override(tags, project_config),
|
|
149
155
|
fresh: tags[:fresh],
|
|
150
|
-
profile:
|
|
156
|
+
profile: effective_profile,
|
|
151
157
|
comment_vars: {
|
|
152
158
|
"COMMENT_CREATOR" => creator_name || "Unknown",
|
|
153
159
|
"COMMENT_ID" => comment_id.to_s,
|
|
@@ -156,6 +162,11 @@ def build_comment_context(eventable:, plain_text:, tags:, card_internal_id:, car
|
|
|
156
162
|
)
|
|
157
163
|
end
|
|
158
164
|
|
|
165
|
+
# Older core builds' resolve_work_item_overrides has no inline_profile: keyword.
|
|
166
|
+
def work_item_overrides_support_profile?
|
|
167
|
+
method(:resolve_work_item_overrides).parameters.any? { |t, n| t == :key && n == :inline_profile }
|
|
168
|
+
end
|
|
169
|
+
|
|
159
170
|
# Resolve the profile for a comment: prefer core's tag-aware detect_profile
|
|
160
171
|
# (inline text + card tags), falling back to inline-only for older core.
|
|
161
172
|
def detect_comment_profile(plain_text, card_tags, tags)
|