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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2f6f6333947e353250c4376dda8ca73b5a664b9abfbbb749a9436155c078bfa
4
- data.tar.gz: 59287d2abad5f87518d4d892f60a91980ac539dc7d04f0a5f9051e18109c257d
3
+ metadata.gz: 8bdf84241f89389aef9a1693abd00b1cfdf77d645c096081acb4ea0e8d1de8ed
4
+ data.tar.gz: 9ed60b3c1ba3fdcdcae4e3b05cfb15fa2a1a60c6311cd8add2c7fa9a3e4e839a
5
5
  SHA512:
6
- metadata.gz: 103697dfedeee51f027d37adfba26e15d0372e24c6f7bcca0af06d53e40999e79757ed0c28e52e921b2f2ca44068ccabb5e5282b8b39afe6825a67165084e2ed
7
- data.tar.gz: c2a6a2f76bddfe3c7a2b1db7f4d9a16484285d935f4e9b7fd2ef78c669934e4901537c43263f9206517626a3632f8204897f753ada2be7b89c8f9a1faa463451
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.22)
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.22)
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
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Brainiac
4
4
  # @return [String] the current gem version
5
- VERSION = "0.0.22"
5
+ VERSION = "0.0.23"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brainiac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Davis