@assembly-js/app-foundation 0.2.0 → 0.2.2
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/CHANGELOG.md +6 -0
- package/dist/scripts.d.ts +8 -0
- package/dist/scripts.js +4697 -0
- package/package.json +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,12 @@ bullets ship. Write `[fix]`, `[behavior]` and `[action]` bullets for the app's o
|
|
|
17
17
|
A patch release never changes what an app's build requires; a minor release may add or change a
|
|
18
18
|
`bin/check-*.mjs` script. CI fails a PR that changes a check script without a minor bump over main.
|
|
19
19
|
|
|
20
|
+
## 0.2.2
|
|
21
|
+
- [fix] `@assembly-js/app-foundation/scripts` now loads when a script runs under plain `node`, not only under `bun`.
|
|
22
|
+
|
|
23
|
+
## 0.2.1
|
|
24
|
+
- [new] Add `@assembly-js/app-foundation/scripts`, which exports `getOfflineAssembly` without `server-only`, for seed and backfill scripts that run outside Next.
|
|
25
|
+
|
|
20
26
|
## 0.2.0
|
|
21
27
|
- [behavior] At the end of every turn the platform compares the operations documented in `.assembly/openapi.json` with the app's API routes and warns the build agent on its next turn about any it cannot find. Nothing in the app changes and the build is unaffected.
|
|
22
28
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type AssemblyAPI } from '@assembly-js/node-sdk';
|
|
2
|
+
/**
|
|
3
|
+
* The script-side counterpart of `getOfflineAssembly` from `/server`: mints a
|
|
4
|
+
* short-lived app-scoped bearer from `ASSEMBLY_API_KEY` and returns a bearer-only
|
|
5
|
+
* client. There is no request here, so the viewer-identity guard `/server` applies
|
|
6
|
+
* does not exist; use this only from scripts, never from code under `app/`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getOfflineAssembly(): Promise<AssemblyAPI>;
|