oh-my-codex 0.21.2 → 0.21.4
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/LICENSE +21 -0
- package/README.md +2 -1
- package/crates/omx-sparkshell/src/codex_bridge.rs +2 -2
- package/crates/omx-sparkshell/tests/execution.rs +49 -36
- package/dist/agents/__tests__/definitions.test.js +5 -3
- package/dist/agents/__tests__/definitions.test.js.map +1 -1
- package/dist/agents/__tests__/native-config.test.js +68 -11
- package/dist/agents/__tests__/native-config.test.js.map +1 -1
- package/dist/agents/definitions.d.ts +1 -1
- package/dist/agents/definitions.d.ts.map +1 -1
- package/dist/agents/definitions.js +3 -3
- package/dist/agents/definitions.js.map +1 -1
- package/dist/agents/native-config.d.ts +1 -1
- package/dist/agents/native-config.d.ts.map +1 -1
- package/dist/agents/native-config.js +1 -1
- package/dist/agents/native-config.js.map +1 -1
- package/dist/autopilot/__tests__/planner-routing.test.js +12 -2
- package/dist/autopilot/__tests__/planner-routing.test.js.map +1 -1
- package/dist/autopilot/planner-routing.d.ts.map +1 -1
- package/dist/autopilot/planner-routing.js +2 -2
- package/dist/autopilot/planner-routing.js.map +1 -1
- package/dist/cli/__tests__/agents.test.js +1 -1
- package/dist/cli/__tests__/agents.test.js.map +1 -1
- package/dist/cli/__tests__/auth.test.js +1 -1
- package/dist/cli/__tests__/doctor-spark-routing.test.js +1 -1
- package/dist/cli/__tests__/doctor-spark-routing.test.js.map +1 -1
- package/dist/cli/__tests__/index.test.js +21 -2
- package/dist/cli/__tests__/index.test.js.map +1 -1
- package/dist/cli/__tests__/setup-install-mode.test.js +68 -0
- package/dist/cli/__tests__/setup-install-mode.test.js.map +1 -1
- package/dist/cli/__tests__/setup-refresh.test.js +7 -6
- package/dist/cli/__tests__/setup-refresh.test.js.map +1 -1
- package/dist/cli/agents.d.ts.map +1 -1
- package/dist/cli/agents.js +2 -1
- package/dist/cli/agents.js.map +1 -1
- package/dist/cli/auth.d.ts.map +1 -1
- package/dist/cli/auth.js +2 -1
- package/dist/cli/auth.js.map +1 -1
- package/dist/cli/index.d.ts +6 -2
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +33 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +4 -1
- package/dist/cli/setup.js.map +1 -1
- package/dist/config/__tests__/generator-notify.test.js +4 -3
- package/dist/config/__tests__/generator-notify.test.js.map +1 -1
- package/dist/config/__tests__/models.test.js +9 -3
- package/dist/config/__tests__/models.test.js.map +1 -1
- package/dist/config/generator.d.ts +1 -1
- package/dist/config/models.d.ts +6 -6
- package/dist/config/models.d.ts.map +1 -1
- package/dist/config/models.js +5 -5
- package/dist/config/models.js.map +1 -1
- package/dist/hooks/__tests__/keyword-detector.test.js +2 -2
- package/dist/scripts/notify-hook/team-leader-nudge.d.ts.map +1 -1
- package/dist/scripts/notify-hook/team-leader-nudge.js +6 -2
- 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 +6 -2
- 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 +10 -2
- package/dist/scripts/notify-hook/team-worker.js.map +1 -1
- package/dist/team/__tests__/delegation-policy.test.js +2 -2
- package/dist/team/__tests__/delegation-policy.test.js.map +1 -1
- package/dist/team/__tests__/model-contract.test.js +10 -10
- package/dist/team/__tests__/model-contract.test.js.map +1 -1
- package/dist/team/__tests__/notice-ledger.test.js +66 -5
- package/dist/team/__tests__/notice-ledger.test.js.map +1 -1
- package/dist/team/__tests__/runtime.test.js +97 -15
- package/dist/team/__tests__/runtime.test.js.map +1 -1
- package/dist/team/__tests__/shutdown-fallback.test.js +11 -1
- package/dist/team/__tests__/shutdown-fallback.test.js.map +1 -1
- package/dist/team/__tests__/state.test.js +195 -2
- package/dist/team/__tests__/state.test.js.map +1 -1
- package/dist/team/__tests__/team-ops-contract.test.js +1 -0
- package/dist/team/__tests__/team-ops-contract.test.js.map +1 -1
- package/dist/team/__tests__/worker-runtime-identity.test.js +14 -4
- package/dist/team/__tests__/worker-runtime-identity.test.js.map +1 -1
- package/dist/team/mcp-comm.d.ts.map +1 -1
- package/dist/team/mcp-comm.js +130 -125
- package/dist/team/mcp-comm.js.map +1 -1
- package/dist/team/model-contract.d.ts +1 -1
- package/dist/team/model-contract.d.ts.map +1 -1
- package/dist/team/notice-ledger.d.ts +5 -0
- package/dist/team/notice-ledger.d.ts.map +1 -1
- package/dist/team/notice-ledger.js +82 -4
- package/dist/team/notice-ledger.js.map +1 -1
- package/dist/team/runtime.d.ts.map +1 -1
- package/dist/team/runtime.js +44 -13
- package/dist/team/runtime.js.map +1 -1
- package/dist/team/state/mailbox.js +22 -22
- package/dist/team/state/mailbox.js.map +1 -1
- package/dist/team/state.d.ts +2 -0
- package/dist/team/state.d.ts.map +1 -1
- package/dist/team/state.js +100 -4
- package/dist/team/state.js.map +1 -1
- package/dist/team/team-ops.d.ts +1 -0
- package/dist/team/team-ops.d.ts.map +1 -1
- package/dist/team/team-ops.js +1 -0
- package/dist/team/team-ops.js.map +1 -1
- package/dist/utils/__tests__/agents-model-table.test.js +13 -10
- package/dist/utils/__tests__/agents-model-table.test.js.map +1 -1
- package/package.json +1 -1
- package/plugins/oh-my-codex/.codex-plugin/plugin.json +1 -1
- package/src/scripts/notify-hook/team-leader-nudge.ts +6 -2
- package/src/scripts/notify-hook/team-worker-stop.ts +6 -2
- package/src/scripts/notify-hook/team-worker.ts +10 -2
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
resolveWorkerIdleIntent,
|
|
18
18
|
} from './orchestration-intent.js';
|
|
19
19
|
import { DEFAULT_MARKER, paneHasActiveTask } from '../tmux-hook-engine.js';
|
|
20
|
-
import { registerTeamNotice, releaseTeamNoticeWake } from '../../team/notice-ledger.js';
|
|
20
|
+
import { confirmTeamNoticeWake, registerTeamNotice, releaseTeamNoticeWake } from '../../team/notice-ledger.js';
|
|
21
21
|
const LEADER_PANE_SHELL_NO_INJECTION_REASON = 'leader_pane_shell_no_injection';
|
|
22
22
|
|
|
23
23
|
function positivePanePid(value) {
|
|
@@ -106,7 +106,7 @@ async function readTeamPhaseSnapshot(stateDir, teamName, nowIso = new Date().toI
|
|
|
106
106
|
const currentPhase = safeString(parsed && parsed.current_phase).trim();
|
|
107
107
|
return {
|
|
108
108
|
currentPhase,
|
|
109
|
-
terminal: isTerminalPhase(currentPhase),
|
|
109
|
+
terminal: Boolean(parsed && parsed.terminal_epoch) || isTerminalPhase(currentPhase),
|
|
110
110
|
completedAt: resolveTerminalAtFromPhaseDoc(parsed, nowIso),
|
|
111
111
|
};
|
|
112
112
|
} catch {
|
|
@@ -482,6 +482,10 @@ export async function maybeNotifyLeaderAllWorkersIdle({ cwd, stateDir, logsDir,
|
|
|
482
482
|
expectedHudPaneId: hudPaneId,
|
|
483
483
|
});
|
|
484
484
|
if (!sendResult.ok) throw new Error(sendResult.error || sendResult.reason || 'send_failed');
|
|
485
|
+
if (queuedNoticeRegistration?.targetKey && queuedNoticeRegistration?.wakeId
|
|
486
|
+
&& !await confirmTeamNoticeWake(stateDir, queuedNoticeRegistration.targetKey, queuedNoticeRegistration.wakeId)) {
|
|
487
|
+
throw new Error('team_notice_wake_confirmation_failed');
|
|
488
|
+
}
|
|
485
489
|
queuedNoticeRegistration = null;
|
|
486
490
|
|
|
487
491
|
const nextIdleState = {
|
|
@@ -700,6 +704,10 @@ export async function maybeNotifyLeaderWorkerIdle({ cwd, stateDir, logsDir, pars
|
|
|
700
704
|
expectedHudPaneId: hudPaneId,
|
|
701
705
|
});
|
|
702
706
|
if (!sendResult.ok) throw new Error(sendResult.error || sendResult.reason || 'send_failed');
|
|
707
|
+
if (queuedNoticeRegistration?.targetKey && queuedNoticeRegistration?.wakeId
|
|
708
|
+
&& !await confirmTeamNoticeWake(stateDir, queuedNoticeRegistration.targetKey, queuedNoticeRegistration.wakeId)) {
|
|
709
|
+
throw new Error('team_notice_wake_confirmation_failed');
|
|
710
|
+
}
|
|
703
711
|
queuedNoticeRegistration = null;
|
|
704
712
|
|
|
705
713
|
// Update cooldown state
|