@absolutejs/absolute 0.19.0-beta.1017 → 0.19.0-beta.1019

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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-pOUHMP/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-cSpZHM/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-pOUHMP/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-cSpZHM/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-pOUHMP/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-cSpZHM/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
package/dist/cli/index.js CHANGED
@@ -502,7 +502,13 @@ var registeredPids, exitHandlerRegistered = false, instanceFilePath = (pid) => j
502
502
  };
503
503
  var init_instanceRegistry = __esm(() => {
504
504
  registeredPids = new Set;
505
- SOURCES = ["dev", "standalone", "start", "workspace"];
505
+ SOURCES = [
506
+ "compiled",
507
+ "dev",
508
+ "standalone",
509
+ "start",
510
+ "workspace"
511
+ ];
506
512
  });
507
513
 
508
514
  // src/utils/loadConfig.ts
@@ -2677,10 +2683,10 @@ var cliTag4 = (color, message) => `\x1B[2m${formatTimestamp()}\x1B[0m ${color}[c
2677
2683
  ${imports.join(`
2678
2684
  `)}
2679
2685
 
2680
- import { existsSync } from "node:fs";
2686
+ import { existsSync, mkdirSync, unlinkSync } from "node:fs";
2681
2687
  import { mkdir } from "node:fs/promises";
2682
- import { dirname, join } from "node:path";
2683
- import { tmpdir } from "node:os";
2688
+ import { basename, dirname, join } from "node:path";
2689
+ import { homedir, tmpdir } from "node:os";
2684
2690
  import { createHash } from "node:crypto";
2685
2691
  import { readFileSync, writeFileSync } from "node:fs";
2686
2692
  import { pathToFileURL } from "node:url";
@@ -2877,6 +2883,49 @@ const server = Bun.serve({
2877
2883
  },
2878
2884
  });
2879
2885
 
2886
+ // Register in the global instance registry so 'absolute ls' can see this
2887
+ // compiled binary. Best-effort; never blocks startup. Dead entries are pruned
2888
+ // on read, so a hard kill that skips the exit handler is harmless.
2889
+ try {
2890
+ const absInstancesDir = join(homedir(), ".absolutejs", "instances");
2891
+ mkdirSync(absInstancesDir, { recursive: true });
2892
+ const absInstanceFile = join(absInstancesDir, process.pid + ".json");
2893
+ writeFileSync(
2894
+ absInstanceFile,
2895
+ JSON.stringify(
2896
+ {
2897
+ // Bun sets process.argv[0] to "bun" in a compiled binary;
2898
+ // process.execPath is the real standalone executable path.
2899
+ command: process.execPath ? [process.execPath] : [],
2900
+ configPath: null,
2901
+ controllerPid: process.pid,
2902
+ cwd: process.cwd(),
2903
+ frameworks: [],
2904
+ host: "localhost",
2905
+ https: false,
2906
+ logFile: null,
2907
+ name: basename(process.execPath || "compiled"),
2908
+ pid: process.pid,
2909
+ port: server.port,
2910
+ ppid: process.ppid,
2911
+ source: "compiled",
2912
+ startedAt: new Date().toISOString()
2913
+ },
2914
+ null,
2915
+ 2
2916
+ )
2917
+ );
2918
+ process.on("exit", () => {
2919
+ try {
2920
+ unlinkSync(absInstanceFile);
2921
+ } catch {
2922
+ /* already gone */
2923
+ }
2924
+ });
2925
+ } catch {
2926
+ /* registry is best-effort */
2927
+ }
2928
+
2880
2929
  const assetCount = Object.keys(ASSETS).length;
2881
2930
  const pageCount = Object.keys(PAGES).length;
2882
2931
  console.log(\`
@@ -6668,7 +6717,7 @@ if (command === "dev") {
6668
6717
  } else if (command === "prettier") {
6669
6718
  sendTelemetryEvent("cli:command", { command });
6670
6719
  await prettier(args);
6671
- } else if (command === "ls" || command === "list" || command === "ps") {
6720
+ } else if (command === "ls" || command === "ps") {
6672
6721
  sendTelemetryEvent("cli:command", { command: "ls" });
6673
6722
  const { runList: runList2 } = await Promise.resolve().then(() => (init_list(), exports_list));
6674
6723
  await runList2(args);
@@ -6709,7 +6758,7 @@ if (command === "dev") {
6709
6758
  console.error(" config [--port n] Open the unified config UI (ESLint, tsconfig, Prettier)");
6710
6759
  console.error(" eslint Run ESLint (cached)");
6711
6760
  console.error(" info Print system info for bug reports");
6712
- console.error(" ls [--watch] [--json] List/manage running servers (alias: list)");
6761
+ console.error(" ls [--watch] [--json] List/manage running servers (alias: ps)");
6713
6762
  console.error(" prettier Run Prettier check (cached)");
6714
6763
  console.error(" typecheck Run type checkers for all frameworks");
6715
6764
  console.error(" telemetry Manage anonymous telemetry");