@jungjaehoon/mama-os 0.20.0 → 0.21.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/CHANGELOG.md +48 -0
- package/dist/agent/agent-loop.d.ts +2 -1
- package/dist/agent/agent-loop.d.ts.map +1 -1
- package/dist/agent/agent-loop.js +65 -19
- package/dist/agent/agent-loop.js.map +1 -1
- package/dist/agent/claude-cli-wrapper.d.ts.map +1 -1
- package/dist/agent/claude-cli-wrapper.js +6 -2
- package/dist/agent/claude-cli-wrapper.js.map +1 -1
- package/dist/agent/cli-arg-redaction.d.ts +2 -0
- package/dist/agent/cli-arg-redaction.d.ts.map +1 -0
- package/dist/agent/cli-arg-redaction.js +18 -0
- package/dist/agent/cli-arg-redaction.js.map +1 -0
- package/dist/agent/code-act/constants.d.ts +1 -1
- package/dist/agent/code-act/constants.d.ts.map +1 -1
- package/dist/agent/code-act/constants.js +24 -3
- package/dist/agent/code-act/constants.js.map +1 -1
- package/dist/agent/code-act/host-bridge.d.ts +2 -0
- package/dist/agent/code-act/host-bridge.d.ts.map +1 -1
- package/dist/agent/code-act/host-bridge.js +43 -7
- package/dist/agent/code-act/host-bridge.js.map +1 -1
- package/dist/agent/code-act/type-definition-generator.d.ts +2 -2
- package/dist/agent/code-act/type-definition-generator.d.ts.map +1 -1
- package/dist/agent/code-act/type-definition-generator.js +29 -4
- package/dist/agent/code-act/type-definition-generator.js.map +1 -1
- package/dist/agent/codex-home.d.ts +1 -1
- package/dist/agent/codex-home.d.ts.map +1 -1
- package/dist/agent/codex-home.js +43 -1
- package/dist/agent/codex-home.js.map +1 -1
- package/dist/agent/codex-mcp-process.d.ts +2 -0
- package/dist/agent/codex-mcp-process.d.ts.map +1 -1
- package/dist/agent/codex-mcp-process.js +1 -1
- package/dist/agent/codex-mcp-process.js.map +1 -1
- package/dist/agent/context-compile-service.d.ts +47 -0
- package/dist/agent/context-compile-service.d.ts.map +1 -0
- package/dist/agent/context-compile-service.js +435 -0
- package/dist/agent/context-compile-service.js.map +1 -0
- package/dist/agent/gateway-tool-executor.d.ts +16 -11
- package/dist/agent/gateway-tool-executor.d.ts.map +1 -1
- package/dist/agent/gateway-tool-executor.js +539 -109
- package/dist/agent/gateway-tool-executor.js.map +1 -1
- package/dist/agent/gateway-tools.md +4 -3
- package/dist/agent/mama-tool-handlers.d.ts.map +1 -1
- package/dist/agent/mama-tool-handlers.js +37 -1
- package/dist/agent/mama-tool-handlers.js.map +1 -1
- package/dist/agent/managed-agent-runtime-sync.d.ts.map +1 -1
- package/dist/agent/managed-agent-runtime-sync.js +2 -4
- package/dist/agent/managed-agent-runtime-sync.js.map +1 -1
- package/dist/agent/managed-agent-validation.d.ts.map +1 -1
- package/dist/agent/managed-agent-validation.js +2 -1
- package/dist/agent/managed-agent-validation.js.map +1 -1
- package/dist/agent/os-agent-capabilities.md +13 -12
- package/dist/agent/persistent-cli-process.d.ts +1 -0
- package/dist/agent/persistent-cli-process.d.ts.map +1 -1
- package/dist/agent/persistent-cli-process.js +6 -1
- package/dist/agent/persistent-cli-process.js.map +1 -1
- package/dist/agent/tool-registry.d.ts.map +1 -1
- package/dist/agent/tool-registry.js +10 -2
- package/dist/agent/tool-registry.js.map +1 -1
- package/dist/agent/types.d.ts +30 -5
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/api/agent-context-handler.d.ts +10 -0
- package/dist/api/agent-context-handler.d.ts.map +1 -0
- package/dist/api/agent-context-handler.js +216 -0
- package/dist/api/agent-context-handler.js.map +1 -0
- package/dist/api/agent-handler.d.ts +2 -0
- package/dist/api/agent-handler.d.ts.map +1 -1
- package/dist/api/agent-handler.js +14 -7
- package/dist/api/agent-handler.js.map +1 -1
- package/dist/api/graph-api-types.d.ts +6 -1
- package/dist/api/graph-api-types.d.ts.map +1 -1
- package/dist/api/graph-api.d.ts +2 -1
- package/dist/api/graph-api.d.ts.map +1 -1
- package/dist/api/graph-api.js +193 -11
- package/dist/api/graph-api.js.map +1 -1
- package/dist/api/index.d.ts +11 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +13 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/intelligence-handler.d.ts +17 -6
- package/dist/api/intelligence-handler.d.ts.map +1 -1
- package/dist/api/intelligence-handler.js +59 -1
- package/dist/api/intelligence-handler.js.map +1 -1
- package/dist/api/operator-handler.d.ts +17 -0
- package/dist/api/operator-handler.d.ts.map +1 -0
- package/dist/api/operator-handler.js +88 -0
- package/dist/api/operator-handler.js.map +1 -0
- package/dist/api/report-handler.d.ts +7 -0
- package/dist/api/report-handler.d.ts.map +1 -1
- package/dist/api/report-handler.js +30 -0
- package/dist/api/report-handler.js.map +1 -1
- package/dist/api/report-persistence.d.ts +17 -0
- package/dist/api/report-persistence.d.ts.map +1 -0
- package/dist/api/report-persistence.js +91 -0
- package/dist/api/report-persistence.js.map +1 -0
- package/dist/cli/commands/start.d.ts +45 -0
- package/dist/cli/commands/start.d.ts.map +1 -1
- package/dist/cli/commands/start.js +610 -197
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/config/config-manager.d.ts.map +1 -1
- package/dist/cli/config/config-manager.js +171 -4
- package/dist/cli/config/config-manager.js.map +1 -1
- package/dist/cli/config/types.d.ts +25 -5
- package/dist/cli/config/types.d.ts.map +1 -1
- package/dist/cli/config/types.js +5 -0
- package/dist/cli/config/types.js.map +1 -1
- package/dist/cli/runtime/agent-loop-init.d.ts +3 -0
- package/dist/cli/runtime/agent-loop-init.d.ts.map +1 -1
- package/dist/cli/runtime/agent-loop-init.js +2 -0
- package/dist/cli/runtime/agent-loop-init.js.map +1 -1
- package/dist/cli/runtime/api-routes-init.d.ts.map +1 -1
- package/dist/cli/runtime/api-routes-init.js +396 -259
- package/dist/cli/runtime/api-routes-init.js.map +1 -1
- package/dist/cli/runtime/api-server-init.d.ts +2 -0
- package/dist/cli/runtime/api-server-init.d.ts.map +1 -1
- package/dist/cli/runtime/api-server-init.js +19 -8
- package/dist/cli/runtime/api-server-init.js.map +1 -1
- package/dist/cli/runtime/connector-init.d.ts +26 -7
- package/dist/cli/runtime/connector-init.d.ts.map +1 -1
- package/dist/cli/runtime/connector-init.js +79 -16
- package/dist/cli/runtime/connector-init.js.map +1 -1
- package/dist/cli/runtime/envelope-bootstrap.d.ts.map +1 -1
- package/dist/cli/runtime/envelope-bootstrap.js +8 -2
- package/dist/cli/runtime/envelope-bootstrap.js.map +1 -1
- package/dist/cli/runtime/gateway-init.d.ts +1 -1
- package/dist/cli/runtime/gateway-init.d.ts.map +1 -1
- package/dist/cli/runtime/gateway-init.js.map +1 -1
- package/dist/cli/runtime/message-router-config.d.ts +4 -0
- package/dist/cli/runtime/message-router-config.d.ts.map +1 -0
- package/dist/cli/runtime/message-router-config.js +11 -0
- package/dist/cli/runtime/message-router-config.js.map +1 -0
- package/dist/cli/runtime/scheduler-init.d.ts.map +1 -1
- package/dist/cli/runtime/scheduler-init.js +12 -12
- package/dist/cli/runtime/scheduler-init.js.map +1 -1
- package/dist/cli/runtime/utilities.js +2 -2
- package/dist/cli/runtime/utilities.js.map +1 -1
- package/dist/connectors/framework/polling-scheduler.d.ts.map +1 -1
- package/dist/connectors/framework/polling-scheduler.js +101 -5
- package/dist/connectors/framework/polling-scheduler.js.map +1 -1
- package/dist/connectors/kagemusha/query-tools.d.ts.map +1 -1
- package/dist/connectors/kagemusha/query-tools.js +14 -3
- package/dist/connectors/kagemusha/query-tools.js.map +1 -1
- package/dist/db/agent-store.d.ts.map +1 -1
- package/dist/db/agent-store.js +10 -3
- package/dist/db/agent-store.js.map +1 -1
- package/dist/db/migrations/wiki-artifacts.d.ts +3 -0
- package/dist/db/migrations/wiki-artifacts.d.ts.map +1 -0
- package/dist/db/migrations/wiki-artifacts.js +24 -0
- package/dist/db/migrations/wiki-artifacts.js.map +1 -0
- package/dist/envelope/enforcer.d.ts.map +1 -1
- package/dist/envelope/enforcer.js +48 -4
- package/dist/envelope/enforcer.js.map +1 -1
- package/dist/envelope/key-provider.d.ts +1 -0
- package/dist/envelope/key-provider.d.ts.map +1 -1
- package/dist/envelope/key-provider.js +86 -0
- package/dist/envelope/key-provider.js.map +1 -1
- package/dist/gateways/message-router.d.ts.map +1 -1
- package/dist/gateways/message-router.js +15 -3
- package/dist/gateways/message-router.js.map +1 -1
- package/dist/gateways/types.d.ts +5 -1
- package/dist/gateways/types.d.ts.map +1 -1
- package/dist/mcp/code-act-server.js +50 -7
- package/dist/mcp/code-act-server.js.map +1 -1
- package/dist/memory/raw-backed-memory-ingest.d.ts +26 -0
- package/dist/memory/raw-backed-memory-ingest.d.ts.map +1 -0
- package/dist/memory/raw-backed-memory-ingest.js +214 -0
- package/dist/memory/raw-backed-memory-ingest.js.map +1 -0
- package/dist/memory/scope-context.js +1 -1
- package/dist/multi-agent/agent-event-bus.d.ts +10 -0
- package/dist/multi-agent/agent-event-bus.d.ts.map +1 -1
- package/dist/multi-agent/agent-event-bus.js +34 -0
- package/dist/multi-agent/agent-event-bus.js.map +1 -1
- package/dist/multi-agent/agent-process-manager.d.ts +3 -0
- package/dist/multi-agent/agent-process-manager.d.ts.map +1 -1
- package/dist/multi-agent/agent-process-manager.js +118 -13
- package/dist/multi-agent/agent-process-manager.js.map +1 -1
- package/dist/multi-agent/conductor-persona.js +2 -2
- package/dist/multi-agent/dashboard-agent-persona.d.ts +6 -2
- package/dist/multi-agent/dashboard-agent-persona.d.ts.map +1 -1
- package/dist/multi-agent/dashboard-agent-persona.js +57 -30
- package/dist/multi-agent/dashboard-agent-persona.js.map +1 -1
- package/dist/multi-agent/memory-agent-persona.d.ts +1 -1
- package/dist/multi-agent/memory-agent-persona.d.ts.map +1 -1
- package/dist/multi-agent/memory-agent-persona.js +25 -4
- package/dist/multi-agent/memory-agent-persona.js.map +1 -1
- package/dist/multi-agent/runtime-process.d.ts +1 -0
- package/dist/multi-agent/runtime-process.d.ts.map +1 -1
- package/dist/multi-agent/runtime-process.js +1 -0
- package/dist/multi-agent/runtime-process.js.map +1 -1
- package/dist/multi-agent/types.d.ts +14 -4
- package/dist/multi-agent/types.d.ts.map +1 -1
- package/dist/multi-agent/types.js.map +1 -1
- package/dist/multi-agent/wiki-agent-persona.d.ts +7 -1
- package/dist/multi-agent/wiki-agent-persona.d.ts.map +1 -1
- package/dist/multi-agent/wiki-agent-persona.js +83 -61
- package/dist/multi-agent/wiki-agent-persona.js.map +1 -1
- package/dist/multi-agent/workflow-types.d.ts +1 -1
- package/dist/multi-agent/workflow-types.d.ts.map +1 -1
- package/dist/operator/board-slot-instructions.d.ts +18 -0
- package/dist/operator/board-slot-instructions.d.ts.map +1 -0
- package/dist/operator/board-slot-instructions.js +52 -0
- package/dist/operator/board-slot-instructions.js.map +1 -0
- package/dist/operator/connector-delta-repo.d.ts +33 -0
- package/dist/operator/connector-delta-repo.d.ts.map +1 -0
- package/dist/operator/connector-delta-repo.js +0 -0
- package/dist/operator/connector-delta-repo.js.map +1 -0
- package/dist/operator/mama-memory-port.d.ts +13 -0
- package/dist/operator/mama-memory-port.d.ts.map +1 -0
- package/dist/operator/mama-memory-port.js +35 -0
- package/dist/operator/mama-memory-port.js.map +1 -0
- package/dist/operator/operator-interfaces.d.ts +136 -0
- package/dist/operator/operator-interfaces.d.ts.map +1 -0
- package/dist/operator/operator-interfaces.js +15 -0
- package/dist/operator/operator-interfaces.js.map +1 -0
- package/dist/operator/operator-trigger-loop.d.ts +106 -0
- package/dist/operator/operator-trigger-loop.d.ts.map +1 -0
- package/dist/operator/operator-trigger-loop.js +228 -0
- package/dist/operator/operator-trigger-loop.js.map +1 -0
- package/dist/operator/report-run.d.ts +78 -0
- package/dist/operator/report-run.d.ts.map +1 -0
- package/dist/operator/report-run.js +141 -0
- package/dist/operator/report-run.js.map +1 -0
- package/dist/operator/report-scheduler.d.ts +43 -0
- package/dist/operator/report-scheduler.d.ts.map +1 -0
- package/dist/operator/report-scheduler.js +87 -0
- package/dist/operator/report-scheduler.js.map +1 -0
- package/dist/operator/situation-report.d.ts +86 -0
- package/dist/operator/situation-report.d.ts.map +1 -0
- package/dist/operator/situation-report.js +211 -0
- package/dist/operator/situation-report.js.map +1 -0
- package/dist/operator/trigger-author.d.ts +45 -0
- package/dist/operator/trigger-author.d.ts.map +1 -0
- package/dist/operator/trigger-author.js +217 -0
- package/dist/operator/trigger-author.js.map +1 -0
- package/dist/operator/trigger-evolve.d.ts +31 -0
- package/dist/operator/trigger-evolve.d.ts.map +1 -0
- package/dist/operator/trigger-evolve.js +51 -0
- package/dist/operator/trigger-evolve.js.map +1 -0
- package/dist/operator/trigger-fire.d.ts +29 -0
- package/dist/operator/trigger-fire.d.ts.map +1 -0
- package/dist/operator/trigger-fire.js +41 -0
- package/dist/operator/trigger-fire.js.map +1 -0
- package/dist/operator/trigger-matcher.d.ts +19 -0
- package/dist/operator/trigger-matcher.d.ts.map +1 -0
- package/dist/operator/trigger-matcher.js +61 -0
- package/dist/operator/trigger-matcher.js.map +1 -0
- package/dist/operator/trigger-registry.d.ts +36 -0
- package/dist/operator/trigger-registry.d.ts.map +1 -0
- package/dist/operator/trigger-registry.js +135 -0
- package/dist/operator/trigger-registry.js.map +1 -0
- package/dist/operator/trigger-review.d.ts +23 -0
- package/dist/operator/trigger-review.d.ts.map +1 -0
- package/dist/operator/trigger-review.js +127 -0
- package/dist/operator/trigger-review.js.map +1 -0
- package/dist/operator/trigger-types.d.ts +84 -0
- package/dist/operator/trigger-types.d.ts.map +1 -0
- package/dist/operator/trigger-types.js +14 -0
- package/dist/operator/trigger-types.js.map +1 -0
- package/dist/scheduler/cron-worker.d.ts.map +1 -1
- package/dist/scheduler/cron-worker.js +3 -1
- package/dist/scheduler/cron-worker.js.map +1 -1
- package/dist/security/security-monitor.d.ts.map +1 -1
- package/dist/security/security-monitor.js +1 -0
- package/dist/security/security-monitor.js.map +1 -1
- package/dist/wiki/obsidian-writer.d.ts +1 -1
- package/dist/wiki/obsidian-writer.d.ts.map +1 -1
- package/dist/wiki/obsidian-writer.js +67 -27
- package/dist/wiki/obsidian-writer.js.map +1 -1
- package/dist/wiki/path-safety.d.ts +2 -0
- package/dist/wiki/path-safety.d.ts.map +1 -0
- package/dist/wiki/path-safety.js +40 -0
- package/dist/wiki/path-safety.js.map +1 -0
- package/dist/wiki/types.d.ts +4 -2
- package/dist/wiki/types.d.ts.map +1 -1
- package/dist/wiki/types.js +1 -1
- package/dist/wiki/types.js.map +1 -1
- package/dist/wiki-artifacts/normalization.d.ts +8 -0
- package/dist/wiki-artifacts/normalization.d.ts.map +1 -0
- package/dist/wiki-artifacts/normalization.js +41 -0
- package/dist/wiki-artifacts/normalization.js.map +1 -0
- package/dist/wiki-artifacts/types.d.ts +52 -0
- package/dist/wiki-artifacts/types.d.ts.map +1 -0
- package/dist/wiki-artifacts/types.js +3 -0
- package/dist/wiki-artifacts/types.js.map +1 -0
- package/dist/wiki-artifacts/wiki-publish-adapter.d.ts +14 -0
- package/dist/wiki-artifacts/wiki-publish-adapter.d.ts.map +1 -0
- package/dist/wiki-artifacts/wiki-publish-adapter.js +71 -0
- package/dist/wiki-artifacts/wiki-publish-adapter.js.map +1 -0
- package/package.json +6 -4
- package/public/ui/assets/index-BDsaQNGd.js +62 -0
- package/public/ui/assets/index-C4URnm_X.css +1 -0
- package/public/ui/index.html +13 -0
- package/public/viewer/js/utils/api.js +2 -2
- package/public/viewer/src/utils/api.ts +9 -2
- package/public/viewer/sw.js +1 -1
- package/public/viewer/viewer.html +6 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-process.d.ts","sourceRoot":"","sources":["../../src/multi-agent/runtime-process.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAMtC,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,YAAY,IAAI,kBAAkB,EACnC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;A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AC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,qBAAa,mBAAoB,SAAQ,YAAa,YAAW,mBAAmB,EAAE,YAAY;IAChG,QAAQ,CAAC,WAAW,EAAG,WAAW,CAAU;IAE5C,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,KAAK,CAAoC;IACjD,OAAO,CAAC,sBAAsB,CAAS;IAGvC,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,eAAe,CAAK;IAC5B,OAAO,CAAC,cAAc,CAAuB;gBAEjC,OAAO,EAAE,0BAA0B;IAkBzC,MAAM,CACV,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,qBAAqB,EACjC,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,kBAAkB,CAAC;IAMxB,WAAW,CACf,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,kBAAkB,CAAC;IAsD9B,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAI9B,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAMrC,OAAO,IAAI,OAAO;IAIlB,SAAS,IAAI,OAAO;IAIpB,UAAU,IAAI,aAAa;IAU3B,IAAI,IAAI,IAAI;IAOZ,YAAY,IAAI,MAAM;CAGvB"}
|
|
@@ -29,6 +29,7 @@ class CodexRuntimeProcess extends events_1.EventEmitter {
|
|
|
29
29
|
sandbox: options.sandbox,
|
|
30
30
|
codexHome: options.codexHome,
|
|
31
31
|
command: options.command,
|
|
32
|
+
mcpConfigPath: options.mcpConfigPath,
|
|
32
33
|
compactPrompt: 'Summarize the conversation concisely, preserving key decisions and context.',
|
|
33
34
|
timeoutMs: options.requestTimeout,
|
|
34
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-process.js","sourceRoot":"","sources":["../../src/multi-agent/runtime-process.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AACtC,wEAIuC;
|
|
1
|
+
{"version":3,"file":"runtime-process.js","sourceRoot":"","sources":["../../src/multi-agent/runtime-process.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AACtC,wEAIuC;AAgCvC;;;;;;GAMG;AACH,MAAa,mBAAoB,SAAQ,qBAAY;IAC1C,WAAW,GAAG,WAAoB,CAAC;IAEpC,OAAO,CAAkB;IACzB,KAAK,GAA6B,MAAM,CAAC;IACzC,sBAAsB,GAAG,KAAK,CAAC;IAEvC,2BAA2B;IACnB,aAAa,GAAG,CAAC,CAAC;IAClB,aAAa,GAAG,CAAC,CAAC;IAClB,eAAe,GAAG,CAAC,CAAC;IACpB,cAAc,GAAkB,IAAI,CAAC;IAE7C,YAAY,OAAmC;QAC7C,KAAK,EAAE,CAAC;QACR,MAAM,cAAc,GAAoB;YACtC,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,aAAa,EAAE,6EAA6E;YAC5F,SAAS,EAAE,OAAO,CAAC,cAAc;SAClC,CAAC;QACF,IAAI,CAAC,OAAO,GAAG,IAAI,sCAAe,CAAC,cAAc,CAAC,CAAC;IACrD,CAAC;IAED,0EAA0E;IAE1E,KAAK,CAAC,MAAM,CACV,OAAe,EACf,SAAiC,EACjC,QAAwB;QAExB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC9C,CAAC;IAED,0EAA0E;IAE1E,KAAK,CAAC,WAAW,CACf,OAAe,EACf,SAAiC;QAEjC,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,EAAE,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AAC;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;IACrC,CAAC;CACF;AAxID,kDAwIC"}
|
|
@@ -36,7 +36,7 @@ export interface AgentPersonaConfig {
|
|
|
36
36
|
/**
|
|
37
37
|
* Optional dedicated Discord bot token for this agent
|
|
38
38
|
* If provided, this agent will use its own bot instead of the main bot
|
|
39
|
-
* @example "
|
|
39
|
+
* @example "MTAwMDAwMDAwMDAwMDAwMDAwMA.GXXXXX.fake-example-token"
|
|
40
40
|
*/
|
|
41
41
|
bot_token?: string;
|
|
42
42
|
/**
|
|
@@ -77,7 +77,7 @@ export interface AgentPersonaConfig {
|
|
|
77
77
|
* - 'codex-mcp': Codex via MCP protocol
|
|
78
78
|
* If not specified, uses global runtime backend.
|
|
79
79
|
*/
|
|
80
|
-
backend?: 'claude' | 'codex
|
|
80
|
+
backend?: 'claude' | 'codex' | 'codex-mcp';
|
|
81
81
|
/**
|
|
82
82
|
* Maximum turns for this agent
|
|
83
83
|
* If not specified, uses the global agent.max_turns setting
|
|
@@ -127,6 +127,16 @@ export interface AgentPersonaConfig {
|
|
|
127
127
|
/** Blocked tools (takes precedence over allowed) */
|
|
128
128
|
blocked?: string[];
|
|
129
129
|
};
|
|
130
|
+
/**
|
|
131
|
+
* Explicit Code-Act gateway function permissions.
|
|
132
|
+
* When omitted, Code-Act derives a gateway-only allowlist from tool_permissions.allowed.
|
|
133
|
+
*/
|
|
134
|
+
gateway_tool_permissions?: {
|
|
135
|
+
/** Allowed Code-Act gateway functions (supports wildcards like "mama_*") */
|
|
136
|
+
allowed?: string[];
|
|
137
|
+
/** Blocked Code-Act gateway functions */
|
|
138
|
+
blocked?: string[];
|
|
139
|
+
};
|
|
130
140
|
/**
|
|
131
141
|
* Git identity for commits made by this agent
|
|
132
142
|
* Used in PR review workspaces to attribute commits to specific bots
|
|
@@ -272,9 +282,9 @@ export interface MultiAgentRuntimeOptions {
|
|
|
272
282
|
/**
|
|
273
283
|
* Backend for agent execution
|
|
274
284
|
* - 'claude': Claude CLI (uses PersistentCLI for fast responses)
|
|
275
|
-
* - 'codex-mcp': Codex via MCP protocol
|
|
285
|
+
* - 'codex'/'codex-mcp': Codex via MCP protocol
|
|
276
286
|
*/
|
|
277
|
-
backend?: 'claude' | 'codex
|
|
287
|
+
backend?: 'claude' | 'codex' | 'codex-mcp';
|
|
278
288
|
model?: string;
|
|
279
289
|
/** Effort level for Claude 4.6 adaptive thinking */
|
|
280
290
|
effort?: 'low' | 'medium' | 'high' | 'max';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/multi-agent/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC;IA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mD;IACnD,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,6CAA6C;IAC7C,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,mDAAmD;IACnD,MAAM,EACF,kBAAkB,GAClB,eAAe,GACf,eAAe,GACf,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,WAAW,GACX,eAAe,GACf,MAAM,CAAC;IACX,qDAAqD;IACrD,OAAO,EAAE,OAAO,CAAC;IACjB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,KAAK,EAAE,OAAO,CAAC;IACf,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,iBAAiB;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,oBAIrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,gBAKxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/multi-agent/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/multi-agent/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAqdH;;GAEG;AACU,QAAA,uBAAuB,GAAyB;IAC3D,gBAAgB,EAAE,CAAC;IACnB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,KAAK;CACvB,CAAC;AAEF;;GAEG;AACU,QAAA,0BAA0B,GAAqB;IAC1D,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,EAAE;IACV,eAAe,EAAE,+BAAuB;IACxC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;CAC5B,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Default persona for the wiki agent.
|
|
3
3
|
* Written to ~/.mama/personas/wiki.md on first use if not present.
|
|
4
|
+
*
|
|
5
|
+
* v5: purpose narrowed to LESSONS + DAILY HISTORY. Current task state lives on
|
|
6
|
+
* the operator board (kagemusha_tasks is the truth source), so the wiki no
|
|
7
|
+
* longer mirrors per-task status into entity pages. Daily notes are an
|
|
8
|
+
* append-only journal; lesson pages are durable judgments that strengthen with
|
|
9
|
+
* recurring evidence and get superseded (never deleted) when contradicted.
|
|
4
10
|
*/
|
|
5
|
-
export declare const WIKI_AGENT_PERSONA = "<!-- MAMA managed wiki persona
|
|
11
|
+
export declare const WIKI_AGENT_PERSONA = "<!-- MAMA managed wiki persona v5 -->\n\nYou are MAMA's Wiki Compiler. The wiki has exactly TWO purposes:\n1. DAILY HISTORY: an append-only journal of what actually happened each day.\n2. LESSONS: durable judgments, policies, and patterns worth re-reading months later.\n\nIt is NOT a task board. Current task state lives on the operator board; NEVER\ncreate or update pages that mirror per-task progress (\"X is in_progress\").\n\n## Vault Layout (fixed -- do not invent new top-level folders)\n- Home.md -- index: links to the last 7 daily notes and the lesson map\n- daily/YYYY-MM-DD.md -- one page per day, append-only\n- lessons/clients/<name>.md -- per-client policies, preferences, boundaries\n- lessons/process/<slug>.md -- recurring workflow rules\n- lessons/system/<slug>.md -- operational lessons about MAMA/agents themselves\n\n## Language\n- Write page CONTENT in Korean (proper nouns stay as-is). Markup and frontmatter keys stay English.\n\n## Tools\n- **context_compile**({task, limit?, max_tool_calls?, strictness?}) -- compile a scoped evidence packet for this update.\n- **mama_search**(query, limit?) -- fallback search when context_compile is unavailable.\n- **agent_notices**(limit?) -- find the last wiki compile boundary.\n- **obsidian**(command, args) -- Obsidian vault CLI. Commands:\n - search: obsidian(\"search\", {query: \"keywords\", limit: \"5\"})\n - read: obsidian(\"read\", {path: \"daily/2026-07-10.md\"})\n - create: obsidian(\"create\", {path: \"lessons/process/new-rule.md\", content: \"...\", silent: \"true\"})\n IMPORTANT: always pass path= with the full relative path INCLUDING .md; name= rejects \"/\".\n - append: obsidian(\"append\", {path: \"daily/2026-07-10.md\", content: \"...\"})\n - move / delete: reorganize (delete only for true duplicates)\n - find: list files. obsidian(\"find\")\n - property:set: frontmatter. obsidian(\"property:set\", {file: \"...\", name: \"status\", value: \"active\"})\n - backlinks: obsidian(\"backlinks\", {file: \"lessons/process/X\"})\n- **wiki_publish**(pages) -- fallback ONLY when the Obsidian CLI is unavailable.\n\n## Daily note rules\n- Target ONLY today's file: daily/YYYY-MM-DD.md (owner timezone). Create it on\n first write of the day; afterwards APPEND. Never rewrite past days.\n- Sections (create on first write, append under them later):\n - ## Progress -- what moved today: submissions, approvals, deliveries, replies. Summarize movement, not status inventory.\n - ## Decisions -- substantive judgments made today (by the owner or agents)\n - ## Issues -- problems, risks, unanswered questions that surfaced today\n - ## Lesson candidates -- possible durable rules noticed today, each linking to an existing or proposed [[lessons/...]] page\n- Every bullet cites evidence: date + channel (e.g. \"07-10, kakao:room\"). No uncited claims.\n- Attribute people and rooms exactly as in the source; never merge a sender with a room name.\n\n## Lesson rules\n- One durable rule per page. A lesson is something that changes future behavior:\n a client's standing preference, a pricing/revision policy, a process rule, a\n failure pattern. One-off events and task states are NOT lessons.\n- Frontmatter via property:set: status (active | superseded), confidence (high | medium | low), last_verified (YYYY-MM-DD).\n- Page body: the rule in 1-3 sentences, then ## Evidence with dated entries.\n- Recurring evidence: APPEND one Evidence line and update last_verified. Do not duplicate the page.\n- Contradicted: set status to superseded, append why. NEVER delete a lesson.\n- Promote a lesson only when the pattern repeats OR the owner explicitly states a rule. Otherwise leave it as a daily-note lesson candidate.\n\n## MANDATORY Workflow\n1. agent_notices({limit: 100}): find the last wiki compile boundary.\n2. NOVELTY CHECK by recency, not semantics: mama_search({limit: 30}) with NO query\n returns the newest decisions in creation order regardless of language or\n wording. Semantic/lexical retrieval MISSES cross-language items, so never\n judge \"nothing new\" from a context_compile packet alone. Compare created_at\n against the boundary.\n3. If nothing substantive is newer than the boundary, respond NO_UPDATE and stop.\n4. context_compile with this exact task text: \"recent substantive project decisions, task progress, agent alerts, and major changes\" (limit 30, max_tool_calls 3, strictness \"balanced\").\n Do not include dashboard_briefing, wiki_compilation, system-audit, or audit-log labels in the task text; filter those operational summaries after the packet returns.\n Keep the returned packet_id/context_packet_id in your private notes for provenance; never invent one.\n The packet ENRICHES; the step-2 recency list is authoritative for WHAT is new.\n If the packet misses some new items, write from the recency list directly.\n If context_compile is unavailable (e.g. no active worker envelope), fall back to\n ONE queried mama_search for enrichment and continue from the recency list.\n5. Append today's daily note (read it first if it exists; create with the section skeleton if not).\n6. For each lesson candidate that qualifies for promotion: obsidian(\"search\") first; update the existing page or create one under the right lessons/ subfolder.\n7. Keep Home.md current: last 7 daily links + lessons grouped by subfolder.\n\n## Strict Limits\n- SYNTHESIZE, do not dump raw data.\n- mama_search is for the no-query recency check (step 2) plus at most one queried fallback when context_compile is unavailable.\n- Do NOT create pages outside daily/ and lessons/ (Home.md is the only root page).\n- Do NOT call mama_save; wiki files plus agent_activity are the durable record.\n- Do NOT ask follow-up questions.\n- After completing all operations, respond with: DONE\n\n## Fallback\nIf obsidian() calls fail with \"CLI unavailable\", use wiki_publish for the same\npages (path = the same relative path, e.g. \"daily/2026-07-10.md\").\nwiki_publish page type must be one of: entity, lesson, synthesis, process, daily.\nUse type \"daily\" for daily notes and \"lesson\" for lesson pages; do not probe\nother type values or create throwaway test pages.";
|
|
6
12
|
/**
|
|
7
13
|
* Ensure persona file exists at ~/.mama/personas/wiki.md
|
|
8
14
|
* Creates it from default if not present.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiki-agent-persona.d.ts","sourceRoot":"","sources":["../../src/multi-agent/wiki-agent-persona.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"wiki-agent-persona.d.ts","sourceRoot":"","sources":["../../src/multi-agent/wiki-agent-persona.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH,eAAO,MAAM,kBAAkB,8jMAwFmB,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,GAAE,MAAiC,GAAG,MAAM,CAsBxF"}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Default persona for the wiki agent.
|
|
4
4
|
* Written to ~/.mama/personas/wiki.md on first use if not present.
|
|
5
|
+
*
|
|
6
|
+
* v5: purpose narrowed to LESSONS + DAILY HISTORY. Current task state lives on
|
|
7
|
+
* the operator board (kagemusha_tasks is the truth source), so the wiki no
|
|
8
|
+
* longer mirrors per-task status into entity pages. Daily notes are an
|
|
9
|
+
* append-only journal; lesson pages are durable judgments that strengthen with
|
|
10
|
+
* recurring evidence and get superseded (never deleted) when contradicted.
|
|
5
11
|
*/
|
|
6
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
13
|
exports.WIKI_AGENT_PERSONA = void 0;
|
|
@@ -9,80 +15,96 @@ exports.ensureWikiPersona = ensureWikiPersona;
|
|
|
9
15
|
const fs_1 = require("fs");
|
|
10
16
|
const path_1 = require("path");
|
|
11
17
|
const os_1 = require("os");
|
|
12
|
-
const MANAGED_WIKI_PERSONA_MARKER = '<!-- MAMA managed wiki persona
|
|
18
|
+
const MANAGED_WIKI_PERSONA_MARKER = '<!-- MAMA managed wiki persona v5 -->';
|
|
13
19
|
exports.WIKI_AGENT_PERSONA = `${MANAGED_WIKI_PERSONA_MARKER}
|
|
14
20
|
|
|
15
|
-
You are MAMA's Wiki Compiler
|
|
21
|
+
You are MAMA's Wiki Compiler. The wiki has exactly TWO purposes:
|
|
22
|
+
1. DAILY HISTORY: an append-only journal of what actually happened each day.
|
|
23
|
+
2. LESSONS: durable judgments, policies, and patterns worth re-reading months later.
|
|
16
24
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
- Update existing pages with new information (append, not replace)
|
|
20
|
-
- Create new pages only when no existing page covers the topic
|
|
21
|
-
- Maintain consistent tags and clean up duplicates
|
|
25
|
+
It is NOT a task board. Current task state lives on the operator board; NEVER
|
|
26
|
+
create or update pages that mirror per-task progress ("X is in_progress").
|
|
22
27
|
|
|
23
|
-
##
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- append: Add to existing page. obsidian("append", {file: "projects/KMS", content: "## New Section\\n..."})
|
|
30
|
-
- prepend: Add to top of page. obsidian("prepend", {file: "...", content: "..."})
|
|
31
|
-
- move: Rename/move (auto-updates all backlinks). obsidian("move", {file: "old-name", to: "new-path"})
|
|
32
|
-
- delete: Trash a page. obsidian("delete", {file: "duplicates/Old"})
|
|
33
|
-
- find: List files. obsidian("find")
|
|
34
|
-
- property:set: Set frontmatter. obsidian("property:set", {file: "...", name: "compiled_at", value: "2026-04-09"})
|
|
35
|
-
- property:get: Read frontmatter. obsidian("property:get", {file: "...", name: "type"})
|
|
36
|
-
- tags: List all vault tags. obsidian("tags")
|
|
37
|
-
- tags:counts: Tag frequency. obsidian("tags:counts")
|
|
38
|
-
- tags:rename: Bulk rename tag. obsidian("tags:rename", {old: "meeting", new: "meetings"})
|
|
39
|
-
- backlinks: Pages linking to a file. obsidian("backlinks", {file: "projects/KMS"})
|
|
40
|
-
- js: Execute JS in Obsidian context. obsidian("js", {code: "app.vault.getFiles().length"})
|
|
41
|
-
- daily:append: Add to daily note. obsidian("daily:append", {content: "Wiki compiled"})
|
|
42
|
-
- **wiki_publish**(pages) — Fallback only. Used when Obsidian is not running.
|
|
43
|
-
|
|
44
|
-
## Page Types
|
|
45
|
-
- **entity**: Project/person/client page (projects/ folder)
|
|
46
|
-
- **lesson**: Extracted pattern or learning (lessons/ folder)
|
|
47
|
-
- **synthesis**: Cross-project analysis or weekly summary (synthesis/ folder)
|
|
48
|
-
- **process**: Workflow or procedure (process/ folder)
|
|
49
|
-
|
|
50
|
-
## MANDATORY Workflow
|
|
28
|
+
## Vault Layout (fixed -- do not invent new top-level folders)
|
|
29
|
+
- Home.md -- index: links to the last 7 daily notes and the lesson map
|
|
30
|
+
- daily/YYYY-MM-DD.md -- one page per day, append-only
|
|
31
|
+
- lessons/clients/<name>.md -- per-client policies, preferences, boundaries
|
|
32
|
+
- lessons/process/<slug>.md -- recurring workflow rules
|
|
33
|
+
- lessons/system/<slug>.md -- operational lessons about MAMA/agents themselves
|
|
51
34
|
|
|
52
|
-
|
|
53
|
-
|
|
35
|
+
## Language
|
|
36
|
+
- Write page CONTENT in Korean (proper nouns stay as-is). Markup and frontmatter keys stay English.
|
|
54
37
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
38
|
+
## Tools
|
|
39
|
+
- **context_compile**({task, limit?, max_tool_calls?, strictness?}) -- compile a scoped evidence packet for this update.
|
|
40
|
+
- **mama_search**(query, limit?) -- fallback search when context_compile is unavailable.
|
|
41
|
+
- **agent_notices**(limit?) -- find the last wiki compile boundary.
|
|
42
|
+
- **obsidian**(command, args) -- Obsidian vault CLI. Commands:
|
|
43
|
+
- search: obsidian("search", {query: "keywords", limit: "5"})
|
|
44
|
+
- read: obsidian("read", {path: "daily/2026-07-10.md"})
|
|
45
|
+
- create: obsidian("create", {path: "lessons/process/new-rule.md", content: "...", silent: "true"})
|
|
46
|
+
IMPORTANT: always pass path= with the full relative path INCLUDING .md; name= rejects "/".
|
|
47
|
+
- append: obsidian("append", {path: "daily/2026-07-10.md", content: "..."})
|
|
48
|
+
- move / delete: reorganize (delete only for true duplicates)
|
|
49
|
+
- find: list files. obsidian("find")
|
|
50
|
+
- property:set: frontmatter. obsidian("property:set", {file: "...", name: "status", value: "active"})
|
|
51
|
+
- backlinks: obsidian("backlinks", {file: "lessons/process/X"})
|
|
52
|
+
- **wiki_publish**(pages) -- fallback ONLY when the Obsidian CLI is unavailable.
|
|
62
53
|
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
## Daily note rules
|
|
55
|
+
- Target ONLY today's file: daily/YYYY-MM-DD.md (owner timezone). Create it on
|
|
56
|
+
first write of the day; afterwards APPEND. Never rewrite past days.
|
|
57
|
+
- Sections (create on first write, append under them later):
|
|
58
|
+
- ## Progress -- what moved today: submissions, approvals, deliveries, replies. Summarize movement, not status inventory.
|
|
59
|
+
- ## Decisions -- substantive judgments made today (by the owner or agents)
|
|
60
|
+
- ## Issues -- problems, risks, unanswered questions that surfaced today
|
|
61
|
+
- ## Lesson candidates -- possible durable rules noticed today, each linking to an existing or proposed [[lessons/...]] page
|
|
62
|
+
- Every bullet cites evidence: date + channel (e.g. "07-10, kakao:room"). No uncited claims.
|
|
63
|
+
- Attribute people and rooms exactly as in the source; never merge a sender with a room name.
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
-
|
|
65
|
+
## Lesson rules
|
|
66
|
+
- One durable rule per page. A lesson is something that changes future behavior:
|
|
67
|
+
a client's standing preference, a pricing/revision policy, a process rule, a
|
|
68
|
+
failure pattern. One-off events and task states are NOT lessons.
|
|
69
|
+
- Frontmatter via property:set: status (active | superseded), confidence (high | medium | low), last_verified (YYYY-MM-DD).
|
|
70
|
+
- Page body: the rule in 1-3 sentences, then ## Evidence with dated entries.
|
|
71
|
+
- Recurring evidence: APPEND one Evidence line and update last_verified. Do not duplicate the page.
|
|
72
|
+
- Contradicted: set status to superseded, append why. NEVER delete a lesson.
|
|
73
|
+
- Promote a lesson only when the pattern repeats OR the owner explicitly states a rule. Otherwise leave it as a daily-note lesson candidate.
|
|
70
74
|
|
|
71
|
-
##
|
|
72
|
-
1.
|
|
73
|
-
2.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
## MANDATORY Workflow
|
|
76
|
+
1. agent_notices({limit: 100}): find the last wiki compile boundary.
|
|
77
|
+
2. NOVELTY CHECK by recency, not semantics: mama_search({limit: 30}) with NO query
|
|
78
|
+
returns the newest decisions in creation order regardless of language or
|
|
79
|
+
wording. Semantic/lexical retrieval MISSES cross-language items, so never
|
|
80
|
+
judge "nothing new" from a context_compile packet alone. Compare created_at
|
|
81
|
+
against the boundary.
|
|
82
|
+
3. If nothing substantive is newer than the boundary, respond NO_UPDATE and stop.
|
|
83
|
+
4. context_compile with this exact task text: "recent substantive project decisions, task progress, agent alerts, and major changes" (limit 30, max_tool_calls 3, strictness "balanced").
|
|
84
|
+
Do not include dashboard_briefing, wiki_compilation, system-audit, or audit-log labels in the task text; filter those operational summaries after the packet returns.
|
|
85
|
+
Keep the returned packet_id/context_packet_id in your private notes for provenance; never invent one.
|
|
86
|
+
The packet ENRICHES; the step-2 recency list is authoritative for WHAT is new.
|
|
87
|
+
If the packet misses some new items, write from the recency list directly.
|
|
88
|
+
If context_compile is unavailable (e.g. no active worker envelope), fall back to
|
|
89
|
+
ONE queried mama_search for enrichment and continue from the recency list.
|
|
90
|
+
5. Append today's daily note (read it first if it exists; create with the section skeleton if not).
|
|
91
|
+
6. For each lesson candidate that qualifies for promotion: obsidian("search") first; update the existing page or create one under the right lessons/ subfolder.
|
|
92
|
+
7. Keep Home.md current: last 7 daily links + lessons grouped by subfolder.
|
|
79
93
|
|
|
80
94
|
## Strict Limits
|
|
81
|
-
-
|
|
95
|
+
- SYNTHESIZE, do not dump raw data.
|
|
96
|
+
- mama_search is for the no-query recency check (step 2) plus at most one queried fallback when context_compile is unavailable.
|
|
97
|
+
- Do NOT create pages outside daily/ and lessons/ (Home.md is the only root page).
|
|
98
|
+
- Do NOT call mama_save; wiki files plus agent_activity are the durable record.
|
|
99
|
+
- Do NOT ask follow-up questions.
|
|
82
100
|
- After completing all operations, respond with: DONE
|
|
83
101
|
|
|
84
102
|
## Fallback
|
|
85
|
-
If obsidian() calls fail with "CLI unavailable",
|
|
103
|
+
If obsidian() calls fail with "CLI unavailable", use wiki_publish for the same
|
|
104
|
+
pages (path = the same relative path, e.g. "daily/2026-07-10.md").
|
|
105
|
+
wiki_publish page type must be one of: entity, lesson, synthesis, process, daily.
|
|
106
|
+
Use type "daily" for daily notes and "lesson" for lesson pages; do not probe
|
|
107
|
+
other type values or create throwaway test pages.`;
|
|
86
108
|
/**
|
|
87
109
|
* Ensure persona file exists at ~/.mama/personas/wiki.md
|
|
88
110
|
* Creates it from default if not present.
|
|
@@ -98,7 +120,7 @@ function ensureWikiPersona(mamaHomeDir = (0, path_1.join)((0, os_1.homedir)(), '
|
|
|
98
120
|
return personaPath;
|
|
99
121
|
}
|
|
100
122
|
const existingContent = (0, fs_1.readFileSync)(personaPath, 'utf-8');
|
|
101
|
-
if (existingContent.includes(
|
|
123
|
+
if (existingContent.includes('<!-- MAMA managed wiki persona') &&
|
|
102
124
|
existingContent !== exports.WIKI_AGENT_PERSONA) {
|
|
103
125
|
(0, fs_1.writeFileSync)(personaPath, exports.WIKI_AGENT_PERSONA, 'utf-8');
|
|
104
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiki-agent-persona.js","sourceRoot":"","sources":["../../src/multi-agent/wiki-agent-persona.ts"],"names":[],"mappings":";AAAA;;;
|
|
1
|
+
{"version":3,"file":"wiki-agent-persona.js","sourceRoot":"","sources":["../../src/multi-agent/wiki-agent-persona.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAsGH,8CAsBC;AA1HD,2BAAwE;AACxE,+BAA4B;AAC5B,2BAA6B;AAE7B,MAAM,2BAA2B,GAAG,uCAAuC,CAAC;AAE/D,QAAA,kBAAkB,GAAG,GAAG,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAwFd,CAAC;AAEnD;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,cAAsB,IAAA,WAAI,EAAC,IAAA,YAAO,GAAE,EAAE,OAAO,CAAC;IAC9E,MAAM,UAAU,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,IAAA,WAAI,EAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IAEhD,IAAI,CAAC,IAAA,eAAU,EAAC,UAAU,CAAC,EAAE,CAAC;QAC5B,IAAA,cAAS,EAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED,IAAI,CAAC,IAAA,eAAU,EAAC,WAAW,CAAC,EAAE,CAAC;QAC7B,IAAA,kBAAa,EAAC,WAAW,EAAE,0BAAkB,EAAE,OAAO,CAAC,CAAC;QACxD,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,MAAM,eAAe,GAAG,IAAA,iBAAY,EAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3D,IACE,eAAe,CAAC,QAAQ,CAAC,gCAAgC,CAAC;QAC1D,eAAe,KAAK,0BAAkB,EACtC,CAAC;QACD,IAAA,kBAAa,EAAC,WAAW,EAAE,0BAAkB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Type definitions for workflow DAGs dynamically generated
|
|
5
5
|
* by Conductor based on user intent analysis.
|
|
6
6
|
*/
|
|
7
|
-
export type AgentBackend = 'claude' | 'codex
|
|
7
|
+
export type AgentBackend = 'claude' | 'codex' | 'codex-mcp';
|
|
8
8
|
/**
|
|
9
9
|
* Ephemeral agent definition dynamically created by Conductor
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-types.d.ts","sourceRoot":"","sources":["../../src/multi-agent/workflow-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"workflow-types.d.ts","sourceRoot":"","sources":["../../src/multi-agent/workflow-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,iEAAiE;IACjE,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB;IACtB,OAAO,EAAE,YAAY,CAAC;IACtB,eAAe;IACf,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,gCAAgC;IAChC,gBAAgB,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CAC/D;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,qCAAqC;IACrC,KAAK,EAAE,iBAAiB,CAAC;IACzB,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,KAAK,EAAE,YAAY,EAA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,CAAC;IACzD,MAAM,EAAE,kBAAkB,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,0BAA0B;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EACA,uBAAuB,GACvB,yBAAyB,GACzB,sBAAsB,GACtB,mBAAmB,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared board-authoring vocabulary (Kagemusha mechanism port).
|
|
3
|
+
*
|
|
4
|
+
* Every report producer (dashboard agent persona, its scheduled prompt, the
|
|
5
|
+
* trigger loop's scheduled full report) injects THESE lines so the operator
|
|
6
|
+
* board at /ui receives the same 4-slot, card-based HTML regardless of which
|
|
7
|
+
* agent wrote it. The classes are styled by ui/src/styles/global.css --
|
|
8
|
+
* agents write structure, the board owns look.
|
|
9
|
+
*
|
|
10
|
+
* Generic mechanism only: no personal strings, English source; the agent is
|
|
11
|
+
* told to write CONTENT in the owner's language.
|
|
12
|
+
*/
|
|
13
|
+
export declare const BOARD_SLOT_ORDER: readonly ["briefing", "action_required", "decisions", "pipeline"];
|
|
14
|
+
/** The exact HTML shapes the board stylesheet understands. */
|
|
15
|
+
export declare function buildBoardHtmlVocabulary(): string[];
|
|
16
|
+
/** Instruction block that makes a report run also publish the board slots. */
|
|
17
|
+
export declare function buildBoardPublishLines(): string[];
|
|
18
|
+
//# sourceMappingURL=board-slot-instructions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"board-slot-instructions.d.ts","sourceRoot":"","sources":["../../src/operator/board-slot-instructions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,gBAAgB,mEAAoE,CAAC;AAElG,8DAA8D;AAC9D,wBAAgB,wBAAwB,IAAI,MAAM,EAAE,CAenD;AAED,8EAA8E;AAC9E,wBAAgB,sBAAsB,IAAI,MAAM,EAAE,CAcjD"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Shared board-authoring vocabulary (Kagemusha mechanism port).
|
|
4
|
+
*
|
|
5
|
+
* Every report producer (dashboard agent persona, its scheduled prompt, the
|
|
6
|
+
* trigger loop's scheduled full report) injects THESE lines so the operator
|
|
7
|
+
* board at /ui receives the same 4-slot, card-based HTML regardless of which
|
|
8
|
+
* agent wrote it. The classes are styled by ui/src/styles/global.css --
|
|
9
|
+
* agents write structure, the board owns look.
|
|
10
|
+
*
|
|
11
|
+
* Generic mechanism only: no personal strings, English source; the agent is
|
|
12
|
+
* told to write CONTENT in the owner's language.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.BOARD_SLOT_ORDER = void 0;
|
|
16
|
+
exports.buildBoardHtmlVocabulary = buildBoardHtmlVocabulary;
|
|
17
|
+
exports.buildBoardPublishLines = buildBoardPublishLines;
|
|
18
|
+
exports.BOARD_SLOT_ORDER = ['briefing', 'action_required', 'decisions', 'pipeline'];
|
|
19
|
+
/** The exact HTML shapes the board stylesheet understands. */
|
|
20
|
+
function buildBoardHtmlVocabulary() {
|
|
21
|
+
return [
|
|
22
|
+
'Slot HTML must use ONLY this class vocabulary (the board styles it; inline styles are unnecessary):',
|
|
23
|
+
'- Summary header: <div class="report-summary"><div class="summary-title">TITLE</div>',
|
|
24
|
+
' <div class="summary-stats">label <span class="stat-highlight">N</span> / label <span class="stat-highlight">N</span></div></div>',
|
|
25
|
+
'- Section heading: <div class="report-section-title">HEADING</div>',
|
|
26
|
+
'- Item card: <div class="report-card"><div class="card-header"><div class="card-title">TITLE</div>',
|
|
27
|
+
' <span class="card-badge badge-warning">STATE</span></div>',
|
|
28
|
+
' <div class="card-tags"><span class="tag tag-channel">CHANNEL</span></div>',
|
|
29
|
+
' <div class="card-action">CONCRETE NEXT ACTION</div></div>',
|
|
30
|
+
'- Badge classes by state: badge-danger (blocked/overdue), badge-warning (waiting/needs confirmation),',
|
|
31
|
+
' badge-info (in progress), badge-success (done/quiet).',
|
|
32
|
+
'- Pipeline table: <table class="report-table"><thead><tr><th>...</th></tr></thead><tbody>rows</tbody></table>',
|
|
33
|
+
'No <script>, <iframe>, or event handlers: the board sanitizes them out and the CSP blocks them.',
|
|
34
|
+
];
|
|
35
|
+
}
|
|
36
|
+
/** Instruction block that makes a report run also publish the board slots. */
|
|
37
|
+
function buildBoardPublishLines() {
|
|
38
|
+
return [
|
|
39
|
+
'BEFORE writing your text report, update the operator board: call the report_publish',
|
|
40
|
+
'gateway tool EXACTLY once with ALL four slots:',
|
|
41
|
+
' report_publish({ slots: { briefing: "<html>", action_required: "<html>", decisions: "<html>", pipeline: "<html>" } })',
|
|
42
|
+
'- briefing: one report-summary block (title + stat highlights), then up to 4 item cards for the key situations.',
|
|
43
|
+
'- action_required: a report-section-title, then up to 5 cards; every card-action states the concrete next step.',
|
|
44
|
+
'- decisions: cards for items waiting on an owner decision or confirmation; omit filler when none exist,',
|
|
45
|
+
' but still publish the slot with a one-line quiet note.',
|
|
46
|
+
'- pipeline: one report-table of workstreams with their current state.',
|
|
47
|
+
...buildBoardHtmlVocabulary(),
|
|
48
|
+
"Write all slot CONTENT in the owner's language (match the channels); keep each slot under 6KB.",
|
|
49
|
+
'The plain-text report you write afterwards is a separate output: no HTML in it.',
|
|
50
|
+
];
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=board-slot-instructions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"board-slot-instructions.js","sourceRoot":"","sources":["../../src/operator/board-slot-instructions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAKH,4DAeC;AAGD,wDAcC;AAnCY,QAAA,gBAAgB,GAAG,CAAC,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAU,CAAC;AAElG,8DAA8D;AAC9D,SAAgB,wBAAwB;IACtC,OAAO;QACL,qGAAqG;QACrG,sFAAsF;QACtF,oIAAoI;QACpI,oEAAoE;QACpE,oGAAoG;QACpG,6DAA6D;QAC7D,6EAA6E;QAC7E,6DAA6D;QAC7D,uGAAuG;QACvG,yDAAyD;QACzD,+GAA+G;QAC/G,iGAAiG;KAClG,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,SAAgB,sBAAsB;IACpC,OAAO;QACL,qFAAqF;QACrF,gDAAgD;QAChD,yHAAyH;QACzH,iHAAiH;QACjH,iHAAiH;QACjH,yGAAyG;QACzG,0DAA0D;QAC1D,uEAAuE;QACvE,GAAG,wBAAwB,EAAE;QAC7B,gGAAgG;QAChG,iFAAiF;KAClF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ConnectorDeltaRepo - the real delta source for the trigger loop (M1-T1).
|
|
3
|
+
*
|
|
4
|
+
* Reads connector_event_index (mama-core main DB; migration 030:523-543): content, author,
|
|
5
|
+
* channel are INLINE columns - no source_id/raw-store join. Ordering uses operator_ingest_seq,
|
|
6
|
+
* which is PER-(source_connector, COALESCE(channel,'')) (migration 039), so this repo keeps a
|
|
7
|
+
* per-partition read-cursor map persisted as JSON under ~/.mama - deliberately DISJOINT from
|
|
8
|
+
* both the DB's own insert-assignment cursor table (connector_event_index_operator_seq_cursors)
|
|
9
|
+
* and vNext's vnext_operator_cursors. At-least-once: drainNew() re-delivers until commit().
|
|
10
|
+
*
|
|
11
|
+
* OperatorChannelEvent.id = SQLite rowid (global integer, satisfies the interface);
|
|
12
|
+
* eventIndexId carries the stable TEXT PK for provenance.
|
|
13
|
+
*/
|
|
14
|
+
import type { OperatorChannelEvent } from './operator-interfaces.js';
|
|
15
|
+
/** Minimal structural DB interface - satisfied by both the standalone sqlite wrapper and the mama-core adapter. */
|
|
16
|
+
export interface DeltaDbLike {
|
|
17
|
+
prepare(sql: string): {
|
|
18
|
+
all: (...params: unknown[]) => unknown[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare class ConnectorDeltaRepo {
|
|
22
|
+
private db;
|
|
23
|
+
private cursorPath;
|
|
24
|
+
private cursors;
|
|
25
|
+
/** rowid -> partition/seq of events handed out by drainNew, awaiting commit. */
|
|
26
|
+
private pending;
|
|
27
|
+
constructor(db: DeltaDbLike, cursorPath: string);
|
|
28
|
+
/** Drain up to `limitPerPartition` new events from EACH (connector, channel) partition. */
|
|
29
|
+
drainNew(limitPerPartition: number): OperatorChannelEvent[];
|
|
30
|
+
/** Advance per-partition cursors past the given (processed) events and persist. */
|
|
31
|
+
commit(events: OperatorChannelEvent[]): void;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=connector-delta-repo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-delta-repo.d.ts","sourceRoot":"","sources":["../../src/operator/connector-delta-repo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,mHAAmH;AACnH,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE,KAAK,OAAO,EAAE,CAAA;KAAE,CAAC;CACpE;AAmBD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,EAAE,CAAc;IACxB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,OAAO,CAAY;IAC3B,gFAAgF;IAChF,OAAO,CAAC,OAAO,CAAmD;gBAEtD,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM;IAM/C,2FAA2F;IAC3F,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,oBAAoB,EAAE;IAyC3D,mFAAmF;IACnF,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,GAAG,IAAI;CAa7C"}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-delta-repo.js","sourceRoot":"","sources":["../../src/operator/connector-delta-repo.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAEH,qCAAyF;AACzF,yCAA0C;AAqB1C,SAAS,YAAY,CAAC,SAAiB,EAAE,OAAe;IACtD,OAAO,GAAG,SAAS,IAAI,OAAO,EAAE,CAAC;AACnC,CAAC;AAED,MAAa,kBAAkB;IACrB,EAAE,CAAc;IAChB,UAAU,CAAS;IACnB,OAAO,CAAY;IAC3B,gFAAgF;IACxE,OAAO,GAAG,IAAI,GAAG,EAAwC,CAAC;IAElE,YAAY,EAAe,EAAE,UAAkB;QAC7C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IAED,2FAA2F;IAC3F,QAAQ,CAAC,iBAAyB;QAChC,2DAA2D;QAC3D,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE;aACvB,OAAO,CACN;oCAC4B,CAC7B;aACA,GAAG,EAA8C,CAAC;QAErD,MAAM,MAAM,GAA2B,EAAE,CAAC;QAC1C,KAAK,MAAM,CAAC,IAAI,UAAU,EAAE,CAAC;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;IACpD,IAAA,oBAAU,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,iBAAiB;AAC1C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* createMamaMemoryPort - the real OperatorMemoryPort binding (M1-T0).
|
|
3
|
+
*
|
|
4
|
+
* recall -> mama-core recallMemory (memory/api.ts:1118), mapping RecallBundle.memories
|
|
5
|
+
* (MemoryRecord: topic + summary) into the port's {topic, content} shape.
|
|
6
|
+
* save -> mama-core saveMemory (operator-authored notes; decision kind, global scope).
|
|
7
|
+
*
|
|
8
|
+
* Pure adapter: no judgment, no filtering beyond the mechanical mapping. The agent's
|
|
9
|
+
* memoryQuery decides what is recalled (trigger-fire.ts).
|
|
10
|
+
*/
|
|
11
|
+
import type { OperatorMemoryPort } from './operator-interfaces.js';
|
|
12
|
+
export declare function createMamaMemoryPort(): OperatorMemoryPort;
|
|
13
|
+
//# sourceMappingURL=mama-memory-port.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mama-memory-port.d.ts","sourceRoot":"","sources":["../../src/operator/mama-memory-port.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,wBAAgB,oBAAoB,IAAI,kBAAkB,CAoBzD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* createMamaMemoryPort - the real OperatorMemoryPort binding (M1-T0).
|
|
4
|
+
*
|
|
5
|
+
* recall -> mama-core recallMemory (memory/api.ts:1118), mapping RecallBundle.memories
|
|
6
|
+
* (MemoryRecord: topic + summary) into the port's {topic, content} shape.
|
|
7
|
+
* save -> mama-core saveMemory (operator-authored notes; decision kind, global scope).
|
|
8
|
+
*
|
|
9
|
+
* Pure adapter: no judgment, no filtering beyond the mechanical mapping. The agent's
|
|
10
|
+
* memoryQuery decides what is recalled (trigger-fire.ts).
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.createMamaMemoryPort = createMamaMemoryPort;
|
|
14
|
+
const mama_core_1 = require("@jungjaehoon/mama-core");
|
|
15
|
+
function createMamaMemoryPort() {
|
|
16
|
+
return {
|
|
17
|
+
async recall(query, opts) {
|
|
18
|
+
const bundle = await (0, mama_core_1.recallMemory)(query, { limit: opts?.limit ?? 5 });
|
|
19
|
+
return bundle.memories.map((m) => ({ topic: m.topic, content: m.summary }));
|
|
20
|
+
},
|
|
21
|
+
async save(input) {
|
|
22
|
+
await (0, mama_core_1.saveMemory)({
|
|
23
|
+
topic: input.topic,
|
|
24
|
+
kind: 'decision',
|
|
25
|
+
summary: input.content,
|
|
26
|
+
details: input.content,
|
|
27
|
+
scopes: input.scopes ?? [
|
|
28
|
+
{ kind: 'global', id: 'global' },
|
|
29
|
+
],
|
|
30
|
+
source: { package: 'standalone', source_type: 'operator-trigger-loop' },
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=mama-memory-port.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mama-memory-port.js","sourceRoot":"","sources":["../../src/operator/mama-memory-port.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;AAKH,oDAoBC;AAvBD,sDAAkE;AAGlE,SAAgB,oBAAoB;IAClC,OAAO;QACL,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI;YACtB,MAAM,MAAM,GAAG,MAAM,IAAA,wBAAY,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC,CAAC;YACtE,OAAO,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QAC9E,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,KAAK;YACd,MAAM,IAAA,sBAAU,EAAC;gBACf,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,MAAM,EAAG,KAAK,CAAC,MAAwF,IAAI;oBACzG,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE;iBACjC;gBACD,MAAM,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,uBAAuB,EAAE;aACxE,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|