create-astrale-domain 0.3.0-beta.217 → 0.3.0-beta.219
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/index.js +28 -11
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -783,7 +783,7 @@ var Y2 = ({ indicator: t = "dots" } = {}) => {
|
|
|
783
783
|
import { existsSync as existsSync2 } from "node:fs";
|
|
784
784
|
import { relative as relative2, resolve as resolve2 } from "node:path";
|
|
785
785
|
|
|
786
|
-
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.
|
|
786
|
+
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.34/node_modules/@astrale-os/kernel-dsl/dist/v1/addressing/patterns.js
|
|
787
787
|
var DOMAIN_ORIGIN_PATTERN = /^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/u;
|
|
788
788
|
var MEMBER_NAME_PATTERN = /^[A-Za-z][A-Za-z0-9_]*$/u;
|
|
789
789
|
var DEPENDENCY_ALIAS_PATTERN = /^[a-z][A-Za-z0-9]*$/u;
|
|
@@ -809,7 +809,7 @@ var patterns = Object.freeze({
|
|
|
809
809
|
revisionFullMatch: DOMAIN_REVISION_FULL_MATCH
|
|
810
810
|
});
|
|
811
811
|
|
|
812
|
-
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.
|
|
812
|
+
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.34/node_modules/@astrale-os/kernel-dsl/dist/v1/addressing/definition-ref.js
|
|
813
813
|
var DEFINITION_KINDS = /* @__PURE__ */ new Set([
|
|
814
814
|
"class",
|
|
815
815
|
"function",
|
|
@@ -841,10 +841,11 @@ function definitionNameMatches(kind, name) {
|
|
|
841
841
|
return kind === "core" ? CORE_SLUG_PATTERN.test(name) : MEMBER_NAME_PATTERN.test(name);
|
|
842
842
|
}
|
|
843
843
|
|
|
844
|
-
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.
|
|
844
|
+
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.34/node_modules/@astrale-os/kernel-dsl/dist/v1/addressing/key.js
|
|
845
845
|
var DEFINITION_KEY = /^(?:class|function|policy|view)\.([A-Za-z][A-Za-z0-9_]*)$/u;
|
|
846
846
|
var CORE_KEY = /^core\.((?=.{1,100}$)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*)$/u;
|
|
847
847
|
var MEMBER_KEY = /^class\.([A-Za-z][A-Za-z0-9_]*)\.(property|method)\.([A-Za-z][A-Za-z0-9_]*)$/u;
|
|
848
|
+
var KNOWN_KEYS = 16384;
|
|
848
849
|
var derived = /* @__PURE__ */ new WeakMap();
|
|
849
850
|
function Key(input) {
|
|
850
851
|
if (typeof input !== "string" || !isCanonicalKey(input)) {
|
|
@@ -887,7 +888,8 @@ function immutable(ref) {
|
|
|
887
888
|
return Object.isFrozen(ref) && Reflect.ownKeys(ref).every((key) => "value" in Reflect.getOwnPropertyDescriptor(ref, key));
|
|
888
889
|
}
|
|
889
890
|
|
|
890
|
-
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.
|
|
891
|
+
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.34/node_modules/@astrale-os/kernel-dsl/dist/v1/addressing/class-key.js
|
|
892
|
+
var knownClassKeys = /* @__PURE__ */ new Set();
|
|
891
893
|
function ClassKey(input) {
|
|
892
894
|
if (!ClassKey.is(input)) {
|
|
893
895
|
throw new TypeError(`Invalid canonical ClassKey: ${JSON.stringify(input)}.`);
|
|
@@ -904,10 +906,17 @@ function ClassKey(input) {
|
|
|
904
906
|
}
|
|
905
907
|
ClassKey2.of = of;
|
|
906
908
|
function is(input) {
|
|
907
|
-
if (typeof input !== "string"
|
|
909
|
+
if (typeof input !== "string")
|
|
910
|
+
return false;
|
|
911
|
+
if (knownClassKeys.has(input))
|
|
912
|
+
return true;
|
|
913
|
+
if (!Key.is(input))
|
|
908
914
|
return false;
|
|
909
915
|
const coordinate = input.slice(input.indexOf(":") + 1);
|
|
910
|
-
|
|
916
|
+
const canonical = coordinate.startsWith("class.") && !coordinate.includes(".property.") && !coordinate.includes(".method.");
|
|
917
|
+
if (canonical && knownClassKeys.size < KNOWN_KEYS)
|
|
918
|
+
knownClassKeys.add(input);
|
|
919
|
+
return canonical;
|
|
911
920
|
}
|
|
912
921
|
ClassKey2.is = is;
|
|
913
922
|
function ref(input) {
|
|
@@ -922,7 +931,7 @@ function ClassKey(input) {
|
|
|
922
931
|
ClassKey2.ref = ref;
|
|
923
932
|
})(ClassKey || (ClassKey = {}));
|
|
924
933
|
|
|
925
|
-
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.
|
|
934
|
+
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.34/node_modules/@astrale-os/kernel-dsl/dist/v1/addressing/method-key.js
|
|
926
935
|
function MethodKey(input) {
|
|
927
936
|
if (!MethodKey.is(input)) {
|
|
928
937
|
throw new TypeError(`Invalid canonical MethodKey: ${JSON.stringify(input)}.`);
|
|
@@ -963,7 +972,7 @@ function MethodKey(input) {
|
|
|
963
972
|
MethodKey2.address = address;
|
|
964
973
|
})(MethodKey || (MethodKey = {}));
|
|
965
974
|
|
|
966
|
-
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.
|
|
975
|
+
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.34/node_modules/@astrale-os/kernel-dsl/dist/value/limits.js
|
|
967
976
|
var defaultLimits = Object.freeze({
|
|
968
977
|
maxBytes: 16 * 1024 * 1024,
|
|
969
978
|
maxDepth: 64,
|
|
@@ -971,10 +980,11 @@ var defaultLimits = Object.freeze({
|
|
|
971
980
|
maxStringBytes: 1024 * 1024
|
|
972
981
|
});
|
|
973
982
|
|
|
974
|
-
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.
|
|
983
|
+
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.34/node_modules/@astrale-os/kernel-dsl/dist/value/canonical.js
|
|
975
984
|
var encoder = new TextEncoder();
|
|
976
985
|
|
|
977
|
-
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.
|
|
986
|
+
// ../node_modules/.pnpm/@astrale-os+kernel-dsl@1.0.0-beta.34/node_modules/@astrale-os/kernel-dsl/dist/v1/addressing/property-key.js
|
|
987
|
+
var knownPropertyKeys = /* @__PURE__ */ new Set();
|
|
978
988
|
function PropertyKey(input) {
|
|
979
989
|
if (!PropertyKey.is(input)) {
|
|
980
990
|
throw new TypeError(`Invalid canonical PropertyKey: ${JSON.stringify(input)}.`);
|
|
@@ -991,7 +1001,14 @@ function PropertyKey(input) {
|
|
|
991
1001
|
}
|
|
992
1002
|
PropertyKey2.of = of;
|
|
993
1003
|
function is(input) {
|
|
994
|
-
|
|
1004
|
+
if (typeof input !== "string")
|
|
1005
|
+
return false;
|
|
1006
|
+
if (knownPropertyKeys.has(input))
|
|
1007
|
+
return true;
|
|
1008
|
+
const canonical = Key.is(input) && PROPERTY_KEY_PATTERN.test(input);
|
|
1009
|
+
if (canonical && knownPropertyKeys.size < KNOWN_KEYS)
|
|
1010
|
+
knownPropertyKeys.add(input);
|
|
1011
|
+
return canonical;
|
|
995
1012
|
}
|
|
996
1013
|
PropertyKey2.is = is;
|
|
997
1014
|
function address(input) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astrale-domain",
|
|
3
|
-
"version": "0.3.0-beta.
|
|
3
|
+
"version": "0.3.0-beta.219",
|
|
4
4
|
"description": "Scaffold a standalone Astrale domain — npm create astrale-domain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"registry": "https://registry.npmjs.org/"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@astrale-os/adapter-astrale": "0.5.0-beta.
|
|
34
|
-
"@astrale-os/adapter-cloudflare": "0.5.0-beta.
|
|
33
|
+
"@astrale-os/adapter-astrale": "0.5.0-beta.219",
|
|
34
|
+
"@astrale-os/adapter-cloudflare": "0.5.0-beta.226",
|
|
35
35
|
"@clack/prompts": "^0.11.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@astrale-os/kernel-dsl": "1.0.0-beta.
|
|
38
|
+
"@astrale-os/kernel-dsl": "1.0.0-beta.34",
|
|
39
39
|
"@astrale-os/ox": "0.1.4",
|
|
40
|
-
"@astrale-os/sdk": "0.6.0-beta.
|
|
40
|
+
"@astrale-os/sdk": "0.6.0-beta.71",
|
|
41
41
|
"@types/node": "^24.0.0",
|
|
42
42
|
"esbuild": "^0.28.2",
|
|
43
43
|
"oxfmt": "0.67.0",
|