@h-rig/kernel-seed 0.0.6-alpha.157 → 0.0.6-alpha.158

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,39 @@
1
+ import type { CapabilityTag, KernelCapability } from "@rig/contracts";
2
+ import { type DefaultKernelOptions } from "./defaultKernel";
3
+ import type { BootResult, CapabilityProviderPlugin, ResolvedBootConfig } from "./pluginAbi";
4
+ export declare const RIG_KERNEL_BOOT_MARKER = "__RIG_DEFAULT_KERNEL_BOOT__";
5
+ export type DefaultKernelBootRecord = {
6
+ readonly providerId: string;
7
+ readonly entrypoint: string;
8
+ readonly bootedAt: string;
9
+ readonly pluginIds: readonly string[];
10
+ readonly capabilityProviderIds: Readonly<Record<CapabilityTag, string>>;
11
+ };
12
+ /**
13
+ * What the process holds after adoption: the observability record AND the live
14
+ * resolved kernel + plugin set (the control-transfer payload, not just a
15
+ * marker). `getProcessKernel()` returns the real KernelCapability so an
16
+ * entrypoint runs work *through* the resolved kernel rather than re-importing
17
+ * the runtime directly.
18
+ */
19
+ export type DefaultKernelBootState = {
20
+ readonly record: DefaultKernelBootRecord;
21
+ readonly kernel: KernelCapability;
22
+ readonly plugins: readonly CapabilityProviderPlugin[];
23
+ };
24
+ export type BootDefaultKernelInput = DefaultKernelOptions & {
25
+ readonly entrypoint?: string;
26
+ readonly config?: Omit<ResolvedBootConfig, "plugins" | "loadPlugins">;
27
+ readonly extraPlugins?: readonly CapabilityProviderPlugin[];
28
+ };
29
+ export declare function bootDefaultKernel(input?: BootDefaultKernelInput): Promise<BootResult>;
30
+ export declare function bootDefaultKernelIntoProcess(input?: BootDefaultKernelInput): Promise<DefaultKernelBootRecord>;
31
+ export declare function readDefaultKernelBootRecord(): DefaultKernelBootRecord | null;
32
+ /**
33
+ * The live resolved kernel for this process (the control-transfer payload), or
34
+ * null if no entrypoint has adopted the kernel yet. Lets an adopted entrypoint
35
+ * run work through the kernel's stage-runner/journal/transport rather than the
36
+ * runtime directly.
37
+ */
38
+ export declare function getProcessKernel(): KernelCapability | null;
39
+ export declare function readDefaultKernelBootState(): DefaultKernelBootState | null;