@theokit/sdk 4.18.1 → 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.cjs +6 -2
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +6 -2
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +6 -2
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +6 -2
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +25 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +25 -3
- package/dist/index.js.map +1 -1
- package/dist/internal/runtime/lifecycle/run-until.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cron-DOW3f-Xu.d.ts +0 -2582
- package/dist/cron-DvP-E6Xx.d.cts +0 -2582
- package/dist/cron.d.cts +0 -3
- package/dist/cron.d.ts +0 -3
- package/dist/errors-CG2RpeW-.d.ts +0 -516
- package/dist/errors-gE8612p9.d.cts +0 -516
- package/dist/errors.d.cts +0 -3
- package/dist/index.d.cts +0 -2203
- package/dist/index.d.ts +0 -2203
- package/dist/provider-catalog.json +0 -1620
- package/dist/run-DFM1H2jW.d.cts +0 -1589
- package/dist/run-DFM1H2jW.d.ts +0 -1589
package/dist/cron.cjs
CHANGED
|
@@ -6001,7 +6001,7 @@ __export(compact_session_exports, {
|
|
|
6001
6001
|
shouldAutoCompact: () => shouldAutoCompact
|
|
6002
6002
|
});
|
|
6003
6003
|
function isCompactSummary(content) {
|
|
6004
|
-
return content.startsWith(COMPACT_SUMMARY_MARKER);
|
|
6004
|
+
return content.startsWith(COMPACT_SUMMARY_MARKER) || content.startsWith("[[theokit:goal-continuation]]");
|
|
6005
6005
|
}
|
|
6006
6006
|
function plainText(content) {
|
|
6007
6007
|
if (typeof content === "string") return content;
|
|
@@ -6250,6 +6250,7 @@ var init_context = __esm({
|
|
|
6250
6250
|
// src/internal/runtime/lifecycle/run-until.ts
|
|
6251
6251
|
var run_until_exports = {};
|
|
6252
6252
|
__export(run_until_exports, {
|
|
6253
|
+
GOAL_CONTINUATION_MARKER: () => GOAL_CONTINUATION_MARKER,
|
|
6253
6254
|
composeContinuation: () => composeContinuation,
|
|
6254
6255
|
runUntilImpl: () => runUntilImpl
|
|
6255
6256
|
});
|
|
@@ -6390,6 +6391,7 @@ async function* runUntilImpl(agent, goal, options, deps) {
|
|
|
6390
6391
|
}
|
|
6391
6392
|
function composeContinuation(goal, lastResponse) {
|
|
6392
6393
|
return [
|
|
6394
|
+
GOAL_CONTINUATION_MARKER,
|
|
6393
6395
|
"Continue working toward the active goal.",
|
|
6394
6396
|
"",
|
|
6395
6397
|
`<objective>
|
|
@@ -6410,11 +6412,13 @@ ${goal}
|
|
|
6410
6412
|
" current state, requirement by requirement. Treat uncertain or indirect evidence as not achieved.",
|
|
6411
6413
|
"",
|
|
6412
6414
|
`Your last response was:
|
|
6413
|
-
${lastResponse.slice(
|
|
6415
|
+
${lastResponse.slice(-1e3)}`
|
|
6414
6416
|
].join("\n");
|
|
6415
6417
|
}
|
|
6418
|
+
var GOAL_CONTINUATION_MARKER;
|
|
6416
6419
|
var init_run_until = __esm({
|
|
6417
6420
|
"src/internal/runtime/lifecycle/run-until.ts"() {
|
|
6421
|
+
GOAL_CONTINUATION_MARKER = "[[theokit:goal-continuation]]";
|
|
6418
6422
|
}
|
|
6419
6423
|
});
|
|
6420
6424
|
|