@markus-global/cli 0.11.0-rc.1 → 0.11.1
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/markus.mjs +185 -52
- package/dist/web-ui/assets/{CommentInput-D4udF3ci.js → CommentInput-PDh2FT6S.js} +1 -1
- package/dist/web-ui/assets/{ContentRenderer-CY0moVGG.js → ContentRenderer-HvsvN5z8.js} +2 -2
- package/dist/web-ui/assets/{DeliverableShareModal-Kw_PwtaD.js → DeliverableShareModal-7skvb6AH.js} +1 -1
- package/dist/web-ui/assets/{Deliverables-B6Fo0RuB.js → Deliverables-vaxjOmgk.js} +1 -1
- package/dist/web-ui/assets/{Notifications-DsP8Z0a3.js → Notifications-BSYS-Xqp.js} +1 -1
- package/dist/web-ui/assets/{Search-CLSRxUnd.js → Search-DMTKdv_5.js} +1 -1
- package/dist/web-ui/assets/{Settings-_kkGsvr2.js → Settings-ooEzVvXw.js} +1 -1
- package/dist/web-ui/assets/{Store-BOV3Thkl.js → Store-C2Gp54yd.js} +1 -1
- package/dist/web-ui/assets/{Team-mz_JWJwM.js → Team-BVuNOPeb.js} +42 -42
- package/dist/web-ui/assets/{Work-DaY25Zvg.js → Work-D2V9dc4t.js} +1 -1
- package/dist/web-ui/assets/{arc-DppCSfqA.js → arc-DXI9jypb.js} +1 -1
- package/dist/web-ui/assets/{architectureDiagram-3BPJPVTR-Cqxc4BLx.js → architectureDiagram-3BPJPVTR-D0dgsLxO.js} +1 -1
- package/dist/web-ui/assets/{blockDiagram-GPEHLZMM-Bnoj-Has.js → blockDiagram-GPEHLZMM-D3jOMfnK.js} +1 -1
- package/dist/web-ui/assets/{c4Diagram-AAUBKEIU-BwigdMy_.js → c4Diagram-AAUBKEIU-Q2Ldw3Sv.js} +1 -1
- package/dist/web-ui/assets/channel-C8ilVfxi.js +1 -0
- package/dist/web-ui/assets/{chunk-2J33WTMH-BY8hN7e1.js → chunk-2J33WTMH-DB_uyGmL.js} +1 -1
- package/dist/web-ui/assets/{chunk-4BX2VUAB-BeLkwvuM.js → chunk-4BX2VUAB-Y9c_3cDt.js} +1 -1
- package/dist/web-ui/assets/{chunk-55IACEB6-C1IrH2YD.js → chunk-55IACEB6-xRXDDqG3.js} +1 -1
- package/dist/web-ui/assets/{chunk-727SXJPM-jJXbcC5A.js → chunk-727SXJPM-CwY1lVes.js} +1 -1
- package/dist/web-ui/assets/{chunk-AQP2D5EJ-6QZflhse.js → chunk-AQP2D5EJ-fIC-6Whq.js} +1 -1
- package/dist/web-ui/assets/{chunk-FMBD7UC4-CE8BtseF.js → chunk-FMBD7UC4-IlZKWtdL.js} +1 -1
- package/dist/web-ui/assets/{chunk-ND2GUHAM-JYpnGzBS.js → chunk-ND2GUHAM-a3CXI6Kb.js} +1 -1
- package/dist/web-ui/assets/{chunk-QZHKN3VN-ChBjEb5B.js → chunk-QZHKN3VN-Cnn8UAUY.js} +1 -1
- package/dist/web-ui/assets/classDiagram-4FO5ZUOK-BmfrDuwr.js +1 -0
- package/dist/web-ui/assets/classDiagram-v2-Q7XG4LA2-BmfrDuwr.js +1 -0
- package/dist/web-ui/assets/{cose-bilkent-S5V4N54A-DC3PvBlT.js → cose-bilkent-S5V4N54A-BJPva2zo.js} +1 -1
- package/dist/web-ui/assets/{dagre-BM42HDAG-CHs1tyq2.js → dagre-BM42HDAG-CEFKUAeR.js} +1 -1
- package/dist/web-ui/assets/{diagram-2AECGRRQ-CKFu3DHI.js → diagram-2AECGRRQ-CJ_RLW56.js} +1 -1
- package/dist/web-ui/assets/{diagram-5GNKFQAL-B83ktWF9.js → diagram-5GNKFQAL-7_jNRwT_.js} +1 -1
- package/dist/web-ui/assets/{diagram-KO2AKTUF-Cd_0fmGt.js → diagram-KO2AKTUF-CfwfuTpe.js} +1 -1
- package/dist/web-ui/assets/{diagram-LMA3HP47-CF4idZdP.js → diagram-LMA3HP47-CgA0Xoif.js} +1 -1
- package/dist/web-ui/assets/{diagram-OG6HWLK6-D1_l8wLK.js → diagram-OG6HWLK6-C4hKO_tx.js} +1 -1
- package/dist/web-ui/assets/{docx-preview-BLbI_SCu.js → docx-preview-C6dfKcRb.js} +1 -1
- package/dist/web-ui/assets/{erDiagram-TEJ5UH35-D8rK_F87.js → erDiagram-TEJ5UH35-YKBDWeXd.js} +1 -1
- package/dist/web-ui/assets/{flowDiagram-I6XJVG4X-ZoPp1kJi.js → flowDiagram-I6XJVG4X-jQOEkqH3.js} +1 -1
- package/dist/web-ui/assets/{ganttDiagram-6RSMTGT7-uligSftG.js → ganttDiagram-6RSMTGT7-CKAc4LGG.js} +1 -1
- package/dist/web-ui/assets/{gitGraphDiagram-PVQCEYII-DY0gAjmH.js → gitGraphDiagram-PVQCEYII-DIytf2iV.js} +1 -1
- package/dist/web-ui/assets/{index-gob1iLha.js → index-DQZuBgCk.js} +49 -49
- package/dist/web-ui/assets/{infoDiagram-5YYISTIA-Bj9ByigZ.js → infoDiagram-5YYISTIA-BLLcTqQ8.js} +1 -1
- package/dist/web-ui/assets/{ishikawaDiagram-YF4QCWOH-CP7f_i4P.js → ishikawaDiagram-YF4QCWOH-ZS_AZA3m.js} +1 -1
- package/dist/web-ui/assets/{journeyDiagram-JHISSGLW-Br7sCfe4.js → journeyDiagram-JHISSGLW-Ctoivwi3.js} +1 -1
- package/dist/web-ui/assets/{kanban-definition-UN3LZRKU-MroLrnqj.js → kanban-definition-UN3LZRKU-CfcPO__T.js} +1 -1
- package/dist/web-ui/assets/{mermaid.core-DbFRJGs8.js → mermaid.core-DzupXsSn.js} +5 -5
- package/dist/web-ui/assets/{mindmap-definition-RKZ34NQL-Bus39q04.js → mindmap-definition-RKZ34NQL-BkhUn8LW.js} +1 -1
- package/dist/web-ui/assets/{pieDiagram-4H26LBE5-SO5RJs--.js → pieDiagram-4H26LBE5-nF1mw9W9.js} +1 -1
- package/dist/web-ui/assets/{quadrantDiagram-W4KKPZXB-xBzLY7eN.js → quadrantDiagram-W4KKPZXB-BB6ocoXG.js} +1 -1
- package/dist/web-ui/assets/{requirementDiagram-4Y6WPE33-CDYrNQvD.js → requirementDiagram-4Y6WPE33-CVQoAqkp.js} +1 -1
- package/dist/web-ui/assets/{sankeyDiagram-5OEKKPKP-D6MRbXJQ.js → sankeyDiagram-5OEKKPKP-BrhNGTIx.js} +1 -1
- package/dist/web-ui/assets/{sequenceDiagram-3UESZ5HK-1EcHUnVa.js → sequenceDiagram-3UESZ5HK-DmOCmx0n.js} +1 -1
- package/dist/web-ui/assets/{stateDiagram-AJRCARHV-Bxr9KAun.js → stateDiagram-AJRCARHV-ChJl2DyB.js} +1 -1
- package/dist/web-ui/assets/stateDiagram-v2-BHNVJYJU-B-Lfl2Dh.js +1 -0
- package/dist/web-ui/assets/{timeline-definition-PNZ67QCA-BJ82e_G9.js → timeline-definition-PNZ67QCA-DhxcmpUp.js} +1 -1
- package/dist/web-ui/assets/{vennDiagram-CIIHVFJN-DlbfUUC7.js → vennDiagram-CIIHVFJN-D6GtjxcJ.js} +1 -1
- package/dist/web-ui/assets/{wardley-L42UT6IY-DIyuDPl5.js → wardley-L42UT6IY-CUDg0-0c.js} +1 -1
- package/dist/web-ui/assets/{wardleyDiagram-YWT4CUSO-J-XhaGPJ.js → wardleyDiagram-YWT4CUSO-CV97tBgz.js} +1 -1
- package/dist/web-ui/assets/{xychartDiagram-2RQKCTM6-BJv3cUEO.js → xychartDiagram-2RQKCTM6-DCVmw2nR.js} +1 -1
- package/dist/web-ui/index.html +1 -1
- package/package.json +1 -1
- package/dist/web-ui/assets/channel-CDQp_KCp.js +0 -1
- package/dist/web-ui/assets/classDiagram-4FO5ZUOK-BvMC7FQO.js +0 -1
- package/dist/web-ui/assets/classDiagram-v2-Q7XG4LA2-BvMC7FQO.js +0 -1
- package/dist/web-ui/assets/stateDiagram-v2-BHNVJYJU-CYQuSdFg.js +0 -1
package/dist/markus.mjs
CHANGED
|
@@ -5432,7 +5432,7 @@ function clampHeartbeatIntervalMs(ms) {
|
|
|
5432
5432
|
return DEFAULT_HEARTBEAT_INTERVAL_MS;
|
|
5433
5433
|
return Math.max(MIN_HEARTBEAT_INTERVAL_MS, Math.min(MAX_HEARTBEAT_INTERVAL_MS, Math.round(ms)));
|
|
5434
5434
|
}
|
|
5435
|
-
var TASK_GET_NOTES_DEFAULT, TASK_GET_DELIVERABLES_DEFAULT, TASK_GET_STATUS_HISTORY_DEFAULT, REQUIREMENT_LIST_DEFAULT, ENTITY_COMMENTS_DEFAULT, PROMPT_TASK_NOTES_MAX, PROMPT_TASK_NOTE_CHARS, PROMPT_DEP_NOTES_MAX, PROMPT_DEP_NOTE_CHARS, PROMPT_DEP_DESC_CHARS, PROMPT_EXECUTION_ROUNDS_MAX, PROMPT_LOG_ENTRY_CHARS, PROMPT_RECENT_ERRORS_MAX, PROMPT_HUMAN_COMMENTS_MAX, REVIEWER_NOTES_MAX, SYSTEM_MY_TASKS_MAX, SYSTEM_TEAM_TASKS_MAX, SYSTEM_TASK_DESC_CHARS, PROMPT_PROJECT_DESC_CHARS, PROMPT_REQUIREMENT_DESC_CHARS, REVIEWER_FILE_LIST_MAX, DELIVERABLE_TITLE_CHARS, REVISION_REASON_CHARS, TASK_MAX_RETRIES, MAILBOX_ITEM_MAX_RETRIES, COMPLETION_MARKER, COMPLETION_MARKER_INSTRUCTION, COMPLETION_MARKER_LEAK_RE, TASK_MAX_NO_SUBMIT_RETRIES, TASK_RETRY_DELAYS_MS, PREEMPT_REQUEUE_DELAY_MS, SYSTEM_KNOWLEDGE_CHARS, SYSTEM_SOPS_CHARS, SYSTEM_LONGTERM_MEMORY_CHARS, MEMORY_MD_SECTION_MAX_CHARS, MEMORY_MD_TOTAL_MAX_CHARS, MEMORY_OBSERVATIONS_MAX_CHARS, KNOWLEDGE_SECTION_KEY_MAX_CHARS, KNOWLEDGE_STUB_MAX_CHARS, MEMORY_ENTRY_MAX_CHARS, KNOWLEDGE_MD_SELF_HEAL_BYTES, SYSTEM_LESSON_ENTRIES_MAX, SYSTEM_BEST_PRACTICE_ENTRIES_MAX, SYSTEM_DELIVERABLES_CHARS, SYSTEM_DAILY_LOG_CHARS, SYSTEM_DAILY_LOG_DAYS, SYSTEM_USER_PROFILE_CHARS, SYSTEM_CHAT_SESSIONS_MAX, HEARTBEAT_DAILY_LOG_CHARS, SYSTEM_PROJECT_DESC_CHARS, SYSTEM_DELIVERABLE_PREVIEW_CHARS, SYSTEM_MAILBOX_MERGED_CHARS, SYSTEM_MAILBOX_ITEM_PREVIEW_CHARS, TASK_LIST_PAGE_SIZE, TASK_LIST_PAGE_MAX, ARCHIVE_COMPLETED_AFTER_DAYS, ARCHIVE_TERMINAL_AFTER_DAYS, ARCHIVE_REQUIREMENT_AFTER_DAYS, ARCHIVE_SCAN_INTERVAL_MS, CHANNEL_CONTEXT_MESSAGES, CHANNEL_CONTEXT_MSG_CHARS, SYSTEM_CONTEXT_MD_CHARS, SYSTEM_TEAM_PROJECT_DESC_CHARS, MAILBOX_QUEUED_TTL_MS, MAILBOX_COALESCE_WINDOW_MS, MAILBOX_PROCESSING_TIMEOUT_MS, BACKSTOP_CANCEL_GRACE_MS, SSE_DISCONNECT_FORCE_STOP_MS, WATCHDOG_INTERVAL_MS, WATCHDOG_DRIFT_THRESHOLD_MS, TRIAGE_BACKLOG_THRESHOLD, TRIAGE_PROMPT_MAX_ITEMS, TRIAGE_MAX_TOKENS, TRIAGE_TEMPERATURE, TRIAGE_CONTEXT_MESSAGES_MAX, TRIAGE_CONTEXT_MSG_CHARS, TRIAGE_ITEM_CONTENT_CHARS, TRIAGE_STALE_INFO_TTL_MS, TRIAGE_STALE_DROP_TYPES, TRIAGE_MAX_TOOL_ITERATIONS, TRIAGE_ALLOWED_TOOLS, DELIBERATION_ALLOWED_TOOLS, DEFAULT_HEARTBEAT_INTERVAL_MS, MIN_HEARTBEAT_INTERVAL_MS, MAX_HEARTBEAT_INTERVAL_MS, NOTEBOOK_MAX_ENTRIES, NOTEBOOK_MAX_AGENT_ENTRIES, NOTEBOOK_MAX_CHARS_PER_ENTRY, NOTEBOOK_PROMPT_MAX_CHARS, NOTEBOOK_TTL_MS_AGENT, NOTEBOOK_TTL_MS_SYSTEM, NOTEBOOK_KEY_MAX_CHARS, NOTEBOOK_RELEVANT_CONTEXT_MAX_CHARS, NOTEBOOK_PERSIST_MAX_WAIT_MS, WORKING_MEMORY_MAX_ENTRIES, WORKING_MEMORY_MAX_CHARS, SUBAGENT_TASK_PREVIEW_CHARS, SUBAGENT_THINKING_PREVIEW_CHARS, SUBAGENT_RESULT_PREVIEW_CHARS, SUBAGENT_LOG_ENTRY_CHARS, SUBAGENT_ERROR_PREVIEW_CHARS, SUBAGENT_MAX_PARALLEL, SUBAGENT_MAX_AGGREGATE_ITERATIONS, SUBAGENT_MAX_LLM_RETRIES, SUBAGENT_RETRY_BASE_MS, SHELL_TIMEOUT_DEFAULT_MS, SHELL_TIMEOUT_MAX_MS, SHELL_MAX_SESSIONS_PER_AGENT, SHELL_SESSION_IDLE_TIMEOUT_MS, SHELL_SESSION_MAX_OUTPUT_BYTES, APPROVAL_WAIT_TIMEOUT_MS, HEARTBEAT_MIN_INITIAL_DELAY_MS, HEARTBEAT_STARTUP_JITTER_MS, LLM_CIRCUIT_RESET_RATE_LIMIT_MS, SESSION_STORAGE_COMPACT_TRIGGER, SESSION_STORAGE_COMPACT_KEEP, SESSION_STORAGE_TOOL_SHRINK_CHARS, SESSION_REQUEST_HISTORY_MIN, SESSION_REQUEST_HISTORY_BLOCK, CONTEXT_ABSURD_MESSAGE_CHARS, CONTEXT_PROACTIVE_COMPACT_RATIO, CONTEXT_WARN_RATIO, CONTEXT_CRIT_RATIO, CONTEXT_SLOT_MAX_CHARS, CONTEXT_VOLATILE_REARM_CALLS, CONTEXT_ABS_HISTORY_TOKENS, CONTEXT_ABS_HISTORY_TARGET_TOKENS, SESSION_RESTORE_MAX_MESSAGES, SESSION_RESTORE_MAX_MESSAGE_TOKENS, TOOL_RESULT_OFFLOAD_CHARS, SYSTEM_COLLEAGUES_MAX, SYSTEM_OTHER_TEAMS_MAX, SYSTEM_OTHER_TEAM_MEMBERS_MAX, SYSTEM_HUMANS_MAX, PROMPT_AFFORD_OUTPUT_RESERVE, TOOL_DEF_BUDGET_REFLEX, TOOL_DEF_BUDGET_CONVERSE, TOOL_DEF_BUDGET_EXECUTE, TOOL_DEF_BUDGET_GOVERN, ROLE_PROMPT_MAX_TOKENS, KNOWLEDGE_PROMPT_MAX_TOKENS, KNOWLEDGE_PROMPT_MAX_TOKENS_CONVERSE, KNOWLEDGE_PROMPT_MAX_TOKENS_REFLEX, COLD_CONVERSE_FIXED_MAX, COLD_REFLEX_FIXED_MAX, SYSTEM_PROMPT_BUDGET_CONVERSE, SYSTEM_ANNOUNCEMENTS_CHARS_CONVERSE, SYSTEM_NORMS_CHARS_CONVERSE, SYSTEM_ANNOUNCEMENTS_CHARS, SYSTEM_NORMS_CHARS, SYSTEM_WORKFLOWS_MAX_CONVERSE, SYSTEM_WORKFLOW_DESC_CHARS_CONVERSE, SYSTEM_DYNAMIC_CONTEXT_CHARS_CONVERSE, DEFERRED_CATALOG_MAX_CHARS, MAX_TOKENS_AFFORD_SAFETY, MAX_TOKENS_REMAINING_MARGIN, MAX_TOKENS_CLAMP_FLOOR, DEEP_SLEEP_IDLE_HEARTBEATS, SUBTASK_SOFT_CAP, PROMPT_AFFORD_SAFETY_MARGIN, LLM_MAX_CONCURRENT_PER_PROVIDER, LLM_CONCURRENCY_JITTER_BASE_MS;
|
|
5435
|
+
var TASK_GET_NOTES_DEFAULT, TASK_GET_DELIVERABLES_DEFAULT, TASK_GET_STATUS_HISTORY_DEFAULT, REQUIREMENT_LIST_DEFAULT, ENTITY_COMMENTS_DEFAULT, PROMPT_TASK_NOTES_MAX, PROMPT_TASK_NOTE_CHARS, PROMPT_DEP_NOTES_MAX, PROMPT_DEP_NOTE_CHARS, PROMPT_DEP_DESC_CHARS, PROMPT_EXECUTION_ROUNDS_MAX, PROMPT_LOG_ENTRY_CHARS, PROMPT_RECENT_ERRORS_MAX, PROMPT_HUMAN_COMMENTS_MAX, REVIEWER_NOTES_MAX, SYSTEM_MY_TASKS_MAX, SYSTEM_TEAM_TASKS_MAX, SYSTEM_TASK_DESC_CHARS, PROMPT_PROJECT_DESC_CHARS, PROMPT_REQUIREMENT_DESC_CHARS, REVIEWER_FILE_LIST_MAX, DELIVERABLE_TITLE_CHARS, REVISION_REASON_CHARS, TASK_MAX_RETRIES, MAILBOX_ITEM_MAX_RETRIES, COMPLETION_MARKER, END_TURN_REPLY_SENTINEL, COMPLETION_MARKER_INSTRUCTION, COMPLETION_MARKER_LEAK_RE, TASK_MAX_NO_SUBMIT_RETRIES, TASK_RETRY_DELAYS_MS, PREEMPT_REQUEUE_DELAY_MS, SYSTEM_KNOWLEDGE_CHARS, SYSTEM_SOPS_CHARS, SYSTEM_LONGTERM_MEMORY_CHARS, MEMORY_MD_SECTION_MAX_CHARS, MEMORY_MD_TOTAL_MAX_CHARS, MEMORY_OBSERVATIONS_MAX_CHARS, KNOWLEDGE_SECTION_KEY_MAX_CHARS, KNOWLEDGE_STUB_MAX_CHARS, MEMORY_ENTRY_MAX_CHARS, KNOWLEDGE_MD_SELF_HEAL_BYTES, SYSTEM_LESSON_ENTRIES_MAX, SYSTEM_BEST_PRACTICE_ENTRIES_MAX, SYSTEM_DELIVERABLES_CHARS, SYSTEM_DAILY_LOG_CHARS, SYSTEM_DAILY_LOG_DAYS, SYSTEM_USER_PROFILE_CHARS, SYSTEM_CHAT_SESSIONS_MAX, HEARTBEAT_DAILY_LOG_CHARS, SYSTEM_PROJECT_DESC_CHARS, SYSTEM_DELIVERABLE_PREVIEW_CHARS, SYSTEM_MAILBOX_MERGED_CHARS, SYSTEM_MAILBOX_ITEM_PREVIEW_CHARS, TASK_LIST_PAGE_SIZE, TASK_LIST_PAGE_MAX, ARCHIVE_COMPLETED_AFTER_DAYS, ARCHIVE_TERMINAL_AFTER_DAYS, ARCHIVE_REQUIREMENT_AFTER_DAYS, ARCHIVE_SCAN_INTERVAL_MS, CHANNEL_CONTEXT_MESSAGES, CHANNEL_CONTEXT_MSG_CHARS, SYSTEM_CONTEXT_MD_CHARS, SYSTEM_TEAM_PROJECT_DESC_CHARS, MAILBOX_QUEUED_TTL_MS, MAILBOX_COALESCE_WINDOW_MS, MAILBOX_PROCESSING_TIMEOUT_MS, BACKSTOP_CANCEL_GRACE_MS, SSE_DISCONNECT_FORCE_STOP_MS, WATCHDOG_INTERVAL_MS, WATCHDOG_DRIFT_THRESHOLD_MS, TRIAGE_BACKLOG_THRESHOLD, TRIAGE_PROMPT_MAX_ITEMS, TRIAGE_MAX_TOKENS, TRIAGE_TEMPERATURE, TRIAGE_CONTEXT_MESSAGES_MAX, TRIAGE_CONTEXT_MSG_CHARS, TRIAGE_ITEM_CONTENT_CHARS, TRIAGE_STALE_INFO_TTL_MS, TRIAGE_STALE_DROP_TYPES, TRIAGE_MAX_TOOL_ITERATIONS, TRIAGE_ALLOWED_TOOLS, DELIBERATION_ALLOWED_TOOLS, DEFAULT_HEARTBEAT_INTERVAL_MS, MIN_HEARTBEAT_INTERVAL_MS, MAX_HEARTBEAT_INTERVAL_MS, NOTEBOOK_MAX_ENTRIES, NOTEBOOK_MAX_AGENT_ENTRIES, NOTEBOOK_MAX_CHARS_PER_ENTRY, NOTEBOOK_PROMPT_MAX_CHARS, NOTEBOOK_TTL_MS_AGENT, NOTEBOOK_TTL_MS_SYSTEM, NOTEBOOK_KEY_MAX_CHARS, NOTEBOOK_RELEVANT_CONTEXT_MAX_CHARS, NOTEBOOK_PERSIST_MAX_WAIT_MS, WORKING_MEMORY_MAX_ENTRIES, WORKING_MEMORY_MAX_CHARS, SUBAGENT_TASK_PREVIEW_CHARS, SUBAGENT_THINKING_PREVIEW_CHARS, SUBAGENT_RESULT_PREVIEW_CHARS, SUBAGENT_LOG_ENTRY_CHARS, SUBAGENT_ERROR_PREVIEW_CHARS, SUBAGENT_MAX_PARALLEL, SUBAGENT_MAX_AGGREGATE_ITERATIONS, SUBAGENT_MAX_LLM_RETRIES, SUBAGENT_RETRY_BASE_MS, SHELL_TIMEOUT_DEFAULT_MS, SHELL_TIMEOUT_MAX_MS, SHELL_MAX_SESSIONS_PER_AGENT, SHELL_SESSION_IDLE_TIMEOUT_MS, SHELL_SESSION_MAX_OUTPUT_BYTES, APPROVAL_WAIT_TIMEOUT_MS, HEARTBEAT_MIN_INITIAL_DELAY_MS, HEARTBEAT_STARTUP_JITTER_MS, LLM_CIRCUIT_RESET_RATE_LIMIT_MS, SESSION_STORAGE_COMPACT_TRIGGER, SESSION_STORAGE_COMPACT_KEEP, SESSION_STORAGE_TOOL_SHRINK_CHARS, SESSION_REQUEST_HISTORY_MIN, SESSION_REQUEST_HISTORY_BLOCK, CONTEXT_ABSURD_MESSAGE_CHARS, CONTEXT_PROACTIVE_COMPACT_RATIO, CONTEXT_WARN_RATIO, CONTEXT_CRIT_RATIO, CONTEXT_SLOT_MAX_CHARS, CONTEXT_VOLATILE_REARM_CALLS, CONTEXT_ABS_HISTORY_TOKENS, CONTEXT_ABS_HISTORY_TARGET_TOKENS, SESSION_RESTORE_MAX_MESSAGES, SESSION_RESTORE_MAX_MESSAGE_TOKENS, TOOL_RESULT_OFFLOAD_CHARS, SYSTEM_COLLEAGUES_MAX, SYSTEM_OTHER_TEAMS_MAX, SYSTEM_OTHER_TEAM_MEMBERS_MAX, SYSTEM_HUMANS_MAX, PROMPT_AFFORD_OUTPUT_RESERVE, TOOL_DEF_BUDGET_REFLEX, TOOL_DEF_BUDGET_CONVERSE, TOOL_DEF_BUDGET_EXECUTE, TOOL_DEF_BUDGET_GOVERN, ROLE_PROMPT_MAX_TOKENS, KNOWLEDGE_PROMPT_MAX_TOKENS, KNOWLEDGE_PROMPT_MAX_TOKENS_CONVERSE, KNOWLEDGE_PROMPT_MAX_TOKENS_REFLEX, COLD_CONVERSE_FIXED_MAX, COLD_REFLEX_FIXED_MAX, SYSTEM_PROMPT_BUDGET_CONVERSE, SYSTEM_ANNOUNCEMENTS_CHARS_CONVERSE, SYSTEM_NORMS_CHARS_CONVERSE, SYSTEM_ANNOUNCEMENTS_CHARS, SYSTEM_NORMS_CHARS, SYSTEM_WORKFLOWS_MAX_CONVERSE, SYSTEM_WORKFLOW_DESC_CHARS_CONVERSE, SYSTEM_DYNAMIC_CONTEXT_CHARS_CONVERSE, DEFERRED_CATALOG_MAX_CHARS, MAX_TOKENS_AFFORD_SAFETY, MAX_TOKENS_REMAINING_MARGIN, MAX_TOKENS_CLAMP_FLOOR, DEEP_SLEEP_IDLE_HEARTBEATS, SUBTASK_SOFT_CAP, PROMPT_AFFORD_SAFETY_MARGIN, LLM_MAX_CONCURRENT_PER_PROVIDER, LLM_CONCURRENCY_JITTER_BASE_MS;
|
|
5436
5436
|
var init_limits = __esm({
|
|
5437
5437
|
"../shared/dist/limits.js"() {
|
|
5438
5438
|
"use strict";
|
|
@@ -5462,6 +5462,7 @@ var init_limits = __esm({
|
|
|
5462
5462
|
TASK_MAX_RETRIES = 3;
|
|
5463
5463
|
MAILBOX_ITEM_MAX_RETRIES = 2;
|
|
5464
5464
|
COMPLETION_MARKER = "<<HANDLE_COMPLETE>>";
|
|
5465
|
+
END_TURN_REPLY_SENTINEL = "[end_turn]";
|
|
5465
5466
|
COMPLETION_MARKER_INSTRUCTION = `
|
|
5466
5467
|
|
|
5467
5468
|
[IMPORTANT: When you have finished processing this request, you MUST end your final response with the exact token: ${COMPLETION_MARKER}]`;
|
|
@@ -5768,6 +5769,7 @@ __export(dist_exports, {
|
|
|
5768
5769
|
DEFERRED_CATALOG_MAX_CHARS: () => DEFERRED_CATALOG_MAX_CHARS,
|
|
5769
5770
|
DELIBERATION_ALLOWED_TOOLS: () => DELIBERATION_ALLOWED_TOOLS,
|
|
5770
5771
|
DELIVERABLE_TITLE_CHARS: () => DELIVERABLE_TITLE_CHARS,
|
|
5772
|
+
END_TURN_REPLY_SENTINEL: () => END_TURN_REPLY_SENTINEL,
|
|
5771
5773
|
ENTERPRISE_FEATURES: () => ENTERPRISE_FEATURES,
|
|
5772
5774
|
ENTITY_COMMENTS_DEFAULT: () => ENTITY_COMMENTS_DEFAULT,
|
|
5773
5775
|
ENTITY_SCOPE_ORDER: () => ENTITY_SCOPE_ORDER,
|
|
@@ -9790,6 +9792,15 @@ var init_agent_metrics = __esm({
|
|
|
9790
9792
|
function isSkillOrMcpToolName(name) {
|
|
9791
9793
|
return name.includes("__") || name.startsWith("feishu_") || name.startsWith("chrome-devtools") || name.startsWith("chrome_");
|
|
9792
9794
|
}
|
|
9795
|
+
function toolEvictionTier(name, protectedNames = TOOL_DEF_PROTECTED, coreKeep = TOOL_DEF_CORE_KEEP) {
|
|
9796
|
+
if (protectedNames.has(name))
|
|
9797
|
+
return 0;
|
|
9798
|
+
if (TOOL_DEF_EVICT_FIRST.has(name) || isSkillOrMcpToolName(name))
|
|
9799
|
+
return 3;
|
|
9800
|
+
if (coreKeep.has(name))
|
|
9801
|
+
return 1;
|
|
9802
|
+
return 2;
|
|
9803
|
+
}
|
|
9793
9804
|
function isWorkContextBoundTool(name) {
|
|
9794
9805
|
return EXECUTE_SESSION_ONLY_TOOLS.has(name);
|
|
9795
9806
|
}
|
|
@@ -9862,17 +9873,18 @@ function evictToolsToBudget(tools, budget, protectedNames = TOOL_DEF_PROTECTED,
|
|
|
9862
9873
|
const current = [...tools];
|
|
9863
9874
|
const evicted = [];
|
|
9864
9875
|
const sizeOf = (t2) => JSON.stringify(t2).length;
|
|
9865
|
-
const pickVictim = (
|
|
9876
|
+
const pickVictim = () => {
|
|
9866
9877
|
let victimIdx = -1;
|
|
9878
|
+
let bestTier = 0;
|
|
9867
9879
|
let victimSize = -1;
|
|
9868
9880
|
for (let i = 0; i < current.length; i++) {
|
|
9869
9881
|
const t2 = current[i];
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
if (!predicate(t2))
|
|
9882
|
+
const tier = toolEvictionTier(t2.name, protectedNames, coreKeep);
|
|
9883
|
+
if (tier === 0)
|
|
9873
9884
|
continue;
|
|
9874
9885
|
const sz = sizeOf(t2);
|
|
9875
|
-
if (sz > victimSize) {
|
|
9886
|
+
if (tier > bestTier || tier === bestTier && sz > victimSize) {
|
|
9887
|
+
bestTier = tier;
|
|
9876
9888
|
victimSize = sz;
|
|
9877
9889
|
victimIdx = i;
|
|
9878
9890
|
}
|
|
@@ -9880,13 +9892,7 @@ function evictToolsToBudget(tools, budget, protectedNames = TOOL_DEF_PROTECTED,
|
|
|
9880
9892
|
return victimIdx;
|
|
9881
9893
|
};
|
|
9882
9894
|
while (estimateToolDefTokens(current) > budget && current.length > 0) {
|
|
9883
|
-
|
|
9884
|
-
if (victimIdx < 0) {
|
|
9885
|
-
victimIdx = pickVictim((t2) => !coreKeep.has(t2.name));
|
|
9886
|
-
}
|
|
9887
|
-
if (victimIdx < 0) {
|
|
9888
|
-
victimIdx = pickVictim(() => true);
|
|
9889
|
-
}
|
|
9895
|
+
const victimIdx = pickVictim();
|
|
9890
9896
|
if (victimIdx < 0)
|
|
9891
9897
|
break;
|
|
9892
9898
|
const [victim] = current.splice(victimIdx, 1);
|
|
@@ -9924,7 +9930,7 @@ ${names}`.slice(0, cap);
|
|
|
9924
9930
|
}
|
|
9925
9931
|
return [header, ...lines].join("\n");
|
|
9926
9932
|
}
|
|
9927
|
-
var REFLEX_CORE_TOOLS, REFLEX_MANAGER_EXTRA_TOOLS, CONVERSE_FORBIDDEN_DEFAULT, TOOL_DEF_PROTECTED, SCHEMA_INJECTED_TOOLS, TOOL_DEF_CORE_KEEP, EXECUTE_SESSION_ONLY_TOOLS, DISTILLATION_EXTRA_TOOLS, TASK_EXECUTION_EXTRA_TOOLS, COMMENT_RESPONSE_ALLOWED_TOOLS, REQUIREMENT_ACTION_ALLOWED_TOOLS, WORKFLOW_ACTION_ALLOWED_TOOLS, SCENARIO_ALLOWED_TOOLS;
|
|
9933
|
+
var REFLEX_CORE_TOOLS, REFLEX_MANAGER_EXTRA_TOOLS, CONVERSE_FORBIDDEN_DEFAULT, TOOL_DEF_PROTECTED, SCHEMA_INJECTED_TOOLS, TOOL_DEF_CORE_KEEP, TOOL_DEF_EVICT_FIRST, EXECUTE_SESSION_ONLY_TOOLS, DISTILLATION_EXTRA_TOOLS, TASK_EXECUTION_EXTRA_TOOLS, COMMENT_RESPONSE_ALLOWED_TOOLS, REQUIREMENT_ACTION_ALLOWED_TOOLS, WORKFLOW_ACTION_ALLOWED_TOOLS, SCENARIO_ALLOWED_TOOLS;
|
|
9928
9934
|
var init_capability_packs = __esm({
|
|
9929
9935
|
"../core/dist/capability-packs.js"() {
|
|
9930
9936
|
"use strict";
|
|
@@ -9953,7 +9959,15 @@ var init_capability_packs = __esm({
|
|
|
9953
9959
|
"discover_tools",
|
|
9954
9960
|
"notify_user",
|
|
9955
9961
|
"request_user_input",
|
|
9956
|
-
"request_user_approval"
|
|
9962
|
+
"request_user_approval",
|
|
9963
|
+
// Turn-termination signal. Prompt text for agent↔agent DM / comment threads
|
|
9964
|
+
// instructs the model to "call the `end_turn` tool". If budget pressure evicts
|
|
9965
|
+
// it, the model is told to call a tool it does not have → it falls back to
|
|
9966
|
+
// writing prose about why it is not replying, and that prose IS a message that
|
|
9967
|
+
// re-triggers the peer → the exact meta-loop end_turn exists to kill.
|
|
9968
|
+
// Schema is tiny (one optional string), so protection is effectively free.
|
|
9969
|
+
// Listing it here also propagates to TOOL_DEF_CORE_KEEP and the reflex allowlist.
|
|
9970
|
+
"end_turn"
|
|
9957
9971
|
]);
|
|
9958
9972
|
SCHEMA_INJECTED_TOOLS = /* @__PURE__ */ new Set([
|
|
9959
9973
|
"schedule_wakeup",
|
|
@@ -9962,7 +9976,14 @@ var init_capability_packs = __esm({
|
|
|
9962
9976
|
"recall_activity",
|
|
9963
9977
|
"complete_deliberation",
|
|
9964
9978
|
"notebook_upsert",
|
|
9965
|
-
"notebook_clear"
|
|
9979
|
+
"notebook_clear",
|
|
9980
|
+
// Right-panel control (Team Chat). Same hazard as the group above: pushed via
|
|
9981
|
+
// pushUnique (no registerTool handler) and NOT in TOOL_DEF_PROTECTED, so budget
|
|
9982
|
+
// eviction defers them — and without this entry discover_tools answers
|
|
9983
|
+
// "unknown", leaving the feature permanently unreachable for that turn.
|
|
9984
|
+
// Measured 2026-10-03: evicted 65x/day before this fix.
|
|
9985
|
+
"open_right_panel",
|
|
9986
|
+
"collapse_right_panel"
|
|
9966
9987
|
]);
|
|
9967
9988
|
TOOL_DEF_CORE_KEEP = /* @__PURE__ */ new Set([
|
|
9968
9989
|
...TOOL_DEF_PROTECTED,
|
|
@@ -9989,7 +10010,34 @@ var init_capability_packs = __esm({
|
|
|
9989
10010
|
"agent_list_colleagues",
|
|
9990
10011
|
"deliverable_search",
|
|
9991
10012
|
"requirement_comment",
|
|
9992
|
-
"session"
|
|
10013
|
+
"session",
|
|
10014
|
+
// Knowledge base — the read path of the memory system. The agent's ability to
|
|
10015
|
+
// consult its own curated knowledge is core work, not a situational extra.
|
|
10016
|
+
"kb_search",
|
|
10017
|
+
"kb_read",
|
|
10018
|
+
"kb_list"
|
|
10019
|
+
]);
|
|
10020
|
+
TOOL_DEF_EVICT_FIRST = /* @__PURE__ */ new Set([
|
|
10021
|
+
// packaging / hub / generation
|
|
10022
|
+
"package_install",
|
|
10023
|
+
"package_list",
|
|
10024
|
+
"hub_search",
|
|
10025
|
+
"hub_install",
|
|
10026
|
+
"office_generate",
|
|
10027
|
+
// misc situational
|
|
10028
|
+
"decide",
|
|
10029
|
+
"recall_context",
|
|
10030
|
+
// team / org administration
|
|
10031
|
+
"agent_broadcast_status",
|
|
10032
|
+
"agent_delegate_task",
|
|
10033
|
+
"agent_send_group_message",
|
|
10034
|
+
"agent_create_group_chat",
|
|
10035
|
+
"agent_list_group_chats",
|
|
10036
|
+
"delegate_message",
|
|
10037
|
+
"agent_start",
|
|
10038
|
+
"agent_stop",
|
|
10039
|
+
"team_status",
|
|
10040
|
+
"team_list"
|
|
9993
10041
|
]);
|
|
9994
10042
|
EXECUTE_SESSION_ONLY_TOOLS = /* @__PURE__ */ new Set([
|
|
9995
10043
|
"task_submit_review",
|
|
@@ -10940,7 +10988,7 @@ ${ctx.mergedContent.slice(0, SYSTEM_MAILBOX_MERGED_CHARS)}`);
|
|
|
10940
10988
|
lines.push("- [ ] Read ALL prior comments \u2014 understand the thread.");
|
|
10941
10989
|
lines.push("- [ ] Is the comment directed at you? Does it change your work?");
|
|
10942
10990
|
lines.push("- [ ] Reply with `reply_to_comment_id`. One consolidated reply if multiple comments.");
|
|
10943
|
-
lines.push("- [ ] Does your reply add NEW information? If not \u2192 `
|
|
10991
|
+
lines.push("- [ ] Does your reply add NEW information? If not \u2192 no reply (call `end_turn`).");
|
|
10944
10992
|
lines.push("");
|
|
10945
10993
|
lines.push("**task_status_update** (usually informational):");
|
|
10946
10994
|
lines.push("- [ ] Does this affect your current work or priorities?");
|
|
@@ -11132,8 +11180,12 @@ ${ctx.mergedContent.slice(0, SYSTEM_MAILBOX_MERGED_CHARS)}`);
|
|
|
11132
11180
|
lines.push("");
|
|
11133
11181
|
lines.push("**Conversation flow**: After you reply, the other agent will be automatically triggered to respond. This creates a natural back-and-forth conversation \u2014 like texting a colleague.");
|
|
11134
11182
|
lines.push("");
|
|
11135
|
-
lines.push("**CRITICAL \u2014
|
|
11136
|
-
lines.push("Your reply triggers the other agent
|
|
11183
|
+
lines.push("**CRITICAL \u2014 How to STOP the conversation**:");
|
|
11184
|
+
lines.push("Your reply auto-triggers the other agent, so a reply that carries no new information keeps the exchange alive forever. To end your side, **call the `end_turn` tool** and write no reply text. That is the only correct stop signal: it ends your turn without sending anything to the peer.");
|
|
11185
|
+
lines.push('Do NOT write a message explaining that you will not reply. Text like "no response needed", "\u65E0\u5F85\u529E", "\u5DF2\u6536\u5230\uFF0C\u4E0D\u91CD\u590D\u56DE\u590D", "\u8BE5\u6D88\u606F\u4E3A\u91CD\u590D\uFF0C\u6211\u4E0D\u518D\u56DE\u590D" is **itself a reply**: it gets delivered, re-triggers the peer, and restarts the exact loop it was meant to stop. Silence is the *absence* of a message \u2014 never a message about being silent.');
|
|
11186
|
+
lines.push("(Writing no reply text at all also stops the exchange, and a bare `[NO_RESPONSE]` is still accepted as a legacy shorthand \u2014 but **`end_turn` is preferred**: it cannot be paraphrased by mistake.)");
|
|
11187
|
+
lines.push("");
|
|
11188
|
+
lines.push("Stop and write nothing when:");
|
|
11137
11189
|
lines.push("- The conversation has reached a natural conclusion (agreement reached, question answered, info exchanged)");
|
|
11138
11190
|
lines.push("- You have nothing **new and actionable** to add \u2014 no new facts, no new questions, no new instructions");
|
|
11139
11191
|
lines.push('- You are just acknowledging receipt ("OK", "got it", "understood", "\u6536\u5230", "noted", "roger", "will do", "\u4FDD\u6301\u5F85\u547D", "standby", "\u6536\u5230\uFF0C\u4FDD\u6301\u5F85\u547D")');
|
|
@@ -11141,7 +11193,7 @@ ${ctx.mergedContent.slice(0, SYSTEM_MAILBOX_MERGED_CHARS)}`);
|
|
|
11141
11193
|
lines.push("- The other party confirmed or acknowledged your last message \u2014 the exchange is complete");
|
|
11142
11194
|
lines.push('- You want to say something purely polite, ceremonial, or encouraging (e.g., "\u52A0\u6CB9", "sounds good", "great work")');
|
|
11143
11195
|
lines.push('- You already got the answer you needed from this peer \u2014 do NOT paste "X \u56DE\u590D\u8BF4\uFF1A\u2026" back into this DM');
|
|
11144
|
-
lines.push("**Default to
|
|
11196
|
+
lines.push("**Default to writing nothing.** Only reply if you have genuinely new information, a question that needs answering, or a correction. When in doubt, STOP.");
|
|
11145
11197
|
lines.push("");
|
|
11146
11198
|
lines.push("**Human delivery (very important):**");
|
|
11147
11199
|
lines.push("- If you asked this peer something on behalf of a human (owner/boss), deliver the answer with `notify_user` (or report it in your human chat).");
|
|
@@ -11189,8 +11241,8 @@ ${ctx.mergedContent.slice(0, SYSTEM_MAILBOX_MERGED_CHARS)}`);
|
|
|
11189
11241
|
lines.push("4. When you accept a work assignment, verify a task has been created for it (`task_list`). If the coordinator did not create one, remind them or create it yourself with the correct `assigned_agent_id`. Do NOT make promises without task tracking.");
|
|
11190
11242
|
}
|
|
11191
11243
|
lines.push("5. DEFAULT IS SILENCE. Before responding, answer these questions:");
|
|
11192
|
-
lines.push(" a) Has another agent already given a substantively similar answer? If yes \u2192
|
|
11193
|
-
lines.push(" b) Does your response add UNIQUE expertise or information? If no \u2192
|
|
11244
|
+
lines.push(" a) Has another agent already given a substantively similar answer? If yes \u2192 no reply (call `end_turn`)");
|
|
11245
|
+
lines.push(" b) Does your response add UNIQUE expertise or information? If no \u2192 no reply (call `end_turn`)");
|
|
11194
11246
|
lines.push(` c) Check channel history \u2014 duplicate or "me too" responses waste everyone's time.`);
|
|
11195
11247
|
lines.push("6. @MENTION \u2014 CRITICAL ROUTING MECHANISM:");
|
|
11196
11248
|
lines.push(" The @ symbol controls message routing. You MUST use it correctly:");
|
|
@@ -11204,13 +11256,13 @@ ${ctx.mergedContent.slice(0, SYSTEM_MAILBOX_MERGED_CHARS)}`);
|
|
|
11204
11256
|
lines.push(`8. Your context already includes ~${CHANNEL_CONTEXT_MESSAGES} recent messages. For OLDER messages beyond that window, use recall_context(scope="channel"). For task/requirement details use task_get/requirement_get. Do NOT guess about prior discussion.`);
|
|
11205
11257
|
lines.push("");
|
|
11206
11258
|
lines.push("**GROUP CHAT PROCESSING CHECKLIST** (walk through before every response):");
|
|
11207
|
-
lines.push("- [ ] Am I @mentioned or is this an open message? If directed at someone else \u2192 `
|
|
11208
|
-
lines.push("- [ ] Check the channel messages in your context \u2014 has someone already answered? If yes \u2192 `
|
|
11209
|
-
lines.push("- [ ] Does my role/expertise add UNIQUE value here? If no \u2192 `
|
|
11259
|
+
lines.push("- [ ] Am I @mentioned or is this an open message? If directed at someone else \u2192 no reply (call `end_turn`).");
|
|
11260
|
+
lines.push("- [ ] Check the channel messages in your context \u2014 has someone already answered? If yes \u2192 no reply (call `end_turn`).");
|
|
11261
|
+
lines.push("- [ ] Does my role/expertise add UNIQUE value here? If no \u2192 no reply (call `end_turn`).");
|
|
11210
11262
|
lines.push("- [ ] Draft my reply. Is it concise and actionable? Remove filler.");
|
|
11211
11263
|
lines.push("- [ ] @mention specific agents if I need their input \u2014 use correct format (`@Name` or `@[Full Name]`).");
|
|
11212
11264
|
lines.push("- [ ] My text response will be auto-sent to the group. No need to call `agent_send_group_message`.");
|
|
11213
|
-
lines.push("- [ ] Final check: does my response contain NEW information? If not \u2192 `
|
|
11265
|
+
lines.push("- [ ] Final check: does my response contain NEW information? If not \u2192 no reply (call `end_turn`).");
|
|
11214
11266
|
break;
|
|
11215
11267
|
case "comment_response":
|
|
11216
11268
|
lines.push("You are responding to a **comment on a task or requirement**. You MUST follow the context-first protocol below.");
|
|
@@ -11238,7 +11290,7 @@ ${ctx.mergedContent.slice(0, SYSTEM_MAILBOX_MERGED_CHARS)}`);
|
|
|
11238
11290
|
lines.push("");
|
|
11239
11291
|
lines.push("**MANDATORY outcome \u2014 you MUST end with exactly one of these:**");
|
|
11240
11292
|
lines.push("1. Call `task_comment` or `requirement_comment` tool to post your reply, OR");
|
|
11241
|
-
lines.push("2.
|
|
11293
|
+
lines.push("2. Call the `end_turn` tool to explicitly signal that no response is warranted.");
|
|
11242
11294
|
lines.push("");
|
|
11243
11295
|
lines.push("If you finish without doing either of the above, the system will automatically retry your turn \u2014 your text output alone is NEVER sufficient.");
|
|
11244
11296
|
lines.push("");
|
|
@@ -11255,10 +11307,10 @@ ${ctx.mergedContent.slice(0, SYSTEM_MAILBOX_MERGED_CHARS)}`);
|
|
|
11255
11307
|
lines.push(` and reference others by quoting: '> [re: tc_xxx by @Bob]: "quote..." \u2014 your response'`);
|
|
11256
11308
|
lines.push("- Include all addressed agent IDs in the `mentions` array for proper notifications.");
|
|
11257
11309
|
lines.push("");
|
|
11258
|
-
lines.push("**When to
|
|
11259
|
-
lines.push("- Does your reply contain NEW INFORMATION, a CONCRETE ACTION, or a SPECIFIC QUESTION? If none \u2192
|
|
11260
|
-
lines.push("- If the last 2+ comments are agents acknowledging or restating without new substance \u2192
|
|
11261
|
-
lines.push("- If you and another agent exchanged views and neither has new data \u2192
|
|
11310
|
+
lines.push("**When to call `end_turn` \u2014 convergence check:**");
|
|
11311
|
+
lines.push("- Does your reply contain NEW INFORMATION, a CONCRETE ACTION, or a SPECIFIC QUESTION? If none \u2192 call `end_turn`.");
|
|
11312
|
+
lines.push("- If the last 2+ comments are agents acknowledging or restating without new substance \u2192 call `end_turn`.");
|
|
11313
|
+
lines.push("- If you and another agent exchanged views and neither has new data \u2192 call `end_turn`.");
|
|
11262
11314
|
lines.push("");
|
|
11263
11315
|
lines.push('**Not a valid reason to reply:** "Got it" / "Will do" / "Agreed" / restating what was said / asking already-answered questions.');
|
|
11264
11316
|
lines.push("");
|
|
@@ -13302,6 +13354,16 @@ var init_tool_selector = __esm({
|
|
|
13302
13354
|
required: ["title", "body"]
|
|
13303
13355
|
}
|
|
13304
13356
|
});
|
|
13357
|
+
pushUnique({
|
|
13358
|
+
name: "end_turn",
|
|
13359
|
+
description: "End this turn WITHOUT sending any message to the conversation. Use it in an agent-to-agent conversation when the exchange is complete \u2014 you have no new fact, no question, and no correction. This is the ONLY correct way to stop a back-and-forth loop: do NOT write a reply saying you have nothing to add, and do NOT write an acknowledgement. Call end_turn and write no message text.",
|
|
13360
|
+
inputSchema: {
|
|
13361
|
+
type: "object",
|
|
13362
|
+
properties: {
|
|
13363
|
+
reason: { type: "string", description: "Optional short note on why the exchange is complete. Recorded locally for audit; never sent to the peer." }
|
|
13364
|
+
}
|
|
13365
|
+
}
|
|
13366
|
+
});
|
|
13305
13367
|
if (opts.isChat) {
|
|
13306
13368
|
pushUnique({
|
|
13307
13369
|
name: "open_right_panel",
|
|
@@ -13539,6 +13601,15 @@ var init_tool_selector = __esm({
|
|
|
13539
13601
|
evictedActivated: this.lastEvictedActivated
|
|
13540
13602
|
});
|
|
13541
13603
|
}
|
|
13604
|
+
const unreachable = evicted.map((e) => e.name).filter((n2) => !opts.allTools.has(n2) && !SCHEMA_INJECTED_TOOLS.has(n2));
|
|
13605
|
+
if (unreachable.length) {
|
|
13606
|
+
log12.warn("Evicted tool is not re-activatable \u2014 unreachable for this turn", {
|
|
13607
|
+
pack,
|
|
13608
|
+
budget,
|
|
13609
|
+
unreachable,
|
|
13610
|
+
hint: "Add to TOOL_DEF_PROTECTED (must never evict) or SCHEMA_INJECTED_TOOLS (discover_tools can restore it)."
|
|
13611
|
+
});
|
|
13612
|
+
}
|
|
13542
13613
|
log12.debug("Tool selection complete", {
|
|
13543
13614
|
total: opts.allTools.size,
|
|
13544
13615
|
selected: capped.length,
|
|
@@ -50675,6 +50746,8 @@ function detectAbnormalCompletion(reply, item) {
|
|
|
50675
50746
|
return void 0;
|
|
50676
50747
|
if (reply === "[preempted]" || reply === "[cancelled]")
|
|
50677
50748
|
return void 0;
|
|
50749
|
+
if (reply === END_TURN_REPLY_SENTINEL)
|
|
50750
|
+
return void 0;
|
|
50678
50751
|
if (reply === void 0 || reply === "") {
|
|
50679
50752
|
return "empty reply from LLM-invoking item";
|
|
50680
50753
|
}
|
|
@@ -53851,7 +53924,9 @@ function shouldMemoryFlushPreflight(opts) {
|
|
|
53851
53924
|
return false;
|
|
53852
53925
|
return lastUsagePercent >= threshold;
|
|
53853
53926
|
}
|
|
53854
|
-
function shouldContinueToolLoop(response) {
|
|
53927
|
+
function shouldContinueToolLoop(response, opts) {
|
|
53928
|
+
if (opts?.endTurnRequested)
|
|
53929
|
+
return false;
|
|
53855
53930
|
return Boolean(response.finishReason === "tool_use" && response.toolCalls?.length || response.finishReason === "max_tokens");
|
|
53856
53931
|
}
|
|
53857
53932
|
function needsMaxTokensContinuation(response) {
|
|
@@ -54122,6 +54197,27 @@ var init_agent2 = __esm({
|
|
|
54122
54197
|
onActivityLogCb;
|
|
54123
54198
|
onActivityEndCb;
|
|
54124
54199
|
browserCloseTabsHelper;
|
|
54200
|
+
/**
|
|
54201
|
+
* Set when the agent calls the `end_turn` tool — an explicit, typed "this turn is
|
|
54202
|
+
* over, send nothing" signal. Read by the tool-loop guard (all 5 entry points) to
|
|
54203
|
+
* stop immediately, and by the reply assembly to force an empty reply.
|
|
54204
|
+
*
|
|
54205
|
+
* Why a typed signal instead of the legacy `[NO_RESPONSE]` text token: an LLM told
|
|
54206
|
+
* to "reply with a token" often paraphrases the decision into prose instead — and
|
|
54207
|
+
* that prose IS a delivered message, which re-triggers the peer and restarts the
|
|
54208
|
+
* exact loop it was meant to end (observed 2026-10-03, agent↔agent DM).
|
|
54209
|
+
*/
|
|
54210
|
+
endTurnRequested = false;
|
|
54211
|
+
/**
|
|
54212
|
+
* Monotonic counter of `end_turn` tool invocations. The AttentionDelegate wrapper
|
|
54213
|
+
* snapshots it around one mailbox turn: an increase means THIS turn ended
|
|
54214
|
+
* deliberately, so it returns {@link END_TURN_REPLY_SENTINEL} to the attention
|
|
54215
|
+
* controller (whose only source of truth for turn status is the delegate's return
|
|
54216
|
+
* value). A counter — not the mutable `endTurnRequested` flag, which the reply
|
|
54217
|
+
* assembly resets before returning — keeps the signal attributable to the
|
|
54218
|
+
* specific turn even with concurrent workers.
|
|
54219
|
+
*/
|
|
54220
|
+
endTurnCount = 0;
|
|
54125
54221
|
/** Injected by AgentManager; read at skill-activation time so Settings changes apply live. */
|
|
54126
54222
|
browserElementSelectionProvider;
|
|
54127
54223
|
dynamicContextProviders = /* @__PURE__ */ new Map();
|
|
@@ -54849,7 +54945,9 @@ ${notification.stdoutTail}`);
|
|
|
54849
54945
|
return {
|
|
54850
54946
|
processMailboxItem: async (item, batchItems, batchContext) => {
|
|
54851
54947
|
try {
|
|
54948
|
+
const endTurnCountBefore = this.endTurnCount;
|
|
54852
54949
|
const result = await this.processMailboxItemInternal(item, batchItems, batchContext);
|
|
54950
|
+
const endedTurnViaTool = this.endTurnCount > endTurnCountBefore;
|
|
54853
54951
|
try {
|
|
54854
54952
|
this.metricsCollector.recordTurn({
|
|
54855
54953
|
isChat: item.sourceType === "human_chat",
|
|
@@ -54858,7 +54956,7 @@ ${notification.stdoutTail}`);
|
|
|
54858
54956
|
} catch (err) {
|
|
54859
54957
|
log20.debug("recordTurn failed", { agentId: this.id, itemId: item.id, error: String(err) });
|
|
54860
54958
|
}
|
|
54861
|
-
return result;
|
|
54959
|
+
return endedTurnViaTool ? END_TURN_REPLY_SENTINEL : result;
|
|
54862
54960
|
} finally {
|
|
54863
54961
|
this.clearProcessingCancel();
|
|
54864
54962
|
}
|
|
@@ -55044,7 +55142,7 @@ ${notification.stdoutTail}`);
|
|
|
55044
55142
|
}
|
|
55045
55143
|
let toolIter = 0;
|
|
55046
55144
|
const maxIter = Math.min(this._maxToolIterations, 24);
|
|
55047
|
-
while (shouldContinueToolLoop(response)) {
|
|
55145
|
+
while (shouldContinueToolLoop(response, { endTurnRequested: this.endTurnRequested })) {
|
|
55048
55146
|
if (++toolIter > maxIter) {
|
|
55049
55147
|
log20.warn("ensureCompletionMarker tool loop hit max iterations", {
|
|
55050
55148
|
agentId: this.id,
|
|
@@ -57164,6 +57262,7 @@ ${report}`);
|
|
|
57164
57262
|
return "[cancelled]";
|
|
57165
57263
|
}
|
|
57166
57264
|
this.transitionStatus({ to: "working" });
|
|
57265
|
+
this.endTurnRequested = false;
|
|
57167
57266
|
const scenario = options?.scenario ?? "chat";
|
|
57168
57267
|
const isLightweight = scenario !== "chat" && scenario !== "task_execution" && scenario !== "review";
|
|
57169
57268
|
const isPreemptable = scenario !== "chat";
|
|
@@ -57366,7 +57465,7 @@ ${report}`);
|
|
|
57366
57465
|
const effectiveMaxIter = options?.maxToolIterations ?? this._maxToolIterations;
|
|
57367
57466
|
const commentToolUsed = /* @__PURE__ */ new Set();
|
|
57368
57467
|
const requirementActionToolUsed = /* @__PURE__ */ new Set();
|
|
57369
|
-
while (shouldContinueToolLoop(response)) {
|
|
57468
|
+
while (shouldContinueToolLoop(response, { endTurnRequested: this.endTurnRequested })) {
|
|
57370
57469
|
if (++toolIterations > effectiveMaxIter) {
|
|
57371
57470
|
log20.warn("Tool loop hit max iterations", {
|
|
57372
57471
|
agentId: this.id,
|
|
@@ -57546,6 +57645,8 @@ ${chatYield.item.payload.content}`;
|
|
|
57546
57645
|
volatileState: this.volatileState
|
|
57547
57646
|
});
|
|
57548
57647
|
const updatedMessages = prepared2.messages;
|
|
57648
|
+
if (this.endTurnRequested)
|
|
57649
|
+
break;
|
|
57549
57650
|
const llmStart2 = Date.now();
|
|
57550
57651
|
response = await this.withNetworkRetry(() => this.llmRouter.chat({
|
|
57551
57652
|
messages: updatedMessages,
|
|
@@ -57560,8 +57661,7 @@ ${chatYield.item.payload.content}`;
|
|
|
57560
57661
|
this.calibrateTokenCounter(response.usage.inputTokens);
|
|
57561
57662
|
this.emitLlmRequestAudit("chat", response, Date.now() - llmStart2, tokens2);
|
|
57562
57663
|
}
|
|
57563
|
-
|
|
57564
|
-
if (scenario === "comment_response" && commentToolUsed.size === 0 && !hasNoReplyMarker && toolIterations < effectiveMaxIter) {
|
|
57664
|
+
if (scenario === "comment_response" && commentToolUsed.size === 0 && !this.endTurnRequested && toolIterations < effectiveMaxIter) {
|
|
57565
57665
|
this.memory.appendMessage(sessionId, {
|
|
57566
57666
|
role: "assistant",
|
|
57567
57667
|
content: response.content,
|
|
@@ -57570,7 +57670,7 @@ ${chatYield.item.payload.content}`;
|
|
|
57570
57670
|
});
|
|
57571
57671
|
this.memory.appendMessage(sessionId, {
|
|
57572
57672
|
role: "user",
|
|
57573
|
-
content: "[SYSTEM] You are about to end your turn WITHOUT posting a reply and WITHOUT
|
|
57673
|
+
content: "[SYSTEM] You are about to end your turn WITHOUT posting a reply and WITHOUT calling the end_turn tool. In this scenario your text output is NOT visible to anyone. You MUST either: (1) call `task_comment` or `requirement_comment` tool to post your reply in the comment thread, OR (2) call the end_turn tool if you have determined that no response is warranted. Do it now."
|
|
57574
57674
|
});
|
|
57575
57675
|
const reminderMessages = this.requestHistory(sessionId);
|
|
57576
57676
|
const preparedReminder = await this.contextEngine.prepareMessages({
|
|
@@ -57737,6 +57837,16 @@ ${chatYield.item.payload.content}`;
|
|
|
57737
57837
|
}, this.getEffectiveProvider(), { sessionId: sessionId ?? this.currentSessionId }), "Chat LLM requirement-action-reminder-final");
|
|
57738
57838
|
}
|
|
57739
57839
|
}
|
|
57840
|
+
if (this.endTurnRequested) {
|
|
57841
|
+
this.endTurnRequested = false;
|
|
57842
|
+
this.memory.appendMessage(sessionId, { role: "assistant", content: "" });
|
|
57843
|
+
if (chatActivityId) {
|
|
57844
|
+
this.emitActivityLog(chatActivityId, "text", "[end_turn \u2014 no reply sent]");
|
|
57845
|
+
this.endActivity(chatActivityId);
|
|
57846
|
+
}
|
|
57847
|
+
this.transitionStatus({ to: "idle" });
|
|
57848
|
+
return "";
|
|
57849
|
+
}
|
|
57740
57850
|
const rawReply = sanitizeLLMReply(response.content);
|
|
57741
57851
|
const displayReply = stripCompletionMarker(rawReply);
|
|
57742
57852
|
const outputCheck = await this.guardrails.checkOutput(displayReply, { agentId: this.id });
|
|
@@ -57991,7 +58101,7 @@ ${chatYield.item.payload.content}`;
|
|
|
57991
58101
|
\u26A0\uFE0F ${response.creditWarning}` });
|
|
57992
58102
|
}
|
|
57993
58103
|
let streamToolIterations = 0;
|
|
57994
|
-
while (shouldContinueToolLoop(response)) {
|
|
58104
|
+
while (shouldContinueToolLoop(response, { endTurnRequested: this.endTurnRequested })) {
|
|
57995
58105
|
if (++streamToolIterations > this._maxToolIterations) {
|
|
57996
58106
|
log20.warn("Stream tool loop hit max iterations", {
|
|
57997
58107
|
agentId: this.id,
|
|
@@ -58567,7 +58677,7 @@ ${streamYield.item.payload.content}`;
|
|
|
58567
58677
|
this.updateTokensUsed(taskLlmTokens);
|
|
58568
58678
|
this.calibrateTokenCounter(response.usage.inputTokens);
|
|
58569
58679
|
this.emitLlmRequestAudit("task_execution", response, Date.now() - taskLlmStart, taskLlmTokens);
|
|
58570
|
-
while (shouldContinueToolLoop(response)) {
|
|
58680
|
+
while (shouldContinueToolLoop(response, { endTurnRequested: this.endTurnRequested })) {
|
|
58571
58681
|
taskToolIterations++;
|
|
58572
58682
|
if (cancelToken?.cancelled) {
|
|
58573
58683
|
flushText();
|
|
@@ -59020,7 +59130,7 @@ ${yieldResult.item.payload.content}`
|
|
|
59020
59130
|
this.emitLlmRequestAudit("respond_in_session", response, Date.now() - risLlmStart, risTokens);
|
|
59021
59131
|
let toolIter = 0;
|
|
59022
59132
|
const effectiveMaxIter = this._maxToolIterations;
|
|
59023
|
-
while (shouldContinueToolLoop(response)) {
|
|
59133
|
+
while (shouldContinueToolLoop(response, { endTurnRequested: this.endTurnRequested })) {
|
|
59024
59134
|
if (++toolIter > effectiveMaxIter) {
|
|
59025
59135
|
log20.warn("respondInSession tool loop hit max iterations", {
|
|
59026
59136
|
agentId: this.id,
|
|
@@ -60371,6 +60481,13 @@ ${d.text}
|
|
|
60371
60481
|
return await this.executeToolInternal(toolCall, onOutput, sessionId);
|
|
60372
60482
|
}
|
|
60373
60483
|
async executeToolInternal(toolCall, onOutput, sessionId) {
|
|
60484
|
+
if (toolCall.name === "end_turn") {
|
|
60485
|
+
this.endTurnRequested = true;
|
|
60486
|
+
this.endTurnCount++;
|
|
60487
|
+
const reason = typeof toolCall.arguments.reason === "string" ? toolCall.arguments.reason.trim() : "";
|
|
60488
|
+
log20.info("Agent ended turn via end_turn tool", { agentId: this.id, sessionId, reason: reason || void 0 });
|
|
60489
|
+
return JSON.stringify({ status: "ok", ended: true, note: "Turn ended. Do not send further messages in this turn." });
|
|
60490
|
+
}
|
|
60374
60491
|
if (toolCall.name === "discover_tools") {
|
|
60375
60492
|
return await this.handleDiscoverTools(toolCall.arguments);
|
|
60376
60493
|
}
|
|
@@ -237148,7 +237265,7 @@ var init_task_service = __esm({
|
|
|
237148
237265
|
if (agentStreak >= 2) {
|
|
237149
237266
|
lines.push(``);
|
|
237150
237267
|
lines.push(`Thread activity: ${agentStreak} consecutive agent comments on this task (no human input in between).`);
|
|
237151
|
-
lines.push(`Consider whether your reply adds genuinely new information. If the discussion is going in circles,
|
|
237268
|
+
lines.push(`Consider whether your reply adds genuinely new information. If the discussion is going in circles, call the end_turn tool and let results speak.`);
|
|
237152
237269
|
}
|
|
237153
237270
|
lines.push(``);
|
|
237154
237271
|
lines.push(`**MANDATORY before replying**: You MUST first understand the full context:`);
|
|
@@ -237292,7 +237409,7 @@ var init_task_service = __esm({
|
|
|
237292
237409
|
if (agentStreak >= 2) {
|
|
237293
237410
|
lines.push(``);
|
|
237294
237411
|
lines.push(`Thread activity: ${agentStreak} consecutive agent comments on this requirement (no human input in between).`);
|
|
237295
|
-
lines.push(`Consider whether your reply adds genuinely new information. If the discussion is going in circles,
|
|
237412
|
+
lines.push(`Consider whether your reply adds genuinely new information. If the discussion is going in circles, call the end_turn tool and let results speak.`);
|
|
237296
237413
|
}
|
|
237297
237414
|
lines.push(``);
|
|
237298
237415
|
lines.push(`**MANDATORY before replying**: You MUST first understand the full context:`);
|
|
@@ -354892,6 +355009,11 @@ function evaluateDirtyState(input, lookupTask = () => void 0, now3 = Date.now(),
|
|
|
354892
355009
|
if (hbFresh) {
|
|
354893
355010
|
return { dirty: false, reason: "heartbeat fresh \u2014 agent still self-patrolling" };
|
|
354894
355011
|
}
|
|
355012
|
+
const lp = parseTs(input.lastProgressAt);
|
|
355013
|
+
const progressFresh = !Number.isNaN(lp) && nowMs - lp < cfg.progressGraceMs;
|
|
355014
|
+
if (progressFresh) {
|
|
355015
|
+
return { dirty: false, reason: "recent progress \u2014 agent actively working (tool/LLM events)" };
|
|
355016
|
+
}
|
|
354895
355017
|
const actStartedTs = input.currentActivity?.startedAt ? parseTs(input.currentActivity.startedAt) : NaN;
|
|
354896
355018
|
const activityStale = Number.isNaN(actStartedTs) || nowMs - actStartedTs >= cfg.staleAfterMs;
|
|
354897
355019
|
if (hasActivity && !activityStale) {
|
|
@@ -355047,8 +355169,14 @@ function evaluateConservator(input, lookupTask = () => void 0, now3 = Date.now()
|
|
|
355047
355169
|
currentActivity: input.currentActivity,
|
|
355048
355170
|
activeTaskIds: input.activeTaskIds,
|
|
355049
355171
|
lastHeartbeat: input.lastHeartbeat,
|
|
355172
|
+
lastProgressAt: input.lastProgressAt,
|
|
355050
355173
|
lastErrorAt: input.lastErrorAt
|
|
355051
|
-
}, lookupTask, nowMs, {
|
|
355174
|
+
}, lookupTask, nowMs, {
|
|
355175
|
+
enabled: cfg.enabled,
|
|
355176
|
+
staleAfterMs: cfg.staleAfterMs,
|
|
355177
|
+
heartbeatGraceMs: cfg.heartbeatGraceMs,
|
|
355178
|
+
progressGraceMs: cfg.progressGraceMs
|
|
355179
|
+
});
|
|
355052
355180
|
const stall = evaluateStall({ runtime }, nowMs, { stallAfterMs: cfg.stallAfterMs });
|
|
355053
355181
|
const base = { agentId: input.agentId, runtime, dirty, stall };
|
|
355054
355182
|
if (!cfg.enabled)
|
|
@@ -355121,13 +355249,15 @@ function evaluateConservator(input, lookupTask = () => void 0, now3 = Date.now()
|
|
|
355121
355249
|
const hbFresh = !Number.isNaN(lh) && nowMs - lh < cfg.heartbeatGraceMs;
|
|
355122
355250
|
const actStart = input.currentActivity?.startedAt ? parseTs(input.currentActivity.startedAt) : NaN;
|
|
355123
355251
|
const actFresh = hasActivity && !Number.isNaN(actStart) && nowMs - actStart < cfg.staleAfterMs;
|
|
355124
|
-
|
|
355252
|
+
const lp = parseTs(input.lastProgressAt);
|
|
355253
|
+
const progressFresh = !Number.isNaN(lp) && nowMs - lp < cfg.progressGraceMs;
|
|
355254
|
+
if (hbFresh || actFresh || progressFresh) {
|
|
355125
355255
|
return {
|
|
355126
355256
|
...base,
|
|
355127
355257
|
stage: "observe",
|
|
355128
355258
|
action: "none",
|
|
355129
|
-
criterion: hbFresh ? "fresh-heartbeat" : "fresh-activity",
|
|
355130
|
-
reason: hbFresh ? "processing-like but heartbeat fresh \u2014 short observation window, hold off" : "activity just started \u2014 within stale window, hold off",
|
|
355259
|
+
criterion: hbFresh ? "fresh-heartbeat" : actFresh ? "fresh-activity" : "fresh-progress",
|
|
355260
|
+
reason: hbFresh ? "processing-like but heartbeat fresh \u2014 short observation window, hold off" : actFresh ? "activity just started \u2014 within stale window, hold off" : "processing-like with recent progress (tool/LLM events) \u2014 actively working, hold off",
|
|
355131
355261
|
suggestions: ["\u4FDD\u6301\u89C2\u5BDF\uFF1B\u82E5 continue processing \u65E0\u8FDB\u5C55\u518D\u5347\u7EA7"]
|
|
355132
355262
|
};
|
|
355133
355263
|
}
|
|
@@ -355161,8 +355291,10 @@ var init_agent_conservator = __esm({
|
|
|
355161
355291
|
enabled: true,
|
|
355162
355292
|
staleAfterMs: 5 * 6e4,
|
|
355163
355293
|
// 5 分钟无进展
|
|
355164
|
-
heartbeatGraceMs: 2 * 6e4
|
|
355294
|
+
heartbeatGraceMs: 2 * 6e4,
|
|
355165
355295
|
// 心跳 2 分钟内视为存活
|
|
355296
|
+
progressGraceMs: 10 * 6e4
|
|
355297
|
+
// 10 分钟内有工具/LLM 进展即视为存活(> shell 5 分钟上界)
|
|
355166
355298
|
};
|
|
355167
355299
|
DEFAULT_STALL_CONFIG = {
|
|
355168
355300
|
stallAfterMs: 30 * 6e4
|
|
@@ -355180,6 +355312,7 @@ var init_agent_conservator = __esm({
|
|
|
355180
355312
|
enabled: true,
|
|
355181
355313
|
staleAfterMs: 5 * 6e4,
|
|
355182
355314
|
heartbeatGraceMs: 2 * 6e4,
|
|
355315
|
+
progressGraceMs: 10 * 6e4,
|
|
355183
355316
|
stallAfterMs: 30 * 6e4,
|
|
355184
355317
|
retryBaseMs: CONSERVATOR_RETRY_AFTER_MS,
|
|
355185
355318
|
backoffMaxMs: CONSERVATOR_BACKOFF_MAX_MS,
|
|
@@ -356827,7 +356960,7 @@ ${cleanText}`,
|
|
|
356827
356960
|
`[CHANNEL] channel_key="${channel}"`
|
|
356828
356961
|
];
|
|
356829
356962
|
if ((chainCtx?.depth ?? 0) >= 2) {
|
|
356830
|
-
prefixLines.push("[LOOP GUARD] This DM already exchanged replies.
|
|
356963
|
+
prefixLines.push("[LOOP GUARD] This DM already exchanged replies. If you have no NEW fact, question, or instruction, call the end_turn tool instead of replying.", 'Do NOT acknowledge with \u6536\u5230/\u4FDD\u6301\u5F85\u547D/OK. Do NOT paste "\u56DE\u590D\u8BF4" back into this DM \u2014 use notify_user for humans.');
|
|
356831
356964
|
}
|
|
356832
356965
|
prefixLines.push("---", "");
|
|
356833
356966
|
messagePrefix = prefixLines.join("\n");
|
|
@@ -356856,7 +356989,7 @@ ${cleanText}`,
|
|
|
356856
356989
|
prefixLines.push(">>> You are the target of this message. You SHOULD respond. <<<");
|
|
356857
356990
|
} else {
|
|
356858
356991
|
prefixLines.push(">>> STOP. This message is NOT for you. The user is talking to " + [...targetNames].join(", ") + ", not you.");
|
|
356859
|
-
prefixLines.push("You MUST
|
|
356992
|
+
prefixLines.push("You MUST end your turn by calling the end_turn tool \u2014 do not write a reply.");
|
|
356860
356993
|
prefixLines.push('The ONLY exception: you are directly contradicted by a factual error. Offering opinions, agreement, "me too", or generic help does NOT count. <<<');
|
|
356861
356994
|
}
|
|
356862
356995
|
} else if (!isA2A) {
|
|
@@ -356878,7 +357011,7 @@ ${cleanText}`,
|
|
|
356878
357011
|
}
|
|
356879
357012
|
if (isTargeted && !thisAgentIsTarget && !isA2A) {
|
|
356880
357013
|
prefixLines.push("");
|
|
356881
|
-
prefixLines.push("REMINDER: This message is directed at " + [...targetNames].join(", ") + ". You are " + agentName + ".
|
|
357014
|
+
prefixLines.push("REMINDER: This message is directed at " + [...targetNames].join(", ") + ". You are " + agentName + ". End your turn by calling the end_turn tool instead of replying.");
|
|
356882
357015
|
}
|
|
356883
357016
|
prefixLines.push("---", "");
|
|
356884
357017
|
messagePrefix = prefixLines.join("\n");
|