oh-my-customcodex 0.1.1 → 0.1.5

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/dist/cli/index.js CHANGED
@@ -3087,7 +3087,7 @@ var init_package = __esm(() => {
3087
3087
  workspaces: [
3088
3088
  "packages/*"
3089
3089
  ],
3090
- version: "0.1.1",
3090
+ version: "0.1.5",
3091
3091
  description: "Batteries-included agent harness on top of GPT Codex + OMX",
3092
3092
  type: "module",
3093
3093
  bin: {
package/dist/index.js CHANGED
@@ -2173,7 +2173,7 @@ var package_default = {
2173
2173
  workspaces: [
2174
2174
  "packages/*"
2175
2175
  ],
2176
- version: "0.1.1",
2176
+ version: "0.1.5",
2177
2177
  description: "Batteries-included agent harness on top of GPT Codex + OMX",
2178
2178
  type: "module",
2179
2179
  bin: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "workspaces": [
4
4
  "packages/*"
5
5
  ],
6
- "version": "0.1.1",
6
+ "version": "0.1.5",
7
7
  "description": "Batteries-included agent harness on top of GPT Codex + OMX",
8
8
  "type": "module",
9
9
  "bin": {
@@ -7,8 +7,8 @@ set -euo pipefail
7
7
  # Pass through stdin (Stop hook protocol)
8
8
  input=$(cat)
9
9
 
10
- OUTCOMES_FILE="/tmp/.codex-task-outcomes-${PPID}"
11
- PROPOSALS_FILE="/tmp/.codex-skill-proposals-${PPID}"
10
+ OUTCOMES_FILE="${CODEX_TASK_OUTCOMES_FILE:-/tmp/.codex-task-outcomes-${PPID}}"
11
+ PROPOSALS_FILE="${CODEX_SKILL_PROPOSALS_FILE:-/tmp/.codex-skill-proposals-${PPID}}"
12
12
 
13
13
  # Early exit if no outcomes
14
14
  if [ ! -f "$OUTCOMES_FILE" ] || [ ! -s "$OUTCOMES_FILE" ]; then
@@ -16,24 +16,55 @@ if [ ! -f "$OUTCOMES_FILE" ] || [ ! -s "$OUTCOMES_FILE" ]; then
16
16
  exit 0
17
17
  fi
18
18
 
19
- # Count qualifying patterns (3+ successes with 80%+ rate)
20
- # Group by agent_type+skill, count successes
21
- CANDIDATES=0
22
-
23
- if command -v jq &>/dev/null; then
24
- # Parse JSONL and group by agent_type+skill
25
- CANDIDATES=$(cat "$OUTCOMES_FILE" | \
26
- jq -s '
27
- group_by(.agent_type + "|" + (.skill // "none"))
28
- | map({
29
- key: .[0].agent_type + "|" + (.[0].skill // "none"),
30
- total: length,
31
- successes: [.[] | select(.outcome == "success")] | length
32
- })
33
- | map(select(.successes >= 3 and (.successes / .total) >= 0.8))
34
- | length
35
- ' 2>/dev/null || echo "0")
36
- fi
19
+ # Count qualifying patterns (3+ successes with 80%+ rate).
20
+ # Parse the JSONL conservatively with awk to avoid external jq dependency
21
+ # and reduce batch-test flakiness around optional PATH/tool availability.
22
+ CANDIDATES=$(
23
+ awk '
24
+ {
25
+ agent = ""
26
+ skill = "none"
27
+ outcome = ""
28
+
29
+ if (match($0, /"agent_type"[[:space:]]*:[[:space:]]*"[^"]+"/)) {
30
+ agent = substr($0, RSTART, RLENGTH)
31
+ sub(/^.*"agent_type"[[:space:]]*:[[:space:]]*"/, "", agent)
32
+ sub(/"$/, "", agent)
33
+ }
34
+
35
+ if (match($0, /"skill"[[:space:]]*:[[:space:]]*"[^"]+"/)) {
36
+ skill = substr($0, RSTART, RLENGTH)
37
+ sub(/^.*"skill"[[:space:]]*:[[:space:]]*"/, "", skill)
38
+ sub(/"$/, "", skill)
39
+ }
40
+
41
+ if (match($0, /"outcome"[[:space:]]*:[[:space:]]*"[^"]+"/)) {
42
+ outcome = substr($0, RSTART, RLENGTH)
43
+ sub(/^.*"outcome"[[:space:]]*:[[:space:]]*"/, "", outcome)
44
+ sub(/"$/, "", outcome)
45
+ }
46
+
47
+ if (agent != "" && outcome != "") {
48
+ key = agent "|" skill
49
+ total[key]++
50
+ if (outcome == "success") {
51
+ successes[key]++
52
+ }
53
+ }
54
+ }
55
+
56
+ END {
57
+ candidates = 0
58
+ for (key in total) {
59
+ success_count = successes[key] + 0
60
+ if (success_count >= 3 && (success_count / total[key]) >= 0.8) {
61
+ candidates++
62
+ }
63
+ }
64
+ print candidates + 0
65
+ }
66
+ ' "$OUTCOMES_FILE" 2>/dev/null || echo "0"
67
+ )
37
68
 
38
69
  if [ "$CANDIDATES" -gt 0 ] 2>/dev/null; then
39
70
  echo "[skill-extractor] ${CANDIDATES} skill candidate(s) detected from session outcomes" >&2
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.1.1",
3
- "lastUpdated": "2026-04-18T00:00:00.000Z",
2
+ "version": "0.1.5",
3
+ "lastUpdated": "2026-04-19T07:00:00.000Z",
4
4
  "components": [
5
5
  {
6
6
  "name": "rules",
@@ -1,4 +1,4 @@
1
- # /omcustom:workflow auto-dev — Full-auto release pipeline
1
+ # /pipeline auto-dev — Full-auto release pipeline
2
2
  # Pre-triages open issues → triage verify-done → plan → implement → verify → PR → followup
3
3
 
4
4
  name: auto-dev