arcane-os 0.95.0 → 0.96.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.96.0
4
+
5
+ - Publish successful portable, Windows and macOS native builds to one stable
6
+ app-specific output directory. Assemble separately and retain the previous
7
+ output through promotion, callback acceptance and recoverable rollback;
8
+ keep model caches and user profiles outside replacement.
9
+ - Add persistent native model acquisition and installed-model discovery through
10
+ the shared Core model-assets owner. Preserve complete split GGUF sets and
11
+ companion files, stream selected TAR members, report file-based progress,
12
+ and join cancellation and cleanup while retaining completed originals.
13
+ - Expose upstream Nemotron/diarization and Magpie/NanoCodec model selections
14
+ through the existing native speech API. Nemotron retains selected resource
15
+ projections until its owned helper closes; no model or runtime redistribution
16
+ is added.
17
+ - Add explicit native language-model startup and an app-scoped Models directory.
18
+ Preserve existing automatic startup defaults and ordinary speech APIs.
19
+ Package delivery remains distinct from native inference or app acceptance.
20
+
3
21
  ## 0.95.0
4
22
 
5
23
  - Add retained native Nemotron streaming recognition and optional diarization,
package/README.md CHANGED
@@ -25,7 +25,7 @@ selected SDK projection or an explicit live SDK source mount. Both profiles
25
25
  share the theme, packaging, event, cancellation,
26
26
  and browser run contracts while retaining their selected application layout.
27
27
 
28
- This checkout defines the `0.95.0` SDK contract. Development applications declare
28
+ This checkout defines the `0.96.0` SDK contract. Development applications declare
29
29
  `arcane-os` as `latest` and retain their lockfile. Exact SDK pins begin when Roshi
30
30
  designates a production build. Follow [Consumer updates](docs/consumer-updates.md)
31
31
  to refresh and compare the installed SDK and lockfile with the published channel;
@@ -3,6 +3,80 @@ import {getInstalledCoreClient} from '../core/client.mjs';
3
3
 
4
4
  const is = new Is(false);
5
5
 
6
+ /** Inspect selected native directories without downloading or loading a model. */
7
+ export function discoverCoreModelAssets({client = getInstalledCoreClient(), directories, catalog, recursive, signal} = {}) {
8
+ requireCore(client);
9
+ return client.invoke('modelAssets.discover', {directories, catalog, recursive}, {signal, timeoutMs: 0});
10
+ }
11
+
12
+ /** Retain existing complete files without copying them into an application build. */
13
+ export function openExistingCoreModelAssets({client = getInstalledCoreClient(), directory, members, signal} = {}) {
14
+ return prepareNativeProjection(client, 'modelAssets.openExisting', {directory, members}, {signal});
15
+ }
16
+
17
+ /** Explicitly download a selected complete native model and its companions. */
18
+ export function downloadCoreModelAssets({
19
+ client = getInstalledCoreClient(), workingDirectory, members, archives, refresh = false, signal, onProgress
20
+ } = {}) {
21
+ return prepareNativeProjection(client, 'modelAssets.prepare', {workingDirectory, members, archives, refresh}, {signal, onProgress});
22
+ }
23
+
24
+ function requireCore(client) {
25
+ if (!is.function(client?.invoke)) {
26
+ const error = new Error('Native model assets require an available Core connection.');
27
+ error.code = 'ARCANE_MODEL_ASSETS_CORE_UNAVAILABLE';
28
+ throw error;
29
+ }
30
+ }
31
+
32
+ async function prepareNativeProjection(client, method, params, {signal, onProgress}) {
33
+ requireCore(client);
34
+ if (!is.function(client.uuid)) throw new TypeError('Model asset preparation requires Core operation ids.');
35
+ if (onProgress !== undefined && !is.function(onProgress)) throw new TypeError('Model asset onProgress must be a function.');
36
+ if (onProgress && !is.function(client.events?.on)) throw new TypeError('Model asset progress requires Core events.');
37
+ const id = client.uuid();
38
+ const controller = new AbortController();
39
+ const operationSignal = signal ? AbortSignal.any([signal, controller.signal]) : controller.signal;
40
+ operationSignal.throwIfAborted();
41
+ let delivery = Promise.resolve();
42
+ let callbackFailure;
43
+ let releaseTask;
44
+ const unsubscribe = onProgress ? client.events.on('modelAssets.progress', function receiveProgress(event) {
45
+ if (event?.id !== id || operationSignal.aborted) return;
46
+ delivery = delivery.then(function orderedProgress() {
47
+ if (!operationSignal.aborted) return onProgress(event.progress);
48
+ });
49
+ delivery.catch(function failedProgress(error) {
50
+ callbackFailure ??= error;
51
+ controller.abort(error);
52
+ });
53
+ }) : undefined;
54
+
55
+ function release() {
56
+ releaseTask ??= client.invoke('modelAssets.release', {id}, {timeoutMs: 0});
57
+ return releaseTask;
58
+ }
59
+
60
+ try {
61
+ const projection = await client.invoke(method, {id, ...params}, {signal: operationSignal, timeoutMs: 0});
62
+ await delivery;
63
+ operationSignal.throwIfAborted();
64
+ return {id, directory: projection.directory, members: projection.members, release};
65
+ } catch (error) {
66
+ const reason = callbackFailure ?? (error?.code === 'ARCANE_REQUEST_ABORTED' && operationSignal.aborted ? operationSignal.reason : error);
67
+ controller.abort(reason);
68
+ const errors = [reason];
69
+ try {
70
+ if (method === 'modelAssets.prepare') await client.invoke('modelAssets.cancelPrepare', {id}, {timeoutMs: 0});
71
+ else await release();
72
+ } catch (cleanupError) { if (!errors.includes(cleanupError)) errors.push(cleanupError); }
73
+ try { await delivery; }
74
+ catch (deliveryError) { if (!errors.includes(deliveryError)) errors.push(deliveryError); }
75
+ if (errors.length > 1) throw new AggregateError(errors, 'Native model preparation and cleanup failed.', {cause: reason});
76
+ throw reason;
77
+ } finally { unsubscribe?.(); }
78
+ }
79
+
6
80
  /** Projects complete caller-owned assets through Core without changing their store. */
7
81
  export async function prepareCoreModelAssets({
8
82
  client = getInstalledCoreClient(), workingDirectory, members, signal, onProgress
@@ -76,6 +76,9 @@ alone does not make bare module names resolve in a browser.
76
76
  | Select FLUX.2 Klein 4B and its three complementary model resources | [FLUX.2 Klein 4B through Core](local-image-flux.md) |
77
77
  | Select the complete SDXL Base 1.0 checkpoint for generation and whole-image editing | [SDXL Base 1.0 through Core](local-image-sdxl.md) |
78
78
  | Compose independently loaded transcription and synthesis engines | [Native speech service](native-speech.md) |
79
+ | Stream complete native recognition with retained speaker scope | [Native Nemotron](native-nemotron.md) and [Core speech streaming](native-speech.md#continuous-transcription-and-streaming-synthesis) |
80
+ | Produce native PCM speech with selected voice and language | [Native Magpie](native-magpie.md) |
81
+ | Capture and play native speech through shared AI controls | [Shared AI capture and playback](native-speech.md#shared-ai-capture-and-playback) |
79
82
  | Keep a native Whisper model loaded across complete recordings | [Native Whisper transcription](local-whisper.md) |
80
83
  | Select the optional Intel NPU encoder with independent CUDA or CPU decoding | [Intel NPU Whisper](../guides/native-whisper-openvino.md) |
81
84
  | Edit an original PNG with a complete prompt and explicit strength | [Local image editing](local-image-editing.md) |
@@ -243,6 +246,12 @@ what those artifacts let a developer do.
243
246
 
244
247
  ## Normalized AI
245
248
 
249
+ A speech-only interface explicitly passes `null` for both the first and fourth
250
+ `AI` constructor arguments:
251
+ `new AI(null, 'LOCAL_SPEACH', 'LOCAL_SPEACH', null, ttsModel, sttModel)`.
252
+ This leaves the LLM unselected from construction; omitted or empty arguments
253
+ retain their historical defaults. See [native speech startup](native-speech.md#startup-and-status).
254
+
246
255
  Portable applications start with the provider-neutral runtime rather than an
247
256
  Ollama, Wllama, Whisper, Kokoro, native, or cloud transport:
248
257
 
@@ -233,6 +233,53 @@ Choose preparation according to the result the application needs:
233
233
  | `ai.fetchTTS(payload,signal)` | Promise resolving a real audio Blob | Audio-file providers only; does not play |
234
234
  | `ai.prepareTTS(options)` | Preparation handle with `ready` and `getAudio(index)` | Audio-file providers only; optional caller-owned durable storage |
235
235
 
236
+ ## Native Core streaming speech
237
+
238
+ The shared AI controls also consume an explicitly selected native Core speech
239
+ service. [Nemotron](../native-nemotron.md) supplies retained streaming recognition
240
+ and optional diarization; [Magpie](../native-magpie.md) supplies streamed PCM and
241
+ complete WAV/PCM audio. These are separate from browser Web Speech voices:
242
+ Magpie can export audio, whereas the browser-native synthesis provider exposes
243
+ playback only. No selected route silently falls back to another engine.
244
+
245
+ For speech-only construction, pass `null` for both LLM arguments:
246
+ `new AI(null, 'LOCAL_SPEACH', 'LOCAL_SPEACH', null, ttsModel, sttModel)`.
247
+ This leaves the LLM unselected; omitted or empty arguments preserve defaults.
248
+ The existing per-realm AI singleton is reused if already present. Import and
249
+ construction do not prove native readiness.
250
+
251
+ After the selected STT role is ready, `ai.supportsTranscriptionCapture()`
252
+ reports its capture capability. `ai.createTranscriptionCapture(options)`
253
+ returns `null` without a provider capture implementation, otherwise an owned
254
+ `{start, stop, cancel, destroy, done, forceEndpoint?}` handle. Start from the
255
+ user's capture action with `{signal, mediaConstraints}`. Native options include
256
+ `sampleRate` (default 16000), `pcmChunkMs` (default 100),
257
+ `activityThreshold` (default 0.02), `streamOptions`, `onUpdate`,
258
+ `onInterim`, `onSegment`, `onActivity`, `onState`, `onError`,
259
+ `onProgress`, and `onRequest`. The actual capture rate must match the native
260
+ stream; every PCM contribution is delivered in order.
261
+
262
+ Native recognition callbacks receive `(result, {requestStop})`. Keep full
263
+ snapshots: interim results replace, and final segments retain their native
264
+ boundaries, words, timestamps and speaker scope. A callback can call
265
+ `requestStop()` without awaiting it and return; the external owner awaits
266
+ `stop()` or `done`. Never await those joins or `forceEndpoint()` from their
267
+ own callback. External `forceEndpoint()` flushes pending capture PCM and
268
+ recognition callbacks while leaving the microphone and native stream open.
269
+ `stop()` closes capture and drains recognition; `cancel()` and `destroy()`
270
+ join cleanup without claiming a complete transcript. No control sends chat.
271
+
272
+ For a streaming TTS catalog, `ai.prepareTTSPlayback({input, voice, languageCode, speed}, signal)`
273
+ returns an inert descriptor. Its explicit `play()` uses the shared provider
274
+ lane and Web Audio output. The returned control exposes `finished`,
275
+ `released`, `state`, `error`, `pause()`, `resume()`, and `stop()`.
276
+ `finished` describes playback completion, while `released` joins native
277
+ cleanup. Stop targets that utterance, independently of capture.
278
+ `fetchTTS({input, languageCode, ...}, signal)` still returns complete audio
279
+ when the selected engine supports it. Language is caller-selected control data,
280
+ separate from the text; Magpie supports natural speed `1` only. See
281
+ [shared native capture/playback](../native-speech.md#shared-ai-capture-and-playback).
282
+
236
283
  <a id="digitalocean-fal-text-to-speech"></a>
237
284
 
238
285
  ## TWiN Cloud text-to-speech
@@ -665,13 +712,13 @@ selected execution device or assess the generated audio.
665
712
  ## Queue complete passages and wait for playback
666
713
 
667
714
  For a complete page or passage, call
668
- `ai.streamTTS(text, true, {voice, speed, pauseAfterMs, waitForPlayback:true})`.
715
+ `ai.streamTTS(text, true, {voice, speed, languageCode, pauseAfterMs, waitForPlayback:true})`.
669
716
  The existing AI queue owns segmentation, concurrent synthesis, ordered
670
717
  playback, and cancellation. Supply the exact text; there is no need for an
671
718
  application sentence queue, audio cache, or playback scheduler.
672
719
 
673
720
  This function uses the configured `ai` above. Its application-supplied
674
- `passages` argument is an ordered array of `{text, voice?, speed?, pauseAfterMs?}`
721
+ `passages` argument is an ordered array of `{text, voice?, speed?, languageCode?, pauseAfterMs?}`
675
722
  records. An omitted voice uses the selected model's default voice, an omitted
676
723
  speed uses `ai.voiceSpeed`, and an omitted pause is zero. Each supplied voice
677
724
  must be supported by the selected model; speed must be positive. A pause is
@@ -689,6 +736,7 @@ async function speakPassages(passages) {
689
736
  {
690
737
  voice: passage.voice,
691
738
  speed: passage.speed,
739
+ languageCode: passage.languageCode,
692
740
  pauseAfterMs: passage.pauseAfterMs,
693
741
  waitForPlayback: true
694
742
  }
@@ -709,14 +757,17 @@ streamed speech and prepared playback owned by that AI instance and settles
709
757
  pending playback results `false`. Detached preparation described below keeps
710
758
  its independent lifetime.
711
759
 
712
- The selected voice and speed are captured for segments extracted by that call.
713
- That includes any text left in the same AI instance's partial-stream buffer;
714
- finish the previous producer before starting a separate complete passage.
715
- Voice, speed, pause, and playback options are not retained with an unfinished
716
- `end:false` remainder. A later call supplies its own options, and `finishTTS()`
717
- uses their defaults while flushing any pending single formatting mark through
718
- the same automatic speech-input cleanup.
719
- A call extracting no segments returns `true` without waiting for earlier jobs.
760
+ Voice, speed and languageCode remain associated with an unfinished `end:false`
761
+ utterance and its later `finishTTS()` flush; a supplied option replaces its retained
762
+ selection. An explicitly changed language first queues the preceding remainder
763
+ with its old selection, then accepts the new text. Language is separate control
764
+ information and does not rewrite the text. End, mute and stop clear the retained
765
+ selection. Pause and waitForPlayback remain per-call options. Finish a producer
766
+ before starting an independent passage; the automatic speech-input cleanup
767
+ still retains a pending single formatting mark until final flush.
768
+
769
+ A call extracting no segments returns `true` without waiting for earlier jobs,
770
+ except that a language-change call also joins its preceding remainder preparation.
720
771
  An already muted call returns `false`.
721
772
 
722
773
  Autoplay permission waiting and recoverable audio-resume attempts leave the
@@ -161,6 +161,41 @@ pre-aborted signal sends no transcription request; an in-flight abort sends
161
161
  service owns interruption and release of its actual engine operation.
162
162
  Its optional request observer uses the same pre-dispatch correlation contract.
163
163
 
164
+ ## Streaming native speech
165
+
166
+ `Arcane.speech.openStream(request, {signal, onUpdate, onProgress, onRequest})`
167
+ returns `{streamId, ready, completion, current, push, forceEndpoint, finish, cancel}`
168
+ immediately. Await `ready` before feeding ordered mono `Float32Array` input at
169
+ the request's actual `sampleRate`. This API opens no microphone.
170
+ `forceEndpoint()` drains the current utterance and its ordered update callbacks
171
+ without closing the retained stream; `finish()` drains accepted input and final
172
+ delivery terminally. Partial snapshots replace prior partials; finals retain
173
+ their engine-defined segment and speaker scope. Recognition never decides a
174
+ human turn, instruction or approval.
175
+
176
+ An `onUpdate` callback must return before its own `forceEndpoint()`,
177
+ `finish()`, or `completion` join. Explicit `cancel(reason)` immediately
178
+ suppresses later callbacks and awaits the matching native cleanup control.
179
+ Aborting the signal instead follows ordinary request cancellation, whose browser
180
+ promise may settle before native cleanup.
181
+
182
+ `Arcane.speech.synthesizeStream(request, {signal, onAudio, onProgress, onRequest})`
183
+ requires an `onAudio` consumer and resolves to the engine's complete terminal
184
+ metadata. Every callback receives `{pcm: Uint8Array, format, sampleRate, channels, ...}`
185
+ in order. The facade awaits each callback before acknowledging that contribution
186
+ to the native producer. It does not play audio. An utterance abort joins its
187
+ explicit native cancellation and callback cleanup; actual failures remain
188
+ observable. A callback may abort its caller-owned signal and return, then the
189
+ external owner joins synthesis completion.
190
+
191
+ Both streaming operations have no fixed request timeout. Their scoped events
192
+ and controls retain exact request ownership through client close, document
193
+ retirement and transport loss. Engine support and loaded readiness are separate;
194
+ a facade method alone supplies neither. Complete-recording transcription and
195
+ complete-audio synthesis retain their existing contracts. See
196
+ [Core streaming speech](native-speech.md#continuous-transcription-and-streaming-synthesis)
197
+ for the complete protocol, cancellation and engine interfaces.
198
+
164
199
  ## Current-window state
165
200
 
166
201
  `Arcane.window.state({signal}?)` reads the native window hosting the calling
@@ -93,11 +93,43 @@ See [the complete selection contract](protocols.md#native-only-application-resou
93
93
 
94
94
  ## Output and host contract
95
95
 
96
- Each build creates a fresh `arcane-portable-*` directory beneath `outputRoot`.
97
- The result is `{app, target, manifest}`, with its actual directory at
98
- `target.rootDir`. Existing artifacts are preserved. Cancellation or a failed
99
- assembly removes only that build's newly created directory. Source/release roots
100
- cannot be overwritten with generated output.
96
+ Each build assembles in a fresh temporary directory beneath `outputRoot`, then
97
+ publishes the complete artifact to one stable app-specific child. Portable and
98
+ Windows outputs use `<outputRoot>/<app-id>/`; macOS uses
99
+ `<outputRoot>/<app-id>.app/`. The result remains `{app, target, manifest}`, with
100
+ its actual payload directory at `target.rootDir` and the macOS bundle directory
101
+ also returned as `bundleRoot`. A later successful build replaces that app's
102
+ previous generated output instead of accumulating completed build directories.
103
+ Windows device-name spellings such as `con` receive an underscore in the output
104
+ folder name (`_con` or `_con.app`) on every build host; the app ID stays unchanged.
105
+
106
+ Assembly leaves the current output available. Publication uses same-filesystem
107
+ renames and retains the previous output in a temporary backup until the
108
+ `native.payload.completed` callback accepts the new final paths. A callback
109
+ rejection or cancellation restores the previous output; a successful build
110
+ removes its backup and temporary assembly. The completion callback runs before
111
+ build acceptance, including the following cancellation check; receiving that
112
+ event alone does not establish an accepted build. `native.payload.started` identifies
113
+ the temporary assembly, while `native.payload.completed` identifies the final
114
+ payload and, on macOS, final bundle. Manifest paths stay relative to that payload;
115
+ application content and explicitly supplied configuration paths stay unchanged.
116
+
117
+ Only final replacement of the same app is reserved; independent assemblies and
118
+ other apps remain concurrent. A competing publication reports the exact
119
+ `.arcane-publish-<app-output-name>` reservation so its owner can finish before
120
+ retrying. If recovery or backup cleanup fails, the error identifies the actual
121
+ output, assembly and reservation paths, and whether publication committed.
122
+ The reservation's `owner.json` records the process, acquisition time, advisory
123
+ five-minute TTL/expiry and recovery locations. Expiry never permits automatic
124
+ takeover or deletion. After an interrupted build, inspect those paths before restoring the previous
125
+ output or removing the reservation. A running or locked app may prevent Windows
126
+ replacement; close that app and retry the build after the reported failure.
127
+
128
+ Replacement applies only to the matching app's generated artifact directory.
129
+ Source/release roots, unrelated outputs, host/runtime download caches and the
130
+ host's separate saved profile/model directories remain outside replacement.
131
+ Existing randomly named outputs from earlier SDK versions are left untouched;
132
+ the new stable-output lifecycle does not sweep old directories or user data.
101
133
 
102
134
  The selected app is copied unchanged under `app/`. Dependencies are copied
103
135
  unchanged under `dependencies/<index>/`; the manifest relates each directory to
@@ -751,7 +783,7 @@ produce their actual download error. SDK collaborators may select an existing
751
783
  version, another architecture or a browser-only artifact.
752
784
 
753
785
  The complete unchanged portable payload lives at
754
- `<app-id>.app/Contents/Resources/`. That directory remains `target.rootDir` and
786
+ `<outputRoot>/<app-id>.app/Contents/Resources/`. That directory remains `target.rootDir` and
755
787
  contains `arcane-native.json`, `app/`, dependency releases, installed SDK files,
756
788
  Core entry/client and `runtime/node`. The additive `bundleRoot` identifies the
757
789
  `.app` directory. `Contents/MacOS/Arcane` and `Contents/Info.plist` belong to the
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "sdkVersion": "0.94.0",
3
+ "sdkVersion": "0.95.0",
4
4
  "environment": {
5
5
  "runtime": "Node.js for Node entrypoints; browser for browser-only entrypoints",
6
6
  "minimumVersion": "22.23.2 for Node entrypoints",
7
7
  "moduleSystem": "ESM"
8
8
  },
9
- "memberCount": 314,
9
+ "memberCount": 322,
10
10
  "runtimeSubpathPatterns": {
11
11
  "arcane-os/modules/*": "./runtime/arcane/modules/*",
12
12
  "arcane-os/entities/*": "./runtime/arcane/entities/*"
@@ -250,6 +250,134 @@
250
250
  "protocol": "Native speech voice selection",
251
251
  "normalization": "Complete ordered voice array exported by the frontend; af_heart is the omitted voice default. An unsupported explicit voice reports its actual incompatibility without substitution."
252
252
  },
253
+ {
254
+ "id": "local-ai-nemotron:createNemotronRuntime",
255
+ "name": "createNemotronRuntime",
256
+ "displayName": "createNemotronRuntime()",
257
+ "kind": "function",
258
+ "signature": "createNemotronRuntime({runtime,prepare,modelId='nemotron-3.5-asr-streaming-0.6b',modelPath,diarizationModelPath,gpu,onEvent}={})",
259
+ "entrypoints": [
260
+ "arcane-os/local-ai/nemotron"
261
+ ],
262
+ "primaryImport": "arcane-os/local-ai/nemotron",
263
+ "group": "Core native speech",
264
+ "summary": "Retains one native recognizer and optional diarizer across explicit utterance endpoints.",
265
+ "availability": "Node with a matching first-party helper, selected NeMo ASR runtime and models; Windows/Linux/macOS source, Android host adaptation",
266
+ "protocol": "Native ASR C ABI through one retained helper and replaying nemotron.state",
267
+ "normalization": "Returns current/subscribe/load/unload/transcribe/openStream/close. Exact ordered Float32 or f32le input uses the actual declared sample rate; complete snapshots retain alternatives, words, timestamps and speaker scope. forceEndpoint preserves the native stream; finish drains terminally. Callback joins reject NEMOTRON_CALLBACK_WAIT. Cancellation joins cleanup and exposes resetRequired when an in-flight native call requires helper termination; explicit load is required afterward. No microphone, semantic completion or fallback."
268
+ },
269
+ {
270
+ "id": "local-ai-nemotron:default",
271
+ "name": "default",
272
+ "displayName": "createNemotronRuntime default export",
273
+ "kind": "function",
274
+ "signature": "default as createNemotronRuntime",
275
+ "entrypoints": [
276
+ "arcane-os/local-ai/nemotron"
277
+ ],
278
+ "primaryImport": "arcane-os/local-ai/nemotron",
279
+ "group": "Core native speech",
280
+ "summary": "Default binding for the same createNemotronRuntime function.",
281
+ "availability": "Node with a matching first-party helper, selected NeMo ASR runtime and models; Windows/Linux/macOS source, Android host adaptation",
282
+ "protocol": "Native ASR C ABI through one retained helper and replaying nemotron.state",
283
+ "normalization": "Binding identity equals the named createNemotronRuntime export"
284
+ },
285
+ {
286
+ "id": "local-ai-nemotron-build:buildNemotronHelper",
287
+ "name": "buildNemotronHelper",
288
+ "displayName": "buildNemotronHelper()",
289
+ "kind": "function",
290
+ "signature": "async buildNemotronHelper({runtime,outputRoot,signal,onEvent}={})",
291
+ "entrypoints": [
292
+ "arcane-os/local-ai/nemotron/build"
293
+ ],
294
+ "primaryImport": "arcane-os/local-ai/nemotron/build",
295
+ "group": "Core native speech",
296
+ "summary": "Builds the first-party retained Nemotron ASR helper against a caller-selected NeMo installation.",
297
+ "availability": "Node with CMake 3.26+, C++17 toolchain and platform-matching public NeMo ASR headers/libraries/CMake package",
298
+ "protocol": "Owned configure/build/install process lifecycle",
299
+ "normalization": "runtime.cmakeDirectory and outputRoot select the prepared upstream installation and owned output. Returns platform/architecture/root/helperExecutable/executable and complete configure/compile/install diagnostics. Preserves cancellation and process failures; installs no dependency, model or toolchain and performs no inference."
300
+ },
301
+ {
302
+ "id": "local-ai-nemotron-build:default",
303
+ "name": "default",
304
+ "displayName": "buildNemotronHelper default export",
305
+ "kind": "function",
306
+ "signature": "default as buildNemotronHelper",
307
+ "entrypoints": [
308
+ "arcane-os/local-ai/nemotron/build"
309
+ ],
310
+ "primaryImport": "arcane-os/local-ai/nemotron/build",
311
+ "group": "Core native speech",
312
+ "summary": "Default binding for the same buildNemotronHelper function.",
313
+ "availability": "Node with CMake 3.26+, C++17 toolchain and platform-matching public NeMo ASR headers/libraries/CMake package",
314
+ "protocol": "Owned configure/build/install process lifecycle",
315
+ "normalization": "Binding identity equals the named buildNemotronHelper export"
316
+ },
317
+ {
318
+ "id": "local-ai-magpie:createMagpieRuntime",
319
+ "name": "createMagpieRuntime",
320
+ "displayName": "createMagpieRuntime()",
321
+ "kind": "function",
322
+ "signature": "createMagpieRuntime({runtime,prepare,paths,modelAssets,assetProjectionId,resourcePaths,modelId='magpie',voice='Aria',languageCode='en-US',executionTarget,signal,onEvent}={})",
323
+ "entrypoints": [
324
+ "arcane-os/local-ai/magpie"
325
+ ],
326
+ "primaryImport": "arcane-os/local-ai/magpie",
327
+ "group": "Core native speech",
328
+ "summary": "Retains native Magpie and NanoCodec for complete audio or ordered PCM synthesis.",
329
+ "availability": "Node with a matching first-party helper, selected NeMo TTS runtime, Magpie/tokenizer and NanoCodec assets; Windows/Linux/macOS source, Android host adaptation",
330
+ "protocol": "Native TTS C ABI through one retained helper and replaying magpie.state",
331
+ "normalization": "Returns current/subscribe/load/unload/synthesize/synthesizeStream/stop/close. Explicit CPU/CUDA selection, model-owned voice map and per-request language remain separate from exact input. Complete wav/pcm export and awaited ordered s16le onAudio delivery share FIFO request ownership. Native speed is 1. Stop targets a requestId and joins native/callback cleanup; self-joins reject MAGPIE_CALLBACK_WAIT. Playback and conversational meaning remain caller-owned; no download or fallback."
332
+ },
333
+ {
334
+ "id": "local-ai-magpie:default",
335
+ "name": "default",
336
+ "displayName": "createMagpieRuntime default export",
337
+ "kind": "function",
338
+ "signature": "default as createMagpieRuntime",
339
+ "entrypoints": [
340
+ "arcane-os/local-ai/magpie"
341
+ ],
342
+ "primaryImport": "arcane-os/local-ai/magpie",
343
+ "group": "Core native speech",
344
+ "summary": "Default binding for the same createMagpieRuntime function.",
345
+ "availability": "Node with a matching first-party helper, selected NeMo TTS runtime, Magpie/tokenizer and NanoCodec assets; Windows/Linux/macOS source, Android host adaptation",
346
+ "protocol": "Native TTS C ABI through one retained helper and replaying magpie.state",
347
+ "normalization": "Binding identity equals the named createMagpieRuntime export"
348
+ },
349
+ {
350
+ "id": "local-ai-magpie-build:buildMagpieHelper",
351
+ "name": "buildMagpieHelper",
352
+ "displayName": "buildMagpieHelper()",
353
+ "kind": "function",
354
+ "signature": "async buildMagpieHelper({runtime,outputRoot,signal,onEvent}={})",
355
+ "entrypoints": [
356
+ "arcane-os/local-ai/magpie/build"
357
+ ],
358
+ "primaryImport": "arcane-os/local-ai/magpie/build",
359
+ "group": "Core native speech",
360
+ "summary": "Builds the first-party Magpie synthesis helper against a caller-selected NeMo installation.",
361
+ "availability": "Node with CMake 3.26+, C++17 toolchain, platform threads and matching public NeMo TTS headers/libraries/CMake package",
362
+ "protocol": "Owned configure/build/install process lifecycle",
363
+ "normalization": "runtime.cmakeDirectory and outputRoot select the prepared upstream installation and owned output. Returns platform/architecture/root/helperExecutable and complete configure/compile/install diagnostics. Preserves cancellation and process failures; installs no dependency, model or toolchain and performs no inference."
364
+ },
365
+ {
366
+ "id": "local-ai-magpie-build:default",
367
+ "name": "default",
368
+ "displayName": "buildMagpieHelper default export",
369
+ "kind": "function",
370
+ "signature": "default as buildMagpieHelper",
371
+ "entrypoints": [
372
+ "arcane-os/local-ai/magpie/build"
373
+ ],
374
+ "primaryImport": "arcane-os/local-ai/magpie/build",
375
+ "group": "Core native speech",
376
+ "summary": "Default binding for the same buildMagpieHelper function.",
377
+ "availability": "Node with CMake 3.26+, C++17 toolchain, platform threads and matching public NeMo TTS headers/libraries/CMake package",
378
+ "protocol": "Owned configure/build/install process lifecycle",
379
+ "normalization": "Binding identity equals the named buildMagpieHelper export"
380
+ },
253
381
  {
254
382
  "id": "local-ai-whisper:createWhisperRuntime",
255
383
  "name": "createWhisperRuntime",
@@ -429,8 +557,8 @@
429
557
  "group": "Core native speech",
430
558
  "summary": "Composes host-supplied transcription and synthesis engines with independent loading and role readiness.",
431
559
  "availability": "Node Core with explicitly supplied engines; engine platform, model and format support remain engine-owned",
432
- "protocol": "arcane/1 speech.status/load/unload/transcribe/synthesize with speech.state/progress",
433
- "normalization": "Returns current/subscribe/close/start/methods/drain/dispose; forwards complete requests and results unchanged; replaying service state, synchronous accepted Thinking, combined request/lifetime cancellation and concurrent joined engine shutdown. Explicit load/unload require role stt or tts and forward the remaining activation fields and complete result through that role's configured engine; supported preparation remains with that engine. Startup waiting is independently owned from caller cancellation; no automatic provider selection is introduced."
560
+ "protocol": "arcane/1 speech.status/load/unload/transcribe/synthesize; optional open/push/endpoint/finish/cancel/synthesizeStream/audioConsumed/cancelSynthesis with speech.state/progress/opened/transcription/audio",
561
+ "normalization": "Returns current/subscribe/close/start/methods/drain/dispose; forwards complete requests and results unchanged; replaying service state, synchronous accepted Thinking, combined request/lifetime cancellation and concurrent joined engine shutdown. Explicit load/unload require role stt or tts and forward the remaining activation fields and complete result through that role's configured engine; supported preparation remains with that engine. Per-role supportsStreaming reflects actual engine methods independently of readiness. Request-scoped streaming retains exact PCM and unchanged snapshots; endpoint preserves stream scope, terminal finish drains, and cancellation joins native ownership. Awaited TTS audio acknowledgements apply producer backpressure without blocking control traffic. ASR finals do not decide conversation completion. Startup waiting is independently owned from caller cancellation; no automatic provider selection is introduced."
434
562
  },
435
563
  {
436
564
  "id": "core-speech:default",
@@ -4444,7 +4572,7 @@
4444
4572
  "summary": "Projects a Core client into the established application-facing Arcane namespace.",
4445
4573
  "availability": "Browser and native WebView JavaScript hosts with a Core client",
4446
4574
  "protocol": "arcane/1 compatibility facade",
4447
- "normalization": "Routes namespace methods through client.invoke while retaining operation-specific parameters, correlation, streaming callbacks, timeouts and cancellation; window.state({signal}?) reads the requesting window and window.setState({state},{signal}?) selects normal, maximized or fullscreen. The matching Windows host returns {platform:'windows',supported:true,state}, including observed minimized state, restores normal bounds/frame controls on leaving fullscreen and prevents activation/focus assignment during visible state transitions without changing TopMost, Core, origin or profile. Saved Settings remain application-owned; cancellation does not undo an applied change and unavailable hosts retain their actual errors without fallback. window.setTheme(presentation,{signal}?) forwards the complete per-window backgroundColor/textColor record, with omitted fields unchanged and null reset, and returns the host's actual applied/unsupported result without changing system appearance. notifications.status/show/state/close forward complete caller requests and standard invoke options; status normalizes only METHOD_NOT_ALLOWED with core-namespace-unavailable while retaining the complete original error. Matching native window hosts retain complete notification records and ordered revisions across renderer navigation, with notifications.state events and subscribe-before-snapshot recovery. Submitted means native Show returned, not displayed or read; cancellation after submission does not remove an accepted notice, and explicit close retains its record. Recipient, text, trigger, deduplication and navigation policy remains application-owned. speech.load(request,options) and speech.unload(request,options) forward complete activation requests, cancellation and request observers with no elapsed-time cutoff; selected engines own preparation and native retirement."
4575
+ "normalization": "speech.openStream(request,options) returns streamId/ready/completion/current/push/forceEndpoint/finish/cancel with ordered exact Float32 input and complete snapshot callbacks; endpoint/finish delivery joins must occur outside their own callbacks. Explicit stream cancel joins native cleanup, distinct from ordinary signal cancellation. speech.synthesizeStream(request,{signal,onAudio,onProgress,onRequest}) awaits required ordered Uint8Array PCM callbacks and exact consumption acknowledgements, joins cancellation, and returns complete terminal metadata without playback. Both streams have no fixed timeout. Routes namespace methods through client.invoke while retaining operation-specific parameters, correlation, streaming callbacks, timeouts and cancellation; window.state({signal}?) reads the requesting window and window.setState({state},{signal}?) selects normal, maximized or fullscreen. The matching Windows host returns {platform:'windows',supported:true,state}, including observed minimized state, restores normal bounds/frame controls on leaving fullscreen and prevents activation/focus assignment during visible state transitions without changing TopMost, Core, origin or profile. Saved Settings remain application-owned; cancellation does not undo an applied change and unavailable hosts retain their actual errors without fallback. window.setTheme(presentation,{signal}?) forwards the complete per-window backgroundColor/textColor record, with omitted fields unchanged and null reset, and returns the host's actual applied/unsupported result without changing system appearance. notifications.status/show/state/close forward complete caller requests and standard invoke options; status normalizes only METHOD_NOT_ALLOWED with core-namespace-unavailable while retaining the complete original error. Matching native window hosts retain complete notification records and ordered revisions across renderer navigation, with notifications.state events and subscribe-before-snapshot recovery. Submitted means native Show returned, not displayed or read; cancellation after submission does not remove an accepted notice, and explicit close retains its record. Recipient, text, trigger, deduplication and navigation policy remains application-owned. speech.load(request,options) and speech.unload(request,options) forward complete activation requests, cancellation and request observers with no elapsed-time cutoff; selected engines own preparation and native retirement."
4448
4576
  },
4449
4577
  {
4450
4578
  "id": "core-client:installCoreClient",