@gmickel/gno 1.40.0 → 1.41.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 +1 -0
- package/assets/skill/SKILL.md +17 -0
- package/assets/skill/cli-reference.md +48 -0
- package/assets/skill/mcp-reference.md +24 -0
- package/browser-extension/artifacts/{gno-browser-clipper-v1.40.0.zip → gno-browser-clipper-v1.41.0.zip} +0 -0
- package/browser-extension/artifacts/gno-browser-clipper-v1.41.0.zip.sha256 +1 -0
- package/browser-extension/dist/manifest.json +1 -1
- package/package.json +1 -1
- package/spec/cli.md +146 -7
- package/spec/db/schema.sql +17 -0
- package/spec/mcp.md +194 -0
- package/spec/output-schemas/memory-recall.schema.json +159 -0
- package/spec/output-schemas/memory-remember.schema.json +164 -0
- package/spec/output-schemas/status.schema.json +269 -54
- package/src/cli/commands/memory.ts +491 -0
- package/src/cli/commands/status.ts +23 -4
- package/src/cli/options.ts +4 -0
- package/src/cli/program.ts +127 -0
- package/src/config/types.ts +7 -0
- package/src/core/audit-provenance.ts +91 -0
- package/src/core/audit-workspace.ts +17 -0
- package/src/core/memory-diagnostics.ts +144 -0
- package/src/core/memory-fence.ts +239 -0
- package/src/core/memory-recall.ts +269 -0
- package/src/core/memory-record.ts +435 -0
- package/src/core/memory-remember.ts +425 -0
- package/src/core/memory-types.ts +211 -0
- package/src/core/memory.ts +87 -0
- package/src/ingestion/sync.ts +17 -0
- package/src/mcp/http-egress.ts +2 -0
- package/src/mcp/tools/index.ts +43 -0
- package/src/mcp/tools/memory-recall.ts +122 -0
- package/src/mcp/tools/memory-remember.ts +177 -0
- package/src/mcp/tools/memory-shared.ts +80 -0
- package/src/pipeline/search.ts +2 -0
- package/src/pipeline/types.ts +8 -0
- package/src/sdk/client.ts +94 -1
- package/src/sdk/index.ts +13 -0
- package/src/sdk/types.ts +28 -0
- package/src/serve/routes/api.ts +167 -0
- package/src/serve/server.ts +26 -0
- package/src/store/migrations/027-memory-scopes.ts +37 -0
- package/src/store/migrations/index.ts +2 -0
- package/src/store/sqlite/adapter.ts +127 -3
- package/src/store/types.ts +54 -0
- package/browser-extension/artifacts/gno-browser-clipper-v1.40.0.zip.sha256 +0 -1
package/src/store/types.ts
CHANGED
|
@@ -643,6 +643,35 @@ export interface FtsSearchOptions {
|
|
|
643
643
|
categories?: string[];
|
|
644
644
|
/** Filter by author field (case-insensitive contains) */
|
|
645
645
|
author?: string;
|
|
646
|
+
/**
|
|
647
|
+
* Managed-memory scope filter: keep only documents carrying at least one of
|
|
648
|
+
* these normalized scopes. Applied inside the FTS candidate subquery, before
|
|
649
|
+
* any LIMIT, so an out-of-scope document never occupies the window.
|
|
650
|
+
*/
|
|
651
|
+
memoryScopesAny?: string[];
|
|
652
|
+
/**
|
|
653
|
+
* Exclude documents that an active document supersedes (typed edge
|
|
654
|
+
* `supersedes` pointing at them). Applied inside the candidate subquery.
|
|
655
|
+
*/
|
|
656
|
+
excludeSuperseded?: boolean;
|
|
657
|
+
/** Match documents containing ANY positive term instead of ALL of them. */
|
|
658
|
+
anyTerm?: boolean;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/** Managed-memory eligibility query (unbounded, executed in one SQL query). */
|
|
662
|
+
export interface MemoryEligibleDocumentsOptions {
|
|
663
|
+
collection: string;
|
|
664
|
+
/** Normalized scopes; any-intersection semantics. */
|
|
665
|
+
scopes: string[];
|
|
666
|
+
excludeSuperseded?: boolean;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/** Minimal identity of a memory record eligible for managed recall. */
|
|
670
|
+
export interface MemoryEligibleDocument {
|
|
671
|
+
id: number;
|
|
672
|
+
docid: string;
|
|
673
|
+
uri: string;
|
|
674
|
+
mirrorHash: string;
|
|
646
675
|
}
|
|
647
676
|
|
|
648
677
|
/** Single FTS search result */
|
|
@@ -2022,6 +2051,31 @@ export interface StorePort {
|
|
|
2022
2051
|
*/
|
|
2023
2052
|
getTagsForDoc(documentId: number): Promise<StoreResult<TagRow[]>>;
|
|
2024
2053
|
|
|
2054
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
2055
|
+
// Memory scopes (managed memory records)
|
|
2056
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* Replace the indexed scope set of one document. An empty list clears it,
|
|
2060
|
+
* which removes the document from managed recall.
|
|
2061
|
+
*/
|
|
2062
|
+
setDocMemoryScopes(
|
|
2063
|
+
documentId: number,
|
|
2064
|
+
scopes: string[]
|
|
2065
|
+
): Promise<StoreResult<void>>;
|
|
2066
|
+
|
|
2067
|
+
/** Indexed scopes for one document (sorted). */
|
|
2068
|
+
getDocMemoryScopes(documentId: number): Promise<StoreResult<string[]>>;
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* Every active document in the collection carrying at least one requested
|
|
2072
|
+
* scope, optionally excluding superseded records. One unbounded query, so
|
|
2073
|
+
* the result is the exact eligible set rather than a candidate window.
|
|
2074
|
+
*/
|
|
2075
|
+
listMemoryEligibleDocuments(
|
|
2076
|
+
options: MemoryEligibleDocumentsOptions
|
|
2077
|
+
): Promise<StoreResult<MemoryEligibleDocument[]>>;
|
|
2078
|
+
|
|
2025
2079
|
/**
|
|
2026
2080
|
* Get tags for multiple documents in a single query.
|
|
2027
2081
|
* Returns a map of documentId -> TagRow[].
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1d6a17618bddf4425527e94961459fa2a414d06f5123d43ffebadfeca8a3a89b gno-browser-clipper-v1.40.0.zip
|