@openclaw/facetime 2026.10.10 → 2026.10.33
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/.setup/{setup-C3uKLO8_.mjs → setup-DMPG615Z.mjs} +8 -4
- package/dist/doctor-contract-api.js +12 -6
- package/dist/index.js +9 -5
- package/dist/runtime-api.js +47 -24
- package/package.json +4 -4
- package/dist/.source-module-urls/38481bccca5fbb406e50ac928748f9f04f5a6cf5623980901b3cebc6ee82dfb6.json +0 -1
|
@@ -5,7 +5,7 @@ import { resolve } from "node:path";
|
|
|
5
5
|
import { constants } from "node:fs";
|
|
6
6
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
7
7
|
import { homedir } from "node:os";
|
|
8
|
-
|
|
8
|
+
//#region extensions/facetime/src/config.ts
|
|
9
9
|
const DEFAULT_INSTRUCTIONS = ["You are the realtime voice surface for the configured OpenClaw agent during a private 1:1 FaceTime call.", "Keep replies concise, natural, and useful for a hands-free voice conversation."].join(" ");
|
|
10
10
|
function resolveRealtimeVoiceAgentConsultToolPolicy(value) {
|
|
11
11
|
if (value === void 0) return "owner";
|
|
@@ -49,7 +49,8 @@ function validateFaceTimeConfig(config) {
|
|
|
49
49
|
errors
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region extensions/facetime/src/driver-setup.ts
|
|
53
54
|
function readDriverStatus(output) {
|
|
54
55
|
const status = output.trim();
|
|
55
56
|
if (status === "current" || status === "invalid" || status === "missing" || status === "outdated") return status;
|
|
@@ -99,7 +100,8 @@ async function uninstallFaceTimeDriver(params) {
|
|
|
99
100
|
});
|
|
100
101
|
if (result.code !== 0) throw new Error(`FaceTime uninstall failed: ${result.stderr || result.stdout || `exit ${result.code}`}`);
|
|
101
102
|
}
|
|
102
|
-
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region extensions/facetime/src/plugin-paths.ts
|
|
103
105
|
const NATIVE_PROTOCOL = "NATIVE_PROTOCOL_VERSION=1";
|
|
104
106
|
const NATIVE_DIRS = ["/opt/homebrew/opt/openclaw-facetime/libexec", "/usr/local/opt/openclaw-facetime/libexec"];
|
|
105
107
|
const INSTALL_COMMAND = "brew install openclaw/tap/openclaw-facetime";
|
|
@@ -193,7 +195,8 @@ async function ensureHelperArtifacts(params) {
|
|
|
193
195
|
ipcKey
|
|
194
196
|
};
|
|
195
197
|
}
|
|
196
|
-
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region extensions/facetime/src/setup.ts
|
|
197
200
|
const XCODE_APP = "/Applications/Xcode.app";
|
|
198
201
|
const XCODE_CLANG = `${XCODE_APP}/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang`;
|
|
199
202
|
const XCODE_MACOS_SDK = `${XCODE_APP}/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk`;
|
|
@@ -528,4 +531,5 @@ async function runFaceTimeSetup(params) {
|
|
|
528
531
|
actions: [...new Set(checks.flatMap((check) => check.actionId ? [check.actionId] : []))].map((id) => Object.assign({ id }, SETUP_ACTIONS[id]))
|
|
529
532
|
};
|
|
530
533
|
}
|
|
534
|
+
//#endregion
|
|
531
535
|
export { inspectFaceTimeNativePackage as a, uninstallFaceTimeDriver as c, inspectFaceTimeArtifacts as i, resolveFaceTimeConfig as l, ensureCaptureBinary as n, inspectFaceTimeDriver as o, ensureHelperArtifacts as r, installFaceTimeDriver as s, runFaceTimeSetup as t, validateFaceTimeConfig as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeTrimmedStringList } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
|
-
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -24,7 +24,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
24
24
|
return to;
|
|
25
25
|
};
|
|
26
26
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
27
|
-
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region packages/normalization-core/src/record-coerce.ts
|
|
28
29
|
/** Type guard for non-array object records at browser-safe boundaries. */
|
|
29
30
|
function isRecord(value) {
|
|
30
31
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -33,7 +34,8 @@ function isRecord(value) {
|
|
|
33
34
|
function asNullableRecord(value) {
|
|
34
35
|
return isRecord(value) ? value : null;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/config/channel-config-normalization.ts
|
|
37
39
|
/** Applies one channel-specific doctor migration to every object-shaped account. */
|
|
38
40
|
function normalizeChannelAccounts(params) {
|
|
39
41
|
const rawAccounts = asNullableRecord(params.entry.accounts);
|
|
@@ -109,7 +111,8 @@ function normalizeChannelConfigEntries(params) {
|
|
|
109
111
|
changes
|
|
110
112
|
};
|
|
111
113
|
}
|
|
112
|
-
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
113
116
|
/** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
|
|
114
117
|
function createLegacyWebhookListenerDoctorContract(params) {
|
|
115
118
|
const portKey = params.portKey ?? "webhookPort";
|
|
@@ -179,11 +182,13 @@ function createLegacyWebhookListenerDoctorContract(params) {
|
|
|
179
182
|
}
|
|
180
183
|
};
|
|
181
184
|
}
|
|
182
|
-
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
183
187
|
var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
|
|
184
188
|
import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
|
|
185
189
|
__reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
|
|
186
|
-
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region extensions/facetime/doctor-contract-api.ts
|
|
187
192
|
const CONFIG_PATH = [
|
|
188
193
|
"plugins",
|
|
189
194
|
"entries",
|
|
@@ -264,4 +269,5 @@ function normalizeCompatibilityConfig({ cfg }) {
|
|
|
264
269
|
changes
|
|
265
270
|
};
|
|
266
271
|
}
|
|
272
|
+
//#endregion
|
|
267
273
|
export { legacyConfigRules, normalizeCompatibilityConfig };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as inspectFaceTimeNativePackage, c as uninstallFaceTimeDriver, i as inspectFaceTimeArtifacts, l as resolveFaceTimeConfig, o as inspectFaceTimeDriver, t as runFaceTimeSetup, u as validateFaceTimeConfig } from "./.setup/setup-
|
|
1
|
+
import { a as inspectFaceTimeNativePackage, c as uninstallFaceTimeDriver, i as inspectFaceTimeArtifacts, l as resolveFaceTimeConfig, o as inspectFaceTimeDriver, t as runFaceTimeSetup, u as validateFaceTimeConfig } from "./.setup/setup-DMPG615Z.mjs";
|
|
2
2
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
3
3
|
import { ErrorCodes, errorShape } from "openclaw/plugin-sdk/gateway-runtime";
|
|
4
4
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
@@ -6,7 +6,7 @@ import { asRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-co
|
|
|
6
6
|
import { stringEnum } from "openclaw/plugin-sdk/channel-actions";
|
|
7
7
|
import { jsonResult } from "openclaw/plugin-sdk/tool-results";
|
|
8
8
|
import { Type } from "typebox";
|
|
9
|
-
|
|
9
|
+
//#region extensions/facetime/src/runtime-lifecycle.ts
|
|
10
10
|
async function stopRetainedRuntime(current, clearIfCurrent) {
|
|
11
11
|
if (!current) return;
|
|
12
12
|
let runtime;
|
|
@@ -19,7 +19,8 @@ async function stopRetainedRuntime(current, clearIfCurrent) {
|
|
|
19
19
|
await runtime.stop();
|
|
20
20
|
clearIfCurrent(current);
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region extensions/facetime/src/static-status.ts
|
|
23
24
|
async function inspectFaceTimeStaticStatus(params) {
|
|
24
25
|
const [artifacts, driver] = await Promise.all([inspectFaceTimeArtifacts(), inspectFaceTimeDriver(params).then((status) => ({ status }), (error) => ({ error: formatErrorMessage(error) }))]);
|
|
25
26
|
return {
|
|
@@ -33,7 +34,8 @@ async function inspectFaceTimeStaticStatus(params) {
|
|
|
33
34
|
note: "Static inspection only; helper, carrier, model media, and remote audibility were not activated or tested."
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region extensions/facetime/src/tool.ts
|
|
37
39
|
const FaceTimeCallToolSchema = Type.Object({
|
|
38
40
|
action: stringEnum([
|
|
39
41
|
"get_status",
|
|
@@ -156,7 +158,8 @@ function createFaceTimeCallTool(params) {
|
|
|
156
158
|
}
|
|
157
159
|
};
|
|
158
160
|
}
|
|
159
|
-
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region extensions/facetime/index.ts
|
|
160
163
|
const faceTimePlugin = definePluginEntry({
|
|
161
164
|
id: "facetime",
|
|
162
165
|
name: "FaceTime",
|
|
@@ -301,4 +304,5 @@ const faceTimePlugin = definePluginEntry({
|
|
|
301
304
|
});
|
|
302
305
|
}
|
|
303
306
|
});
|
|
307
|
+
//#endregion
|
|
304
308
|
export { faceTimePlugin as default };
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as resolveFaceTimeConfig, n as ensureCaptureBinary, r as ensureHelperArtifacts, s as installFaceTimeDriver, t as runFaceTimeSetup, u as validateFaceTimeConfig } from "./.setup/setup-
|
|
1
|
+
import { l as resolveFaceTimeConfig, n as ensureCaptureBinary, r as ensureHelperArtifacts, s as installFaceTimeDriver, t as runFaceTimeSetup, u as validateFaceTimeConfig } from "./.setup/setup-DMPG615Z.mjs";
|
|
2
2
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
3
3
|
import { REALTIME_VOICE_AGENT_CONSULT_TOOL_NAME, REALTIME_VOICE_AUDIO_FORMAT_PCM16_24KHZ, buildRealtimeVoiceAgentCancelProviderResult, buildRealtimeVoiceAgentConsultPolicyInstructions, buildRealtimeVoiceAgentConsultWorkingResponse, consultRealtimeVoiceAgent, createRealtimeVoiceBridgeSession, createTalkSessionController, getRealtimeVoiceProvider, recordRealtimeVoiceTranscript, recordTalkObservabilityEvent, resolveConfiguredRealtimeVoiceProviderAsync, resolveRealtimeVoiceAgentConsultTools, resolveRealtimeVoiceAgentConsultToolsAllow } from "openclaw/plugin-sdk/realtime-voice";
|
|
4
4
|
import { asBoolean, asFiniteNumber, asRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -15,7 +15,7 @@ import { parseAgentSessionKey, resolveAgentIdFromSessionKey } from "openclaw/plu
|
|
|
15
15
|
import { resolveConfiguredSecretInputString } from "openclaw/plugin-sdk/secret-input-runtime";
|
|
16
16
|
import { resolveRealtimeVoiceAgentContextInstructions } from "openclaw/plugin-sdk/realtime-bootstrap-context";
|
|
17
17
|
import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
|
|
18
|
-
|
|
18
|
+
//#region extensions/facetime/src/call-events.ts
|
|
19
19
|
const TU_CALL_STATUS = {
|
|
20
20
|
outgoingCreated: 0,
|
|
21
21
|
active: 1,
|
|
@@ -157,7 +157,8 @@ function isEndedCall(event) {
|
|
|
157
157
|
function isUnknownCallStatus(event) {
|
|
158
158
|
return !isIncomingRingingCall(event) && !isOutgoingRingingCall(event) && !isActiveCall(event) && !isEndedCall(event);
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region extensions/facetime/src/call-lifecycle.ts
|
|
161
162
|
function normalizeCallIdentity(value) {
|
|
162
163
|
return value.trim().toLowerCase();
|
|
163
164
|
}
|
|
@@ -272,11 +273,13 @@ var FaceTimeCallRegistry = class {
|
|
|
272
273
|
this.#active = void 0;
|
|
273
274
|
}
|
|
274
275
|
};
|
|
275
|
-
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region extensions/facetime/helper-endpoint.json
|
|
276
278
|
var host = "127.0.0.1";
|
|
277
279
|
var basePort = 45670;
|
|
278
280
|
var maxPort = 65535;
|
|
279
|
-
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region extensions/facetime/src/helper-endpoint.ts
|
|
280
283
|
function resolveFaceTimeHelperEndpoint() {
|
|
281
284
|
const uid = typeof process.getuid === "function" ? process.getuid() : 501;
|
|
282
285
|
if (host !== "127.0.0.1" || !Number.isSafeInteger(basePort) || !Number.isSafeInteger(maxPort) || basePort < 1024 || maxPort > 65535 || basePort > maxPort || !Number.isSafeInteger(uid)) throw new Error("Invalid FaceTime loopback helper endpoint contract");
|
|
@@ -285,7 +288,8 @@ function resolveFaceTimeHelperEndpoint() {
|
|
|
285
288
|
port: Math.min(Math.max(basePort + uid - 501, basePort), maxPort)
|
|
286
289
|
};
|
|
287
290
|
}
|
|
288
|
-
|
|
291
|
+
//#endregion
|
|
292
|
+
//#region extensions/facetime/src/helper-results.ts
|
|
289
293
|
var FaceTimeHelperActionError = class extends Error {
|
|
290
294
|
constructor(message) {
|
|
291
295
|
super(message);
|
|
@@ -329,7 +333,8 @@ function projectCompleteFaceTimeAbsence(result) {
|
|
|
329
333
|
topologyGeneration: result.topologyGeneration
|
|
330
334
|
};
|
|
331
335
|
}
|
|
332
|
-
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region extensions/facetime/src/helper-rpc.ts
|
|
333
338
|
const FACETIME_DIAL_HELPER_BUNDLES = /* @__PURE__ */ new Set(["com.apple.FaceTime", "com.apple.FaceTime.FTConversationService"]);
|
|
334
339
|
const FACETIME_HELPER_BUNDLES = /* @__PURE__ */ new Set([
|
|
335
340
|
...FACETIME_DIAL_HELPER_BUNDLES,
|
|
@@ -722,7 +727,8 @@ var FaceTimeHelperSocketServer = class {
|
|
|
722
727
|
});
|
|
723
728
|
}
|
|
724
729
|
};
|
|
725
|
-
|
|
730
|
+
//#endregion
|
|
731
|
+
//#region extensions/facetime/src/helper-supervisor.ts
|
|
726
732
|
const TARGET_BUNDLES = {
|
|
727
733
|
FaceTime: /* @__PURE__ */ new Set(["com.apple.FaceTime", "com.apple.FaceTime.FTConversationService"]),
|
|
728
734
|
Phone: /* @__PURE__ */ new Set(["com.apple.mobilephone", "com.apple.TelephonyUtilities"])
|
|
@@ -925,7 +931,8 @@ var FaceTimeHelperSupervisor = class {
|
|
|
925
931
|
}
|
|
926
932
|
}
|
|
927
933
|
};
|
|
928
|
-
|
|
934
|
+
//#endregion
|
|
935
|
+
//#region extensions/facetime/src/outbound-call.ts
|
|
929
936
|
function normalizeFaceTimeOutboundIdentityEvent(value) {
|
|
930
937
|
if (!value || typeof value !== "object" || Array.isArray(value)) return;
|
|
931
938
|
const record = asRecord(value);
|
|
@@ -1007,7 +1014,8 @@ function retainFaceTimeDialCallUUID(pending, callUUID) {
|
|
|
1007
1014
|
function doesPendingFaceTimeDialHaveCallUUID(pending, callUUID) {
|
|
1008
1015
|
return pending.callUUID === callUUID || pending.callUUIDAliases?.has(callUUID) === true;
|
|
1009
1016
|
}
|
|
1010
|
-
|
|
1017
|
+
//#endregion
|
|
1018
|
+
//#region extensions/facetime/src/pending-dial-store.ts
|
|
1011
1019
|
const PENDING_DIAL_KEY = "active";
|
|
1012
1020
|
function decodePendingDial(value) {
|
|
1013
1021
|
if (!value || value.version !== 1 || !Number.isSafeInteger(value.ownerEpoch) || value.ownerEpoch < 1 || typeof value.dialID !== "string" || typeof value.handle !== "string" || value.mode !== "audio" && value.mode !== "video" || value.delivery !== "in-flight" && value.delivery !== "accepted" && value.delivery !== "ambiguous" && value.delivery !== "cancelling" || typeof value.requestedAt !== "string") return;
|
|
@@ -1066,7 +1074,8 @@ var PendingFaceTimeDialStore = class {
|
|
|
1066
1074
|
return this.#tail;
|
|
1067
1075
|
}
|
|
1068
1076
|
};
|
|
1069
|
-
|
|
1077
|
+
//#endregion
|
|
1078
|
+
//#region extensions/facetime/src/audio-pump.ts
|
|
1070
1079
|
const CAFFEINATE_COMMAND = "/usr/bin/caffeinate";
|
|
1071
1080
|
const CAPTURE_CLOSE_SAFE_FRAME = Buffer.from([
|
|
1072
1081
|
4,
|
|
@@ -1443,7 +1452,8 @@ function startFaceTimeAudioPump(params) {
|
|
|
1443
1452
|
stop
|
|
1444
1453
|
};
|
|
1445
1454
|
}
|
|
1446
|
-
|
|
1455
|
+
//#endregion
|
|
1456
|
+
//#region extensions/facetime/src/talk-driver-config.ts
|
|
1447
1457
|
const CONSULT_SYSTEM_PROMPT = [
|
|
1448
1458
|
"You are the configured OpenClaw agent receiving a delegated request from an authenticated owner in a private 1:1 FaceTime call.",
|
|
1449
1459
|
"The authenticated caller is the configured owner/user described by this agent's workspace context, including USER.md. When asked who is speaking, identify them from that workspace context without asking them to reconfirm.",
|
|
@@ -1534,7 +1544,8 @@ async function resolveFaceTimeRealtimeProvider(params) {
|
|
|
1534
1544
|
noRegisteredProviderMessage: "No realtime voice provider registered"
|
|
1535
1545
|
});
|
|
1536
1546
|
}
|
|
1537
|
-
|
|
1547
|
+
//#endregion
|
|
1548
|
+
//#region extensions/facetime/src/preflight.ts
|
|
1538
1549
|
function parseDefaultAudioDevices(raw) {
|
|
1539
1550
|
const parsed = JSON.parse(raw);
|
|
1540
1551
|
const record = asRecord(parsed);
|
|
@@ -1726,7 +1737,8 @@ async function runFaceTimePreflight(params) {
|
|
|
1726
1737
|
checks
|
|
1727
1738
|
};
|
|
1728
1739
|
}
|
|
1729
|
-
|
|
1740
|
+
//#endregion
|
|
1741
|
+
//#region extensions/facetime/src/runtime-carrier-process.ts
|
|
1730
1742
|
async function terminateExactCarrierProcesses(params) {
|
|
1731
1743
|
params.assertCurrent();
|
|
1732
1744
|
if (params.peers.size === 0) throw new Error("no authenticated carrier process identity is available for safe shutdown");
|
|
@@ -1773,7 +1785,8 @@ async function terminateExactCarrierProcesses(params) {
|
|
|
1773
1785
|
if (alive) throw new Error("authenticated carrier process remains alive after force termination");
|
|
1774
1786
|
}
|
|
1775
1787
|
}
|
|
1776
|
-
|
|
1788
|
+
//#endregion
|
|
1789
|
+
//#region extensions/facetime/src/runtime-helper-results.ts
|
|
1777
1790
|
const OUTBOUND_DIAL_HELPER_BUNDLES = /* @__PURE__ */ new Set(["com.apple.FaceTime", "com.apple.FaceTime.FTConversationService"]);
|
|
1778
1791
|
function readHelperPeers(result) {
|
|
1779
1792
|
const peers = [];
|
|
@@ -1847,7 +1860,8 @@ async function reconcilePendingFaceTimeCarrier(params) {
|
|
|
1847
1860
|
if (attempt + 1 < 12) await sleep(250);
|
|
1848
1861
|
}
|
|
1849
1862
|
}
|
|
1850
|
-
|
|
1863
|
+
//#endregion
|
|
1864
|
+
//#region extensions/facetime/src/talk-consult-controller.ts
|
|
1851
1865
|
function createFaceTimeConsultController(params) {
|
|
1852
1866
|
const pending = /* @__PURE__ */ new Map();
|
|
1853
1867
|
let hangupRequested = false;
|
|
@@ -2126,7 +2140,8 @@ function createFaceTimeConsultController(params) {
|
|
|
2126
2140
|
handleToolCall
|
|
2127
2141
|
};
|
|
2128
2142
|
}
|
|
2129
|
-
|
|
2143
|
+
//#endregion
|
|
2144
|
+
//#region extensions/facetime/src/talk-initial-greeting.ts
|
|
2130
2145
|
const FACETIME_INITIAL_GREETING = "Greet the caller briefly, introduce yourself using your configured identity, and ask how you can help.";
|
|
2131
2146
|
const FACETIME_GREETING_MEDIA_SETTLE_MS = 100;
|
|
2132
2147
|
function createFaceTimeInitialGreeting(params) {
|
|
@@ -2155,7 +2170,8 @@ function createFaceTimeInitialGreeting(params) {
|
|
|
2155
2170
|
}
|
|
2156
2171
|
};
|
|
2157
2172
|
}
|
|
2158
|
-
|
|
2173
|
+
//#endregion
|
|
2174
|
+
//#region extensions/facetime/src/talk-driver.ts
|
|
2159
2175
|
async function startFaceTimeTalkDriver(params) {
|
|
2160
2176
|
if (params.signal?.aborted) throw new Error("FaceTime talk startup aborted");
|
|
2161
2177
|
const consultAgentId = agentIdFromSessionKey(params.config.realtime.sessionKey, params.fullConfig);
|
|
@@ -2614,7 +2630,8 @@ async function startFaceTimeTalkDriver(params) {
|
|
|
2614
2630
|
close
|
|
2615
2631
|
};
|
|
2616
2632
|
}
|
|
2617
|
-
|
|
2633
|
+
//#endregion
|
|
2634
|
+
//#region extensions/facetime/src/runtime-call-control.ts
|
|
2618
2635
|
function createFaceTimeCallControl(params) {
|
|
2619
2636
|
const runCarrierActionAcrossAliases = async (request) => {
|
|
2620
2637
|
const candidates = [request.call.carrierCallUUID, ...[...request.call.carrierCallUUIDs].toReversed()].filter((candidate, index, all) => all.indexOf(candidate) === index);
|
|
@@ -2895,7 +2912,8 @@ function createFaceTimeCallControl(params) {
|
|
|
2895
2912
|
stopCall
|
|
2896
2913
|
};
|
|
2897
2914
|
}
|
|
2898
|
-
|
|
2915
|
+
//#endregion
|
|
2916
|
+
//#region extensions/facetime/src/runtime-state.ts
|
|
2899
2917
|
var ActiveFaceTimeCall = class extends FaceTimeCallInstance {
|
|
2900
2918
|
constructor(params) {
|
|
2901
2919
|
super(params.callUUID, params.phase);
|
|
@@ -2936,7 +2954,8 @@ function updateCallStatus(call, event) {
|
|
|
2936
2954
|
if (event.data.local_meter_level !== void 0) call.maxLocalMeterLevel = Math.max(call.maxLocalMeterLevel ?? 0, event.data.local_meter_level);
|
|
2937
2955
|
if (event.data.remote_meter_level !== void 0) call.maxRemoteMeterLevel = Math.max(call.maxRemoteMeterLevel ?? 0, event.data.remote_meter_level);
|
|
2938
2956
|
}
|
|
2939
|
-
|
|
2957
|
+
//#endregion
|
|
2958
|
+
//#region extensions/facetime/src/runtime-call-events.ts
|
|
2940
2959
|
function createFaceTimeCallEventHandler(params) {
|
|
2941
2960
|
const eventIdentities = (event) => [
|
|
2942
2961
|
event.data.call_uuid,
|
|
@@ -3185,7 +3204,8 @@ function createFaceTimeCallEventHandler(params) {
|
|
|
3185
3204
|
};
|
|
3186
3205
|
return { handleCallEvent };
|
|
3187
3206
|
}
|
|
3188
|
-
|
|
3207
|
+
//#endregion
|
|
3208
|
+
//#region extensions/facetime/src/talk-events-summary.ts
|
|
3189
3209
|
function summarizeRecentTalkEvents(events) {
|
|
3190
3210
|
return events.slice(-12).map((event) => {
|
|
3191
3211
|
const record = asRecord(event);
|
|
@@ -3202,7 +3222,8 @@ function summarizeRecentTalkEvents(events) {
|
|
|
3202
3222
|
};
|
|
3203
3223
|
});
|
|
3204
3224
|
}
|
|
3205
|
-
|
|
3225
|
+
//#endregion
|
|
3226
|
+
//#region extensions/facetime/src/runtime-status.ts
|
|
3206
3227
|
function buildFaceTimeRuntimeStatus(params) {
|
|
3207
3228
|
const calls = [...params.calls.values()];
|
|
3208
3229
|
return {
|
|
@@ -3262,7 +3283,8 @@ function buildFaceTimeRuntimeStatus(params) {
|
|
|
3262
3283
|
}))
|
|
3263
3284
|
};
|
|
3264
3285
|
}
|
|
3265
|
-
|
|
3286
|
+
//#endregion
|
|
3287
|
+
//#region extensions/facetime/src/runtime.ts
|
|
3266
3288
|
const OUTBOUND_RECONCILE_DELAY_MS = 1e3;
|
|
3267
3289
|
async function createFaceTimeRuntime(params) {
|
|
3268
3290
|
const config = resolveFaceTimeConfig(params.config);
|
|
@@ -3697,4 +3719,5 @@ async function createFaceTimeRuntime(params) {
|
|
|
3697
3719
|
}
|
|
3698
3720
|
};
|
|
3699
3721
|
}
|
|
3722
|
+
//#endregion
|
|
3700
3723
|
export { createFaceTimeRuntime };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/facetime",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.33",
|
|
4
4
|
"description": "Experimental FaceTime realtime voice carrier for OpenClaw agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "OpenClaw contributors",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"typebox": "1.3.35"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"openclaw": ">=2026.
|
|
69
|
+
"openclaw": ">=2026.11.4"
|
|
70
70
|
},
|
|
71
71
|
"peerDependenciesMeta": {
|
|
72
72
|
"openclaw": {
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"allowInvalidConfigRecovery": true
|
|
86
86
|
},
|
|
87
87
|
"compat": {
|
|
88
|
-
"pluginApi": ">=2026.
|
|
88
|
+
"pluginApi": ">=2026.11.4"
|
|
89
89
|
},
|
|
90
90
|
"build": {
|
|
91
91
|
"bundledDist": false,
|
|
92
|
-
"openclawVersion": "2026.10.
|
|
92
|
+
"openclawVersion": "2026.10.33"
|
|
93
93
|
},
|
|
94
94
|
"release": {
|
|
95
95
|
"publishToClawHub": true,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"doctor-contract-api.js","source":"extensions/facetime/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/facetime/index.ts"},{"output":"runtime-api.js","source":"extensions/facetime/runtime-api.ts"}],"chunks":[{"output":".setup/setup-C3uKLO8_.mjs","sha256":"9fb990ef634242a34db5065ea6631029fd23b01242783d33cf701fd19ad08f14","facadeSource":null,"sources":["extensions/facetime/src/config.ts","extensions/facetime/src/driver-setup.ts","extensions/facetime/src/plugin-paths.ts","extensions/facetime/src/setup.ts"]},{"output":"doctor-contract-api.js","sha256":"c7a8b2f5905715f132439189cfca5c14a3158628998594e98525ca3d0adda557","facadeSource":"extensions/facetime/doctor-contract-api.ts","sources":["extensions/facetime/doctor-contract-api.ts","packages/normalization-core/src/record-coerce.ts","src/config/channel-config-normalization.ts","src/plugin-sdk/legacy-webhook-listener-migration.ts"]},{"output":"index.js","sha256":"e7a27b28afc7038904569742cb34ddeb9cf8fa78d4560777e40b3c3666f7c5af","facadeSource":"extensions/facetime/index.ts","sources":["extensions/facetime/index.ts","extensions/facetime/src/runtime-lifecycle.ts","extensions/facetime/src/static-status.ts","extensions/facetime/src/tool.ts"]},{"output":"runtime-api.js","sha256":"892230da0cf3d27a3a0a7ff04b62a022136a9e06c1297e4a0dda7557a5c8484f","facadeSource":"extensions/facetime/runtime-api.ts","sources":["extensions/facetime/helper-endpoint.json","extensions/facetime/src/audio-pump.ts","extensions/facetime/src/call-events.ts","extensions/facetime/src/call-lifecycle.ts","extensions/facetime/src/helper-endpoint.ts","extensions/facetime/src/helper-results.ts","extensions/facetime/src/helper-rpc.ts","extensions/facetime/src/helper-supervisor.ts","extensions/facetime/src/outbound-call.ts","extensions/facetime/src/pending-dial-store.ts","extensions/facetime/src/preflight.ts","extensions/facetime/src/runtime-call-control.ts","extensions/facetime/src/runtime-call-events.ts","extensions/facetime/src/runtime-carrier-process.ts","extensions/facetime/src/runtime-helper-results.ts","extensions/facetime/src/runtime-state.ts","extensions/facetime/src/runtime-status.ts","extensions/facetime/src/runtime.ts","extensions/facetime/src/talk-consult-controller.ts","extensions/facetime/src/talk-driver-config.ts","extensions/facetime/src/talk-driver.ts","extensions/facetime/src/talk-events-summary.ts","extensions/facetime/src/talk-initial-greeting.ts"]}],"unrenderedSources":["extensions/facetime/runtime-api.ts"]}
|