okstra 0.98.0 → 0.98.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "okstra",
3
- "version": "0.98.0",
3
+ "version": "0.98.1",
4
4
  "description": "Multi-agent cross-verification orchestrator runtime + Claude Code skills.",
5
5
  "license": "MIT",
6
6
  "author": "devonshin",
@@ -1,5 +1,5 @@
1
1
  {
2
- "package": "0.98.0",
3
- "builtAt": "2026-06-22T07:12:38.070Z",
2
+ "package": "0.98.1",
3
+ "builtAt": "2026-06-22T07:33:44.995Z",
4
4
  "repoRoot": "/home/runner/work/okstra/okstra"
5
5
  }
@@ -253,7 +253,12 @@ if (( idle_timeout_secs > 0 )); then
253
253
  while kill -0 "$agy_pid" 2>/dev/null; do
254
254
  sleep "$poll_interval"
255
255
  kill -0 "$agy_pid" 2>/dev/null || exit 0
256
- last_mtime=$(stat -f %m "$log_path" 2>/dev/null || stat -c %Y "$log_path" 2>/dev/null || printf '0')
256
+ # GNU `stat -c` 우선 + 숫자 검증. BSD-ism `stat -f %m` Linux 에서 깨끗이
257
+ # 실패하지 않고 비숫자 파일시스템 출력으로 성공해 아래 산술을 set -u 에서
258
+ # 깨뜨린다 — file_mtime(lib/okstra/interactive.sh) 와 동일 가드.
259
+ last_mtime="$(stat -c %Y "$log_path" 2>/dev/null)"
260
+ [[ "$last_mtime" =~ ^[0-9]+$ ]] || last_mtime="$(stat -f %m "$log_path" 2>/dev/null)"
261
+ [[ "$last_mtime" =~ ^[0-9]+$ ]] || last_mtime=0
257
262
  now=$(date +%s)
258
263
  idle=$(( now - last_mtime ))
259
264
  if (( idle >= idle_timeout_secs )); then
@@ -99,7 +99,12 @@ if (( idle_timeout_secs > 0 )); then
99
99
  while kill -0 "$claude_pid" 2>/dev/null; do
100
100
  sleep "$poll_interval"
101
101
  kill -0 "$claude_pid" 2>/dev/null || exit 0
102
- last_mtime=$(stat -f %m "$log_path" 2>/dev/null || stat -c %Y "$log_path" 2>/dev/null || printf '0')
102
+ # GNU `stat -c` 우선 + 숫자 검증. BSD-ism `stat -f %m` Linux 에서 깨끗이
103
+ # 실패하지 않고 비숫자 파일시스템 출력으로 성공해 아래 산술을 set -u 에서
104
+ # 깨뜨린다 — file_mtime(lib/okstra/interactive.sh) 와 동일 가드.
105
+ last_mtime="$(stat -c %Y "$log_path" 2>/dev/null)"
106
+ [[ "$last_mtime" =~ ^[0-9]+$ ]] || last_mtime="$(stat -f %m "$log_path" 2>/dev/null)"
107
+ [[ "$last_mtime" =~ ^[0-9]+$ ]] || last_mtime=0
103
108
  now=$(date +%s)
104
109
  idle=$(( now - last_mtime ))
105
110
  if (( idle >= idle_timeout_secs )); then
@@ -328,7 +328,12 @@ if (( idle_timeout_secs > 0 )); then
328
328
  while kill -0 "$codex_pid" 2>/dev/null; do
329
329
  sleep "$poll_interval"
330
330
  kill -0 "$codex_pid" 2>/dev/null || exit 0
331
- last_mtime=$(stat -f %m "$log_path" 2>/dev/null || stat -c %Y "$log_path" 2>/dev/null || printf '0')
331
+ # GNU `stat -c` 우선 + 숫자 검증. BSD-ism `stat -f %m` Linux 에서 깨끗이
332
+ # 실패하지 않고 비숫자 파일시스템 출력으로 성공해 아래 산술을 set -u 에서
333
+ # 깨뜨린다 — file_mtime(lib/okstra/interactive.sh) 와 동일 가드.
334
+ last_mtime="$(stat -c %Y "$log_path" 2>/dev/null)"
335
+ [[ "$last_mtime" =~ ^[0-9]+$ ]] || last_mtime="$(stat -f %m "$log_path" 2>/dev/null)"
336
+ [[ "$last_mtime" =~ ^[0-9]+$ ]] || last_mtime=0
332
337
  now=$(date +%s)
333
338
  idle=$(( now - last_mtime ))
334
339
  if (( idle >= idle_timeout_secs )); then