@astrale-os/kernel-core 0.4.3 → 0.5.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/dist/auth/methods/jwt/jwt.method.d.ts +1 -1
- package/dist/auth/methods/jwt/jwt.method.d.ts.map +1 -1
- package/dist/auth/methods/jwt/jwt.method.js +1 -1
- package/dist/auth/methods/jwt/jwt.method.js.map +1 -1
- package/dist/domain/addressing/layout/build.d.ts +2 -0
- package/dist/domain/addressing/layout/build.d.ts.map +1 -1
- package/dist/domain/addressing/layout/build.js +6 -0
- package/dist/domain/addressing/layout/build.js.map +1 -1
- package/dist/domain/addressing/layout/default.d.ts +18 -3
- package/dist/domain/addressing/layout/default.d.ts.map +1 -1
- package/dist/domain/addressing/layout/default.js +28 -3
- package/dist/domain/addressing/layout/default.js.map +1 -1
- package/dist/domain/addressing/namespace.d.ts +7 -1
- package/dist/domain/addressing/namespace.d.ts.map +1 -1
- package/dist/domain/addressing/namespace.js +13 -1
- package/dist/domain/addressing/namespace.js.map +1 -1
- package/dist/domain/addressing/paths/constants.d.ts +4 -0
- package/dist/domain/addressing/paths/constants.d.ts.map +1 -1
- package/dist/domain/addressing/paths/constants.js +4 -0
- package/dist/domain/addressing/paths/constants.js.map +1 -1
- package/dist/domain/addressing/paths/domain.js +5 -2
- package/dist/domain/addressing/paths/domain.js.map +1 -1
- package/dist/domain/addressing/paths/function.d.ts +63 -0
- package/dist/domain/addressing/paths/function.d.ts.map +1 -0
- package/dist/domain/addressing/paths/function.js +161 -0
- package/dist/domain/addressing/paths/function.js.map +1 -0
- package/dist/domain/addressing/paths/index.d.ts +4 -2
- package/dist/domain/addressing/paths/index.d.ts.map +1 -1
- package/dist/domain/addressing/paths/index.js +4 -2
- package/dist/domain/addressing/paths/index.js.map +1 -1
- package/dist/domain/addressing/paths/parse.d.ts.map +1 -1
- package/dist/domain/addressing/paths/parse.js +4 -0
- package/dist/domain/addressing/paths/parse.js.map +1 -1
- package/dist/domain/addressing/paths/view.d.ts +62 -0
- package/dist/domain/addressing/paths/view.d.ts.map +1 -0
- package/dist/domain/addressing/paths/view.js +160 -0
- package/dist/domain/addressing/paths/view.js.map +1 -0
- package/dist/domain/addressing/paths/zod.d.ts +5 -1
- package/dist/domain/addressing/paths/zod.d.ts.map +1 -1
- package/dist/domain/addressing/paths/zod.js +5 -1
- package/dist/domain/addressing/paths/zod.js.map +1 -1
- package/dist/domain/addressing/refs/build.d.ts +3 -1
- package/dist/domain/addressing/refs/build.d.ts.map +1 -1
- package/dist/domain/addressing/refs/build.js +37 -47
- package/dist/domain/addressing/refs/build.js.map +1 -1
- package/dist/domain/addressing/refs/iterate.d.ts +2 -1
- package/dist/domain/addressing/refs/iterate.d.ts.map +1 -1
- package/dist/domain/addressing/refs/iterate.js +17 -11
- package/dist/domain/addressing/refs/iterate.js.map +1 -1
- package/dist/domain/addressing/refs/semantic-path.d.ts +38 -0
- package/dist/domain/addressing/refs/semantic-path.d.ts.map +1 -0
- package/dist/domain/addressing/refs/semantic-path.js +51 -0
- package/dist/domain/addressing/refs/semantic-path.js.map +1 -0
- package/dist/domain/addressing/refs/types.d.ts +38 -0
- package/dist/domain/addressing/refs/types.d.ts.map +1 -1
- package/dist/domain/compile/compile.d.ts +3 -1
- package/dist/domain/compile/compile.d.ts.map +1 -1
- package/dist/domain/compile/compile.js +2 -2
- package/dist/domain/compile/compile.js.map +1 -1
- package/dist/domain/compile/function/types.d.ts +23 -0
- package/dist/domain/compile/function/types.d.ts.map +1 -0
- package/dist/domain/compile/function/types.js +2 -0
- package/dist/domain/compile/function/types.js.map +1 -0
- package/dist/domain/compile/view/serialized.d.ts +28 -0
- package/dist/domain/compile/view/serialized.d.ts.map +1 -0
- package/dist/domain/compile/view/serialized.js +12 -0
- package/dist/domain/compile/view/serialized.js.map +1 -0
- package/dist/domain/compile/view/types.d.ts +21 -0
- package/dist/domain/compile/view/types.d.ts.map +1 -0
- package/dist/domain/compile/view/types.js +2 -0
- package/dist/domain/compile/view/types.js.map +1 -0
- package/dist/domain/deserialize/deserialize.d.ts.map +1 -1
- package/dist/domain/deserialize/deserialize.js +91 -69
- package/dist/domain/deserialize/deserialize.js.map +1 -1
- package/dist/domain/identity/resolve-callables.d.ts +16 -10
- package/dist/domain/identity/resolve-callables.d.ts.map +1 -1
- package/dist/domain/identity/resolve-callables.js +34 -5
- package/dist/domain/identity/resolve-callables.js.map +1 -1
- package/dist/domain/index.d.ts +3 -0
- package/dist/domain/index.d.ts.map +1 -1
- package/dist/domain/index.js.map +1 -1
- package/dist/domain/install-bundle.d.ts +1 -1
- package/dist/domain/install-bundle.d.ts.map +1 -1
- package/dist/domain/install-bundle.js +1 -1
- package/dist/domain/install-bundle.js.map +1 -1
- package/dist/domain/origin.d.ts +2 -0
- package/dist/domain/origin.d.ts.map +1 -1
- package/dist/domain/origin.js +6 -2
- package/dist/domain/origin.js.map +1 -1
- package/dist/domain/serialize/schema.d.ts +2 -0
- package/dist/domain/serialize/schema.d.ts.map +1 -1
- package/dist/domain/serialize/schema.js +128 -11
- package/dist/domain/serialize/schema.js.map +1 -1
- package/dist/domain/serialize/serialize.d.ts +7 -0
- package/dist/domain/serialize/serialize.d.ts.map +1 -1
- package/dist/domain/serialize/serialize.js.map +1 -1
- package/dist/graph/nav/path/kinds/registry.d.ts +20 -16
- package/dist/graph/nav/path/kinds/registry.d.ts.map +1 -1
- package/dist/graph/nav/path/kinds/registry.js +23 -19
- package/dist/graph/nav/path/kinds/registry.js.map +1 -1
- package/dist/graph/sync/reconcile/resolve.d.ts.map +1 -1
- package/dist/graph/sync/reconcile/resolve.js +1 -1
- package/dist/graph/sync/reconcile/resolve.js.map +1 -1
- package/dist/kernel.d.ts +78 -15
- package/dist/kernel.d.ts.map +1 -1
- package/dist/path-dsl.d.ts +4 -1
- package/dist/path-dsl.d.ts.map +1 -1
- package/dist/path-dsl.js +8 -1
- package/dist/path-dsl.js.map +1 -1
- package/dist/schema/classes/edges/calls.class.d.ts +6 -1
- package/dist/schema/classes/edges/calls.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/constrained-by.class.d.ts +6 -1
- package/dist/schema/classes/edges/constrained-by.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/excluded-from.class.d.ts +6 -1
- package/dist/schema/classes/edges/excluded-from.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/extends-with.class.d.ts +6 -1
- package/dist/schema/classes/edges/extends-with.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/extends.class.d.ts +6 -1
- package/dist/schema/classes/edges/extends.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/from.class.d.ts +4 -1
- package/dist/schema/classes/edges/from.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/has-parent.class.d.ts +11 -1
- package/dist/schema/classes/edges/has-parent.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/has-perm.class.d.ts +12 -1
- package/dist/schema/classes/edges/has-perm.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/implements.class.d.ts +5 -1
- package/dist/schema/classes/edges/implements.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/installed-in.class.d.ts +3 -1
- package/dist/schema/classes/edges/installed-in.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/instance-of.class.d.ts +4 -1
- package/dist/schema/classes/edges/instance-of.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/method-of.class.d.ts +3 -1
- package/dist/schema/classes/edges/method-of.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/of-domain.class.d.ts +3 -1
- package/dist/schema/classes/edges/of-domain.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/to.class.d.ts +4 -1
- package/dist/schema/classes/edges/to.class.d.ts.map +1 -1
- package/dist/schema/classes/edges/view-for.class.d.ts +3 -1
- package/dist/schema/classes/edges/view-for.class.d.ts.map +1 -1
- package/dist/schema/definitions/edge-class.d.ts +13 -2
- package/dist/schema/definitions/edge-class.d.ts.map +1 -1
- package/dist/schema/definitions/edge-class.js +4 -1
- package/dist/schema/definitions/edge-class.js.map +1 -1
- package/dist/schema/interfaces/generics/Sluggable.interface.d.ts.map +1 -1
- package/dist/schema/interfaces/generics/Sluggable.interface.js +1 -1
- package/dist/schema/interfaces/generics/Sluggable.interface.js.map +1 -1
- package/dist/schema/schema.d.ts +79 -15
- package/dist/schema/schema.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../../../domain/addressing/paths/function.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC/E,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAa7C,MAAM,QAAQ,GAAG,CAAC,eAAe,EAAE,kBAAkB,EAAE,eAAe,CAAU,CAAA;AAEhF;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,YAAa,SAAQ,IAAI;IAC3B,KAAK,CAAc;IACnB,MAAM,CAAQ;IACd,YAAY,CAAQ;IAE7B,YACE,KAAsB,EACtB,GAAW,EACX,KAAmB,EACnB,MAAc,EACd,YAAoB;QAEpB,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,YAAY,GAAG,YAAY,C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,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAA;IAC9F,MAAM,QAAQ,GAAG,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,CAAA;IAC5E,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,CAAA;AACvE,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAsB;IAC/C,MAAM,KAAK,GAAa,EAAE,CAAA;IAC1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1C,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAE,CAAA;QACnB,IAAI,CAAC,CAAC,IAAI,KAAK,WAAW;YAAE,SAAQ;QACpC,IAAI,CAAC,CAAC,SAAS,EAAE,IAAI,KAAK,UAAU;YAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;IACrE,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAED,SAAS,kBAAkB,CACzB,UAA6B,EAC7B,MAAc,EACd,YAAoB;IAEpB,MAAM,IAAI,GAAG,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,eAAe,GAAG,YAAY,EAAE,CAAA;IACnF,OAAO,cAAc,GAAG,CAAC,GAAG,UAAU,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;AACpE,CAAC"}
|
|
@@ -2,12 +2,14 @@ export { DomainPath, makeDomainPathType } from './domain';
|
|
|
2
2
|
export { ClassPath, makeClassPathType } from './class';
|
|
3
3
|
export { InterfacePath, makeInterfacePathType } from './interface';
|
|
4
4
|
export { MethodPath, makeMethodPathType } from './method';
|
|
5
|
+
export { FunctionPath, functionPathParseType, makeFunctionPathType } from './function';
|
|
6
|
+
export { ViewPath, viewPathParseType, makeViewPathType } from './view';
|
|
5
7
|
export { InstanceMethodPath, instanceMethodPathType } from './instance-method';
|
|
6
8
|
export { parseKernelMetaPath, tryParseKernelMetaPath } from './parse';
|
|
7
9
|
export { PathParseError } from './errors';
|
|
8
|
-
export { CLASS_PREFIX, INTERFACE_PREFIX } from './constants';
|
|
10
|
+
export { CLASS_PREFIX, INTERFACE_PREFIX, FUNCTION_PREFIX, VIEW_PREFIX } from './constants';
|
|
9
11
|
export { INSTALLED_IN, OF_DOMAIN, METHOD_OF, INSTANCE_OF } from '../edges';
|
|
10
12
|
export { DOMAIN_SEP, INSTANCE_SEP, DOMAIN_NAME_RE, MEMBER_SLUG_RE } from '../grammar/tokens';
|
|
11
13
|
export { SLUG_PROPERTY } from '#graph/nav/ast/slug';
|
|
12
|
-
export { domainPathSchema, classPathSchema, interfacePathSchema, methodPathSchema, instanceMethodPathSchema, } from './zod';
|
|
14
|
+
export { domainPathSchema, classPathSchema, interfacePathSchema, methodPathSchema, functionPathSchema, viewPathSchema, instanceMethodPathSchema, } from './zod';
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../domain/addressing/paths/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAClE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAC9E,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../domain/addressing/paths/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAClE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACtF,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACtE,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAC9E,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC1F,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAGnD,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,wBAAwB,GACzB,MAAM,OAAO,CAAA"}
|
|
@@ -3,13 +3,15 @@ export { DomainPath, makeDomainPathType } from './domain';
|
|
|
3
3
|
export { ClassPath, makeClassPathType } from './class';
|
|
4
4
|
export { InterfacePath, makeInterfacePathType } from './interface';
|
|
5
5
|
export { MethodPath, makeMethodPathType } from './method';
|
|
6
|
+
export { FunctionPath, functionPathParseType, makeFunctionPathType } from './function';
|
|
7
|
+
export { ViewPath, viewPathParseType, makeViewPathType } from './view';
|
|
6
8
|
export { InstanceMethodPath, instanceMethodPathType } from './instance-method';
|
|
7
9
|
export { parseKernelMetaPath, tryParseKernelMetaPath } from './parse';
|
|
8
10
|
export { PathParseError } from './errors';
|
|
9
|
-
export { CLASS_PREFIX, INTERFACE_PREFIX } from './constants';
|
|
11
|
+
export { CLASS_PREFIX, INTERFACE_PREFIX, FUNCTION_PREFIX, VIEW_PREFIX } from './constants';
|
|
10
12
|
export { INSTALLED_IN, OF_DOMAIN, METHOD_OF, INSTANCE_OF } from '../edges';
|
|
11
13
|
export { DOMAIN_SEP, INSTANCE_SEP, DOMAIN_NAME_RE, MEMBER_SLUG_RE } from '../grammar/tokens';
|
|
12
14
|
export { SLUG_PROPERTY } from '#graph/nav/ast/slug';
|
|
13
15
|
// ─── Zod factories ─────────────────────────────────────────
|
|
14
|
-
export { domainPathSchema, classPathSchema, interfacePathSchema, methodPathSchema, instanceMethodPathSchema, } from './zod';
|
|
16
|
+
export { domainPathSchema, classPathSchema, interfacePathSchema, methodPathSchema, functionPathSchema, viewPathSchema, instanceMethodPathSchema, } from './zod';
|
|
15
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../domain/addressing/paths/index.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AACl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MAAM,mBAAmB,CAAA;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEnD,8DAA8D;AAC9D,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,wBAAwB,GACzB,MAAM,OAAO,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../domain/addressing/paths/parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAkB,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../domain/addressing/paths/parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAkB,MAAM,iBAAiB,CAAA;AA0BtD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CASvD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAMjE"}
|
|
@@ -7,8 +7,10 @@ import { relativePathType } from '#graph/tree/path/relative';
|
|
|
7
7
|
import { KERNEL_META_PATH_GRAMMARS } from '../grammar/set';
|
|
8
8
|
import { classPathParseType } from './class';
|
|
9
9
|
import { domainPathParseType } from './domain';
|
|
10
|
+
import { functionPathParseType } from './function';
|
|
10
11
|
import { interfacePathParseType } from './interface';
|
|
11
12
|
import { methodPathParseType } from './method';
|
|
13
|
+
import { viewPathParseType } from './view';
|
|
12
14
|
const KERNEL_META_PATH_TYPES = [
|
|
13
15
|
absolutePathType,
|
|
14
16
|
relativePathType,
|
|
@@ -17,6 +19,8 @@ const KERNEL_META_PATH_TYPES = [
|
|
|
17
19
|
classPathParseType,
|
|
18
20
|
interfacePathParseType,
|
|
19
21
|
methodPathParseType,
|
|
22
|
+
functionPathParseType,
|
|
23
|
+
viewPathParseType,
|
|
20
24
|
];
|
|
21
25
|
/**
|
|
22
26
|
* Parse kernel-meta path strings without depending on the global path registry.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.js","sourceRoot":"","sources":["../../../../domain/addressing/paths/parse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"parse.js","sourceRoot":"","sources":["../../../../domain/addressing/paths/parse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,EAAE,kBAAkB,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
2
|
+
import type { PathType } from '#graph/nav/path';
|
|
3
|
+
import type { Step } from '#graph/nav/path/step';
|
|
4
|
+
import { Path } from '#graph/nav/path';
|
|
5
|
+
import { AbsolutePath } from '#graph/tree/path/absolute';
|
|
6
|
+
export interface ViewFields {
|
|
7
|
+
readonly domain: string;
|
|
8
|
+
readonly viewName: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ViewFromOptions {
|
|
11
|
+
readonly mount?: AbsolutePath;
|
|
12
|
+
/** Alias for `mount`. */
|
|
13
|
+
readonly parent?: AbsolutePath;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Composed address for a View member — an iframe-mountable `View` node attached
|
|
17
|
+
* to its domain by its own `of_domain` edge (slug `view.<name>`) rather than
|
|
18
|
+
* `method_of` a class. Same `[absolute, installed_in, of_domain]` shape as
|
|
19
|
+
* {@link ClassPath} / {@link FunctionPath}; the discriminator is the of_domain
|
|
20
|
+
* slug prefix (`view.` instead of `class.` / `function.`).
|
|
21
|
+
*
|
|
22
|
+
* Resolves to the View node directly (which carries the iframe URL in its
|
|
23
|
+
* `Function.binding` and its `UI.handshake`), so `/:<domain>:view.<name>`
|
|
24
|
+
* dispatches the same node reached via its tree path — the resolver is
|
|
25
|
+
* node-centric and never branches on the path family.
|
|
26
|
+
*/
|
|
27
|
+
export declare class ViewPath extends Path {
|
|
28
|
+
readonly mount: AbsolutePath;
|
|
29
|
+
readonly domain: string;
|
|
30
|
+
readonly viewName: string;
|
|
31
|
+
constructor(steps: readonly Step[], raw: string, mount: AbsolutePath, domain: string, viewName: string);
|
|
32
|
+
/** @internal Narrow a base Path into ViewPath without re-parsing. */
|
|
33
|
+
static _fromPath(path: Path): ViewPath;
|
|
34
|
+
static parse(raw: string): ViewPath;
|
|
35
|
+
static tryParse(raw: string): ViewPath | null;
|
|
36
|
+
/** Build a ViewPath from typed fields. */
|
|
37
|
+
static from(fields: ViewFields, options?: ViewFromOptions): ViewPath;
|
|
38
|
+
/** Qualified `of_domain` slug — `view.${viewName}`. */
|
|
39
|
+
get member(): string;
|
|
40
|
+
/** Alias of {@link mount}. */
|
|
41
|
+
get parent(): AbsolutePath;
|
|
42
|
+
get isMounted(): boolean;
|
|
43
|
+
get isRelative(): false;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Build a {@link PathType} for `ViewPath` bound to `d`, claiming `d`'s `View`
|
|
47
|
+
* meta-class. Unlike the `Function` class (claimed by BOTH MethodPath and
|
|
48
|
+
* FunctionPath), the `View` class is claimed ONLY by ViewPath, so this is the
|
|
49
|
+
* sole entry the registry indexes under it — no multi-type co-claim. Reverse
|
|
50
|
+
* projection (get-tree) recovers a view member's `/:<origin>:view.<name>` form
|
|
51
|
+
* from its `of_domain` edge.
|
|
52
|
+
*/
|
|
53
|
+
export declare function makeViewPathType(d: CompiledDomain): PathType<ViewPath>;
|
|
54
|
+
/**
|
|
55
|
+
* Parse-type for {@link ViewPath}. `class: null` here (the parse-only set in
|
|
56
|
+
* `paths/parse.ts`, used by `extractDomainSlug`, dispatches on segment/shape, not
|
|
57
|
+
* class); the global registry registers the class-bound {@link makeViewPathType}
|
|
58
|
+
* variant. Detection is shape-driven (the `view.` slug prefix), so the null class
|
|
59
|
+
* here never shadows the other of_domain path families.
|
|
60
|
+
*/
|
|
61
|
+
export declare const viewPathParseType: PathType<ViewPath>;
|
|
62
|
+
//# sourceMappingURL=view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../domain/addressing/paths/view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAGhD,OAAO,EAA2B,IAAI,EAAkB,MAAM,iBAAiB,CAAA;AAC/E,OAAO,EAAmB,Y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AAC,CAKtE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,QAAQ,CAMhD,CAAA"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { parseStepsWith } from '#graph/nav/grammar';
|
|
2
|
+
import { matchesChain, parsePath, Path, PathParseError } from '#graph/nav/path';
|
|
3
|
+
import { absoluteSegment, AbsolutePath, SEPARATOR_CHAR } from '#graph/tree/path/absolute';
|
|
4
|
+
import { KERNEL_META_PATH_GRAMMARS } from '../grammar/set';
|
|
5
|
+
import { DOMAIN_SEP } from '../grammar/tokens';
|
|
6
|
+
import { installedInSegment } from '../segments/installed-in';
|
|
7
|
+
import { ofDomainSegment } from '../segments/of-domain';
|
|
8
|
+
import { VIEW_PREFIX } from './constants';
|
|
9
|
+
const SEGMENTS = [absoluteSegment, installedInSegment, ofDomainSegment];
|
|
10
|
+
/**
|
|
11
|
+
* Composed address for a View member — an iframe-mountable `View` node attached
|
|
12
|
+
* to its domain by its own `of_domain` edge (slug `view.<name>`) rather than
|
|
13
|
+
* `method_of` a class. Same `[absolute, installed_in, of_domain]` shape as
|
|
14
|
+
* {@link ClassPath} / {@link FunctionPath}; the discriminator is the of_domain
|
|
15
|
+
* slug prefix (`view.` instead of `class.` / `function.`).
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the View node directly (which carries the iframe URL in its
|
|
18
|
+
* `Function.binding` and its `UI.handshake`), so `/:<domain>:view.<name>`
|
|
19
|
+
* dispatches the same node reached via its tree path — the resolver is
|
|
20
|
+
* node-centric and never branches on the path family.
|
|
21
|
+
*/
|
|
22
|
+
export class ViewPath extends Path {
|
|
23
|
+
mount;
|
|
24
|
+
domain;
|
|
25
|
+
viewName;
|
|
26
|
+
constructor(steps, raw, mount, domain, viewName) {
|
|
27
|
+
super(steps, raw);
|
|
28
|
+
this.mount = mount;
|
|
29
|
+
this.domain = domain;
|
|
30
|
+
this.viewName = viewName;
|
|
31
|
+
}
|
|
32
|
+
// ─── Internal hooks ──────────────────────────────────────
|
|
33
|
+
/** @internal Narrow a base Path into ViewPath without re-parsing. */
|
|
34
|
+
static _fromPath(path) {
|
|
35
|
+
return buildViewPath(path.steps, path.raw);
|
|
36
|
+
}
|
|
37
|
+
// ─── Static factories ────────────────────────────────────
|
|
38
|
+
static parse(raw) {
|
|
39
|
+
const p = parsePath(raw);
|
|
40
|
+
if (!(p instanceof ViewPath)) {
|
|
41
|
+
throw new PathParseError(raw, [
|
|
42
|
+
{ kind: 'not-view', message: 'Path is not a view path', position: 0 },
|
|
43
|
+
]);
|
|
44
|
+
}
|
|
45
|
+
return p;
|
|
46
|
+
}
|
|
47
|
+
static tryParse(raw) {
|
|
48
|
+
try {
|
|
49
|
+
return ViewPath.parse(raw);
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/** Build a ViewPath from typed fields. */
|
|
56
|
+
static from(fields, options) {
|
|
57
|
+
const mount = options?.mount ?? options?.parent ?? AbsolutePath.root();
|
|
58
|
+
const raw = serializeFromParts(mount.slugs, fields.domain, fields.viewName);
|
|
59
|
+
// Lex against the kernel-meta grammar set explicitly — bypasses
|
|
60
|
+
// both the global GrammarRegistry and PathTypeRegistry. Lets this
|
|
61
|
+
// run during bootstrap *before* the kernel-meta navigation has
|
|
62
|
+
// been registered (compileDomain produces these refs while still
|
|
63
|
+
// assembling the kernel-meta domain).
|
|
64
|
+
const result = parseStepsWith(raw, KERNEL_META_PATH_GRAMMARS);
|
|
65
|
+
if (result.errors.length > 0) {
|
|
66
|
+
throw new PathParseError(raw, result.errors);
|
|
67
|
+
}
|
|
68
|
+
return buildViewPath(result.steps, raw);
|
|
69
|
+
}
|
|
70
|
+
/** Qualified `of_domain` slug — `view.${viewName}`. */
|
|
71
|
+
get member() {
|
|
72
|
+
return `${VIEW_PREFIX}${this.viewName}`;
|
|
73
|
+
}
|
|
74
|
+
/** Alias of {@link mount}. */
|
|
75
|
+
get parent() {
|
|
76
|
+
return this.mount;
|
|
77
|
+
}
|
|
78
|
+
get isMounted() {
|
|
79
|
+
return !this.mount.isRoot;
|
|
80
|
+
}
|
|
81
|
+
get isRelative() {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Build a {@link PathType} for `ViewPath` bound to `d`, claiming `d`'s `View`
|
|
87
|
+
* meta-class. Unlike the `Function` class (claimed by BOTH MethodPath and
|
|
88
|
+
* FunctionPath), the `View` class is claimed ONLY by ViewPath, so this is the
|
|
89
|
+
* sole entry the registry indexes under it — no multi-type co-claim. Reverse
|
|
90
|
+
* projection (get-tree) recovers a view member's `/:<origin>:view.<name>` form
|
|
91
|
+
* from its `of_domain` edge.
|
|
92
|
+
*/
|
|
93
|
+
export function makeViewPathType(d) {
|
|
94
|
+
return {
|
|
95
|
+
...viewPathParseType,
|
|
96
|
+
class: d.$.c('View').path.class.raw,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Parse-type for {@link ViewPath}. `class: null` here (the parse-only set in
|
|
101
|
+
* `paths/parse.ts`, used by `extractDomainSlug`, dispatches on segment/shape, not
|
|
102
|
+
* class); the global registry registers the class-bound {@link makeViewPathType}
|
|
103
|
+
* variant. Detection is shape-driven (the `view.` slug prefix), so the null class
|
|
104
|
+
* here never shadows the other of_domain path families.
|
|
105
|
+
*/
|
|
106
|
+
export const viewPathParseType = {
|
|
107
|
+
name: 'ViewPath',
|
|
108
|
+
class: null,
|
|
109
|
+
segments: SEGMENTS,
|
|
110
|
+
matches: matchesViewShape,
|
|
111
|
+
build: buildViewPath,
|
|
112
|
+
};
|
|
113
|
+
function matchesViewShape(steps) {
|
|
114
|
+
if (!matchesChain(SEGMENTS, steps))
|
|
115
|
+
return false;
|
|
116
|
+
const last = steps[steps.length - 1];
|
|
117
|
+
if (!last || last.kind !== 'traversal' || last.predicate?.kind !== 'property')
|
|
118
|
+
return false;
|
|
119
|
+
const v = last.predicate.value;
|
|
120
|
+
if (!v.startsWith(VIEW_PREFIX))
|
|
121
|
+
return false;
|
|
122
|
+
const name = v.slice(VIEW_PREFIX.length);
|
|
123
|
+
return name.length > 0 && !name.includes('.');
|
|
124
|
+
}
|
|
125
|
+
function buildViewPath(steps, raw) {
|
|
126
|
+
const ofDomainStep = steps[steps.length - 1];
|
|
127
|
+
const installedStep = steps[steps.length - 2];
|
|
128
|
+
if (!ofDomainStep ||
|
|
129
|
+
ofDomainStep.kind !== 'traversal' ||
|
|
130
|
+
ofDomainStep.predicate?.kind !== 'property' ||
|
|
131
|
+
!installedStep ||
|
|
132
|
+
installedStep.kind !== 'traversal' ||
|
|
133
|
+
installedStep.predicate?.kind !== 'property') {
|
|
134
|
+
throw new PathParseError(raw, [
|
|
135
|
+
{ kind: 'not-view', message: 'ViewPath shape mismatch', position: 0 },
|
|
136
|
+
]);
|
|
137
|
+
}
|
|
138
|
+
const viewName = ofDomainStep.predicate.value.slice(VIEW_PREFIX.length);
|
|
139
|
+
const domain = installedStep.predicate.value;
|
|
140
|
+
const mountSlugs = extractMountSlugs(steps);
|
|
141
|
+
const mount = mountSlugs.length === 0 ? AbsolutePath.root() : AbsolutePath.from(...mountSlugs);
|
|
142
|
+
const finalRaw = raw || serializeFromParts(mountSlugs, domain, viewName);
|
|
143
|
+
return new ViewPath(steps, finalRaw, mount, domain, viewName);
|
|
144
|
+
}
|
|
145
|
+
function extractMountSlugs(steps) {
|
|
146
|
+
const slugs = [];
|
|
147
|
+
for (let i = 0; i < steps.length - 2; i++) {
|
|
148
|
+
const s = steps[i];
|
|
149
|
+
if (s.kind !== 'traversal')
|
|
150
|
+
continue;
|
|
151
|
+
if (s.predicate?.kind === 'property')
|
|
152
|
+
slugs.push(s.predicate.value);
|
|
153
|
+
}
|
|
154
|
+
return slugs;
|
|
155
|
+
}
|
|
156
|
+
function serializeFromParts(mountSlugs, domain, viewName) {
|
|
157
|
+
const tail = `${DOMAIN_SEP}${domain}${DOMAIN_SEP}${VIEW_PREFIX}${viewName}`;
|
|
158
|
+
return SEPARATOR_CHAR + [...mountSlugs, tail].join(SEPARATOR_CHAR);
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../domain/addressing/paths/view.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC/E,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAazC,MAAM,QAAQ,GAAG,CAAC,eAAe,EAAE,kBAAkB,EAAE,eAAe,CAAU,CAAA;AAEhF;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;IACvB,KAAK,CAAc;IACnB,MAAM,CAAQ;IACd,QAAQ,CAAQ;IAEzB,YACE,KAAsB,EACtB,GAAW,EACX,KAAmB,EACnB,MAAc,EACd,QAAgB;QAEhB,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IAC1B,CAAC;IAED,4DAA4D;IAE5D,qEAAqE;IACrE,MAAM,CAAC,SA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AAI,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IACxE,OAAO,IAAI,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;AAC/D,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAsB;IAC/C,MAAM,KAAK,GAAa,EAAE,CAAA;IAC1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1C,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAE,CAAA;QACnB,IAAI,CAAC,CAAC,IAAI,KAAK,WAAW;YAAE,SAAQ;QACpC,IAAI,CAAC,CAAC,SAAS,EAAE,IAAI,KAAK,UAAU;YAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;IACrE,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAED,SAAS,kBAAkB,CACzB,UAA6B,EAC7B,MAAc,EACd,QAAgB;IAEhB,MAAM,IAAI,GAAG,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,EAAE,CAAA;IAC3E,OAAO,cAAc,GAAG,CAAC,GAAG,UAAU,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;AACpE,CAAC"}
|
|
@@ -4,13 +4,17 @@
|
|
|
4
4
|
* See `#graph/nav/path/zod` for the `pathLike` factory and the base
|
|
5
5
|
* `pathSchema` — this file only owns the domain-flavored subtypes.
|
|
6
6
|
*/
|
|
7
|
-
import { ClassPath, DomainPath, InstanceMethodPath, InterfacePath, MethodPath } from '#domain/addressing/paths';
|
|
7
|
+
import { ClassPath, DomainPath, FunctionPath, InstanceMethodPath, InterfacePath, MethodPath, ViewPath } from '#domain/addressing/paths';
|
|
8
8
|
/** DomainPath or any subclass (ClassPath, InterfacePath, MethodPath). */
|
|
9
9
|
export declare const domainPathSchema: () => import("zod").ZodType<DomainPath, string | DomainPath, import("zod/v4/core").$ZodTypeInternals<DomainPath, string | DomainPath>>;
|
|
10
10
|
/** ClassPath only. */
|
|
11
11
|
export declare const classPathSchema: () => import("zod").ZodType<ClassPath, string | ClassPath, import("zod/v4/core").$ZodTypeInternals<ClassPath, string | ClassPath>>;
|
|
12
12
|
/** InterfacePath only. */
|
|
13
13
|
export declare const interfacePathSchema: () => import("zod").ZodType<InterfacePath, string | InterfacePath, import("zod/v4/core").$ZodTypeInternals<InterfacePath, string | InterfacePath>>;
|
|
14
|
+
/** FunctionPath only */
|
|
15
|
+
export declare const functionPathSchema: () => import("zod").ZodType<FunctionPath, string | FunctionPath, import("zod/v4/core").$ZodTypeInternals<FunctionPath, string | FunctionPath>>;
|
|
16
|
+
/** ViewPath only */
|
|
17
|
+
export declare const viewPathSchema: () => import("zod").ZodType<ViewPath, string | ViewPath, import("zod/v4/core").$ZodTypeInternals<ViewPath, string | ViewPath>>;
|
|
14
18
|
/** MethodPath only. */
|
|
15
19
|
export declare const methodPathSchema: () => import("zod").ZodType<MethodPath, string | MethodPath, import("zod/v4/core").$ZodTypeInternals<MethodPath, string | MethodPath>>;
|
|
16
20
|
/** InstanceMethodPath only (tail `::methodName`). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../../domain/addressing/paths/zod.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,UAAU,
|
|
1
|
+
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../../domain/addressing/paths/zod.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,QAAQ,EACT,MAAM,0BAA0B,CAAA;AAGjC,yEAAyE;AACzE,eAAO,MAAM,gBAAgB,wIAAoD,CAAA;AAEjF,sBAAsB;AACtB,eAAO,MAAM,eAAe,oIAAwD,CAAA;AAEpF,0BAA0B;AAC1B,eAAO,MAAM,mBAAmB,oJAAoE,CAAA;AAEpG,wBAAwB;AACxB,eAAO,MAAM,kBAAkB,gJAAiE,CAAA;AAEhG,oBAAoB;AACpB,eAAO,MAAM,cAAc,gIAAqD,CAAA;AAEhF,uBAAuB;AACvB,eAAO,MAAM,gBAAgB,wIAA2D,CAAA;AAExF,qDAAqD;AACrD,eAAO,MAAM,wBAAwB,wKAIpC,CAAA"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* See `#graph/nav/path/zod` for the `pathLike` factory and the base
|
|
5
5
|
* `pathSchema` — this file only owns the domain-flavored subtypes.
|
|
6
6
|
*/
|
|
7
|
-
import { ClassPath, DomainPath, InstanceMethodPath, InterfacePath, MethodPath, } from '#domain/addressing/paths';
|
|
7
|
+
import { ClassPath, DomainPath, FunctionPath, InstanceMethodPath, InterfacePath, MethodPath, ViewPath, } from '#domain/addressing/paths';
|
|
8
8
|
import { pathLike } from '#graph/nav/path/zod';
|
|
9
9
|
/** DomainPath or any subclass (ClassPath, InterfacePath, MethodPath). */
|
|
10
10
|
export const domainPathSchema = pathLike(DomainPath, 'DomainPath', 'path:domain');
|
|
@@ -12,6 +12,10 @@ export const domainPathSchema = pathLike(DomainPath, 'DomainPath', 'path:domain'
|
|
|
12
12
|
export const classPathSchema = pathLike(ClassPath, 'ClassPath', 'path:domain.class');
|
|
13
13
|
/** InterfacePath only. */
|
|
14
14
|
export const interfacePathSchema = pathLike(InterfacePath, 'InterfacePath', 'path:domain.interface');
|
|
15
|
+
/** FunctionPath only */
|
|
16
|
+
export const functionPathSchema = pathLike(FunctionPath, 'FunctionPath', 'path:domain.function');
|
|
17
|
+
/** ViewPath only */
|
|
18
|
+
export const viewPathSchema = pathLike(ViewPath, 'ViewPath', 'path:domain.view');
|
|
15
19
|
/** MethodPath only. */
|
|
16
20
|
export const methodPathSchema = pathLike(MethodPath, 'MethodPath', 'path:domain.method');
|
|
17
21
|
/** InstanceMethodPath only (tail `::methodName`). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.js","sourceRoot":"","sources":["../../../../domain/addressing/paths/zod.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,UAAU,
|
|
1
|
+
{"version":3,"file":"zod.js","sourceRoot":"","sources":["../../../../domain/addressing/paths/zod.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,QAAQ,GACT,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C,yEAAyE;AACzE,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,UAAU,EAAE,YAAY,EAAE,aAAa,CAAC,CAAA;AAEjF,sBAAsB;AACtB,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,SAAS,EAAE,WAAW,EAAE,mBAAmB,CAAC,CAAA;AAEpF,0BAA0B;AAC1B,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,aAAa,EAAE,eAAe,EAAE,uBAAuB,CAAC,CAAA;AAEpG,wBAAwB;AACxB,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,YAAY,EAAE,cAAc,EAAE,sBAAsB,CAAC,CAAA;AAEhG,oBAAoB;AACpB,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,QAAQ,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAAA;AAEhF,uBAAuB;AACvB,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,UAAU,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA;AAExF,qDAAqD;AACrD,MAAM,CAAC,MAAM,wBAAwB,GAAG,QAAQ,CAC9C,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,CACvB,CAAA"}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { Schema } from '@astrale-os/kernel-dsl';
|
|
12
12
|
import type { Layout } from '#domain/addressing/layout/types';
|
|
13
|
+
import type { FunctionDeclarations } from '#domain/compile/function/types';
|
|
14
|
+
import type { ViewDeclarations } from '#domain/compile/view/types';
|
|
13
15
|
import type { DomainOrigin } from '#domain/origin';
|
|
14
16
|
import type { DomainRefs } from './types';
|
|
15
17
|
/**
|
|
@@ -28,6 +30,6 @@ import type { DomainRefs } from './types';
|
|
|
28
30
|
interface CorePaths {
|
|
29
31
|
readonly paths: Readonly<Record<string, unknown>>;
|
|
30
32
|
}
|
|
31
|
-
export declare function buildStructuredRefs<S extends Schema>(schema: S, origin: DomainOrigin, layout: Layout, compiledCore?: CorePaths): DomainRefs<S>;
|
|
33
|
+
export declare function buildStructuredRefs<S extends Schema>(schema: S, origin: DomainOrigin, layout: Layout, compiledCore?: CorePaths, functions?: FunctionDeclarations, views?: ViewDeclarations): DomainRefs<S>;
|
|
32
34
|
export {};
|
|
33
35
|
//# sourceMappingURL=build.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../domain/addressing/refs/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAgC,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAGlF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AASlD,OAAO,KAAK,EACV,UAAU,EASX,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../domain/addressing/refs/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAgC,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAGlF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAE7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AASlD,OAAO,KAAK,EACV,UAAU,EASX,MAAM,SAAS,CAAA;AAQhB;;;;;;;;;;;GAWG;AACH,wFAAwF;AACxF,UAAU,SAAS;IACjB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CAClD;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAClD,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,SAAS,EACxB,SAAS,CAAC,EAAE,oBAAoB,EAChC,KAAK,CAAC,EAAE,gBAAgB,GACvB,UAAU,CAAC,CAAC,CAAC,CA0Df"}
|
|
@@ -10,20 +10,33 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { Key } from '#domain/addressing/keys/key';
|
|
12
12
|
import { ClassPath } from '#domain/addressing/paths/class';
|
|
13
|
-
import { CLASS_PREFIX, INTERFACE_PREFIX } from '#domain/addressing/paths/constants';
|
|
14
13
|
import { DomainPath } from '#domain/addressing/paths/domain';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
14
|
+
import { FunctionPath } from '#domain/addressing/paths/function';
|
|
15
|
+
import { ViewPath } from '#domain/addressing/paths/view';
|
|
17
16
|
import { RefCollisionError } from './errors';
|
|
18
17
|
import { Ref } from './ref';
|
|
19
|
-
|
|
18
|
+
import { memberSemanticPath, methodSemanticPath } from './semantic-path';
|
|
19
|
+
export function buildStructuredRefs(schema, origin, layout, compiledCore, functions, views) {
|
|
20
20
|
const seen = new Set();
|
|
21
21
|
const interfaces = buildGroupRefs('interface', schema.interfaces, origin, layout, seen);
|
|
22
22
|
const classes = buildGroupRefs('class', schema.classes, origin, layout, seen);
|
|
23
|
-
|
|
23
|
+
// Functions, views and core are the same leaf shape (ref → {ref, key, path:
|
|
24
|
+
// {domain, absolute}}) — they differ only in namespace and which typed
|
|
25
|
+
// semantic path they carry.
|
|
26
|
+
const functionRefs = functions
|
|
27
|
+
? buildLeafMemberRefs('function', Object.values(functions).map((d) => d.slug), origin, layout, seen, (o, slug) => FunctionPath.from({ domain: o, functionName: slug }))
|
|
28
|
+
: {};
|
|
29
|
+
const viewRefs = views
|
|
30
|
+
? buildLeafMemberRefs('view', Object.values(views).map((d) => d.slug), origin, layout, seen, (o, slug) => ViewPath.from({ domain: o, viewName: slug }))
|
|
31
|
+
: {};
|
|
32
|
+
const core = compiledCore
|
|
33
|
+
? buildLeafMemberRefs('core', Object.keys(compiledCore.paths), origin, layout, seen, (o, _slug, ref) => DomainPath.from({ domain: o, member: ref.qualified }))
|
|
34
|
+
: {};
|
|
24
35
|
return Object.freeze({
|
|
25
36
|
interfaces: Object.freeze(interfaces),
|
|
26
37
|
classes: Object.freeze(classes),
|
|
38
|
+
functions: Object.freeze(functionRefs),
|
|
39
|
+
views: Object.freeze(viewRefs),
|
|
27
40
|
core: Object.freeze(core),
|
|
28
41
|
});
|
|
29
42
|
}
|
|
@@ -94,18 +107,29 @@ function buildPropertyEntries(ns, owner, def, origin, seen) {
|
|
|
94
107
|
}
|
|
95
108
|
return out;
|
|
96
109
|
}
|
|
97
|
-
|
|
110
|
+
/**
|
|
111
|
+
* Build refs for leaf members — standalone functions (`function.<slug>`), views
|
|
112
|
+
* (`view.<slug>`), and core entries (`core.<slug>`). A leaf member is attached to
|
|
113
|
+
* the domain (functions/views via `of_domain`) and laid out by `layout`; it has no
|
|
114
|
+
* methods or properties, so its ref is just `{ ref, key, path: { domain, absolute } }`.
|
|
115
|
+
*
|
|
116
|
+
* The three kinds differ only in namespace and which typed semantic path they
|
|
117
|
+
* carry — supplied by `makeSemanticPath`, which receives the original slug (the
|
|
118
|
+
* result key) and the constructed `Ref` (for kinds whose path needs the
|
|
119
|
+
* namespace-qualified form, e.g. core's `DomainPath`).
|
|
120
|
+
*/
|
|
121
|
+
function buildLeafMemberRefs(ns, slugs, origin, layout, seen, makeSemanticPath) {
|
|
98
122
|
const result = {};
|
|
99
|
-
for (const
|
|
100
|
-
const ref = Ref.member(
|
|
101
|
-
const
|
|
102
|
-
assertUnique(seen,
|
|
123
|
+
for (const slug of slugs) {
|
|
124
|
+
const ref = Ref.member(ns, slug);
|
|
125
|
+
const refStr = ref.toString();
|
|
126
|
+
assertUnique(seen, refStr);
|
|
103
127
|
const refPath = {
|
|
104
|
-
domain:
|
|
128
|
+
domain: makeSemanticPath(origin, slug, ref),
|
|
105
129
|
absolute: layout(ref),
|
|
106
130
|
};
|
|
107
|
-
result[
|
|
108
|
-
ref:
|
|
131
|
+
result[slug] = Object.freeze({
|
|
132
|
+
ref: refStr,
|
|
109
133
|
key: Key.of(origin, ref).toString(),
|
|
110
134
|
path: Object.freeze(refPath),
|
|
111
135
|
});
|
|
@@ -118,38 +142,4 @@ function assertUnique(seen, ref) {
|
|
|
118
142
|
}
|
|
119
143
|
seen.add(ref);
|
|
120
144
|
}
|
|
121
|
-
// ── Path constructors that dispatch on the member's namespace prefix ──────
|
|
122
|
-
/**
|
|
123
|
-
* Build the typed semantic path for a class/interface/edge member.
|
|
124
|
-
*
|
|
125
|
-
* `qualified` is the namespace-prefixed slug (`class.X`, `interface.X`).
|
|
126
|
-
* `name` is the bare member name (`X`). Returns the appropriate typed path
|
|
127
|
-
* — a ClassPath, InterfacePath, or DomainPath fallback for unknown
|
|
128
|
-
* prefixes (e.g., `core.X`).
|
|
129
|
-
*/
|
|
130
|
-
function memberSemanticPath(origin, qualified, name) {
|
|
131
|
-
if (qualified.startsWith(CLASS_PREFIX)) {
|
|
132
|
-
return ClassPath.from({ domain: origin, className: name });
|
|
133
|
-
}
|
|
134
|
-
if (qualified.startsWith(INTERFACE_PREFIX)) {
|
|
135
|
-
return InterfacePath.from({ domain: origin, interfaceName: name });
|
|
136
|
-
}
|
|
137
|
-
return DomainPath.from({ domain: origin, member: qualified });
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Build the typed semantic path for a method on a class or interface.
|
|
141
|
-
*
|
|
142
|
-
* `qualified` is the parent member's namespace-prefixed slug
|
|
143
|
-
* (`class.X` / `interface.X`). `child` is the bare method name.
|
|
144
|
-
*/
|
|
145
|
-
function methodSemanticPath(origin, qualified, child) {
|
|
146
|
-
// Caller passes the qualified `class.X` / `interface.X` form;
|
|
147
|
-
// `MethodPath` stores the field verbatim and emits `:qualified:` in the
|
|
148
|
-
// raw — preserving the namespace-qualified form for compile-domain
|
|
149
|
-
// semantic refs (`/:dom:interface.Foo:method`).
|
|
150
|
-
const memberKind = qualified.startsWith(INTERFACE_PREFIX)
|
|
151
|
-
? 'interface'
|
|
152
|
-
: 'class';
|
|
153
|
-
return MethodPath.from({ domain: origin, member: qualified, memberKind, method: child });
|
|
154
|
-
}
|
|
155
145
|
//# sourceMappingURL=build.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../domain/addressing/refs/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../domain/addressing/refs/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAYH,OAAO,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AA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,CAAA;IACJ,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAED,SAAS,YAAY,CAAC,IAAiB,EAAE,GAAW;IAClD,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QAClB,MAAM,IAAI,iBAAiB,CAAC,GAAG,CAAC,CAAA;IAClC,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AACf,CAAC"}
|
|
@@ -11,7 +11,8 @@ import type { DomainRefs, RefEntry } from './types';
|
|
|
11
11
|
/**
|
|
12
12
|
* Yield every ref from a DomainRefs as a rich entry.
|
|
13
13
|
*
|
|
14
|
-
* Order: interfaces (member then methods), classes (member then methods),
|
|
14
|
+
* Order: interfaces (member then methods), classes (member then methods),
|
|
15
|
+
* functions, views, core.
|
|
15
16
|
*/
|
|
16
17
|
export declare function iterateRefs(refs: DomainRefs): Generator<RefEntry>;
|
|
17
18
|
//# sourceMappingURL=iterate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iterate.d.ts","sourceRoot":"","sources":["../../../../domain/addressing/refs/iterate.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAkB,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEnE
|
|
1
|
+
{"version":3,"file":"iterate.d.ts","sourceRoot":"","sources":["../../../../domain/addressing/refs/iterate.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAkB,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEnE;;;;;GAKG;AACH,wBAAiB,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,SAAS,CAAC,QAAQ,CAAC,CAMlE"}
|