okno 1.0.0-beta.20 → 1.0.0-beta.22
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/dist/bake.d.ts +19 -0
- package/dist/bake.d.ts.map +1 -0
- package/dist/dispatch-CENEluBI.js +930 -0
- package/dist/editor/index.js +11274 -11196
- package/dist/encode-BfJY0Xy5.js +20 -0
- package/dist/engine/index.js +184 -0
- package/dist/engine/parse.d.ts +5 -3
- package/dist/engine/parse.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp.js +14 -13
- package/dist/next/config.d.ts.map +1 -1
- package/dist/next/index.js +37 -39
- package/dist/{acorn-CZBJD705.js → parse-tlTHgSSs.js} +253 -195
- package/dist/{plugin-jvqdZWC0.js → plugin-C6e1HX1x.js} +144 -177
- package/dist/vite/index.js +1 -1
- package/dist/vite/plugin.d.ts.map +1 -1
- package/package.json +5 -1
- package/dist/dispatch-DKZB5I61.js +0 -1054
- package/dist/encode-DoojdsVU.js +0 -80
package/dist/bake.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** The branch this build targets. `git rev-parse --abbrev-ref HEAD` returns the
|
|
2
|
+
* literal "HEAD" in a DETACHED checkout — how every CI/host builds (Cloudflare
|
|
3
|
+
* Pages, Vercel, Netlify, GitHub Actions all check out a commit, not a branch
|
|
4
|
+
* ref). Baking `@HEAD` breaks the editor (HEAD isn't a writable branch), so on
|
|
5
|
+
* detachment fall back to the host's branch env var, then "main". */
|
|
6
|
+
export declare function bakeBranch(): string;
|
|
7
|
+
/** Bake the project's repo identity (`owner/repo@branch`, mirroring the
|
|
8
|
+
* X-Okno-Repo header) from the app's git origin + current branch. A deployed
|
|
9
|
+
* site is exactly one repo, so the editor adopts this and skips the picker on
|
|
10
|
+
* live. Returns null outside a GitHub checkout (no origin / no git) — the editor
|
|
11
|
+
* then falls back to the picker. git resolves the repo from any cwd inside the
|
|
12
|
+
* tree, so process.cwd() (the build's working dir, = the app dir even in a
|
|
13
|
+
* monorepo) is enough. */
|
|
14
|
+
export declare function bakeRepoIdentity(): string | null;
|
|
15
|
+
/** Bake the monorepo root path — the build dir relative to the git root — so the
|
|
16
|
+
* hosted backend knows which subtree holds this project's `okno/`. "" at the repo
|
|
17
|
+
* root (single-project repo), "apps/site" in a monorepo. POSIX-normalized. */
|
|
18
|
+
export declare function bakeRootPath(): string;
|
|
19
|
+
//# sourceMappingURL=bake.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bake.d.ts","sourceRoot":"","sources":["../src/bake.ts"],"names":[],"mappings":"AAmBA;;;;sEAIsE;AACtE,wBAAgB,UAAU,IAAI,MAAM,CAWnC;AAED;;;;;;2BAM2B;AAC3B,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAMhD;AAED;;+EAE+E;AAC/E,wBAAgB,YAAY,IAAI,MAAM,CAIrC"}
|