brainiac-fizzy 0.0.9 → 0.0.10
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: 58da7bc4b4b3365df978936518462a054cd9aa1f4b1715cfdb45c41820c10cac
|
|
4
|
+
data.tar.gz: e3b3c47d4bbc5f03e58d99fb5281fc67ababeebf299ed78d505cd831556e36f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0cd98dc6c45a30b806cb8da059fee1e8d49d36032fba262e0cbc9d5e82d563daa6f32bbd6b5419a3f7ae9b139ecc9613f07b93202edcb8dfb44f823e2b8867af
|
|
7
|
+
data.tar.gz: 7cd864aa4ab8b418052ce1c251b17f89bab7aa1fe2163efb6df3bab7df5629d57386180fe52f5d6d6983d2c9910fdd6a27fcc0bdf650e0e1186798b388cdec7f
|
|
@@ -46,11 +46,23 @@ def handle_card_assigned(payload)
|
|
|
46
46
|
react_to_assignment(card_number, repo_path, assigned_agent)
|
|
47
47
|
worktree_path = setup_assigned_worktree(repo_path, branch, card_internal_id, card_number, project_key, assigned_agent)
|
|
48
48
|
|
|
49
|
+
initial_cli = detect_cli_provider(tags: tags)
|
|
50
|
+
initial_model = detect_model(project_config, tags: tags)
|
|
51
|
+
initial_effort = detect_effort(project_config, tags: tags)
|
|
52
|
+
|
|
53
|
+
# Persist initial overrides from card tags to the work item
|
|
54
|
+
resolve_work_item_overrides(
|
|
55
|
+
branch: branch,
|
|
56
|
+
inline_cli_provider: initial_cli,
|
|
57
|
+
inline_model: initial_model,
|
|
58
|
+
inline_effort: initial_effort
|
|
59
|
+
)
|
|
60
|
+
|
|
49
61
|
dispatch_assigned_card(
|
|
50
62
|
card_number: card_number, card_internal_id: card_internal_id, title: title, tags: tags,
|
|
51
63
|
branch: branch, worktree_path: worktree_path, project_config: project_config, project_key: project_key,
|
|
52
|
-
agent_name: assigned_agent, model:
|
|
53
|
-
effort:
|
|
64
|
+
agent_name: assigned_agent, model: initial_model,
|
|
65
|
+
effort: initial_effort, cli_provider_override: initial_cli
|
|
54
66
|
)
|
|
55
67
|
end
|
|
56
68
|
|
|
@@ -91,16 +91,39 @@ def build_comment_context(eventable:, plain_text:, tags:, card_internal_id:, car
|
|
|
91
91
|
card_tags = eventable.dig("card", "tags") || []
|
|
92
92
|
clean_text = tags[:clean_text]
|
|
93
93
|
|
|
94
|
+
inline_cli = detect_cli_provider(text: plain_text, tags: card_tags)
|
|
95
|
+
inline_model = detect_model(project_config, text: plain_text)
|
|
96
|
+
inline_effort = detect_effort(project_config, tags: card_tags, text: plain_text)
|
|
97
|
+
|
|
98
|
+
# Resolve overrides against the work item — merges stored overrides with inline tags
|
|
99
|
+
# and persists any new inline tags for future dispatches.
|
|
100
|
+
branch = card_info["branch"] if card_info.is_a?(Hash)
|
|
101
|
+
if branch
|
|
102
|
+
resolved = resolve_work_item_overrides(
|
|
103
|
+
branch: branch,
|
|
104
|
+
inline_cli_provider: inline_cli,
|
|
105
|
+
inline_model: inline_model,
|
|
106
|
+
inline_effort: inline_effort
|
|
107
|
+
)
|
|
108
|
+
effective_cli = resolved[:cli_provider]
|
|
109
|
+
effective_model = resolved[:model]
|
|
110
|
+
effective_effort = resolved[:effort]
|
|
111
|
+
else
|
|
112
|
+
effective_cli = inline_cli
|
|
113
|
+
effective_model = inline_model
|
|
114
|
+
effective_effort = inline_effort
|
|
115
|
+
end
|
|
116
|
+
|
|
94
117
|
CommentContext.new(
|
|
95
118
|
eventable: eventable, plain_text: clean_text, card_internal_id: card_internal_id,
|
|
96
119
|
card_info: card_info, comment_id: comment_id, creator_name: creator_name,
|
|
97
120
|
creator_is_agent: creator_is_agent, mentioned_agent: mentioned_agent,
|
|
98
121
|
agent_name: agent_name, is_cross_agent_mention: is_cross_agent_mention,
|
|
99
122
|
project_config: project_config, project_key: project_key,
|
|
100
|
-
model:
|
|
101
|
-
effort:
|
|
123
|
+
model: effective_model,
|
|
124
|
+
effort: effective_effort,
|
|
102
125
|
deploy_intent: deploy_intent,
|
|
103
|
-
cli_provider_override:
|
|
126
|
+
cli_provider_override: effective_cli,
|
|
104
127
|
card_tags: card_tags,
|
|
105
128
|
worktree_override: resolve_worktree_override(tags, project_config),
|
|
106
129
|
comment_vars: {
|