@happycastle/oh-my-openclaw 0.12.1 → 0.12.2

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16,6 +16,7 @@ import { registerPersonaCommands } from './commands/persona-commands.js';
16
16
  import { registerPersonaInjector } from './hooks/persona-injector.js';
17
17
  import { registerContextInjector } from './hooks/context-injector.js';
18
18
  import { registerSetupCli } from './cli/setup.js';
19
+ let initialized = false;
19
20
  const registry = {
20
21
  hooks: [],
21
22
  services: [],
@@ -24,6 +25,11 @@ const registry = {
24
25
  cli: [],
25
26
  };
26
27
  export default function register(api) {
28
+ if (initialized) {
29
+ api.logger.warn(`[${PLUGIN_ID}] Plugin already initialized — skipping duplicate register() call`);
30
+ return;
31
+ }
32
+ initialized = true;
27
33
  const config = getConfig(api);
28
34
  api.logger.info(`[${PLUGIN_ID}] Initializing plugin v${VERSION}`);
29
35
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happycastle/oh-my-openclaw",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "Oh-My-OpenClaw plugin — multi-agent orchestration, todo enforcer, ralph loop, and custom tools for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",