ace-hitl 0.24.2 → 0.24.3

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: 18d85dc5d580a07b84780113776f166ded716932248787002ada4f483113b468
4
- data.tar.gz: 1744b1e6259e9b19cf17e4f184d54be65494b6221462f46afc421c8f8e953f68
3
+ metadata.gz: 3d4e7dd5c819e98ea18006c02d1d6e587857d4889f91bd4d42fc2d0e26461d9d
4
+ data.tar.gz: 4a05d425d80b079f03800fa9f7277412d8a2218f4b56d11a624df50baf4325eb
5
5
  SHA512:
6
- metadata.gz: 6e37a7a6c0b60ac6a7b91b3059548de70d0966ff775175f5044f7e220fe1e498268bad443a8c3d5ef3c82e93cdf2dbb7865a047024e4d1cf0e1d46465dc9a21c
7
- data.tar.gz: c48874a7f7e4177e54b358f31e1e4b3660d08165cc4f194613d8a8dbca45ccf6e47a4fc6e5f212ab9379dbcb1a9aaa426a80812576134f516014d47f979daacb
6
+ metadata.gz: 292cafb6c572d818b1c0a3988a36bd588303dacfa357a585fa0166430db74e61c682ad1d45242dc44be9943110c3cf45546f9f965aee7861e75b10862b2559b2
7
+ data.tar.gz: 03b92ef04274f643f84f2868d19f021ff4e72f0add38d164e4e11657ee1c532571aeb6751ab29b5fe67d8475a23352e195cf8f284b347985554a02f881c8d984
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.24.3] - 2026-10-29
11
+
12
+ ### Fixed
13
+
14
+ - Answer and field-update rebuilds parse the case file strictly: an unparsable frontmatter block aborts the mutation instead of silently rebuilding the case from an empty frontmatter (HOTFIX cycle-2b follow-up to the 8xsdfo ask-flow corruption).
15
+
10
16
  ## [0.24.2] - 2026-10-27
11
17
 
12
18
  ### Added
@@ -410,7 +410,7 @@ module Ace
410
410
 
411
411
  def apply_answer_update(file_path, answer)
412
412
  content = File.read(file_path)
413
- frontmatter, body = Ace::Support::Items::Atoms::FrontmatterParser.parse(content)
413
+ frontmatter, body = Ace::Support::Items::Atoms::FrontmatterParser.parse!(content)
414
414
 
415
415
  updated_body = Molecules::HitlAnswerEditor.apply(body, answer)
416
416
  answered = !answer.to_s.strip.empty?
@@ -432,7 +432,7 @@ module Ace
432
432
  file.rewind
433
433
 
434
434
  content = file.read
435
- frontmatter, body = Ace::Support::Items::Atoms::FrontmatterParser.parse(content)
435
+ frontmatter, body = Ace::Support::Items::Atoms::FrontmatterParser.parse!(content)
436
436
  body = body.sub(/\A\n/, "")
437
437
  previous = body.match(/^## Answer[ \t]*(?:\n(.*))?\z/m)&.[](1).to_s.strip
438
438
  if first_answer && (frontmatter["answered"] == true || !previous.empty?)
@@ -525,7 +525,7 @@ module Ace
525
525
 
526
526
  event = current[:event]
527
527
  content = File.read(event.file_path)
528
- frontmatter, body = Ace::Support::Items::Atoms::FrontmatterParser.parse(content)
528
+ frontmatter, body = Ace::Support::Items::Atoms::FrontmatterParser.parse!(content)
529
529
  updated_body = body.to_s.sub(/\s*\z/, "")
530
530
  updated_body << "\n\n## Resume Dispatch\n\n#{note}\n"
531
531
  rebuilt = Ace::Support::Items::Atoms::FrontmatterSerializer.rebuild(frontmatter, updated_body)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ace
4
4
  module Hitl
5
- VERSION = "0.24.2"
5
+ VERSION = "0.24.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ace-hitl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.2
4
+ version: 0.24.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Czyz
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-10-27 00:00:00.000000000 Z
10
+ date: 2026-10-29 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ace-hitl-contract