@kl-c/matrixos 0.3.57 → 0.3.59
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/index.js +3 -2
- package/dist/cli/snapshot/snapshot-core.d.ts +2 -2
- package/dist/cli-node/index.js +3 -2
- package/dist/config/schema/hooks.d.ts +1 -0
- package/dist/config/schema/memory.d.ts +11 -0
- package/dist/create-hooks.d.ts +1 -0
- package/dist/features/context-injector/types.d.ts +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/session-memory-loader/index.d.ts +12 -0
- package/dist/index.js +1256 -1153
- package/dist/plugin/hooks/create-core-hooks.d.ts +1 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +2 -1
- package/dist/tui.js +2 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -2163,7 +2163,7 @@ var package_default;
|
|
|
2163
2163
|
var init_package = __esm(() => {
|
|
2164
2164
|
package_default = {
|
|
2165
2165
|
name: "@kl-c/matrixos",
|
|
2166
|
-
version: "0.3.
|
|
2166
|
+
version: "0.3.59",
|
|
2167
2167
|
description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
|
|
2168
2168
|
main: "./dist/index.js",
|
|
2169
2169
|
types: "dist/index.d.ts",
|
|
@@ -170045,7 +170045,8 @@ var HookNameSchema = exports_external.enum([
|
|
|
170045
170045
|
"fsync-skip-warning",
|
|
170046
170046
|
"plan-format-validator",
|
|
170047
170047
|
"legacy-plugin-toast",
|
|
170048
|
-
"egress-filter"
|
|
170048
|
+
"egress-filter",
|
|
170049
|
+
"session-memory-loader"
|
|
170049
170050
|
]);
|
|
170050
170051
|
// packages/omo-opencode/src/config/schema/i18n.ts
|
|
170051
170052
|
init_zod();
|
|
@@ -6,8 +6,8 @@ export declare const SnapshotFileEntrySchema: z.ZodObject<{
|
|
|
6
6
|
type: z.ZodEnum<{
|
|
7
7
|
json: "json";
|
|
8
8
|
markdown: "markdown";
|
|
9
|
-
sqlite: "sqlite";
|
|
10
9
|
jsonl: "jsonl";
|
|
10
|
+
sqlite: "sqlite";
|
|
11
11
|
}>;
|
|
12
12
|
sizeBytes: z.ZodNumber;
|
|
13
13
|
checksum: z.ZodString;
|
|
@@ -24,8 +24,8 @@ export declare const SnapshotManifestSchema: z.ZodObject<{
|
|
|
24
24
|
type: z.ZodEnum<{
|
|
25
25
|
json: "json";
|
|
26
26
|
markdown: "markdown";
|
|
27
|
-
sqlite: "sqlite";
|
|
28
27
|
jsonl: "jsonl";
|
|
28
|
+
sqlite: "sqlite";
|
|
29
29
|
}>;
|
|
30
30
|
sizeBytes: z.ZodNumber;
|
|
31
31
|
checksum: z.ZodString;
|
package/dist/cli-node/index.js
CHANGED
|
@@ -2163,7 +2163,7 @@ var package_default;
|
|
|
2163
2163
|
var init_package = __esm(() => {
|
|
2164
2164
|
package_default = {
|
|
2165
2165
|
name: "@kl-c/matrixos",
|
|
2166
|
-
version: "0.3.
|
|
2166
|
+
version: "0.3.59",
|
|
2167
2167
|
description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
|
|
2168
2168
|
main: "./dist/index.js",
|
|
2169
2169
|
types: "dist/index.d.ts",
|
|
@@ -170100,7 +170100,8 @@ var HookNameSchema = exports_external.enum([
|
|
|
170100
170100
|
"fsync-skip-warning",
|
|
170101
170101
|
"plan-format-validator",
|
|
170102
170102
|
"legacy-plugin-toast",
|
|
170103
|
-
"egress-filter"
|
|
170103
|
+
"egress-filter",
|
|
170104
|
+
"session-memory-loader"
|
|
170104
170105
|
]);
|
|
170105
170106
|
// packages/omo-opencode/src/config/schema/i18n.ts
|
|
170106
170107
|
init_zod();
|
|
@@ -57,5 +57,6 @@ export declare const HookNameSchema: z.ZodEnum<{
|
|
|
57
57
|
"plan-format-validator": "plan-format-validator";
|
|
58
58
|
"legacy-plugin-toast": "legacy-plugin-toast";
|
|
59
59
|
"egress-filter": "egress-filter";
|
|
60
|
+
"session-memory-loader": "session-memory-loader";
|
|
60
61
|
}>;
|
|
61
62
|
export type HookName = z.infer<typeof HookNameSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Auto-memory config (P2 — à la Hermes).
|
|
4
|
+
* When enabled, Morpheus auto-loads prior session learnings from the
|
|
5
|
+
* persistent episodic memory DB at session start (RGPD-consented).
|
|
6
|
+
*/
|
|
7
|
+
export declare const MemoryConfigSchema: z.ZodObject<{
|
|
8
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
max_entries: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type MemoryConfig = z.infer<typeof MemoryConfigSchema>;
|
package/dist/create-hooks.d.ts
CHANGED
|
@@ -90,5 +90,6 @@ export declare function createHooks(args: {
|
|
|
90
90
|
taskResumeInfo: ReturnType<typeof import("./hooks").createTaskResumeInfoHook> | null;
|
|
91
91
|
runtimeFallback: ReturnType<typeof import("./hooks").createRuntimeFallbackHook> | null;
|
|
92
92
|
legacyPluginToast: ReturnType<typeof import("./hooks").createLegacyPluginToastHook> | null;
|
|
93
|
+
sessionMemoryLoader: ReturnType<typeof import("./hooks").createSessionMemoryLoaderHook> | null;
|
|
93
94
|
};
|
|
94
95
|
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Source identifier for context injection
|
|
3
3
|
* Each source registers context that will be merged and injected together
|
|
4
4
|
*/
|
|
5
|
-
export type ContextSourceType = "keyword-detector" | "rules-injector" | "directory-agents" | "directory-readme" | "custom";
|
|
5
|
+
export type ContextSourceType = "keyword-detector" | "rules-injector" | "directory-agents" | "directory-readme" | "custom" | "session-memory-loader";
|
|
6
6
|
/**
|
|
7
7
|
* Priority levels for context ordering
|
|
8
8
|
* Higher priority contexts appear first in the merged output
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -59,3 +59,4 @@ export { createFsyncSkipWarningHook } from "./fsync-skip-warning";
|
|
|
59
59
|
export { createNotepadWriteGuardHook } from "./notepad-write-guard";
|
|
60
60
|
export { createPlanFormatValidatorHook } from "./plan-format-validator";
|
|
61
61
|
export { createMonitorStatusInjectorHook } from "./monitor-status-injector";
|
|
62
|
+
export { createSessionMemoryLoaderHook } from "./session-memory-loader";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
export declare const HOOK_NAME = "session-memory-loader";
|
|
3
|
+
export declare function createSessionMemoryLoaderHook(_ctx: PluginInput): {
|
|
4
|
+
"session-memory-loader": {
|
|
5
|
+
event: {
|
|
6
|
+
type: string;
|
|
7
|
+
};
|
|
8
|
+
handler: (input: {
|
|
9
|
+
sessionID?: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
};
|
|
12
|
+
};
|