@decohere/flux 0.0.1-dev.20261110.287 → 0.0.1-dev.20261110.311

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/README.md CHANGED
@@ -212,7 +212,7 @@ Named serve profiles in `.decohere.js` (e.g. `shop-stack: ["app", "shop", "billi
212
212
  | **Flux app** | `package.json` `main` ends in `main.ts` / `main.tsx`, and no foreign serve script | Boot in-process (one HMR graph per app). |
213
213
  | **Library** | Everything else (e.g. `main`: `src/index.ts`) | Skip — imported via debug aliases. |
214
214
 
215
- Foreign scripts win over `main.ts` so Vite (and similar) apps are never loaded in the Node HMR hook. The **package script** is the contract, not a hard-coded Vite check. It is the same rule `forge build` uses for a project's `build` script (`Project.ownScript` in `@decohere/workspace`).
215
+ Foreign scripts win over `main.ts` so Vite (and similar) apps are never loaded in the Node HMR hook. The **package script** is the contract, not a hard-coded Vite check. It is the same rule `forge build` uses for a project's `build` script (`Project.getOwnScript` in `@decohere/workspace`).
216
216
 
217
217
  Logs name skipped libraries and deferred packages (script + cwd). Child processes are stopped when the CLI exits (SIGINT or SIGTERM → dispose).
218
218
 
@@ -5,7 +5,7 @@ function _ts_decorate(decorators, target, key, desc) {
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  }
7
7
  import { injectable } from "@decohere/crucible/decorators";
8
- import { packageScriptCommand, startPackageScript } from "@decohere/devkit/interop";
8
+ import { getPackageScriptCommand, startPackageScript } from "@decohere/devkit/interop";
9
9
  import { scribe } from "@decohere/scribe";
10
10
  /** How long a script gets to stop after SIGTERM before it's killed. */ const STOP_TIMEOUT_MS = 2_000;
11
11
  /** Windows has no process groups. There, only the package manager itself gets the signal. */ const USE_PROCESS_GROUP = process.platform !== "win32";
@@ -35,7 +35,7 @@ export class DeferredScriptRunner {
35
35
  logger = scribe.logger(DeferredScriptRunner.name);
36
36
  children = [];
37
37
  start(options) {
38
- const { command, args } = packageScriptCommand(options);
38
+ const { command, args } = getPackageScriptCommand(options);
39
39
  this.logger.info(`deferred ${options.label} — running ${command} ${args.join(" ")} in ${options.cwd}`);
40
40
  const child = startPackageScript(options, {
41
41
  // Its own process group, so stopping it reaches what the package manager started. A
@@ -55,7 +55,7 @@ export function projectsInSlice(projects, slice) {
55
55
  * The project's own serve script, `dev` before `serve`, by the rule forge uses for `build`: one
56
56
  * that calls flux (or another Decohere tool) stays with Flux.
57
57
  */ export function resolveDeferScript(scripts) {
58
- return DEFER_SCRIPT_CANDIDATES.find((name)=>projectScripts.own(scripts, name) != null);
58
+ return DEFER_SCRIPT_CANDIDATES.find((name)=>projectScripts.getOwn(scripts, name) != null);
59
59
  }
60
60
  /** Convention: Flux Node apps use `main` ending in `main.ts` / `main.tsx`. */ export function isFluxAppMain(main) {
61
61
  const normalized = main.replaceAll("\\", "/");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decohere/flux",
3
- "version": "0.0.1-dev.20261110.287",
3
+ "version": "0.0.1-dev.20261110.311",
4
4
  "description": "Hot module reload server for Node.js ESM applications",
5
5
  "keywords": [
6
6
  "typescript",
@@ -33,12 +33,12 @@
33
33
  "test": "echo \"Error: no test specified\" && exit 1"
34
34
  },
35
35
  "dependencies": {
36
- "@decohere/core": "0.0.1-dev.20261110.287",
37
- "@decohere/crucible": "0.0.1-dev.20261110.287",
38
- "@decohere/devkit": "0.0.1-dev.20261110.287",
39
- "@decohere/forge": "0.0.1-dev.20261110.287",
40
- "@decohere/scribe": "0.0.1-dev.20261110.287",
41
- "@decohere/workspace": "0.0.1-dev.20261110.287",
36
+ "@decohere/core": "0.0.1-dev.20261110.311",
37
+ "@decohere/crucible": "0.0.1-dev.20261110.311",
38
+ "@decohere/devkit": "0.0.1-dev.20261110.311",
39
+ "@decohere/forge": "0.0.1-dev.20261110.311",
40
+ "@decohere/scribe": "0.0.1-dev.20261110.311",
41
+ "@decohere/workspace": "0.0.1-dev.20261110.311",
42
42
  "commander": "^13.1.0"
43
43
  },
44
44
  "devDependencies": {}