lonny-agent 0.1.0 → 0.1.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/README.md +2 -2
- package/dist/agent/compaction.js +1 -1
- package/package.json +3 -2
- package/src/agent/compaction.ts +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# lonny —
|
|
1
|
+
# lonny — 用更少的调用做更多的事
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> 一个专为 Coding Plan(5 小时 1200 次调用套餐)场景优化的 AI 编码代理,目标是用更少的 API 调用次数完成更多的工作。支持三模式操作(code/plan/ask)、多模型供应商、批量编辑和美观的终端界面。
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
package/dist/agent/compaction.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Context compaction — reduces long message histories while preserving
|
|
3
3
|
* key context, inspired by pi's compaction system.
|
|
4
4
|
*/
|
|
5
|
-
const DEFAULT_MAX_TOKENS =
|
|
5
|
+
const DEFAULT_MAX_TOKENS = 256_000;
|
|
6
6
|
const COMPACTION_THRESHOLD = 0.75; // compact when usage exceeds 75% of budget
|
|
7
7
|
/** Rough token estimation (4 chars ~= 1 token).
|
|
8
8
|
* NOTE: This is a very rough approximation. CJK characters (Chinese, Japanese,
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lonny-agent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"
|
|
5
|
+
"repository": "github:as3long/lonny-agent",
|
|
6
|
+
"description": "AI coding agent that does more with fewer API calls, optimized for Coding Plan (5h 1200-call bundle)",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"bin": {
|
|
8
9
|
"lonny": "./dist/index.js"
|
package/src/agent/compaction.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { LLMMessage } from './llm.js'
|
|
|
5
5
|
* key context, inspired by pi's compaction system.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
const DEFAULT_MAX_TOKENS =
|
|
8
|
+
const DEFAULT_MAX_TOKENS = 256_000
|
|
9
9
|
const COMPACTION_THRESHOLD = 0.75 // compact when usage exceeds 75% of budget
|
|
10
10
|
|
|
11
11
|
/** Rough token estimation (4 chars ~= 1 token).
|