@martian-engineering/lossless-claw 0.9.4 → 0.10.0

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 CHANGED
@@ -128,6 +128,10 @@ Add a `lossless-claw` entry under `plugins.entries` in your OpenClaw config:
128
128
  "entries": {
129
129
  "lossless-claw": {
130
130
  "enabled": true,
131
+ "llm": {
132
+ "allowModelOverride": true,
133
+ "allowedModels": ["openai/gpt-5.4-mini"]
134
+ },
131
135
  "config": {
132
136
  "freshTailCount": 64,
133
137
  "leafChunkTokens": 80000,
@@ -154,7 +158,7 @@ Add a `lossless-claw` entry under `plugins.entries` in your OpenClaw config:
154
158
  }
155
159
  ```
156
160
 
157
- `leafChunkTokens` controls how many source tokens can accumulate in a leaf compaction chunk before summarization is triggered. The default is `20000`, but quota-limited summary providers may benefit from a larger value to reduce compaction frequency. `summaryModel` and `summaryProvider` let you pin compaction summarization to a cheaper or faster model than your main OpenClaw session model. `expansionModel` does the same for `lcm_expand_query` sub-agent calls (drilling into summaries to recover detail). `delegationTimeoutMs` controls how long `lcm_expand_query` waits for that delegated sub-agent to finish before returning a timeout error; it defaults to `120000` (120s). `summaryTimeoutMs` controls the per-call timeout for model-backed LCM summarization; it defaults to `60000` (60s). When unset, the model settings still fall back to OpenClaw's configured default model/provider. See [Expansion model override requirements](#expansion-model-override-requirements) for the required `subagent` trust policy when using `expansionModel`.
161
+ `leafChunkTokens` controls how many source tokens can accumulate in a leaf compaction chunk before summarization is triggered. The default is `20000`, but quota-limited summary providers may benefit from a larger value to reduce compaction frequency. `summaryModel` and `summaryProvider` let you request a cheaper or faster compaction model through OpenClaw's `api.runtime.llm.complete` capability; OpenClaw still owns provider dispatch and auth. Explicit summary model requests require `llm.allowModelOverride` and matching `llm.allowedModels` policy entries for `lossless-claw`. `expansionModel` does the same for `lcm_expand_query` sub-agent calls (drilling into summaries to recover detail). `delegationTimeoutMs` controls how long `lcm_expand_query` waits for that delegated sub-agent to finish before returning a timeout error; it defaults to `120000` (120s). `summaryTimeoutMs` controls the per-call timeout for model-backed LCM summarization; it defaults to `60000` (60s). When unset, the model settings still fall back to OpenClaw's configured default model/provider. See [Expansion model override requirements](#expansion-model-override-requirements) for the required `subagent` trust policy when using `expansionModel`.
158
162
 
159
163
  ### Environment variables
160
164
 
@@ -250,11 +254,11 @@ For compaction summarization, lossless-claw resolves the model in this order:
250
254
  1. `LCM_SUMMARY_MODEL` / `LCM_SUMMARY_PROVIDER`
251
255
  2. Plugin config `summaryModel` / `summaryProvider`
252
256
  3. OpenClaw's default compaction model/provider
253
- 4. Legacy per-call model/provider hints
257
+ 4. Runtime/session model/provider hints from OpenClaw
254
258
 
255
259
  If `summaryModel` already includes a provider prefix such as `anthropic/claude-sonnet-4-20250514`, `summaryProvider` is ignored for that choice. Otherwise, the provider falls back to the matching override, then `OPENCLAW_PROVIDER`, then the provider inferred by the caller.
256
260
 
257
- Runtime-managed OAuth providers are supported here too. In particular, `openai-codex` and `github-copilot` auth profiles can be used for summary and expansion calls without a separate API key.
261
+ Summary calls are dispatched through OpenClaw's runtime LLM layer, so auth profiles, OAuth refresh, API keys, base URLs, and provider-specific request preparation remain host-owned. Run `openclaw doctor --fix` after adding explicit summary model overrides if you want OpenClaw to add the matching `plugins.entries.lossless-claw.llm` policy.
258
262
 
259
263
  ### Recommended starting configuration
260
264