phronomy 0.35.0 → 0.35.1
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/CHANGELOG.md +17 -0
- data/README.md +1 -1
- data/SECURITY.md +1 -1
- data/lib/phronomy/version.rb +1 -1
- data/lib/phronomy/workflow/runtime_binding/workflow_phase_machine_builder.rb +12 -4
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a4e1f6acc08dbb7935eda1e96414206533947e2f058f8bcf5c42edc09476785
|
|
4
|
+
data.tar.gz: 6c12e888f0f332c4528a0f7e836549cf9fd0972ba9dbe8e504e6b013f53326e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2c5073c3c843cd35b13af8a6ab4261d3f06fe4a778a4d26515a8ee6e34e529e81098feacb7a73c4f2a9ad8bb5b7c88c825f93b8a8eb166a01638c78ea764b70
|
|
7
|
+
data.tar.gz: c454670df102b097412e406422668b0a3055fb6bedb416fac9b1775d4db529973699e5911671afd29dd62862ae1fe2faf4ce8044c8813c0eada5287a47cba9be
|
data/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,23 @@ Release history for 0.14.0 and earlier is archived in
|
|
|
12
12
|
|
|
13
13
|
## [Unreleased]
|
|
14
14
|
|
|
15
|
+
## [0.35.1] - 2026-11-18
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Preserve Workflow states named `before`, `after`, `around` or `do` when
|
|
20
|
+
compiling transitions with state_machines 0.304.0. Explicit source and target
|
|
21
|
+
arguments avoid callback-key collisions while retaining transition guards.
|
|
22
|
+
- Avoid repeated state declaration checks when dispatching a compiled Workflow's
|
|
23
|
+
automatic completion event. Guards, callbacks, external-event handling and the
|
|
24
|
+
generic FSMSession contract are unchanged.
|
|
25
|
+
- Exclude only `regexp_parser 2.13.2` from the distributed gem because
|
|
26
|
+
`json_schemer 2.5.0` fails to load after `implements` became private in 2.13.2.
|
|
27
|
+
This protects application dependency resolution while allowing the upstream
|
|
28
|
+
fix in 2.13.3 and later versions
|
|
29
|
+
([regexp_parser #116](https://github.com/ammar/regexp_parser/issues/116),
|
|
30
|
+
[json_schemer #238](https://github.com/davishmcclurg/json_schemer/issues/238)).
|
|
31
|
+
|
|
15
32
|
## [0.35.0] - 2026-11-17
|
|
16
33
|
|
|
17
34
|
### Added
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ tracking `main` directly.
|
|
|
37
37
|
|
|
38
38
|
See [Features and Application Programming Interface (API) stability](docs/features.md) for the full feature matrix.
|
|
39
39
|
|
|
40
|
-
The following table describes the application APIs available in v0.35.
|
|
40
|
+
The following table describes the application APIs available in v0.35.1.
|
|
41
41
|
The public persistence resource catalogs are available starting with v0.35.0.
|
|
42
42
|
The sharing, Tool composition and Context budgeting operations remain
|
|
43
43
|
Experimental; their introduction version is shown below.
|
data/SECURITY.md
CHANGED
data/lib/phronomy/version.rb
CHANGED
|
@@ -57,8 +57,9 @@ module Phronomy
|
|
|
57
57
|
event :state_completed do
|
|
58
58
|
auto_transitions.each do |transition_definition|
|
|
59
59
|
transition(
|
|
60
|
-
|
|
61
|
-
:
|
|
60
|
+
from: transition_definition[:from],
|
|
61
|
+
to: transition_definition[:to],
|
|
62
|
+
if: condition_builder.call(transition_definition)
|
|
62
63
|
)
|
|
63
64
|
end
|
|
64
65
|
end
|
|
@@ -67,8 +68,9 @@ module Phronomy
|
|
|
67
68
|
event event_name do
|
|
68
69
|
transitions.each do |transition_definition|
|
|
69
70
|
transition(
|
|
70
|
-
|
|
71
|
-
:
|
|
71
|
+
from: transition_definition[:from],
|
|
72
|
+
to: transition_definition[:to],
|
|
73
|
+
if: condition_builder.call(transition_definition)
|
|
72
74
|
)
|
|
73
75
|
end
|
|
74
76
|
end
|
|
@@ -98,6 +100,12 @@ module Phronomy
|
|
|
98
100
|
|
|
99
101
|
before_transition(&transition_callback)
|
|
100
102
|
end
|
|
103
|
+
|
|
104
|
+
# Dispatch the compiled automatic event without reopening its declaration.
|
|
105
|
+
# Resolve through the receiver's class so inherited machines stay isolated.
|
|
106
|
+
def state_completed(*args, **kwargs)
|
|
107
|
+
self.class.state_machine(:phase).events.fetch(:state_completed).fire(self, *args, **kwargs)
|
|
108
|
+
end
|
|
101
109
|
end
|
|
102
110
|
rescue => error
|
|
103
111
|
raise ArgumentError, "Failed to build phase machine: #{error.message}"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phronomy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.35.
|
|
4
|
+
version: 0.35.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Raizo T.C.S
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ruby_llm
|
|
@@ -92,6 +92,20 @@ dependencies:
|
|
|
92
92
|
- - "~>"
|
|
93
93
|
- !ruby/object:Gem::Version
|
|
94
94
|
version: '2.5'
|
|
95
|
+
- !ruby/object:Gem::Dependency
|
|
96
|
+
name: regexp_parser
|
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
|
98
|
+
requirements:
|
|
99
|
+
- - "!="
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: 2.13.2
|
|
102
|
+
type: :runtime
|
|
103
|
+
prerelease: false
|
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
+
requirements:
|
|
106
|
+
- - "!="
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: 2.13.2
|
|
95
109
|
- !ruby/object:Gem::Dependency
|
|
96
110
|
name: zeitwerk
|
|
97
111
|
requirement: !ruby/object:Gem::Requirement
|