chore(images): align merged runtime closure

This commit is contained in:
creatixchu committed 2026-08-21 15:05:54 +08:00
1 parent d29855f97c
commit c0dd8ec820
7 files changed
+13 -8

No files matched your search

+2 -2
View File
@@ -2,5 +2,5 @@
# side as of the last confirmed-consistent state. Both languages carry equal authority;
# after editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write docs/subsystems/attachment.md
attachment.md: cdbb528d30eabc74a9c3607d67e91af053c45e7e
attachment.zh.md: 79ee753d22c3adecaca153659181e113f2b3e728
attachment.md: ec9d1f27bdde4a4d5b6e6e7328260bcb4af49948
attachment.zh.md: e79c2df4ca168bcae4fd45e61812a4f86ce2194b
+2 -2
View File
@@ -204,7 +204,7 @@ abstract readImage(ref: ImageAttachmentRef, signal?: AbortSignal): Promise<Store
* @param signal - optional cancellation.
* @returns request bytes and the cache/upload identity covering every transform input.
*/
async readImageRequest( ref: ImageAttachmentRef, policy: ImageRequestPolicy, signal?: AbortSignal, ): Promise<RequestImageAttachment>
readImageRequest( ref: ImageAttachmentRef, policy: ImageRequestPolicy, signal?: AbortSignal, ): Promise<RequestImageAttachment>
/**
* Generate or read an ordered batch of deterministic model-request versions.
@@ -223,7 +223,7 @@ async readImageRequests( refs: readonly ImageAttachmentRef[], policy: ImageReque
* @param signal - optional cancellation.
* @returns a new durable attachment reference suitable for a logged tool result.
*/
async cropImage( ref: ImageAttachmentRef, crop: PreviewImageCrop, signal?: AbortSignal, ): Promise<SavedImageAttachment>
cropImage( ref: ImageAttachmentRef, crop: PreviewImageCrop, signal?: AbortSignal, ): Promise<SavedImageAttachment>
```
Source: [`packages/attachment/attachment/src/index.ts`](../../packages/attachment/attachment/src/index.ts)
+2 -2
View File
@@ -204,7 +204,7 @@ abstract readImage(ref: ImageAttachmentRef, signal?: AbortSignal): Promise<Store
* @param signal - optional cancellation.
* @returns request bytes and the cache/upload identity covering every transform input.
*/
async readImageRequest( ref: ImageAttachmentRef, policy: ImageRequestPolicy, signal?: AbortSignal, ): Promise<RequestImageAttachment>
readImageRequest( ref: ImageAttachmentRef, policy: ImageRequestPolicy, signal?: AbortSignal, ): Promise<RequestImageAttachment>
/**
* Generate or read an ordered batch of deterministic model-request versions.
@@ -223,7 +223,7 @@ async readImageRequests( refs: readonly ImageAttachmentRef[], policy: ImageReque
* @param signal - optional cancellation.
* @returns a new durable attachment reference suitable for a logged tool result.
*/
async cropImage( ref: ImageAttachmentRef, crop: PreviewImageCrop, signal?: AbortSignal, ): Promise<SavedImageAttachment>
cropImage( ref: ImageAttachmentRef, crop: PreviewImageCrop, signal?: AbortSignal, ): Promise<SavedImageAttachment>
```
Source: [`packages/attachment/attachment/src/index.ts`](../../packages/attachment/attachment/src/index.ts)
@@ -456,7 +456,7 @@ export const SERVICE_API: readonly ServiceApiEntry[] = [
throws: ['the signal reason when aborted, or a storage error when verification fails.'],
},
{
signature: 'async readImageRequest( ref: ImageAttachmentRef, policy: ImageRequestPolicy, signal?: AbortSignal, ): Promise<RequestImageAttachment>',
signature: 'readImageRequest( ref: ImageAttachmentRef, policy: ImageRequestPolicy, signal?: AbortSignal, ): Promise<RequestImageAttachment>',
description: 'Generate or read one deterministic model-request version from the stored master image.',
parameters: [{ name: 'ref', description: 'durable provider-independent master reference.' }, { name: 'policy', description: 'exact route pixel and encoded-byte budget.' }, { name: 'signal', description: 'optional cancellation.' }],
returns: 'request bytes and the cache/upload identity covering every transform input.',
@@ -468,7 +468,7 @@ export const SERVICE_API: readonly ServiceApiEntry[] = [
returns: 'request versions in the same order as `refs`.',
},
{
signature: 'async cropImage( ref: ImageAttachmentRef, crop: PreviewImageCrop, signal?: AbortSignal, ): Promise<SavedImageAttachment>',
signature: 'cropImage( ref: ImageAttachmentRef, crop: PreviewImageCrop, signal?: AbortSignal, ): Promise<SavedImageAttachment>',
description: 'Crop the stored master by coordinates measured on a model request preview and persist the result.',
parameters: [{ name: 'ref', description: 'session-authorized master attachment.' }, { name: 'crop', description: 'preview dimensions and preview-coordinate rectangle.' }, { name: 'signal', description: 'optional cancellation.' }],
returns: 'a new durable attachment reference suitable for a logged tool result.',
@@ -89,6 +89,7 @@ describe('PiAiAdapter provider routing', () => {
ctx.llm.registerAdapter(['deepseek'], new PiAiAdapter({
profiles: () => resolveProfiles(providers),
resolveApiKey: () => Promise.resolve('test-key'),
auth: memoryAuth(),
}))
const prepared = await ctx.llm.prepareCall({ provider: 'deepseek', model: 'deepseek-v4-flash' })
+3
View File
@@ -8729,6 +8729,9 @@ importers:
'@deepseek-ai/dsh-app-boot':
specifier: workspace:^
version: link:../../packages/boot/app-boot
'@deepseek-ai/dsh-atomic-write':
specifier: workspace:^
version: link:../../packages/util/atomic-write
'@deepseek-ai/dsh-attachment':
specifier: workspace:^
version: link:../../packages/attachment/attachment
+1
View File
@@ -17,6 +17,7 @@
"@deepseek-ai/dsh-agent-tool-presentation": "workspace:^",
"@deepseek-ai/dsh-app-boot": "workspace:^",
"@deepseek-ai/dsh-attachment": "workspace:^",
"@deepseek-ai/dsh-atomic-write": "workspace:^",
"@deepseek-ai/dsh-shell": "workspace:^",
"@deepseek-ai/dsh-shell-env": "workspace:^",
"@deepseek-ai/dsh-bash-local": "workspace:^",