refactor(resources): move the selected-file target error projection into src/resources (#11489)

This commit is contained in:
morluto authored and GitHub committed 2026-11-16 08:58:40 +08:00
1 parent 9699ce9057
commit d3350d81fd
5 files changed
+5 -7

No files matched your search

+1 -4
View File
@@ -7,10 +7,7 @@
"cli <-> cliOutput.ts",
"main <-> server"
],
"crossProvider": {
"gpu -> artifacts": 1,
"model -> artifacts": 1
},
"crossProvider": {},
"entry": {
"application -> desktop": 28
}
+1 -1
View File
@@ -7,6 +7,7 @@ import {
artifactFilePrimaryFacts,
artifactFileCancellationCause,
artifactFileCompletion,
selectedFileTargetError,
} from "../resources/index.js";
import { GPU_CODE_OBJECTS_PROVIDER_IDENTITY } from "./GpuCodeObjectsProviderIdentity.js";
import { lstat, type FileHandle } from "node:fs/promises";
@@ -45,7 +46,6 @@ import {
} from "./GpuSource.js";
import { GpuInventory } from "./GpuInventory.js";
import { ProviderCleanupError } from "../domain/providerCleanupError.js";
import { selectedFileTargetError } from "../artifacts/RegularFileErrorProjection.js";
import {
isSelectedRegularFileError,
sameRegularFileState,
+1 -1
View File
@@ -7,6 +7,7 @@ import {
artifactFilePrimaryFacts,
artifactFileCancellationCause,
artifactFileCompletion,
selectedFileTargetError,
} from "../resources/index.js";
import { MODEL_ARTIFACT_PROVIDER_IDENTITY } from "./ModelArtifactProviderIdentity.js";
import { lstat, type FileHandle } from "node:fs/promises";
@@ -49,7 +50,6 @@ import { jsonValueByteLength } from "../domain/jsonValueByteLength.js";
import { ParseFailureError } from "../domain/parseFailure.js";
import { parseFailureAnalysisError } from "../domain/parseFailureAnalysisError.js";
import { ProviderCleanupError } from "../domain/providerCleanupError.js";
import { selectedFileTargetError } from "../artifacts/RegularFileErrorProjection.js";
import {
isSelectedRegularFileError,
sameRegularFileState,
@@ -1,6 +1,6 @@
import { BinaryTargetError } from "../domain/configurationErrors.js";
import { RejectedRegularFileSymlink } from "../filesystem/RegularFile.js";
import { regularFileSymlinkRecovery } from "../resources/index.js";
import { regularFileSymlinkRecovery } from "./StableArtifactFailure.js";
/** Project a selected-file admission failure without reinterpreting its path. */
export const selectedFileTargetError = (
+1
View File
@@ -96,6 +96,7 @@ export {
stableArtifactInputRecovery,
} from "./StableArtifactFailure.js";
export type { RequestField } from "./StableArtifactFailure.js";
export { selectedFileTargetError } from "./RegularFileErrorProjection.js";
export { completedStableArtifactObservation } from "./StableArtifactObservation.js";
export {
fileAccessFailureReason,