From a477919e760082eeb844d9ce06299251d945ed77 Mon Sep 17 00:00:00 2001 From: Prathik Rao Date: Thu, 19 Feb 2026 15:58:13 -0800 Subject: [PATCH 1/4] baiju --- sdk_v2/js/src/detail/coreInterop.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk_v2/js/src/detail/coreInterop.ts b/sdk_v2/js/src/detail/coreInterop.ts index d74c1c1a..10956645 100644 --- a/sdk_v2/js/src/detail/coreInterop.ts +++ b/sdk_v2/js/src/detail/coreInterop.ts @@ -72,6 +72,7 @@ export class CoreInterop { if (process.platform === 'win32') { koffi.load(path.join(coreDir, `onnxruntime${ext}`)); koffi.load(path.join(coreDir, `onnxruntime-genai${ext}`)); + process.env.PATH = `${coreDir};${process.env.PATH}`; } this.lib = koffi.load(corePath); From b61eb7f1f3ed5830cb8b1c2bba78265239e57a0e Mon Sep 17 00:00:00 2001 From: Prathik Rao Date: Thu, 19 Feb 2026 23:21:14 -0800 Subject: [PATCH 2/4] bootstrap --- sdk_v2/js/src/detail/coreInterop.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sdk_v2/js/src/detail/coreInterop.ts b/sdk_v2/js/src/detail/coreInterop.ts index 10956645..61b5740b 100644 --- a/sdk_v2/js/src/detail/coreInterop.ts +++ b/sdk_v2/js/src/detail/coreInterop.ts @@ -52,6 +52,14 @@ export class CoreInterop { const corePath = path.join(packageDir, `Microsoft.AI.Foundry.Local.Core${ext}`); if (fs.existsSync(corePath)) { config.params['FoundryLocalCorePath'] = corePath; + + // Auto-detect if WinML Bootstrap is needed by checking for Bootstrap DLL in FoundryLocalCorePath + const bootstrapDllPath = path.join(packageDir, 'Microsoft.WindowsAppRuntime.Bootstrap.dll'); + if (fs.existsSync(bootstrapDllPath)) { + // WinML Bootstrap DLL found, enable bootstrapping + config.params['Bootstrap'] = 'true'; + } + return corePath; } From da714d702bbd6beda36d5eab448b2599e1f896f9 Mon Sep 17 00:00:00 2001 From: Prathik Rao Date: Fri, 20 Feb 2026 10:14:32 -0800 Subject: [PATCH 3/4] flc ver --- sdk_v2/js/script/install.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_v2/js/script/install.cjs b/sdk_v2/js/script/install.cjs index f43f4f09..c8d2fbe8 100644 --- a/sdk_v2/js/script/install.cjs +++ b/sdk_v2/js/script/install.cjs @@ -55,7 +55,7 @@ const CORE_FEED = useNightly ? ORT_NIGHTLY_FEED : NUGET_FEED; const ARTIFACTS = [ { name: useWinML ? 'Microsoft.AI.Foundry.Local.Core.WinML' : 'Microsoft.AI.Foundry.Local.Core', - version: useNightly ? undefined : useWinML ? '0.9.0.7-dev.20260209T090407.b5352143' : '0.9.0.8-dev.20260209T090216.b5352143', // Set later using resolveLatestVersion if undefined + version: useNightly ? undefined : useWinML ? '0.9.0.183-dev-20260220T084805-e884d4c7' : '0.9.0.8-dev.20260209T090216.b5352143', // Set later using resolveLatestVersion if undefined feed: ORT_NIGHTLY_FEED }, { From 3103890a54212cacd8e38cd6f9bf91c40cbc37c8 Mon Sep 17 00:00:00 2001 From: Prathik Rao Date: Fri, 20 Feb 2026 13:46:45 -0800 Subject: [PATCH 4/4] flc ver --- sdk_v2/js/script/install.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_v2/js/script/install.cjs b/sdk_v2/js/script/install.cjs index c8d2fbe8..4d7b82b4 100644 --- a/sdk_v2/js/script/install.cjs +++ b/sdk_v2/js/script/install.cjs @@ -55,7 +55,7 @@ const CORE_FEED = useNightly ? ORT_NIGHTLY_FEED : NUGET_FEED; const ARTIFACTS = [ { name: useWinML ? 'Microsoft.AI.Foundry.Local.Core.WinML' : 'Microsoft.AI.Foundry.Local.Core', - version: useNightly ? undefined : useWinML ? '0.9.0.183-dev-20260220T084805-e884d4c7' : '0.9.0.8-dev.20260209T090216.b5352143', // Set later using resolveLatestVersion if undefined + version: useNightly ? undefined : useWinML ? '0.9.0.194-dev-20260220T213816-a79d8a61' : '0.9.0.8-dev.20260209T090216.b5352143', // Set later using resolveLatestVersion if undefined feed: ORT_NIGHTLY_FEED }, {