environment
environment: { locale: string; platform: "windows" | "macos" }
game
game: { appId: string }
可选images
images?: {
load(
input: { fallbackAssetId: string; url: string },
): Promise<{ imageRef: string }>;
}
operationId
operationId: string
可选storage
storage?: { getStorage( input: { key: string }, ): Promise<{ data: WorkspaceCardJson | undefined }>; setStorage(input: { data: WorkspaceCardJson; key: string }): Promise<void>;} trigger
trigger: {
executionId: string;
reason:
| "invoke"
| "generation"
| "retry"
| "cold"
| "periodic"
| "request"
| "recovery";
}
Extension 生成的执行身份;action handler 可将其提交为业务幂等键。