@acryldev/blends-frame 0.2.1 → 0.2.3

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,33 @@
1
+ /**
2
+ * The page recovers by itself from one known failure: while the app's rows reload after an agent's edit, DSH's slot assembly can render a scope
3
+ * before its adapter is back (`SlotAssemblyError: scope '...' rendered without an installed adapter`, seen on Windows) and React unmounts the whole
4
+ * page, leaving it blank although the host and the edit are fine. A reload brings it back with the edit; this does that reload, at most once in
5
+ * RELOAD_GAP_MS, and only for that error.
6
+ */
7
+ export declare const RELOAD_GAP_MS = 15000;
8
+ /** Whether an error is the known one a reload cures. */
9
+ export declare function isRecoverable(error: unknown): boolean;
10
+ export interface RecoverWindow {
11
+ addEventListener(type: 'error' | 'unhandledrejection', listener: (event: {
12
+ error?: unknown;
13
+ reason?: unknown;
14
+ message?: string;
15
+ }) => void): void;
16
+ removeEventListener(type: 'error' | 'unhandledrejection', listener: (event: {
17
+ error?: unknown;
18
+ reason?: unknown;
19
+ message?: string;
20
+ }) => void): void;
21
+ readonly sessionStorage: Pick<Storage, 'getItem' | 'setItem'>;
22
+ readonly location: {
23
+ reload(): void;
24
+ };
25
+ }
26
+ /** Install the recovery; returns its disposer. */
27
+ export declare function installRecovery(target: RecoverWindow, now?: () => number): () => void;
28
+ /**
29
+ * Install the recovery once for the page, never removed. Not owned by the plugin's lifecycle on purpose: the race that blanks the page is DSH
30
+ * replacing the slots service, which unloads the frame's client plugin (it injects `slots`), and an effect-owned listener was gone at exactly the
31
+ * moment the error fired (seen on Windows with 0.2.2). A second call (the plugin applied again) finds the first listener and adds nothing.
32
+ */
33
+ export declare function installRecoveryOnce(target: RecoverWindow, now?: () => number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acryldev/blends-frame",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "ACRYL Blends frame: the workbench around an app being built - a top bar, the branches and versions on the left, the app alone in the centre, and the agents on the right - as one Cordis plugin with a Host and a client half",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -52,12 +52,12 @@
52
52
  "node": "^22.19.0 || >=24.0.0"
53
53
  },
54
54
  "dependencies": {
55
- "@acryldev/app-shell": "0.2.0",
55
+ "@acryldev/app-shell": "0.2.1",
56
56
  "@acryldev/blends-core": "^0.6.0",
57
57
  "@acryldev/loopback-http": "0.2.0",
58
58
  "@acryldev/plugin-hub-core": "^0.2.2",
59
59
  "@acryldev/versions": "0.2.0",
60
- "@acryldev/workspace": "0.2.0",
60
+ "@acryldev/workspace": "0.2.1",
61
61
  "yaml": "2.9.0"
62
62
  },
63
63
  "peerDependencies": {
@@ -70,7 +70,7 @@
70
70
  "react-dom": "18.3.1"
71
71
  },
72
72
  "devDependencies": {
73
- "@acryldev/blends": "1.7.3",
73
+ "@acryldev/blends": "1.7.4",
74
74
  "@acryldev/ui": "0.4.0",
75
75
  "@deepseek-ai/cordis": "4.0.4",
76
76
  "@deepseek-ai/cordis-plugin-loader": "1.0.5",