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