@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.cjs CHANGED
@@ -733,7 +733,15 @@ async function* agentLoop(messages, options) {
733
733
  role: "assistant",
734
734
  content: [{ type: "text", text: attemptText }]
735
735
  });
736
- messages.push({ role: "user", content: PARTIAL_CONTINUATION_PROMPT });
736
+ messages.push({
737
+ role: "user",
738
+ content: PARTIAL_CONTINUATION_PROMPT,
739
+ provenance: {
740
+ source: "runtime",
741
+ kind: "continuation",
742
+ visibility: "hidden"
743
+ }
744
+ });
737
745
  preservedChars = attemptText.length;
738
746
  }
739
747
  diag("retry", {
@@ -903,7 +911,15 @@ async function* agentLoop(messages, options) {
903
911
  model: options.model
904
912
  });
905
913
  yield { type: "truncated", reason: "max_tokens", continued: true };
906
- messages.push({ role: "user", content: MAX_TOKENS_CONTINUATION_PROMPT });
914
+ messages.push({
915
+ role: "user",
916
+ content: MAX_TOKENS_CONTINUATION_PROMPT,
917
+ provenance: {
918
+ source: "runtime",
919
+ kind: "continuation",
920
+ visibility: "hidden"
921
+ }
922
+ });
907
923
  continue;
908
924
  }
909
925
  yield { type: "truncated", reason: "max_tokens", continued: false };
@@ -1044,7 +1060,12 @@ async function* agentLoop(messages, options) {
1044
1060
  };
1045
1061
  messages.push({
1046
1062
  role: "user",
1047
- content: turnBudgetContinuationPrompt()
1063
+ content: turnBudgetContinuationPrompt(),
1064
+ provenance: {
1065
+ source: "runtime",
1066
+ kind: "continuation",
1067
+ visibility: "hidden"
1068
+ }
1048
1069
  });
1049
1070
  }
1050
1071
  }