@stacksjs/defaults 0.75.597 → 0.75.599
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/ai/skills/stacks-desktop/SKILL.md +98 -2
- package/ai/skills/stacks-native/CATALOG.md +10 -10
- package/ai/skills/stacks-ts-css/SKILL.md +7 -0
- package/app/Actions/Desktop/UpdateArtifactAction.ts +2 -2
- package/app/Actions/Desktop/UpdateFeedAction.ts +8 -4
- package/bootstrap.ts +5 -5
- package/ide/vscode/package.json +1 -1
- package/package.json +5 -5
- package/routes/desktop-updates.ts +6 -5
|
@@ -12,6 +12,7 @@ allowed-tools: Read Edit Write Bash Grep Glob
|
|
|
12
12
|
- Core package: `storage/framework/core/desktop/src/`
|
|
13
13
|
- Web view apps: `webview-agent.ts`, `webview-launcher.ts`, `webview-app.ts`; updates: `updater.ts`, `update-signing.ts`, `update-feed.ts`, `update-install.ts`
|
|
14
14
|
- Build and release actions: `storage/framework/core/actions/src/build/desktop-webview.ts`, `desktop-release.ts`
|
|
15
|
+
- Native macOS apps: `macos-app.ts`, `macos-bundle.ts`, `macos-release.ts`; actions `build/desktop-macos.ts`, `build/dmg-macos.ts`, `build/desktop-release-macos.ts` (publishing shared with web view apps in `build/desktop-release-shared.ts`)
|
|
15
16
|
- Update feed: `storage/framework/defaults/app/Actions/Desktop/UpdateFeedAction.ts`, `defaults/routes/desktop-updates.ts`
|
|
16
17
|
- Source: `storage/framework/core/desktop/src/index.ts`
|
|
17
18
|
- System tray views: `storage/framework/defaults/views/system-tray/`
|
|
@@ -287,7 +288,8 @@ export default {
|
|
|
287
288
|
```
|
|
288
289
|
|
|
289
290
|
- `buddy build:desktop` compiles the screens (`compileNativeBundle`), builds Craft's AppKit host
|
|
290
|
-
(`craft-native/macos`, cached per Craft revision), lays out `<App>.app` and signs it
|
|
291
|
+
(`craft-native/macos`, cached per Craft revision), lays out `<App>.app` and signs it with an Apple Development
|
|
292
|
+
identity when the Mac has one, else ad hoc. `buddy dev:desktop`
|
|
291
293
|
does the same and opens it. Output: `storage/framework/desktop/macos/`.
|
|
292
294
|
- The toolchain is not the app's business: Craft resolves the pinned Zig through Pantry and fetches and builds the pinned
|
|
293
295
|
zig-js into `~/.cache/craft/toolchain` (`CRAFT_TOOLCHAIN_DIR` moves it, `CRAFT_ZIG` overrides the compiler).
|
|
@@ -351,6 +353,100 @@ export default {
|
|
|
351
353
|
- `webkit` needs a craft-native whose `buildMacOSNative` takes `webkit`; the build checks Craft's source and fails by
|
|
352
354
|
name rather than building a host with blank web views. `dockMenu` reaches the host through `craft-app.json`.
|
|
353
355
|
|
|
356
|
+
### Updates and direct distribution (`macos.updates`)
|
|
357
|
+
|
|
358
|
+
The copy people download from you, not from the Mac App Store, updates itself. The config is the web view app's
|
|
359
|
+
`updates` shape (`DesktopUpdatesConfig`; `WebviewUpdatesConfig` is the same type), under `macos`:
|
|
360
|
+
|
|
361
|
+
```ts
|
|
362
|
+
macos: {
|
|
363
|
+
// ...
|
|
364
|
+
updates: {
|
|
365
|
+
feedUrl: 'https://example.com/api/updates', // the app asks <feedUrl>/darwin/<arch>
|
|
366
|
+
publicKeys: { main: 'ed25519-public:...' }, // buddy desktop:update:keypair
|
|
367
|
+
// channel: 'stable', checkEveryHours: 24, disk, prefix: 'desktop-updates', artifactBaseUrl
|
|
368
|
+
},
|
|
369
|
+
}
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
A `macos` app is built for one of three distributions (`MacosDistribution`):
|
|
373
|
+
|
|
374
|
+
| | `development` | `developer-id` | `app-store` |
|
|
375
|
+
|---|---|---|---|
|
|
376
|
+
| Built by | `build:desktop`, `dev:desktop` | `release:desktop`, `build:dmg` with an identity | `desktop:apple:package` / `publish` |
|
|
377
|
+
| Signed with | Apple Development, else ad hoc | Developer ID Application (required), hardened runtime, timestamp | Mac App Distribution + profile |
|
|
378
|
+
| Sandbox | Off (`DESKTOP_SANDBOX=1` turns it on) | Always off | On |
|
|
379
|
+
| Store entitlements (app id, team, Keychain group) | No | No | Yes |
|
|
380
|
+
| `updates` in `craft-app.json`, updater in the host | Yes | Yes | Never |
|
|
381
|
+
|
|
382
|
+
- **A Developer ID build is never sandboxed**, whatever `macos.sandbox` says: an app that updates itself replaces its
|
|
383
|
+
own bundle, which the App Sandbox forbids. Its sign-in lives in the login Keychain, as a development build's does.
|
|
384
|
+
- **A Store build never carries the updater.** `renderHostConfig(config, 'app-store')` writes no `updates`, and the
|
|
385
|
+
host is compiled without it. The Store replaces its own apps; one that downloads and installs code is rejected.
|
|
386
|
+
- `craft-app.json` gets `updates: { feedUrl, publicKeys, channel, checkEveryHours }`, the channel and interval written
|
|
387
|
+
out in full. `disk`, `prefix` and `artifactBaseUrl` are the releaser's and stay out of the app.
|
|
388
|
+
- The host's updater is a Craft compile option: the build passes `updater: true` to `buildMacOSNative` (Craft's
|
|
389
|
+
`CRAFT_UPDATER` flag, as `webkit: true` is its `CRAFT_WEBKIT`) and caches that host under its own key. A Craft
|
|
390
|
+
without the option fails a Developer ID build by name, and a development build warns and goes on without it.
|
|
391
|
+
- Screens drive it through `craft.updater` (`status`, `check`, `install`, `relaunch`, `onChange`); in a Store build
|
|
392
|
+
every call answers `state: 'unavailable'`. An ad hoc signed development build refuses to swap itself.
|
|
393
|
+
- Validation (`validateMacosDesktop`): an https feed (loopback http while rehearsing), at least one key, every key a
|
|
394
|
+
readable `ed25519-public:` key, and `macos.version` as `major.minor.patch`, because an update is offered by
|
|
395
|
+
comparing versions.
|
|
396
|
+
|
|
397
|
+
```bash
|
|
398
|
+
buddy desktop:update:keypair # public half -> macos.updates.publicKeys; private half -> DESKTOP_UPDATE_PRIVATE_KEY
|
|
399
|
+
buddy release:desktop --identity "Developer ID Application: Example (ABCDE12345)" --notary-profile example
|
|
400
|
+
buddy release:desktop --api-key-id ABC123DEFG --api-issuer-id <uuid> --api-key-path ./AuthKey_ABC123DEFG.p8
|
|
401
|
+
buddy release:desktop --dry-run # no notarization, no upload; the signed manifest is written locally
|
|
402
|
+
buddy release:desktop --skip-build # release the Developer ID app an earlier run built
|
|
403
|
+
buddy release:desktop --package-only # the signed app and DMG for Pantry; nothing notarized or published
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
`release:desktop` for a `macos` app builds the Developer ID app, then (`build/desktop-release-macos.ts`) checks the
|
|
407
|
+
build is that one, at the config's version, from a clean checkout of HEAD, that `DESKTOP_UPDATE_PRIVATE_KEY` is a key
|
|
408
|
+
the app trusts, and that the feed does not already serve this version or a newer one. Only then is the `.app`
|
|
409
|
+
notarized and stapled, zipped with `ditto` (what an installed app updates from, so the ticket travels inside it),
|
|
410
|
+
imaged into a signed, notarized DMG, and published with a signed manifest and `release.json`: the web view layout
|
|
411
|
+
exactly (`<prefix>/<channel>/darwin-<arch>/latest.json`, artifacts under `<version>/` as `<App>-<version>-<arch>.zip`
|
|
412
|
+
and `.dmg`), so the same feed route, artifact route and download page serve it. `<arch>` is this Mac's (`arm64`,
|
|
413
|
+
`x64`); there is no universal build.
|
|
414
|
+
|
|
415
|
+
- **The identity** is `--identity` / `DESKTOP_SIGNING_IDENTITY`, else `APPLE_SIGNING_IDENTITY`, else the Developer ID
|
|
416
|
+
Application certificate in the keychain. An ad hoc signature is refused, except in `--dry-run` on a Mac without the
|
|
417
|
+
certificate, which says so.
|
|
418
|
+
- **Notarizing** uses `--notary-profile` / `DESKTOP_NOTARY_PROFILE`, or an App Store Connect API key:
|
|
419
|
+
`APP_STORE_CONNECT_API_KEY_ID`, `APP_STORE_CONNECT_API_ISSUER_ID`, and `APP_STORE_CONNECT_API_KEY_PATH` or the PEM
|
|
420
|
+
in `APP_STORE_CONNECT_API_KEY` (flags `--api-key-id`, `--api-issuer-id`, `--api-key-path`). A `macos` release uses
|
|
421
|
+
the key whenever no profile is given; a web view release needs `--notarize` (or `DESKTOP_NOTARIZE=1`) to ask for it.
|
|
422
|
+
- The feed routes mount when `macos.updates` is set, and the default actions read it.
|
|
423
|
+
- **Both `webview` and `macos` declared:** `release:desktop` releases the web view app, and `--native` the AppKit one,
|
|
424
|
+
as `build:desktop` and `dev:desktop` choose. The framework feed serves `webview.updates`. Both apps store a Mac
|
|
425
|
+
release under `<prefix>/<channel>/darwin-<arch>/`, so a release refuses two `updates` on the same disk and prefix:
|
|
426
|
+
give `macos.updates` its own `prefix` and `feedUrl`, and answer that path from an action of your own with
|
|
427
|
+
`answerUpdateFeed({ app: 'macos', ... })` and `answerUpdateArtifact({ app: 'macos', ... })`.
|
|
428
|
+
|
|
429
|
+
**Pantry.** `--package-only` is the build step of Pantry's native app pipeline (`ts-pantry/native`
|
|
430
|
+
`prepareNativeRelease`): it builds the Developer ID app and a signed DMG and writes `.pantry/native/artifact.json`
|
|
431
|
+
(the DMG as `path`, the `.app` as `appPath`, the executable name, bundle id, version, build number), then stops.
|
|
432
|
+
Pantry notarizes, staples and assesses them itself and publishes the app to its registry.
|
|
433
|
+
|
|
434
|
+
```json
|
|
435
|
+
{
|
|
436
|
+
"native": {
|
|
437
|
+
"build": ["./buddy", "release:desktop", "--package-only"],
|
|
438
|
+
"macos": { "notarize": true },
|
|
439
|
+
"registry": { "domain": "github.com/your-org/your-app" }
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
Pantry signs with `APPLE_SIGNING_IDENTITY` (or imports `APPLE_APPLICATION_CERTIFICATE`), which the build reads. It
|
|
445
|
+
releases the version in `package.json`, so `--package-only` refuses a `macos.version` that differs. A project whose
|
|
446
|
+
`pantry.json` has `native` also gets the record after a full `release:desktop`. After Pantry has stapled the app,
|
|
447
|
+
`buddy release:desktop --skip-build` publishes the same bundle to the update feed without sending it to Apple again.
|
|
448
|
+
An agent app answers `<App> --version` with its host's version and exits, which is Pantry's launch check.
|
|
449
|
+
|
|
354
450
|
## Web view apps on a local agent (`desktop.webview`)
|
|
355
451
|
|
|
356
452
|
The cross-platform desktop mode: the app's executable is a compiled Bun agent on 127.0.0.1, and its window is a
|
|
@@ -593,7 +689,7 @@ buddy new <name> --desktop # a Stacks app that is also a native Mac app, API
|
|
|
593
689
|
buddy dev:desktop # run the desktop app: webview, else macos, else the dev server window
|
|
594
690
|
buddy build:desktop # build it; --target and --package for a webview app, --native for macos
|
|
595
691
|
buddy desktop:update:keypair # the Ed25519 keypair that signs update manifests
|
|
596
|
-
buddy release:desktop # sign, notarize, and publish a webview app with signed update manifests
|
|
692
|
+
buddy release:desktop # sign, notarize, and publish a webview or macos app with signed update manifests
|
|
597
693
|
buddy desktop:apple:init # generate the reusable GitHub Actions caller
|
|
598
694
|
buddy desktop:apple:doctor # validate Apple tooling, identities, profile, and API key
|
|
599
695
|
buddy desktop:apple:package # build, sandbox, sign, and create a Store .pkg
|
|
@@ -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) | 122 |
|
|
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) | 24 |
|
|
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) | 3 |
|
|
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) | 7 |
|
|
@@ -21,7 +21,7 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
21
21
|
| `@stacksjs/auth` | [`stacks-auth`](../stacks-auth/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/auth/src/index.ts) | 136 |
|
|
22
22
|
| `@stacksjs/browser` | [`stacks-browser`](../stacks-browser/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/browser/src/index.ts) | 10 |
|
|
23
23
|
| `@stacksjs/browser-extension` | [`stacks-browser-extension`](../stacks-browser-extension/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/browser-extension/src/index.ts) | 9 |
|
|
24
|
-
| `@stacksjs/buddy` | [`stacks-buddy`](../stacks-buddy/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/buddy/src/index.ts) |
|
|
24
|
+
| `@stacksjs/buddy` | [`stacks-buddy`](../stacks-buddy/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/buddy/src/index.ts) | 202 |
|
|
25
25
|
| `@stacksjs/build` | [`stacks-build`](../stacks-build/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/build/src/index.ts) | 7 |
|
|
26
26
|
| `@stacksjs/cache` | [`stacks-cache`](../stacks-cache/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/cache/src/index.ts) | 24 |
|
|
27
27
|
| `@stacksjs/calendar-api` | [`stacks-calendar`](../stacks-calendar/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/calendar-api/src/index.ts) | 5 |
|
|
@@ -39,13 +39,13 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
39
39
|
| `@stacksjs/datetime` | [`stacks-datetime`](../stacks-datetime/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/datetime/src/index.ts) | 22 |
|
|
40
40
|
| `@stacksjs/defaults` | [`stacks-build`](../stacks-build/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/defaults/package.json) | 3 |
|
|
41
41
|
| `@stacksjs/deploy` | [`stacks-deploy`](../stacks-deploy/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/deploy/package.json) | 1 |
|
|
42
|
-
| `@stacksjs/desktop-build` | [`stacks-desktop`](../stacks-desktop/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/index.ts) |
|
|
42
|
+
| `@stacksjs/desktop-build` | [`stacks-desktop`](../stacks-desktop/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/index.ts) | 23 |
|
|
43
43
|
| `@stacksjs/development` | [`stacks-development`](../stacks-development/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/development/package.json) | 1 |
|
|
44
44
|
| `@stacksjs/dns` | [`stacks-dns`](../stacks-dns/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/dns/src/index.ts) | 4 |
|
|
45
45
|
| `@stacksjs/docs` | [`stacks-docs`](../stacks-docs/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/docs/src/index.ts) | 5 |
|
|
46
46
|
| `@stacksjs/email` | [`stacks-email`](../stacks-email/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/email/src/index.ts) | 24 |
|
|
47
47
|
| `@stacksjs/enums` | [`stacks-enums`](../stacks-enums/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/enums/src/index.ts) | 3 |
|
|
48
|
-
| `@stacksjs/env` | [`stacks-env`](../stacks-env/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/index.ts) |
|
|
48
|
+
| `@stacksjs/env` | [`stacks-env`](../stacks-env/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/index.ts) | 32 |
|
|
49
49
|
| `@stacksjs/error-handling` | [`stacks-error-handling`](../stacks-error-handling/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/error-handling/src/index.ts) | 10 |
|
|
50
50
|
| `@stacksjs/events` | [`stacks-events`](../stacks-events/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/events/src/index.ts) | 13 |
|
|
51
51
|
| `@stacksjs/faker` | [`stacks-faker`](../stacks-faker/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/faker/src/index.ts) | 1 |
|
|
@@ -118,11 +118,11 @@ Evidence directory: [1 retained tests](https://github.com/stacksjs/stacks/blob/m
|
|
|
118
118
|
|
|
119
119
|
Guidance: [`stacks-actions`](../stacks-actions/SKILL.md). Source: [storage/framework/core/actions/src/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/index.ts).
|
|
120
120
|
|
|
121
|
-
Declared runtime exports: `BlogAdminError`, `DEFAULT_IOS_DEPENDENCIES`, `DEFAULT_STX_LINT_CONFIG`, `IosToolchainError`, `PUBLICATION_CHECK_SCRIPT`, `XCODE_NOTE`, `assertPublicationAllowed`, `blogSlugify`, `craftSupportsWebkit`, `createComponent`, `createDatabase`, `createFactory`, `createFunction`, `createLanguage`, `createMail`, `createMiddleware`, `createMigration`, `createModel`, `createNotification`, `createPage`, `deleteBlogPost`, `describeDanglingRouteActions`, `describeGitHubRelease`, `discoverPackages`, `ensureDiscoveredPackages`, `evaluateReviewOsEvidence`, `findDanglingRouteActions`, `formatProject`, `getBlogPost`, `inspectReviewOsEvidence`, `installStack`, `isDryRunActive`, `lintFix`, `lintProject`, `listBlogPosts`, `listStacks`, `loadIosDependencies`, `loadStxLintConfig`, `macosAgentActionFiles`, `macosAgentDevFiles`, `macosAgentDevManifest`, `macosAgentEntry`, `macosAgentRouteFiles`, `makeAction`, `makeCertificate`, `makeCommand`, `makeComponent`, `makeDatabase`, `makeFunction`, `makeJob`, `makeLanguage`, `makeMail`, `makeNotification`, `makePage`, `makePolicy`, `makeQueueTable`, `makeResource`, `makeStack`, `measureDefaultsDrift`, `pantryExecutable`, `pantryInstallArgs`, `parseFields`, `parseGitHubRemote`, `prepareMacosAgent`, `prepareMacosNative`, `publicationChannels`, `publishGitHubRelease`, `resolveStxSource`, `resolveXcodegen`, `runAdd`, `runCommit`, `runMake`, `runStxLint`, `saveBlogPost`, `scaffoldCrud`, `setDryRun`, `summarizeStructureChanges`, `uninstallStack`, `validateReleaseEvidencePlan`, `verifyReleaseEvidence`, `xcodeDeveloperDir`.
|
|
121
|
+
Declared runtime exports: `BlogAdminError`, `DEFAULT_IOS_DEPENDENCIES`, `DEFAULT_STX_LINT_CONFIG`, `IosToolchainError`, `PUBLICATION_CHECK_SCRIPT`, `XCODE_NOTE`, `assertPublicationAllowed`, `blogSlugify`, `craftSupportsUpdater`, `craftSupportsWebkit`, `createComponent`, `createDatabase`, `createFactory`, `createFunction`, `createLanguage`, `createMail`, `createMiddleware`, `createMigration`, `createModel`, `createNotification`, `createPage`, `deleteBlogPost`, `describeDanglingRouteActions`, `describeGitHubRelease`, `discoverPackages`, `ensureDiscoveredPackages`, `evaluateReviewOsEvidence`, `findDanglingRouteActions`, `formatProject`, `getBlogPost`, `inspectReviewOsEvidence`, `installStack`, `isDryRunActive`, `lintFix`, `lintProject`, `listBlogPosts`, `listStacks`, `loadIosDependencies`, `loadStxLintConfig`, `macosAgentActionFiles`, `macosAgentDevFiles`, `macosAgentDevManifest`, `macosAgentEntry`, `macosAgentRouteFiles`, `makeAction`, `makeCertificate`, `makeCommand`, `makeComponent`, `makeDatabase`, `makeFunction`, `makeJob`, `makeLanguage`, `makeMail`, `makeNotification`, `makePage`, `makePolicy`, `makeQueueTable`, `makeResource`, `makeStack`, `measureDefaultsDrift`, `pantryExecutable`, `pantryInstallArgs`, `parseFields`, `parseGitHubRemote`, `prepareMacosAgent`, `prepareMacosNative`, `publicationChannels`, `publishGitHubRelease`, `resolveStxSource`, `resolveXcodegen`, `runAdd`, `runCommit`, `runMake`, `runStxLint`, `saveBlogPost`, `scaffoldCrud`, `setDryRun`, `summarizeStructureChanges`, `uninstallStack`, `validateReleaseEvidencePlan`, `verifyReleaseEvidence`, `xcodeDeveloperDir`.
|
|
122
122
|
|
|
123
123
|
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/build/ios-toolchain.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/build/ios-toolchain.ts), [src/build/macos-native.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/build/macos-native.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/github-release.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/github-release.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/publication-preflight.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/publication-preflight.ts), [src/release-evidence.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/release-evidence.ts), [src/reviewos-evidence.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/reviewos-evidence.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/stx-source.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/stx-source.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).
|
|
124
124
|
|
|
125
|
-
Evidence directory: [
|
|
125
|
+
Evidence directory: [122 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.
|
|
126
126
|
|
|
127
127
|
### @stacksjs/ai
|
|
128
128
|
|
|
@@ -222,7 +222,7 @@ Read the entrypoint and package export map for re-exported or type-only surfaces
|
|
|
222
222
|
|
|
223
223
|
Local source modules: [src/commands/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/buddy/src/commands/index.ts).
|
|
224
224
|
|
|
225
|
-
Evidence directory: [
|
|
225
|
+
Evidence directory: [202 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/buddy/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
226
226
|
|
|
227
227
|
### @stacksjs/build
|
|
228
228
|
|
|
@@ -394,9 +394,9 @@ Guidance: [`stacks-desktop`](../stacks-desktop/SKILL.md). Source: [storage/frame
|
|
|
394
394
|
|
|
395
395
|
Declared runtime exports: `BUN_EXECUTABLE_MARKER`, `RESERVED_PLIST_KEYS`, `USERLAND_LAUNCHER`, `bundleDirectoryFor`, `codesignArgs`, `craftDevCommand`, `createUpdateManifestUrl`, `describeRuntimeDuplication`, `desktopAppVersion`, `desktopLauncherCompileArgs`, `developerIdProblem`, `dmgVolumeName`, `hasUserlandDesktopLauncher`, `isMachO`, `looksLikeBunExecutable`, `notarizationOutcome`, `notarytoolAuthArgs`, `openDevWindow`, `plistValue`, `renderInfoPlist`, `renderUserlandPlistEntries`, `resolveCraftBinary`, `resolveCraftExecutable`, `resolveDesktopLauncher`, `resolveDevWindowUrl`, `resolveDmgPackaging`, `xmlEscape`.
|
|
396
396
|
|
|
397
|
-
Local source modules: [src/agent-launcher.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/agent-launcher.ts), [src/agent.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/agent.ts), [src/craft-runtime.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/craft-runtime.ts), [src/invites.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/invites.ts), [src/macos-app.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/macos-app.ts), [src/macos-bundle.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/macos-bundle.ts), [src/support.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/support.ts), [src/update-feed.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/update-feed.ts), [src/update-install.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/update-install.ts), [src/update-signing.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/update-signing.ts), [src/updater.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/updater.ts), [src/webview-agent.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-agent.ts), [src/webview-app.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-app.ts), [src/webview-build-record.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-build-record.ts), [src/webview-launcher.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-launcher.ts).
|
|
397
|
+
Local source modules: [src/agent-launcher.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/agent-launcher.ts), [src/agent.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/agent.ts), [src/craft-runtime.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/craft-runtime.ts), [src/invites.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/invites.ts), [src/macos-app.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/macos-app.ts), [src/macos-bundle.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/macos-bundle.ts), [src/macos-release.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/macos-release.ts), [src/support.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/support.ts), [src/update-feed.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/update-feed.ts), [src/update-install.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/update-install.ts), [src/update-signing.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/update-signing.ts), [src/updater.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/updater.ts), [src/webview-agent.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-agent.ts), [src/webview-app.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-app.ts), [src/webview-build-record.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-build-record.ts), [src/webview-launcher.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-launcher.ts).
|
|
398
398
|
|
|
399
|
-
Evidence directory: [
|
|
399
|
+
Evidence directory: [23 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
400
400
|
|
|
401
401
|
### @stacksjs/development
|
|
402
402
|
|
|
@@ -452,7 +452,7 @@ Read the entrypoint and package export map for re-exported or type-only surfaces
|
|
|
452
452
|
|
|
453
453
|
Local source modules: [src/cli.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/cli.ts), [src/crypto.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/crypto.ts), [src/deployment.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/deployment.ts), [src/integrations.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/integrations.ts), [src/numeric-keys.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/numeric-keys.ts), [src/parser.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/parser.ts), [src/plaintext.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/plaintext.ts), [src/plugin.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/plugin.ts), [src/runtime.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/runtime.ts), [src/tenants.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/tenants.ts), [src/types.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/types.ts), [src/utils.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/utils.ts), [src/withheld.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/src/withheld.ts).
|
|
454
454
|
|
|
455
|
-
Evidence directory: [
|
|
455
|
+
Evidence directory: [32 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/env/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
456
456
|
|
|
457
457
|
### @stacksjs/error-handling
|
|
458
458
|
|
|
@@ -73,6 +73,13 @@ syntax alone does not establish support.
|
|
|
73
73
|
`stacks-composables`, including cleanup and client-delivery boundaries.
|
|
74
74
|
- Content hashes include config/class inputs. A cache file should never be
|
|
75
75
|
hand-edited to fix a source class or token.
|
|
76
|
+
- `space-y-*` and `space-x-*` do not reach an STX component. Each component
|
|
77
|
+
renders inside a `[data-stx-component-wrapper]` element that is
|
|
78
|
+
`display: contents`, so the margin those utilities put on the wrapper lays
|
|
79
|
+
out nothing: a `<Button>` at the end of a `space-y-4` form sits flush against
|
|
80
|
+
the field above it. Space a container that holds components with
|
|
81
|
+
`flex flex-col gap-*` (or `grid gap-*`), which applies to the component's own
|
|
82
|
+
root.
|
|
76
83
|
|
|
77
84
|
## Source and evidence
|
|
78
85
|
|
|
@@ -6,12 +6,12 @@ import { Action } from '@stacksjs/actions/runtime'
|
|
|
6
6
|
* `target` is `<platform>-<arch>` (`darwin-arm64`).
|
|
7
7
|
*
|
|
8
8
|
* It is where `buddy release:desktop` points a manifest and release.json when
|
|
9
|
-
* `
|
|
9
|
+
* the app's `updates.artifactBaseUrl` is not set, so a release on any disk, the
|
|
10
10
|
* private local one included, can be downloaded with no bucket or CDN. The
|
|
11
11
|
* file is streamed from the updates disk with its length and byte ranges, so
|
|
12
12
|
* a large installer is never held in memory and a download can resume.
|
|
13
13
|
*
|
|
14
|
-
* Only a key of the artifact shape under `
|
|
14
|
+
* Only a key of the artifact shape under the app's `updates.prefix` is read: no
|
|
15
15
|
* path here reaches another folder or file on the disk. Public on purpose,
|
|
16
16
|
* like the feed: an installer is downloaded before anyone has an account.
|
|
17
17
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Action } from '@stacksjs/actions/runtime'
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* The update feed of the desktop app this project builds
|
|
5
|
-
*
|
|
4
|
+
* The update feed of the desktop app this project builds (`webview.updates`
|
|
5
|
+
* in config/desktop.ts, or `macos.updates` for a native macOS app):
|
|
6
6
|
* `GET /api/updates/{platform}/{arch}`.
|
|
7
7
|
*
|
|
8
8
|
* It serves the manifest `buddy release:desktop` published for that platform
|
|
@@ -11,10 +11,14 @@ import { Action } from '@stacksjs/actions/runtime'
|
|
|
11
11
|
* releaser did not sign. `?current=<version>` gets 204 when there is nothing
|
|
12
12
|
* newer; `?channel=beta` reads another channel.
|
|
13
13
|
*
|
|
14
|
-
* Mounted by the framework when `webview.updates`
|
|
15
|
-
* path, mount it yourself in routes/api.ts:
|
|
14
|
+
* Mounted by the framework when `webview.updates` or `macos.updates` is
|
|
15
|
+
* configured. To change the path, mount it yourself in routes/api.ts:
|
|
16
16
|
*
|
|
17
17
|
* route.get('/desktop/feed/{platform}/{arch}', 'Actions/Desktop/UpdateFeedAction')
|
|
18
|
+
*
|
|
19
|
+
* A project that declares both apps with updates serves the web view app's
|
|
20
|
+
* here. Give `macos.updates` its own `prefix` and `feedUrl`, and answer that
|
|
21
|
+
* path from an action of your own with `answerUpdateFeed({ app: 'macos', ... })`.
|
|
18
22
|
*/
|
|
19
23
|
export default new Action({
|
|
20
24
|
name: 'DesktopUpdateFeedAction',
|
package/bootstrap.ts
CHANGED
|
@@ -218,9 +218,9 @@ async function registerDefaultBundles(): Promise<void> {
|
|
|
218
218
|
|
|
219
219
|
// The desktop update feed (`/api/updates/{platform}/{arch}`): what an
|
|
220
220
|
// installed desktop app asks for a newer version. Like `social`, it exists
|
|
221
|
-
// exactly when the app configured it - `webview.updates`
|
|
222
|
-
// config/desktop.ts - so no existing app gains a route. The config file
|
|
223
|
-
// read directly: the desktop build package is not loaded at server boot.
|
|
221
|
+
// exactly when the app configured it - `webview.updates` or `macos.updates`
|
|
222
|
+
// in config/desktop.ts - so no existing app gains a route. The config file
|
|
223
|
+
// is read directly: the desktop build package is not loaded at server boot.
|
|
224
224
|
if (await publishesDesktopUpdates()) {
|
|
225
225
|
await route.register(frameworkPath('defaults/routes/desktop-updates.ts'))
|
|
226
226
|
}
|
|
@@ -232,8 +232,8 @@ async function publishesDesktopUpdates(): Promise<boolean> {
|
|
|
232
232
|
const file = projectPath('config/desktop.ts')
|
|
233
233
|
if (!existsSync(file)) return false
|
|
234
234
|
try {
|
|
235
|
-
const desktop = (await import(file) as { default?: { webview?: { updates?: unknown } } }).default
|
|
236
|
-
return Boolean(desktop?.webview?.updates)
|
|
235
|
+
const desktop = (await import(file) as { default?: { webview?: { updates?: unknown }, macos?: { updates?: unknown } } }).default
|
|
236
|
+
return Boolean(desktop?.webview?.updates || desktop?.macos?.updates)
|
|
237
237
|
}
|
|
238
238
|
catch {
|
|
239
239
|
return false
|
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.599",
|
|
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.599",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@iconify-json/f7": "^1.2.2",
|
|
47
47
|
"@iconify-json/hugeicons": "^1.2.35",
|
|
48
|
-
"@stacksjs/mobile": "0.75.
|
|
48
|
+
"@stacksjs/mobile": "0.75.599",
|
|
49
49
|
"@stacksjs/sanitizer": "^0.2.889",
|
|
50
50
|
"@stacksjs/stx": "^0.2.889",
|
|
51
|
-
"@stacksjs/strings": "0.75.
|
|
51
|
+
"@stacksjs/strings": "0.75.599",
|
|
52
52
|
"@xterm/addon-fit": "^0.11.0",
|
|
53
53
|
"@xterm/xterm": "^6.0.0",
|
|
54
54
|
"ts-qr-codes": "^0.1.8",
|
|
55
|
-
"@stacksjs/support": "0.75.
|
|
56
|
-
"@stacksjs/browser": "0.75.
|
|
55
|
+
"@stacksjs/support": "0.75.599",
|
|
56
|
+
"@stacksjs/browser": "0.75.599"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { route } from '@stacksjs/router'
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* The desktop update feed: what an installed desktop app (
|
|
5
|
-
* asks for a newer version. Mounted while
|
|
6
|
-
* `webview.updates`. An app route
|
|
4
|
+
* The desktop update feed: what an installed desktop app (a web view app, or
|
|
5
|
+
* a native macOS one) asks for a newer version. Mounted while
|
|
6
|
+
* `config/desktop.ts` has `webview.updates` or `macos.updates`. An app route
|
|
7
|
+
* at the same path registers first and wins.
|
|
7
8
|
*
|
|
8
9
|
* Public on purpose: an app checks before anyone has signed in, and the
|
|
9
10
|
* manifest it gets is only as good as its signature.
|
|
@@ -12,7 +13,7 @@ route.get('/api/updates/{platform}/{arch}', 'Actions/Desktop/UpdateFeedAction')
|
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* The artifacts those manifests name, streamed from the updates disk. A
|
|
15
|
-
* release points here unless `
|
|
16
|
-
* or CDN that serves the disk itself.
|
|
16
|
+
* release points here unless the app's `updates.artifactBaseUrl` names a
|
|
17
|
+
* bucket or CDN that serves the disk itself.
|
|
17
18
|
*/
|
|
18
19
|
route.get('/api/updates/files/{channel}/{target}/{version}/{file}', 'Actions/Desktop/UpdateArtifactAction')
|