@genesislcap/ai-assistant 15.10.2 → 15.10.3-GENC-1494.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.
@@ -3076,6 +3076,7 @@ function createInteractionContext(interactionId) {
3076
3076
  // src/utils/condense-history.ts
3077
3077
  var CONDENSE_MIN_CHARS = 1e3;
3078
3078
  var CONDENSED_ARGS_KEY = "condensed";
3079
+ var ELIDED_PLACEHOLDER = "[elided]";
3079
3080
  var APPROX_CHARS_PER_TOKEN = 4;
3080
3081
  function triggerReason(trigger) {
3081
3082
  switch (trigger.kind) {
@@ -3166,8 +3167,8 @@ function applyCondensation(history, policies, ctx, onCondensed) {
3166
3167
  if (origLen < CONDENSE_MIN_CHARS) return tc;
3167
3168
  changed = true;
3168
3169
  const result = entry.policy.args;
3169
- const args = result === "drop" ? {} : {
3170
- [CONDENSED_ARGS_KEY]: result === "pointer" ? condenseStub("args", tc.name, fired, origLen) : result.replaceWith
3170
+ const args = {
3171
+ [CONDENSED_ARGS_KEY]: result === "drop" ? ELIDED_PLACEHOLDER : result === "pointer" ? condenseStub("args", tc.name, fired, origLen) : result.replaceWith
3171
3172
  };
3172
3173
  if (!entry.reportedArgs) {
3173
3174
  entry.reportedArgs = true;
@@ -3193,7 +3194,7 @@ function applyCondensation(history, policies, ctx, onCondensed) {
3193
3194
  if (entry && fired && origLen >= CONDENSE_MIN_CHARS) {
3194
3195
  const tool = nameById.get(msg.toolResult.toolCallId) ?? msg.toolResult.toolCallId;
3195
3196
  const result = entry.policy.response;
3196
- const content = result === "drop" ? "[elided]" : result === "pointer" ? condenseStub("response", tool, fired, origLen) : result.replaceWith;
3197
+ const content = result === "drop" ? ELIDED_PLACEHOLDER : result === "pointer" ? condenseStub("response", tool, fired, origLen) : result.replaceWith;
3197
3198
  if (!entry.reportedResponse) {
3198
3199
  entry.reportedResponse = true;
3199
3200
  onCondensed({