mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-07 01:21:37 +00:00
Use one native app-server for terminal, Web and phone clients while retaining the existing CLI and Runner lifecycle. Synchronize native queues, permissions, question history and steering state; preserve explicit permission precedence and per-turn usage models. Resume inactive clear commands through Runner and reject independent child cold resumes. Add shared-runtime regression tests, generated protocol fixtures and lifecycle documentation.
24 lines
966 B
TypeScript
24 lines
966 B
TypeScript
// Mode data retained for protocol/config helpers. Codex execution is shared/runtime.ts.
|
|
import type { ReasoningEffort } from './appServerTypes';
|
|
import type { CodexCollaborationMode, CodexPermissionMode } from '@hapi/protocol/types';
|
|
|
|
export type PermissionMode = CodexPermissionMode;
|
|
|
|
/** Codex response style. Omit from mode to inherit config.toml / thread default. */
|
|
export type CodexPersonality = 'friendly' | 'pragmatic' | 'none';
|
|
|
|
export interface EnhancedMode {
|
|
permissionMode: PermissionMode;
|
|
model?: string;
|
|
collaborationMode: CodexCollaborationMode;
|
|
proactiveMultiAgent?: boolean;
|
|
modelReasoningEffort?: ReasoningEffort;
|
|
/**
|
|
* Service tier override. `undefined` leaves it untouched (account default),
|
|
* `'fast'` enables Fast mode, `null` selects the standard tier explicitly.
|
|
*/
|
|
serviceTier?: string | null;
|
|
/** When set, forwarded to app-server thread/turn params. */
|
|
personality?: CodexPersonality;
|
|
}
|