Add getHashForFile

This commit is contained in:
NicolasCantu 2025-06-06 23:04:57 +02:00
parent 7417aec7e0
commit b6a2a5fc3b

View File

@ -1754,6 +1754,10 @@ export default class Services {
.join('');
}
public getHashForFile(commitedIn: string, label: string, fileBlob: { type: string; data: Uint8Array }): string {
return this.sdkClient.hash_value(fileBlob, commitedIn, label);
}
public getLastCommitedState(process: Process): ProcessState | null {
if (process.states.length === 0) return null;
const processTip = process.states[process.states.length - 1].commited_in;