@theokit/sdk 4.19.0 → 4.19.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/dist/eval.js CHANGED
@@ -5997,7 +5997,7 @@ __export(compact_session_exports, {
5997
5997
  shouldAutoCompact: () => shouldAutoCompact
5998
5998
  });
5999
5999
  function isCompactSummary(content) {
6000
- return content.startsWith(COMPACT_SUMMARY_MARKER);
6000
+ return content.startsWith(COMPACT_SUMMARY_MARKER) || content.startsWith("[[theokit:goal-continuation]]");
6001
6001
  }
6002
6002
  function plainText(content) {
6003
6003
  if (typeof content === "string") return content;
@@ -6246,6 +6246,7 @@ var init_context = __esm({
6246
6246
  // src/internal/runtime/lifecycle/run-until.ts
6247
6247
  var run_until_exports = {};
6248
6248
  __export(run_until_exports, {
6249
+ GOAL_CONTINUATION_MARKER: () => GOAL_CONTINUATION_MARKER,
6249
6250
  composeContinuation: () => composeContinuation,
6250
6251
  runUntilImpl: () => runUntilImpl
6251
6252
  });
@@ -6386,6 +6387,7 @@ async function* runUntilImpl(agent, goal, options, deps) {
6386
6387
  }
6387
6388
  function composeContinuation(goal, lastResponse) {
6388
6389
  return [
6390
+ GOAL_CONTINUATION_MARKER,
6389
6391
  "Continue working toward the active goal.",
6390
6392
  "",
6391
6393
  `<objective>
@@ -6406,11 +6408,13 @@ ${goal}
6406
6408
  " current state, requirement by requirement. Treat uncertain or indirect evidence as not achieved.",
6407
6409
  "",
6408
6410
  `Your last response was:
6409
- ${lastResponse.slice(0, 1e3)}`
6411
+ ${lastResponse.slice(-1e3)}`
6410
6412
  ].join("\n");
6411
6413
  }
6414
+ var GOAL_CONTINUATION_MARKER;
6412
6415
  var init_run_until = __esm({
6413
6416
  "src/internal/runtime/lifecycle/run-until.ts"() {
6417
+ GOAL_CONTINUATION_MARKER = "[[theokit:goal-continuation]]";
6414
6418
  }
6415
6419
  });
6416
6420