@kl-c/matrixos 0.3.57 → 0.3.58
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 +11 -2
- package/dist/cli-node/index.js +11 -2
- package/dist/config/schema/hooks.d.ts +1 -0
- package/dist/config/schema/memory.d.ts +11 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +4 -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 +1218 -1153
- package/dist/matrixos.schema.json +14 -0
- 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 +14 -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.58",
|
|
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();
|
|
@@ -170104,6 +170105,13 @@ var DreamerConfigSchema = exports_external.object({
|
|
|
170104
170105
|
init_src4();
|
|
170105
170106
|
var GatewayConfigSectionSchema = GatewayConfigSchema.optional();
|
|
170106
170107
|
|
|
170108
|
+
// packages/omo-opencode/src/config/schema/memory.ts
|
|
170109
|
+
init_zod();
|
|
170110
|
+
var MemoryConfigSchema = exports_external.object({
|
|
170111
|
+
enabled: exports_external.boolean().optional(),
|
|
170112
|
+
max_entries: exports_external.number().int().min(1).max(100).optional()
|
|
170113
|
+
});
|
|
170114
|
+
|
|
170107
170115
|
// packages/omo-opencode/src/config/schema/monitor.ts
|
|
170108
170116
|
init_zod();
|
|
170109
170117
|
var MonitorConfigSchema = exports_external.object({
|
|
@@ -170331,6 +170339,7 @@ var OhMyOpenCodeConfigSchema = exports_external.object({
|
|
|
170331
170339
|
egress: EgressConfigSectionSchema,
|
|
170332
170340
|
cron: CronConfigSchema.optional(),
|
|
170333
170341
|
default_mode: DefaultModeConfigSchema.optional(),
|
|
170342
|
+
memory: MemoryConfigSchema.optional(),
|
|
170334
170343
|
dreamer: DreamerConfigSchema.optional(),
|
|
170335
170344
|
profiles: ProfileReferencesSchema.optional(),
|
|
170336
170345
|
profileRegistry: ProfileRegistrySchema.optional(),
|
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.58",
|
|
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();
|
|
@@ -170159,6 +170160,13 @@ var DreamerConfigSchema = exports_external.object({
|
|
|
170159
170160
|
init_src4();
|
|
170160
170161
|
var GatewayConfigSectionSchema = GatewayConfigSchema.optional();
|
|
170161
170162
|
|
|
170163
|
+
// packages/omo-opencode/src/config/schema/memory.ts
|
|
170164
|
+
init_zod();
|
|
170165
|
+
var MemoryConfigSchema = exports_external.object({
|
|
170166
|
+
enabled: exports_external.boolean().optional(),
|
|
170167
|
+
max_entries: exports_external.number().int().min(1).max(100).optional()
|
|
170168
|
+
});
|
|
170169
|
+
|
|
170162
170170
|
// packages/omo-opencode/src/config/schema/monitor.ts
|
|
170163
170171
|
init_zod();
|
|
170164
170172
|
var MonitorConfigSchema = exports_external.object({
|
|
@@ -170386,6 +170394,7 @@ var OhMyOpenCodeConfigSchema = exports_external.object({
|
|
|
170386
170394
|
egress: EgressConfigSectionSchema,
|
|
170387
170395
|
cron: CronConfigSchema.optional(),
|
|
170388
170396
|
default_mode: DefaultModeConfigSchema.optional(),
|
|
170397
|
+
memory: MemoryConfigSchema.optional(),
|
|
170389
170398
|
dreamer: DreamerConfigSchema.optional(),
|
|
170390
170399
|
profiles: ProfileReferencesSchema.optional(),
|
|
170391
170400
|
profileRegistry: ProfileRegistrySchema.optional(),
|
|
@@ -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>;
|
|
@@ -2504,6 +2504,10 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
2504
2504
|
ultrawork: z.ZodDefault<z.ZodBoolean>;
|
|
2505
2505
|
ralph_loop: z.ZodDefault<z.ZodBoolean>;
|
|
2506
2506
|
}, z.core.$strip>>;
|
|
2507
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
2508
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2509
|
+
max_entries: z.ZodOptional<z.ZodNumber>;
|
|
2510
|
+
}, z.core.$strip>>;
|
|
2507
2511
|
dreamer: z.ZodOptional<z.ZodObject<{
|
|
2508
2512
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2509
2513
|
idle_delay_ms: z.ZodDefault<z.ZodNumber>;
|
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
|
+
};
|