@openclaw/facetime 2026.11.5-beta.1 → 2026.11.5-beta.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.
- package/dist/.setup/{setup-ByISvnBj.mjs → setup-D3xHzHpV.mjs} +10 -5
- package/dist/.source-module-urls/38481bccca5fbb406e50ac928748f9f04f5a6cf5623980901b3cebc6ee82dfb6.json +1 -1
- package/dist/doctor-contract-api.js +12 -6
- package/dist/index.js +7 -4
- package/dist/runtime-api.js +43 -22
- package/package.json +4 -4
|
@@ -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;
|
|
@@ -91,7 +92,8 @@ async function installFaceTimeDriver(params) {
|
|
|
91
92
|
async function uninstallFaceTimeDriver(params) {
|
|
92
93
|
await runDriverSetup(params, "uninstall");
|
|
93
94
|
}
|
|
94
|
-
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region extensions/facetime/src/plugin-paths.ts
|
|
95
97
|
const NATIVE_PROTOCOL = "NATIVE_PROTOCOL_VERSION=1";
|
|
96
98
|
const NATIVE_DIRS = ["/opt/homebrew/opt/openclaw-facetime/libexec", "/usr/local/opt/openclaw-facetime/libexec"];
|
|
97
99
|
const INSTALL_COMMAND = "brew install openclaw/tap/openclaw-facetime";
|
|
@@ -178,11 +180,13 @@ async function ensureHelperArtifacts(params) {
|
|
|
178
180
|
ipcKey
|
|
179
181
|
};
|
|
180
182
|
}
|
|
181
|
-
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region extensions/facetime/src/command-output.ts
|
|
182
185
|
function firstLine(value) {
|
|
183
186
|
return typeof value === "string" ? value.trim().split(/\r?\n/u)[0] || void 0 : void 0;
|
|
184
187
|
}
|
|
185
|
-
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region extensions/facetime/src/setup.ts
|
|
186
190
|
const XCODE_APP = "/Applications/Xcode.app";
|
|
187
191
|
const XCODE_CLANG = `${XCODE_APP}/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang`;
|
|
188
192
|
const XCODE_MACOS_SDK = `${XCODE_APP}/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk`;
|
|
@@ -480,4 +484,5 @@ async function runFaceTimeSetup(params) {
|
|
|
480
484
|
actions: [...new Set(checks.flatMap((check) => check.actionId ? [check.actionId] : []))].map((id) => Object.assign({ id }, SETUP_ACTIONS[id]))
|
|
481
485
|
};
|
|
482
486
|
}
|
|
487
|
+
//#endregion
|
|
483
488
|
export { inspectFaceTimeArtifacts as a, installFaceTimeDriver as c, validateFaceTimeConfig as d, ensureHelperArtifacts as i, uninstallFaceTimeDriver as l, firstLine as n, inspectFaceTimeNativePackage as o, ensureCaptureBinary as r, inspectFaceTimeDriver as s, runFaceTimeSetup as t, resolveFaceTimeConfig as u };
|
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-D3xHzHpV.mjs","sha256":"519c5220611f1ec1aede889e99505965079f8cc36d04d59eacaab6eafe42c78a","facadeSource":null,"sources":["extensions/facetime/src/command-output.ts","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":"f96dd9cf6c57743e620691d1e4e881c3d88ceab3d439580cf69fdf058ed13694","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":"d0c5056e9689bc381a58903e69e6666c99b183b0c98785e6cb5e75170821b172","facadeSource":"extensions/facetime/index.ts","sources":["extensions/facetime/index.ts","extensions/facetime/src/static-status.ts","extensions/facetime/src/tool.ts"]},{"output":"runtime-api.js","sha256":"30d2358d97ea8dc3f8cc342622d54463c20bc51b238e49e0468aaf048b00c316","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/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"]}],"unrenderedSources":["extensions/facetime/runtime-api.ts"]}
|
|
@@ -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 inspectFaceTimeArtifacts, d as validateFaceTimeConfig, l as uninstallFaceTimeDriver, o as inspectFaceTimeNativePackage, s as inspectFaceTimeDriver, t as runFaceTimeSetup, u as resolveFaceTimeConfig } from "./.setup/setup-
|
|
1
|
+
import { a as inspectFaceTimeArtifacts, d as validateFaceTimeConfig, l as uninstallFaceTimeDriver, o as inspectFaceTimeNativePackage, s as inspectFaceTimeDriver, t as runFaceTimeSetup, u as resolveFaceTimeConfig } from "./.setup/setup-D3xHzHpV.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/static-status.ts
|
|
10
10
|
async function inspectFaceTimeStaticStatus(params) {
|
|
11
11
|
const [artifacts, driver] = await Promise.all([inspectFaceTimeArtifacts(), inspectFaceTimeDriver(params).then((status) => ({ status }), (error) => ({ error: formatErrorMessage(error) }))]);
|
|
12
12
|
return {
|
|
@@ -20,7 +20,8 @@ async function inspectFaceTimeStaticStatus(params) {
|
|
|
20
20
|
note: "Static inspection only; helper, carrier, model media, and remote audibility were not activated or tested."
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region extensions/facetime/src/tool.ts
|
|
24
25
|
const FaceTimeCallToolSchema = Type.Object({
|
|
25
26
|
action: stringEnum([
|
|
26
27
|
"get_status",
|
|
@@ -143,7 +144,8 @@ function createFaceTimeCallTool(params) {
|
|
|
143
144
|
}
|
|
144
145
|
};
|
|
145
146
|
}
|
|
146
|
-
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region extensions/facetime/index.ts
|
|
147
149
|
const faceTimePlugin = definePluginEntry({
|
|
148
150
|
id: "facetime",
|
|
149
151
|
name: "FaceTime",
|
|
@@ -289,4 +291,5 @@ const faceTimePlugin = definePluginEntry({
|
|
|
289
291
|
});
|
|
290
292
|
}
|
|
291
293
|
});
|
|
294
|
+
//#endregion
|
|
292
295
|
export { faceTimePlugin as default };
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as installFaceTimeDriver, d as validateFaceTimeConfig, i as ensureHelperArtifacts, n as firstLine, r as ensureCaptureBinary, t as runFaceTimeSetup, u as resolveFaceTimeConfig } from "./.setup/setup-
|
|
1
|
+
import { c as installFaceTimeDriver, d as validateFaceTimeConfig, i as ensureHelperArtifacts, n as firstLine, r as ensureCaptureBinary, t as runFaceTimeSetup, u as resolveFaceTimeConfig } from "./.setup/setup-D3xHzHpV.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";
|
|
@@ -16,7 +16,7 @@ import { parseAgentSessionKey, resolveAgentIdFromSessionKey } from "openclaw/plu
|
|
|
16
16
|
import { resolveConfiguredSecretInputString } from "openclaw/plugin-sdk/secret-input-runtime";
|
|
17
17
|
import { resolveRealtimeVoiceAgentContextInstructions } from "openclaw/plugin-sdk/realtime-bootstrap-context";
|
|
18
18
|
import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
|
|
19
|
-
|
|
19
|
+
//#region extensions/facetime/src/call-events.ts
|
|
20
20
|
const TU_CALL_STATUS = {
|
|
21
21
|
outgoingCreated: 0,
|
|
22
22
|
active: 1,
|
|
@@ -158,11 +158,13 @@ function isEndedCall(event) {
|
|
|
158
158
|
function isUnknownCallStatus(event) {
|
|
159
159
|
return !isIncomingRingingCall(event) && !isOutgoingRingingCall(event) && !isActiveCall(event) && !isEndedCall(event);
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region extensions/facetime/helper-endpoint.json
|
|
162
163
|
var host = "127.0.0.1";
|
|
163
164
|
var basePort = 45670;
|
|
164
165
|
var maxPort = 65535;
|
|
165
|
-
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region extensions/facetime/src/helper-endpoint.ts
|
|
166
168
|
function resolveFaceTimeHelperEndpoint() {
|
|
167
169
|
const uid = typeof process.getuid === "function" ? process.getuid() : 501;
|
|
168
170
|
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");
|
|
@@ -171,7 +173,8 @@ function resolveFaceTimeHelperEndpoint() {
|
|
|
171
173
|
port: Math.min(Math.max(basePort + uid - 501, basePort), maxPort)
|
|
172
174
|
};
|
|
173
175
|
}
|
|
174
|
-
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region extensions/facetime/src/helper-results.ts
|
|
175
178
|
const DIAL_BUNDLES = /* @__PURE__ */ new Set(["com.apple.FaceTime", "com.apple.FaceTime.FTConversationService"]);
|
|
176
179
|
var FaceTimeHelperAmbiguousError = class extends Error {
|
|
177
180
|
constructor(message, result = {}) {
|
|
@@ -207,7 +210,8 @@ function projectCompleteFaceTimeAbsence(result) {
|
|
|
207
210
|
if (result.topologyGeneration === void 0) throw new FaceTimeHelperAmbiguousError("FaceTime topology generation is missing", result);
|
|
208
211
|
return result.topologyGeneration;
|
|
209
212
|
}
|
|
210
|
-
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region extensions/facetime/src/helper-rpc.ts
|
|
211
215
|
const LEGACY_PHONE_BUNDLES = /* @__PURE__ */ new Set(["com.apple.mobilephone", "com.apple.TelephonyUtilities"]);
|
|
212
216
|
const FACETIME_HELPER_BUNDLES = /* @__PURE__ */ new Set([...DIAL_BUNDLES, ...LEGACY_PHONE_BUNDLES]);
|
|
213
217
|
const isCallHelper = (bundleIdentifier) => DIAL_BUNDLES.has(bundleIdentifier);
|
|
@@ -590,7 +594,8 @@ var FaceTimeHelperSocketServer = class {
|
|
|
590
594
|
});
|
|
591
595
|
}
|
|
592
596
|
};
|
|
593
|
-
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region extensions/facetime/src/helper-supervisor.ts
|
|
594
599
|
const FACETIME_HELPER_TARGETS = ["FaceTime"];
|
|
595
600
|
const RETRY_DELAYS_MS = [
|
|
596
601
|
1e3,
|
|
@@ -784,7 +789,8 @@ var FaceTimeHelperSupervisor = class {
|
|
|
784
789
|
}
|
|
785
790
|
}
|
|
786
791
|
};
|
|
787
|
-
|
|
792
|
+
//#endregion
|
|
793
|
+
//#region extensions/facetime/src/outbound-call.ts
|
|
788
794
|
function normalizeFaceTimeOutboundIdentityEvent(value) {
|
|
789
795
|
if (!value || typeof value !== "object" || Array.isArray(value)) return;
|
|
790
796
|
const record = asRecord(value);
|
|
@@ -866,7 +872,8 @@ function retainFaceTimeDialCallUUID(pending, callUUID) {
|
|
|
866
872
|
function doesPendingFaceTimeDialHaveCallUUID(pending, callUUID) {
|
|
867
873
|
return pending.callUUID === callUUID || pending.callUUIDAliases?.has(callUUID) === true;
|
|
868
874
|
}
|
|
869
|
-
|
|
875
|
+
//#endregion
|
|
876
|
+
//#region extensions/facetime/src/pending-dial-store.ts
|
|
870
877
|
const PENDING_DIAL_KEY = "active";
|
|
871
878
|
function decodePendingDial(value) {
|
|
872
879
|
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;
|
|
@@ -925,7 +932,8 @@ var PendingFaceTimeDialStore = class {
|
|
|
925
932
|
return this.#tail;
|
|
926
933
|
}
|
|
927
934
|
};
|
|
928
|
-
|
|
935
|
+
//#endregion
|
|
936
|
+
//#region extensions/facetime/src/audio-pump.ts
|
|
929
937
|
const CAFFEINATE_COMMAND = "/usr/bin/caffeinate";
|
|
930
938
|
const CAPTURE_CLOSE_SAFE_FRAME = Buffer.from([
|
|
931
939
|
4,
|
|
@@ -1294,7 +1302,8 @@ function startFaceTimeAudioPump(params) {
|
|
|
1294
1302
|
stop
|
|
1295
1303
|
};
|
|
1296
1304
|
}
|
|
1297
|
-
|
|
1305
|
+
//#endregion
|
|
1306
|
+
//#region extensions/facetime/src/talk-driver-config.ts
|
|
1298
1307
|
const CONSULT_SYSTEM_PROMPT = [
|
|
1299
1308
|
"You are the configured OpenClaw agent receiving a delegated request from an authenticated owner in a private 1:1 FaceTime call.",
|
|
1300
1309
|
"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.",
|
|
@@ -1385,7 +1394,8 @@ async function resolveFaceTimeRealtimeProvider(params) {
|
|
|
1385
1394
|
noRegisteredProviderMessage: "No realtime voice provider registered"
|
|
1386
1395
|
});
|
|
1387
1396
|
}
|
|
1388
|
-
|
|
1397
|
+
//#endregion
|
|
1398
|
+
//#region extensions/facetime/src/preflight.ts
|
|
1389
1399
|
function parseDefaultAudioDevices(raw) {
|
|
1390
1400
|
const parsed = JSON.parse(raw);
|
|
1391
1401
|
const record = asRecord(parsed);
|
|
@@ -1560,7 +1570,8 @@ async function runFaceTimePreflight(params) {
|
|
|
1560
1570
|
checks
|
|
1561
1571
|
};
|
|
1562
1572
|
}
|
|
1563
|
-
|
|
1573
|
+
//#endregion
|
|
1574
|
+
//#region extensions/facetime/src/runtime-carrier-process.ts
|
|
1564
1575
|
async function terminateExactCarrierProcesses(params) {
|
|
1565
1576
|
params.assertCurrent();
|
|
1566
1577
|
if (params.peers.size === 0) throw new Error("no authenticated carrier process identity is available for safe shutdown");
|
|
@@ -1607,7 +1618,8 @@ async function terminateExactCarrierProcesses(params) {
|
|
|
1607
1618
|
if (alive) throw new Error("authenticated carrier process remains alive after force termination");
|
|
1608
1619
|
}
|
|
1609
1620
|
}
|
|
1610
|
-
|
|
1621
|
+
//#endregion
|
|
1622
|
+
//#region extensions/facetime/src/runtime-helper-results.ts
|
|
1611
1623
|
function readHelperPeers(result) {
|
|
1612
1624
|
return readHelperResults(result).flatMap((entry) => entry.helperPeer ? [entry.helperPeer] : []);
|
|
1613
1625
|
}
|
|
@@ -1670,7 +1682,8 @@ async function reconcilePendingFaceTimeCarrier(params) {
|
|
|
1670
1682
|
if (attempt + 1 < 12) await sleep(250);
|
|
1671
1683
|
}
|
|
1672
1684
|
}
|
|
1673
|
-
|
|
1685
|
+
//#endregion
|
|
1686
|
+
//#region extensions/facetime/src/talk-consult-controller.ts
|
|
1674
1687
|
function createFaceTimeConsultController(params) {
|
|
1675
1688
|
const pending = /* @__PURE__ */ new Map();
|
|
1676
1689
|
let hangupRequested = false;
|
|
@@ -1934,7 +1947,8 @@ function createFaceTimeConsultController(params) {
|
|
|
1934
1947
|
handleToolCall
|
|
1935
1948
|
};
|
|
1936
1949
|
}
|
|
1937
|
-
|
|
1950
|
+
//#endregion
|
|
1951
|
+
//#region extensions/facetime/src/talk-driver.ts
|
|
1938
1952
|
const FACETIME_INITIAL_GREETING = "Greet the caller briefly, introduce yourself using your configured identity, and ask how you can help.";
|
|
1939
1953
|
const FACETIME_GREETING_MEDIA_SETTLE_MS = 100;
|
|
1940
1954
|
async function startFaceTimeTalkDriver(params) {
|
|
@@ -2407,7 +2421,8 @@ async function startFaceTimeTalkDriver(params) {
|
|
|
2407
2421
|
close
|
|
2408
2422
|
};
|
|
2409
2423
|
}
|
|
2410
|
-
|
|
2424
|
+
//#endregion
|
|
2425
|
+
//#region extensions/facetime/src/runtime-call-control.ts
|
|
2411
2426
|
function createFaceTimeCallControl(params) {
|
|
2412
2427
|
const runCarrierActionAcrossAliases = async (request) => {
|
|
2413
2428
|
const candidates = [request.call.carrierCallUUID, ...[...request.call.carrierCallUUIDs].toReversed()].filter((candidate, index, all) => all.indexOf(candidate) === index);
|
|
@@ -2679,7 +2694,8 @@ function createFaceTimeCallControl(params) {
|
|
|
2679
2694
|
stopCall
|
|
2680
2695
|
};
|
|
2681
2696
|
}
|
|
2682
|
-
|
|
2697
|
+
//#endregion
|
|
2698
|
+
//#region extensions/facetime/src/runtime-state.ts
|
|
2683
2699
|
function normalizeCallIdentity(value) {
|
|
2684
2700
|
return value.trim().toLowerCase();
|
|
2685
2701
|
}
|
|
@@ -2825,7 +2841,8 @@ function updateCallStatus(call, event) {
|
|
|
2825
2841
|
if (event.data.local_meter_level !== void 0) call.maxLocalMeterLevel = Math.max(call.maxLocalMeterLevel ?? 0, event.data.local_meter_level);
|
|
2826
2842
|
if (event.data.remote_meter_level !== void 0) call.maxRemoteMeterLevel = Math.max(call.maxRemoteMeterLevel ?? 0, event.data.remote_meter_level);
|
|
2827
2843
|
}
|
|
2828
|
-
|
|
2844
|
+
//#endregion
|
|
2845
|
+
//#region extensions/facetime/src/runtime-call-events.ts
|
|
2829
2846
|
function createFaceTimeCallEventHandler(params) {
|
|
2830
2847
|
const eventIdentities = (event) => [
|
|
2831
2848
|
event.data.call_uuid,
|
|
@@ -3074,7 +3091,8 @@ function createFaceTimeCallEventHandler(params) {
|
|
|
3074
3091
|
};
|
|
3075
3092
|
return { handleCallEvent };
|
|
3076
3093
|
}
|
|
3077
|
-
|
|
3094
|
+
//#endregion
|
|
3095
|
+
//#region extensions/facetime/src/talk-events-summary.ts
|
|
3078
3096
|
function summarizeRecentTalkEvents(events) {
|
|
3079
3097
|
return events.slice(-12).map((event) => {
|
|
3080
3098
|
const payload = asRecord(event.payload);
|
|
@@ -3090,7 +3108,8 @@ function summarizeRecentTalkEvents(events) {
|
|
|
3090
3108
|
};
|
|
3091
3109
|
});
|
|
3092
3110
|
}
|
|
3093
|
-
|
|
3111
|
+
//#endregion
|
|
3112
|
+
//#region extensions/facetime/src/runtime-status.ts
|
|
3094
3113
|
function buildFaceTimeRuntimeStatus(params) {
|
|
3095
3114
|
const calls = [...params.calls.values()];
|
|
3096
3115
|
return {
|
|
@@ -3150,7 +3169,8 @@ function buildFaceTimeRuntimeStatus(params) {
|
|
|
3150
3169
|
}))
|
|
3151
3170
|
};
|
|
3152
3171
|
}
|
|
3153
|
-
|
|
3172
|
+
//#endregion
|
|
3173
|
+
//#region extensions/facetime/src/runtime.ts
|
|
3154
3174
|
const OUTBOUND_RECONCILE_DELAY_MS = 1e3;
|
|
3155
3175
|
async function createFaceTimeRuntime(params) {
|
|
3156
3176
|
const config = resolveFaceTimeConfig(params.config);
|
|
@@ -3585,4 +3605,5 @@ async function createFaceTimeRuntime(params) {
|
|
|
3585
3605
|
}
|
|
3586
3606
|
};
|
|
3587
3607
|
}
|
|
3608
|
+
//#endregion
|
|
3588
3609
|
export { createFaceTimeRuntime };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/facetime",
|
|
3
|
-
"version": "2026.11.5-beta.
|
|
3
|
+
"version": "2026.11.5-beta.2",
|
|
4
4
|
"description": "Experimental FaceTime realtime voice carrier for OpenClaw agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "OpenClaw contributors",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"typebox": "1.4.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"openclaw": ">=2026.11.5-beta.
|
|
68
|
+
"openclaw": ">=2026.11.5-beta.2"
|
|
69
69
|
},
|
|
70
70
|
"peerDependenciesMeta": {
|
|
71
71
|
"openclaw": {
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
"allowInvalidConfigRecovery": true
|
|
85
85
|
},
|
|
86
86
|
"compat": {
|
|
87
|
-
"pluginApi": ">=2026.11.5-beta.
|
|
87
|
+
"pluginApi": ">=2026.11.5-beta.2"
|
|
88
88
|
},
|
|
89
89
|
"build": {
|
|
90
90
|
"bundledDist": false,
|
|
91
|
-
"openclawVersion": "2026.11.5-beta.
|
|
91
|
+
"openclawVersion": "2026.11.5-beta.2"
|
|
92
92
|
},
|
|
93
93
|
"release": {
|
|
94
94
|
"publishToClawHub": true,
|