arcane-os 0.63.0 → 0.65.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 +48 -0
- package/README.md +1 -1
- package/browser-runtime/core/client.mjs +69 -7
- package/docs/guides/native-whisper-openvino.md +334 -0
- package/docs/reference/README.md +6 -0
- package/docs/reference/arcane-ollama.md +1 -1
- package/docs/reference/codex-app-server.md +269 -0
- package/docs/reference/core-client.md +71 -4
- package/docs/reference/core-development.md +157 -0
- package/docs/reference/core-native-packaging.md +48 -6
- package/docs/reference/core-repositories.md +258 -0
- package/docs/reference/inventory/package-api.json +199 -3
- package/docs/reference/inventory/runtime-modules.json +3 -2
- package/docs/reference/local-ai.md +77 -4
- package/docs/reference/local-image-flux.md +1 -1
- package/docs/reference/local-image-generation.md +11 -0
- package/docs/reference/local-image-sdxl.md +139 -0
- package/docs/reference/local-whisper.md +219 -0
- package/docs/reference/mcp-stdio.md +263 -0
- package/docs/reference/native-speech.md +51 -2
- package/docs/reference/runtime-components.md +18 -1
- package/docs/reference/runtime-modules.md +26 -4
- package/docs/reference/sdk-api.md +412 -2
- package/package.json +9 -2
- package/runtime/arcane/components/speech.html +15 -3
- package/runtime/arcane/components/voice-transcription.html +19 -3
- package/runtime/arcane/modules/AI.js +406 -40
- package/runtime/arcane/modules/AIProviderRuntime.js +20 -3
- package/runtime/arcane/modules/AIRuntimeState.js +15 -2
- package/runtime/arcane/modules/ComponentContracts.js +3 -0
- package/runtime/arcane/modules/Ollama.js +1 -1
- package/runtime/arcane/modules/OllamaModelIdentifier.js +13 -0
- package/schemas/arcane-app.schema.json +60 -2
- package/schemas/arcane-package.schema.json +60 -2
- package/src/codex/app-server.mjs +845 -0
- package/src/core/development.mjs +457 -0
- package/src/core/repositories.mjs +375 -0
- package/src/core/services/local-ai.mjs +80 -10
- package/src/core/services/speech.mjs +1 -0
- package/src/dev-server.mjs +3 -2
- package/src/index.mjs +1 -0
- package/src/local-ai/config.mjs +7 -3
- package/src/local-ai/dev.mjs +85 -401
- package/src/local-ai/image-library.mjs +9 -0
- package/src/local-ai/image-models/sdxl.mjs +18 -0
- package/src/local-ai/install.mjs +26 -7
- package/src/local-ai/whisper/build.mjs +48 -0
- package/src/local-ai/whisper/config.mjs +89 -0
- package/src/local-ai/whisper/index.mjs +572 -0
- package/src/local-ai/whisper/install.mjs +332 -0
- package/src/local-ai/whisper/native/CMakeLists.txt +98 -0
- package/src/local-ai/whisper/native/NOTICE +18 -0
- package/src/local-ai/whisper/native/README.md +104 -0
- package/src/local-ai/whisper/native/main.cpp +520 -0
- package/src/local-ai/whisper/openvino-build.mjs +138 -0
- package/src/mcp/stdio-server.mjs +579 -0
- package/src/native/portable-layout.mjs +39 -7
- package/src/toolchain.mjs +19 -8
package/src/toolchain.mjs
CHANGED
|
@@ -25,6 +25,7 @@ import {withWorkspaceOperationLock} from './workspace-operation-lock.mjs';
|
|
|
25
25
|
import {refreshAppPackageProjection} from './app-descriptor.mjs';
|
|
26
26
|
import {configureDevelopmentLocalAI} from './local-ai/config.mjs';
|
|
27
27
|
import {createDevelopmentLocalAI} from './local-ai/dev.mjs';
|
|
28
|
+
import {createDevelopmentCore} from './core/development.mjs';
|
|
28
29
|
import {
|
|
29
30
|
discoverApps as discoverPackagerApps,
|
|
30
31
|
inspectApp as inspectPackagedApp,
|
|
@@ -626,15 +627,25 @@ export async function developApplication(options = {}) {
|
|
|
626
627
|
}
|
|
627
628
|
);
|
|
628
629
|
const localAIConfig = prepared.descriptor?.native?.localAI;
|
|
629
|
-
const
|
|
630
|
-
|
|
630
|
+
const serviceModules = options.serviceModules ?? prepared.descriptor?.native?.services ?? [];
|
|
631
|
+
const coreOptions = {
|
|
631
632
|
appRoot: prepared.appRoot,
|
|
632
|
-
directory: path.join(prepared.appRoot, '.arcane', 'local-ai', 'runtimes'),
|
|
633
633
|
application: prepared.descriptor,
|
|
634
634
|
version: prepared.descriptor.version,
|
|
635
635
|
signal: options.signal,
|
|
636
|
-
onEvent: options.onEvent
|
|
636
|
+
onEvent: options.onEvent,
|
|
637
|
+
services: options.services ?? [],
|
|
638
|
+
serviceModules,
|
|
639
|
+
context: options.context ?? {}
|
|
640
|
+
};
|
|
641
|
+
const localAI = localAIConfig?.runtimes.length ? createDevelopmentLocalAI({
|
|
642
|
+
...coreOptions,
|
|
643
|
+
config: localAIConfig,
|
|
644
|
+
directory: path.join(prepared.appRoot, '.arcane', 'local-ai', 'runtimes')
|
|
637
645
|
}) : undefined;
|
|
646
|
+
const core = localAI ?? (serviceModules.length || coreOptions.services.length
|
|
647
|
+
? createDevelopmentCore(coreOptions)
|
|
648
|
+
: undefined);
|
|
638
649
|
let server;
|
|
639
650
|
try {
|
|
640
651
|
server=await startDevServer({
|
|
@@ -653,19 +664,19 @@ export async function developApplication(options = {}) {
|
|
|
653
664
|
tls:options.tls,
|
|
654
665
|
certPath:options.certPath,
|
|
655
666
|
keyPath:options.keyPath,
|
|
656
|
-
|
|
667
|
+
core,
|
|
657
668
|
signal:options.signal,
|
|
658
669
|
onEvent:options.onEvent
|
|
659
670
|
});
|
|
660
671
|
} catch (error) {
|
|
661
672
|
try {
|
|
662
|
-
await
|
|
673
|
+
await core?.close(error);
|
|
663
674
|
} catch (closeError) {
|
|
664
|
-
throw new AggregateError([error, closeError], 'Development startup and
|
|
675
|
+
throw new AggregateError([error, closeError], 'Development startup and Core shutdown failed.');
|
|
665
676
|
}
|
|
666
677
|
throw error;
|
|
667
678
|
}
|
|
668
|
-
return {...server,appId:prepared.appId,mode:'source',...(localAI ? {localAI} : {})};
|
|
679
|
+
return {...server,appId:prepared.appId,mode:'source',...(core ? {core} : {}),...(localAI ? {localAI} : {})};
|
|
669
680
|
}
|
|
670
681
|
|
|
671
682
|
export async function packageApplication(options={}){
|