@alfe.ai/openclaw-webhooks 0.0.8 → 0.0.10
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/plugin.cjs +1 -4
- package/dist/plugin.d.cts +1 -0
- package/dist/plugin.d.ts +1 -0
- package/dist/plugin.js +1 -4
- package/package.json +1 -1
package/dist/plugin.cjs
CHANGED
|
@@ -52,10 +52,7 @@ const plugin = {
|
|
|
52
52
|
version: "0.1.0",
|
|
53
53
|
activate(api) {
|
|
54
54
|
const log = api.logger;
|
|
55
|
-
if (
|
|
56
|
-
log.debug("Management command context — skipping webhooks resource init");
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
55
|
+
if (api.registrationMode && api.registrationMode !== "full") return;
|
|
59
56
|
const alreadyActivated = globalThis.__alfeWebhooksPluginActivated === true;
|
|
60
57
|
globalThis.__alfeWebhooksPluginActivated = true;
|
|
61
58
|
if (alreadyActivated) log.debug("Alfe Webhooks plugin re-registering gateway methods");
|
package/dist/plugin.d.cts
CHANGED
|
@@ -28,6 +28,7 @@ interface OpenClawConfig {
|
|
|
28
28
|
}
|
|
29
29
|
interface OpenClawPluginApi {
|
|
30
30
|
logger: Logger;
|
|
31
|
+
registrationMode?: 'full' | 'setup-only' | 'setup-runtime' | 'cli-metadata';
|
|
31
32
|
config?: OpenClawConfig;
|
|
32
33
|
registerGatewayMethod?(name: string, handler: (...args: unknown[]) => Promise<unknown>): void;
|
|
33
34
|
on(event: string, handler: (...args: unknown[]) => void | Promise<void>, options?: {
|
package/dist/plugin.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ interface OpenClawConfig {
|
|
|
28
28
|
}
|
|
29
29
|
interface OpenClawPluginApi {
|
|
30
30
|
logger: Logger;
|
|
31
|
+
registrationMode?: 'full' | 'setup-only' | 'setup-runtime' | 'cli-metadata';
|
|
31
32
|
config?: OpenClawConfig;
|
|
32
33
|
registerGatewayMethod?(name: string, handler: (...args: unknown[]) => Promise<unknown>): void;
|
|
33
34
|
on(event: string, handler: (...args: unknown[]) => void | Promise<void>, options?: {
|
package/dist/plugin.js
CHANGED
|
@@ -52,10 +52,7 @@ const plugin = {
|
|
|
52
52
|
version: "0.1.0",
|
|
53
53
|
activate(api) {
|
|
54
54
|
const log = api.logger;
|
|
55
|
-
if (
|
|
56
|
-
log.debug("Management command context — skipping webhooks resource init");
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
55
|
+
if (api.registrationMode && api.registrationMode !== "full") return;
|
|
59
56
|
const alreadyActivated = globalThis.__alfeWebhooksPluginActivated === true;
|
|
60
57
|
globalThis.__alfeWebhooksPluginActivated = true;
|
|
61
58
|
if (alreadyActivated) log.debug("Alfe Webhooks plugin re-registering gateway methods");
|