alexchenzl f4230721c4 sync dom, prompts and schema with browser-use v0.1.41 3 tháng trước cách đây
..
examples 74c50ff623 upgrade prompts and action schemas 3 tháng trước cách đây
lib f4230721c4 sync dom, prompts and schema with browser-use v0.1.41 3 tháng trước cách đây
.eslintignore e4072339f5 1. add a package to flatten OpenAI compatible json schema, and convert it to Gemini compatible schema 5 tháng trước cách đây
README.md e4072339f5 1. add a package to flatten OpenAI compatible json schema, and convert it to Gemini compatible schema 5 tháng trước cách đây
build.mjs e4072339f5 1. add a package to flatten OpenAI compatible json schema, and convert it to Gemini compatible schema 5 tháng trước cách đây
index.ts e4072339f5 1. add a package to flatten OpenAI compatible json schema, and convert it to Gemini compatible schema 5 tháng trước cách đây
package.json 8efba0e457 bump to v0.1.4 4 tháng trước cách đây
tsconfig.json e4072339f5 1. add a package to flatten OpenAI compatible json schema, and convert it to Gemini compatible schema 5 tháng trước cách đây

README.md

Tool Utils

This package contains JSON schema definitions and related helpers for tools used across the extension.

Contents

  • JSON schema definitions for navigator output
  • Utility functions for schema flattening, conversion and formatting

Examples

The examples/ directory contains runnable examples that demonstrate the package's functionality:

  1. flatten.ts - Demonstrates how to flatten a JSON schema by dereferencing all $ref fields
  2. convert.ts - Shows how to convert an OpenAI-compatible schema to Gemini format

To run these examples:

# Run the schema flattening example
pnpm --filter @extension/schema-utils example:flatten

# Run the schema conversion example
pnpm --filter @extension/schema-utils example:convert