@monoflake/urls 0.0.0

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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Canmi <t@canmi.icu>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
@@ -0,0 +1,15 @@
1
+ //#region src/index.d.ts
2
+ export declare const INFRA: {
3
+ readonly panel: 'https://infra.internal.ixc.one';
4
+ readonly keeper: 'https://keeper.internal.ixc.one';
5
+ readonly host: 'http://host:11011';
6
+ };
7
+ /** The port the panel's development server answers on, before the sandbox shifts it. */
8
+ export declare const PANEL_PORT = 26519;
9
+ /**
10
+ * Where `mise run reach` answers: a plain-HTTP door on this machine to an interface that only the
11
+ * LAN reaches. Not an app, so it is kept out of the pinned ports. See spec/toolchain.md, "Reaching
12
+ * the LAN from a browser that cannot".
13
+ */
14
+ export declare const REACH_PORT: number;
15
+ //#endregion
@@ -0,0 +1,21 @@
1
+ import { PORT_OFFSET } from "@canmi/me/urls";
2
+ //#region src/index.ts
3
+ /**
4
+ * Infra's own addresses: the panel, keeper and host, which bootstrap everything else and so are
5
+ * named below it. See spec/architecture/layers.md, "Addresses are split by who owns the name".
6
+ */
7
+ const INFRA = {
8
+ panel: "https://infra.internal.ixc.one",
9
+ keeper: "https://keeper.internal.ixc.one",
10
+ host: "http://host:11011"
11
+ };
12
+ /** The port the panel's development server answers on, before the sandbox shifts it. */
13
+ const PANEL_PORT = 26519;
14
+ /**
15
+ * Where `mise run reach` answers: a plain-HTTP door on this machine to an interface that only the
16
+ * LAN reaches. Not an app, so it is kept out of the pinned ports. See spec/toolchain.md, "Reaching
17
+ * the LAN from a browser that cannot".
18
+ */
19
+ const REACH_PORT = 26520 + PORT_OFFSET;
20
+ //#endregion
21
+ export { INFRA, PANEL_PORT, REACH_PORT };
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@monoflake/urls",
3
+ "version": "0.0.0",
4
+ "description": "Infra's own addresses: the panel, keeper and host, which bootstrap everything else",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/monoflake/infra.git",
9
+ "directory": "libs/urls"
10
+ },
11
+ "type": "module",
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/src/index.d.ts",
18
+ "default": "./dist/src/index.js"
19
+ }
20
+ },
21
+ "dependencies": {
22
+ "@canmi/me": "^2026.1004.1"
23
+ },
24
+ "scripts": {
25
+ "build": "tsdown"
26
+ }
27
+ }