@usabledev/usable-chat 1.181.0 → 1.181.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/cli.js +29 -9
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -92476,6 +92476,32 @@ Whenever you would otherwise write something like:
|
|
|
92476
92476
|
}
|
|
92477
92477
|
});
|
|
92478
92478
|
|
|
92479
|
+
// src/core/orchestrator/agent-progress-prompt.ts
|
|
92480
|
+
var AGENT_PROGRESS_PROMPT;
|
|
92481
|
+
var init_agent_progress_prompt = __esm({
|
|
92482
|
+
"src/core/orchestrator/agent-progress-prompt.ts"() {
|
|
92483
|
+
"use strict";
|
|
92484
|
+
AGENT_PROGRESS_PROMPT = `<agent-progress>
|
|
92485
|
+
You MUST use the agent progress checklist for non-trivial work when ANY of these applies:
|
|
92486
|
+
- The work has three or more meaningful steps.
|
|
92487
|
+
- You delegate any part of the work to a subagent.
|
|
92488
|
+
- You will modify multiple files, fragments, services, or other artifacts.
|
|
92489
|
+
- The work spans multiple phases such as research, implementation, and verification.
|
|
92490
|
+
|
|
92491
|
+
Create the checklist early, after you understand the work and before beginning substantive work. Do not create one for a simple answer, a single quick tool call, or a genuinely one-step change.
|
|
92492
|
+
|
|
92493
|
+
The main agent owns this checklist; subagents do not update it.
|
|
92494
|
+
- Read the current checklist before replacing it.
|
|
92495
|
+
- Update it immediately after each completed phase, after every subagent result, and whenever the execution path materially changes.
|
|
92496
|
+
- Preserve stable item IDs and list order; keep at most one item in progress.
|
|
92497
|
+
- Never mark required unfinished work complete.
|
|
92498
|
+
- Completed lists remain visible; clear only when the work is explicitly replaced or no longer relevant.
|
|
92499
|
+
|
|
92500
|
+
This checklist is operational progress, not the plan-mode plan and not a user-managed task list.
|
|
92501
|
+
</agent-progress>`;
|
|
92502
|
+
}
|
|
92503
|
+
});
|
|
92504
|
+
|
|
92479
92505
|
// src/core/orchestrator/artifact-mention-resolver.ts
|
|
92480
92506
|
function escapeXml(value) {
|
|
92481
92507
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
@@ -289435,14 +289461,7 @@ Never treat a markdown file in working memory as a completed deliverable.
|
|
|
289435
289461
|
}
|
|
289436
289462
|
}
|
|
289437
289463
|
if ("update_todo_list" in aiTools) {
|
|
289438
|
-
systemMessageParts.push(
|
|
289439
|
-
Use the agent progress checklist only for genuinely multi-step execution work.
|
|
289440
|
-
- Create it early, after you understand the work; do not create one for trivial questions.
|
|
289441
|
-
- Update it immediately after real progress, preserving stable item IDs and list order.
|
|
289442
|
-
- Keep at most one item in progress and never mark required unfinished work complete.
|
|
289443
|
-
- Completed lists remain visible; clear only when the work is explicitly replaced or no longer relevant.
|
|
289444
|
-
This checklist is operational progress, not the plan-mode plan or a user-managed task list.
|
|
289445
|
-
</agent-progress>`);
|
|
289464
|
+
systemMessageParts.push(AGENT_PROGRESS_PROMPT);
|
|
289446
289465
|
}
|
|
289447
289466
|
if (chatMode === "discussion") {
|
|
289448
289467
|
systemMessageParts.push(`<discussion-mode>
|
|
@@ -291008,6 +291027,7 @@ var init_orchestrator = __esm({
|
|
|
291008
291027
|
init_harness_compaction();
|
|
291009
291028
|
init_compaction_summary();
|
|
291010
291029
|
init_ask_user_question_prompt();
|
|
291030
|
+
init_agent_progress_prompt();
|
|
291011
291031
|
init_artifact_mention_resolver();
|
|
291012
291032
|
init_slack_mention_resolver();
|
|
291013
291033
|
init_integration_service();
|
|
@@ -310034,7 +310054,7 @@ init_tui_select();
|
|
|
310034
310054
|
init_model_registry();
|
|
310035
310055
|
|
|
310036
310056
|
// package.json
|
|
310037
|
-
var version2 = "1.181.
|
|
310057
|
+
var version2 = "1.181.1";
|
|
310038
310058
|
|
|
310039
310059
|
// src/adapters/cli/model-catalog.ts
|
|
310040
310060
|
init_codex_auth();
|