yamine 0.7.1 → 0.8.0
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 +18 -0
- data/lib/ask/skills/yamine/SKILL.md +22 -0
- data/lib/yamine/log.rb +15 -3
- data/lib/yamine/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: 04f00c2029bf4cda65d187225d251fc594bacf538092e6a56d9c5a03f9aa47fd
|
|
4
|
+
data.tar.gz: 963f1c74d64ddb94199d42325f6d8631a5dd2d618119554a4e1a72849394c5bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e02efba8d7c16767b0c4b8908d295f4c095f7c32f5ef90885e1ecf0a50aa68d61cb9e0c780d3729f703fcc14fc282eed46430d4efce631762dbb832ddecf408
|
|
7
|
+
data.tar.gz: 6d36c287b907fcfba07da2db3ecf1904ff4b396fb2bf8df277e0f9dfb23515e9245d574fb0bed85a034cd9f41fae14834842c722c3ac298e9f0fafedb1d30b45
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.0] — 2026-09-10
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **`--json` progress is flushed as it happens.** stdout is
|
|
8
|
+
block-buffered when it is a pipe — exactly how an agent reads the
|
|
9
|
+
stream — so the per-phase events added in 0.7.0 stayed in the buffer
|
|
10
|
+
until it filled or the process exited, making a slow boot look frozen.
|
|
11
|
+
That is the "poll and guess" behaviour the JSON stream exists to
|
|
12
|
+
replace. Every line is now flushed before the next phase runs.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- The yamine agent skill documents the boot stream: the human
|
|
17
|
+
phase lines, the `--json` contract (one flushed object per line, human
|
|
18
|
+
banner on stderr, payload last), and that failures carry the log tail
|
|
19
|
+
and path.
|
|
20
|
+
|
|
3
21
|
## [0.7.1] — 2026-09-10
|
|
4
22
|
|
|
5
23
|
### Fixed
|
|
@@ -46,6 +46,28 @@ yamine log [-f] # tail the web process log
|
|
|
46
46
|
stable URLs, background ones are supervised without routes. A process
|
|
47
47
|
that exits cleans up the whole tree.
|
|
48
48
|
|
|
49
|
+
The boot narrates every phase — deps, db, schema, and each process's
|
|
50
|
+
healthcheck — one line per phase, so a slow boot is never a black box:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
[deps] ok (479ms) dependencies satisfied
|
|
54
|
+
[web] ok (2.2s) healthcheck /up returned 2xx-3xx
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
With `--json` the same events stream to stdout as one JSON object per
|
|
58
|
+
line, flushed as they happen (safe to read incrementally), and the
|
|
59
|
+
human banner moves to stderr — so stdout stays parseable and the final
|
|
60
|
+
payload is the last line:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
{"phase":"deps","action":"deps","status":"ok","duration_ms":479,...}
|
|
64
|
+
{"phase":"process","action":"web","status":"ok","duration_ms":2223,...}
|
|
65
|
+
{"ok":true,"service":"myapp","urls":{"web":"https://myapp.localhost"},...}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
On failure the payload carries the failed phase, that process's log tail,
|
|
69
|
+
and the log path — no need to go digging.
|
|
70
|
+
|
|
49
71
|
## Cross-service wiring
|
|
50
72
|
|
|
51
73
|
```bash
|
data/lib/yamine/log.rb
CHANGED
|
@@ -96,6 +96,12 @@ module Yamine
|
|
|
96
96
|
|
|
97
97
|
# One JSON object per line — the agent contract. Same events, no
|
|
98
98
|
# prose.
|
|
99
|
+
#
|
|
100
|
+
# Every line is flushed. stdout is block-buffered when it is a pipe
|
|
101
|
+
# or a file, which is exactly how an agent reads it, so without the
|
|
102
|
+
# flush the whole progress stream stays invisible until the buffer
|
|
103
|
+
# fills or the process exits — the "poll and guess" behaviour the
|
|
104
|
+
# JSON stream exists to replace, now with extra steps.
|
|
99
105
|
class Json
|
|
100
106
|
def initialize(io = $stdout)
|
|
101
107
|
@io = io
|
|
@@ -103,12 +109,18 @@ module Yamine
|
|
|
103
109
|
|
|
104
110
|
def event(event)
|
|
105
111
|
require "json"
|
|
106
|
-
|
|
112
|
+
emit(event.to_h)
|
|
107
113
|
end
|
|
108
114
|
|
|
109
115
|
def note(message)
|
|
110
|
-
|
|
111
|
-
|
|
116
|
+
emit({ note: message })
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
private
|
|
120
|
+
|
|
121
|
+
def emit(payload)
|
|
122
|
+
@io.puts JSON.generate(payload)
|
|
123
|
+
@io.flush if @io.respond_to?(:flush)
|
|
112
124
|
end
|
|
113
125
|
end
|
|
114
126
|
end
|
data/lib/yamine/version.rb
CHANGED