@remembrance-ai/mcp-server 0.1.64 → 0.1.66
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/dist/server.js +54 -15
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/server.js
CHANGED
|
@@ -10702,8 +10702,9 @@ function localPluginLifecycleHealth(options) {
|
|
|
10702
10702
|
if (paths.length === 0) {
|
|
10703
10703
|
return missingPluginLifecycleHealth(surface);
|
|
10704
10704
|
}
|
|
10705
|
-
|
|
10706
|
-
|
|
10705
|
+
const nowMs = (options.now ?? /* @__PURE__ */ new Date()).getTime();
|
|
10706
|
+
const genericPath = join3(healthDir, `${surface}.json`);
|
|
10707
|
+
const markerEntries = [];
|
|
10707
10708
|
for (const path of paths) {
|
|
10708
10709
|
try {
|
|
10709
10710
|
const parsed = JSON.parse(
|
|
@@ -10712,15 +10713,20 @@ function localPluginLifecycleHealth(options) {
|
|
|
10712
10713
|
if (!isRecord3(parsed) || parsed.surface !== surface) {
|
|
10713
10714
|
continue;
|
|
10714
10715
|
}
|
|
10715
|
-
const
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10716
|
+
const components2 = isRecord3(parsed.components) ? parsed.components : {};
|
|
10717
|
+
markerEntries.push({
|
|
10718
|
+
path,
|
|
10719
|
+
marker: parsed,
|
|
10720
|
+
lastSeenMs: validLifecycleTimestamp(parsed.last_seen_at, nowMs),
|
|
10721
|
+
sessionStartMs: validLifecycleTimestamp(
|
|
10722
|
+
components2.session_start,
|
|
10723
|
+
nowMs
|
|
10724
|
+
)
|
|
10725
|
+
});
|
|
10720
10726
|
} catch {
|
|
10721
10727
|
}
|
|
10722
10728
|
}
|
|
10723
|
-
if (
|
|
10729
|
+
if (markerEntries.length === 0) {
|
|
10724
10730
|
return {
|
|
10725
10731
|
...missingPluginLifecycleHealth(surface),
|
|
10726
10732
|
issues: [
|
|
@@ -10731,8 +10737,40 @@ function localPluginLifecycleHealth(options) {
|
|
|
10731
10737
|
]
|
|
10732
10738
|
};
|
|
10733
10739
|
}
|
|
10734
|
-
const
|
|
10735
|
-
const
|
|
10740
|
+
const genericEntry = markerEntries.find((entry) => entry.path === genericPath);
|
|
10741
|
+
const currentSessionStartMs = genericEntry?.sessionStartMs;
|
|
10742
|
+
const currentSessionEntries = typeof currentSessionStartMs === "number" ? markerEntries.filter(
|
|
10743
|
+
(entry) => entry.sessionStartMs >= currentSessionStartMs
|
|
10744
|
+
) : [];
|
|
10745
|
+
const cohort = currentSessionEntries.length > 0 ? currentSessionEntries : [
|
|
10746
|
+
markerEntries.reduce(
|
|
10747
|
+
(latest, candidate) => candidate.lastSeenMs > latest.lastSeenMs ? candidate : latest
|
|
10748
|
+
)
|
|
10749
|
+
];
|
|
10750
|
+
const newestEntry = cohort.reduce(
|
|
10751
|
+
(latest, candidate) => candidate.lastSeenMs > latest.lastSeenMs ? candidate : latest
|
|
10752
|
+
);
|
|
10753
|
+
const mergedComponents = {};
|
|
10754
|
+
for (const component of PLUGIN_HEALTH_COMPONENTS) {
|
|
10755
|
+
let latestValue;
|
|
10756
|
+
let latestMs = Number.NEGATIVE_INFINITY;
|
|
10757
|
+
for (const entry of cohort) {
|
|
10758
|
+
const components2 = isRecord3(entry.marker.components) ? entry.marker.components : {};
|
|
10759
|
+
const value = components2[component];
|
|
10760
|
+
const valueMs = validLifecycleTimestamp(value, nowMs);
|
|
10761
|
+
if (valueMs > latestMs) {
|
|
10762
|
+
latestMs = valueMs;
|
|
10763
|
+
latestValue = value;
|
|
10764
|
+
}
|
|
10765
|
+
}
|
|
10766
|
+
if (Number.isFinite(latestMs)) mergedComponents[component] = latestValue;
|
|
10767
|
+
}
|
|
10768
|
+
const marker = {
|
|
10769
|
+
...newestEntry.marker,
|
|
10770
|
+
components: mergedComponents,
|
|
10771
|
+
last_seen_at: Number.isFinite(newestEntry.lastSeenMs) ? new Date(newestEntry.lastSeenMs).toISOString() : newestEntry.marker.last_seen_at
|
|
10772
|
+
};
|
|
10773
|
+
const componentRecord = mergedComponents;
|
|
10736
10774
|
const sessionStartMs = validLifecycleTimestamp(
|
|
10737
10775
|
componentRecord.session_start,
|
|
10738
10776
|
nowMs
|
|
@@ -10840,7 +10878,7 @@ function localPluginLifecycleHealth(options) {
|
|
|
10840
10878
|
hook_trust: hookTrust,
|
|
10841
10879
|
components,
|
|
10842
10880
|
issues,
|
|
10843
|
-
explanation: "Each host session is tracked independently.
|
|
10881
|
+
explanation: "Each host process session is tracked independently. Turn-specific prompt, tool, and completion observations are combined only when they share the current SessionStart marker."
|
|
10844
10882
|
};
|
|
10845
10883
|
}
|
|
10846
10884
|
function normalizedPluginHookTrust(value) {
|
|
@@ -10918,6 +10956,7 @@ function emptyPluginComponents() {
|
|
|
10918
10956
|
}
|
|
10919
10957
|
function lifecycleMarkerPaths(surface, healthDir, fileSystem) {
|
|
10920
10958
|
const legacyPath = join3(healthDir, `${surface}.json`);
|
|
10959
|
+
const paths = fileSystem.exists(legacyPath) ? [legacyPath] : [];
|
|
10921
10960
|
const listed = fileSystem.list ? (() => {
|
|
10922
10961
|
try {
|
|
10923
10962
|
return fileSystem.list(healthDir);
|
|
@@ -10927,9 +10966,9 @@ function lifecycleMarkerPaths(surface, healthDir, fileSystem) {
|
|
|
10927
10966
|
})() : [];
|
|
10928
10967
|
const sessionPaths = listed.filter(
|
|
10929
10968
|
(name) => name.startsWith(`${surface}.`) && name.endsWith(".json") && /^[a-z_]+\.[a-f0-9]{24}\.json$/.test(name)
|
|
10930
|
-
).slice(0, MAX_LOCAL_LIFECYCLE_MARKERS).map((name) => join3(healthDir, name));
|
|
10931
|
-
|
|
10932
|
-
return [...new Set(
|
|
10969
|
+
).slice(0, MAX_LOCAL_LIFECYCLE_MARKERS - paths.length).map((name) => join3(healthDir, name));
|
|
10970
|
+
paths.push(...sessionPaths);
|
|
10971
|
+
return [...new Set(paths)].slice(0, MAX_LOCAL_LIFECYCLE_MARKERS);
|
|
10933
10972
|
}
|
|
10934
10973
|
function normalizeConfig(value) {
|
|
10935
10974
|
if (!isRecord3(value)) return {};
|
|
@@ -11083,7 +11122,7 @@ async function checkClientUpdate(input) {
|
|
|
11083
11122
|
// src/server.ts
|
|
11084
11123
|
var MAX_REMOTE_RESPONSE_BYTES = 4 * 1024 * 1024;
|
|
11085
11124
|
var DOCTOR_PROBE_TIMEOUT_MS = 7500;
|
|
11086
|
-
var SERVER_VERSION = true ? "0.1.
|
|
11125
|
+
var SERVER_VERSION = true ? "0.1.66" : "0.0.0-dev";
|
|
11087
11126
|
var tools = toolDefinitions;
|
|
11088
11127
|
var doctorCliRequested = process.argv[2] === "doctor";
|
|
11089
11128
|
var inputBuffer = Buffer.alloc(0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remembrance-ai/mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.66",
|
|
4
4
|
"mcpName": "io.github.dreamarkinc/remembrance",
|
|
5
5
|
"description": "MCP server for discovering Remembrance skills/resources and submitting agent feedback with optional TOFU attestations.",
|
|
6
6
|
"license": "Apache-2.0",
|
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/dreamarkinc/remembrance-skills",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.66",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@remembrance-ai/mcp-server",
|
|
14
|
-
"version": "0.1.
|
|
14
|
+
"version": "0.1.66",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|