@kenkaiiii/gg-agent 5.29.1 → 5.30.0

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/index.js CHANGED
@@ -705,7 +705,15 @@ async function* agentLoop(messages, options) {
705
705
  role: "assistant",
706
706
  content: [{ type: "text", text: attemptText }]
707
707
  });
708
- messages.push({ role: "user", content: PARTIAL_CONTINUATION_PROMPT });
708
+ messages.push({
709
+ role: "user",
710
+ content: PARTIAL_CONTINUATION_PROMPT,
711
+ provenance: {
712
+ source: "runtime",
713
+ kind: "continuation",
714
+ visibility: "hidden"
715
+ }
716
+ });
709
717
  preservedChars = attemptText.length;
710
718
  }
711
719
  diag("retry", {
@@ -875,7 +883,15 @@ async function* agentLoop(messages, options) {
875
883
  model: options.model
876
884
  });
877
885
  yield { type: "truncated", reason: "max_tokens", continued: true };
878
- messages.push({ role: "user", content: MAX_TOKENS_CONTINUATION_PROMPT });
886
+ messages.push({
887
+ role: "user",
888
+ content: MAX_TOKENS_CONTINUATION_PROMPT,
889
+ provenance: {
890
+ source: "runtime",
891
+ kind: "continuation",
892
+ visibility: "hidden"
893
+ }
894
+ });
879
895
  continue;
880
896
  }
881
897
  yield { type: "truncated", reason: "max_tokens", continued: false };
@@ -1016,7 +1032,12 @@ async function* agentLoop(messages, options) {
1016
1032
  };
1017
1033
  messages.push({
1018
1034
  role: "user",
1019
- content: turnBudgetContinuationPrompt()
1035
+ content: turnBudgetContinuationPrompt(),
1036
+ provenance: {
1037
+ source: "runtime",
1038
+ kind: "continuation",
1039
+ visibility: "hidden"
1040
+ }
1020
1041
  });
1021
1042
  }
1022
1043
  }