github statelyai/xstate @xstate/webmcp@0.1.0-beta.2

latest release: @xstate/effect@1.0.0-beta.5
pre-releaseone hour ago

Patch Changes

  • f0830c5: Custom tools whose execute function declares the context parameter no longer fail to typecheck with "Type instantiation is excessively deep and possibly infinite" on TypeScript 5.4 to 5.6 when the target is a large machine actor.

    createWebMCP(appActor, {
      events: [],
      tools: ({ tool }) => ({
        search_notes: tool({
          description: 'Search notes by keyword.',
          input: z.object({ value: z.string() }),
          execute: async ({ value }, { send, waitFor }) => {
            send({ type: 'search', value });
            return (await waitFor((s) => !s.hasTag('loading'))).context.notes;
          }
        })
      })
    });

Don't miss a new xstate release

NewReleases is sending notifications on new releases.