@rslsp1/fa-app-tools 7.2.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -6,7 +6,7 @@ import { Node, Edge } from '@xyflow/react';
6
6
  import * as zustand_vanilla from 'zustand/vanilla';
7
7
  import { F as FeatureSliceId, b as SliceContract, a as PersistenceDescriptor, W as WorkspacePersistence, P as PersistedSlice, L as LoadResult, f as WriteResult, e as WorkspaceTabId, C as CommandResult, R as RequestContext, Q as QueryResult } from './contracts-DdYOMBl9.mjs';
8
8
 
9
- var version = "7.2.0";
9
+ var version = "8.0.0";
10
10
 
11
11
  declare function useOnClickOutside(ref: RefObject<HTMLElement | null>, handler: (e: MouseEvent | TouchEvent) => void): void;
12
12
 
@@ -807,15 +807,30 @@ interface HFFileInfo {
807
807
  path: string;
808
808
  size: number;
809
809
  }
810
- declare function hfListDir(namespace: string, subdir: string, token: string): Promise<HFFileInfo[]>;
811
- declare function hfUploadSmallFile(repoPath: string, content: string, token: string, summary?: string): Promise<void>;
810
+ declare function hfListDir(namespace: string, subdir: string, token: string, revision?: string): Promise<HFFileInfo[]>;
811
+ declare function hfUploadSmallFile(repoPath: string, content: string, token: string, summary?: string, options?: {
812
+ /**
813
+ * Der Commit, auf dem dieser Schreibvorgang aufsetzt. Ist er nicht mehr
814
+ * der Kopf, lehnt HF ab (412) und es entsteht **nichts**.
815
+ */
816
+ parentCommit?: string;
817
+ }): Promise<void>;
812
818
  declare function hfBatchArchive(moves: Array<{
813
819
  from: string;
814
820
  to: string;
815
821
  content: string;
816
822
  }>, token: string, summary: string): Promise<void>;
817
823
  declare function tsFromEventPath(repoPath: string): number;
818
- declare function loadPendingEvents(namespace: string, token: string, sinceTs: number, knownPaths?: Set<string>): Promise<HFEvent[]>;
824
+ declare function loadPendingEvents(namespace: string, token: string, sinceTs: number, knownPaths?: Set<string>,
825
+ /**
826
+ * Die Revision, an der die **Dateiliste** haengt. Vorgabe `main`.
827
+ *
828
+ * Nur die Liste — die Inhalte werden weiterhin ueber `main` geladen, und das
829
+ * ist richtig: Ereignisdateien sind unveraenderlich, ihr Inhalt haengt nicht
830
+ * an der Revision. Was an der Revision haengt, ist ausschliesslich die Frage
831
+ * „welche Dateien gab es zu diesem Zeitpunkt".
832
+ */
833
+ revision?: string): Promise<HFEvent[]>;
819
834
  declare function getSessionClientId(): string;
820
835
  declare function writeHFEvent<P>(namespace: string, token: string, type: string, payload: P, prevTs: number[], options?: {
821
836
  /**
@@ -825,6 +840,13 @@ declare function writeHFEvent<P>(namespace: string, token: string, type: string,
825
840
  * Domains, für die die Logreihenfolge fachlich zählt, schalten es ein.
826
841
  */
827
842
  ordered?: boolean;
843
+ /**
844
+ * Nur schreiben, wenn der Branch noch auf diesem Commit steht.
845
+ *
846
+ * Wirft `HfPreconditionFailedError`, wenn nicht — und schreibt dann
847
+ * **nichts**. Damit wird aus „anhaengen" ein Compare-and-Swap.
848
+ */
849
+ parentCommit?: string;
828
850
  }): Promise<HFEvent<P>>;
829
851
 
830
852
  declare function getHFToken(): string | null;
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import { Node, Edge } from '@xyflow/react';
6
6
  import * as zustand_vanilla from 'zustand/vanilla';
7
7
  import { F as FeatureSliceId, b as SliceContract, a as PersistenceDescriptor, W as WorkspacePersistence, P as PersistedSlice, L as LoadResult, f as WriteResult, e as WorkspaceTabId, C as CommandResult, R as RequestContext, Q as QueryResult } from './contracts-DdYOMBl9.js';
8
8
 
9
- var version = "7.2.0";
9
+ var version = "8.0.0";
10
10
 
11
11
  declare function useOnClickOutside(ref: RefObject<HTMLElement | null>, handler: (e: MouseEvent | TouchEvent) => void): void;
12
12
 
@@ -807,15 +807,30 @@ interface HFFileInfo {
807
807
  path: string;
808
808
  size: number;
809
809
  }
810
- declare function hfListDir(namespace: string, subdir: string, token: string): Promise<HFFileInfo[]>;
811
- declare function hfUploadSmallFile(repoPath: string, content: string, token: string, summary?: string): Promise<void>;
810
+ declare function hfListDir(namespace: string, subdir: string, token: string, revision?: string): Promise<HFFileInfo[]>;
811
+ declare function hfUploadSmallFile(repoPath: string, content: string, token: string, summary?: string, options?: {
812
+ /**
813
+ * Der Commit, auf dem dieser Schreibvorgang aufsetzt. Ist er nicht mehr
814
+ * der Kopf, lehnt HF ab (412) und es entsteht **nichts**.
815
+ */
816
+ parentCommit?: string;
817
+ }): Promise<void>;
812
818
  declare function hfBatchArchive(moves: Array<{
813
819
  from: string;
814
820
  to: string;
815
821
  content: string;
816
822
  }>, token: string, summary: string): Promise<void>;
817
823
  declare function tsFromEventPath(repoPath: string): number;
818
- declare function loadPendingEvents(namespace: string, token: string, sinceTs: number, knownPaths?: Set<string>): Promise<HFEvent[]>;
824
+ declare function loadPendingEvents(namespace: string, token: string, sinceTs: number, knownPaths?: Set<string>,
825
+ /**
826
+ * Die Revision, an der die **Dateiliste** haengt. Vorgabe `main`.
827
+ *
828
+ * Nur die Liste — die Inhalte werden weiterhin ueber `main` geladen, und das
829
+ * ist richtig: Ereignisdateien sind unveraenderlich, ihr Inhalt haengt nicht
830
+ * an der Revision. Was an der Revision haengt, ist ausschliesslich die Frage
831
+ * „welche Dateien gab es zu diesem Zeitpunkt".
832
+ */
833
+ revision?: string): Promise<HFEvent[]>;
819
834
  declare function getSessionClientId(): string;
820
835
  declare function writeHFEvent<P>(namespace: string, token: string, type: string, payload: P, prevTs: number[], options?: {
821
836
  /**
@@ -825,6 +840,13 @@ declare function writeHFEvent<P>(namespace: string, token: string, type: string,
825
840
  * Domains, für die die Logreihenfolge fachlich zählt, schalten es ein.
826
841
  */
827
842
  ordered?: boolean;
843
+ /**
844
+ * Nur schreiben, wenn der Branch noch auf diesem Commit steht.
845
+ *
846
+ * Wirft `HfPreconditionFailedError`, wenn nicht — und schreibt dann
847
+ * **nichts**. Damit wird aus „anhaengen" ein Compare-and-Swap.
848
+ */
849
+ parentCommit?: string;
828
850
  }): Promise<HFEvent<P>>;
829
851
 
830
852
  declare function getHFToken(): string | null;