oh-my-codex-pennix 0.18.13 → 0.18.15
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/Cargo.toml +1 -1
- package/dist/scripts/codex-native-hook.d.ts.map +1 -1
- package/dist/scripts/codex-native-hook.js +16 -2
- package/dist/scripts/codex-native-hook.js.map +1 -1
- package/dist/scripts/notify-hook/team-leader-nudge.d.ts.map +1 -1
- package/dist/scripts/notify-hook/team-leader-nudge.js +8 -0
- package/dist/scripts/notify-hook/team-leader-nudge.js.map +1 -1
- package/dist/scripts/notify-hook/team-worker-stop.d.ts.map +1 -1
- package/dist/scripts/notify-hook/team-worker-stop.js +4 -0
- package/dist/scripts/notify-hook/team-worker-stop.js.map +1 -1
- package/dist/scripts/notify-hook/team-worker.d.ts.map +1 -1
- package/dist/scripts/notify-hook/team-worker.js +4 -0
- package/dist/scripts/notify-hook/team-worker.js.map +1 -1
- package/package.json +1 -1
- package/plugins/oh-my-codex/.codex-plugin/plugin.json +1 -1
- package/src/scripts/codex-native-hook.ts +16 -2
- package/src/scripts/notify-hook/team-leader-nudge.ts +8 -0
- package/src/scripts/notify-hook/team-worker-stop.ts +4 -0
- package/src/scripts/notify-hook/team-worker.ts +2 -0
package/Cargo.toml
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-native-hook.d.ts","sourceRoot":"","sources":["../../src/scripts/codex-native-hook.ts"],"names":[],"mappings":"AA6CA,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AA+BtC,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAwClE,KAAK,kBAAkB,GACnB,cAAc,GACd,YAAY,GACZ,aAAa,GACb,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,MAAM,CAAC;AAEX,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEhD,UAAU,yBAAyB;IACj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}
|
|
@@ -3677,13 +3677,27 @@ async function buildTeamAttentionOutput(cwd, stateDir) {
|
|
|
3677
3677
|
}
|
|
3678
3678
|
if (pendingCount === 0)
|
|
3679
3679
|
return null;
|
|
3680
|
+
const signature = parts.sort().join("|");
|
|
3681
|
+
const dedupePath = join(stateDir, "team-attention-last.json");
|
|
3682
|
+
let lastSignature = "";
|
|
3683
|
+
try {
|
|
3684
|
+
if (existsSync(dedupePath)) {
|
|
3685
|
+
lastSignature = safeString(JSON.parse(await readFile(dedupePath, "utf-8")).s || "").trim();
|
|
3686
|
+
}
|
|
3687
|
+
}
|
|
3688
|
+
catch { /* best-effort */ }
|
|
3689
|
+
// Avoid re-injecting the same set of completed items on every turn.
|
|
3690
|
+
if (signature === lastSignature)
|
|
3691
|
+
return null;
|
|
3692
|
+
try {
|
|
3693
|
+
await writeFile(dedupePath, JSON.stringify({ s: signature, at: new Date().toISOString() }));
|
|
3694
|
+
}
|
|
3695
|
+
catch { /* best-effort */ }
|
|
3680
3696
|
const summary = parts.join("; ") + ". ";
|
|
3681
3697
|
const guidance = pendingCount === 1
|
|
3682
3698
|
? "Check with `omx team status` and handle the result at the next natural pause."
|
|
3683
3699
|
: `Check with \`omx team status\` and handle ${pendingCount} completed items at the next natural pause.`;
|
|
3684
3700
|
return {
|
|
3685
|
-
decision: "block",
|
|
3686
|
-
reason: `team_attention_pending: ${pendingCount} item(s) need leader review`,
|
|
3687
3701
|
hookSpecificOutput: {
|
|
3688
3702
|
hookEventName: "PreToolUse",
|
|
3689
3703
|
additionalContext: `[OMX team] ${summary}${guidance}`,
|