@executor-js/sdk 1.5.17 → 1.5.18

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/dist/client.d.ts CHANGED
@@ -58,6 +58,19 @@ export interface IntegrationAccountHandoff {
58
58
  readonly template?: string;
59
59
  /** Non-secret connection label to prefill. */
60
60
  readonly label?: string;
61
+ /** Present when the agent handed off a CONFIDENTIAL OAuth-app registration
62
+ * (via `oauth.clients.createHandoff`): the accounts UI opens the
63
+ * Register-OAuth-app form pre-filled with these NON-secret fields, and the
64
+ * human types the client secret directly into the browser. */
65
+ readonly oauthClient?: {
66
+ /** Preselected client slug; when set the form's slug is fixed. */
67
+ readonly slug?: string;
68
+ readonly grant?: string;
69
+ readonly clientId?: string;
70
+ readonly authorizationUrl?: string;
71
+ readonly tokenUrl?: string;
72
+ readonly resource?: string;
73
+ };
61
74
  }
62
75
  /** Outcome of applying an edit-sheet section's staged change. `summary` is
63
76
  * toasted on success; `ok: false` keeps the sheet open (the section renders
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,aAAa,EAIb,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAA+B,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACtF,OAAO,KAAK,WAAW,MAAM,wCAAwC,CAAC;AAOtE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,KAAK,WAAW,MAAM,wCAAwC,CAAC;AACtE,OAAO,KAAK,IAAI,MAAM,iCAAiC,CAAC;AACxD,OAAO,KAAK,WAAW,MAAM,wCAAwC,CAAC;AAEtE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C,CAoBlC;AAWD,qDAAqD;AACrD,eAAO,MAAM,gBAAgB,QAAO,SAAS,gBAAgB,EAClB,CAAC;AAE5C,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,QAAO,SAAS,iBAAiB,EACR,CAAC;AAE5D,qFAAqF;AACrF,eAAO,MAAM,wBAAwB,QAAO,SAAS,oBAAoB,EACR,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/client.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// @executor-js/sdk/client — frontend half of the plugin SDK.\n//\n// Plugins import from this entry to register pages/widgets and consume\n// their own typed reactive client. Server bundles must NOT import this\n// module — it pulls in React + @effect/atom-react. Plugin packages should\n// keep React/atom imports inside `./client.tsx` and Effect/Node imports\n// inside `./server.ts`; shared schema definitions go in `./shared.ts` and\n// can be imported from both halves.\n// ---------------------------------------------------------------------------\n\nimport {\n createContext,\n createElement,\n useContext,\n useEffect,\n useMemo,\n type ComponentType,\n type ReactNode,\n} from \"react\";\nimport { HttpApi } from \"effect/unstable/httpapi\";\nimport type { HttpApiEndpoint, HttpApiGroup } from \"effect/unstable/httpapi\";\nimport { FetchHttpClient, HttpClient, HttpClientRequest } from \"effect/unstable/http\";\nimport * as AtomHttpApi from \"effect/unstable/reactivity/AtomHttpApi\";\n\n// ---------------------------------------------------------------------------\n// Re-exports — the curated set of primitives a plugin author needs to\n// build a typed reactive UI without reaching into `effect/*` directly.\n// ---------------------------------------------------------------------------\n\nexport { Schema } from \"effect\";\nexport { HttpApi, HttpApiEndpoint, HttpApiGroup } from \"effect/unstable/httpapi\";\n\nexport * as AsyncResult from \"effect/unstable/reactivity/AsyncResult\";\nexport * as Atom from \"effect/unstable/reactivity/Atom\";\nexport * as AtomHttpApi from \"effect/unstable/reactivity/AtomHttpApi\";\n\nexport { useAtomValue, useAtomSet, useAtomMount, useAtomRefresh } from \"@effect/atom-react\";\n\n// ---------------------------------------------------------------------------\n// defineClientPlugin — declarative spec for the frontend half of a plugin.\n//\n// Mirror of `definePlugin` on the server, but everything here is React /\n// browser-only. The host treats the value as data: collects routes,\n// widgets, and slot components from every loaded plugin and mounts them\n// alongside the host's own UI.\n// ---------------------------------------------------------------------------\n\nexport interface PageDecl {\n /** Path relative to the plugin's mount point, e.g. `/`, `/edit/$id`. */\n readonly path: string;\n readonly component: ComponentType;\n /** Optional sidebar nav metadata — the host renders these alongside its\n * own nav links. Omit to register a page without a nav entry. */\n readonly nav?: {\n readonly label: string;\n readonly section?: string;\n };\n}\n\nexport interface WidgetProps {\n readonly scopeId?: string;\n}\n\nexport interface WidgetDecl {\n readonly id: string;\n readonly component: ComponentType<WidgetProps>;\n readonly size?: \"half\" | \"full\";\n}\n\n/**\n * Open record of host-defined slot components a plugin can fill. Slot\n * names are part of the host UI contract — plugins opt in by registering\n * a component for the slot they care about. Adding a slot is a host-side\n * change; plugin authors don't define new slots.\n */\nexport type SlotComponent = ComponentType<Record<string, unknown>>;\n\n// ---------------------------------------------------------------------------\n// IntegrationPlugin / IntegrationPreset — UI contract for plugins that expose\n// \"integrations\" (OpenAPI specs, MCP servers, GraphQL endpoints, etc.). The\n// host owns the integration list / detail chrome; the plugin owns the\n// add-flow, edit form, and (optional) summary + sign-in buttons.\n//\n// Lives here, not in `@executor-js/react`, so it's part of the plugin\n// contract: a plugin's `./client` entry assembles its `integrationPlugin`\n// alongside `pages`/`widgets`, and the host derives the union list\n// from `virtual:executor/plugins-client`.\n// ---------------------------------------------------------------------------\n\nexport interface IntegrationPreset {\n /** Unique id (e.g. \"stripe\", \"github-graphql\"). */\n readonly id: string;\n readonly name: string;\n readonly summary: string;\n /** URL passed as `initialUrl` to the add form. Omit for presets that\n * don't use a URL (e.g. stdio MCP presets). */\n readonly url?: string;\n /** Endpoint passed to agent-facing probe/add tools when their schema\n * uses `endpoint` instead of `url`. */\n readonly endpoint?: string;\n /** Optional icon URL (favicon, logo). */\n readonly icon?: string;\n /** Shown in the top-level grid on the integrations page when true. */\n readonly featured?: boolean;\n}\n\nexport interface IntegrationAccountHandoff {\n /** Changes on each handoff URL, so the accounts UI can open once per link. */\n readonly key: string;\n readonly owner?: \"org\" | \"user\";\n /** Auth template/method to preselect when present. */\n readonly template?: string;\n /** Non-secret connection label to prefill. */\n readonly label?: string;\n}\n\n/** Outcome of applying an edit-sheet section's staged change. `summary` is\n * toasted on success; `ok: false` keeps the sheet open (the section renders\n * its own error inline). */\nexport type EditSheetApplyResult =\n | { readonly ok: true; readonly summary: string | null }\n | { readonly ok: false };\n\nexport interface EditSheetSectionProps {\n readonly sourceId: string;\n readonly onPendingChange?: (apply: (() => Promise<EditSheetApplyResult>) | null) => void;\n}\n\nexport interface IntegrationPlugin {\n /** Unique key matching the SDK plugin id (e.g. \"openapi\"). */\n readonly key: string;\n readonly label: string;\n readonly add: ComponentType<{\n /** Called when the integration has been registered. Receives the slug of\n * the just-registered integration, so the host can route to its detail\n * hub (`/integrations/<slug>`). Optional so existing no-arg calls still\n * typecheck while plugins are threading the slug through. */\n readonly onComplete: (slug?: string) => void;\n readonly onCancel: () => void;\n readonly initialUrl?: string;\n readonly initialPreset?: string;\n readonly initialNamespace?: string;\n }>;\n /** Legacy full-page edit surface. No host renders this anymore — plugin\n * configuration lives in the integration Edit sheet via `editSheet`. */\n readonly edit?: ComponentType<{\n readonly sourceId: string;\n readonly onSave: () => void;\n }>;\n /** Plugin-owned configuration rendered inside the integration's Edit sheet,\n * below the shared metadata fields (e.g. the OpenAPI spec-update controls).\n * The sheet has ONE Save: the section stages its pending change locally and\n * reports it through `onPendingChange` — a thunk that applies the staged\n * change. Save runs the metadata update, then the staged apply; a failed\n * apply keeps the sheet open with the section showing its own error. */\n readonly editSheet?: ComponentType<EditSheetSectionProps>;\n readonly summary?: ComponentType<{\n readonly sourceId: string;\n readonly variant?: \"badge\" | \"panel\";\n readonly onAction?: () => void;\n }>;\n /** Renders the integration's Accounts hub (auth methods + connections) inside\n * the detail page's Accounts tab. Plugins that declare auth methods implement\n * this; the page falls back to a generic accounts list when absent. */\n readonly accounts?: ComponentType<{\n readonly sourceId: string;\n readonly integrationName: string;\n readonly accountHandoff?: IntegrationAccountHandoff | null;\n }>;\n readonly presets?: readonly IntegrationPreset[];\n /** Trigger early download of the plugin's lazy component chunks (add/edit/etc.).\n * Call from the host on intent (hover/focus) so the chunks land before the\n * user navigates into the add page. Idempotent. */\n readonly preload?: () => void;\n}\n\n// ---------------------------------------------------------------------------\n// SecretProviderPlugin — UI contract for plugins that contribute secret\n// providers (1Password, WorkOS Vault, etc.). The host owns the secrets\n// page chrome; the plugin owns the settings card rendered inside.\n// ---------------------------------------------------------------------------\n\nexport interface SecretProviderPlugin {\n /** Unique key matching the SDK plugin id (e.g. \"onepassword\"). */\n readonly key: string;\n readonly label: string;\n readonly settings: ComponentType<Record<string, never>>;\n}\n\nexport interface ClientPluginSpec<TId extends string = string> {\n readonly id: TId;\n readonly pages?: readonly PageDecl[];\n readonly widgets?: readonly WidgetDecl[];\n readonly slots?: Record<string, SlotComponent>;\n /** Integration plugin contribution — populated by plugins that expose\n * `kind` rows in the core `source` table (openapi, mcp, graphql).\n * The host's integrations page derives its provider\n * list from the union of every loaded plugin's `integrationPlugin`. */\n readonly integrationPlugin?: IntegrationPlugin;\n /** Secret provider plugin contribution — populated by plugins that\n * also ship a `secretProviders` (or related) server-side capability\n * AND want to expose a settings card on the host's secrets page. */\n readonly secretProviderPlugin?: SecretProviderPlugin;\n}\n\n/**\n * Identity factory — returns the spec unchanged but pins the inferred\n * literal type of `id` so the host can index plugin records by id with\n * full autocomplete. Plugins export this as their package's default\n * (or named) export from `./client`.\n */\nexport const defineClientPlugin = <const TId extends string>(\n spec: ClientPluginSpec<TId>,\n): ClientPluginSpec<TId> => spec;\n\n// ---------------------------------------------------------------------------\n// createPluginAtomClient — typed reactive HTTP client for one plugin.\n//\n// Wraps the plugin's `HttpApiGroup` in a per-plugin `HttpApi`, then\n// hands back an `AtomHttpApi.Service` keyed to that bundle. The\n// resulting service exposes `.query(\"group\", \"endpoint\", opts)` and\n// `.mutation(\"group\", \"endpoint\")` factories — same shape as the host's\n// existing `ExecutorApiClient` (see packages/react/src/api/client.tsx).\n// Per-endpoint payload/response/error types flow through from the\n// imported group, so plugin client code typechecks without codegen.\n//\n// The plugin id (used for the Service Tag and the synthetic API id) is\n// read from `group.identifier` — the same string the plugin passed to\n// `HttpApiGroup.make(\"foo\")`. No second-source duplication.\n// ---------------------------------------------------------------------------\n\nexport interface CreatePluginAtomClientOptions {\n /** Override the base URL. Defaults to `/api` (host strips this prefix\n * when forwarding to the Effect handler) — same convention as the\n * core `ExecutorApiClient`. */\n readonly baseUrl?: string | (() => string);\n /** Optional dynamic Authorization header for hosts whose active\n * Executor Server Connection requires Basic or Bearer auth. */\n readonly authorizationHeader?: string | null | (() => string | null);\n /** Optional dynamic request headers supplied by the host shell. */\n readonly headers?:\n | Readonly<Record<string, string | null | undefined>>\n | (() => Readonly<Record<string, string | null | undefined>>);\n}\n\nexport interface PluginAtomClientRequestTransformOptions {\n readonly baseUrl?: () => string;\n readonly authorizationHeader?: string | null | (() => string | null);\n readonly headers?:\n | Readonly<Record<string, string | null | undefined>>\n | (() => Readonly<Record<string, string | null | undefined>>);\n}\n\n/** @internal */\nexport const applyPluginAtomClientRequestTransform = (\n request: HttpClientRequest.HttpClientRequest,\n options: PluginAtomClientRequestTransformOptions,\n): HttpClientRequest.HttpClientRequest => {\n let next = options.baseUrl ? HttpClientRequest.prependUrl(request, options.baseUrl()) : request;\n const authorization =\n typeof options.authorizationHeader === \"function\"\n ? options.authorizationHeader()\n : options.authorizationHeader;\n if (authorization) {\n next = HttpClientRequest.setHeader(next, \"authorization\", authorization);\n }\n const headers = typeof options.headers === \"function\" ? options.headers() : options.headers;\n if (headers) {\n for (const [name, value] of Object.entries(headers)) {\n if (value !== undefined && value !== null) {\n next = HttpClientRequest.setHeader(next, name, value);\n }\n }\n }\n return next;\n};\n\n/**\n * Build a typed reactive client for a plugin's HttpApiGroup.\n *\n * const FooClient = createPluginAtomClient(FooApi)\n * export const fooThings = FooClient.query(\"foo\", \"listThings\", { ... })\n * export const fooSync = FooClient.mutation(\"foo\", \"syncThing\")\n *\n * Each plugin gets a private service Tag (`Plugin_<id>Client`) keyed by\n * the group's `identifier`, so multiple plugins coexist in the same\n * React tree without colliding.\n */\nexport const createPluginAtomClient = <\n G extends HttpApiGroup.HttpApiGroup<string, HttpApiEndpoint.Any, boolean>,\n>(\n group: G,\n options: CreatePluginAtomClientOptions = {},\n) => {\n const { baseUrl = \"/api\", authorizationHeader, headers } = options;\n const pluginId = group.identifier;\n const bundle = HttpApi.make(`plugin-${pluginId}`).add(group);\n const getBaseUrl = typeof baseUrl === \"function\" ? baseUrl : null;\n const staticBaseUrl = typeof baseUrl === \"function\" ? undefined : baseUrl;\n const getAuthorizationHeader =\n typeof authorizationHeader === \"function\" ? authorizationHeader : null;\n const hasAuthorization = authorizationHeader !== undefined && authorizationHeader !== null;\n const hasHeaders = headers !== undefined;\n const transformClient =\n getBaseUrl || hasAuthorization || hasHeaders\n ? HttpClient.mapRequest((request) =>\n applyPluginAtomClientRequestTransform(request, {\n ...(getBaseUrl ? { baseUrl: getBaseUrl } : {}),\n ...(getAuthorizationHeader\n ? { authorizationHeader: getAuthorizationHeader }\n : authorizationHeader !== undefined\n ? { authorizationHeader }\n : {}),\n ...(headers !== undefined ? { headers } : {}),\n }),\n )\n : undefined;\n\n return AtomHttpApi.Service<`Plugin_${G[\"identifier\"]}Client`>()(`Plugin_${pluginId}Client`, {\n api: bundle,\n httpClient: FetchHttpClient.layer,\n ...(staticBaseUrl !== undefined ? { baseUrl: staticBaseUrl } : {}),\n ...(transformClient ? { transformClient } : {}),\n });\n};\n\n// ---------------------------------------------------------------------------\n// ExecutorPluginsProvider + hooks — host-level distribution of the loaded\n// `ClientPluginSpec[]` via React context.\n//\n// The host wraps once at the root of its tree (typically reading from\n// `virtual:executor/plugins-client`); pages and shared components consume\n// via the focused hooks (`useIntegrationPlugins` etc.) so they don't import\n// from any host-app aggregator file. Pages stay portable across hosts —\n// the same component renders against whatever plugin set the surrounding\n// `<ExecutorPluginsProvider>` provides.\n//\n// Hooks throw if no provider is in scope so missing setup fails loudly;\n// matches the pattern of `useScope` / `useAuth` already in the codebase.\n// ---------------------------------------------------------------------------\n\ninterface ExecutorPluginsContextValue {\n readonly plugins: readonly ClientPluginSpec[];\n readonly integrationPlugins: readonly IntegrationPlugin[];\n readonly secretProviderPlugins: readonly SecretProviderPlugin[];\n}\n\nconst ExecutorPluginsContext = createContext<ExecutorPluginsContextValue | null>(null);\nExecutorPluginsContext.displayName = \"ExecutorPluginsContext\";\n\nexport interface ExecutorPluginsProviderProps {\n readonly plugins: readonly ClientPluginSpec[];\n readonly children: ReactNode;\n}\n\nexport function ExecutorPluginsProvider(\n props: ExecutorPluginsProviderProps,\n): ReturnType<typeof createElement> {\n const { plugins, children } = props;\n const value = useMemo<ExecutorPluginsContextValue>(\n () => ({\n plugins,\n integrationPlugins: plugins.flatMap((p) =>\n p.integrationPlugin ? [p.integrationPlugin] : [],\n ),\n secretProviderPlugins: plugins.flatMap((p) =>\n p.secretProviderPlugin ? [p.secretProviderPlugin] : [],\n ),\n }),\n [plugins],\n );\n // Kick off lazy chunk downloads for every integration plugin once the host\n // mounts, so navigating into an add/edit page doesn't suspend.\n useEffect(() => {\n for (const ip of value.integrationPlugins) ip.preload?.();\n }, [value.integrationPlugins]);\n return createElement(ExecutorPluginsContext.Provider, { value }, children);\n}\n\nconst usePluginsCtx = (hookName: string): ExecutorPluginsContextValue => {\n const ctx = useContext(ExecutorPluginsContext);\n if (!ctx) {\n // oxlint-disable-next-line executor/no-try-catch-or-throw, executor/no-error-constructor -- boundary: React hook invariant\n throw new Error(`${hookName} must be called inside an <ExecutorPluginsProvider>.`);\n }\n return ctx;\n};\n\n/** Full list of loaded `ClientPluginSpec` values. */\nexport const useClientPlugins = (): readonly ClientPluginSpec[] =>\n usePluginsCtx(\"useClientPlugins\").plugins;\n\n/** Integration plugins extracted from `clientPlugins[].integrationPlugin`. */\nexport const useIntegrationPlugins = (): readonly IntegrationPlugin[] =>\n usePluginsCtx(\"useIntegrationPlugins\").integrationPlugins;\n\n/** Secret-provider plugins extracted from `clientPlugins[].secretProviderPlugin`. */\nexport const useSecretProviderPlugins = (): readonly SecretProviderPlugin[] =>\n usePluginsCtx(\"useSecretProviderPlugins\").secretProviderPlugins;\n"],"mappings":";;;AAWA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,eAAe;AAExB,SAAS,iBAAiB,YAAY,yBAAyB;AAC/D,YAAY,iBAAiB;AAO7B,SAAS,cAAc;AACvB,SAAS,WAAAA,UAAS,iBAAiB,oBAAoB;AAEvD,YAAY,iBAAiB;AAC7B,YAAY,UAAU;AACtB,YAAYC,kBAAiB;AAE7B,SAAS,cAAc,YAAY,cAAc,sBAAsB;AA+KhE,IAAM,qBAAqB,CAChC,SAC0B;AAyCrB,IAAM,wCAAwC,CACnD,SACA,YACwC;AACxC,MAAI,OAAO,QAAQ,UAAU,kBAAkB,WAAW,SAAS,QAAQ,QAAQ,CAAC,IAAI;AACxF,QAAM,gBACJ,OAAO,QAAQ,wBAAwB,aACnC,QAAQ,oBAAoB,IAC5B,QAAQ;AACd,MAAI,eAAe;AACjB,WAAO,kBAAkB,UAAU,MAAM,iBAAiB,aAAa;AAAA,EACzE;AACA,QAAM,UAAU,OAAO,QAAQ,YAAY,aAAa,QAAQ,QAAQ,IAAI,QAAQ;AACpF,MAAI,SAAS;AACX,eAAW,CAAC,MAAM,KAAK,KAAK,OAAO,QAAQ,OAAO,GAAG;AACnD,UAAI,UAAU,UAAa,UAAU,MAAM;AACzC,eAAO,kBAAkB,UAAU,MAAM,MAAM,KAAK;AAAA,MACtD;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACT;AAaO,IAAM,yBAAyB,CAGpC,OACA,UAAyC,CAAC,MACvC;AACH,QAAM,EAAE,UAAU,QAAQ,qBAAqB,QAAQ,IAAI;A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AAAA,MACvD;AAAA,IACF;AAAA,IACA,CAAC,OAAO;AAAA,EACV;AAGA,YAAU,MAAM;AACd,eAAW,MAAM,MAAM,mBAAoB,IAAG,UAAU;AAAA,EAC1D,GAAG,CAAC,MAAM,kBAAkB,CAAC;AAC7B,SAAO,cAAc,uBAAuB,UAAU,EAAE,MAAM,GAAG,QAAQ;AAC3E;AAEA,IAAM,gBAAgB,CAAC,aAAkD;AACvE,QAAM,MAAM,WAAW,sBAAsB;AAC7C,MAAI,CAAC,KAAK;AAER,UAAM,IAAI,MAAM,GAAG,QAAQ,sDAAsD;AAAA,EACnF;AACA,SAAO;AACT;AAGO,IAAM,mBAAmB,MAC9B,cAAc,kBAAkB,EAAE;AAG7B,IAAM,wBAAwB,MACnC,cAAc,uBAAuB,EAAE;AAGlC,IAAM,2BAA2B,MACtC,cAAc,0BAA0B,EAAE;","names":["HttpApi","AtomHttpApi"]}
1
+ {"version":3,"sources":["../src/client.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// @executor-js/sdk/client — frontend half of the plugin SDK.\n//\n// Plugins import from this entry to register pages/widgets and consume\n// their own typed reactive client. Server bundles must NOT import this\n// module — it pulls in React + @effect/atom-react. Plugin packages should\n// keep React/atom imports inside `./client.tsx` and Effect/Node imports\n// inside `./server.ts`; shared schema definitions go in `./shared.ts` and\n// can be imported from both halves.\n// ---------------------------------------------------------------------------\n\nimport {\n createContext,\n createElement,\n useContext,\n useEffect,\n useMemo,\n type ComponentType,\n type ReactNode,\n} from \"react\";\nimport { HttpApi } from \"effect/unstable/httpapi\";\nimport type { HttpApiEndpoint, HttpApiGroup } from \"effect/unstable/httpapi\";\nimport { FetchHttpClient, HttpClient, HttpClientRequest } from \"effect/unstable/http\";\nimport * as AtomHttpApi from \"effect/unstable/reactivity/AtomHttpApi\";\n\n// ---------------------------------------------------------------------------\n// Re-exports — the curated set of primitives a plugin author needs to\n// build a typed reactive UI without reaching into `effect/*` directly.\n// ---------------------------------------------------------------------------\n\nexport { Schema } from \"effect\";\nexport { HttpApi, HttpApiEndpoint, HttpApiGroup } from \"effect/unstable/httpapi\";\n\nexport * as AsyncResult from \"effect/unstable/reactivity/AsyncResult\";\nexport * as Atom from \"effect/unstable/reactivity/Atom\";\nexport * as AtomHttpApi from \"effect/unstable/reactivity/AtomHttpApi\";\n\nexport { useAtomValue, useAtomSet, useAtomMount, useAtomRefresh } from \"@effect/atom-react\";\n\n// ---------------------------------------------------------------------------\n// defineClientPlugin — declarative spec for the frontend half of a plugin.\n//\n// Mirror of `definePlugin` on the server, but everything here is React /\n// browser-only. The host treats the value as data: collects routes,\n// widgets, and slot components from every loaded plugin and mounts them\n// alongside the host's own UI.\n// ---------------------------------------------------------------------------\n\nexport interface PageDecl {\n /** Path relative to the plugin's mount point, e.g. `/`, `/edit/$id`. */\n readonly path: string;\n readonly component: ComponentType;\n /** Optional sidebar nav metadata — the host renders these alongside its\n * own nav links. Omit to register a page without a nav entry. */\n readonly nav?: {\n readonly label: string;\n readonly section?: string;\n };\n}\n\nexport interface WidgetProps {\n readonly scopeId?: string;\n}\n\nexport interface WidgetDecl {\n readonly id: string;\n readonly component: ComponentType<WidgetProps>;\n readonly size?: \"half\" | \"full\";\n}\n\n/**\n * Open record of host-defined slot components a plugin can fill. Slot\n * names are part of the host UI contract — plugins opt in by registering\n * a component for the slot they care about. Adding a slot is a host-side\n * change; plugin authors don't define new slots.\n */\nexport type SlotComponent = ComponentType<Record<string, unknown>>;\n\n// ---------------------------------------------------------------------------\n// IntegrationPlugin / IntegrationPreset — UI contract for plugins that expose\n// \"integrations\" (OpenAPI specs, MCP servers, GraphQL endpoints, etc.). The\n// host owns the integration list / detail chrome; the plugin owns the\n// add-flow, edit form, and (optional) summary + sign-in buttons.\n//\n// Lives here, not in `@executor-js/react`, so it's part of the plugin\n// contract: a plugin's `./client` entry assembles its `integrationPlugin`\n// alongside `pages`/`widgets`, and the host derives the union list\n// from `virtual:executor/plugins-client`.\n// ---------------------------------------------------------------------------\n\nexport interface IntegrationPreset {\n /** Unique id (e.g. \"stripe\", \"github-graphql\"). */\n readonly id: string;\n readonly name: string;\n readonly summary: string;\n /** URL passed as `initialUrl` to the add form. Omit for presets that\n * don't use a URL (e.g. stdio MCP presets). */\n readonly url?: string;\n /** Endpoint passed to agent-facing probe/add tools when their schema\n * uses `endpoint` instead of `url`. */\n readonly endpoint?: string;\n /** Optional icon URL (favicon, logo). */\n readonly icon?: string;\n /** Shown in the top-level grid on the integrations page when true. */\n readonly featured?: boolean;\n}\n\nexport interface IntegrationAccountHandoff {\n /** Changes on each handoff URL, so the accounts UI can open once per link. */\n readonly key: string;\n readonly owner?: \"org\" | \"user\";\n /** Auth template/method to preselect when present. */\n readonly template?: string;\n /** Non-secret connection label to prefill. */\n readonly label?: string;\n /** Present when the agent handed off a CONFIDENTIAL OAuth-app registration\n * (via `oauth.clients.createHandoff`): the accounts UI opens the\n * Register-OAuth-app form pre-filled with these NON-secret fields, and the\n * human types the client secret directly into the browser. */\n readonly oauthClient?: {\n /** Preselected client slug; when set the form's slug is fixed. */\n readonly slug?: string;\n readonly grant?: string;\n readonly clientId?: string;\n readonly authorizationUrl?: string;\n readonly tokenUrl?: string;\n readonly resource?: string;\n };\n}\n\n/** Outcome of applying an edit-sheet section's staged change. `summary` is\n * toasted on success; `ok: false` keeps the sheet open (the section renders\n * its own error inline). */\nexport type EditSheetApplyResult =\n | { readonly ok: true; readonly summary: string | null }\n | { readonly ok: false };\n\nexport interface EditSheetSectionProps {\n readonly sourceId: string;\n readonly onPendingChange?: (apply: (() => Promise<EditSheetApplyResult>) | null) => void;\n}\n\nexport interface IntegrationPlugin {\n /** Unique key matching the SDK plugin id (e.g. \"openapi\"). */\n readonly key: string;\n readonly label: string;\n readonly add: ComponentType<{\n /** Called when the integration has been registered. Receives the slug of\n * the just-registered integration, so the host can route to its detail\n * hub (`/integrations/<slug>`). Optional so existing no-arg calls still\n * typecheck while plugins are threading the slug through. */\n readonly onComplete: (slug?: string) => void;\n readonly onCancel: () => void;\n readonly initialUrl?: string;\n readonly initialPreset?: string;\n readonly initialNamespace?: string;\n }>;\n /** Legacy full-page edit surface. No host renders this anymore — plugin\n * configuration lives in the integration Edit sheet via `editSheet`. */\n readonly edit?: ComponentType<{\n readonly sourceId: string;\n readonly onSave: () => void;\n }>;\n /** Plugin-owned configuration rendered inside the integration's Edit sheet,\n * below the shared metadata fields (e.g. the OpenAPI spec-update controls).\n * The sheet has ONE Save: the section stages its pending change locally and\n * reports it through `onPendingChange` — a thunk that applies the staged\n * change. Save runs the metadata update, then the staged apply; a failed\n * apply keeps the sheet open with the section showing its own error. */\n readonly editSheet?: ComponentType<EditSheetSectionProps>;\n readonly summary?: ComponentType<{\n readonly sourceId: string;\n readonly variant?: \"badge\" | \"panel\";\n readonly onAction?: () => void;\n }>;\n /** Renders the integration's Accounts hub (auth methods + connections) inside\n * the detail page's Accounts tab. Plugins that declare auth methods implement\n * this; the page falls back to a generic accounts list when absent. */\n readonly accounts?: ComponentType<{\n readonly sourceId: string;\n readonly integrationName: string;\n readonly accountHandoff?: IntegrationAccountHandoff | null;\n }>;\n readonly presets?: readonly IntegrationPreset[];\n /** Trigger early download of the plugin's lazy component chunks (add/edit/etc.).\n * Call from the host on intent (hover/focus) so the chunks land before the\n * user navigates into the add page. Idempotent. */\n readonly preload?: () => void;\n}\n\n// ---------------------------------------------------------------------------\n// SecretProviderPlugin — UI contract for plugins that contribute secret\n// providers (1Password, WorkOS Vault, etc.). The host owns the secrets\n// page chrome; the plugin owns the settings card rendered inside.\n// ---------------------------------------------------------------------------\n\nexport interface SecretProviderPlugin {\n /** Unique key matching the SDK plugin id (e.g. \"onepassword\"). */\n readonly key: string;\n readonly label: string;\n readonly settings: ComponentType<Record<string, never>>;\n}\n\nexport interface ClientPluginSpec<TId extends string = string> {\n readonly id: TId;\n readonly pages?: readonly PageDecl[];\n readonly widgets?: readonly WidgetDecl[];\n readonly slots?: Record<string, SlotComponent>;\n /** Integration plugin contribution — populated by plugins that expose\n * `kind` rows in the core `source` table (openapi, mcp, graphql).\n * The host's integrations page derives its provider\n * list from the union of every loaded plugin's `integrationPlugin`. */\n readonly integrationPlugin?: IntegrationPlugin;\n /** Secret provider plugin contribution — populated by plugins that\n * also ship a `secretProviders` (or related) server-side capability\n * AND want to expose a settings card on the host's secrets page. */\n readonly secretProviderPlugin?: SecretProviderPlugin;\n}\n\n/**\n * Identity factory — returns the spec unchanged but pins the inferred\n * literal type of `id` so the host can index plugin records by id with\n * full autocomplete. Plugins export this as their package's default\n * (or named) export from `./client`.\n */\nexport const defineClientPlugin = <const TId extends string>(\n spec: ClientPluginSpec<TId>,\n): ClientPluginSpec<TId> => spec;\n\n// ---------------------------------------------------------------------------\n// createPluginAtomClient — typed reactive HTTP client for one plugin.\n//\n// Wraps the plugin's `HttpApiGroup` in a per-plugin `HttpApi`, then\n// hands back an `AtomHttpApi.Service` keyed to that bundle. The\n// resulting service exposes `.query(\"group\", \"endpoint\", opts)` and\n// `.mutation(\"group\", \"endpoint\")` factories — same shape as the host's\n// existing `ExecutorApiClient` (see packages/react/src/api/client.tsx).\n// Per-endpoint payload/response/error types flow through from the\n// imported group, so plugin client code typechecks without codegen.\n//\n// The plugin id (used for the Service Tag and the synthetic API id) is\n// read from `group.identifier` — the same string the plugin passed to\n// `HttpApiGroup.make(\"foo\")`. No second-source duplication.\n// ---------------------------------------------------------------------------\n\nexport interface CreatePluginAtomClientOptions {\n /** Override the base URL. Defaults to `/api` (host strips this prefix\n * when forwarding to the Effect handler) — same convention as the\n * core `ExecutorApiClient`. */\n readonly baseUrl?: string | (() => string);\n /** Optional dynamic Authorization header for hosts whose active\n * Executor Server Connection requires Basic or Bearer auth. */\n readonly authorizationHeader?: string | null | (() => string | null);\n /** Optional dynamic request headers supplied by the host shell. */\n readonly headers?:\n | Readonly<Record<string, string | null | undefined>>\n | (() => Readonly<Record<string, string | null | undefined>>);\n}\n\nexport interface PluginAtomClientRequestTransformOptions {\n readonly baseUrl?: () => string;\n readonly authorizationHeader?: string | null | (() => string | null);\n readonly headers?:\n | Readonly<Record<string, string | null | undefined>>\n | (() => Readonly<Record<string, string | null | undefined>>);\n}\n\n/** @internal */\nexport const applyPluginAtomClientRequestTransform = (\n request: HttpClientRequest.HttpClientRequest,\n options: PluginAtomClientRequestTransformOptions,\n): HttpClientRequest.HttpClientRequest => {\n let next = options.baseUrl ? HttpClientRequest.prependUrl(request, options.baseUrl()) : request;\n const authorization =\n typeof options.authorizationHeader === \"function\"\n ? options.authorizationHeader()\n : options.authorizationHeader;\n if (authorization) {\n next = HttpClientRequest.setHeader(next, \"authorization\", authorization);\n }\n const headers = typeof options.headers === \"function\" ? options.headers() : options.headers;\n if (headers) {\n for (const [name, value] of Object.entries(headers)) {\n if (value !== undefined && value !== null) {\n next = HttpClientRequest.setHeader(next, name, value);\n }\n }\n }\n return next;\n};\n\n/**\n * Build a typed reactive client for a plugin's HttpApiGroup.\n *\n * const FooClient = createPluginAtomClient(FooApi)\n * export const fooThings = FooClient.query(\"foo\", \"listThings\", { ... })\n * export const fooSync = FooClient.mutation(\"foo\", \"syncThing\")\n *\n * Each plugin gets a private service Tag (`Plugin_<id>Client`) keyed by\n * the group's `identifier`, so multiple plugins coexist in the same\n * React tree without colliding.\n */\nexport const createPluginAtomClient = <\n G extends HttpApiGroup.HttpApiGroup<string, HttpApiEndpoint.Any, boolean>,\n>(\n group: G,\n options: CreatePluginAtomClientOptions = {},\n) => {\n const { baseUrl = \"/api\", authorizationHeader, headers } = options;\n const pluginId = group.identifier;\n const bundle = HttpApi.make(`plugin-${pluginId}`).add(group);\n const getBaseUrl = typeof baseUrl === \"function\" ? baseUrl : null;\n const staticBaseUrl = typeof baseUrl === \"function\" ? undefined : baseUrl;\n const getAuthorizationHeader =\n typeof authorizationHeader === \"function\" ? authorizationHeader : null;\n const hasAuthorization = authorizationHeader !== undefined && authorizationHeader !== null;\n const hasHeaders = headers !== undefined;\n const transformClient =\n getBaseUrl || hasAuthorization || hasHeaders\n ? HttpClient.mapRequest((request) =>\n applyPluginAtomClientRequestTransform(request, {\n ...(getBaseUrl ? { baseUrl: getBaseUrl } : {}),\n ...(getAuthorizationHeader\n ? { authorizationHeader: getAuthorizationHeader }\n : authorizationHeader !== undefined\n ? { authorizationHeader }\n : {}),\n ...(headers !== undefined ? { headers } : {}),\n }),\n )\n : undefined;\n\n return AtomHttpApi.Service<`Plugin_${G[\"identifier\"]}Client`>()(`Plugin_${pluginId}Client`, {\n api: bundle,\n httpClient: FetchHttpClient.layer,\n ...(staticBaseUrl !== undefined ? { baseUrl: staticBaseUrl } : {}),\n ...(transformClient ? { transformClient } : {}),\n });\n};\n\n// ---------------------------------------------------------------------------\n// ExecutorPluginsProvider + hooks — host-level distribution of the loaded\n// `ClientPluginSpec[]` via React context.\n//\n// The host wraps once at the root of its tree (typically reading from\n// `virtual:executor/plugins-client`); pages and shared components consume\n// via the focused hooks (`useIntegrationPlugins` etc.) so they don't import\n// from any host-app aggregator file. Pages stay portable across hosts —\n// the same component renders against whatever plugin set the surrounding\n// `<ExecutorPluginsProvider>` provides.\n//\n// Hooks throw if no provider is in scope so missing setup fails loudly;\n// matches the pattern of `useScope` / `useAuth` already in the codebase.\n// ---------------------------------------------------------------------------\n\ninterface ExecutorPluginsContextValue {\n readonly plugins: readonly ClientPluginSpec[];\n readonly integrationPlugins: readonly IntegrationPlugin[];\n readonly secretProviderPlugins: readonly SecretProviderPlugin[];\n}\n\nconst ExecutorPluginsContext = createContext<ExecutorPluginsContextValue | null>(null);\nExecutorPluginsContext.displayName = \"ExecutorPluginsContext\";\n\nexport interface ExecutorPluginsProviderProps {\n readonly plugins: readonly ClientPluginSpec[];\n readonly children: ReactNode;\n}\n\nexport function ExecutorPluginsProvider(\n props: ExecutorPluginsProviderProps,\n): ReturnType<typeof createElement> {\n const { plugins, children } = props;\n const value = useMemo<ExecutorPluginsContextValue>(\n () => ({\n plugins,\n integrationPlugins: plugins.flatMap((p) =>\n p.integrationPlugin ? [p.integrationPlugin] : [],\n ),\n secretProviderPlugins: plugins.flatMap((p) =>\n p.secretProviderPlugin ? [p.secretProviderPlugin] : [],\n ),\n }),\n [plugins],\n );\n // Kick off lazy chunk downloads for every integration plugin once the host\n // mounts, so navigating into an add/edit page doesn't suspend.\n useEffect(() => {\n for (const ip of value.integrationPlugins) ip.preload?.();\n }, [value.integrationPlugins]);\n return createElement(ExecutorPluginsContext.Provider, { value }, children);\n}\n\nconst usePluginsCtx = (hookName: string): ExecutorPluginsContextValue => {\n const ctx = useContext(ExecutorPluginsContext);\n if (!ctx) {\n // oxlint-disable-next-line executor/no-try-catch-or-throw, executor/no-error-constructor -- boundary: React hook invariant\n throw new Error(`${hookName} must be called inside an <ExecutorPluginsProvider>.`);\n }\n return ctx;\n};\n\n/** Full list of loaded `ClientPluginSpec` values. */\nexport const useClientPlugins = (): readonly ClientPluginSpec[] =>\n usePluginsCtx(\"useClientPlugins\").plugins;\n\n/** Integration plugins extracted from `clientPlugins[].integrationPlugin`. */\nexport const useIntegrationPlugins = (): readonly IntegrationPlugin[] =>\n usePluginsCtx(\"useIntegrationPlugins\").integrationPlugins;\n\n/** Secret-provider plugins extracted from `clientPlugins[].secretProviderPlugin`. */\nexport const useSecretProviderPlugins = (): readonly SecretProviderPlugin[] =>\n usePluginsCtx(\"useSecretProviderPlugins\").secretProviderPlugins;\n"],"mappings":";;;AAWA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,eAAe;AAExB,SAAS,iBAAiB,YAAY,yBAAyB;AAC/D,YAAY,iBAAiB;AAO7B,SAAS,cAAc;AACvB,SAAS,WAAAA,UAAS,iBAAiB,oBAAoB;AAEvD,YAAY,iBAAiB;AAC7B,YAAY,UAAU;AACtB,YAAYC,kBAAiB;AAE7B,SAAS,cAAc,YAAY,cAAc,sBAAsB;AA4LhE,IAAM,qBAAqB,CAChC,SAC0B;AAyCrB,IAAM,wCAAwC,CACnD,SACA,YACwC;AACxC,MAAI,OAAO,QAAQ,U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org's URL slug, prefixed onto browser-handoff URLs so they open
4
+ * the right org's console (`${webBaseUrl}/<orgSlug>/integrations/...`). */
5
+ readonly orgSlug?: string;
3
6
  readonly includeProviders?: boolean;
4
7
  }
5
8
  export declare const coreToolsPlugin: import("./plugin").ConfiguredPlugin<"core-tools", {}, {}, CoreToolsPluginOptions, undefined, import("effect/Layer").Layer<unknown, never, never>, import("effect/unstable/httpapi/HttpApiGroup").Any>;
@@ -1 +1 @@
1
- {"version":3,"file":"core-tools.d.ts","sourceRoot":"","sources":["../src/core-tools.ts"],"names":[],"mappings":"AA2aA,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,eAAO,MAAM,eAAe,uMAkWzB,CAAC"}
1
+ {"version":3,"file":"core-tools.d.ts","sourceRoot":"","sources":["../src/core-tools.ts"],"names":[],"mappings":"AAgfA,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;gFAC4E;IAC5E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,eAAO,MAAM,eAAe,uMAgbzB,CAAC"}
package/dist/core.js CHANGED
@@ -56,7 +56,7 @@ import {
56
56
  textColumn,
57
57
  tool,
58
58
  toolAddress
59
- } from "./chunk-5Q35SELN.js";
59
+ } from "./chunk-UWBP7WLB.js";
60
60
  import {
61
61
  ConnectionNotFoundError,
62
62
  CredentialProviderNotRegisteredError,
@@ -127,6 +127,7 @@ export interface ExecutorConfig<TPlugins extends readonly AnyPlugin[] = readonly
127
127
  */
128
128
  readonly coreTools?: {
129
129
  readonly webBaseUrl?: string;
130
+ readonly orgSlug?: string;
130
131
  readonly includeProviders?: boolean;
131
132
  };
132
133
  }
@@ -1 +1 @@
1
-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;;;OAMG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IACzD;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE;QACnB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAC1B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;KACrC,CAAC;CACH;AAQD,eAAO,MAAM,aAAa,QAAO,UAGhC,CAAC;AAyyBF,eAAO,MAAM,cAAc,GAAI,KAAK,CAAC,QAAQ,SAAS,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,EACtF,QAAQ,cAAc,CAAC,QAAQ,CAAC,KAC/B,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,CAijE/C,CAAC"}
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  collectTables,
6
6
  createExecutor
7
- } from "./chunk-5Q35SELN.js";
7
+ } from "./chunk-UWBP7WLB.js";
8
8
  import {
9
9
  ConnectionNotFoundError,
10
10
  CredentialProviderNotRegisteredError,
package/dist/testing.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  collectTables,
6
6
  createExecutor,
7
7
  definePlugin
8
- } from "./chunk-5Q35SELN.js";
8
+ } from "./chunk-UWBP7WLB.js";
9
9
  import "./chunk-PCSRC6WP.js";
10
10
  import "./chunk-I3X6242Q.js";
11
11
  import "./chunk-4XPVLX62.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@executor-js/sdk",
3
- "version": "1.5.17",
3
+ "version": "1.5.18",
4
4
  "homepage": "https://github.com/RhysSullivan/executor/tree/main/packages/core/sdk",
5
5
  "bugs": {
6
6
  "url": "https://github.com/RhysSullivan/executor/issues"