mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
chore(licenses): rename dir
Radius's control-plane client now bundles pi-schema, and Vite's license step reads the first entry whose name starts with "license" as the package's license file. Here that entry is pi-schema's LICENSES/ folder, so Vite tries to read a directory as a file and the build fails, which renaming the folder fixes without any Radius-side workaround.
This commit is contained in:
parent
9b9cb30ae1
commit
93bb7c7757
11 changed files with 9 additions and 7 deletions
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
### Fixed
|
||||
|
||||
- The third-party licenses are in `THIRD_PARTY_NOTICES/`, renamed from `LICENSES/`, which Vite's license notices read as the package's license file, failing browser builds that bundle the package.
|
||||
- Fixed Streamable HTTP `application/json` responses bypassing `maxMessageBytes`; oversized JSON responses are now cancelled and rejected like oversized SSE events ([#11335](https://github.com/earendil-works/pi/issues/11335))
|
||||
- Fixed Streamable HTTP errors reading the whole HTTP error body; only the first 8 KiB kept in the error is read, and the rest is cancelled
|
||||
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ if (started.kind === "redirect") {
|
|||
|
||||
For a browser on the same machine, `listenForLoopbackSignIn()` starts a loopback callback server and returns its redirect URI, and `waitForLoopbackSignIn()` waits for the response on it or for a pasted redirect URL. `clientMetadataDocuments` lets authorization servers that support Client ID Metadata Documents identify the application by a document it publishes instead of registering a client. `createMcpAuthProvider()` is the matching `AuthProvider` for connections: it refreshes the stored tokens and throws `McpOAuthAuthorizationRequiredError` when the user has to sign in.
|
||||
|
||||
The OAuth implementation is adapted from the MIT-licensed Model Context Protocol TypeScript SDK v1.29.0. Its license is included under `LICENSES/`.
|
||||
The OAuth implementation is adapted from the MIT-licensed Model Context Protocol TypeScript SDK v1.29.0. Its license is included under `THIRD_PARTY_NOTICES/`.
|
||||
|
||||
### Configuration
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
"dist",
|
||||
"README.md",
|
||||
"CHANGELOG.md",
|
||||
"LICENSES"
|
||||
"THIRD_PARTY_NOTICES"
|
||||
],
|
||||
"scripts": {
|
||||
"clean": "node ../../scripts/package-files.mjs clean dist",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Adapted from modelcontextprotocol/typescript-sdk v1.29.0 src/client/auth.ts.
|
||||
* Copyright (c) 2024 Anthropic, PBC. Licensed under MIT; see LICENSES/.
|
||||
* Copyright (c) 2024 Anthropic, PBC. Licensed under MIT; see THIRD_PARTY_NOTICES/.
|
||||
* Modified to remove Zod/CORS shims and enforce authorization-server issuer validation.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Adapted from modelcontextprotocol/typescript-sdk v1.29.0 src/client/auth.ts.
|
||||
* Copyright (c) 2024 Anthropic, PBC. Licensed under MIT; see LICENSES/.
|
||||
* Copyright (c) 2024 Anthropic, PBC. Licensed under MIT; see THIRD_PARTY_NOTICES/.
|
||||
* Modified to remove SDK/Zod dependencies and use WebCrypto for PKCE.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Adapted from modelcontextprotocol/typescript-sdk v1.29.0.
|
||||
* Copyright (c) 2024 Anthropic, PBC. Licensed under MIT; see LICENSES/.
|
||||
* Copyright (c) 2024 Anthropic, PBC. Licensed under MIT; see THIRD_PARTY_NOTICES/.
|
||||
* Modified to use dependency-free structural validation.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
### Fixed
|
||||
|
||||
- The third-party licenses are in `THIRD_PARTY_NOTICES/`, renamed from `LICENSES/`, which Vite's license notices read as the package's license file, failing browser builds that bundle the package.
|
||||
- A required property set to `undefined` is valid when its schema takes `undefined` (a union with `Type.Undefined()`, `Type.Unknown()`, `Type.Any()`), as in TypeBox; before, it was always missing. An optional one set to `undefined` still counts as absent.
|
||||
- Fixed local `$ref`s in schemas whose root `$id` is a relative path with a directory, such as `schemas/tool.json`: the `$id` was applied twice, so `compile` threw and `unresolvedRefs: "reject"` rejected valid tool arguments. Relative `$id`s are now also applied once with `unevaluatedProperties`/`unevaluatedItems`, when explaining errors under nested resources, and on the first coercion of a schema with `$dynamicRef` ([#11697](https://github.com/earendil-works/pi/issues/11697))
|
||||
|
||||
|
|
|
|||
|
|
@ -316,4 +316,4 @@ schemas that arrive later.
|
|||
`npm test` runs the official test suite (drafts 2020-12 and 7, including the optional and format tests, vendored in
|
||||
`test/fixtures/`) and the package's own tests.
|
||||
|
||||
The format checks are adapted from TypeBox 1.3.27 (MIT); its license is in `LICENSES/`.
|
||||
The format checks are adapted from TypeBox 1.3.27 (MIT); its license is in `THIRD_PARTY_NOTICES/`.
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
"dist",
|
||||
"README.md",
|
||||
"CHANGELOG.md",
|
||||
"LICENSES"
|
||||
"THIRD_PARTY_NOTICES"
|
||||
],
|
||||
"scripts": {
|
||||
"clean": "node ../../scripts/package-files.mjs clean dist",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue