brainiac 0.0.22 → 0.0.23
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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/brainiac/handlers/shared/inline_tags.rb +9 -1
- data/lib/brainiac/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8bdf84241f89389aef9a1693abd00b1cfdf77d645c096081acb4ea0e8d1de8ed
|
|
4
|
+
data.tar.gz: 9ed60b3c1ba3fdcdcae4e3b05cfb15fa2a1a60c6311cd8add2c7fa9a3e4e839a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e5df006c01b492f2e1e9f9918a208b2bcdbdefcf0df032662b12d2f107872f1456ba37200ad70ebd19d3fa218da030a35681249ec4f232af56da4132bc7eef8
|
|
7
|
+
data.tar.gz: 24cc2728b08071c0ecc4c52bbabedf568446749322e27aad386c5b23395affce9e6b1c16c06feace6ba8487d261dc136a64db6325de1d75f1efc0ca320bef5f4
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
brainiac (0.0.
|
|
4
|
+
brainiac (0.0.23)
|
|
5
5
|
puma (~> 7.2)
|
|
6
6
|
rackup (~> 2.3)
|
|
7
7
|
sinatra (~> 4.1)
|
|
@@ -84,7 +84,7 @@ DEPENDENCIES
|
|
|
84
84
|
CHECKSUMS
|
|
85
85
|
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
86
86
|
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
87
|
-
brainiac (0.0.
|
|
87
|
+
brainiac (0.0.23)
|
|
88
88
|
json (2.19.9) sha256=9b9025b7cdddafa38d316eca0b2358488e42d417045c1b90d216a9fefe46b79a
|
|
89
89
|
language_server-protocol (3.17.0.5) sha256=fd1e39a51a28bf3eec959379985a72e296e9f9acfce46f6a79d31ca8760803cc
|
|
90
90
|
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
# Messages from any channel can contain inline tags like:
|
|
6
6
|
# [project:my-project], [opus], [effort:high], [cli:grok], [chat], [plan],
|
|
7
|
-
# [branch:feature-xyz], [workitem:wi-abc123]
|
|
7
|
+
# [fresh], [branch:feature-xyz], [workitem:wi-abc123]
|
|
8
8
|
#
|
|
9
9
|
# This module provides a single parser that extracts all tags and returns
|
|
10
10
|
# a structured result with the cleaned text.
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
# cli_provider: "grok" or nil,
|
|
19
19
|
# chat_mode: true/false,
|
|
20
20
|
# planning: true/false,
|
|
21
|
+
# fresh: true/false,
|
|
21
22
|
# deploy_intent: "dev01" / :auto / nil,
|
|
22
23
|
# worktree_override: "branch-name" or nil,
|
|
23
24
|
# clean_text: "the message with all tags stripped"
|
|
@@ -30,6 +31,7 @@ def parse_inline_tags(text)
|
|
|
30
31
|
cli_provider: nil,
|
|
31
32
|
chat_mode: false,
|
|
32
33
|
planning: false,
|
|
34
|
+
fresh: false,
|
|
33
35
|
deploy_intent: nil,
|
|
34
36
|
worktree_override: nil,
|
|
35
37
|
work_item: nil,
|
|
@@ -79,6 +81,12 @@ def parse_flag_tags(result)
|
|
|
79
81
|
result[:clean_text].sub!(/\[(chat|question|\?)\]/i, "")
|
|
80
82
|
end
|
|
81
83
|
|
|
84
|
+
# [fresh] — start a new CLI session instead of resuming the existing one
|
|
85
|
+
if result[:clean_text].match?(/\[fresh\]/i)
|
|
86
|
+
result[:fresh] = true
|
|
87
|
+
result[:clean_text].sub!(/\[fresh\]/i, "")
|
|
88
|
+
end
|
|
89
|
+
|
|
82
90
|
# [plan]
|
|
83
91
|
return unless result[:clean_text].match?(/\[plan\]/i)
|
|
84
92
|
|
data/lib/brainiac/version.rb
CHANGED