Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs(links): r3-l3 record literal-percent version skew
Josué531b226e15d4
diff --git a/packages/desktop-app-links/README.md b/packages/desktop-app-links/README.mdindex ca57d7d1b..91a022bd8 100644--- a/packages/desktop-app-links/README.md+++ b/packages/desktop-app-links/README.md@@ -36,3 +36,11 @@ Wire-contract changes must be additive by default:- Producers must keep emitting the existing `app` hostname plus `path` and `team` parameter namesfor the supported migration window.- Any breaking wire change requires a separate versioning design before it ships.++New clients represent `path` as decoded canonical route text on the wire and percent-encode each+segment only when navigating the embedded browser. Desktop versions released before that navigation+boundary was added may not open a literal-percent segment, such as `literal%percent`, from a link+created by a newer producer. Deployments with mixed client versions should avoid sharing+literal-percent routes until supported desktops have been updated. Changing this representation to+support older clients would be a breaking wire change and requires the separate versioning design+described above.diff --git a/packages/desktop-app-links/index.test.cjs b/packages/desktop-app-links/index.test.cjsindex e252d1bb7..ba442759c 100644--- a/packages/desktop-app-links/index.test.cjs+++ b/packages/desktop-app-links/index.test.cjs@@ -49,6 +49,20 @@ test('web and desktop links use the same canonical route contract', () => {})})+test('literal percent routes use the decoded canonical wire representation', () => {+ const deepLink = links.buildSandboxUiDeepLink({+ recipeNs: 'sandbox-recipes',+ recipeName: 'task-board',+ path: '/literal%percent',+ })++ assert.equal(new URL(deepLink).searchParams.get('path'), '/literal%percent')+ assert.deepEqual(links.parseSandboxUiDeepLink(deepLink), {+ appRef: 'sandbox-recipes/task-board',+ path: '/literal%percent',+ })+})+test('route normalization canonicalizes safe percent-encoded paths once', () => {for (const [input, expected] of [['/café', '/café'],