Package not found. Please check the package name and try again.

create-astrale-domain 0.2.6 → 0.2.8

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -15
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -796,8 +796,9 @@ var LINK_TARGETS = {
796
796
  "@astrale-os/adapter-astrale": "sdk/adapter-astrale",
797
797
  "@astrale-os/kernel-core": "kernel/core",
798
798
  "@astrale-os/kernel-dsl": "kernel/dsl",
799
- // The client SPA consumes the real shell (createShell + the kernel client).
800
- "@astrale-os/shell": "shell/packages/shell"
799
+ // The client SPA consumes the React shell surface directly.
800
+ "@astrale-os/shell": "shell/packages/shell",
801
+ "@astrale-os/shell-react": "shell/packages/shell-react"
801
802
  };
802
803
  var BODY_PACKAGE = "@astrale-os/adapter-cloudflare";
803
804
  var ADAPTER_PACKAGES = {
@@ -967,26 +968,16 @@ function rewriteAstraleDeps(pkg, link) {
967
968
  }
968
969
  return changed;
969
970
  }
971
+ var FIRST_PARTY_SCOPES = ["@astrale-domains/*", "@astrale-os/*"];
970
972
  async function writeReleaseAgePolicy(dir) {
971
973
  const workspace = join(dir, "pnpm-workspace.yaml");
972
974
  if (!existsSync(workspace)) return;
973
- const names = /* @__PURE__ */ new Set();
974
- for (const pkgPath of [join(dir, "package.json"), join(dir, "client", "package.json")]) {
975
- if (!existsSync(pkgPath)) continue;
976
- const pkg = JSON.parse(await readFile(pkgPath, "utf-8"));
977
- for (const group of [pkg.dependencies, pkg.devDependencies]) {
978
- for (const [name, spec] of Object.entries(group ?? {})) {
979
- if (name.startsWith("@astrale-os/") && !spec.startsWith("link:")) names.add(name);
980
- }
981
- }
982
- }
983
- if (names.size === 0) return;
984
- const start = "# create-astrale-domain: exact first-party deps";
975
+ const start = "# create-astrale-domain: first-party scopes";
985
976
  const end = "# /create-astrale-domain";
986
977
  const block = `
987
978
  ${start}
988
979
  minimumReleaseAgeExclude:
989
- ` + [...names].sort().map((name) => ` - '${name}'`).join("\n") + `
980
+ ` + FIRST_PARTY_SCOPES.map((scope) => ` - '${scope}'`).join("\n") + `
990
981
  ${end}
991
982
  `;
992
983
  const text = await readFile(workspace, "utf-8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astrale-domain",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Scaffold a standalone Astrale domain — npm create astrale-domain",
5
5
  "keywords": [
6
6
  "astrale",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@clack/prompts": "^0.11.0",
22
22
  "@astrale-os/adapter-astrale": "^0.4.0",
23
- "@astrale-os/adapter-cloudflare": "^0.4.3"
23
+ "@astrale-os/adapter-cloudflare": "^0.4.5"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@astrale-os/ox": ">=0.1.0 <1.0.0",