@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.
@@ -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 = 200_000;
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: 2_048,
828
+ maxTokens: 4_096,
829
829
  signal: options.signal,
830
830
  });
831
831
  return response.text;
@@ -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.45";
15
+ const FALLBACK_VERSION = "2.0.46";
16
16
  function resolvePackageVersion() {
17
17
  try {
18
18
  let dir = dirname(fileURLToPath(import.meta.url));
@@ -90,7 +90,7 @@ export function useAgentRunner({ dispatchEvent, confirm, getContext, requestSecr
90
90
  { role: "user", content: prompt },
91
91
  ],
92
92
  temperature: 0.1,
93
- maxTokens: 2_048,
93
+ maxTokens: 4_096,
94
94
  signal,
95
95
  });
96
96
  return response.text;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pentoshi/clai",
3
- "version": "2.0.45",
3
+ "version": "2.0.46",
4
4
  "description": "A fast, cross-platform AI CLI assistant with ask and agent modes for shell tasks, file operations, and cybersecurity workflows.",
5
5
  "type": "module",
6
6
  "license": "MIT",