@alfe.ai/openclaw-remote 0.0.0 → 0.0.1
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/index.cjs +7 -2
- package/dist/index.d.cts +44 -1
- package/dist/index.d.ts +44 -1
- package/dist/index.js +2 -2
- package/dist/plugin.cjs +2 -304
- package/dist/plugin.d.cts +4 -0
- package/dist/plugin.d.ts +4 -0
- package/dist/plugin.js +1 -304
- package/dist/plugin2.cjs +423 -0
- package/dist/plugin2.js +412 -0
- package/package.json +16 -6
package/dist/plugin2.cjs
ADDED
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
let _alfe_ai_config = require("@alfe.ai/config");
|
|
2
|
+
let _alfe_ai_agent_api_client = require("@alfe.ai/agent-api-client");
|
|
3
|
+
let _alfe_ai_remote = require("@alfe.ai/remote");
|
|
4
|
+
let _alfe_ai_browser = require("@alfe.ai/browser");
|
|
5
|
+
let _alfe_ai_terminal = require("@alfe.ai/terminal");
|
|
6
|
+
let node_module = require("node:module");
|
|
7
|
+
//#region src/ssrf.ts
|
|
8
|
+
/** Hostnames blocked outright (case-insensitive, exact match). */
|
|
9
|
+
const BLOCKED_HOSTNAMES = new Set(["localhost"]);
|
|
10
|
+
/** Hostname suffixes blocked outright (internal service discovery names). */
|
|
11
|
+
const BLOCKED_HOST_SUFFIXES = [".internal", ".local"];
|
|
12
|
+
/** Parse a dotted-quad IPv4 literal into its four octets, or null. */
|
|
13
|
+
function parseIpv4(host) {
|
|
14
|
+
const parts = host.split(".");
|
|
15
|
+
if (parts.length !== 4) return null;
|
|
16
|
+
const octets = [];
|
|
17
|
+
for (const part of parts) {
|
|
18
|
+
if (!/^\d{1,3}$/.test(part)) return null;
|
|
19
|
+
const n = Number(part);
|
|
20
|
+
if (n > 255) return null;
|
|
21
|
+
octets.push(n);
|
|
22
|
+
}
|
|
23
|
+
return octets;
|
|
24
|
+
}
|
|
25
|
+
/** Is this IPv4 literal private, loopback, link-local, or otherwise reserved? */
|
|
26
|
+
function isPrivateOrReservedIpv4(host) {
|
|
27
|
+
const octets = parseIpv4(host);
|
|
28
|
+
if (!octets) return false;
|
|
29
|
+
const [a, b] = octets;
|
|
30
|
+
if (a === 0) return true;
|
|
31
|
+
if (a === 10) return true;
|
|
32
|
+
if (a === 127) return true;
|
|
33
|
+
if (a === 169 && b === 254) return true;
|
|
34
|
+
if (a === 172 && b >= 16 && b <= 31) return true;
|
|
35
|
+
if (a === 192 && b === 168) return true;
|
|
36
|
+
if (a === 100 && b >= 64 && b <= 127) return true;
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
/** Is this IPv6 literal (brackets already stripped) loopback/private/link-local? */
|
|
40
|
+
function isPrivateOrReservedIpv6(host) {
|
|
41
|
+
const h = host.toLowerCase();
|
|
42
|
+
if (h === "::1" || h === "::") return true;
|
|
43
|
+
const mapped = /^::ffff:(.+)$/.exec(h);
|
|
44
|
+
if (mapped) {
|
|
45
|
+
const rest = mapped[1];
|
|
46
|
+
if (rest.includes(".")) return isPrivateOrReservedIpv4(rest);
|
|
47
|
+
const groups = rest.split(":");
|
|
48
|
+
if (groups.length === 2 && groups.every((g) => /^[0-9a-f]{1,4}$/.test(g))) {
|
|
49
|
+
const g1 = parseInt(groups[0], 16);
|
|
50
|
+
const g2 = parseInt(groups[1], 16);
|
|
51
|
+
return isPrivateOrReservedIpv4([
|
|
52
|
+
g1 >> 8 & 255,
|
|
53
|
+
g1 & 255,
|
|
54
|
+
g2 >> 8 & 255,
|
|
55
|
+
g2 & 255
|
|
56
|
+
].join("."));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (/^f[cd][0-9a-f]*:/.test(h)) return true;
|
|
60
|
+
if (/^fe[89ab][0-9a-f]*:/.test(h)) return true;
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Build the navigation predicate for a given SSRF policy. When
|
|
65
|
+
* `dangerouslyAllowPrivateNetwork` is true the predicate is allow-all
|
|
66
|
+
* (matching the `alfe` integration's current default); otherwise it blocks
|
|
67
|
+
* the reserved ranges above and any non-http(s) scheme.
|
|
68
|
+
*/
|
|
69
|
+
function buildIsNavigationAllowed(policy, log) {
|
|
70
|
+
const allowPrivate = policy?.dangerouslyAllowPrivateNetwork === true;
|
|
71
|
+
const block = (rawUrl) => {
|
|
72
|
+
log?.warn(`SSRF policy blocked navigation to ${rawUrl}`);
|
|
73
|
+
return false;
|
|
74
|
+
};
|
|
75
|
+
return (rawUrl) => {
|
|
76
|
+
let url;
|
|
77
|
+
try {
|
|
78
|
+
url = new URL(rawUrl);
|
|
79
|
+
} catch {
|
|
80
|
+
return block(rawUrl);
|
|
81
|
+
}
|
|
82
|
+
if (url.protocol !== "http:" && url.protocol !== "https:") return block(rawUrl);
|
|
83
|
+
if (allowPrivate) return true;
|
|
84
|
+
const host = url.hostname.toLowerCase().replace(/^\[|\]$/g, "");
|
|
85
|
+
if (BLOCKED_HOSTNAMES.has(host)) return block(rawUrl);
|
|
86
|
+
if (BLOCKED_HOST_SUFFIXES.some((s) => host.endsWith(s))) return block(rawUrl);
|
|
87
|
+
if (parseIpv4(host)) {
|
|
88
|
+
if (isPrivateOrReservedIpv4(host)) return block(rawUrl);
|
|
89
|
+
} else if (host.includes(":")) {
|
|
90
|
+
if (isPrivateOrReservedIpv6(host)) return block(rawUrl);
|
|
91
|
+
}
|
|
92
|
+
return true;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/plugin.ts
|
|
97
|
+
/**
|
|
98
|
+
* @alfe.ai/openclaw-remote — OpenClaw plugin for the interactive remote-control
|
|
99
|
+
* relay. Owns one outbound WS to the relay and routes per-session frames to the
|
|
100
|
+
* browser co-browse surface (@alfe.ai/browser) or the web terminal surface
|
|
101
|
+
* (@alfe.ai/terminal). Registers the agent-callable browser tools, including
|
|
102
|
+
* `request_browser_takeover` ("help me complete these").
|
|
103
|
+
*
|
|
104
|
+
* Follows the established Alfe plugin shape (see @alfe.ai/openclaw-webhooks):
|
|
105
|
+
* tools register on every activate(); the long-lived connection is guarded and
|
|
106
|
+
* created inside registerService.start.
|
|
107
|
+
*/
|
|
108
|
+
const pkg = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href)("../package.json");
|
|
109
|
+
const ACTIVATED_KEY = "__alfeRemotePluginActivated";
|
|
110
|
+
const DEFAULT_HANDOFF_TIMEOUT_MS = 600 * 1e3;
|
|
111
|
+
const DEFAULT_CHROME_PATH = "/usr/bin/google-chrome-stable";
|
|
112
|
+
/**
|
|
113
|
+
* Derive the relay WebSocket URL from the agent's cloud apiUrl when the
|
|
114
|
+
* manifest doesn't provide one — mirrors @alfe.ai/console-client's
|
|
115
|
+
* `deriveConsoleWsUrl` so the URL is per-stage automatically:
|
|
116
|
+
* https://api.dev.alfe.ai → wss://remote.dev.alfe.ai/ws
|
|
117
|
+
* (matches config.flyDomains.remote per stage). This is why the
|
|
118
|
+
* headless-browser integration manifest carries no hardcoded, prod-pinned
|
|
119
|
+
* `remoteWsUrl`: the plugin resolves it from the agent's own endpoint.
|
|
120
|
+
*/
|
|
121
|
+
function deriveRemoteWsUrl(apiUrl) {
|
|
122
|
+
try {
|
|
123
|
+
return `wss://${new URL(apiUrl).hostname.replace("api.", "remote.")}/ws`;
|
|
124
|
+
} catch {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
let remoteClient = null;
|
|
129
|
+
let browserSurface = null;
|
|
130
|
+
let terminalSurface = null;
|
|
131
|
+
let apiClient = null;
|
|
132
|
+
let handoffTimeoutMs = DEFAULT_HANDOFF_TIMEOUT_MS;
|
|
133
|
+
const sessionSurfaces = /* @__PURE__ */ new Map();
|
|
134
|
+
function g() {
|
|
135
|
+
return globalThis;
|
|
136
|
+
}
|
|
137
|
+
/** Coerce an unknown tool param to a string (empty if not a string). */
|
|
138
|
+
function asStr(v) {
|
|
139
|
+
return typeof v === "string" ? v : "";
|
|
140
|
+
}
|
|
141
|
+
/** Coerce an unknown tool param to a string or undefined. */
|
|
142
|
+
function optStr(v) {
|
|
143
|
+
return typeof v === "string" ? v : void 0;
|
|
144
|
+
}
|
|
145
|
+
/** Route an inbound relay frame to the owning surface by session. */
|
|
146
|
+
function dispatchFrame(frame, log) {
|
|
147
|
+
if (frame.type === _alfe_ai_remote.RemoteFrameType.SESSION_OPEN) {
|
|
148
|
+
const open = (0, _alfe_ai_remote.decodeJson)(frame.payload);
|
|
149
|
+
if (!open) return;
|
|
150
|
+
const handler = open.surface === "terminal" ? terminalSurface : browserSurface;
|
|
151
|
+
if (!handler) {
|
|
152
|
+
log.warn(`No handler for surface ${open.surface}`);
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
sessionSurfaces.set(frame.sessionId, open.surface);
|
|
156
|
+
Promise.resolve(handler.openSession(frame.sessionId, open)).catch((err) => {
|
|
157
|
+
log.warn(`openSession failed: ${err.message}`);
|
|
158
|
+
});
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
const surface = sessionSurfaces.get(frame.sessionId);
|
|
162
|
+
const handler = surface === "terminal" ? terminalSurface : surface === "browser" ? browserSurface : null;
|
|
163
|
+
if (!handler) return;
|
|
164
|
+
if (frame.type === _alfe_ai_remote.RemoteFrameType.SESSION_CLOSE) {
|
|
165
|
+
handler.closeSession(frame.sessionId);
|
|
166
|
+
sessionSurfaces.delete(frame.sessionId);
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
handler.handleFrame(frame);
|
|
170
|
+
}
|
|
171
|
+
function startService(pluginConfig, ssrfPolicy, workspaceDir, log) {
|
|
172
|
+
if (g()[ACTIVATED_KEY] === true) {
|
|
173
|
+
log.debug("Alfe Remote plugin already activated — skipping duplicate");
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
g()[ACTIVATED_KEY] = true;
|
|
177
|
+
let alfeConfig = null;
|
|
178
|
+
try {
|
|
179
|
+
alfeConfig = (0, _alfe_ai_config.resolveConfig)();
|
|
180
|
+
} catch {
|
|
181
|
+
log.info("Could not resolve Alfe config — remote plugin idle");
|
|
182
|
+
}
|
|
183
|
+
const apiKey = alfeConfig?.apiKey;
|
|
184
|
+
const apiUrl = alfeConfig?.apiUrl;
|
|
185
|
+
const wsUrl = pluginConfig.remoteWsUrl ?? (apiUrl ? deriveRemoteWsUrl(apiUrl) : void 0);
|
|
186
|
+
if (!wsUrl || !apiKey || !apiUrl) {
|
|
187
|
+
log.info("Remote relay URL or credentials not configured — plugin running without relay");
|
|
188
|
+
g()[ACTIVATED_KEY] = false;
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
handoffTimeoutMs = pluginConfig.handoffTimeoutMs ?? DEFAULT_HANDOFF_TIMEOUT_MS;
|
|
192
|
+
apiClient = new _alfe_ai_agent_api_client.AgentApiClient({
|
|
193
|
+
apiKey,
|
|
194
|
+
apiUrl
|
|
195
|
+
});
|
|
196
|
+
const sendFrame = (buf) => {
|
|
197
|
+
remoteClient?.sendFrame(buf);
|
|
198
|
+
};
|
|
199
|
+
browserSurface = new _alfe_ai_browser.BrowserSurface({
|
|
200
|
+
executablePath: pluginConfig.browserExecutablePath ?? DEFAULT_CHROME_PATH,
|
|
201
|
+
headless: pluginConfig.browserHeadless ?? true,
|
|
202
|
+
noSandbox: pluginConfig.browserNoSandbox ?? true,
|
|
203
|
+
userDataDir: `${workspaceDir ?? alfeConfig?.workspacePath ?? "."}/.alfe-browser-profile`,
|
|
204
|
+
isNavigationAllowed: buildIsNavigationAllowed(ssrfPolicy, log),
|
|
205
|
+
logger: log
|
|
206
|
+
}, sendFrame);
|
|
207
|
+
terminalSurface = new _alfe_ai_terminal.TerminalSurface({
|
|
208
|
+
cwd: workspaceDir ?? alfeConfig?.workspacePath,
|
|
209
|
+
logger: log
|
|
210
|
+
}, sendFrame);
|
|
211
|
+
remoteClient = new _alfe_ai_remote.RemoteServiceClient({
|
|
212
|
+
wsUrl,
|
|
213
|
+
apiKey,
|
|
214
|
+
onFrame: (frame) => {
|
|
215
|
+
dispatchFrame(frame, log);
|
|
216
|
+
},
|
|
217
|
+
onConnectionChange: (connected) => {
|
|
218
|
+
log.info(`Remote relay connection: ${connected ? "connected" : "disconnected"}`);
|
|
219
|
+
},
|
|
220
|
+
logger: log
|
|
221
|
+
});
|
|
222
|
+
remoteClient.start();
|
|
223
|
+
log.info(`Remote plugin started — relay ${wsUrl}`);
|
|
224
|
+
}
|
|
225
|
+
function stopService(log) {
|
|
226
|
+
g()[ACTIVATED_KEY] = false;
|
|
227
|
+
remoteClient?.stop();
|
|
228
|
+
remoteClient = null;
|
|
229
|
+
browserSurface?.shutdown();
|
|
230
|
+
browserSurface = null;
|
|
231
|
+
terminalSurface?.shutdown();
|
|
232
|
+
terminalSurface = null;
|
|
233
|
+
apiClient = null;
|
|
234
|
+
sessionSurfaces.clear();
|
|
235
|
+
log.info("Remote plugin stopped");
|
|
236
|
+
}
|
|
237
|
+
function registerTools(api) {
|
|
238
|
+
const needBrowser = () => {
|
|
239
|
+
if (!browserSurface) throw new Error("Browser surface not available (remote relay not connected)");
|
|
240
|
+
return browserSurface;
|
|
241
|
+
};
|
|
242
|
+
api.registerTool({
|
|
243
|
+
name: "browser_navigate",
|
|
244
|
+
label: "browser_navigate",
|
|
245
|
+
description: "Navigate the shared browser to a URL. Returns the final URL and page title.",
|
|
246
|
+
parameters: {
|
|
247
|
+
type: "object",
|
|
248
|
+
properties: { url: {
|
|
249
|
+
type: "string",
|
|
250
|
+
description: "The URL to open"
|
|
251
|
+
} },
|
|
252
|
+
required: ["url"]
|
|
253
|
+
},
|
|
254
|
+
execute: async (_id, params) => needBrowser().automation.navigate(asStr(params.url))
|
|
255
|
+
});
|
|
256
|
+
api.registerTool({
|
|
257
|
+
name: "browser_click",
|
|
258
|
+
label: "browser_click",
|
|
259
|
+
description: "Click an element in the shared browser by CSS selector.",
|
|
260
|
+
parameters: {
|
|
261
|
+
type: "object",
|
|
262
|
+
properties: { selector: {
|
|
263
|
+
type: "string",
|
|
264
|
+
description: "CSS selector to click"
|
|
265
|
+
} },
|
|
266
|
+
required: ["selector"]
|
|
267
|
+
},
|
|
268
|
+
execute: async (_id, params) => {
|
|
269
|
+
await needBrowser().automation.click(asStr(params.selector));
|
|
270
|
+
return { ok: true };
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
api.registerTool({
|
|
274
|
+
name: "browser_type",
|
|
275
|
+
label: "browser_type",
|
|
276
|
+
description: "Type text into an element in the shared browser by CSS selector.",
|
|
277
|
+
parameters: {
|
|
278
|
+
type: "object",
|
|
279
|
+
properties: {
|
|
280
|
+
selector: {
|
|
281
|
+
type: "string",
|
|
282
|
+
description: "CSS selector of the input"
|
|
283
|
+
},
|
|
284
|
+
text: {
|
|
285
|
+
type: "string",
|
|
286
|
+
description: "Text to type"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
required: ["selector", "text"]
|
|
290
|
+
},
|
|
291
|
+
execute: async (_id, params) => {
|
|
292
|
+
await needBrowser().automation.type(asStr(params.selector), asStr(params.text));
|
|
293
|
+
return { ok: true };
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
api.registerTool({
|
|
297
|
+
name: "browser_wait_for",
|
|
298
|
+
label: "browser_wait_for",
|
|
299
|
+
description: "Wait for a selector to appear, a URL substring to match, or a fixed delay.",
|
|
300
|
+
parameters: {
|
|
301
|
+
type: "object",
|
|
302
|
+
properties: {
|
|
303
|
+
selector: { type: "string" },
|
|
304
|
+
urlPattern: { type: "string" },
|
|
305
|
+
ms: { type: "number" }
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
execute: async (_id, params) => {
|
|
309
|
+
await needBrowser().automation.waitFor({
|
|
310
|
+
selector: optStr(params.selector),
|
|
311
|
+
urlPattern: optStr(params.urlPattern),
|
|
312
|
+
ms: typeof params.ms === "number" ? params.ms : void 0
|
|
313
|
+
});
|
|
314
|
+
return { ok: true };
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
api.registerTool({
|
|
318
|
+
name: "browser_screenshot",
|
|
319
|
+
label: "browser_screenshot",
|
|
320
|
+
description: "Capture a JPEG screenshot of the shared browser's current page (base64).",
|
|
321
|
+
parameters: {
|
|
322
|
+
type: "object",
|
|
323
|
+
properties: {}
|
|
324
|
+
},
|
|
325
|
+
execute: async () => ({ imageBase64: await needBrowser().automation.screenshot() })
|
|
326
|
+
});
|
|
327
|
+
api.registerTool({
|
|
328
|
+
name: "browser_evaluate",
|
|
329
|
+
label: "browser_evaluate",
|
|
330
|
+
description: "Evaluate a JavaScript expression in the shared browser page and return the result.",
|
|
331
|
+
parameters: {
|
|
332
|
+
type: "object",
|
|
333
|
+
properties: { expression: {
|
|
334
|
+
type: "string",
|
|
335
|
+
description: "JS expression to evaluate"
|
|
336
|
+
} },
|
|
337
|
+
required: ["expression"]
|
|
338
|
+
},
|
|
339
|
+
execute: async (_id, params) => ({ result: await needBrowser().automation.evaluate(asStr(params.expression)) })
|
|
340
|
+
});
|
|
341
|
+
api.registerTool({
|
|
342
|
+
name: "request_browser_takeover",
|
|
343
|
+
label: "request_browser_takeover",
|
|
344
|
+
description: "Ask a human to take over the browser you're currently looking at and complete a step you can't do yourself — logging in, solving a captcha, or clicking through a manual flow. The human sees your current live page, completes the instructions, and hands control back; you then resume on the same authenticated page. Blocks until the human is done or the request times out.",
|
|
345
|
+
parameters: {
|
|
346
|
+
type: "object",
|
|
347
|
+
properties: {
|
|
348
|
+
instructions: {
|
|
349
|
+
type: "string",
|
|
350
|
+
description: "What you need the human to do, e.g. 'Log in with the saved credentials and complete the 2FA prompt, then click Continue.'"
|
|
351
|
+
},
|
|
352
|
+
url: {
|
|
353
|
+
type: "string",
|
|
354
|
+
description: "Optional: the page you're stuck on (display only — the human sees your live page)."
|
|
355
|
+
},
|
|
356
|
+
conversationId: {
|
|
357
|
+
type: "string",
|
|
358
|
+
description: "Optional: the chat conversation to surface the request in."
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
required: ["instructions"]
|
|
362
|
+
},
|
|
363
|
+
execute: async (_id, params) => {
|
|
364
|
+
const surface = needBrowser();
|
|
365
|
+
if (!apiClient) throw new Error("Remote plugin not connected");
|
|
366
|
+
const { sessionId } = await apiClient.requestBrowserTakeover({
|
|
367
|
+
instructions: asStr(params.instructions),
|
|
368
|
+
url: optStr(params.url),
|
|
369
|
+
conversationId: optStr(params.conversationId)
|
|
370
|
+
});
|
|
371
|
+
try {
|
|
372
|
+
return {
|
|
373
|
+
sessionId,
|
|
374
|
+
...await surface.requestHandoff(handoffTimeoutMs)
|
|
375
|
+
};
|
|
376
|
+
} finally {
|
|
377
|
+
await apiClient.completeRemoteSession(sessionId).catch(() => {});
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
const plugin = {
|
|
383
|
+
id: "@alfe.ai/openclaw-remote",
|
|
384
|
+
name: "Remote",
|
|
385
|
+
description: "Interactive remote control — browser co-browse takeover and web terminal",
|
|
386
|
+
version: pkg.version,
|
|
387
|
+
activate(api) {
|
|
388
|
+
const log = api.logger;
|
|
389
|
+
const pluginConfig = api.config?.plugins?.entries?.["@alfe.ai/openclaw-remote"]?.config ?? {};
|
|
390
|
+
pluginConfig.browserExecutablePath ??= api.config?.browser?.executablePath;
|
|
391
|
+
pluginConfig.browserHeadless ??= api.config?.browser?.headless;
|
|
392
|
+
pluginConfig.browserNoSandbox ??= api.config?.browser?.noSandbox;
|
|
393
|
+
const ssrfPolicy = api.config?.browser?.ssrfPolicy;
|
|
394
|
+
registerTools(api);
|
|
395
|
+
api.registerService({
|
|
396
|
+
id: "alfe-remote",
|
|
397
|
+
start: (ctx) => {
|
|
398
|
+
startService(pluginConfig, ssrfPolicy, ctx.workspaceDir, log);
|
|
399
|
+
},
|
|
400
|
+
stop: () => {
|
|
401
|
+
stopService(log);
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
log.info("Alfe Remote plugin activated");
|
|
405
|
+
},
|
|
406
|
+
deactivate(api) {
|
|
407
|
+
stopService(api.logger);
|
|
408
|
+
api.logger.info("Alfe Remote plugin deactivated");
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
//#endregion
|
|
412
|
+
Object.defineProperty(exports, "buildIsNavigationAllowed", {
|
|
413
|
+
enumerable: true,
|
|
414
|
+
get: function() {
|
|
415
|
+
return buildIsNavigationAllowed;
|
|
416
|
+
}
|
|
417
|
+
});
|
|
418
|
+
Object.defineProperty(exports, "plugin", {
|
|
419
|
+
enumerable: true,
|
|
420
|
+
get: function() {
|
|
421
|
+
return plugin;
|
|
422
|
+
}
|
|
423
|
+
});
|