@hasna/mementos 0.15.2 → 0.17.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 +83 -22
- package/dist/audit-contract.d.ts +87 -0
- package/dist/audit-contract.d.ts.map +1 -0
- package/dist/cli/commands/agent.d.ts.map +1 -1
- package/dist/cli/commands/consolidation.d.ts.map +1 -1
- package/dist/cli/commands/info-context.d.ts.map +1 -1
- package/dist/cli/commands/info-history.d.ts.map +1 -1
- package/dist/cli/commands/io-backup.d.ts.map +1 -1
- package/dist/cli/commands/io-export.d.ts.map +1 -1
- package/dist/cli/commands/io-restore.d.ts.map +1 -1
- package/dist/cli/commands/memory-cmd-crud.d.ts.map +1 -1
- package/dist/cli/commands/memory-cmd-list.d.ts +25 -0
- package/dist/cli/commands/memory-cmd-list.d.ts.map +1 -1
- package/dist/cli/commands/memory-cmd-recall.d.ts.map +1 -1
- package/dist/cli/commands/memory-cmd-remove.d.ts.map +1 -1
- package/dist/cli/commands/memory-cmd-search.d.ts.map +1 -1
- package/dist/cli/commands/memory-cmd-view.d.ts.map +1 -1
- package/dist/cli/commands/memory-cmd-when-to-use.d.ts.map +1 -1
- package/dist/cli/commands/project.d.ts.map +1 -1
- package/dist/cli/commands/system-session.d.ts.map +1 -1
- package/dist/cli/commands/system-status.d.ts.map +1 -1
- package/dist/cli/commands/system-synthesized-profile.d.ts.map +1 -1
- package/dist/cli/helpers.d.ts +3 -1
- package/dist/cli/helpers.d.ts.map +1 -1
- package/dist/cli/index.js +2482 -823
- package/dist/cli/structured-json.d.ts +54 -0
- package/dist/cli/structured-json.d.ts.map +1 -0
- package/dist/db/api-mode.d.ts +10 -0
- package/dist/db/api-mode.d.ts.map +1 -1
- package/dist/db/api-response-contract.d.ts +23 -0
- package/dist/db/api-response-contract.d.ts.map +1 -0
- package/dist/db/audit.d.ts +34 -45
- package/dist/db/audit.d.ts.map +1 -1
- package/dist/db/database.d.ts +1 -0
- package/dist/db/database.d.ts.map +1 -1
- package/dist/db/locks.d.ts.map +1 -1
- package/dist/db/machines.d.ts +50 -13
- package/dist/db/machines.d.ts.map +1 -1
- package/dist/db/memories.d.ts.map +1 -1
- package/dist/db/migrations.d.ts.map +1 -1
- package/dist/db/pg-migrate.d.ts.map +1 -1
- package/dist/db/pg-migrations.d.ts.map +1 -1
- package/dist/db/session-jobs.d.ts +2 -0
- package/dist/db/session-jobs.d.ts.map +1 -1
- package/dist/diagnostics/historical-project-registration-receipt.js +215 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1523 -206
- package/dist/lib/built-in-hooks.d.ts.map +1 -1
- package/dist/lib/conversations-transport.d.ts +21 -0
- package/dist/lib/conversations-transport.d.ts.map +1 -0
- package/dist/lib/export-v1.d.ts +2 -0
- package/dist/lib/export-v1.d.ts.map +1 -1
- package/dist/lib/injection-project.d.ts +10 -0
- package/dist/lib/injection-project.d.ts.map +1 -0
- package/dist/lib/injector.d.ts +1 -0
- package/dist/lib/injector.d.ts.map +1 -1
- package/dist/lib/machine-visibility.d.ts.map +1 -1
- package/dist/lib/memory-lock.d.ts.map +1 -1
- package/dist/lib/profile-synthesizer.d.ts +13 -2
- package/dist/lib/profile-synthesizer.d.ts.map +1 -1
- package/dist/lib/session-queue.d.ts.map +1 -1
- package/dist/lib/session-registry.d.ts +38 -1
- package/dist/lib/session-registry.d.ts.map +1 -1
- package/dist/lib/storage-sync.d.ts +5 -0
- package/dist/lib/storage-sync.d.ts.map +1 -1
- package/dist/lib/synthesis/index.d.ts.map +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +3857 -1600
- package/dist/mcp/memory-broadcast.d.ts +6 -8
- package/dist/mcp/memory-broadcast.d.ts.map +1 -1
- package/dist/mcp/profile.d.ts +23 -0
- package/dist/mcp/profile.d.ts.map +1 -0
- package/dist/mcp/tools/bounded-output.d.ts +27 -0
- package/dist/mcp/tools/bounded-output.d.ts.map +1 -0
- package/dist/mcp/tools/lock-tools.d.ts.map +1 -1
- package/dist/mcp/tools/memory-audit.d.ts +1 -1
- package/dist/mcp/tools/memory-audit.d.ts.map +1 -1
- package/dist/mcp/tools/memory-crud.d.ts.map +1 -1
- package/dist/mcp/tools/memory-inject.d.ts.map +1 -1
- package/dist/mcp/tools/memory-io.d.ts.map +1 -1
- package/dist/mcp/tools/project-tools.d.ts.map +1 -1
- package/dist/mcp/tools/session-tools.d.ts.map +1 -1
- package/dist/mcp/tools/tool-registry.d.ts +22 -19
- package/dist/mcp/tools/tool-registry.d.ts.map +1 -1
- package/dist/mcp/tools/utility-tools.d.ts +2 -1
- package/dist/mcp/tools/utility-tools.d.ts.map +1 -1
- package/dist/project-registration.js +276 -20
- package/dist/sdk/index.d.ts +110 -7
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +746 -28
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +3195 -1134
- package/dist/server/openapi.d.ts.map +1 -1
- package/dist/server/routes/audit.d.ts +2 -0
- package/dist/server/routes/audit.d.ts.map +1 -0
- package/dist/server/routes/machines.d.ts +2 -0
- package/dist/server/routes/machines.d.ts.map +1 -0
- package/dist/server/routes/system-sessions.d.ts.map +1 -1
- package/dist/server/routes/system-synthesis.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/hasna.contract.json +2 -2
- package/package.json +8 -5
- package/dist/cli/__fixtures__/clean-fallback-stub-server.d.ts +0 -2
- package/dist/cli/__fixtures__/clean-fallback-stub-server.d.ts.map +0 -1
- package/dist/cli/__fixtures__/io-restore-stub-server.d.ts +0 -2
- package/dist/cli/__fixtures__/io-restore-stub-server.d.ts.map +0 -1
- package/dist/db/__fixtures__/fail-closed-stub-server.d.ts +0 -2
- package/dist/db/__fixtures__/fail-closed-stub-server.d.ts.map +0 -1
- package/dist/db/__fixtures__/list-filter-capture-server.d.ts +0 -2
- package/dist/db/__fixtures__/list-filter-capture-server.d.ts.map +0 -1
- package/dist/db/__fixtures__/list-filter-client-runner.d.ts +0 -2
- package/dist/db/__fixtures__/list-filter-client-runner.d.ts.map +0 -1
- package/dist/test-support/memories-page-stub-server.d.ts +0 -2
- package/dist/test-support/memories-page-stub-server.d.ts.map +0 -1
- package/dist/test-support/memories-page-stub.d.ts +0 -28
- package/dist/test-support/memories-page-stub.d.ts.map +0 -1
- package/dist/test-support/pg-sync-stub-worker.d.ts +0 -2
- package/dist/test-support/pg-sync-stub-worker.d.ts.map +0 -1
- package/dist/test-support/preload-local-store.d.ts +0 -2
- package/dist/test-support/preload-local-store.d.ts.map +0 -1
- package/dist/test-support/project-authority-identity.d.ts +0 -8
- package/dist/test-support/project-authority-identity.d.ts.map +0 -1
- package/dist/test-support/store-isolation.d.ts +0 -147
- package/dist/test-support/store-isolation.d.ts.map +0 -1
- package/dist/test-support/strip-ansi.d.ts +0 -3
- package/dist/test-support/strip-ansi.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"built-in-hooks.d.ts","sourceRoot":"","sources":["../../src/lib/built-in-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"built-in-hooks.d.ts","sourceRoot":"","sources":["../../src/lib/built-in-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AA2PlD,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CAqCxD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,2BAA2B,IAEpB,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,OAAO,CAAC,IAAI,CAAC,CAc/D;AAGD,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAGpD;AAGD,YAAY,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type CredentialChainOptions } from "@hasna/contracts/client";
|
|
2
|
+
export interface ConversationsTransportOptions {
|
|
3
|
+
env?: Record<string, string | undefined>;
|
|
4
|
+
credentials?: CredentialChainOptions;
|
|
5
|
+
fetch?: typeof fetch;
|
|
6
|
+
}
|
|
7
|
+
export interface ConversationsTransport {
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
apiKey: string | null;
|
|
10
|
+
localExplicit: boolean;
|
|
11
|
+
fetch: typeof fetch;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Resolve Conversations through the shared hosted credential chain. There is
|
|
15
|
+
* no implicit localhost default. A caller may retain an explicitly configured
|
|
16
|
+
* loopback URL for a deliberate local/test setup; ambient hosted credentials
|
|
17
|
+
* are never attached to that caller-chosen authority.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveConversationsTransport(options?: ConversationsTransportOptions): ConversationsTransport;
|
|
20
|
+
export declare function conversationsRequest(path: string, init?: RequestInit, options?: ConversationsTransportOptions): Promise<Response>;
|
|
21
|
+
//# sourceMappingURL=conversations-transport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations-transport.d.ts","sourceRoot":"","sources":["../../src/lib/conversations-transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,sBAAsB,EAC5B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,6BAA6B;IAC5C,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB;AAoBD;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,GAAE,6BAAkC,GAC1C,sBAAsB,CA2BxB;AAED,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,WAAgB,EACtB,OAAO,GAAE,6BAAkC,GAC1C,OAAO,CAAC,QAAQ,CAAC,CASnB"}
|
package/dist/lib/export-v1.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export interface ExportV1Entry {
|
|
|
19
19
|
* Returns an array of export entries (caller serializes to JSONL).
|
|
20
20
|
*/
|
|
21
21
|
export declare function exportV1(filter?: MemoryFilter, db?: Database): ExportV1Entry[];
|
|
22
|
+
/** Build portable v1 entries for an already bounded memory page. */
|
|
23
|
+
export declare function exportV1Entries(memories: Memory[], db?: Database): ExportV1Entry[];
|
|
22
24
|
/**
|
|
23
25
|
* Serialize export entries to JSONL string (one JSON object per line).
|
|
24
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-v1.d.ts","sourceRoot":"","sources":["../../src/lib/export-v1.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAI9D,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"export-v1.d.ts","sourceRoot":"","sources":["../../src/lib/export-v1.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAI9D,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,oBAAoB,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,KAAK,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;CACJ;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CACtB,MAAM,CAAC,EAAE,YAAY,EACrB,EAAE,CAAC,EAAE,QAAQ,GACZ,aAAa,EAAE,CAGjB;AAED,oEAAoE;AACpE,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAAE,EAClB,EAAE,CAAC,EAAE,QAAQ,GACZ,aAAa,EAAE,CA0BjB;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,MAAM,CAExD;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,EAAE,CAKxD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SqliteAdapter as Database } from "../storage.js";
|
|
2
|
+
/**
|
|
3
|
+
* Resolve one optional injection project reference to its stable project id.
|
|
4
|
+
*
|
|
5
|
+
* Project names and registered paths remain accepted for compatibility, but no
|
|
6
|
+
* downstream selector should receive the alias: memory, profile, search and
|
|
7
|
+
* hook paths all operate on the stable id returned here.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveInjectionProjectId(projectRef: string | undefined, db?: Database): string | undefined;
|
|
10
|
+
//# sourceMappingURL=injection-project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injection-project.d.ts","sourceRoot":"","sources":["../../src/lib/injection-project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG/D;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,EAAE,CAAC,EAAE,QAAQ,GACZ,MAAM,GAAG,SAAS,CAKpB"}
|
package/dist/lib/injector.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare class MemoryInjector {
|
|
|
56
56
|
* Token-budget aware.
|
|
57
57
|
*/
|
|
58
58
|
getInjectionContext(options?: InjectionOptions): string;
|
|
59
|
+
private getInjectionContextForProject;
|
|
59
60
|
/**
|
|
60
61
|
* Async smart injection: scores memories by embedding similarity + importance + recency.
|
|
61
62
|
* Falls back to default strategy if no embeddings exist or no query is provided.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"injector.d.ts","sourceRoot":"","sources":["../../src/lib/injector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAU,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"injector.d.ts","sourceRoot":"","sources":["../../src/lib/injector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAU,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAkBhF,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,gBAAgB,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE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;IACG,wBAAwB,CAAC,OAAO,GAAE,gBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC;IAgM/E;;OAEG;IACH,UAAU,IAAI,IAAI;IAIlB;;OAEG;IACH,gBAAgB,IAAI,MAAM;CAG3B;AAqKD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA8Q/F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine-visibility.d.ts","sourceRoot":"","sources":["../../src/lib/machine-visibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"machine-visibility.d.ts","sourceRoot":"","sources":["../../src/lib/machine-visibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE9D,wBAAgB,uBAAuB,CACrC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,EACzB,EAAE,CAAC,EAAE,QAAQ,GACZ,MAAM,GAAG,IAAI,CAaf;AAED,wBAAgB,sBAAsB,CACpC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,EACzB,EAAE,CAAC,EAAE,QAAQ,GACZ,IAAI,CAAC,YAAY,EAAE,uBAAuB,CAAC,CAI7C;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,EAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,EACzB,EAAE,CAAC,EAAE,QAAQ,GACZ,OAAO,CAOT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-lock.d.ts","sourceRoot":"","sources":["../../src/lib/memory-lock.ts"],"names":[],"mappings":"AAAA;;;;;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E,EAAE,MAAM,CAAC,EACX,UAAU,SAAmB,EAC7B,EAAE,CAAC,EAAE,QAAQ,GACZ,CAAC,CAaH;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,SAAgB,QAAQ,EAAG,IAAI,CAAU;IACzC,SAAgB,GAAG,EAAE,MAAM,CAAC;IAC5B,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,iBAAiB,EAAE,MAAM,CAAC;gBAE9B,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;CAUhE"}
|
|
@@ -2,12 +2,23 @@
|
|
|
2
2
|
* Profile Synthesizer — aggregates preference and fact memories into a coherent profile.
|
|
3
3
|
* Cached as a special pinned memory, auto-refreshed when preferences change.
|
|
4
4
|
*/
|
|
5
|
+
export type ProfileScope = "agent" | "project" | "global";
|
|
6
|
+
export declare const PROFILE_SYNTHESIS_CONTRACT: "mementos.profile.synthesize.v2";
|
|
7
|
+
export declare class ProfileScopeError extends Error {
|
|
8
|
+
readonly code = "MEMENTOS_PROFILE_SCOPE";
|
|
9
|
+
constructor(message: string);
|
|
10
|
+
}
|
|
11
|
+
export declare class ProfileSynthesisError extends Error {
|
|
12
|
+
readonly code = "MEMENTOS_PROFILE_SYNTHESIS";
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
5
15
|
export declare function getProfileKey(scope: string, id: string): string;
|
|
6
16
|
export declare function synthesizeProfile(options: {
|
|
7
17
|
project_id?: string;
|
|
8
18
|
agent_id?: string;
|
|
9
|
-
scope?:
|
|
19
|
+
scope?: ProfileScope;
|
|
10
20
|
force_refresh?: boolean;
|
|
21
|
+
fail_on_provider_error?: boolean;
|
|
11
22
|
}): Promise<{
|
|
12
23
|
profile: string;
|
|
13
24
|
memory_count: number;
|
|
@@ -16,5 +27,5 @@ export declare function synthesizeProfile(options: {
|
|
|
16
27
|
/**
|
|
17
28
|
* Mark profile as stale. Called from PostMemorySave hook when a preference/fact is saved.
|
|
18
29
|
*/
|
|
19
|
-
export declare function markProfileStale(projectId?: string,
|
|
30
|
+
export declare function markProfileStale(projectId?: string, agentId?: string): void;
|
|
20
31
|
//# sourceMappingURL=profile-synthesizer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-synthesizer.d.ts","sourceRoot":"","sources":["../../src/lib/profile-synthesizer.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"profile-synthesizer.d.ts","sourceRoot":"","sources":["../../src/lib/profile-synthesizer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAwBH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC1D,eAAO,MAAM,0BAA0B,EAAG,gCAAyC,CAAC;AAEpF,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,QAAQ,CAAC,IAAI,4BAA4B;gBAC7B,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,IAAI,gCAAgC;;CAK9C;AA2BD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAE/D;AA2BD,wBAAsB,iBAAiB,CAAC,OAAO,EAAE;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAAC,CAiHjF;AA2BD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CA2B3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-queue.d.ts","sourceRoot":"","sources":["../../src/lib/session-queue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"session-queue.d.ts","sourceRoot":"","sources":["../../src/lib/session-queue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAeD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAWrD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,iBAAiB,CA4CxD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAoB9C"}
|
|
@@ -2,9 +2,30 @@
|
|
|
2
2
|
* Session Registry — shared registry of active Claude Code sessions.
|
|
3
3
|
* Designed to be reusable across the open-* ecosystem (mementos, todos, conversations).
|
|
4
4
|
*
|
|
5
|
-
* Uses a shared SQLite DB at ~/.open-sessions-registry.db.
|
|
6
5
|
* Each MCP server registers on connect, heartbeats, and can query peers.
|
|
7
6
|
* PID identifies the Claude Code process — all MCPs in same session share a PID.
|
|
7
|
+
*
|
|
8
|
+
* WHERE IT LIVES, AND WHEN (fleet fail-closed wave, 2026-09-11). Until this
|
|
9
|
+
* revision the registry was an ungated SQLite file at the HOME ROOT
|
|
10
|
+
* (`~/.open-sessions-registry.db`), created by the first `registerSession`
|
|
11
|
+
* call — i.e. by every `mementos-mcp` start, including a hosted one that had
|
|
12
|
+
* just refused to open the memory store (T1 §3.5 mementos). Two rules broke
|
|
13
|
+
* at once: "no local fleet SQLite on any station" and "an app's files live
|
|
14
|
+
* under ~/.hasna/<app>". Now:
|
|
15
|
+
*
|
|
16
|
+
* - The registry is an on-box SQLite file ONLY when this process is allowed
|
|
17
|
+
* to have an on-box store at all: the explicit local opt-in
|
|
18
|
+
* (`HASNA_MEMENTOS_LOCAL=1` / `HASNA_MEMENTOS_DB_PATH`, see
|
|
19
|
+
* `selectsMementosLocalStore`) or the server context (`mementos-serve`).
|
|
20
|
+
* It then lives NEXT TO the memory store — `<dir of the store>/
|
|
21
|
+
* sessions-registry.db` — never at the home root; a `:memory:` store gets
|
|
22
|
+
* a `:memory:` registry.
|
|
23
|
+
* - On the HOSTED route (a credential resolved, no opt-in) the registry is
|
|
24
|
+
* PROCESS-LOCAL: the same API, backed by an in-process map, so the
|
|
25
|
+
* auto-inject orchestrator and the channel pusher keep working for this
|
|
26
|
+
* server's own session, and nothing is read from or written to disk.
|
|
27
|
+
* Cross-process peer discovery is a local-store feature; it does not
|
|
28
|
+
* exist on a hosted station and must not invent a file to fake it.
|
|
8
29
|
*/
|
|
9
30
|
export interface SessionInfo {
|
|
10
31
|
id: string;
|
|
@@ -26,6 +47,20 @@ export interface SessionFilter {
|
|
|
26
47
|
agent_name?: string;
|
|
27
48
|
exclude_pid?: number;
|
|
28
49
|
}
|
|
50
|
+
/** File name of the registry, placed next to the memory store. */
|
|
51
|
+
export declare const SESSION_REGISTRY_FILE = "sessions-registry.db";
|
|
52
|
+
/**
|
|
53
|
+
* Is an on-box registry file permitted for this process? Only under the
|
|
54
|
+
* explicit local opt-in or in the server. Answered from the env dictionary
|
|
55
|
+
* (and the server flag) — no Keychain, no filesystem.
|
|
56
|
+
*/
|
|
57
|
+
export declare function sessionRegistryUsesLocalStore(env?: Record<string, string | undefined>): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Where the registry file lives when one is permitted: beside the memory
|
|
60
|
+
* store (`getDbPath()`), so a pinned scratch store gets a scratch registry
|
|
61
|
+
* and a `:memory:` store gets a `:memory:` registry. Never the home root.
|
|
62
|
+
*/
|
|
63
|
+
export declare function sessionRegistryPath(): string;
|
|
29
64
|
export declare function registerSession(opts: {
|
|
30
65
|
mcp_server: string;
|
|
31
66
|
agent_name?: string;
|
|
@@ -44,4 +79,6 @@ export declare function getSessionsByProject(projectName: string): SessionInfo[]
|
|
|
44
79
|
export declare function cleanStaleSessions(): number;
|
|
45
80
|
export declare function updateSessionAgent(mcpServer: string, agentName: string): void;
|
|
46
81
|
export declare function closeRegistry(): void;
|
|
82
|
+
/** Drop the process-local registry. Test seam only. */
|
|
83
|
+
export declare function __resetProcessLocalRegistry(): void;
|
|
47
84
|
//# sourceMappingURL=session-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-registry.d.ts","sourceRoot":"","sources":["../../src/lib/session-registry.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"session-registry.d.ts","sourceRoot":"","sources":["../../src/lib/session-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAYH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MA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I,IAAI,CAElD"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { type DbAdapter, type SyncMeta, getStorageStatus } from "../storage.js";
|
|
2
|
+
/**
|
|
3
|
+
* The refusal `storage push|pull|sync|status` (CLI) and the `storage_*` MCP
|
|
4
|
+
* tools raise on the hosted route. Names only variables, never a value.
|
|
5
|
+
*/
|
|
6
|
+
export declare const STORAGE_SYNC_LOCAL_ONLY_MESSAGE: string;
|
|
2
7
|
export interface MemoryStorageSyncMeta {
|
|
3
8
|
table_name: string;
|
|
4
9
|
direction: "push" | "pull";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-sync.d.ts","sourceRoot":"","sources":["../../src/lib/storage-sync.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,QAAQ,EAQb,gBAAgB,
|
|
1
|
+
{"version":3,"file":"storage-sync.d.ts","sourceRoot":"","sources":["../../src/lib/storage-sync.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,QAAQ,EAQb,gBAAgB,EAOjB,MAAM,eAAe,CAAC;AAMvB;;;GAGG;AACH,eAAO,MAAM,+BAA+B,QAKwE,CAAC;AA+BrH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,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,eAAe,CAAC,CA4K3F;AAMD,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,MAAM,EACb,EAAE,CAAC,EAAE,QAAQ,GACZ,OAAO,CAAC;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAoBpD;AAMD,wBAAgB,kBAAkB,CAChC,KAAK,CAAC,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,EAClB,EAAE,CAAC,EAAE,QAAQ,GACZ;IAAE,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAAC,UAAU,EAAE,YAAY,EAAE,CAAA;CAAE,CAgC9D"}
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
3
|
/** Exported so other modules can push channel notifications via the underlying Server. */
|
|
4
4
|
export declare let mcpServer: McpServer | null;
|
|
5
|
-
export declare function buildServer(): McpServer;
|
|
5
|
+
export declare function buildServer(profileValue?: string): McpServer;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/mcp/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA0DpE,0FAA0F;AAC1F,eAAO,IAAI,SAAS,EAAE,SAAS,GAAG,IAAW,CAAC;AAyB9C,wBAAgB,WAAW,CAAC,YAAY,SAA2B,GAAG,SAAS,CAqD9E"}
|