@bakers-build/core 0.20.0 → 0.21.1-next.1
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.
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A dispatch failure that cannot heal by itself: the conductor holds the
|
|
3
|
+
* ticket and claims it again only once `recheck` reports it healed.
|
|
4
|
+
*/
|
|
5
|
+
export declare class DispatchBlocked extends Error {
|
|
6
|
+
/** True once the cause is gone. */
|
|
7
|
+
readonly recheck: () => boolean | Promise<boolean>;
|
|
8
|
+
constructor(message: string,
|
|
9
|
+
/** True once the cause is gone. */
|
|
10
|
+
recheck: () => boolean | Promise<boolean>);
|
|
11
|
+
}
|
|
12
|
+
/** Duck-typed, so it holds across copies of this package. */
|
|
13
|
+
export declare const isDispatchBlocked: (err: unknown) => err is DispatchBlocked;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A dispatch failure that cannot heal by itself: the conductor holds the
|
|
3
|
+
* ticket and claims it again only once `recheck` reports it healed.
|
|
4
|
+
*/
|
|
5
|
+
export class DispatchBlocked extends Error {
|
|
6
|
+
recheck;
|
|
7
|
+
constructor(message,
|
|
8
|
+
/** True once the cause is gone. */
|
|
9
|
+
recheck) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.recheck = recheck;
|
|
12
|
+
this.name = 'DispatchBlocked';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
/** Duck-typed, so it holds across copies of this package. */
|
|
16
|
+
export const isDispatchBlocked = (err) => err instanceof Error &&
|
|
17
|
+
err.name === 'DispatchBlocked' &&
|
|
18
|
+
typeof err.recheck === 'function';
|
package/dist/src/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export { BB_PACKAGE, checkForUpdate, declineUpdate, defaultUpdateCachePath, fetc
|
|
|
18
18
|
export { discoverBbWorkspaces, loadReadyBbConnection, resolveWorkspaceSelector, type WorkspaceChoice, type WorkspaceRecoveryOptions, workspaceSearchCommand, } from './cli/workspace-recovery.js';
|
|
19
19
|
export type { ConnectionConfig, MachineConfig, ProjectConfig, } from './config-types.generated.js';
|
|
20
20
|
export { configHomeOf, defaultRootGitExec, deriveCheckoutRoot, type RootGitExec, stopMarkerOf, } from './core/checkout-root.js';
|
|
21
|
+
export { DispatchBlocked, isDispatchBlocked, } from './core/dispatch-blocked.js';
|
|
21
22
|
export { CommandRunner, ExecError, exec, setDefaultCommandRunner, } from './core/exec.js';
|
|
22
23
|
export { type GitSandboxPaths, gitSandboxPaths, withoutGitDirs, } from './core/git-sandbox.js';
|
|
23
24
|
export { hostCommandEntry, unprotectedEntryPoints, } from './core/host-commands.js';
|
package/dist/src/index.js
CHANGED
|
@@ -19,6 +19,7 @@ export { resolveModuleEslintStyle } from './cli/resolve-module.js';
|
|
|
19
19
|
export { BB_PACKAGE, checkForUpdate, declineUpdate, defaultUpdateCachePath, fetchLatestVersion, fetchUpdateNotice, printVersionLine, REGISTRY_LATEST_URL, readCliVersion, resolveCliVersion, UNKNOWN_VERSION, UPDATE_CHECK_TTL_MS, updateNotice, } from './cli/version-check.js';
|
|
20
20
|
export { discoverBbWorkspaces, loadReadyBbConnection, resolveWorkspaceSelector, workspaceSearchCommand, } from './cli/workspace-recovery.js';
|
|
21
21
|
export { configHomeOf, defaultRootGitExec, deriveCheckoutRoot, stopMarkerOf, } from './core/checkout-root.js';
|
|
22
|
+
export { DispatchBlocked, isDispatchBlocked, } from './core/dispatch-blocked.js';
|
|
22
23
|
export { CommandRunner, ExecError, exec, setDefaultCommandRunner, } from './core/exec.js';
|
|
23
24
|
export { gitSandboxPaths, withoutGitDirs, } from './core/git-sandbox.js';
|
|
24
25
|
export { hostCommandEntry, unprotectedEntryPoints, } from './core/host-commands.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1-next.1",
|
|
4
4
|
"description": "bakers.build surface-agnostic kernel: host contract, split-config helpers, addon preset/discovery machinery, shared primitives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"yaml": "^2.7.0"
|
|
42
42
|
},
|
|
43
43
|
"bakersBuild": {
|
|
44
|
-
"commit": "
|
|
45
|
-
"channel": "
|
|
44
|
+
"commit": "e68e166d4a443132ec8797eaa946a77e0943cfe6",
|
|
45
|
+
"channel": "next"
|
|
46
46
|
}
|
|
47
47
|
}
|