@extentos/mcp-server 0.7.0 → 0.8.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/localBridge.d.ts +4 -0
- package/dist/localBridge.d.ts.map +1 -1
- package/dist/localBridge.js +20 -1
- package/dist/localBridge.js.map +1 -1
- package/dist/tools/data/assistantCatalog.d.ts +10 -0
- package/dist/tools/data/assistantCatalog.d.ts.map +1 -1
- package/dist/tools/data/assistantCatalog.js +43 -17
- package/dist/tools/data/assistantCatalog.js.map +1 -1
- package/dist/tools/definitions.d.ts.map +1 -1
- package/dist/tools/definitions.js +28 -1
- package/dist/tools/definitions.js.map +1 -1
- package/dist/tools/handlers/analytics.d.ts +3 -0
- package/dist/tools/handlers/analytics.d.ts.map +1 -0
- package/dist/tools/handlers/analytics.js +54 -0
- package/dist/tools/handlers/analytics.js.map +1 -0
- package/dist/tools/handlers/assistantConfig.d.ts.map +1 -1
- package/dist/tools/handlers/assistantConfig.js +14 -1
- package/dist/tools/handlers/assistantConfig.js.map +1 -1
- package/dist/tools/handlers/createSimulatorSession.d.ts.map +1 -1
- package/dist/tools/handlers/createSimulatorSession.js +6 -1
- package/dist/tools/handlers/createSimulatorSession.js.map +1 -1
- package/dist/tools/handlers/generateConnectionModule.d.ts.map +1 -1
- package/dist/tools/handlers/generateConnectionModule.js +20 -7
- package/dist/tools/handlers/generateConnectionModule.js.map +1 -1
- package/dist/tools/handlers/validateIntegration.d.ts.map +1 -1
- package/dist/tools/handlers/validateIntegration.js +70 -0
- package/dist/tools/handlers/validateIntegration.js.map +1 -1
- package/dist/tools/registry.d.ts.map +1 -1
- package/dist/tools/registry.js +2 -0
- package/dist/tools/registry.js.map +1 -1
- package/dist/tools/templates/androidBootstrap.d.ts +1 -1
- package/dist/tools/templates/androidBootstrap.d.ts.map +1 -1
- package/dist/tools/templates/androidBootstrap.js +23 -9
- package/dist/tools/templates/androidBootstrap.js.map +1 -1
- package/dist/tools/util/capabilityKinds.d.ts +9 -0
- package/dist/tools/util/capabilityKinds.d.ts.map +1 -0
- package/dist/tools/util/capabilityKinds.js +62 -0
- package/dist/tools/util/capabilityKinds.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilityKinds.d.ts","sourceRoot":"","sources":["../../../src/tools/util/capabilityKinds.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,YAAY,GACZ,SAAS,GACT,SAAS,GACT,UAAU,GACV,eAAe,CAAC;AAuCpB;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAMnF"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// Maps SDK capability feature names (the `type` values in
|
|
2
|
+
// src/tools/data/capabilities.ts) → the connection page's CapabilityKind tiles.
|
|
3
|
+
//
|
|
4
|
+
// generateConnectionModule uses this to emit `ExtentosConfig.usedCapabilities`
|
|
5
|
+
// AND the manifest `capabilities` from ONE input, so the declared footprint, the
|
|
6
|
+
// connection-page tiles, and permission derivation can't drift apart. The tile
|
|
7
|
+
// then lights up or dims per the CONNECTED device's real capability set
|
|
8
|
+
// (android-library/.../EscapeHatch.kt → resolveCapabilityTiles).
|
|
9
|
+
//
|
|
10
|
+
// Keep in sync with: capabilities.ts feature `type`s (source of the keys) and
|
|
11
|
+
// android-library/.../core/UiState.kt `CapabilityKind` (the enum names emitted).
|
|
12
|
+
// `smoke-capability-emit.mjs` guards the mapping + the emission.
|
|
13
|
+
// A feature may touch more than one hardware surface (the assistant listens AND
|
|
14
|
+
// talks). Cross-cutting / runtime / toggle features (connection_state,
|
|
15
|
+
// connection_state_changed, fallback, assistant_tool, assistant_state, and the
|
|
16
|
+
// bool/enum toggle entries) intentionally map to NOTHING — they aren't a
|
|
17
|
+
// hardware capability tile.
|
|
18
|
+
const FEATURE_TO_KINDS = {
|
|
19
|
+
capture_photo: ["Camera"],
|
|
20
|
+
capture_video: ["Camera"],
|
|
21
|
+
video_frames: ["Camera"],
|
|
22
|
+
outgoing_video_stream: ["Camera"],
|
|
23
|
+
assistant_vision: ["Camera"],
|
|
24
|
+
record_audio: ["Microphone"],
|
|
25
|
+
audio_chunks: ["Microphone"],
|
|
26
|
+
transcription_incremental: ["Microphone"],
|
|
27
|
+
voice_command: ["Microphone"],
|
|
28
|
+
wake_word: ["Microphone"],
|
|
29
|
+
push_to_talk: ["Microphone"],
|
|
30
|
+
speak: ["Speaker"],
|
|
31
|
+
cancel_speak: ["Speaker"],
|
|
32
|
+
earcon: ["Speaker"],
|
|
33
|
+
outgoing_audio_stream: ["Speaker"],
|
|
34
|
+
assistant_runtime: ["Microphone", "Speaker"],
|
|
35
|
+
display: ["Display"],
|
|
36
|
+
};
|
|
37
|
+
// Canonical left-to-right tile order — MUST match the order in
|
|
38
|
+
// resolveCapabilityTiles (android-library/.../EscapeHatch.kt) so the scaffolded
|
|
39
|
+
// footprint and the renderer agree.
|
|
40
|
+
const ORDER = [
|
|
41
|
+
"Camera",
|
|
42
|
+
"Microphone",
|
|
43
|
+
"Speaker",
|
|
44
|
+
"Display",
|
|
45
|
+
"Location",
|
|
46
|
+
"Notifications",
|
|
47
|
+
];
|
|
48
|
+
/**
|
|
49
|
+
* Map declared SDK feature names → the deduped, canonically-ordered
|
|
50
|
+
* CapabilityKind tiles. Unknown / cross-cutting features contribute nothing,
|
|
51
|
+
* which is safe: an empty result means the connection page falls back to the
|
|
52
|
+
* always-present camera/mic/speaker floor.
|
|
53
|
+
*/
|
|
54
|
+
export function capabilityKindsForFeatures(features) {
|
|
55
|
+
const set = new Set();
|
|
56
|
+
for (const f of features) {
|
|
57
|
+
for (const k of FEATURE_TO_KINDS[f] ?? [])
|
|
58
|
+
set.add(k);
|
|
59
|
+
}
|
|
60
|
+
return ORDER.filter((k) => set.has(k));
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=capabilityKinds.js.map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