@martian-engineering/lossless-claw 0.7.0 → 0.8.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 +11 -3
- package/docs/agent-tools.md +9 -4
- package/docs/configuration.md +9 -0
- package/package.json +1 -1
- package/skills/lossless-claw/SKILL.md +3 -2
- package/skills/lossless-claw/references/architecture.md +12 -0
- package/skills/lossless-claw/references/diagnostics.md +13 -0
- package/src/assembler.ts +12 -4
- package/src/compaction.ts +12 -15
- package/src/db/connection.ts +15 -5
- package/src/db/features.ts +24 -5
- package/src/db/migration.ts +201 -79
- package/src/engine.ts +199 -19
- package/src/estimate-tokens.ts +80 -0
- package/src/plugin/index.ts +95 -18
- package/src/plugin/lcm-command.ts +278 -3
- package/src/plugin/lcm-doctor-apply.ts +1 -3
- package/src/plugin/lcm-doctor-cleaners.ts +655 -0
- package/src/retrieval.ts +1 -4
- package/src/summarize.ts +1 -4
- package/src/tools/lcm-expand-query-tool.ts +598 -194
- package/src/tools/lcm-grep-tool.ts +2 -2
|
@@ -25,7 +25,7 @@ function formatDisplayTime(
|
|
|
25
25
|
const LcmGrepSchema = Type.Object({
|
|
26
26
|
pattern: Type.String({
|
|
27
27
|
description:
|
|
28
|
-
'Search pattern. Interpreted as regex when mode is "regex", or as
|
|
28
|
+
'Search pattern. Interpreted as regex when mode is "regex", or as an FTS5 text query when mode is "full_text". In full_text mode, FTS5 defaults to AND matching, so prefer 1-3 distinctive terms or one quoted multi-word phrase instead of padding with synonyms or extra keywords.',
|
|
29
29
|
}),
|
|
30
30
|
mode: Type.Optional(
|
|
31
31
|
Type.String({
|
|
@@ -101,7 +101,7 @@ export function createLcmGrepTool(input: {
|
|
|
101
101
|
"Search compacted conversation history using regex or full-text search. " +
|
|
102
102
|
"Searches across messages and/or summaries stored by LCM. " +
|
|
103
103
|
"Use this to find specific content that may have been compacted away from " +
|
|
104
|
-
"active context. In full_text mode, quoted phrases stay intact and optional sort modes can prioritize relevance for older topics. Returns matching snippets with their summary/message IDs " +
|
|
104
|
+
"active context. In full_text mode, queries use FTS5 AND semantics by default, so keep them short and focused; quoted phrases stay intact and optional sort modes can prioritize relevance for older topics. Returns matching snippets with their summary/message IDs " +
|
|
105
105
|
"for follow-up with lcm_expand or lcm_describe.",
|
|
106
106
|
parameters: LcmGrepSchema,
|
|
107
107
|
async execute(_toolCallId, params) {
|