


























@@ -12,6 +12,7 @@ const OPENAI_FAMILY_GPT5_PROMPT_OVERLAY_PROVIDERS = new Set([
1212"openai-codex",
1313]);
141415+/** @deprecated OpenAI/Codex provider-owned prompt overlay helper; do not use from third-party plugins. */
1516export const GPT5_FRIENDLY_CHAT_PROMPT_OVERLAY = `## Interaction Style
16171718Be warm, collaborative, and quietly supportive.
@@ -36,6 +37,7 @@ Avoid walls of text, long preambles, and repetitive restatement.
3637Occasional emoji are welcome when they fit naturally, especially for warmth or brief celebration; keep them sparse.
3738Keep replies concise by default; friendly does not mean verbose.`;
383940+/** @deprecated OpenAI/Codex provider-owned prompt overlay helper; do not use from third-party plugins. */
3941export const GPT5_HEARTBEAT_PROMPT_OVERLAY = `### Heartbeats
40424143The purpose of heartbeats is to make you feel magical and proactive. Come to life and start proactively doing things that are important.
@@ -55,8 +57,10 @@ If the current state is materially unchanged and you do not have something genui
5557If there is a clear standing goal or workstream and no stronger interruption, the wake should usually advance it in some concrete way. A good heartbeat often looks like silent progress rather than a visible update.
5658Heartbeats are how the agent goes from a simple reply bot to a truly proactive and magical experience that creates a general sense of awe.`;
575960+/** @deprecated OpenAI/Codex provider-owned prompt overlay helper; do not use from third-party plugins. */
5861export const GPT5_FRIENDLY_PROMPT_OVERLAY = `${GPT5_FRIENDLY_CHAT_PROMPT_OVERLAY}\n\n${GPT5_HEARTBEAT_PROMPT_OVERLAY}`;
596263+/** @deprecated OpenAI/Codex provider-owned prompt overlay helper; do not use from third-party plugins. */
6064export const GPT5_BEHAVIOR_CONTRACT = `<persona_latch>
6165Keep the established persona and tone across turns unless higher-priority instructions override it.
6266Style must never override correctness, safety, privacy, permissions, requested format, or channel-specific behavior.
@@ -94,8 +98,10 @@ For code or artifacts, prefer the smallest meaningful gate: test, typecheck, lin
9498If no gate can run, state why.
9599</completion_contract>`;
96100101+/** @deprecated OpenAI/Codex provider-owned prompt overlay helper; do not use from third-party plugins. */
97102export type Gpt5PromptOverlayMode = "friendly" | "off";
98103104+/** @deprecated OpenAI/Codex provider-owned prompt overlay helper; do not use from third-party plugins. */
99105export function normalizeGpt5PromptOverlayMode(value: unknown): Gpt5PromptOverlayMode | undefined {
100106const normalized = normalizeOptionalLowercaseString(value);
101107if (normalized === "off") {
@@ -107,6 +113,7 @@ export function normalizeGpt5PromptOverlayMode(value: unknown): Gpt5PromptOverla
107113return undefined;
108114}
109115116+/** @deprecated OpenAI/Codex provider-owned prompt overlay helper; do not use from third-party plugins. */
110117export function resolveGpt5PromptOverlayMode(
111118config?: OpenClawConfig,
112119legacyPluginConfig?: Record<string, unknown>,
@@ -125,11 +132,13 @@ export function resolveGpt5PromptOverlayMode(
125132);
126133}
127134135+/** @deprecated OpenAI/Codex provider-owned prompt overlay helper; do not use from third-party plugins. */
128136export function isGpt5ModelId(modelId?: string): boolean {
129137const normalized = normalizeOptionalLowercaseString(modelId);
130138return normalized ? GPT5_MODEL_ID_PATTERN.test(normalized) : false;
131139}
132140141+/** @deprecated OpenAI/Codex provider-owned prompt overlay helper; do not use from third-party plugins. */
133142export function resolveGpt5SystemPromptContribution(params: {
134143config?: OpenClawConfig;
135144providerId?: string;
@@ -156,6 +165,7 @@ export function resolveGpt5SystemPromptContribution(params: {
156165};
157166}
158167168+/** @deprecated OpenAI/Codex provider-owned prompt overlay helper; do not use from third-party plugins. */
159169export function renderGpt5PromptOverlay(params: {
160170config?: OpenClawConfig;
161171providerId?: string;
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。