@pyxmate/memory 1.18.3 → 1.19.1
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/cli/pyx-mem.mjs +15 -4
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/cli/pyx-mem.mjs
CHANGED
|
@@ -677,7 +677,14 @@ var insightsSchema = z.object({
|
|
|
677
677
|
label: z.string().min(1).max(MEMORY_PROJECT_LABEL_MAX_CHARS)
|
|
678
678
|
})
|
|
679
679
|
).max(TAXONOMY_MAX_PROJECTS),
|
|
680
|
-
other: metricsSchema.nullable()
|
|
680
|
+
other: metricsSchema.nullable(),
|
|
681
|
+
recentApplied: z.array(
|
|
682
|
+
z.object({
|
|
683
|
+
topic: z.string().min(1).max(MEMORY_PROJECT_LABEL_MAX_CHARS).nullable(),
|
|
684
|
+
project: z.string().min(1).max(MEMORY_PROJECT_LABEL_MAX_CHARS).nullable(),
|
|
685
|
+
at: z.string()
|
|
686
|
+
})
|
|
687
|
+
).max(5)
|
|
681
688
|
});
|
|
682
689
|
var insightsResponseSchema = z.union([
|
|
683
690
|
insightsSchema,
|
|
@@ -688,7 +695,7 @@ async function insightsCommand(opts = {}) {
|
|
|
688
695
|
surface: "insights",
|
|
689
696
|
request: { method: "GET", path: "/api/memory/insights" },
|
|
690
697
|
schema: insightsResponseSchema,
|
|
691
|
-
minimumServiceVersion: "1.
|
|
698
|
+
minimumServiceVersion: "1.19.0",
|
|
692
699
|
keychain: opts.keychain,
|
|
693
700
|
fetchImpl: opts.fetchImpl
|
|
694
701
|
});
|
|
@@ -718,6 +725,7 @@ function report(state, endpoint, keySource, problem) {
|
|
|
718
725
|
summary: null,
|
|
719
726
|
projects: [],
|
|
720
727
|
other: null,
|
|
728
|
+
recentApplied: [],
|
|
721
729
|
problem
|
|
722
730
|
};
|
|
723
731
|
}
|
|
@@ -1078,7 +1086,7 @@ function createProxyServer(client, version, uploadLocalFile) {
|
|
|
1078
1086
|
return server;
|
|
1079
1087
|
}
|
|
1080
1088
|
async function runMcpProxyServer(opts) {
|
|
1081
|
-
const version = opts.version ?? (true ? "1.
|
|
1089
|
+
const version = opts.version ?? (true ? "1.19.1" : "0.0.0-dev");
|
|
1082
1090
|
const read = await opts.readCredentials();
|
|
1083
1091
|
if (!read.ok) {
|
|
1084
1092
|
const text = read.result.content.map((c) => c.type === "text" ? c.text : "").join(" ").trim();
|
|
@@ -2037,6 +2045,7 @@ function scaffoldCommand(args = {}) {
|
|
|
2037
2045
|
}
|
|
2038
2046
|
|
|
2039
2047
|
// src/cli/commands/status.ts
|
|
2048
|
+
import { createHash as createHash2 } from "crypto";
|
|
2040
2049
|
async function statusCommand(opts = {}) {
|
|
2041
2050
|
const provider = opts.keychain ?? getDefaultKeychain();
|
|
2042
2051
|
let report4;
|
|
@@ -2046,7 +2055,9 @@ async function statusCommand(opts = {}) {
|
|
|
2046
2055
|
endpoint: creds?.endpoint ?? null,
|
|
2047
2056
|
keyPresent: creds !== null,
|
|
2048
2057
|
keySource: creds !== null ? "keychain" : null,
|
|
2049
|
-
loggedIn: creds !== null
|
|
2058
|
+
loggedIn: creds !== null,
|
|
2059
|
+
credentialFingerprint: creds === null ? null : createHash2("sha256").update(`${creds.endpoint}
|
|
2060
|
+
${creds.apiKey}`).digest("hex").slice(0, 16)
|
|
2050
2061
|
};
|
|
2051
2062
|
} catch (err) {
|
|
2052
2063
|
if (err instanceof KeychainError) return emitError(err, opts.json);
|
package/dist/index.d.ts
CHANGED
|
@@ -1366,6 +1366,12 @@ interface MemoryInsights {
|
|
|
1366
1366
|
};
|
|
1367
1367
|
projects: MemoryProjectInsight[];
|
|
1368
1368
|
other: MemoryInsightMetrics | null;
|
|
1369
|
+
/** Most recently reinforced visible entries (≤5), labels only, never bodies. */
|
|
1370
|
+
recentApplied?: Array<{
|
|
1371
|
+
topic: string | null;
|
|
1372
|
+
project: string | null;
|
|
1373
|
+
at: string;
|
|
1374
|
+
}>;
|
|
1369
1375
|
}
|
|
1370
1376
|
interface GraphRepairResult {
|
|
1371
1377
|
staleEdgesDeleted: number;
|