fix(desktop): align runtime patch policy with pi-ai 1.2.0
This commit is contained in:
1 parent
8fd91f311e
commit
f9cb7ea9f5
5 files changed
+12
-12
No files matched your search
@@ -8,7 +8,7 @@ export type DesktopRuntimePatch =
|
||||
|
||||
/** Every workspace patch requires an explicit Desktop decision; runtime-only entries may add or replace a patch. */
|
||||
export const DESKTOP_RUNTIME_PATCHES: Readonly<Record<string, DesktopRuntimePatch>> = {
|
||||
'@earendil-works/pi-ai@1.1.0': { scope: 'shared', reason: 'Runtime providers need the streamed argument parsing fix.' },
|
||||
'@earendil-works/pi-ai@1.2.0': { scope: 'shared', reason: 'Runtime providers need the streamed argument parsing fix.' },
|
||||
'@electron/[email protected]': { scope: 'workspace-only', reason: 'Signing executes on the build host.' },
|
||||
'@fortune-sheet/[email protected]': { scope: 'workspace-only', reason: 'Patched spreadsheet code is embedded in the client bundle.' },
|
||||
'@fortune-sheet/[email protected]': { scope: 'workspace-only', reason: 'Patched spreadsheet code is embedded in the client bundle.' },
|
||||
@@ -20,6 +20,6 @@ export const DESKTOP_RUNTIME_PATCHES: Readonly<Record<string, DesktopRuntimePatc
|
||||
|
||||
/** Reviewed Desktop dependency constraints, independent of patch selection. */
|
||||
export const DESKTOP_RUNTIME_DEPENDENCY_OVERRIDES: Readonly<Record<string, string>> = {
|
||||
// The provider declares ^1.1.0; its patch is qualified against 1.1.0.
|
||||
'@earendil-works/pi-ai@^1.1.0': '1.1.0',
|
||||
// The provider declares ^1.2.0; its patch is qualified against 1.2.0.
|
||||
'@earendil-works/pi-ai@^1.2.0': '1.2.0',
|
||||
}
|
||||
@@ -42,11 +42,11 @@ it('classifies the current workspace and shares only runtime patch bytes', () =>
|
||||
const repository = resolve(import.meta.dirname, '../../..')
|
||||
const before = readFileSync(join(repository, 'pnpm-lock.yaml'))
|
||||
const plan = prepareRuntimePatches(project, repository)
|
||||
expect(plan.patches.map(entry => entry.spec)).toEqual(['@earendil-works/pi-ai@1.1.0', '[email protected]'])
|
||||
expect(plan.patches.map(entry => entry.spec)).toEqual(['@earendil-works/pi-ai@1.2.0', '[email protected]'])
|
||||
expect(plan.workspaceOnly).toHaveLength(6)
|
||||
const settings = yaml.load(readFileSync(join(project, 'pnpm-workspace.yaml'), 'utf8')) as { overrides: Record<string, string> }
|
||||
expect(settings.overrides['@earendil-works/pi-ai']).toBeUndefined()
|
||||
expect(settings.overrides['@earendil-works/pi-ai@^1.1.0']).toBe('1.1.0')
|
||||
expect(settings.overrides['@earendil-works/pi-ai@^1.2.0']).toBe('1.2.0')
|
||||
expect(readFileSync(join(repository, 'pnpm-lock.yaml'))).toEqual(before)
|
||||
})
|
||||
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
/:
|
||||
en: 3d2fec5fa8405395
|
||||
zh: b8617482168609b1
|
||||
/pi-ai-model-catalog:
|
||||
en: ad7d66838bb7f924
|
||||
zh: d4b120332acf786f
|
||||
/pi-ai-model-catalog/change:
|
||||
/pi-ai-1-2-0-removes-model-ids-and-lowers-sonnet-4-5-context:
|
||||
en: 793381c1cb58d941
|
||||
zh: de53660729d48116
|
||||
/pi-ai-1-2-0-removes-model-ids-and-lowers-sonnet-4-5-context/change:
|
||||
en: 0948c8c82d4f8256
|
||||
zh: 763504917909d130
|
||||
/pi-ai-model-catalog/migration:
|
||||
/pi-ai-1-2-0-removes-model-ids-and-lowers-sonnet-4-5-context/migration:
|
||||
en: 6db9f70e6db44b3c
|
||||
zh: 34156f7446a78bc1
|
||||
@@ -3,7 +3,7 @@ kind: upgrade-guide
|
||||
description: "The pi-ai 1.2.0 catalog removes model IDs and lowers the default context limit for Anthropic Sonnet 4.5."
|
||||
---
|
||||
|
||||
# pi-ai model catalog
|
||||
# pi-ai 1.2.0 removes model IDs and lowers Sonnet 4.5 context
|
||||
|
||||
English | [中文](guide.zh.md)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ kind: upgrade-guide
|
||||
description: "pi-ai 1.2.0 目录移除了部分模型 ID,并降低了 Anthropic Sonnet 4.5 的默认上下文限制。"
|
||||
---
|
||||
|
||||
# pi-ai 模型目录
|
||||
# pi-ai 1.2.0 移除部分模型 ID 并降低 Sonnet 4.5 上下文限制
|
||||
|
||||
[English](guide.md) | 中文
|
||||
|
||||
|
||||
Reference in new issue
Block a user