Add checksum to manifest (#17368)
## Refactor app-dev state management and build utilities - Store only `manifest` in `AppDevState` instead of full `ManifestBuildResult`; add `sourcePath` to `FileStatus` - Pass `sourcePaths` directly to watchers instead of `ManifestBuildResult` - Only reset `fileUploadStatus` for functions/components when their source paths change - Add pure `updateManifestChecksum` utility that returns a new manifest without side effects - Extract `processEsbuildResult` to deduplicate build result processing between watchers - Rename `serverlessFunctions` → `functions` in SDK code (API unchanged) - Extract `writeManifestToOutput` to shared `manifest-writer.ts`
This commit is contained in:
@@ -13,7 +13,7 @@ export type ApplicationManifest = {
|
||||
application: Application;
|
||||
objects: ObjectManifest[];
|
||||
objectExtensions?: ObjectExtensionManifest[];
|
||||
serverlessFunctions: ServerlessFunctionManifest[];
|
||||
functions: ServerlessFunctionManifest[];
|
||||
frontComponents?: FrontComponentManifest[];
|
||||
roles?: RoleManifest[];
|
||||
sources: Sources;
|
||||
|
||||
@@ -4,5 +4,6 @@ export type FrontComponentManifest = {
|
||||
description?: string;
|
||||
sourceComponentPath: string;
|
||||
builtComponentPath: string;
|
||||
builtComponentChecksum: string | null;
|
||||
componentName: string;
|
||||
};
|
||||
|
||||
@@ -26,6 +26,7 @@ export type ServerlessFunctionManifest = SyncableEntityOptions & {
|
||||
triggers: ServerlessFunctionTriggerManifest[];
|
||||
sourceHandlerPath: string;
|
||||
builtHandlerPath: string;
|
||||
builtHandlerChecksum: string | null;
|
||||
handlerName: string;
|
||||
toolInputSchema?: InputJsonSchema;
|
||||
isTool?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user