@fortrip/agent-contract 6.3.0 → 6.4.0

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/index.d.ts CHANGED
@@ -30,6 +30,9 @@ interface ToolSpec {
30
30
  title: string;
31
31
  description: string;
32
32
  annotations: {
33
+ /** The tool's `title` again: a client or directory that reads a tool's
34
+ * title from its annotations finds the same one here. */
35
+ title: string;
33
36
  readOnlyHint: boolean;
34
37
  idempotentHint: boolean;
35
38
  openWorldHint: boolean;
package/dist/index.js CHANGED
@@ -2397,7 +2397,7 @@ var READ = {
2397
2397
  var READ_OWN = { ...READ, openWorldHint: false };
2398
2398
  var PAID_WHERE = ", on that page or with pay_order";
2399
2399
  var PAID_WHERE_WITHOUT_TOKEN = " on that page";
2400
- var TOOLS = [
2400
+ var SPECS = [
2401
2401
  {
2402
2402
  name: "search_hotels",
2403
2403
  title: "Search hotels",
@@ -2483,6 +2483,10 @@ var TOOLS = [
2483
2483
  output: order
2484
2484
  }
2485
2485
  ];
2486
+ var TOOLS = SPECS.map((spec) => ({
2487
+ ...spec,
2488
+ annotations: { title: spec.title, ...spec.annotations }
2489
+ }));
2486
2490
  function toolsFor(options = {}) {
2487
2491
  if (options.tokenPay !== false) return TOOLS;
2488
2492
  return TOOLS.filter((tool) => tool.name !== "pay_order").map(
@@ -3985,7 +3989,7 @@ var ME_SCOPES = { email: "email", name: "profile" };
3985
3989
  // package.json
3986
3990
  var package_default = {
3987
3991
  name: "@fortrip/agent-contract",
3988
- version: "6.3.0",
3992
+ version: "6.4.0",
3989
3993
  license: "Apache-2.0",
3990
3994
  description: "The contract of Fortrip's agent API (https://api.fortrip.ai/v1) and its MCP server: limits, paths, request and response schemas, error codes and field rules.",
3991
3995
  type: "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fortrip/agent-contract",
3
- "version": "6.3.0",
3
+ "version": "6.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "The contract of Fortrip's agent API (https://api.fortrip.ai/v1) and its MCP server: limits, paths, request and response schemas, error codes and field rules.",
6
6
  "type": "module",