@astrale-os/sdk 0.3.0 → 0.4.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/package.json +1 -1
- package/dist/deploy/hash-spec.d.ts +0 -9
- package/dist/deploy/hash-spec.d.ts.map +0 -1
- package/dist/deploy/hash-spec.js +0 -29
- package/dist/deploy/hash-spec.js.map +0 -1
- package/dist/domain/extend-core.d.ts +0 -49
- package/dist/domain/extend-core.d.ts.map +0 -1
- package/dist/domain/extend-core.js +0 -190
- package/dist/domain/extend-core.js.map +0 -1
- package/dist/server/worker-meta.d.ts +0 -6
- package/dist/server/worker-meta.d.ts.map +0 -1
- package/dist/server/worker-meta.js +0 -10
- package/dist/server/worker-meta.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hash a `spec.json` file deterministically. Only the schema payload
|
|
3
|
-
* (`nodes` + `edges`) is hashed — the `meta` block carries `builtAt`
|
|
4
|
-
* timestamps that would poison drift detection.
|
|
5
|
-
*
|
|
6
|
-
* Returns `sha256:<hex>`.
|
|
7
|
-
*/
|
|
8
|
-
export declare function hashSpecFile(path: string): string;
|
|
9
|
-
//# sourceMappingURL=hash-spec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hash-spec.d.ts","sourceRoot":"","sources":["../../src/deploy/hash-spec.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKjD"}
|
package/dist/deploy/hash-spec.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto';
|
|
2
|
-
import { readFileSync } from 'node:fs';
|
|
3
|
-
const HASH_ALGORITHM = 'sha256';
|
|
4
|
-
/**
|
|
5
|
-
* Hash a `spec.json` file deterministically. Only the schema payload
|
|
6
|
-
* (`nodes` + `edges`) is hashed — the `meta` block carries `builtAt`
|
|
7
|
-
* timestamps that would poison drift detection.
|
|
8
|
-
*
|
|
9
|
-
* Returns `sha256:<hex>`.
|
|
10
|
-
*/
|
|
11
|
-
export function hashSpecFile(path) {
|
|
12
|
-
const raw = readFileSync(path, 'utf-8');
|
|
13
|
-
const parsed = JSON.parse(raw);
|
|
14
|
-
const canonical = canonicalJson({ nodes: parsed.nodes ?? [], edges: parsed.edges ?? [] });
|
|
15
|
-
return `${HASH_ALGORITHM}:${createHash(HASH_ALGORITHM).update(canonical).digest('hex')}`;
|
|
16
|
-
}
|
|
17
|
-
function canonicalJson(value) {
|
|
18
|
-
if (value === null || typeof value !== 'object')
|
|
19
|
-
return JSON.stringify(value);
|
|
20
|
-
if (Array.isArray(value))
|
|
21
|
-
return '[' + value.map(canonicalJson).join(',') + ']';
|
|
22
|
-
const keys = Object.keys(value).sort();
|
|
23
|
-
return ('{' +
|
|
24
|
-
keys
|
|
25
|
-
.map((k) => JSON.stringify(k) + ':' + canonicalJson(value[k]))
|
|
26
|
-
.join(',') +
|
|
27
|
-
'}');
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=hash-spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hash-spec.js","sourceRoot":"","sources":["../../src/deploy/hash-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,MAAM,cAAc,GAAG,QAAQ,CAAA;AAE/B;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY;IACvC,MAAM,GAAG,GAAG,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACvC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAyC,CAAA;IACtE,MAAM,SAAS,GAAG,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC,CAAA;IACzF,OAAO,GAAG,cAAc,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAA;AAC1F,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACnC,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;IAC7E,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA;IAC/E,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,KAAgC,CAAC,CAAC,IAAI,EAAE,CAAA;IACjE,OAAO,CACL,GAAG;QACH,IAAI;aACD,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,aAAa,CAAE,KAAiC,CAAC,CAAC,CAAC,CAAC,CAAC;aAC1F,IAAI,CAAC,GAAG,CAAC;QACZ,GAAG,CACJ,CAAA;AACH,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Build an augmented `Core<S>` that includes auto-materialized View and
|
|
3
|
-
* standalone-function nodes (one per entry in `defineRemoteDomain`'s `views` /
|
|
4
|
-
* `remoteFunctions` config), plus their parent Folder + optional `view_for`
|
|
5
|
-
* edges. Returns the resolved effective bindings alongside so callers don't
|
|
6
|
-
* recompute them.
|
|
7
|
-
*
|
|
8
|
-
* Standalone callables (the former `RemoteFunction` class) are materialized as
|
|
9
|
-
* the canonical kernel `Function` node class — "remote" is just a `binding`,
|
|
10
|
-
* not a distinct kind, so there is no per-domain class to configure.
|
|
11
|
-
*
|
|
12
|
-
* Conflicts: if the user core already declares a top-level node at
|
|
13
|
-
* `<viewsFolder>` or `<functionsFolder>`, throws — the auto-materialization
|
|
14
|
-
* reserves those slugs.
|
|
15
|
-
*/
|
|
16
|
-
import type { FunctionBinding } from '@astrale-os/kernel-api/routed';
|
|
17
|
-
import type { AnyEdgeDef, AnyNodeDef, Core, Schema } from '@astrale-os/kernel-dsl';
|
|
18
|
-
import type { AnyRemoteFunctionDef } from '../define/remote-function';
|
|
19
|
-
import type { ViewDef } from '../define/view';
|
|
20
|
-
export declare const DEFAULT_VIEWS_FOLDER = "views";
|
|
21
|
-
export declare const DEFAULT_FUNCTIONS_FOLDER = "functions";
|
|
22
|
-
export type ExtendCoreConfig = {
|
|
23
|
-
schema: Schema;
|
|
24
|
-
origin: string;
|
|
25
|
-
userCore?: Core;
|
|
26
|
-
/**
|
|
27
|
-
* The worker's serving URL — the base every auto-materialized binding
|
|
28
|
-
* resolves against. OMITTED at define time (the URL is known only to the
|
|
29
|
-
* spec producers): the aux nodes then materialize structure-only (paths,
|
|
30
|
-
* names, refs — what identity/subs resolution needs) with no `binding`
|
|
31
|
-
* stamped and empty binding maps. Every install graph comes from a
|
|
32
|
-
* `materializeRemoteDomain(domain, url)` call where it is present.
|
|
33
|
-
*/
|
|
34
|
-
url?: string;
|
|
35
|
-
viewClass?: AnyNodeDef;
|
|
36
|
-
viewForEdgeClass?: AnyEdgeDef;
|
|
37
|
-
viewsFolder?: string;
|
|
38
|
-
views?: Record<string, ViewDef<any>>;
|
|
39
|
-
functionsFolder?: string;
|
|
40
|
-
remoteFunctions?: Record<string, AnyRemoteFunctionDef>;
|
|
41
|
-
};
|
|
42
|
-
export type ExtendCoreResult = {
|
|
43
|
-
core: Core;
|
|
44
|
-
viewBindings: Record<string, FunctionBinding>;
|
|
45
|
-
remoteFunctionBindings: Record<string, FunctionBinding>;
|
|
46
|
-
};
|
|
47
|
-
export declare function extendCore(config: ExtendCoreConfig): ExtendCoreResult;
|
|
48
|
-
export declare function resolveBinding(override: FunctionBinding | undefined, url: string, folderSlug: string, slug: string): FunctionBinding;
|
|
49
|
-
//# sourceMappingURL=extend-core.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extend-core.d.ts","sourceRoot":"","sources":["../../src/domain/extend-core.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,IAAI,EAGJ,MAAM,EACP,MAAM,wBAAwB,CAAA;AAY/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,eAAO,MAAM,oBAAoB,UAAU,CAAA;AAC3C,eAAO,MAAM,wBAAwB,cAAc,CAAA;AAGnD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,IAAI,CAAA;IACf;;;;;;;OAOG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,gBAAgB,CAAC,EAAE,UAAU,CAAA;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAA;IAEpC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;CACvD,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;IAC7C,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;CACxD,CAAA;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,CAuFrE;AAQD,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,eAAe,GAAG,SAAS,EACrC,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,GACX,eAAe,CAWjB"}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Build an augmented `Core<S>` that includes auto-materialized View and
|
|
3
|
-
* standalone-function nodes (one per entry in `defineRemoteDomain`'s `views` /
|
|
4
|
-
* `remoteFunctions` config), plus their parent Folder + optional `view_for`
|
|
5
|
-
* edges. Returns the resolved effective bindings alongside so callers don't
|
|
6
|
-
* recompute them.
|
|
7
|
-
*
|
|
8
|
-
* Standalone callables (the former `RemoteFunction` class) are materialized as
|
|
9
|
-
* the canonical kernel `Function` node class — "remote" is just a `binding`,
|
|
10
|
-
* not a distinct kind, so there is no per-domain class to configure.
|
|
11
|
-
*
|
|
12
|
-
* Conflicts: if the user core already declares a top-level node at
|
|
13
|
-
* `<viewsFolder>` or `<functionsFolder>`, throws — the auto-materialization
|
|
14
|
-
* reserves those slugs.
|
|
15
|
-
*/
|
|
16
|
-
import { Folder, K, KernelSchema } from '@astrale-os/kernel-core';
|
|
17
|
-
import { buildCorePath } from '@astrale-os/kernel-dsl';
|
|
18
|
-
/** Canonical node class for standalone callables (the former `RemoteFunction`). */
|
|
19
|
-
const FUNCTION_CLASS = KernelSchema.classes.Function;
|
|
20
|
-
/** Canonical node class for GUI views. */
|
|
21
|
-
const VIEW_CLASS = KernelSchema.classes.View;
|
|
22
|
-
/** Canonical edge class linking a View to its target. */
|
|
23
|
-
const VIEW_FOR_EDGE_CLASS = KernelSchema.classes.view_for;
|
|
24
|
-
export const DEFAULT_VIEWS_FOLDER = 'views';
|
|
25
|
-
export const DEFAULT_FUNCTIONS_FOLDER = 'functions';
|
|
26
|
-
const SLUG_RE = /^[a-z][a-z0-9-]*$/;
|
|
27
|
-
export function extendCore(config) {
|
|
28
|
-
const { schema, origin, userCore, url, viewClass = VIEW_CLASS, viewForEdgeClass = VIEW_FOR_EDGE_CLASS, viewsFolder = DEFAULT_VIEWS_FOLDER, views, functionsFolder = DEFAULT_FUNCTIONS_FOLDER, remoteFunctions, } = config;
|
|
29
|
-
validateInputs(config);
|
|
30
|
-
const nodes = userCore ? [...userCore.__nodes] : [];
|
|
31
|
-
const edges = userCore ? [...userCore.__edges] : [];
|
|
32
|
-
const viewBindings = {};
|
|
33
|
-
const remoteFunctionBindings = {};
|
|
34
|
-
const enableUiHandshake = viewClass === VIEW_CLASS;
|
|
35
|
-
if (views && viewClass) {
|
|
36
|
-
// Enforce ViewDef's documented exclusivity: `mount` (SPA route) cannot be
|
|
37
|
-
// combined with `render` (inline HTML handler) or an explicit `binding` —
|
|
38
|
-
// silently ignoring one of them would deploy a view that behaves
|
|
39
|
-
// differently than its definition reads.
|
|
40
|
-
for (const [slug, def] of Object.entries(views)) {
|
|
41
|
-
if (def.mount && (def.render || def.binding)) {
|
|
42
|
-
throw new Error(`defineRemoteDomain: view "${slug}" sets \`mount\` together with ` +
|
|
43
|
-
`${def.render ? '`render`' : '`binding`'} — they are mutually exclusive.`);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
assertNoConflict(nodes, origin, viewsFolder);
|
|
47
|
-
addFolderAndEntries({
|
|
48
|
-
origin,
|
|
49
|
-
folderSlug: viewsFolder,
|
|
50
|
-
nodes,
|
|
51
|
-
entries: Object.entries(views).map(([slug, def]) => {
|
|
52
|
-
const binding = url
|
|
53
|
-
? def.mount
|
|
54
|
-
? { remoteUrl: joinWorkerPath(url, def.mount) }
|
|
55
|
-
: resolveBinding(def.binding, url, viewsFolder, slug)
|
|
56
|
-
: undefined;
|
|
57
|
-
if (binding)
|
|
58
|
-
viewBindings[slug] = binding;
|
|
59
|
-
return {
|
|
60
|
-
slug,
|
|
61
|
-
nodeClass: viewClass,
|
|
62
|
-
data: buildViewData(slug, binding, def, enableUiHandshake),
|
|
63
|
-
edges: buildViewForEdges(slug, def, viewForEdgeClass, viewsFolder, origin),
|
|
64
|
-
};
|
|
65
|
-
}),
|
|
66
|
-
edges,
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
if (remoteFunctions) {
|
|
70
|
-
assertNoConflict(nodes, origin, functionsFolder);
|
|
71
|
-
addFolderAndEntries({
|
|
72
|
-
origin,
|
|
73
|
-
folderSlug: functionsFolder,
|
|
74
|
-
nodes,
|
|
75
|
-
entries: Object.entries(remoteFunctions).map(([slug, def]) => {
|
|
76
|
-
const binding = url ? resolveBinding(def.binding, url, functionsFolder, slug) : undefined;
|
|
77
|
-
if (binding)
|
|
78
|
-
remoteFunctionBindings[slug] = binding;
|
|
79
|
-
return {
|
|
80
|
-
slug,
|
|
81
|
-
// Standalone callables materialize as the canonical kernel Function class.
|
|
82
|
-
nodeClass: FUNCTION_CLASS,
|
|
83
|
-
data: {
|
|
84
|
-
...buildFunctionData(slug, binding),
|
|
85
|
-
[K.$.i('Function').ref.key]: def.ref ?? `function.${slug}`,
|
|
86
|
-
},
|
|
87
|
-
edges: [],
|
|
88
|
-
};
|
|
89
|
-
}),
|
|
90
|
-
edges,
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
return {
|
|
94
|
-
core: { schema, domain: origin, __nodes: nodes, __edges: edges },
|
|
95
|
-
viewBindings,
|
|
96
|
-
remoteFunctionBindings,
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
/** Join a worker-relative mount path onto the serving url (single slash). */
|
|
100
|
-
function joinWorkerPath(url, mount) {
|
|
101
|
-
const base = url.replace(/\/+$/, '');
|
|
102
|
-
return `${base}/${mount.replace(/^\/+/, '')}`;
|
|
103
|
-
}
|
|
104
|
-
export function resolveBinding(override, url, folderSlug, slug) {
|
|
105
|
-
// Same trailing-slash discipline as `joinWorkerPath` — a `url` ending in `/`
|
|
106
|
-
// must not produce `//` in the binding (the kernel pins iss by exact string).
|
|
107
|
-
const base = url.replace(/\/+$/, '');
|
|
108
|
-
if (override) {
|
|
109
|
-
return {
|
|
110
|
-
...override,
|
|
111
|
-
remoteUrl: override.remoteUrl ?? `${base}/${folderSlug}/${slug}`,
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
return { remoteUrl: `${base}/${folderSlug}/${slug}` };
|
|
115
|
-
}
|
|
116
|
-
// ── Internal ───────────────────────────────────────────────────────────────
|
|
117
|
-
function validateInputs(config) {
|
|
118
|
-
if (config.views) {
|
|
119
|
-
for (const slug of Object.keys(config.views)) {
|
|
120
|
-
if (!SLUG_RE.test(slug)) {
|
|
121
|
-
throw new Error(`defineRemoteDomain: invalid view slug "${slug}" — must match ${SLUG_RE}.`);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
if (config.remoteFunctions) {
|
|
126
|
-
for (const slug of Object.keys(config.remoteFunctions)) {
|
|
127
|
-
if (!SLUG_RE.test(slug)) {
|
|
128
|
-
throw new Error(`defineRemoteDomain: invalid remote-function slug "${slug}" — must match ${SLUG_RE}.`);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
function assertNoConflict(nodes, origin, folderSlug) {
|
|
134
|
-
const folderPath = buildCorePath(origin, [folderSlug]);
|
|
135
|
-
if (nodes.some((n) => n.path === folderPath)) {
|
|
136
|
-
throw new Error(`defineRemoteDomain: top-level core slug "${folderSlug}" is reserved by ` +
|
|
137
|
-
'SDK auto-materialization. Move the conflicting node or rename the ' +
|
|
138
|
-
'`viewsFolder` / `functionsFolder` config.');
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function addFolderAndEntries(args) {
|
|
142
|
-
const { origin, folderSlug, entries, nodes, edges } = args;
|
|
143
|
-
const folderPath = buildCorePath(origin, [folderSlug]);
|
|
144
|
-
nodes.push({
|
|
145
|
-
path: folderPath,
|
|
146
|
-
def: Folder,
|
|
147
|
-
data: { [K.Named.name.key]: folderSlug },
|
|
148
|
-
});
|
|
149
|
-
for (const entry of entries) {
|
|
150
|
-
nodes.push({
|
|
151
|
-
path: buildCorePath(origin, [folderSlug, entry.slug]),
|
|
152
|
-
def: entry.nodeClass,
|
|
153
|
-
data: entry.data,
|
|
154
|
-
parent: folderPath,
|
|
155
|
-
});
|
|
156
|
-
for (const e of entry.edges)
|
|
157
|
-
edges.push(e);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function buildFunctionData(slug, binding) {
|
|
161
|
-
// Match the kernel-core schema serializer which JSON-stringifies the
|
|
162
|
-
// `Function.binding` value on Function nodes (see
|
|
163
|
-
// kernel/core/domain/serialize/schema.ts). The kernel install validator
|
|
164
|
-
// checks `typeof binding === 'string'` then parses; storing a raw object
|
|
165
|
-
// trips the validator with "missing remote binding" even when the object IS
|
|
166
|
-
// the binding. No binding at all (define-time, no url) → no prop stamped.
|
|
167
|
-
return {
|
|
168
|
-
[K.Named.name.key]: slug,
|
|
169
|
-
...(binding ? { [K.$.i('Function').binding.key]: JSON.stringify(binding) } : {}),
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
function buildViewData(slug, binding, def, enableUiHandshake) {
|
|
173
|
-
const handshake = def.handshake ?? (def.render ? 'none' : undefined);
|
|
174
|
-
return {
|
|
175
|
-
...buildFunctionData(slug, binding),
|
|
176
|
-
...(enableUiHandshake && handshake ? { [K.UI.handshake.key]: handshake } : {}),
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
function buildViewForEdges(slug, def, edgeClass, viewsFolder, origin) {
|
|
180
|
-
if (!def.viewFor || !edgeClass)
|
|
181
|
-
return [];
|
|
182
|
-
const targets = Array.isArray(def.viewFor) ? def.viewFor : [def.viewFor];
|
|
183
|
-
const from = buildCorePath(origin, [viewsFolder, slug]);
|
|
184
|
-
return targets.map((target) => ({
|
|
185
|
-
from,
|
|
186
|
-
edge: edgeClass,
|
|
187
|
-
to: target,
|
|
188
|
-
}));
|
|
189
|
-
}
|
|
190
|
-
//# sourceMappingURL=extend-core.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extend-core.js","sourceRoot":"","sources":["../../src/domain/extend-core.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAEtD,mFAAmF;AACnF,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC,QAAiC,CAAA;AAC7E,0CAA0C;AAC1C,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,IAA6B,CAAA;AACrE,yDAAyD;AACzD,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,CAAC,QAAiC,CAAA;AAKlF,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAA;AAC3C,MAAM,CAAC,MAAM,wBAAwB,GAAG,WAAW,CAAA;AACnD,MAAM,OAAO,GAAG,mBAAmB,CAAA;AAgCnC,MAAM,UAAU,UAAU,CAAC,MAAwB;IACjD,MAAM,EACJ,MAAM,EACN,MAAM,EACN,QAAQ,EACR,GAAG,EACH,SAAS,GAAG,UAAU,EACtB,gBAAgB,GAAG,mBAAmB,EACtC,WAAW,GAAG,oBAAoB,EAClC,KAAK,EACL,eAAe,GAAG,wBAAwB,EAC1C,eAAe,GAChB,GAAG,MAAM,CAAA;IAEV,cAAc,CAAC,MAAM,CAAC,CAAA;IAEtB,MAAM,KAAK,GAAoB,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IACpE,MAAM,KAAK,GAAoB,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,OA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AAC,SAAS;QAAE,OAAO,EAAE,CAAA;IACzC,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IACxE,MAAM,IAAI,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAA;IACvD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC9B,IAAI;QACJ,IAAI,EAAE,SAAS;QACf,EAAE,EAAE,MAA6B;KAClC,CAAC,CAAC,CAAA;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker-meta.d.ts","sourceRoot":"","sources":["../../src/server/worker-meta.ts"],"names":[],"mappings":"AAYA,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;CACnB,CAQA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function workerMeta(domainName) {
|
|
2
|
-
const sdkCommit = typeof SDK_COMMIT === 'string' ? SDK_COMMIT : undefined;
|
|
3
|
-
const schemaHash = typeof SCHEMA_HASH === 'string' ? SCHEMA_HASH : undefined;
|
|
4
|
-
return {
|
|
5
|
-
...(sdkCommit ? { sdkCommit } : {}),
|
|
6
|
-
...(schemaHash ? { schemaHash } : {}),
|
|
7
|
-
domainName,
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=worker-meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker-meta.js","sourceRoot":"","sources":["../../src/server/worker-meta.ts"],"names":[],"mappings":"AAYA,MAAM,UAAU,UAAU,CAAC,UAAkB;IAK3C,MAAM,SAAS,GAAG,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAA;IACzE,MAAM,UAAU,GAAG,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAA;IAC5E,OAAO;QACL,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACrC,UAAU;KACX,CAAA;AACH,CAAC"}
|