@rise-x/apps-sdk 0.16.1 → 0.16.4
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/README.md +9 -5
- package/build/connectors/agents.js +1 -18
- package/build/connectors/types.d.ts +1 -0
- package/build/ui/components/ai.d.ts +1 -1
- package/build/ui/demo.html +31 -20
- package/build/ui/standalone.js +2 -2
- package/build/ui/styles.css +1 -1
- package/package.json +1 -1
- package/template/README.md +3 -3
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -169,11 +169,11 @@ dark-mode switching included.
|
|
|
169
169
|
|
|
170
170
|
`src/lifecycle.ts` exports optional `onInstall`, `onUpdate`, `onUninstall` hooks. The shell loads this module via MF and invokes them:
|
|
171
171
|
|
|
172
|
-
- **`onInstall`** — first time
|
|
173
|
-
- **`onUpdate(ctx, { from, to })`** —
|
|
172
|
+
- **`onInstall`** — the first time the user opens the app on this device, before its first render.
|
|
173
|
+
- **`onUpdate(ctx, { from, to })`** — the first open after `manifest.version` changes, before the first render.
|
|
174
174
|
- **`onUninstall`** — eagerly when removed via the admin UI, or lazily when the reconciler detects the app is gone from the registry (e.g. removed on another device).
|
|
175
175
|
|
|
176
|
-
Each hook is best-effort — errors are logged, 10s timeout per invocation. Hooks you don't export are skipped silently.
|
|
176
|
+
An app the user never opens on a device gets neither `onInstall` nor `onUpdate` there. Each hook is best-effort — errors are logged, 10s timeout per invocation. If `onInstall` or `onUpdate` fails, the next open runs it again. Hooks you don't export are skipped silently.
|
|
177
177
|
|
|
178
178
|
## Storage
|
|
179
179
|
|