@stacksjs/defaults 0.75.172 → 0.75.174
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.
|
@@ -463,6 +463,22 @@ for an app whose pages are not on the router.
|
|
|
463
463
|
Decide native-only chrome with `await whenNativeMobile()`, not
|
|
464
464
|
`isNativeMobile()` at setup: Craft installs its bridge after the page starts.
|
|
465
465
|
|
|
466
|
+
## Android native screens
|
|
467
|
+
|
|
468
|
+
`android.renderer: 'native'` with the iOS app's `nativeScreens`, `tabs` and
|
|
469
|
+
`nativeApp` draws the same `.stx` screens with Android views (Craft >= 0.0.169;
|
|
470
|
+
`CRAFT_ANDROID_FLOORS` in `actions/src/build/android-config.ts` refuses an older
|
|
471
|
+
Craft). The host is JavaScriptSandbox: it cannot answer synchronously, so Craft
|
|
472
|
+
starts each isolate with copies of storage, secure storage and snapshots and keeps
|
|
473
|
+
them current; timers and frames are the host's. `android.healthConnect: { read,
|
|
474
|
+
write, background, history }` declares only the listed Health Connect types,
|
|
475
|
+
`backgroundRefresh` runs the app script from WorkManager, and
|
|
476
|
+
`buddy build:android --bundle` writes a signed AAB (`CRAFT_ANDROID_KEYSTORE`,
|
|
477
|
+
`CRAFT_ANDROID_KEYSTORE_PASSWORD`, `CRAFT_ANDROID_KEY_ALIAS`,
|
|
478
|
+
`CRAFT_ANDROID_KEY_PASSWORD`). On Android, `craft.health.availability()`,
|
|
479
|
+
`grantedTypes()` and `openSettings()` (stx >= 0.2.514) handle Health Connect
|
|
480
|
+
needing an install or update and its own permission screen.
|
|
481
|
+
|
|
466
482
|
## Health and watch surfaces
|
|
467
483
|
|
|
468
484
|
Enable `healthKit` on iOS or `healthConnect` on Android, then use the shared
|
|
@@ -476,7 +492,13 @@ in-bed, awake and asleep stages; check `health.supports(method)` first, since an
|
|
|
476
492
|
app build that predates a read resolves `[]` for it. Mindful minutes go through
|
|
477
493
|
`health.saveMindfulSession({ id, startDate, endDate })` (the `mindful` grant;
|
|
478
494
|
the id is the sample's external UUID, so a repeat save keeps the first) and come
|
|
479
|
-
back from `health.getMindfulSessions(range)` with `ownApp` on this app's own.
|
|
495
|
+
back from `health.getMindfulSessions(range)` with `ownApp` on this app's own.
|
|
496
|
+
`health.startHeartRateUpdates({ since })` streams Apple Health's heart rate as
|
|
497
|
+
the watch syncs it (Craft 0.0.166, HKAnchoredObjectQuery) to
|
|
498
|
+
`health.onHeartRate(samples => …)`; it resolves `false` on an older build, so
|
|
499
|
+
fall back to polling `getData('heartRate')`, and `stopHeartRateUpdates()` ends
|
|
500
|
+
it. Readings come every few seconds only while the watch runs a workout or a
|
|
501
|
+
Mindfulness session. Completed
|
|
480
502
|
recordings can be written back with `health.saveWorkout(...)`; treat permission
|
|
481
503
|
revocation as a normal runtime state and never block saving the application's
|
|
482
504
|
own activity when a health write fails.
|
|
@@ -11,7 +11,7 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
11
11
|
| Package | Task guidance | Source entry | Retained tests |
|
|
12
12
|
|---|---|---|---|
|
|
13
13
|
| `@stacksjs/action-runner` | [`stacks-actions`](../stacks-actions/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/action-runner/src/index.ts) | 1 |
|
|
14
|
-
| `@stacksjs/actions` | [`stacks-actions`](../stacks-actions/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/index.ts) |
|
|
14
|
+
| `@stacksjs/actions` | [`stacks-actions`](../stacks-actions/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/index.ts) | 67 |
|
|
15
15
|
| `@stacksjs/ai` | [`stacks-ai`](../stacks-ai/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/ai/src/index.ts) | 15 |
|
|
16
16
|
| `@stacksjs/alias` | [`stacks-alias`](../stacks-alias/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/alias/src/index.ts) | 1 |
|
|
17
17
|
| `@stacksjs/analytics` | [`stacks-analytics`](../stacks-analytics/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/analytics/src/index.ts) | 6 |
|
|
@@ -119,7 +119,7 @@ Declared runtime exports: `BlogAdminError`, `DEFAULT_STX_LINT_CONFIG`, `blogSlug
|
|
|
119
119
|
|
|
120
120
|
Local source modules: [src/action.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/action.ts), [src/add.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/add.ts), [src/blog-admin.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/blog-admin.ts), [src/commit.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/commit.ts), [src/dev/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/dev/index.ts), [src/discover-packages.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/discover-packages.ts), [src/generate/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/generate/index.ts), [src/helpers/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/helpers/index.ts), [src/library/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/library/index.ts), [src/lint/lint.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/lint/lint.ts), [src/lint/stx-gate.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/lint/stx-gate.ts), [src/make-command.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-command.ts), [src/make-job.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-job.ts), [src/make-policy.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-policy.ts), [src/make-resource.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-resource.ts), [src/make.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make.ts), [src/scaffold-crud.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/scaffold-crud.ts), [src/setup/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/setup/index.ts), [src/stacks.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/stacks.ts), [src/upgrade/package-project.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/upgrade/package-project.ts), [src/upgrade/route-actions.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/upgrade/route-actions.ts).
|
|
121
121
|
|
|
122
|
-
Evidence directory: [
|
|
122
|
+
Evidence directory: [67 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
123
123
|
|
|
124
124
|
### @stacksjs/ai
|
|
125
125
|
|
package/ide/vscode/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"publisher": "Stacks",
|
|
3
3
|
"name": "vscode-stacks",
|
|
4
4
|
"displayName": "Stacks",
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.174",
|
|
6
6
|
"description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.174",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@iconify-json/f7": "^1.2.2",
|
|
57
57
|
"@iconify-json/hugeicons": "^1.2.35",
|
|
58
|
-
"@stacksjs/mobile": "0.75.
|
|
58
|
+
"@stacksjs/mobile": "0.75.174",
|
|
59
59
|
"@stacksjs/sanitizer": "^0.2.483",
|
|
60
60
|
"@xterm/addon-fit": "^0.11.0",
|
|
61
61
|
"@xterm/xterm": "^6.0.0",
|