@fungi.computer/oyster 0.22.0 → 0.24.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.
@@ -25,7 +25,9 @@ export function createMachineLink(state, options) {
25
25
  let host;
26
26
  let replayStore;
27
27
  const openReplayStore = () => {
28
- replayStore ??= import("@fungi.computer/computer").then(({ createLocalBackendReplayStore }) => createLocalBackendReplayStore(state.storage));
28
+ replayStore ??= import("@fungi.computer/computer").then(({ createLocalBackendReplayStore }) =>
29
+ // One device per machine-link Durable Object, so one backend share.
30
+ createLocalBackendReplayStore(state.storage, "machine-link"));
29
31
  return replayStore;
30
32
  };
31
33
  const match = (identity) => {
@@ -48,6 +48,7 @@ export declare class ComputerProcessesHandle extends RpcTarget implements Handle
48
48
  readonly exitCode: number | null;
49
49
  readonly sync: "unknown" | "pending" | "synced";
50
50
  readonly endedAt: number | null;
51
+ readonly endedReason: "idle-sleep" | null;
51
52
  }>;
52
53
  list(): Promise<{
53
54
  readonly processes: readonly {
@@ -60,6 +61,7 @@ export declare class ComputerProcessesHandle extends RpcTarget implements Handle
60
61
  readonly exitCode: number | null;
61
62
  readonly sync: "unknown" | "pending" | "synced";
62
63
  readonly endedAt: number | null;
64
+ readonly endedReason: "idle-sleep" | null;
63
65
  }[];
64
66
  }>;
65
67
  kill(id: string): Promise<{
@@ -73,6 +75,7 @@ export declare class ComputerProcessesHandle extends RpcTarget implements Handle
73
75
  readonly exitCode: number | null;
74
76
  readonly sync: "unknown" | "pending" | "synced";
75
77
  readonly endedAt: number | null;
78
+ readonly endedReason: "idle-sleep" | null;
76
79
  };
77
80
  readonly signalled: boolean;
78
81
  }>;
@@ -87,6 +90,7 @@ export declare class ComputerProcessesHandle extends RpcTarget implements Handle
87
90
  readonly exitCode: number | null;
88
91
  readonly sync: "unknown" | "pending" | "synced";
89
92
  readonly endedAt: number | null;
93
+ readonly endedReason: "idle-sleep" | null;
90
94
  };
91
95
  readonly lines: readonly string[];
92
96
  readonly truncated: boolean;