refactor(ai): extract assistant into an official module (#749)

* feat(modules): expose host data boundaries

* feat(modules): add frontend extension surfaces

* refactor(ai): remove assistant from core

* chore(ai): prepare the module extraction

* fix(modules): load extension styles after the host bundle

* chore(modules): lock SDK 3.3.0
This commit is contained in:
Darko Gjorgjijoski
2026-08-05 22:10:21 +02:00
committed by GitHub
parent 99ae7def75
commit 0b9ae9ea00
111 changed files with 1137 additions and 8952 deletions
+10 -1
View File
@@ -3,6 +3,10 @@
const OFFICIAL_MARKETPLACE_KEY_ID = 'official-modules-2026-01';
const OFFICIAL_MARKETPLACE_PUBLIC_KEY = 'sIDGuOAaMVzPv9I/GPbWp9ci5aUI5HcM5rZ0tKxW6dc=';
test('marketplace configuration advertises module API 1.2 by default', function () {
expect(marketplaceConfigFor(null)['module_api_version'])->toBe('1.2.0');
});
test('marketplace configuration includes the official signing key by default', function () {
expect(marketplacePublicKeysConfigFor(null))
->toBe([OFFICIAL_MARKETPLACE_KEY_ID => OFFICIAL_MARKETPLACE_PUBLIC_KEY]);
@@ -21,6 +25,11 @@ test('marketplace public-key configuration adds and rotates trusted keys', funct
});
function marketplacePublicKeysConfigFor(?string $override): array
{
return marketplaceConfigFor($override)['public_keys'];
}
function marketplaceConfigFor(?string $override): array
{
$previous = getenv('MARKETPLACE_PUBLIC_KEYS');
@@ -44,5 +53,5 @@ function marketplacePublicKeysConfigFor(?string $override): array
$_SERVER['MARKETPLACE_PUBLIC_KEYS'] = $previous;
}
return $configuration['marketplace']['public_keys'];
return $configuration['marketplace'];
}