webloom-framework 0.4.0 → 0.4.1
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/README.md +1 -1
- package/dist/advanced.d.ts +5 -5
- package/dist/advanced.js +4 -4
- package/dist/{chunk-RAQOFUZY.js → chunk-ANA6GBEI.js} +3 -3
- package/dist/{chunk-RAQOFUZY.js.map → chunk-ANA6GBEI.js.map} +1 -1
- package/dist/{chunk-JHJZIO2H.js → chunk-HJKPKWI7.js} +8 -2
- package/dist/chunk-HJKPKWI7.js.map +1 -0
- package/dist/{chunk-YOIH6H36.js → chunk-SX46RHDI.js} +15 -15
- package/dist/chunk-SX46RHDI.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/{messagePortServiceTransport-B0FyJr43.d.ts → messagePortServiceTransport-BYprNvQY.d.ts} +1 -1
- package/dist/react.js +1 -1
- package/dist/{sharedWorkerHost-Cb2a1_KD.d.ts → sharedWorkerHost-KI7TIGdX.d.ts} +2 -0
- package/dist/testing.d.ts +3 -3
- package/dist/testing.js +4 -4
- package/dist/{windowRuntime-B6Ue8jso.d.ts → windowRuntime-BKkLPsAS.d.ts} +1 -1
- package/docs/api.md +1 -1
- package/docs/proposals/webloom-v4/verification.md +86 -55
- package/package.json +5 -3
- package/dist/chunk-JHJZIO2H.js.map +0 -1
- package/dist/chunk-YOIH6H36.js.map +0 -1
package/README.md
CHANGED
package/dist/advanced.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { R as RuntimeKind, C as CapabilityDescriptor, P as PluginManifest, a as PluginGraph, b as RuntimeUnitDependency, c as PluginReverseDep, d as RuntimeUnitDescriptor, L as LifecycleScopeIdentity, e as PluginPermission, f as LifecycleScope, g as PermissionLease, S as ScopedTaskScheduler, h as CreateUpgradeGateOptions, U as UpgradeGate, i as ServiceReference, j as CapabilityPeer, k as ResourceStoreApi$1, W as WindowApp, l as RuntimeHandle } from './runtimeTypes-DquUCHz-.js';
|
|
2
2
|
export { m as CapabilityRegistration, n as CapabilityRegistry, o as ContextExtensionInput, p as ContributionAdapter, q as ContributionAdapterInput, r as ContributionHandle, s as CreatePluginHostOptions, H as HostCapabilityRegistration, t as HostInspection, u as PermissionPolicyInput, v as PermissionPolicyResult, w as PluginConfigStore, x as PluginHost, y as RuntimeUnitAttributesInput, z as RuntimeUnitAvailabilityInput, A as RuntimeUnitParentScopeInput, B as RuntimeUnitSnapshot, D as StartupCapabilityError, E as StartupPluginError, F as createCapabilityRegistry, G as createInMemoryPluginConfigStore, I as createPluginHost, J as invokeCapabilityHandler } from './runtimeTypes-DquUCHz-.js';
|
|
3
|
-
import { R as RuntimeCallMessage, M as MessagePortLike, a as RuntimeTransport } from './messagePortServiceTransport-
|
|
4
|
-
export { C as CreateCapabilityBridgeOptions, b as CreatePluginIntentControllerOptions, c as RUNTIME_CALL_TYPE, d as RUNTIME_CANCEL_TYPE, e as RUNTIME_CREDIT_TYPE, f as RUNTIME_ERROR_MESSAGE_TYPE, g as RUNTIME_ERROR_TYPE, h as RUNTIME_NEXT_TYPE, i as RUNTIME_PROTOCOL_VERSION, j as RUNTIME_RESULT_TYPE, k as RUNTIME_SNAPSHOT_TYPE, l as RuntimeCancelMessage, m as RuntimeCreditMessage, n as RuntimeErrorMessage, o as RuntimeErrorResponseMessage, p as RuntimeMessageCodec, q as RuntimeNextMessage, r as RuntimeReceiveMetadata, s as RuntimeResultMessage, t as RuntimeSnapshotMessage, u as RuntimeSnapshotUnit, v as RuntimeStreamDoneMessage, w as RuntimeStreamReadyMessage, x as RuntimeUnaryResultMessage, y as RuntimeUnitImplementation, z as RuntimeWireMessage, A as createCapabilityBridge, B as createMessagePortRuntimeTransport, D as createPluginIntentController, E as createResourceRegistry, F as createRuntimeMessageCodec, G as createRuntimeUnitImplementationRegistry, H as isRuntimeSnapshot, I as registerOwnedResource, J as validateTransferables } from './messagePortServiceTransport-
|
|
5
|
-
import { R as ReceivePortLedger, a as RuntimeLimitsInput, b as RuntimeBudget, c as RuntimePluginDefinition } from './sharedWorkerHost-
|
|
6
|
-
export { C as CreateResourceScopeOptions, P as PeerController, d as PeerExposureOptions, e as ResourceScopeOptions, S as SharedWorkerApp, f as StartSharedWorkerAppForTestingOptions, g as StartSharedWorkerAppOptions, h as bridgeForRuntimeHandle, i as createLifecycleScope, j as createResourceScope } from './sharedWorkerHost-
|
|
7
|
-
export { c as createWindowAppFromHost, h as hostForWindowApp } from './windowRuntime-
|
|
3
|
+
import { R as RuntimeCallMessage, M as MessagePortLike, a as RuntimeTransport } from './messagePortServiceTransport-BYprNvQY.js';
|
|
4
|
+
export { C as CreateCapabilityBridgeOptions, b as CreatePluginIntentControllerOptions, c as RUNTIME_CALL_TYPE, d as RUNTIME_CANCEL_TYPE, e as RUNTIME_CREDIT_TYPE, f as RUNTIME_ERROR_MESSAGE_TYPE, g as RUNTIME_ERROR_TYPE, h as RUNTIME_NEXT_TYPE, i as RUNTIME_PROTOCOL_VERSION, j as RUNTIME_RESULT_TYPE, k as RUNTIME_SNAPSHOT_TYPE, l as RuntimeCancelMessage, m as RuntimeCreditMessage, n as RuntimeErrorMessage, o as RuntimeErrorResponseMessage, p as RuntimeMessageCodec, q as RuntimeNextMessage, r as RuntimeReceiveMetadata, s as RuntimeResultMessage, t as RuntimeSnapshotMessage, u as RuntimeSnapshotUnit, v as RuntimeStreamDoneMessage, w as RuntimeStreamReadyMessage, x as RuntimeUnaryResultMessage, y as RuntimeUnitImplementation, z as RuntimeWireMessage, A as createCapabilityBridge, B as createMessagePortRuntimeTransport, D as createPluginIntentController, E as createResourceRegistry, F as createRuntimeMessageCodec, G as createRuntimeUnitImplementationRegistry, H as isRuntimeSnapshot, I as registerOwnedResource, J as validateTransferables } from './messagePortServiceTransport-BYprNvQY.js';
|
|
5
|
+
import { R as ReceivePortLedger, a as RuntimeLimitsInput, b as RuntimeBudget, c as RuntimePluginDefinition } from './sharedWorkerHost-KI7TIGdX.js';
|
|
6
|
+
export { C as CreateResourceScopeOptions, P as PeerController, d as PeerExposureOptions, e as ResourceScopeOptions, S as SharedWorkerApp, f as StartSharedWorkerAppForTestingOptions, g as StartSharedWorkerAppOptions, h as bridgeForRuntimeHandle, i as createLifecycleScope, j as createResourceScope } from './sharedWorkerHost-KI7TIGdX.js';
|
|
7
|
+
export { c as createWindowAppFromHost, h as hostForWindowApp } from './windowRuntime-BKkLPsAS.js';
|
|
8
8
|
|
|
9
9
|
interface PluginGraphOptions {
|
|
10
10
|
/** 当前 Host 的 Runtime;未指定时只用于静态检查。 */
|
package/dist/advanced.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { createPluginIntentController } from './chunk-4DSINPZD.js';
|
|
2
|
-
import { bridgeForRuntimeHandle } from './chunk-
|
|
3
|
-
export { bridgeForRuntimeHandle, createCapabilityBridge, createMessagePortRuntimeTransport, createMessagePortServiceProvider, validateTransferables } from './chunk-
|
|
4
|
-
import { hostForWindowApp, materializePluginDefinitions, UpgradeGateRejectedError } from './chunk-
|
|
5
|
-
export { RUNTIME_CALL_TYPE, RUNTIME_CANCEL_TYPE, RUNTIME_CREDIT_TYPE, RUNTIME_ERROR_MESSAGE_TYPE, RUNTIME_ERROR_TYPE, RUNTIME_NEXT_TYPE, RUNTIME_PROTOCOL_VERSION, RUNTIME_RESULT_TYPE, RUNTIME_SNAPSHOT_TYPE, StartupCapabilityError, StartupPluginError, buildPluginGraph, createCapabilityRegistry, createInMemoryPluginConfigStore, createLifecycleScope, createPermissionLease, createPluginHost, createResourceRegistry, createResourceScope, createRuntimeMessageCodec, createRuntimeUnitImplementationRegistry, createScopedTaskScheduler, createWindowAppFromHost, dependenciesOfManifest, hostForWindowApp, invokeCapabilityHandler, isRuntimeSnapshot, providesOfManifest, registerOwnedResource, reverseDependentsOf, selectRuntimeUnit, validatePluginGraph } from './chunk-
|
|
2
|
+
import { bridgeForRuntimeHandle } from './chunk-ANA6GBEI.js';
|
|
3
|
+
export { bridgeForRuntimeHandle, createCapabilityBridge, createMessagePortRuntimeTransport, createMessagePortServiceProvider, validateTransferables } from './chunk-ANA6GBEI.js';
|
|
4
|
+
import { hostForWindowApp, materializePluginDefinitions, UpgradeGateRejectedError } from './chunk-HJKPKWI7.js';
|
|
5
|
+
export { RUNTIME_CALL_TYPE, RUNTIME_CANCEL_TYPE, RUNTIME_CREDIT_TYPE, RUNTIME_ERROR_MESSAGE_TYPE, RUNTIME_ERROR_TYPE, RUNTIME_NEXT_TYPE, RUNTIME_PROTOCOL_VERSION, RUNTIME_RESULT_TYPE, RUNTIME_SNAPSHOT_TYPE, StartupCapabilityError, StartupPluginError, buildPluginGraph, createCapabilityRegistry, createInMemoryPluginConfigStore, createLifecycleScope, createPermissionLease, createPluginHost, createResourceRegistry, createResourceScope, createRuntimeMessageCodec, createRuntimeUnitImplementationRegistry, createScopedTaskScheduler, createWindowAppFromHost, dependenciesOfManifest, hostForWindowApp, invokeCapabilityHandler, isRuntimeSnapshot, providesOfManifest, registerOwnedResource, reverseDependentsOf, selectRuntimeUnit, validatePluginGraph } from './chunk-HJKPKWI7.js';
|
|
6
6
|
|
|
7
7
|
// src/lifecycle/permissionVerifier.ts
|
|
8
8
|
function verifyPermissionLease(options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRuntimeMessageCodec, normalizeRuntimeLimits, createRuntimeBudget, WebLoomError, validateTransferList, DEFAULT_RUNTIME_LIMITS, capabilityKey, createReceivePortLedger, RUNTIME_CALL_TYPE, RUNTIME_CANCEL_TYPE, RUNTIME_CREDIT_TYPE, RUNTIME_SNAPSHOT_TYPE, RUNTIME_ERROR_TYPE, RUNTIME_RESULT_TYPE, RUNTIME_ERROR_MESSAGE_TYPE, RUNTIME_NEXT_TYPE, RUNTIME_PROTOCOL_VERSION, validateDto, cloneFrozenAttributes, hostForWindowApp, RuntimeUnavailableError, validateRawDto, validateTransferListWithStats, assertReceivedPortSet } from './chunk-
|
|
1
|
+
import { createRuntimeMessageCodec, normalizeRuntimeLimits, createRuntimeBudget, WebLoomError, validateTransferList, DEFAULT_RUNTIME_LIMITS, capabilityKey, createReceivePortLedger, RUNTIME_CALL_TYPE, RUNTIME_CANCEL_TYPE, RUNTIME_CREDIT_TYPE, RUNTIME_SNAPSHOT_TYPE, RUNTIME_ERROR_TYPE, RUNTIME_RESULT_TYPE, RUNTIME_ERROR_MESSAGE_TYPE, RUNTIME_NEXT_TYPE, RUNTIME_PROTOCOL_VERSION, validateDto, cloneFrozenAttributes, hostForWindowApp, RuntimeUnavailableError, validateRawDto, validateTransferListWithStats, assertReceivedPortSet } from './chunk-HJKPKWI7.js';
|
|
2
2
|
|
|
3
3
|
// src/transport/serviceBridge.ts
|
|
4
4
|
function id(prefix) {
|
|
@@ -1733,5 +1733,5 @@ function bridgeForRuntimeHandle(handle) {
|
|
|
1733
1733
|
}
|
|
1734
1734
|
|
|
1735
1735
|
export { bridgeForRuntimeHandle, connectSharedWorker, connectSharedWorkerForTesting, createCapabilityBridge, createCapabilityPeerView, createMessagePortRuntimeTransport, createMessagePortServiceProvider, createPeerScopeView, validateTransferables };
|
|
1736
|
-
//# sourceMappingURL=chunk-
|
|
1737
|
-
//# sourceMappingURL=chunk-
|
|
1736
|
+
//# sourceMappingURL=chunk-ANA6GBEI.js.map
|
|
1737
|
+
//# sourceMappingURL=chunk-ANA6GBEI.js.map
|