@dimina-kit/devtools 0.4.0-dev.20260630123203 → 0.4.0-dev.20260701083540

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.
@@ -388,6 +388,12 @@ export async function createDevtoolsRuntime(config = {}) {
388
388
  registerSimulatorApi: (name, handler) => context.registry.add(toDisposable(context.simulatorApis.register(name, handler))),
389
389
  dispose: () => disposeContext(context),
390
390
  };
391
+ // Built-in simulator APIs: devtools-supplied wx.* implementations that run
392
+ // in the main process. Hosts can override any of these in their onSetup by
393
+ // re-registering the same name (last-write-wins on the Map).
394
+ instance.registerSimulatorApi('login', async () => {
395
+ return 'hello';
396
+ });
391
397
  if (config.onSetup) {
392
398
  await config.onSetup(instance);
393
399
  }
@@ -10402,6 +10402,9 @@ async function createDevtoolsRuntime(config = {}) {
10402
10402
  registerSimulatorApi: (name, handler) => context.registry.add(toDisposable8(context.simulatorApis.register(name, handler))),
10403
10403
  dispose: () => disposeContext(context)
10404
10404
  };
10405
+ instance.registerSimulatorApi("login", async () => {
10406
+ return "hello";
10407
+ });
10405
10408
  if (config.onSetup) {
10406
10409
  await config.onSetup(instance);
10407
10410
  }