@openhoo/hoopilot 2.1.10 → 2.1.11

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/cli.js CHANGED
@@ -958,15 +958,10 @@ function responsesCompactionRequestBody(request) {
958
958
  return JSON.stringify(
959
959
  removeUndefined({
960
960
  ...request,
961
- input: [
962
- ...compactionInputItemsForCopilot(request.input),
963
- {
964
- content: [{ text: COMPACTION_SUMMARIZATION_PROMPT, type: "input_text" }],
965
- role: "user",
966
- type: "message"
967
- }
968
- ],
961
+ input: compactionInputItemsForCopilot(request.input),
962
+ instructions: compactionInstructionsForCopilot(request.instructions),
969
963
  parallel_tool_calls: false,
964
+ reasoning: void 0,
970
965
  stream: false,
971
966
  tool_choice: "none",
972
967
  tools: []
@@ -1297,6 +1292,9 @@ function compactionInputItemsForCopilot(input) {
1297
1292
  }
1298
1293
  ] : [];
1299
1294
  }
1295
+ function compactionInstructionsForCopilot(instructions) {
1296
+ return contentToText(instructions).trim() ? instructions : COMPACTION_SUMMARIZATION_PROMPT;
1297
+ }
1300
1298
  function responseInputItems(input) {
1301
1299
  return Array.isArray(input) ? input : [];
1302
1300
  }