@ricsam/r5d-worker 0.0.86 → 0.0.88

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.
@@ -93,7 +93,7 @@ declare function configureRepository(input: {
93
93
  name: string;
94
94
  email: string;
95
95
  } | null;
96
- }): void;
96
+ }): Promise<void>;
97
97
  export declare function ensureProjectWorktrees(input: {
98
98
  projectRoot: string;
99
99
  primaryBranchName: string;
@@ -110,7 +110,7 @@ export declare function ensureProjectWorktrees(input: {
110
110
  } | null;
111
111
  exactMirrorBranches?: ReadonlySet<string>;
112
112
  snapshotRoot?: string;
113
- }): ProjectWorktreeState[];
113
+ }): Promise<ProjectWorktreeState[]>;
114
114
  export declare function projectWorktreeOperationInProgress(checkoutPath: string): boolean;
115
115
  export declare function createLinkedProjectBranch(input: {
116
116
  projectRoot: string;
@@ -153,7 +153,7 @@ export declare function deleteProjectMirrorBranch(input: {
153
153
  mirrorUrl: string;
154
154
  credentialHelper?: string | null;
155
155
  credentialUsername?: string | null;
156
- }): void;
156
+ }): Promise<void>;
157
157
  export declare function pushProjectMirrorHeads(input: {
158
158
  projectRoot: string;
159
159
  branchNames: readonly string[];
@@ -163,12 +163,12 @@ export declare function pushProjectMirrorHeads(input: {
163
163
  onlyBranches?: ReadonlySet<string>;
164
164
  /** Exact pre-projection commits to publish after the outer tree is reachable. */
165
165
  publicationHeads?: ReadonlyMap<string, string>;
166
- }): Array<{
166
+ }): Promise<Array<{
167
167
  branchName: string;
168
168
  head: string;
169
169
  pushed: boolean;
170
170
  reason?: string;
171
- }>;
171
+ }>>;
172
172
  export declare function assertProjectMirrorHeadsPushed(results: readonly {
173
173
  branchName: string;
174
174
  pushed: boolean;
@@ -198,7 +198,7 @@ export type ProjectMirrorHeadObservation = {
198
198
  */
199
199
  export declare function observeProjectMirrorHeads(input: Omit<ProjectMirrorHeadUpdateInput, "branchMutationAllowed"> & {
200
200
  allowNonFastForward: boolean;
201
- }): ProjectMirrorHeadObservation[];
201
+ }): Promise<ProjectMirrorHeadObservation[]>;
202
202
  /** Apply only previously observed object ids; this function never refetches. */
203
203
  export declare function applyObservedProjectMirrorHeads(input: {
204
204
  projectRoot: string;
@@ -206,24 +206,24 @@ export declare function applyObservedProjectMirrorHeads(input: {
206
206
  observations: readonly ProjectMirrorHeadObservation[];
207
207
  /** Rechecked immediately before refs or the index move. */
208
208
  branchMutationAllowed?: (branchName: string, checkoutPath: string) => boolean;
209
- }): Array<{
209
+ }): Promise<Array<{
210
210
  branchName: string;
211
211
  previousHead: string;
212
212
  mirrorHead: string | null;
213
213
  moved: boolean;
214
- }>;
215
- export declare function fastForwardProjectHeadsFromMirror(input: ProjectMirrorHeadUpdateInput): Array<{
214
+ }>>;
215
+ export declare function fastForwardProjectHeadsFromMirror(input: ProjectMirrorHeadUpdateInput): Promise<Array<{
216
216
  branchName: string;
217
217
  previousHead: string;
218
218
  mirrorHead: string | null;
219
219
  fastForwarded: boolean;
220
- }>;
221
- export declare function reseedProjectHeadsFromMirror(input: ProjectMirrorHeadUpdateInput): Array<{
220
+ }>>;
221
+ export declare function reseedProjectHeadsFromMirror(input: ProjectMirrorHeadUpdateInput): Promise<Array<{
222
222
  branchName: string;
223
223
  previousHead: string;
224
224
  mirrorHead: string | null;
225
225
  reseeded: boolean;
226
- }>;
226
+ }>>;
227
227
  export declare const projectWorktreesTestHarness: {
228
228
  commandArgs: typeof gitCommandArgs;
229
229
  configureRepository: typeof configureRepository;
@@ -39,10 +39,13 @@ export declare function projectBranchMountBusyDuringExclusiveSync(input: {
39
39
  /** Fence visible activity and any retained canonical descendant that outlived its command lease. */
40
40
  export declare function workspacePlansMountBusyDuringExclusiveSync(activeTargets: Iterable<ProjectTarget | WorkspaceTarget>, retainedCanonicalProcessGroup?: boolean): boolean;
41
41
  /**
42
- * A workspace sync is global and synchronous enough to monopolize the worker
43
- * event loop. Keep automatic intent pending while an agent process is active
44
- * on a creator-local branch, so that process can issue its next command. Its
45
- * terminal trigger (or a later periodic/connect cycle) publishes afterward.
42
+ * Keep automatic intent pending while an agent process is active on a
43
+ * creator-local branch: the branch's mount would be skipped as busy anyway,
44
+ * and the cycle's subprocess and disk work would only compete with that
45
+ * process's next command. Its terminal trigger (or a later periodic/connect
46
+ * cycle) publishes afterward. (The sync cycle itself now yields the event
47
+ * loop while it runs; this deferral is about not starting pointless work,
48
+ * not about loop starvation.)
46
49
  */
47
50
  export declare function shouldDeferAutomaticWorkspaceSyncForPendingBranch(pendingCreatedBranches: readonly PendingCreatedBranch[], activeTargets: Iterable<ProjectTarget | WorkspaceTarget>): boolean;
48
51
  /**
@@ -80,7 +80,7 @@ declare function configureWorkspaceRepository(input: {
80
80
  name: string;
81
81
  email: string;
82
82
  };
83
- }): void;
83
+ }): Promise<void>;
84
84
  /**
85
85
  * Rebind only the existing canonical checkout's local Git configuration while
86
86
  * an incident owns its HEAD. In particular, this deliberately does not fetch,
@@ -96,7 +96,7 @@ export declare function configureExistingWorkspaceGitForRemediation(input: {
96
96
  name: string;
97
97
  email: string;
98
98
  };
99
- }): void;
99
+ }): Promise<void>;
100
100
  export declare function ensureWorkspaceGitClone(input: {
101
101
  workspacePath: string;
102
102
  remoteUrl: string;
@@ -107,23 +107,23 @@ export declare function ensureWorkspaceGitClone(input: {
107
107
  email: string;
108
108
  };
109
109
  preserveResolutionInProgress?: boolean;
110
- }): {
110
+ }): Promise<{
111
111
  localHead: string | null;
112
112
  remoteHead: string | null;
113
- };
113
+ }>;
114
114
  declare function mirrorMountsToWorkspace(workspacePath: string, mounts: readonly WorkspaceGitMount[]): void;
115
115
  export declare function hydrateWorkspaceGitMounts(workspacePath: string, mounts: readonly WorkspaceGitMount[], options?: {
116
116
  ignoreBusy?: boolean;
117
- }): {
117
+ }): Promise<{
118
118
  hydratedMountIds: string[];
119
119
  skippedMountIds: string[];
120
- };
120
+ }>;
121
121
  export declare function recoverWorkspaceGitHydration(workspacePath: string, mounts: readonly WorkspaceGitMount[], options?: {
122
122
  ignoreBusy?: boolean;
123
123
  deferMountIds?: ReadonlySet<string>;
124
124
  preserveResolutionInProgress?: boolean;
125
125
  preserveStaleBases?: boolean;
126
- }): void;
126
+ }): Promise<void>;
127
127
  export declare function resetWorkspaceGit(input: {
128
128
  workspacePath: string;
129
129
  remoteUrl: string;
@@ -134,14 +134,14 @@ export declare function resetWorkspaceGit(input: {
134
134
  email: string;
135
135
  };
136
136
  mounts: readonly WorkspaceGitMount[];
137
- }): {
137
+ }): Promise<{
138
138
  startingHead: string | null;
139
139
  localHead: string | null;
140
140
  remoteHead: string | null;
141
141
  discardedPaths: string[];
142
142
  activeMountIds: string[];
143
143
  skippedMountIds: string[];
144
- };
144
+ }>;
145
145
  declare function diffSizeBytes(workspacePath: string, baseRevision: string | null, headRevision: string, limit: number): Promise<number>;
146
146
  export declare function synchronizeWorkspaceGit(input: {
147
147
  attemptId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-worker",
3
- "version": "0.0.86",
3
+ "version": "0.0.88",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/main.cjs",
6
6
  "module": "./dist/mjs/main.mjs",