@h-rig/kernel-seed 0.0.6-alpha.157 → 0.0.6-alpha.159
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/src/bootDefault.d.ts +39 -0
- package/dist/src/bootDefault.js +851 -0
- package/dist/src/defaultKernel.d.ts +31 -0
- package/dist/src/defaultKernel.js +687 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.js +642 -0
- package/dist/src/loaderPolicy.d.ts +22 -0
- package/dist/src/loaderPolicy.js +147 -0
- package/dist/src/resolver.d.ts +9 -0
- package/dist/src/resolver.js +425 -0
- package/dist/src/stageResolve.d.ts +77 -0
- package/dist/src/stageResolve.js +361 -0
- package/package.json +18 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { JournalCapability, KernelCapability, StageContext, StageResult, TransportCapability } from "@rig/contracts";
|
|
2
|
+
import type { CapabilityProviderPlugin } from "./pluginAbi";
|
|
3
|
+
export declare const DEFAULT_KERNEL_PLUGIN_ID = "@rig/kernel-seed/default";
|
|
4
|
+
export type DefaultKernelOptions = {
|
|
5
|
+
readonly journal?: JournalCapability;
|
|
6
|
+
/** Transport capability — resolved from a plugin that `provides: "transport"`.
|
|
7
|
+
* The default distribution ships a placement-aware transport plugin; a
|
|
8
|
+
* deployment swaps it by providing another. */
|
|
9
|
+
readonly transport?: TransportCapability;
|
|
10
|
+
readonly stageExecutors?: Readonly<Record<string, (ctx: StageContext) => Promise<StageResult> | StageResult>>;
|
|
11
|
+
};
|
|
12
|
+
export type DefaultKernelProvider = KernelCapability & {
|
|
13
|
+
readonly id: typeof DEFAULT_KERNEL_PLUGIN_ID;
|
|
14
|
+
};
|
|
15
|
+
export declare function createDefaultKernel(options?: DefaultKernelOptions): DefaultKernelProvider;
|
|
16
|
+
export declare const LOCAL_TRANSPORT_PLUGIN_ID = "@rig/kernel-seed/local-transport";
|
|
17
|
+
export declare const PLACEMENT_TRANSPORT_PLUGIN_ID = "@rig/kernel-seed/placement-transport";
|
|
18
|
+
/**
|
|
19
|
+
* Build a local-only `transport` provider plugin. It explicitly replaces the
|
|
20
|
+
* default kernel transport so seed/provider resolution cannot leave both bound.
|
|
21
|
+
*/
|
|
22
|
+
export declare function createLocalTransportPlugin(transport: TransportCapability): CapabilityProviderPlugin;
|
|
23
|
+
/**
|
|
24
|
+
* Build the CLI/default placement-aware transport provider. Its dispatch method
|
|
25
|
+
* resolves local vs remote/fleet placement at dispatch time (after project root
|
|
26
|
+
* and env hydration), so command/capability code never branches on placement.
|
|
27
|
+
*/
|
|
28
|
+
export declare function createPlacementTransportPlugin(transport: TransportCapability, _options?: {
|
|
29
|
+
readonly placement?: unknown;
|
|
30
|
+
}): CapabilityProviderPlugin;
|
|
31
|
+
export declare function createDefaultKernelPlugin(options?: DefaultKernelOptions): CapabilityProviderPlugin;
|