@pentoshi/clai 2.0.45 → 2.0.46
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/agent/runner.js
CHANGED
|
@@ -810,7 +810,7 @@ export async function runAgentLoop(prompt, options = {}) {
|
|
|
810
810
|
// what is done, and what remains. The estimate is chars/4; the budget is
|
|
811
811
|
// deliberately conservative so we compact a little early rather than hit a
|
|
812
812
|
// provider context-window error mid-task.
|
|
813
|
-
const AUTO_COMPACT_TOKEN_BUDGET =
|
|
813
|
+
const AUTO_COMPACT_TOKEN_BUDGET = 150_000;
|
|
814
814
|
const AUTO_COMPACT_KEEP_RECENT = 6;
|
|
815
815
|
let lastCompactionMsgCount = 0;
|
|
816
816
|
const summarizeForCompaction = async (summaryPrompt) => {
|
|
@@ -825,7 +825,7 @@ export async function runAgentLoop(prompt, options = {}) {
|
|
|
825
825
|
{ role: "user", content: summaryPrompt },
|
|
826
826
|
],
|
|
827
827
|
temperature: 0.1,
|
|
828
|
-
maxTokens:
|
|
828
|
+
maxTokens: 4_096,
|
|
829
829
|
signal: options.signal,
|
|
830
830
|
});
|
|
831
831
|
return response.text;
|
package/dist/commands/update.js
CHANGED
|
@@ -12,7 +12,7 @@ const REPO = "pentoshi007/clai";
|
|
|
12
12
|
* in the compiled dist layout). Falls back to a baked constant only if the
|
|
13
13
|
* file can't be read.
|
|
14
14
|
*/
|
|
15
|
-
const FALLBACK_VERSION = "2.0.
|
|
15
|
+
const FALLBACK_VERSION = "2.0.46";
|
|
16
16
|
function resolvePackageVersion() {
|
|
17
17
|
try {
|
|
18
18
|
let dir = dirname(fileURLToPath(import.meta.url));
|
package/package.json
CHANGED