@openclaw/facetime 2026.11.7 → 2026.11.9
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-D3xHzHpV.mjs → setup-ByISvnBj.mjs} +5 -10
- package/dist/.source-module-urls/38481bccca5fbb406e50ac928748f9f04f5a6cf5623980901b3cebc6ee82dfb6.json +1 -1
- package/dist/doctor-contract-api.js +6 -12
- package/dist/index.js +4 -7
- package/dist/runtime-api.js +22 -43
- 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
|
+
// 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,8 +49,7 @@ function validateFaceTimeConfig(config) {
|
|
|
49
49
|
errors
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
//#region extensions/facetime/src/driver-setup.ts
|
|
52
|
+
// extensions/facetime/src/driver-setup.ts
|
|
54
53
|
function readDriverStatus(output) {
|
|
55
54
|
const status = output.trim();
|
|
56
55
|
if (status === "current" || status === "invalid" || status === "missing" || status === "outdated") return status;
|
|
@@ -92,8 +91,7 @@ async function installFaceTimeDriver(params) {
|
|
|
92
91
|
async function uninstallFaceTimeDriver(params) {
|
|
93
92
|
await runDriverSetup(params, "uninstall");
|
|
94
93
|
}
|
|
95
|
-
|
|
96
|
-
//#region extensions/facetime/src/plugin-paths.ts
|
|
94
|
+
// extensions/facetime/src/plugin-paths.ts
|
|
97
95
|
const NATIVE_PROTOCOL = "NATIVE_PROTOCOL_VERSION=1";
|
|
98
96
|
const NATIVE_DIRS = ["/opt/homebrew/opt/openclaw-facetime/libexec", "/usr/local/opt/openclaw-facetime/libexec"];
|
|
99
97
|
const INSTALL_COMMAND = "brew install openclaw/tap/openclaw-facetime";
|
|
@@ -180,13 +178,11 @@ async function ensureHelperArtifacts(params) {
|
|
|
180
178
|
ipcKey
|
|
181
179
|
};
|
|
182
180
|
}
|
|
183
|
-
|
|
184
|
-
//#region extensions/facetime/src/command-output.ts
|
|
181
|
+
// extensions/facetime/src/command-output.ts
|
|
185
182
|
function firstLine(value) {
|
|
186
183
|
return typeof value === "string" ? value.trim().split(/\r?\n/u)[0] || void 0 : void 0;
|
|
187
184
|
}
|
|
188
|
-
|
|
189
|
-
//#region extensions/facetime/src/setup.ts
|
|
185
|
+
// extensions/facetime/src/setup.ts
|
|
190
186
|
const XCODE_APP = "/Applications/Xcode.app";
|
|
191
187
|
const XCODE_CLANG = `${XCODE_APP}/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang`;
|
|
192
188
|
const XCODE_MACOS_SDK = `${XCODE_APP}/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk`;
|
|
@@ -484,5 +480,4 @@ async function runFaceTimeSetup(params) {
|
|
|
484
480
|
actions: [...new Set(checks.flatMap((check) => check.actionId ? [check.actionId] : []))].map((id) => Object.assign({ id }, SETUP_ACTIONS[id]))
|
|
485
481
|
};
|
|
486
482
|
}
|
|
487
|
-
//#endregion
|
|
488
483
|
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-ByISvnBj.mjs","sha256":"09e732d794b64a6dbcf8759386d4ff4cf65055e396f9ca80d103e1d72fe224c2","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":"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":"34c68c8f7c65e4136199e5e083569fec5812521076b3d5439f8b730bf499997c","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":"1df4f8342fac09b405b3f8cf6d99d84c7403e188d693eff034f870c4af99197f","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
|
+
// \0rolldown/runtime.js
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -24,8 +24,7 @@ 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
|
-
|
|
28
|
-
//#region packages/normalization-core/src/record-coerce.ts
|
|
27
|
+
// packages/normalization-core/src/record-coerce.ts
|
|
29
28
|
/** Type guard for non-array object records at browser-safe boundaries. */
|
|
30
29
|
function isRecord(value) {
|
|
31
30
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -34,8 +33,7 @@ function isRecord(value) {
|
|
|
34
33
|
function asNullableRecord(value) {
|
|
35
34
|
return isRecord(value) ? value : null;
|
|
36
35
|
}
|
|
37
|
-
|
|
38
|
-
//#region src/config/channel-config-normalization.ts
|
|
36
|
+
// src/config/channel-config-normalization.ts
|
|
39
37
|
/** Applies one channel-specific doctor migration to every object-shaped account. */
|
|
40
38
|
function normalizeChannelAccounts(params) {
|
|
41
39
|
const rawAccounts = asNullableRecord(params.entry.accounts);
|
|
@@ -111,8 +109,7 @@ function normalizeChannelConfigEntries(params) {
|
|
|
111
109
|
changes
|
|
112
110
|
};
|
|
113
111
|
}
|
|
114
|
-
|
|
115
|
-
//#region src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
112
|
+
// src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
116
113
|
/** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
|
|
117
114
|
function createLegacyWebhookListenerDoctorContract(params) {
|
|
118
115
|
const portKey = params.portKey ?? "webhookPort";
|
|
@@ -182,13 +179,11 @@ function createLegacyWebhookListenerDoctorContract(params) {
|
|
|
182
179
|
}
|
|
183
180
|
};
|
|
184
181
|
}
|
|
185
|
-
|
|
186
|
-
//#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
182
|
+
// \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
187
183
|
var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
|
|
188
184
|
import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
|
|
189
185
|
__reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
|
|
190
|
-
|
|
191
|
-
//#region extensions/facetime/doctor-contract-api.ts
|
|
186
|
+
// extensions/facetime/doctor-contract-api.ts
|
|
192
187
|
const CONFIG_PATH = [
|
|
193
188
|
"plugins",
|
|
194
189
|
"entries",
|
|
@@ -269,5 +264,4 @@ function normalizeCompatibilityConfig({ cfg }) {
|
|
|
269
264
|
changes
|
|
270
265
|
};
|
|
271
266
|
}
|
|
272
|
-
//#endregion
|
|
273
267
|
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-ByISvnBj.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
|
+
// 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,8 +20,7 @@ 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
|
-
|
|
24
|
-
//#region extensions/facetime/src/tool.ts
|
|
23
|
+
// extensions/facetime/src/tool.ts
|
|
25
24
|
const FaceTimeCallToolSchema = Type.Object({
|
|
26
25
|
action: stringEnum([
|
|
27
26
|
"get_status",
|
|
@@ -144,8 +143,7 @@ function createFaceTimeCallTool(params) {
|
|
|
144
143
|
}
|
|
145
144
|
};
|
|
146
145
|
}
|
|
147
|
-
|
|
148
|
-
//#region extensions/facetime/index.ts
|
|
146
|
+
// extensions/facetime/index.ts
|
|
149
147
|
const faceTimePlugin = definePluginEntry({
|
|
150
148
|
id: "facetime",
|
|
151
149
|
name: "FaceTime",
|
|
@@ -291,5 +289,4 @@ const faceTimePlugin = definePluginEntry({
|
|
|
291
289
|
});
|
|
292
290
|
}
|
|
293
291
|
});
|
|
294
|
-
//#endregion
|
|
295
292
|
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-ByISvnBj.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
|
+
// extensions/facetime/src/call-events.ts
|
|
20
20
|
const TU_CALL_STATUS = {
|
|
21
21
|
outgoingCreated: 0,
|
|
22
22
|
active: 1,
|
|
@@ -158,13 +158,11 @@ function isEndedCall(event) {
|
|
|
158
158
|
function isUnknownCallStatus(event) {
|
|
159
159
|
return !isIncomingRingingCall(event) && !isOutgoingRingingCall(event) && !isActiveCall(event) && !isEndedCall(event);
|
|
160
160
|
}
|
|
161
|
-
|
|
162
|
-
//#region extensions/facetime/helper-endpoint.json
|
|
161
|
+
// extensions/facetime/helper-endpoint.json
|
|
163
162
|
var host = "127.0.0.1";
|
|
164
163
|
var basePort = 45670;
|
|
165
164
|
var maxPort = 65535;
|
|
166
|
-
|
|
167
|
-
//#region extensions/facetime/src/helper-endpoint.ts
|
|
165
|
+
// extensions/facetime/src/helper-endpoint.ts
|
|
168
166
|
function resolveFaceTimeHelperEndpoint() {
|
|
169
167
|
const uid = typeof process.getuid === "function" ? process.getuid() : 501;
|
|
170
168
|
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");
|
|
@@ -173,8 +171,7 @@ function resolveFaceTimeHelperEndpoint() {
|
|
|
173
171
|
port: Math.min(Math.max(basePort + uid - 501, basePort), maxPort)
|
|
174
172
|
};
|
|
175
173
|
}
|
|
176
|
-
|
|
177
|
-
//#region extensions/facetime/src/helper-results.ts
|
|
174
|
+
// extensions/facetime/src/helper-results.ts
|
|
178
175
|
const DIAL_BUNDLES = /* @__PURE__ */ new Set(["com.apple.FaceTime", "com.apple.FaceTime.FTConversationService"]);
|
|
179
176
|
var FaceTimeHelperAmbiguousError = class extends Error {
|
|
180
177
|
constructor(message, result = {}) {
|
|
@@ -210,8 +207,7 @@ function projectCompleteFaceTimeAbsence(result) {
|
|
|
210
207
|
if (result.topologyGeneration === void 0) throw new FaceTimeHelperAmbiguousError("FaceTime topology generation is missing", result);
|
|
211
208
|
return result.topologyGeneration;
|
|
212
209
|
}
|
|
213
|
-
|
|
214
|
-
//#region extensions/facetime/src/helper-rpc.ts
|
|
210
|
+
// extensions/facetime/src/helper-rpc.ts
|
|
215
211
|
const LEGACY_PHONE_BUNDLES = /* @__PURE__ */ new Set(["com.apple.mobilephone", "com.apple.TelephonyUtilities"]);
|
|
216
212
|
const FACETIME_HELPER_BUNDLES = /* @__PURE__ */ new Set([...DIAL_BUNDLES, ...LEGACY_PHONE_BUNDLES]);
|
|
217
213
|
const isCallHelper = (bundleIdentifier) => DIAL_BUNDLES.has(bundleIdentifier);
|
|
@@ -594,8 +590,7 @@ var FaceTimeHelperSocketServer = class {
|
|
|
594
590
|
});
|
|
595
591
|
}
|
|
596
592
|
};
|
|
597
|
-
|
|
598
|
-
//#region extensions/facetime/src/helper-supervisor.ts
|
|
593
|
+
// extensions/facetime/src/helper-supervisor.ts
|
|
599
594
|
const FACETIME_HELPER_TARGETS = ["FaceTime"];
|
|
600
595
|
const RETRY_DELAYS_MS = [
|
|
601
596
|
1e3,
|
|
@@ -789,8 +784,7 @@ var FaceTimeHelperSupervisor = class {
|
|
|
789
784
|
}
|
|
790
785
|
}
|
|
791
786
|
};
|
|
792
|
-
|
|
793
|
-
//#region extensions/facetime/src/outbound-call.ts
|
|
787
|
+
// extensions/facetime/src/outbound-call.ts
|
|
794
788
|
function normalizeFaceTimeOutboundIdentityEvent(value) {
|
|
795
789
|
if (!value || typeof value !== "object" || Array.isArray(value)) return;
|
|
796
790
|
const record = asRecord(value);
|
|
@@ -872,8 +866,7 @@ function retainFaceTimeDialCallUUID(pending, callUUID) {
|
|
|
872
866
|
function doesPendingFaceTimeDialHaveCallUUID(pending, callUUID) {
|
|
873
867
|
return pending.callUUID === callUUID || pending.callUUIDAliases?.has(callUUID) === true;
|
|
874
868
|
}
|
|
875
|
-
|
|
876
|
-
//#region extensions/facetime/src/pending-dial-store.ts
|
|
869
|
+
// extensions/facetime/src/pending-dial-store.ts
|
|
877
870
|
const PENDING_DIAL_KEY = "active";
|
|
878
871
|
function decodePendingDial(value) {
|
|
879
872
|
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;
|
|
@@ -932,8 +925,7 @@ var PendingFaceTimeDialStore = class {
|
|
|
932
925
|
return this.#tail;
|
|
933
926
|
}
|
|
934
927
|
};
|
|
935
|
-
|
|
936
|
-
//#region extensions/facetime/src/audio-pump.ts
|
|
928
|
+
// extensions/facetime/src/audio-pump.ts
|
|
937
929
|
const CAFFEINATE_COMMAND = "/usr/bin/caffeinate";
|
|
938
930
|
const CAPTURE_CLOSE_SAFE_FRAME = Buffer.from([
|
|
939
931
|
4,
|
|
@@ -1302,8 +1294,7 @@ function startFaceTimeAudioPump(params) {
|
|
|
1302
1294
|
stop
|
|
1303
1295
|
};
|
|
1304
1296
|
}
|
|
1305
|
-
|
|
1306
|
-
//#region extensions/facetime/src/talk-driver-config.ts
|
|
1297
|
+
// extensions/facetime/src/talk-driver-config.ts
|
|
1307
1298
|
const CONSULT_SYSTEM_PROMPT = [
|
|
1308
1299
|
"You are the configured OpenClaw agent receiving a delegated request from an authenticated owner in a private 1:1 FaceTime call.",
|
|
1309
1300
|
"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.",
|
|
@@ -1394,8 +1385,7 @@ async function resolveFaceTimeRealtimeProvider(params) {
|
|
|
1394
1385
|
noRegisteredProviderMessage: "No realtime voice provider registered"
|
|
1395
1386
|
});
|
|
1396
1387
|
}
|
|
1397
|
-
|
|
1398
|
-
//#region extensions/facetime/src/preflight.ts
|
|
1388
|
+
// extensions/facetime/src/preflight.ts
|
|
1399
1389
|
function parseDefaultAudioDevices(raw) {
|
|
1400
1390
|
const parsed = JSON.parse(raw);
|
|
1401
1391
|
const record = asRecord(parsed);
|
|
@@ -1570,8 +1560,7 @@ async function runFaceTimePreflight(params) {
|
|
|
1570
1560
|
checks
|
|
1571
1561
|
};
|
|
1572
1562
|
}
|
|
1573
|
-
|
|
1574
|
-
//#region extensions/facetime/src/runtime-carrier-process.ts
|
|
1563
|
+
// extensions/facetime/src/runtime-carrier-process.ts
|
|
1575
1564
|
async function terminateExactCarrierProcesses(params) {
|
|
1576
1565
|
params.assertCurrent();
|
|
1577
1566
|
if (params.peers.size === 0) throw new Error("no authenticated carrier process identity is available for safe shutdown");
|
|
@@ -1618,8 +1607,7 @@ async function terminateExactCarrierProcesses(params) {
|
|
|
1618
1607
|
if (alive) throw new Error("authenticated carrier process remains alive after force termination");
|
|
1619
1608
|
}
|
|
1620
1609
|
}
|
|
1621
|
-
|
|
1622
|
-
//#region extensions/facetime/src/runtime-helper-results.ts
|
|
1610
|
+
// extensions/facetime/src/runtime-helper-results.ts
|
|
1623
1611
|
function readHelperPeers(result) {
|
|
1624
1612
|
return readHelperResults(result).flatMap((entry) => entry.helperPeer ? [entry.helperPeer] : []);
|
|
1625
1613
|
}
|
|
@@ -1682,8 +1670,7 @@ async function reconcilePendingFaceTimeCarrier(params) {
|
|
|
1682
1670
|
if (attempt + 1 < 12) await sleep(250);
|
|
1683
1671
|
}
|
|
1684
1672
|
}
|
|
1685
|
-
|
|
1686
|
-
//#region extensions/facetime/src/talk-consult-controller.ts
|
|
1673
|
+
// extensions/facetime/src/talk-consult-controller.ts
|
|
1687
1674
|
function createFaceTimeConsultController(params) {
|
|
1688
1675
|
const pending = /* @__PURE__ */ new Map();
|
|
1689
1676
|
let hangupRequested = false;
|
|
@@ -1947,8 +1934,7 @@ function createFaceTimeConsultController(params) {
|
|
|
1947
1934
|
handleToolCall
|
|
1948
1935
|
};
|
|
1949
1936
|
}
|
|
1950
|
-
|
|
1951
|
-
//#region extensions/facetime/src/talk-driver.ts
|
|
1937
|
+
// extensions/facetime/src/talk-driver.ts
|
|
1952
1938
|
const FACETIME_INITIAL_GREETING = "Greet the caller briefly, introduce yourself using your configured identity, and ask how you can help.";
|
|
1953
1939
|
const FACETIME_GREETING_MEDIA_SETTLE_MS = 100;
|
|
1954
1940
|
async function startFaceTimeTalkDriver(params) {
|
|
@@ -2421,8 +2407,7 @@ async function startFaceTimeTalkDriver(params) {
|
|
|
2421
2407
|
close
|
|
2422
2408
|
};
|
|
2423
2409
|
}
|
|
2424
|
-
|
|
2425
|
-
//#region extensions/facetime/src/runtime-call-control.ts
|
|
2410
|
+
// extensions/facetime/src/runtime-call-control.ts
|
|
2426
2411
|
function createFaceTimeCallControl(params) {
|
|
2427
2412
|
const runCarrierActionAcrossAliases = async (request) => {
|
|
2428
2413
|
const candidates = [request.call.carrierCallUUID, ...[...request.call.carrierCallUUIDs].toReversed()].filter((candidate, index, all) => all.indexOf(candidate) === index);
|
|
@@ -2694,8 +2679,7 @@ function createFaceTimeCallControl(params) {
|
|
|
2694
2679
|
stopCall
|
|
2695
2680
|
};
|
|
2696
2681
|
}
|
|
2697
|
-
|
|
2698
|
-
//#region extensions/facetime/src/runtime-state.ts
|
|
2682
|
+
// extensions/facetime/src/runtime-state.ts
|
|
2699
2683
|
function normalizeCallIdentity(value) {
|
|
2700
2684
|
return value.trim().toLowerCase();
|
|
2701
2685
|
}
|
|
@@ -2841,8 +2825,7 @@ function updateCallStatus(call, event) {
|
|
|
2841
2825
|
if (event.data.local_meter_level !== void 0) call.maxLocalMeterLevel = Math.max(call.maxLocalMeterLevel ?? 0, event.data.local_meter_level);
|
|
2842
2826
|
if (event.data.remote_meter_level !== void 0) call.maxRemoteMeterLevel = Math.max(call.maxRemoteMeterLevel ?? 0, event.data.remote_meter_level);
|
|
2843
2827
|
}
|
|
2844
|
-
|
|
2845
|
-
//#region extensions/facetime/src/runtime-call-events.ts
|
|
2828
|
+
// extensions/facetime/src/runtime-call-events.ts
|
|
2846
2829
|
function createFaceTimeCallEventHandler(params) {
|
|
2847
2830
|
const eventIdentities = (event) => [
|
|
2848
2831
|
event.data.call_uuid,
|
|
@@ -3091,8 +3074,7 @@ function createFaceTimeCallEventHandler(params) {
|
|
|
3091
3074
|
};
|
|
3092
3075
|
return { handleCallEvent };
|
|
3093
3076
|
}
|
|
3094
|
-
|
|
3095
|
-
//#region extensions/facetime/src/talk-events-summary.ts
|
|
3077
|
+
// extensions/facetime/src/talk-events-summary.ts
|
|
3096
3078
|
function summarizeRecentTalkEvents(events) {
|
|
3097
3079
|
return events.slice(-12).map((event) => {
|
|
3098
3080
|
const payload = asRecord(event.payload);
|
|
@@ -3108,8 +3090,7 @@ function summarizeRecentTalkEvents(events) {
|
|
|
3108
3090
|
};
|
|
3109
3091
|
});
|
|
3110
3092
|
}
|
|
3111
|
-
|
|
3112
|
-
//#region extensions/facetime/src/runtime-status.ts
|
|
3093
|
+
// extensions/facetime/src/runtime-status.ts
|
|
3113
3094
|
function buildFaceTimeRuntimeStatus(params) {
|
|
3114
3095
|
const calls = [...params.calls.values()];
|
|
3115
3096
|
return {
|
|
@@ -3169,8 +3150,7 @@ function buildFaceTimeRuntimeStatus(params) {
|
|
|
3169
3150
|
}))
|
|
3170
3151
|
};
|
|
3171
3152
|
}
|
|
3172
|
-
|
|
3173
|
-
//#region extensions/facetime/src/runtime.ts
|
|
3153
|
+
// extensions/facetime/src/runtime.ts
|
|
3174
3154
|
const OUTBOUND_RECONCILE_DELAY_MS = 1e3;
|
|
3175
3155
|
async function createFaceTimeRuntime(params) {
|
|
3176
3156
|
const config = resolveFaceTimeConfig(params.config);
|
|
@@ -3605,5 +3585,4 @@ async function createFaceTimeRuntime(params) {
|
|
|
3605
3585
|
}
|
|
3606
3586
|
};
|
|
3607
3587
|
}
|
|
3608
|
-
//#endregion
|
|
3609
3588
|
export { createFaceTimeRuntime };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/facetime",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.9",
|
|
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.
|
|
68
|
+
"openclaw": ">=2026.11.9"
|
|
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.
|
|
87
|
+
"pluginApi": ">=2026.11.9"
|
|
88
88
|
},
|
|
89
89
|
"build": {
|
|
90
90
|
"bundledDist": false,
|
|
91
|
-
"openclawVersion": "2026.11.
|
|
91
|
+
"openclawVersion": "2026.11.9"
|
|
92
92
|
},
|
|
93
93
|
"release": {
|
|
94
94
|
"publishToClawHub": true,
|