@objectstack/core 1.1.0 → 2.0.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/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js.map +1 -1
- package/examples/api-registry-example.ts +2 -0
- package/examples/kernel-features-example.ts +2 -0
- package/examples/phase2-integration.ts +2 -0
- package/package.json +2 -2
- package/src/api-registry-plugin.ts +2 -0
- package/src/api-registry.ts +2 -0
- package/src/contracts/data-engine.ts +2 -0
- package/src/contracts/http-server.ts +2 -0
- package/src/contracts/logger.ts +2 -0
- package/src/dependency-resolver.ts +2 -0
- package/src/health-monitor.ts +2 -0
- package/src/hot-reload.ts +2 -0
- package/src/index.ts +2 -0
- package/src/kernel-base.ts +2 -0
- package/src/kernel.ts +2 -0
- package/src/lite-kernel.ts +2 -0
- package/src/logger.ts +2 -0
- package/src/plugin-loader.ts +2 -0
- package/src/qa/adapter.ts +2 -0
- package/src/qa/http-adapter.ts +2 -0
- package/src/qa/index.ts +2 -0
- package/src/qa/runner.ts +2 -0
- package/src/security/index.ts +2 -0
- package/src/security/permission-manager.ts +2 -0
- package/src/security/plugin-config-validator.ts +2 -0
- package/src/security/plugin-permission-enforcer.ts +2 -0
- package/src/security/plugin-signature-verifier.ts +2 -0
- package/src/security/sandbox-runtime.ts +2 -0
- package/src/security/security-scanner.ts +10 -8
- package/src/types.ts +2 -0
- package/src/utils/env.ts +2 -0
- package/vitest.config.ts +2 -0
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ export { DriverInterface, IDataEngine, IHttpRequest, IHttpResponse, IHttpServer,
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { ConflictResolutionStrategy, ApiRegistryEntryInput, ApiRegistryEntry, ApiDiscoveryQuery, ApiDiscoveryResponse, ApiEndpointRegistration, ApiRegistry as ApiRegistry$1 } from '@objectstack/spec/api';
|
|
6
6
|
import { QA } from '@objectstack/spec';
|
|
7
|
-
import { PluginCapability, PermissionSet, ResourceType, PermissionAction, Permission, SandboxConfig,
|
|
7
|
+
import { PluginCapability, PermissionSet, ResourceType, PermissionAction, Permission, SandboxConfig, KernelSecurityScanResult, KernelSecurityVulnerability, PluginHealthCheck, PluginHealthStatus as PluginHealthStatus$1, PluginHealthReport, HotReloadConfig, SemanticVersion, VersionConstraint, CompatibilityLevel, DependencyConflict } from '@objectstack/spec/kernel';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Service Lifecycle Types
|
|
@@ -1515,7 +1515,7 @@ declare class PluginSecurityScanner {
|
|
|
1515
1515
|
/**
|
|
1516
1516
|
* Perform a comprehensive security scan on a plugin
|
|
1517
1517
|
*/
|
|
1518
|
-
scan(target: ScanTarget): Promise<
|
|
1518
|
+
scan(target: ScanTarget): Promise<KernelSecurityScanResult>;
|
|
1519
1519
|
/**
|
|
1520
1520
|
* Scan code for vulnerabilities
|
|
1521
1521
|
*/
|
|
@@ -1543,11 +1543,11 @@ declare class PluginSecurityScanner {
|
|
|
1543
1543
|
/**
|
|
1544
1544
|
* Add a vulnerability to the database
|
|
1545
1545
|
*/
|
|
1546
|
-
addVulnerability(packageName: string, version: string, vulnerability:
|
|
1546
|
+
addVulnerability(packageName: string, version: string, vulnerability: KernelSecurityVulnerability): void;
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Get scan result from cache
|
|
1549
1549
|
*/
|
|
1550
|
-
getScanResult(pluginId: string, version: string):
|
|
1550
|
+
getScanResult(pluginId: string, version: string): KernelSecurityScanResult | undefined;
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Clear scan results cache
|
|
1553
1553
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { DriverInterface, IDataEngine, IHttpRequest, IHttpResponse, IHttpServer,
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { ConflictResolutionStrategy, ApiRegistryEntryInput, ApiRegistryEntry, ApiDiscoveryQuery, ApiDiscoveryResponse, ApiEndpointRegistration, ApiRegistry as ApiRegistry$1 } from '@objectstack/spec/api';
|
|
6
6
|
import { QA } from '@objectstack/spec';
|
|
7
|
-
import { PluginCapability, PermissionSet, ResourceType, PermissionAction, Permission, SandboxConfig,
|
|
7
|
+
import { PluginCapability, PermissionSet, ResourceType, PermissionAction, Permission, SandboxConfig, KernelSecurityScanResult, KernelSecurityVulnerability, PluginHealthCheck, PluginHealthStatus as PluginHealthStatus$1, PluginHealthReport, HotReloadConfig, SemanticVersion, VersionConstraint, CompatibilityLevel, DependencyConflict } from '@objectstack/spec/kernel';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Service Lifecycle Types
|
|
@@ -1515,7 +1515,7 @@ declare class PluginSecurityScanner {
|
|
|
1515
1515
|
/**
|
|
1516
1516
|
* Perform a comprehensive security scan on a plugin
|
|
1517
1517
|
*/
|
|
1518
|
-
scan(target: ScanTarget): Promise<
|
|
1518
|
+
scan(target: ScanTarget): Promise<KernelSecurityScanResult>;
|
|
1519
1519
|
/**
|
|
1520
1520
|
* Scan code for vulnerabilities
|
|
1521
1521
|
*/
|
|
@@ -1543,11 +1543,11 @@ declare class PluginSecurityScanner {
|
|
|
1543
1543
|
/**
|
|
1544
1544
|
* Add a vulnerability to the database
|
|
1545
1545
|
*/
|
|
1546
|
-
addVulnerability(packageName: string, version: string, vulnerability:
|
|
1546
|
+
addVulnerability(packageName: string, version: string, vulnerability: KernelSecurityVulnerability): void;
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Get scan result from cache
|
|
1549
1549
|
*/
|
|
1550
|
-
getScanResult(pluginId: string, version: string):
|
|
1550
|
+
getScanResult(pluginId: string, version: string): KernelSecurityScanResult | undefined;
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Clear scan results cache
|
|
1553
1553
|
*/
|