apps 0.0.1-beta.82 → 0.0.1-beta.83

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.
@@ -68,3 +68,11 @@ export declare const declaredOperations: (root: AppRouter | undefined, path?: st
68
68
  * its own tools' hints.
69
69
  */
70
70
  export declare const withApprovals: <Query, Mutation>(source: RouterDeclaration<Query, Mutation>, policy: (operation: OperationDeclaration<"query" | "mutation", never>, name: string) => Approval | undefined) => RouterDeclaration<Query, Mutation>;
71
+ /**
72
+ * Expose a protocol router's tools under other names, such as the names an earlier client used.
73
+ * `rename` receives each tool's name relative to this router and returns the name to expose, or
74
+ * undefined to leave the tool out. When two tools would share a name, the first listed keeps it.
75
+ * Calls and descriptions find a tool by its exposed name. Works on routers that discover their
76
+ * tools, such as `mcpRouter`, `graphqlRouter` and `liveOpenapiRouter`.
77
+ */
78
+ export declare const renameTools: <Query, Mutation>(source: RouterDeclaration<Query, Mutation>, rename: (name: string) => string | undefined) => RouterDeclaration<Query, Mutation>;
@@ -25,7 +25,7 @@ export { base64, basic, bearer, header, t, type FieldRef, type FieldRefs, type P
25
25
  export type { Placement };
26
26
  export type { AccountRequest } from "./contracts/provider.js";
27
27
  export { accountRouter } from "./implementation/account-router.js";
28
- export { router, dynamicRouter, withApprovals, type OperationChild, type OperationDeclaration, type RouterDeclaration, type RouterChild, type RouterOptions, } from "./implementation/router.js";
28
+ export { router, dynamicRouter, withApprovals, renameTools, type OperationChild, type OperationDeclaration, type RouterDeclaration, type RouterChild, type RouterOptions, } from "./implementation/router.js";
29
29
  export type { RouterIcon } from "./contracts/router.js";
30
30
  export { dynamicSkills } from "./implementation/dynamic-skills.js";
31
31
  export type { HostedTool as OperationDescription } from "./contracts/host.js";
@@ -9,4 +9,9 @@ export { OpenapiError, isOpenapiTextMedia, openapiBinaryResultSchema, OpenapiErr
9
9
  export declare const openapiRouter: (options: OpenapiToolsOptions, kinds?: OperationKinds) => Promise<import("./index.js").RouterDeclaration<unknown, unknown>>;
10
10
  export type { OperationKinds } from "./implementation/protocol-operations.js";
11
11
  export * from "./contracts/openapi-compile.js";
12
+ /**
13
+ * The names `liveOpenapiRouter` gives a document's operations, from each operation's
14
+ * operationId, first tag, method and path alone. It reads no document and compiles nothing.
15
+ */
16
+ export { planOperationNames, type OperationNameInput } from "./implementation/openapi-names.js";
12
17
  export { liveOpenapiRouter, openapiToolNames, type OpenapiSourceOptions, type OpenapiToolNamesOptions, } from "./implementation/openapi-source.js";