@astrale-os/cli 1.0.0-beta.1 → 1.0.0-beta.2
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/README.md +7 -11
- package/dist/astrale.js +3737 -3523
- package/dist/public/connect-core.js +396 -392
- package/dist/public/keys/index.js +371 -378
- package/dist/public/paths/index.js +371 -378
- package/dist/types/lib/idp.d.ts +6 -0
- package/dist/types/lib/meta.d.ts +2 -2
- package/package.json +6 -4
- package/src/admin/binding.ts +168 -0
- package/src/admin/catalog/__tests__/client.test.ts +2 -2
- package/src/admin/catalog/client.ts +4 -9
- package/src/admin/instance/__tests__/client.test.ts +2 -2
- package/src/admin/instance/client.ts +6 -11
- package/src/commands/__tests__/auth-login.test.ts +54 -1
- package/src/commands/__tests__/call.test.ts +5 -1
- package/src/commands/__tests__/domain-install-operation.test.ts +23 -7
- package/src/commands/__tests__/domain-install-owned.test.ts +5 -1
- package/src/commands/__tests__/domain-list.test.ts +83 -4
- package/src/commands/__tests__/install-identity-override.test.ts +30 -19
- package/src/commands/__tests__/studio-descriptor.test.ts +22 -0
- package/src/commands/__tests__/update.test.ts +23 -16
- package/src/commands/domain/install.ts +11 -15
- package/src/commands/domain/list.ts +17 -12
- package/src/commands/studio.ts +20 -0
- package/src/commands/update.ts +9 -5
- package/src/connection/__tests__/errors.test.ts +16 -12
- package/src/connection/__tests__/exchange.test.ts +6 -5
- package/src/connection/exchange.ts +5 -4
- package/src/lib/__tests__/domain-publication.test.ts +144 -0
- package/src/lib/__tests__/idp-session.test.ts +22 -0
- package/src/lib/__tests__/idp.test.ts +2 -0
- package/src/lib/__tests__/instance.test.ts +6 -0
- package/src/lib/__tests__/studio-server-deps.test.ts +53 -16
- package/src/lib/__tests__/update.test.ts +12 -0
- package/src/lib/domain-publication.ts +102 -0
- package/src/lib/idp.ts +5 -1
- package/src/lib/instance.ts +6 -1
- package/src/lib/login-flow.ts +13 -3
- package/src/lib/meta.ts +2 -2
- package/src/lib/update.ts +4 -4
- package/src/program/__tests__/program.test.ts +1 -1
- package/studio/client/dist/assets/{elk-api-D2xgMJvi.js → elk-api-lwhFo7vB.js} +1 -1
- package/studio/client/dist/assets/index-B-c-smo9.js +8 -0
- package/studio/client/dist/assets/index-BckHuAWk.js +81 -0
- package/studio/client/dist/assets/index-C4aNQ6dz.css +1 -0
- package/studio/client/dist/index.html +2 -2
- package/studio/package.json +3 -1
- package/studio/server/agent/bridge/stdio.ts +8 -1
- package/studio/server/agent/conversation.test.ts +10 -5
- package/studio/server/agent/conversation.ts +56 -8
- package/studio/server/agent/harness/codex/loadout.ts +18 -21
- package/studio/server/agent/harness/gateway/config.ts +20 -18
- package/studio/server/agent/harness/selection.ts +9 -1
- package/studio/server/agent/prompts/system.ts +3 -2
- package/studio/server/agent/prompts/turn.ts +13 -4
- package/studio/server/agent/run/completion.ts +2 -2
- package/studio/server/agent/run/preparation.ts +6 -5
- package/studio/server/agent/run/transcript.test.ts +35 -1
- package/studio/server/agent/run/transcript.ts +169 -3
- package/studio/server/agent/run/usage.test.ts +24 -0
- package/studio/server/agent/run/usage.ts +26 -1
- package/studio/server/api/canvas.ts +44 -0
- package/studio/server/api/comments.ts +85 -0
- package/studio/server/api/context.ts +61 -0
- package/studio/server/api/deployment.ts +39 -0
- package/studio/server/api/documents.ts +55 -0
- package/studio/server/api/domain.ts +59 -0
- package/studio/server/api/http.ts +45 -0
- package/studio/server/api/project.ts +57 -0
- package/studio/server/api/schema.ts +12 -0
- package/studio/server/api/views.ts +57 -0
- package/studio/server/api/workspace.ts +60 -0
- package/studio/server/api.test.ts +147 -0
- package/studio/server/api.ts +20 -422
- package/studio/server/cache.test.ts +111 -0
- package/studio/server/cache.ts +163 -9
- package/studio/server/cli-consumers.test.ts +494 -0
- package/studio/server/cli.test.ts +88 -0
- package/studio/server/cli.ts +240 -0
- package/studio/server/client-package.ts +25 -1
- package/studio/server/domain.test.ts +30 -2
- package/studio/server/domain.ts +14 -2
- package/studio/server/environment/dotenv-preview.test.ts +39 -0
- package/studio/server/environment/dotenv-preview.ts +27 -0
- package/studio/server/environment/files.test.ts +53 -0
- package/studio/server/{state/env.ts → environment/files.ts} +7 -48
- package/studio/server/{state → handoff}/copy.ts +21 -6
- package/studio/server/handoff/service.test.ts +22 -0
- package/studio/server/{state/handoff.ts → handoff/service.ts} +21 -14
- package/studio/server/instances/active.ts +72 -0
- package/studio/server/instances/deploy-record.test.ts +31 -0
- package/studio/server/instances/deploy-record.ts +37 -0
- package/studio/server/instances/deploy.ts +56 -0
- package/studio/server/{state/instance.test.ts → instances/probe.test.ts} +25 -21
- package/studio/server/instances/probe.ts +67 -0
- package/studio/server/instances/status.test.ts +12 -0
- package/studio/server/instances/status.ts +49 -0
- package/studio/server/introspect/anatomy/client-tree.ts +57 -0
- package/studio/server/introspect/anatomy/env-fields.ts +66 -0
- package/studio/server/introspect/anatomy/schema-definition.ts +53 -0
- package/studio/server/introspect/anatomy/source.ts +181 -0
- package/studio/server/introspect/anatomy/views/legacy.ts +232 -0
- package/studio/server/introspect/anatomy/views/routes.ts +105 -0
- package/studio/server/introspect/anatomy/views.ts +58 -0
- package/studio/server/introspect/anatomy-extras.test.ts +91 -4
- package/studio/server/introspect/anatomy-extras.ts +7 -726
- package/studio/server/introspect/anatomy.ts +46 -19
- package/studio/server/introspect/bundle.ts +15 -6
- package/studio/server/introspect/canonical-schema.test.ts +79 -0
- package/studio/server/introspect/canonical-schema.ts +80 -18
- package/studio/server/introspect/config-preview.test.ts +32 -0
- package/studio/server/introspect/config-preview.ts +119 -0
- package/studio/server/introspect/diff.test.ts +7 -11
- package/studio/server/introspect/diff.ts +28 -37
- package/studio/server/introspect/extractor.ts +8 -6
- package/studio/server/introspect/hash.ts +5 -2
- package/studio/server/introspect/overlay-tsmorph.ts +7 -1305
- package/studio/server/introspect/revision.test.ts +54 -0
- package/studio/server/introspect/revision.ts +49 -0
- package/studio/server/introspect/runtime.test.ts +63 -5
- package/studio/server/introspect/runtime.ts +49 -3
- package/studio/server/introspect/schema-ir-json.ts +181 -0
- package/studio/server/introspect/source-overlay/annotations.ts +14 -0
- package/studio/server/introspect/source-overlay/handlers.ts +681 -0
- package/studio/server/introspect/source-overlay/kernel-calls.ts +49 -0
- package/studio/server/introspect/source-overlay/project.ts +248 -0
- package/studio/server/introspect/source-overlay/spans.ts +360 -0
- package/studio/server/json.ts +46 -0
- package/studio/server/lifecycle.ts +5 -1
- package/studio/server/sse.test.ts +26 -0
- package/studio/server/sse.ts +4 -1
- package/studio/server/state/baseline.test.ts +212 -1
- package/studio/server/state/baseline.ts +145 -29
- package/studio/server/state/comments.test.ts +66 -1
- package/studio/server/state/comments.ts +173 -10
- package/studio/server/state/context.ts +34 -2
- package/studio/server/state/documents.ts +42 -1
- package/studio/server/state/integrations.ts +27 -1
- package/studio/server/state/layout.test.ts +34 -0
- package/studio/server/state/layout.ts +44 -17
- package/studio/server/state/settings.ts +29 -22
- package/studio/server/state/store.test.ts +122 -0
- package/studio/server/state/store.ts +66 -17
- package/studio/server/state/visibility.ts +22 -7
- package/studio/server/views/model.test.ts +57 -0
- package/studio/server/views/model.ts +66 -0
- package/studio/server/views/runtime.ts +40 -0
- package/studio/server/views/selection-repository.test.ts +31 -0
- package/studio/server/views/selection-repository.ts +60 -0
- package/studio/server/views/session.test.ts +73 -0
- package/studio/server/views/session.ts +166 -0
- package/studio/server/{state/views.test.ts → views/target.test.ts} +8 -159
- package/studio/server/views/target.ts +248 -0
- package/studio/server/watch.ts +1 -1
- package/studio/server/workspace/catalog.test.ts +17 -0
- package/studio/server/workspace/catalog.ts +43 -0
- package/studio/server/{state → workspace}/create.test.ts +1 -1
- package/studio/server/{state → workspace}/create.ts +1 -1
- package/studio/server/{state → workspace}/git.ts +1 -1
- package/studio/server/workspace/updates.ts +83 -0
- package/studio/server/workspace-state.ts +1 -1
- package/studio/shared/contracts/README.md +16 -0
- package/studio/shared/contracts/agent.ts +270 -0
- package/studio/shared/contracts/runtime.ts +50 -0
- package/studio/shared/contracts/schema.ts +462 -0
- package/studio/shared/contracts/surface.test.ts +319 -0
- package/studio/shared/contracts/workspace.ts +274 -0
- package/studio/shared/layout.test.ts +116 -0
- package/studio/shared/schema/identity.test.ts +58 -0
- package/studio/shared/schema/identity.ts +82 -0
- package/studio/shared/types.ts +11 -1099
- package/studio/tsconfig.json +1 -1
- package/viewer/dist/main.js +35 -35
- package/studio/client/dist/assets/index-BMdnsIJA.css +0 -1
- package/studio/client/dist/assets/index-D-vRV8w7.js +0 -8
- package/studio/client/dist/assets/index-LGSWRrk8.js +0 -81
- package/studio/server/state/catalog.ts +0 -117
- package/studio/server/state/instance.ts +0 -280
- package/studio/server/state/updates.ts +0 -63
- package/studio/server/state/views.ts +0 -535
|
@@ -8483,7 +8483,7 @@ function isPidAlive(pid) {
|
|
|
8483
8483
|
function sleep(milliseconds) {
|
|
8484
8484
|
return new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
8485
8485
|
}
|
|
8486
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
8486
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/error/index.js
|
|
8487
8487
|
class AuthValueError extends TypeError {
|
|
8488
8488
|
code;
|
|
8489
8489
|
path;
|
|
@@ -8494,7 +8494,7 @@ class AuthValueError extends TypeError {
|
|
|
8494
8494
|
this.path = path;
|
|
8495
8495
|
}
|
|
8496
8496
|
}
|
|
8497
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
8497
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/value/error.js
|
|
8498
8498
|
class BoundaryError extends TypeError {
|
|
8499
8499
|
code;
|
|
8500
8500
|
pointer;
|
|
@@ -8518,7 +8518,7 @@ class DecodeError extends SyntaxError {
|
|
|
8518
8518
|
}
|
|
8519
8519
|
}
|
|
8520
8520
|
|
|
8521
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
8521
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/value/limits.js
|
|
8522
8522
|
var defaultLimits = Object.freeze({
|
|
8523
8523
|
maxBytes: 16 * 1024 * 1024,
|
|
8524
8524
|
maxDepth: 64,
|
|
@@ -8535,7 +8535,7 @@ function limitsFor(options) {
|
|
|
8535
8535
|
return candidate;
|
|
8536
8536
|
}
|
|
8537
8537
|
|
|
8538
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
8538
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/value/unicode.js
|
|
8539
8539
|
function utf8Length(value, max = Number.MAX_SAFE_INTEGER) {
|
|
8540
8540
|
let bytes = 0;
|
|
8541
8541
|
for (let index = 0;index < value.length; index += 1) {
|
|
@@ -8599,7 +8599,7 @@ function isLowSurrogate(codeUnit) {
|
|
|
8599
8599
|
return codeUnit >= 56320 && codeUnit <= 57343;
|
|
8600
8600
|
}
|
|
8601
8601
|
|
|
8602
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
8602
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/value/accept.js
|
|
8603
8603
|
function accept2(input, options) {
|
|
8604
8604
|
const state = { active: new WeakSet, limits: limitsFor(options), members: 0 };
|
|
8605
8605
|
try {
|
|
@@ -8719,7 +8719,7 @@ function reflect(operation, pointer, message2) {
|
|
|
8719
8719
|
function child(pointer, token) {
|
|
8720
8720
|
return `${pointer}/${token.replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
8721
8721
|
}
|
|
8722
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
8722
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/value/json.js
|
|
8723
8723
|
var exports_json = {};
|
|
8724
8724
|
__export(exports_json, {
|
|
8725
8725
|
DecodeError: () => DecodeError,
|
|
@@ -8728,7 +8728,7 @@ __export(exports_json, {
|
|
|
8728
8728
|
serialize: () => serialize
|
|
8729
8729
|
});
|
|
8730
8730
|
|
|
8731
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
8731
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/value/canonical.js
|
|
8732
8732
|
var encoder2 = new TextEncoder;
|
|
8733
8733
|
function serialize(input, options) {
|
|
8734
8734
|
const limits = limitsFor(options);
|
|
@@ -9558,7 +9558,7 @@ function printParseErrorCode(code) {
|
|
|
9558
9558
|
return "<unknown ParseErrorCode>";
|
|
9559
9559
|
}
|
|
9560
9560
|
|
|
9561
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
9561
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/value/decode.js
|
|
9562
9562
|
var decoder2 = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
9563
9563
|
function decode2(input, options) {
|
|
9564
9564
|
const limits = limitsFor(options);
|
|
@@ -9658,11 +9658,11 @@ function endContainer(state, kind, offset) {
|
|
|
9658
9658
|
function failSyntax(message2, offset) {
|
|
9659
9659
|
throw new DecodeError("JSON_SYNTAX", message2, offset);
|
|
9660
9660
|
}
|
|
9661
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
9661
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/value/equal.js
|
|
9662
9662
|
function equal(left, right) {
|
|
9663
9663
|
return left === right || serialize(left) === serialize(right);
|
|
9664
9664
|
}
|
|
9665
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
9665
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/internal/authoring.js
|
|
9666
9666
|
var AUTHORING = Symbol("astrale.v1.authoring");
|
|
9667
9667
|
function authoringValue(kind, value) {
|
|
9668
9668
|
return Object.freeze(Object.defineProperty({ ...value }, AUTHORING, {
|
|
@@ -9676,7 +9676,7 @@ function isAuthoringValue(value, kind) {
|
|
|
9676
9676
|
return typeof value === "object" && value !== null && value[AUTHORING] === kind;
|
|
9677
9677
|
}
|
|
9678
9678
|
|
|
9679
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
9679
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/diagnostic.js
|
|
9680
9680
|
class DomainSchemaError extends Error {
|
|
9681
9681
|
diagnostics;
|
|
9682
9682
|
constructor(diagnostics) {
|
|
@@ -9697,7 +9697,7 @@ function formatDiagnostic(value) {
|
|
|
9697
9697
|
return `${value.pointer || "/"} [${value.code}] ${value.message}`;
|
|
9698
9698
|
}
|
|
9699
9699
|
|
|
9700
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
9700
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/internal/diagnostic.js
|
|
9701
9701
|
function assertKnownKeys(value, allowed, pointer = "") {
|
|
9702
9702
|
const accepted = new Set(allowed);
|
|
9703
9703
|
for (const key of Object.keys(value)) {
|
|
@@ -9713,7 +9713,7 @@ function escapeToken(value) {
|
|
|
9713
9713
|
return value.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
9714
9714
|
}
|
|
9715
9715
|
|
|
9716
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
9716
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/callable.js
|
|
9717
9717
|
function fn(config) {
|
|
9718
9718
|
assertKnownKeys(config, [
|
|
9719
9719
|
"description",
|
|
@@ -9756,14 +9756,14 @@ var output = Object.freeze({
|
|
|
9756
9756
|
function isCallableOutputAuthoring(value) {
|
|
9757
9757
|
return isAuthoringValue(value, "callable-output");
|
|
9758
9758
|
}
|
|
9759
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
9759
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/core.js
|
|
9760
9760
|
function node(definition, properties) {
|
|
9761
9761
|
return authoringValue("core-node", {
|
|
9762
9762
|
class: definition,
|
|
9763
9763
|
properties: accept2(properties)
|
|
9764
9764
|
});
|
|
9765
9765
|
}
|
|
9766
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
9766
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/definition.js
|
|
9767
9767
|
function defineInterface(config) {
|
|
9768
9768
|
if (config.family === "both") {
|
|
9769
9769
|
assertKnownKeys(config, ["family", "description", "extends", "properties"]);
|
|
@@ -30520,7 +30520,7 @@ var RE2JS = class RE2JS2 {
|
|
|
30520
30520
|
}
|
|
30521
30521
|
};
|
|
30522
30522
|
|
|
30523
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
30523
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/regexp/pattern.js
|
|
30524
30524
|
function lowerIRegexpPattern(pattern) {
|
|
30525
30525
|
let result = "";
|
|
30526
30526
|
let escaped = false;
|
|
@@ -30559,7 +30559,7 @@ function lowerIRegexpPattern(pattern) {
|
|
|
30559
30559
|
return result;
|
|
30560
30560
|
}
|
|
30561
30561
|
|
|
30562
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
30562
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/regexp/linear.js
|
|
30563
30563
|
var linearRegExp = Object.assign((pattern, _unicodeFlag) => RE2JS.compile(pattern), {
|
|
30564
30564
|
code: '((pattern) => require("re2js").RE2JS.compile(pattern))'
|
|
30565
30565
|
});
|
|
@@ -30575,7 +30575,7 @@ function compileIRegexp(source) {
|
|
|
30575
30575
|
return RE2JS.compile(lowerIRegexpPattern(source));
|
|
30576
30576
|
}
|
|
30577
30577
|
|
|
30578
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
30578
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/regexp/syntax.js
|
|
30579
30579
|
var CATEGORY = /^(?:L[lmotu]?|M[cen]?|N[dlo]?|P[cdfios]?|Z[lps]?|S[ckmo]?|C[cfno]?)$/u;
|
|
30580
30580
|
var MAX_IREGEXP_CODE_POINTS = 4096;
|
|
30581
30581
|
var MAX_IREGEXP_NESTING = 32;
|
|
@@ -30782,7 +30782,7 @@ function isUnicodeScalarString(value) {
|
|
|
30782
30782
|
return true;
|
|
30783
30783
|
}
|
|
30784
30784
|
|
|
30785
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
30785
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/full-match.js
|
|
30786
30786
|
var sources = new WeakMap;
|
|
30787
30787
|
function fullMatch(source) {
|
|
30788
30788
|
if (!isIRegexp(source)) {
|
|
@@ -30798,12 +30798,12 @@ function fullMatch(source) {
|
|
|
30798
30798
|
function fullMatchSource(check2) {
|
|
30799
30799
|
return check2 !== null && typeof check2 === "object" ? sources.get(check2) : undefined;
|
|
30800
30800
|
}
|
|
30801
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
30801
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/internal/path.metadata.js
|
|
30802
30802
|
var pathInputs = new WeakMap;
|
|
30803
30803
|
function pathAccepts(schema) {
|
|
30804
30804
|
return pathInputs.get(schema);
|
|
30805
30805
|
}
|
|
30806
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
30806
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/policy.js
|
|
30807
30807
|
var policy = Object.freeze({
|
|
30808
30808
|
allOf: (...policies) => composition("allOf", policies),
|
|
30809
30809
|
anyOf: (...policies) => composition("anyOf", policies)
|
|
@@ -30869,7 +30869,7 @@ function nonEmpty(values, pointer) {
|
|
|
30869
30869
|
if (values.length === 0)
|
|
30870
30870
|
fail("BUILDER_POLICY_EMPTY_COMPOSITION", pointer, "Policy composition must be non-empty.");
|
|
30871
30871
|
}
|
|
30872
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
30872
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/property.js
|
|
30873
30873
|
function property(schema, options) {
|
|
30874
30874
|
const admitted = options ?? {};
|
|
30875
30875
|
assertKnownKeys(admitted, ["visibility", "required"]);
|
|
@@ -30903,7 +30903,7 @@ function auto(property2, options) {
|
|
|
30903
30903
|
options: { on: Object.freeze(events), set: options.set }
|
|
30904
30904
|
});
|
|
30905
30905
|
}
|
|
30906
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
30906
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/addressing/patterns.js
|
|
30907
30907
|
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;
|
|
30908
30908
|
var MEMBER_NAME_PATTERN = /^[A-Za-z][A-Za-z0-9_]*$/u;
|
|
30909
30909
|
var CORE_SLUG_PATTERN = /^[a-z][a-z0-9-]{0,99}$/u;
|
|
@@ -30923,7 +30923,7 @@ function assertMemberName(name) {
|
|
|
30923
30923
|
throw new TypeError(`Invalid member name: ${JSON.stringify(name)}.`);
|
|
30924
30924
|
}
|
|
30925
30925
|
}
|
|
30926
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
30926
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/addressing/ref.js
|
|
30927
30927
|
var DEFINITION = /^(class|interface|function|policy|view|type)\.([A-Za-z][A-Za-z0-9_]*)$/u;
|
|
30928
30928
|
var MEMBER = /^(class|interface)\.([A-Za-z][A-Za-z0-9_]*)\.(property|method)\.([A-Za-z][A-Za-z0-9_]*)$/u;
|
|
30929
30929
|
function Ref(input) {
|
|
@@ -31015,7 +31015,7 @@ function assertOwner(owner, member) {
|
|
|
31015
31015
|
function assertInvalidOwner(owner, member) {
|
|
31016
31016
|
throw new TypeError(`${member} owner must be a Class or Interface Ref; received ${JSON.stringify(owner)}.`);
|
|
31017
31017
|
}
|
|
31018
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
31018
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/addressing/key.js
|
|
31019
31019
|
var admitKey = (input) => {
|
|
31020
31020
|
const split = input.indexOf(":");
|
|
31021
31021
|
if (split < 0 || !DOMAIN_ORIGIN_PATTERN.test(input.slice(0, split)) || !Ref.is(input.slice(split + 1))) {
|
|
@@ -31058,7 +31058,7 @@ function Key(input) {
|
|
|
31058
31058
|
}
|
|
31059
31059
|
Key2.is = is;
|
|
31060
31060
|
})(Key || (Key = {}));
|
|
31061
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
31061
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/addressing/property-key.js
|
|
31062
31062
|
function PropertyKey(input) {
|
|
31063
31063
|
if (!PropertyKey.is(input)) {
|
|
31064
31064
|
throw new TypeError(`Invalid canonical PropertyKey: ${JSON.stringify(input)}.`);
|
|
@@ -31084,7 +31084,7 @@ function PropertyKey(input) {
|
|
|
31084
31084
|
}
|
|
31085
31085
|
PropertyKey2.is = is;
|
|
31086
31086
|
})(PropertyKey || (PropertyKey = {}));
|
|
31087
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
31087
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/reference.js
|
|
31088
31088
|
var DOMAIN_FORMAT = "astrale.dsl";
|
|
31089
31089
|
var DOMAIN_VERSION = "v1";
|
|
31090
31090
|
function schemaRefIndex(ref) {
|
|
@@ -31110,7 +31110,7 @@ function formatSchemaRef(ref) {
|
|
|
31110
31110
|
return `${ref.origin}:${ref.kind}.${ref.name}`;
|
|
31111
31111
|
}
|
|
31112
31112
|
|
|
31113
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
31113
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/policy/normalize.js
|
|
31114
31114
|
var textEncoder = new TextEncoder;
|
|
31115
31115
|
function normalizePolicyDeclaration(value) {
|
|
31116
31116
|
if ("match" in value) {
|
|
@@ -31327,7 +31327,7 @@ function isEdge(value) {
|
|
|
31327
31327
|
return "source" in value;
|
|
31328
31328
|
}
|
|
31329
31329
|
|
|
31330
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
31330
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/location/keywords.js
|
|
31331
31331
|
var SCHEMA_ARRAY_KEYWORDS = new Set(["allOf", "anyOf", "oneOf", "prefixItems"]);
|
|
31332
31332
|
var SCHEMA_MAP_KEYWORDS = new Set([
|
|
31333
31333
|
"$defs",
|
|
@@ -31349,12 +31349,12 @@ var SCHEMA_SINGLE_KEYWORDS = new Set([
|
|
|
31349
31349
|
"unevaluatedProperties"
|
|
31350
31350
|
]);
|
|
31351
31351
|
|
|
31352
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
31352
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/object.js
|
|
31353
31353
|
function isValueObject(value) {
|
|
31354
31354
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
31355
31355
|
}
|
|
31356
31356
|
|
|
31357
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
31357
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/profile/canonicalize.js
|
|
31358
31358
|
var TYPE_ORDER = ["null", "boolean", "integer", "number", "string", "array", "object"];
|
|
31359
31359
|
var TYPE_RANK = new Map(TYPE_ORDER.map((name, index) => [name, index]));
|
|
31360
31360
|
var encoder3 = new TextEncoder;
|
|
@@ -31470,7 +31470,7 @@ function isJsonSchema(value) {
|
|
|
31470
31470
|
return typeof value === "boolean" || isValueObject(value);
|
|
31471
31471
|
}
|
|
31472
31472
|
|
|
31473
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
31473
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/canonical/domain.js
|
|
31474
31474
|
function canonicalizeDomainSchema(schema) {
|
|
31475
31475
|
const classes = mapRecord(schema.classes, canonicalizeClass);
|
|
31476
31476
|
const orientationByClass = new Map(Object.entries(classes).filter((entry) => entry[1].family === "edge").map(([name, declaration]) => [name, declaration.orientation]));
|
|
@@ -31671,7 +31671,7 @@ function copyJsonValue(value) {
|
|
|
31671
31671
|
return Object.fromEntries(Object.entries(value).map(([key, entry]) => [key, copyJsonValue(entry)]));
|
|
31672
31672
|
}
|
|
31673
31673
|
|
|
31674
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
31674
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/canonical/freeze.js
|
|
31675
31675
|
function deepFreeze(value) {
|
|
31676
31676
|
if (value === null || typeof value !== "object" || Object.isFrozen(value)) {
|
|
31677
31677
|
return value;
|
|
@@ -32020,7 +32020,7 @@ class _SHA256 extends SHA2_32B {
|
|
|
32020
32020
|
}
|
|
32021
32021
|
var sha256 = /* @__PURE__ */ createHasher(() => new _SHA256, /* @__PURE__ */ oidNist(1));
|
|
32022
32022
|
|
|
32023
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32023
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/canonical/domain.digest.js
|
|
32024
32024
|
function digestDomainSchemaBytes(bytes) {
|
|
32025
32025
|
let hexadecimal = "";
|
|
32026
32026
|
for (const byte of sha256(bytes))
|
|
@@ -32028,12 +32028,12 @@ function digestDomainSchemaBytes(bytes) {
|
|
|
32028
32028
|
return `sha256:${hexadecimal}`;
|
|
32029
32029
|
}
|
|
32030
32030
|
|
|
32031
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32031
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/domain.ir.js
|
|
32032
32032
|
function asDomainSchema(value) {
|
|
32033
32033
|
return deepFreeze(value);
|
|
32034
32034
|
}
|
|
32035
32035
|
|
|
32036
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32036
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/domain.revision.js
|
|
32037
32037
|
function canonicalDomainSchema(value) {
|
|
32038
32038
|
return canonicalDomainSchemaAfterValidation(value);
|
|
32039
32039
|
}
|
|
@@ -32047,7 +32047,7 @@ function revisionOfDomainSchema(schema) {
|
|
|
32047
32047
|
return canonicalDomainSchema(schema).revision;
|
|
32048
32048
|
}
|
|
32049
32049
|
|
|
32050
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32050
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/domain.lookup.js
|
|
32051
32051
|
class MemoryDomainSchemaLookup {
|
|
32052
32052
|
#entries = new Map;
|
|
32053
32053
|
constructor(entries = []) {
|
|
@@ -32081,7 +32081,7 @@ function lookupKey(origin, revision) {
|
|
|
32081
32081
|
return `${origin}\x00${revision}`;
|
|
32082
32082
|
}
|
|
32083
32083
|
|
|
32084
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32084
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/location/pointer.js
|
|
32085
32085
|
function appendPointer(pointer, token) {
|
|
32086
32086
|
const encoded = String(token).replaceAll("~", "~0").replaceAll("/", "~1");
|
|
32087
32087
|
return `${pointer}/${encoded}`;
|
|
@@ -32130,7 +32130,7 @@ function resolvePointer(root, tokens) {
|
|
|
32130
32130
|
return value;
|
|
32131
32131
|
}
|
|
32132
32132
|
|
|
32133
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32133
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/location/walk.js
|
|
32134
32134
|
function walkSchema(schema, visit3, pointer = "") {
|
|
32135
32135
|
const active = new Set;
|
|
32136
32136
|
function walk(current, currentPointer, depth, parentKeyword) {
|
|
@@ -32181,12 +32181,12 @@ function isJsonSchema2(value) {
|
|
|
32181
32181
|
return typeof value === "boolean" || isValueObject(value);
|
|
32182
32182
|
}
|
|
32183
32183
|
|
|
32184
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32184
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/schema.js
|
|
32185
32185
|
var JSON_SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
32186
32186
|
var VALUE_SCHEMA_DIALECT = "https://schemas.astrale.ai/dsl/v1/value-schema";
|
|
32187
32187
|
var VALUE_SCHEMA_VOCABULARY = "https://schemas.astrale.ai/dsl/v1/value-schema/vocabulary";
|
|
32188
32188
|
|
|
32189
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32189
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/extensions/node-path/schema.js
|
|
32190
32190
|
var GRAPH_NODE_PATH_SCHEMA_ID = "https://schemas.astrale.ai/graph/1/node-path";
|
|
32191
32191
|
var graphNodePathSchema = Object.freeze({
|
|
32192
32192
|
$schema: JSON_SCHEMA_DIALECT,
|
|
@@ -32201,7 +32201,7 @@ function hasNodePathAnnotation(schema) {
|
|
|
32201
32201
|
return isValueObject(schema) && schema.$ref === GRAPH_NODE_PATH_SCHEMA_ID && Object.hasOwn(schema, "x-astrale-path");
|
|
32202
32202
|
}
|
|
32203
32203
|
|
|
32204
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32204
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/resources/registry.index.js
|
|
32205
32205
|
function indexRegistry(registry2, pointer) {
|
|
32206
32206
|
const diagnostics = [];
|
|
32207
32207
|
const domains = new Map;
|
|
@@ -32301,7 +32301,7 @@ function validateGraphNodePathResource(schema, pointer, diagnostics) {
|
|
|
32301
32301
|
}
|
|
32302
32302
|
}
|
|
32303
32303
|
|
|
32304
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32304
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/resources/references.js
|
|
32305
32305
|
function resolveSchemaReference(ref, from, index, pointer, nodePathPlacement) {
|
|
32306
32306
|
if (ref === GRAPH_NODE_PATH_SCHEMA_ID) {
|
|
32307
32307
|
if (!nodePathPlacement) {
|
|
@@ -32388,7 +32388,7 @@ function parseNamedTypeReference(ref) {
|
|
|
32388
32388
|
return { origin, name, pointer };
|
|
32389
32389
|
}
|
|
32390
32390
|
|
|
32391
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32391
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/resources/closure.js
|
|
32392
32392
|
function collectResourceClosure(schema, context, index, pointer, namedType) {
|
|
32393
32393
|
const diagnostics = [];
|
|
32394
32394
|
const resources = new Map;
|
|
@@ -32438,7 +32438,7 @@ function escapeToken2(value) {
|
|
|
32438
32438
|
return value.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
32439
32439
|
}
|
|
32440
32440
|
|
|
32441
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32441
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/instance/compiler.js
|
|
32442
32442
|
function compileInstanceSchema(schema, registry2, pointer) {
|
|
32443
32443
|
const indexed = indexRegistry(registry2, pointer);
|
|
32444
32444
|
if (indexed.diagnostics.length > 0)
|
|
@@ -32502,7 +32502,7 @@ function failed(diagnostics) {
|
|
|
32502
32502
|
};
|
|
32503
32503
|
}
|
|
32504
32504
|
|
|
32505
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32505
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/instant.js
|
|
32506
32506
|
var INSTANT_VALUE_KIND = "instant";
|
|
32507
32507
|
var instant = Object.freeze({
|
|
32508
32508
|
type: "string",
|
|
@@ -32532,7 +32532,7 @@ function isLeapYear(year2) {
|
|
|
32532
32532
|
return year2 % 4 === 0 && (year2 % 100 !== 0 || year2 % 400 === 0);
|
|
32533
32533
|
}
|
|
32534
32534
|
|
|
32535
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32535
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/instance/assertions.js
|
|
32536
32536
|
function matchesType(input, value) {
|
|
32537
32537
|
switch (input) {
|
|
32538
32538
|
case "null":
|
|
@@ -32589,7 +32589,7 @@ function powerOfTen(exponent) {
|
|
|
32589
32589
|
return 10n ** BigInt(exponent);
|
|
32590
32590
|
}
|
|
32591
32591
|
|
|
32592
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32592
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/instance/types.js
|
|
32593
32593
|
function evaluation(failures = [], properties = new Set, items = new Set) {
|
|
32594
32594
|
return { valid: failures.length === 0, failures, properties, items };
|
|
32595
32595
|
}
|
|
@@ -32600,7 +32600,7 @@ function mergeAnnotations(targetProperties, targetItems, source) {
|
|
|
32600
32600
|
targetItems.add(item);
|
|
32601
32601
|
}
|
|
32602
32602
|
|
|
32603
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32603
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/instance/evaluator.js
|
|
32604
32604
|
function evaluateInstance(compiled, input) {
|
|
32605
32605
|
return new InstanceEvaluator(compiled).evaluate(compiled.root, input, "");
|
|
32606
32606
|
}
|
|
@@ -32957,7 +32957,7 @@ function invalid(instancePointer, keyword, message2) {
|
|
|
32957
32957
|
return { instancePointer, keyword, message: message2 };
|
|
32958
32958
|
}
|
|
32959
32959
|
|
|
32960
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32960
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/profile/json.validate.js
|
|
32961
32961
|
function validateCanonicalJsonDomain(value, pointer) {
|
|
32962
32962
|
try {
|
|
32963
32963
|
accept2(value);
|
|
@@ -32970,7 +32970,7 @@ function validateCanonicalJsonDomain(value, pointer) {
|
|
|
32970
32970
|
}
|
|
32971
32971
|
}
|
|
32972
32972
|
|
|
32973
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
32973
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/instance.validate.js
|
|
32974
32974
|
var validatorCache = new WeakMap;
|
|
32975
32975
|
function validateJsonInstance(schema, value, registry2, pointer = "") {
|
|
32976
32976
|
const diagnostics = [...validateCanonicalJsonDomain(value, pointer)];
|
|
@@ -33002,7 +33002,7 @@ function preparedInstanceValidator(schema, registry2, pointer) {
|
|
|
33002
33002
|
return prepared;
|
|
33003
33003
|
}
|
|
33004
33004
|
|
|
33005
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
33005
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/core/validate.js
|
|
33006
33006
|
function validateCore(environment, analysis, registry2) {
|
|
33007
33007
|
const diagnostics = [];
|
|
33008
33008
|
const nodesByRef = resolveCoreNodes(environment, analysis, registry2, diagnostics);
|
|
@@ -33231,7 +33231,7 @@ function escapePointer(value) {
|
|
|
33231
33231
|
return value.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
33232
33232
|
}
|
|
33233
33233
|
|
|
33234
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
33234
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/definition/analysis.js
|
|
33235
33235
|
function analyzeDefinitions(environment) {
|
|
33236
33236
|
const diagnostics = [];
|
|
33237
33237
|
const result = new Map;
|
|
@@ -33411,7 +33411,7 @@ function canonicalPolicy(value) {
|
|
|
33411
33411
|
return exports_json.serialize(value === undefined ? null : normalizePolicyChecks(value));
|
|
33412
33412
|
}
|
|
33413
33413
|
|
|
33414
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
33414
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/resolution/closure.js
|
|
33415
33415
|
var knownClosure = new WeakMap;
|
|
33416
33416
|
function rememberDomainClosure(schema, dependencies) {
|
|
33417
33417
|
const entries = new Map;
|
|
@@ -33453,7 +33453,7 @@ function closureKey(origin, revision) {
|
|
|
33453
33453
|
return `${origin}\x00${revision}`;
|
|
33454
33454
|
}
|
|
33455
33455
|
|
|
33456
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
33456
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/resolution/definition.index.js
|
|
33457
33457
|
function indexSchemaDefinitions(schema) {
|
|
33458
33458
|
const result = new Map;
|
|
33459
33459
|
for (const [name, declaration] of Object.entries(schema.interfaces)) {
|
|
@@ -33477,7 +33477,7 @@ function indexSchemaDefinitions(schema) {
|
|
|
33477
33477
|
return result;
|
|
33478
33478
|
}
|
|
33479
33479
|
|
|
33480
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
33480
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/resolution/origins.js
|
|
33481
33481
|
function collectUsedForeignOrigins(schema) {
|
|
33482
33482
|
return new Set(collectDomainSchemaRefs(schema).filter((ref) => ref.origin !== schema.origin).map((ref) => ref.origin));
|
|
33483
33483
|
}
|
|
@@ -33597,7 +33597,7 @@ function collectValueSchemaRefs(schema, add) {
|
|
|
33597
33597
|
});
|
|
33598
33598
|
}
|
|
33599
33599
|
|
|
33600
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
33600
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/resolution/context.js
|
|
33601
33601
|
function buildDomainResolutionContext(candidate, lookup) {
|
|
33602
33602
|
const diagnostics = [];
|
|
33603
33603
|
const dependencies = new Map;
|
|
@@ -33718,7 +33718,7 @@ function validateDependencyUse(candidate, directOrigins, diagnostics) {
|
|
|
33718
33718
|
}
|
|
33719
33719
|
}
|
|
33720
33720
|
|
|
33721
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
33721
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/resolution/value.registry.js
|
|
33722
33722
|
function createDomainValueSchemaRegistry(schema, lookup = lookupForDomainClosure(schema)) {
|
|
33723
33723
|
return createValueSchemaRegistry(buildDomainResolutionContext(schema, lookup));
|
|
33724
33724
|
}
|
|
@@ -33756,7 +33756,7 @@ function domainValueRegistry(schema) {
|
|
|
33756
33756
|
});
|
|
33757
33757
|
}
|
|
33758
33758
|
|
|
33759
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
33759
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/ordering.js
|
|
33760
33760
|
var ALL_JSON_KINDS = new Set([
|
|
33761
33761
|
"null",
|
|
33762
33762
|
"boolean",
|
|
@@ -33914,7 +33914,7 @@ function schemaList2(input) {
|
|
|
33914
33914
|
return Array.isArray(input) ? input : undefined;
|
|
33915
33915
|
}
|
|
33916
33916
|
|
|
33917
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
33917
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/definition/validate.js
|
|
33918
33918
|
function validateDefinitions(environment, analysis) {
|
|
33919
33919
|
const diagnostics = [...analysis.diagnostics];
|
|
33920
33920
|
const schema = environment.candidate;
|
|
@@ -34114,7 +34114,7 @@ function escapePointer2(value) {
|
|
|
34114
34114
|
return value.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
34115
34115
|
}
|
|
34116
34116
|
|
|
34117
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
34117
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/policy/validation/context.js
|
|
34118
34118
|
class PolicyValidationContext {
|
|
34119
34119
|
environment;
|
|
34120
34120
|
analysis;
|
|
@@ -34204,7 +34204,7 @@ function escapePointer3(value) {
|
|
|
34204
34204
|
return value.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
34205
34205
|
}
|
|
34206
34206
|
|
|
34207
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
34207
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/policy/validation/budgets.js
|
|
34208
34208
|
var MAX_PATTERN_DEPTH = 4;
|
|
34209
34209
|
var MAX_BRANCHES = 8;
|
|
34210
34210
|
var MAX_VARIABLES = 4;
|
|
@@ -34330,7 +34330,7 @@ function isEdge2(value) {
|
|
|
34330
34330
|
return "source" in value;
|
|
34331
34331
|
}
|
|
34332
34332
|
|
|
34333
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
34333
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/policy/validation/branches.js
|
|
34334
34334
|
function branchesOf(pattern, namespace) {
|
|
34335
34335
|
const variables = collectVariableClasses(pattern, namespace);
|
|
34336
34336
|
return branchesForNode(pattern, namespace, variables);
|
|
@@ -34482,7 +34482,7 @@ class UnionFind {
|
|
|
34482
34482
|
}
|
|
34483
34483
|
}
|
|
34484
34484
|
|
|
34485
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
34485
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/policy/validation/references.js
|
|
34486
34486
|
function validatePolicyReferences(context) {
|
|
34487
34487
|
for (const [name, declaration] of Object.entries(context.environment.candidate.policies)) {
|
|
34488
34488
|
const pointer = `/policies/${escapePointer3(name)}`;
|
|
@@ -34607,7 +34607,7 @@ function isEdge4(value) {
|
|
|
34607
34607
|
return "source" in value;
|
|
34608
34608
|
}
|
|
34609
34609
|
|
|
34610
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
34610
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/policy/validation/typing.js
|
|
34611
34611
|
var IDENTITY_REF = {
|
|
34612
34612
|
origin: "kernel.astrale.ai",
|
|
34613
34613
|
kind: "interface",
|
|
@@ -34949,7 +34949,7 @@ class UnionFind2 {
|
|
|
34949
34949
|
}
|
|
34950
34950
|
}
|
|
34951
34951
|
|
|
34952
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
34952
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/policy/validation/uses.js
|
|
34953
34953
|
var KERNEL_ORIGIN = "kernel.astrale.ai";
|
|
34954
34954
|
var PROJECTION_CLASS = nodeClassRef("Class");
|
|
34955
34955
|
var PROJECTION_FUNCTION = nodeClassRef("Function");
|
|
@@ -35172,7 +35172,7 @@ function nodeClassRef(name) {
|
|
|
35172
35172
|
return { origin: KERNEL_ORIGIN, kind: "class", name };
|
|
35173
35173
|
}
|
|
35174
35174
|
|
|
35175
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
35175
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/policy/validation/validate.js
|
|
35176
35176
|
function validatePolicies(environment, analysis) {
|
|
35177
35177
|
const context = new PolicyValidationContext(environment, analysis);
|
|
35178
35178
|
validatePolicyReferences(context);
|
|
@@ -35185,7 +35185,7 @@ function validatePolicies(environment, analysis) {
|
|
|
35185
35185
|
return Object.freeze(context.diagnostics);
|
|
35186
35186
|
}
|
|
35187
35187
|
|
|
35188
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
35188
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/extensions/node-path/validate.js
|
|
35189
35189
|
function validateNodePathExtension(schema, context, pointer, definitionExists) {
|
|
35190
35190
|
const diagnostics = [];
|
|
35191
35191
|
walkSchema(schema, (location) => {
|
|
@@ -35246,7 +35246,7 @@ function hasExactKeys(value, expected) {
|
|
|
35246
35246
|
return actual.length === expected.length && expected.every((key) => Object.hasOwn(value, key));
|
|
35247
35247
|
}
|
|
35248
35248
|
|
|
35249
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
35249
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/resources/recursion.js
|
|
35250
35250
|
var CONSUMING_SCHEMA_KEYWORDS = new Set([
|
|
35251
35251
|
"additionalProperties",
|
|
35252
35252
|
"contains",
|
|
@@ -35337,7 +35337,7 @@ function findCycle(node2, adjacency, visiting, visited) {
|
|
|
35337
35337
|
return;
|
|
35338
35338
|
}
|
|
35339
35339
|
|
|
35340
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
35340
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/profile/meta-schema.compiled.js
|
|
35341
35341
|
var meta_schema_compiled_default = validate20;
|
|
35342
35342
|
var schema0 = { $schema: "https://json-schema.org/draft/2020-12/schema", $id: "https://json-schema.org/draft/2020-12/schema", $vocabulary: { "https://json-schema.org/draft/2020-12/vocab/core": true, "https://json-schema.org/draft/2020-12/vocab/applicator": true, "https://json-schema.org/draft/2020-12/vocab/unevaluated": true, "https://json-schema.org/draft/2020-12/vocab/validation": true, "https://json-schema.org/draft/2020-12/vocab/meta-data": true, "https://json-schema.org/draft/2020-12/vocab/format-annotation": true, "https://json-schema.org/draft/2020-12/vocab/content": true }, $dynamicAnchor: "meta", title: "Core and Validation specifications meta-schema", allOf: [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/unevaluated" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format-annotation" }, { $ref: "meta/content" }], type: ["object", "boolean"], $comment: "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", properties: { definitions: { $comment: '"definitions" has been replaced by "$defs".', type: "object", additionalProperties: { $dynamicRef: "#meta" }, deprecated: true, default: {} }, dependencies: { $comment: '"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.', type: "object", additionalProperties: { anyOf: [{ $dynamicRef: "#meta" }, { $ref: "meta/validation#/$defs/stringArray" }] }, deprecated: true, default: {} }, $recursiveAnchor: { $comment: '"$recursiveAnchor" has been replaced by "$dynamicAnchor".', $ref: "meta/core#/$defs/anchorString", deprecated: true }, $recursiveRef: { $comment: '"$recursiveRef" has been replaced by "$dynamicRef".', $ref: "meta/core#/$defs/uriReferenceString", deprecated: true } } };
|
|
35343
35343
|
var schema1 = { $schema: "https://json-schema.org/draft/2020-12/schema", $id: "https://json-schema.org/draft/2020-12/meta/core", $vocabulary: { "https://json-schema.org/draft/2020-12/vocab/core": true }, $dynamicAnchor: "meta", title: "Core vocabulary meta-schema", type: ["object", "boolean"], properties: { $id: { $ref: "#/$defs/uriReferenceString", $comment: "Non-empty fragments not allowed.", pattern: "^[^#]*#?$" }, $schema: { $ref: "#/$defs/uriString" }, $ref: { $ref: "#/$defs/uriReferenceString" }, $anchor: { $ref: "#/$defs/anchorString" }, $dynamicRef: { $ref: "#/$defs/uriReferenceString" }, $dynamicAnchor: { $ref: "#/$defs/anchorString" }, $vocabulary: { type: "object", propertyNames: { $ref: "#/$defs/uriString" }, additionalProperties: { type: "boolean" } }, $comment: { type: "string" }, $defs: { type: "object", additionalProperties: { $dynamicRef: "#meta" } } }, $defs: { anchorString: { type: "string", pattern: "^[A-Za-z_][-A-Za-z0-9._]*$" }, uriString: { type: "string", format: "uri" }, uriReferenceString: { type: "string", format: "uri-reference" } } };
|
|
@@ -37217,7 +37217,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37217
37217
|
}
|
|
37218
37218
|
validate20.evaluated = { props: { fullMatch: true, "x-astrale-path": true, definitions: true, dependencies: true, $recursiveAnchor: true, $recursiveRef: true, contentEncoding: true, contentMediaType: true, contentSchema: true, format: true, title: true, description: true, default: true, deprecated: true, readOnly: true, writeOnly: true, examples: true, type: true, const: true, enum: true, multipleOf: true, maximum: true, exclusiveMaximum: true, minimum: true, exclusiveMinimum: true, maxLength: true, minLength: true, pattern: true, maxItems: true, minItems: true, uniqueItems: true, maxContains: true, minContains: true, maxProperties: true, minProperties: true, required: true, dependentRequired: true, unevaluatedItems: true, unevaluatedProperties: true, prefixItems: true, items: true, contains: true, additionalProperties: true, properties: true, patternProperties: true, dependentSchemas: true, propertyNames: true, if: true, then: true, else: true, allOf: true, anyOf: true, oneOf: true, not: true, $id: true, $schema: true, $ref: true, $anchor: true, $dynamicRef: true, $dynamicAnchor: true, $vocabulary: true, $comment: true, $defs: true }, dynamicProps: false, dynamicItems: false };
|
|
37219
37219
|
|
|
37220
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
37220
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/profile/meta-schema.validate.js
|
|
37221
37221
|
var validate = meta_schema_compiled_default;
|
|
37222
37222
|
function validateValueSchemaMetaSchema(schema, pointer) {
|
|
37223
37223
|
try {
|
|
@@ -37234,7 +37234,7 @@ function errorMessage(error51) {
|
|
|
37234
37234
|
return error51 instanceof Error ? error51.message : String(error51);
|
|
37235
37235
|
}
|
|
37236
37236
|
|
|
37237
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
37237
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/profile/vocabulary.js
|
|
37238
37238
|
var STANDARD_SCHEMA_KEYWORDS = new Set([
|
|
37239
37239
|
"$anchor",
|
|
37240
37240
|
"$comment",
|
|
@@ -37304,7 +37304,7 @@ var FORBIDDEN_DYNAMIC_KEYWORDS = new Set([
|
|
|
37304
37304
|
"$vocabulary"
|
|
37305
37305
|
]);
|
|
37306
37306
|
|
|
37307
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
37307
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/profile/rules.js
|
|
37308
37308
|
function validateSchemaProfile(schema, context, pointer, namedType) {
|
|
37309
37309
|
const diagnostics = [];
|
|
37310
37310
|
if (context === "named-type" && namedType === undefined) {
|
|
@@ -37441,7 +37441,7 @@ function escapeToken3(value) {
|
|
|
37441
37441
|
return value.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
37442
37442
|
}
|
|
37443
37443
|
|
|
37444
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
37444
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/profile/validate.js
|
|
37445
37445
|
function validateValueSchema(schema, context, registry2, pointer = "") {
|
|
37446
37446
|
const diagnostics = [];
|
|
37447
37447
|
diagnostics.push(...validateCanonicalJsonDomain(schema, pointer));
|
|
@@ -37472,7 +37472,7 @@ function orderAndDeduplicate(diagnostics) {
|
|
|
37472
37472
|
return [...unique2.values()].sort((left, right) => left.pointer.localeCompare(right.pointer) || left.code.localeCompare(right.code) || left.message.localeCompare(right.message));
|
|
37473
37473
|
}
|
|
37474
37474
|
|
|
37475
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
37475
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/validation/value.js
|
|
37476
37476
|
function validateEmbeddedValueSchemas(schema, registry2) {
|
|
37477
37477
|
const diagnostics = [];
|
|
37478
37478
|
for (const [name, value] of Object.entries(schema.types)) {
|
|
@@ -37514,7 +37514,7 @@ function escapePointer4(value) {
|
|
|
37514
37514
|
return value.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
37515
37515
|
}
|
|
37516
37516
|
|
|
37517
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
37517
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/view/validate.js
|
|
37518
37518
|
function validateViews(environment) {
|
|
37519
37519
|
const diagnostics = [];
|
|
37520
37520
|
for (const [name, view] of Object.entries(environment.candidate.views)) {
|
|
@@ -37535,7 +37535,7 @@ function escapePointer5(value) {
|
|
|
37535
37535
|
return value.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
37536
37536
|
}
|
|
37537
37537
|
|
|
37538
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
37538
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/domain.validate.js
|
|
37539
37539
|
function validateDomainSchemaSemantics(schema, lookup) {
|
|
37540
37540
|
const context = buildDomainResolutionContext(schema, lookup);
|
|
37541
37541
|
const analysis = analyzeDefinitions(context);
|
|
@@ -37562,10 +37562,10 @@ function orderAndDeduplicate2(diagnostics) {
|
|
|
37562
37562
|
return [...unique2.values()].sort((left, right) => left.pointer.localeCompare(right.pointer) || left.code.localeCompare(right.code) || left.message.localeCompare(right.message));
|
|
37563
37563
|
}
|
|
37564
37564
|
|
|
37565
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
37565
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/definition/data.js
|
|
37566
37566
|
var MEDIA_TYPE_PATTERN = /^[a-z0-9][a-z0-9!#$&^_.+-]{0,126}\/[a-z0-9][a-z0-9!#$&^_.+-]{0,126}$/u;
|
|
37567
37567
|
|
|
37568
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
37568
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/metadata.js
|
|
37569
37569
|
var exports_metadata = {};
|
|
37570
37570
|
__export(exports_metadata, {
|
|
37571
37571
|
description: () => description,
|
|
@@ -37582,7 +37582,7 @@ var icon = Object.freeze({
|
|
|
37582
37582
|
maxLength: 8000
|
|
37583
37583
|
});
|
|
37584
37584
|
|
|
37585
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
37585
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/validation/domain.structure.js
|
|
37586
37586
|
var originSchema = exports_external.string().min(3).max(253).regex(DOMAIN_ORIGIN_PATTERN);
|
|
37587
37587
|
var memberNameSchema = exports_external.string().regex(MEMBER_NAME_PATTERN);
|
|
37588
37588
|
var propertyKeySchema = exports_external.string().refine(PropertyKey.is, "Expected a canonical PropertyKey.");
|
|
@@ -38012,7 +38012,7 @@ function escapePointerSegment(segment) {
|
|
|
38012
38012
|
return segment.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
38013
38013
|
}
|
|
38014
38014
|
|
|
38015
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38015
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/validation/domain.route.js
|
|
38016
38016
|
var decoders = new Map([
|
|
38017
38017
|
[DOMAIN_FORMAT, new Map([[DOMAIN_VERSION, parseDomainSchemaStructure]])]
|
|
38018
38018
|
]);
|
|
@@ -38042,7 +38042,7 @@ function unsupported(code, pointer2, message2) {
|
|
|
38042
38042
|
throw new DomainSchemaError([diagnostic(code, pointer2, message2)]);
|
|
38043
38043
|
}
|
|
38044
38044
|
|
|
38045
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38045
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/domain.accept.js
|
|
38046
38046
|
function acceptDomainSchema(input, lookup = emptyDomainSchemaLookup()) {
|
|
38047
38047
|
let admitted;
|
|
38048
38048
|
try {
|
|
@@ -38062,7 +38062,7 @@ function acceptDomainSchema(input, lookup = emptyDomainSchemaLookup()) {
|
|
|
38062
38062
|
return accepted;
|
|
38063
38063
|
}
|
|
38064
38064
|
|
|
38065
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38065
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/callable.js
|
|
38066
38066
|
class V1CallableCompiler {
|
|
38067
38067
|
context;
|
|
38068
38068
|
values;
|
|
@@ -38175,7 +38175,7 @@ function nonEmpty2(values, pointer2) {
|
|
|
38175
38175
|
fail("BUILDER_POLICY_EMPTY_COMPOSITION", pointer2, "Policy check composition must be non-empty.");
|
|
38176
38176
|
}
|
|
38177
38177
|
|
|
38178
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38178
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/core.js
|
|
38179
38179
|
function captureCore(input, context) {
|
|
38180
38180
|
for (const [slug, node2] of Object.entries(input?.nodes ?? {})) {
|
|
38181
38181
|
if (!isAuthoringValue(node2, "core-node")) {
|
|
@@ -38218,7 +38218,7 @@ function resolveEndpoint(value, context, pointer2) {
|
|
|
38218
38218
|
return context.resolveCoreEndpoint(value, pointer2);
|
|
38219
38219
|
}
|
|
38220
38220
|
|
|
38221
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38221
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/core.properties.js
|
|
38222
38222
|
function canonicalizeCorePropertyKeys(candidate, lookup) {
|
|
38223
38223
|
const definitions = analyzeDefinitions(buildDomainResolutionContext(candidate, lookup)).definitions;
|
|
38224
38224
|
const nodes = Object.fromEntries(Object.entries(candidate.core.nodes).map(([slug, node2]) => {
|
|
@@ -38283,7 +38283,7 @@ function resolveInputKey(input, definition, byName, pointer2) {
|
|
|
38283
38283
|
fail("BUILDER_CORE_PROPERTY", pointer2, `Property ${JSON.stringify(input)} is ambiguous; use one of: ${candidates.join(", ")}.`);
|
|
38284
38284
|
}
|
|
38285
38285
|
|
|
38286
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38286
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/definition.js
|
|
38287
38287
|
class V1DefinitionCompiler {
|
|
38288
38288
|
context;
|
|
38289
38289
|
values;
|
|
@@ -38465,7 +38465,7 @@ function constraints(options) {
|
|
|
38465
38465
|
};
|
|
38466
38466
|
}
|
|
38467
38467
|
|
|
38468
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38468
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/policy.js
|
|
38469
38469
|
class V1PolicyCompiler {
|
|
38470
38470
|
context;
|
|
38471
38471
|
constructor(context) {
|
|
@@ -38513,7 +38513,7 @@ function assertPolicyCompositionAcyclic(declarations, origin) {
|
|
|
38513
38513
|
visit3(name);
|
|
38514
38514
|
}
|
|
38515
38515
|
|
|
38516
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38516
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/internal/authoring.lazy.js
|
|
38517
38517
|
function resolveLazy(value, pointer2) {
|
|
38518
38518
|
let current = value;
|
|
38519
38519
|
const seen = new Set;
|
|
@@ -38527,7 +38527,7 @@ function resolveLazy(value, pointer2) {
|
|
|
38527
38527
|
return current;
|
|
38528
38528
|
}
|
|
38529
38529
|
|
|
38530
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38530
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/schema.ownership.js
|
|
38531
38531
|
var definitionOwners = new WeakMap;
|
|
38532
38532
|
var semanticOwners = new WeakMap;
|
|
38533
38533
|
|
|
@@ -38558,7 +38558,7 @@ class OwnershipCapture {
|
|
|
38558
38558
|
}
|
|
38559
38559
|
}
|
|
38560
38560
|
|
|
38561
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38561
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/schema.context.js
|
|
38562
38562
|
class BuilderContext {
|
|
38563
38563
|
origin;
|
|
38564
38564
|
ownership = new OwnershipCapture;
|
|
@@ -38779,7 +38779,7 @@ function familyOfAuthoring(value) {
|
|
|
38779
38779
|
return value.definitionKind === "node-class" ? "node" : "edge";
|
|
38780
38780
|
}
|
|
38781
38781
|
|
|
38782
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38782
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/schema.capture.js
|
|
38783
38783
|
function captureSchema(input, context) {
|
|
38784
38784
|
captureDefinitions(input.interfaces ?? {}, input.classes ?? {}, context);
|
|
38785
38785
|
capturePolicies(input.policies ?? {}, context);
|
|
@@ -38856,7 +38856,7 @@ function assertFunction(value, pointer2) {
|
|
|
38856
38856
|
}
|
|
38857
38857
|
}
|
|
38858
38858
|
|
|
38859
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38859
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/value.path.js
|
|
38860
38860
|
function lowerPathSchema(context, resolveAccepts, pointer2) {
|
|
38861
38861
|
const inputs = pathAccepts(context.zodSchema);
|
|
38862
38862
|
if (inputs === undefined)
|
|
@@ -38877,7 +38877,7 @@ function escapeToken4(value) {
|
|
|
38877
38877
|
return value.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
38878
38878
|
}
|
|
38879
38879
|
|
|
38880
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
38880
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/value.zod.js
|
|
38881
38881
|
function convertZodToValueSchema(zodSchema, context, registry2, pointer2 = "", options = {}) {
|
|
38882
38882
|
const diagnostics = inspectZodSchema(zodSchema, pointer2, options.position ?? "value");
|
|
38883
38883
|
if (diagnostics.length > 0)
|
|
@@ -39199,7 +39199,7 @@ function errorMessage2(error51) {
|
|
|
39199
39199
|
return error51 instanceof Error ? error51.message : String(error51);
|
|
39200
39200
|
}
|
|
39201
39201
|
|
|
39202
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
39202
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/value.js
|
|
39203
39203
|
class BuilderValueSchemas {
|
|
39204
39204
|
context;
|
|
39205
39205
|
types;
|
|
@@ -39343,7 +39343,7 @@ function isRequired(value) {
|
|
|
39343
39343
|
return !zodObjectPropertyIsOptional(value);
|
|
39344
39344
|
}
|
|
39345
39345
|
|
|
39346
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
39346
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/view.js
|
|
39347
39347
|
class V1ViewCompiler {
|
|
39348
39348
|
context;
|
|
39349
39349
|
constructor(context) {
|
|
@@ -39366,7 +39366,7 @@ function isTargetList(input) {
|
|
|
39366
39366
|
return Array.isArray(input);
|
|
39367
39367
|
}
|
|
39368
39368
|
|
|
39369
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
39369
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/compiler/schema.js
|
|
39370
39370
|
function compileSchema(origin, input) {
|
|
39371
39371
|
const lookup = new MemoryDomainSchemaLookup(lookupEntriesForDependencies(input.dependencies ?? []));
|
|
39372
39372
|
const candidate = assembleDomainSchema(origin, input, lookup);
|
|
@@ -39434,11 +39434,11 @@ function mapRecord2(record2, map2) {
|
|
|
39434
39434
|
return Object.fromEntries(Object.entries(record2).map(([name, value]) => [name, map2(value, name)]));
|
|
39435
39435
|
}
|
|
39436
39436
|
|
|
39437
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
39437
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/builder/schema.js
|
|
39438
39438
|
function defineSchema(origin, input) {
|
|
39439
39439
|
return compileSchema(origin, input);
|
|
39440
39440
|
}
|
|
39441
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
39441
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/index.js
|
|
39442
39442
|
var exports_schema = {};
|
|
39443
39443
|
__export(exports_schema, {
|
|
39444
39444
|
Error: () => DomainSchemaError,
|
|
@@ -39459,7 +39459,7 @@ __export(exports_schema, {
|
|
|
39459
39459
|
values: () => exports_value
|
|
39460
39460
|
});
|
|
39461
39461
|
|
|
39462
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
39462
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/domain.codec.js
|
|
39463
39463
|
function decodeDomainSchema(input, lookup = emptyDomainSchemaLookup()) {
|
|
39464
39464
|
try {
|
|
39465
39465
|
return acceptDomainSchema(exports_json.decode(input), lookup);
|
|
@@ -39476,7 +39476,7 @@ function serializeDomainSchema(schema) {
|
|
|
39476
39476
|
function encodeDomainSchema(schema) {
|
|
39477
39477
|
return exports_json.encode(schema);
|
|
39478
39478
|
}
|
|
39479
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
39479
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/domain.resolve.js
|
|
39480
39480
|
var resolvedSchemas = new WeakMap;
|
|
39481
39481
|
function resolveDomainSchema(schema) {
|
|
39482
39482
|
const cached2 = resolvedSchemas.get(schema);
|
|
@@ -39506,7 +39506,7 @@ function resolveWithLookup(schema, lookup) {
|
|
|
39506
39506
|
})
|
|
39507
39507
|
});
|
|
39508
39508
|
}
|
|
39509
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
39509
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/dependency.meaning.js
|
|
39510
39510
|
var VALUE_SCHEMA_ANNOTATIONS = new Set([
|
|
39511
39511
|
"$comment",
|
|
39512
39512
|
"contentEncoding",
|
|
@@ -40060,7 +40060,7 @@ function requireMemberRef(ref) {
|
|
|
40060
40060
|
function isJsonSchema3(value) {
|
|
40061
40061
|
return typeof value === "boolean" || isValueObject(value);
|
|
40062
40062
|
}
|
|
40063
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
40063
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/domain.header.js
|
|
40064
40064
|
function readDomainSchemaHeader(input) {
|
|
40065
40065
|
let admitted;
|
|
40066
40066
|
try {
|
|
@@ -40077,7 +40077,7 @@ function readDomainSchemaHeader(input) {
|
|
|
40077
40077
|
origin: structured.origin
|
|
40078
40078
|
});
|
|
40079
40079
|
}
|
|
40080
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
40080
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/schema/value/index.js
|
|
40081
40081
|
var exports_value = {};
|
|
40082
40082
|
__export(exports_value, {
|
|
40083
40083
|
DIALECT: () => VALUE_SCHEMA_DIALECT,
|
|
@@ -40101,7 +40101,7 @@ function registryFor(owner) {
|
|
|
40101
40101
|
}
|
|
40102
40102
|
return registry2;
|
|
40103
40103
|
}
|
|
40104
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
40104
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/bundle/index.js
|
|
40105
40105
|
var exports_bundle = {};
|
|
40106
40106
|
__export(exports_bundle, {
|
|
40107
40107
|
FORMAT: () => DOMAIN_BUNDLE_FORMAT,
|
|
@@ -40113,7 +40113,7 @@ __export(exports_bundle, {
|
|
|
40113
40113
|
serialize: () => serialize2
|
|
40114
40114
|
});
|
|
40115
40115
|
|
|
40116
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
40116
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/bundle/model.js
|
|
40117
40117
|
var DOMAIN_BUNDLE_FORMAT = "astrale.dsl.bundle";
|
|
40118
40118
|
var DOMAIN_BUNDLE_VERSION = "v1";
|
|
40119
40119
|
function createDomainSchemaBundle(root) {
|
|
@@ -40128,7 +40128,7 @@ function asDomainSchemaBundle(root, closure) {
|
|
|
40128
40128
|
});
|
|
40129
40129
|
}
|
|
40130
40130
|
|
|
40131
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
40131
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/bundle/structure.js
|
|
40132
40132
|
function parseDomainSchemaBundleStructure(input) {
|
|
40133
40133
|
if (!isObject3(input)) {
|
|
40134
40134
|
throw new DomainSchemaError([
|
|
@@ -40195,7 +40195,7 @@ function escapeToken5(value) {
|
|
|
40195
40195
|
return value.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
40196
40196
|
}
|
|
40197
40197
|
|
|
40198
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
40198
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/bundle/codec.js
|
|
40199
40199
|
function acceptDomainSchemaBundle(input) {
|
|
40200
40200
|
let admitted;
|
|
40201
40201
|
try {
|
|
@@ -40330,7 +40330,7 @@ function keyOf(origin, revision) {
|
|
|
40330
40330
|
return `${origin}\x00${revision}`;
|
|
40331
40331
|
}
|
|
40332
40332
|
|
|
40333
|
-
// node_modules/.pnpm/@astrale-os+kernel-dsl@
|
|
40333
|
+
// node_modules/.pnpm/@astrale-os+kernel-dsl@0.2.0-beta.2_typescript@6.0.3/node_modules/@astrale-os/kernel-dsl/dist/v1/bundle/index.js
|
|
40334
40334
|
function create(root) {
|
|
40335
40335
|
return createDomainSchemaBundle(root);
|
|
40336
40336
|
}
|
|
@@ -40346,7 +40346,7 @@ function encode6(bundle) {
|
|
|
40346
40346
|
function serialize2(bundle) {
|
|
40347
40347
|
return serializeDomainSchemaBundle(bundle);
|
|
40348
40348
|
}
|
|
40349
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40349
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/node/identity/id.js
|
|
40350
40350
|
var NODE_ID_MAX_LENGTH = 255;
|
|
40351
40351
|
var NODE_ID_INVALID_CHARACTER = /[^A-Za-z0-9._-]/u;
|
|
40352
40352
|
var NODE_ID_ERROR_MESSAGE = "NodeId must be 1-255 ASCII characters drawn from [A-Za-z0-9._-].";
|
|
@@ -40369,7 +40369,7 @@ function isNodeId(input) {
|
|
|
40369
40369
|
return typeof input === "string" && input.length > 0 && input.length <= NODE_ID_MAX_LENGTH && !NODE_ID_INVALID_CHARACTER.test(input);
|
|
40370
40370
|
}
|
|
40371
40371
|
var nodeIdSchema = exports_external.string().refine(isNodeId, NODE_ID_ERROR_MESSAGE).transform((value) => value);
|
|
40372
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40372
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/node/identity/order.js
|
|
40373
40373
|
var encoder4 = new TextEncoder;
|
|
40374
40374
|
function compareNodeIds(left, right) {
|
|
40375
40375
|
const a = encoder4.encode(left);
|
|
@@ -40382,14 +40382,14 @@ function compareNodeIds(left, right) {
|
|
|
40382
40382
|
}
|
|
40383
40383
|
return Math.sign(a.length - b.length);
|
|
40384
40384
|
}
|
|
40385
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40385
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/node/model/index.js
|
|
40386
40386
|
function node2(value) {
|
|
40387
40387
|
return Object.freeze({ id: value.id, class: value.class, props: value.props });
|
|
40388
40388
|
}
|
|
40389
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40389
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/expression/normalization/canonicalize.js
|
|
40390
40390
|
var EXPRESSION_DEPTH_LIMIT = 32;
|
|
40391
40391
|
var EXPRESSION_OPERAND_LIMIT = 64;
|
|
40392
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40392
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/grant/unresolved/limits.js
|
|
40393
40393
|
var CREDENTIAL_NESTING_DEPTH_LIMIT = 3;
|
|
40394
40394
|
var CREDENTIAL_BYTES_LIMIT = 64 * 1024;
|
|
40395
40395
|
var limits = Object.freeze({
|
|
@@ -40397,7 +40397,7 @@ var limits = Object.freeze({
|
|
|
40397
40397
|
operandsPerExpression: EXPRESSION_OPERAND_LIMIT,
|
|
40398
40398
|
credentialNestingDepth: CREDENTIAL_NESTING_DEPTH_LIMIT
|
|
40399
40399
|
});
|
|
40400
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40400
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/authority/admission/admission.js
|
|
40401
40401
|
var limits2 = Object.freeze({
|
|
40402
40402
|
expressionDepth: 64,
|
|
40403
40403
|
operandsPerExpression: 512,
|
|
@@ -40405,7 +40405,7 @@ var limits2 = Object.freeze({
|
|
|
40405
40405
|
repeatMaximum: 16
|
|
40406
40406
|
});
|
|
40407
40407
|
var MAX_BOOLEAN_OPERANDS = limits2.operandsPerExpression;
|
|
40408
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40408
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/claims/index.js
|
|
40409
40409
|
var exports_claims = {};
|
|
40410
40410
|
__export(exports_claims, {
|
|
40411
40411
|
MAX_REQUIRED_CLAIMS: () => MAX_REQUIRED_CLAIMS,
|
|
@@ -40413,9 +40413,9 @@ __export(exports_claims, {
|
|
|
40413
40413
|
verifyRequired: () => verifyRequired
|
|
40414
40414
|
});
|
|
40415
40415
|
|
|
40416
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40416
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/claims/admission/admission.js
|
|
40417
40417
|
var MAX_REQUIRED_CLAIMS = 64;
|
|
40418
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40418
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/claims/evaluation/match.js
|
|
40419
40419
|
function matches(constraint, claims) {
|
|
40420
40420
|
const actual = claims[constraint.claim];
|
|
40421
40421
|
switch (constraint.op) {
|
|
@@ -40430,7 +40430,7 @@ function matches(constraint, claims) {
|
|
|
40430
40430
|
function equal2(left, right) {
|
|
40431
40431
|
return exports_json.serialize(left) === exports_json.serialize(right);
|
|
40432
40432
|
}
|
|
40433
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40433
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/claims/evaluation/verify-required.js
|
|
40434
40434
|
function verifyRequired(constraints2, claims) {
|
|
40435
40435
|
for (let index = 0;index < constraints2.length; index++) {
|
|
40436
40436
|
if (!matches(constraints2[index], claims)) {
|
|
@@ -40438,18 +40438,18 @@ function verifyRequired(constraints2, claims) {
|
|
|
40438
40438
|
}
|
|
40439
40439
|
}
|
|
40440
40440
|
}
|
|
40441
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40441
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/credential/inspection/inspect.js
|
|
40442
40442
|
var MAX_CREDENTIAL_BYTES = 64 * 1024;
|
|
40443
40443
|
var decoder3 = new TextDecoder("utf-8", { fatal: true });
|
|
40444
40444
|
var encoder5 = new TextEncoder;
|
|
40445
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40445
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/issuer/index.js
|
|
40446
40446
|
var exports_issuer = {};
|
|
40447
40447
|
__export(exports_issuer, {
|
|
40448
40448
|
accept: () => accept6,
|
|
40449
40449
|
is: () => is
|
|
40450
40450
|
});
|
|
40451
40451
|
|
|
40452
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40452
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/issuer/issuer-id.js
|
|
40453
40453
|
var AUTH_DOMAIN = /^(?=.{1,253}$)(?:(?!-)[a-z0-9-]{1,63}(?<!-)\.)+(?:(?!-)[a-z0-9-]{2,63}(?<!-))$/i;
|
|
40454
40454
|
var ABSOLUTE_URI = /^([a-z][a-z0-9+.-]*):(.*)$/i;
|
|
40455
40455
|
var DEFAULT_PORTS = Object.freeze({ http: "80", https: "443" });
|
|
@@ -40530,17 +40530,17 @@ function normalizeAuthority(authority, scheme) {
|
|
|
40530
40530
|
function invalid2() {
|
|
40531
40531
|
throw new AuthValueError("AUTH_ISSUER_INVALID", "Expected a supported issuer identifier");
|
|
40532
40532
|
}
|
|
40533
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40533
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/delegation/admission.js
|
|
40534
40534
|
var MAX_CREDENTIAL_BYTES2 = 64 * 1024;
|
|
40535
40535
|
var encoder6 = new TextEncoder;
|
|
40536
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40536
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/jwk/index.js
|
|
40537
40537
|
var exports_jwk = {};
|
|
40538
40538
|
__export(exports_jwk, {
|
|
40539
40539
|
acceptPublic: () => acceptPublic,
|
|
40540
40540
|
thumbprint: () => thumbprint
|
|
40541
40541
|
});
|
|
40542
40542
|
|
|
40543
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40543
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/jwk/public-key.js
|
|
40544
40544
|
var ASYMMETRIC_TYPES = new Set(["EC", "OKP", "RSA"]);
|
|
40545
40545
|
var PRIVATE_MEMBERS = ["d", "p", "q", "dp", "dq", "qi", "oth", "k"];
|
|
40546
40546
|
var BASE64URL = /^[A-Za-z0-9_-]+$/u;
|
|
@@ -40595,7 +40595,7 @@ function deepFreeze2(input) {
|
|
|
40595
40595
|
function invalid3(path2, message2) {
|
|
40596
40596
|
throw new AuthValueError("AUTH_JWK_INVALID", message2, path2);
|
|
40597
40597
|
}
|
|
40598
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40598
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/jwk/thumbprint.js
|
|
40599
40599
|
async function thumbprint(input) {
|
|
40600
40600
|
const key = acceptPublic(input);
|
|
40601
40601
|
const canonical = JSON.stringify(members(key));
|
|
@@ -40617,7 +40617,7 @@ function base64url3(input) {
|
|
|
40617
40617
|
binary += String.fromCharCode(byte);
|
|
40618
40618
|
return btoa(binary).replaceAll("+", "-").replaceAll("/", "_").replace(/=+$/u, "");
|
|
40619
40619
|
}
|
|
40620
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40620
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/class/path.js
|
|
40621
40621
|
var CLASS_PATH_PATTERN = /^\/:([^:]+):class\.([A-Za-z][A-Za-z0-9_]*)$/u;
|
|
40622
40622
|
var ClassPath = Object.freeze({
|
|
40623
40623
|
parse(input) {
|
|
@@ -40671,7 +40671,7 @@ function describe5(input) {
|
|
|
40671
40671
|
return String(input);
|
|
40672
40672
|
}
|
|
40673
40673
|
}
|
|
40674
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40674
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/edge/slug/index.js
|
|
40675
40675
|
var edgeSlugSchema = Object.freeze({
|
|
40676
40676
|
type: "string",
|
|
40677
40677
|
minLength: 1,
|
|
@@ -40698,7 +40698,7 @@ function EdgeSlug(input) {
|
|
|
40698
40698
|
return input;
|
|
40699
40699
|
}
|
|
40700
40700
|
|
|
40701
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40701
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/path/language/error.js
|
|
40702
40702
|
class PathError extends TypeError {
|
|
40703
40703
|
input;
|
|
40704
40704
|
code = "PATH_INVALID";
|
|
@@ -40720,7 +40720,7 @@ function pathError(input, code, message2, position) {
|
|
|
40720
40720
|
]);
|
|
40721
40721
|
}
|
|
40722
40722
|
|
|
40723
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
40723
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/path/language/syntax.js
|
|
40724
40724
|
var PROJECTION_KINDS = new Set([
|
|
40725
40725
|
"class",
|
|
40726
40726
|
"interface",
|
|
@@ -40816,7 +40816,7 @@ function parseIdProgram(input) {
|
|
|
40816
40816
|
}
|
|
40817
40817
|
function parseDomainProgram(input) {
|
|
40818
40818
|
if (!input.startsWith("/:")) {
|
|
40819
|
-
throw pathError(input, "PATH_UNKNOWN_FORM", "Path must
|
|
40819
|
+
throw pathError(input, "PATH_UNKNOWN_FORM", "Path must start with a Domain origin (`/:<domain-origin>`) or a Node ID (`@<node-id>`).", 0);
|
|
40820
40820
|
}
|
|
40821
40821
|
const originEnd = findStepStart(input, 2);
|
|
40822
40822
|
const origin = input.slice(2, originEnd);
|
|
@@ -40999,12 +40999,12 @@ function invalidEdgeSlug(input, position) {
|
|
|
40999
40999
|
throw pathError(input, "PATH_INVALID_EDGE_SLUG", "Traversal Edge slug is invalid.", position);
|
|
41000
41000
|
}
|
|
41001
41001
|
|
|
41002
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41002
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/path/language/index.js
|
|
41003
41003
|
function NodePath(input) {
|
|
41004
41004
|
return serializePathAST(parsePathAST(input));
|
|
41005
41005
|
}
|
|
41006
41006
|
|
|
41007
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41007
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/path/authoring/path.js
|
|
41008
41008
|
class Path {
|
|
41009
41009
|
raw;
|
|
41010
41010
|
ast;
|
|
@@ -41120,7 +41120,7 @@ function defineRefinement(path2) {
|
|
|
41120
41120
|
function define(target, key, value) {
|
|
41121
41121
|
Object.defineProperty(target, key, { enumerable: true, value });
|
|
41122
41122
|
}
|
|
41123
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41123
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/edge/model/index.js
|
|
41124
41124
|
function edge2(value) {
|
|
41125
41125
|
return Object.freeze({
|
|
41126
41126
|
source: value.source,
|
|
@@ -41130,24 +41130,24 @@ function edge2(value) {
|
|
|
41130
41130
|
props: value.props
|
|
41131
41131
|
});
|
|
41132
41132
|
}
|
|
41133
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41133
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/edge/identity/order.js
|
|
41134
41134
|
function compareEdgeKeys(left, right) {
|
|
41135
41135
|
return compareNodeIds(left.source, right.source) || compareNodeIds(left.target, right.target) || compareAscii(left.class, right.class);
|
|
41136
41136
|
}
|
|
41137
41137
|
function compareAscii(left, right) {
|
|
41138
41138
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
41139
41139
|
}
|
|
41140
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41140
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/edge/identity/index.js
|
|
41141
41141
|
function encodeEdgeKey(key) {
|
|
41142
41142
|
return JSON.stringify([key.source, key.target, key.class]);
|
|
41143
41143
|
}
|
|
41144
41144
|
|
|
41145
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41145
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/edge/index.js
|
|
41146
41146
|
function edgeKeyOf(edge3) {
|
|
41147
41147
|
return Object.freeze({ source: edge3.source, target: edge3.target, class: edge3.class });
|
|
41148
41148
|
}
|
|
41149
41149
|
|
|
41150
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41150
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/properties/value/index.js
|
|
41151
41151
|
function normalizeProperties(input, pointer2 = "") {
|
|
41152
41152
|
const admitted = accept2(input);
|
|
41153
41153
|
if (admitted === null || typeof admitted !== "object" || Array.isArray(admitted)) {
|
|
@@ -41188,7 +41188,7 @@ function compare(left, right) {
|
|
|
41188
41188
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
41189
41189
|
}
|
|
41190
41190
|
|
|
41191
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41191
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/properties/delta/index.js
|
|
41192
41192
|
function normalizeDelta(input, pointer2 = "") {
|
|
41193
41193
|
const admitted = accept2(input);
|
|
41194
41194
|
if (admitted === null || typeof admitted !== "object" || Array.isArray(admitted) || !hasExactKeys3(admitted, ["set", "unset"])) {
|
|
@@ -41231,7 +41231,7 @@ function hasExactKeys3(value, expected) {
|
|
|
41231
41231
|
function child2(pointer2, suffix) {
|
|
41232
41232
|
return `${pointer2}/${suffix}`;
|
|
41233
41233
|
}
|
|
41234
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41234
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/properties/merge/index.js
|
|
41235
41235
|
function merge2(base, current, target) {
|
|
41236
41236
|
const keys = [...new Set([...Object.keys(base), ...Object.keys(current), ...Object.keys(target)])].map(PropertyKey).sort(compare3);
|
|
41237
41237
|
const output2 = [];
|
|
@@ -41271,7 +41271,7 @@ function equalState(left, right) {
|
|
|
41271
41271
|
function compare3(left, right) {
|
|
41272
41272
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
41273
41273
|
}
|
|
41274
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41274
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/graph/admission/error.js
|
|
41275
41275
|
class GraphAdmissionError extends TypeError {
|
|
41276
41276
|
diagnostics;
|
|
41277
41277
|
code = "GRAPH_ADMISSION_REJECTED";
|
|
@@ -41282,7 +41282,7 @@ class GraphAdmissionError extends TypeError {
|
|
|
41282
41282
|
}
|
|
41283
41283
|
}
|
|
41284
41284
|
|
|
41285
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41285
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/graph/admission/model.js
|
|
41286
41286
|
function graphDiagnostic(code, path2, message2) {
|
|
41287
41287
|
return Object.freeze({ code, path: path2, message: message2 });
|
|
41288
41288
|
}
|
|
@@ -41293,7 +41293,7 @@ function compareText(left, right) {
|
|
|
41293
41293
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
41294
41294
|
}
|
|
41295
41295
|
|
|
41296
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41296
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/graph/admission/admit.js
|
|
41297
41297
|
function admitGraphData(data, context) {
|
|
41298
41298
|
const diagnostics = [];
|
|
41299
41299
|
const classes = new Map;
|
|
@@ -41449,7 +41449,7 @@ function safeJson(value) {
|
|
|
41449
41449
|
return "<non-json>";
|
|
41450
41450
|
}
|
|
41451
41451
|
}
|
|
41452
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41452
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/graph/delta/index.js
|
|
41453
41453
|
function delta3(left, right) {
|
|
41454
41454
|
const leftNodes = new Map(left.nodes.all.map((node3) => [node3.id, node3]));
|
|
41455
41455
|
const additionsNodes = [];
|
|
@@ -41528,7 +41528,7 @@ function invalid4(message2) {
|
|
|
41528
41528
|
throw new TypeError(message2);
|
|
41529
41529
|
}
|
|
41530
41530
|
|
|
41531
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41531
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/graph/indexes/collection.js
|
|
41532
41532
|
var EMPTY_NODES = Object.freeze([]);
|
|
41533
41533
|
var EMPTY_EDGES = Object.freeze([]);
|
|
41534
41534
|
function createCollections(nodes, edges, indexes) {
|
|
@@ -41597,7 +41597,7 @@ function freezeBuckets(map2) {
|
|
|
41597
41597
|
for (const [key, bucket] of map2)
|
|
41598
41598
|
map2.set(key, Object.freeze(bucket));
|
|
41599
41599
|
}
|
|
41600
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41600
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/graph/merge/index.js
|
|
41601
41601
|
function mergeData2(base, current, target) {
|
|
41602
41602
|
const baseNodes = new Map(base.nodes.map((node3) => [node3.id, node3]));
|
|
41603
41603
|
const currentNodes = new Map(current.nodes.map((node3) => [node3.id, node3]));
|
|
@@ -41720,7 +41720,7 @@ function data2(nodes, edges) {
|
|
|
41720
41720
|
return Object.freeze({ nodes: Object.freeze(nodes), edges: Object.freeze(edges) });
|
|
41721
41721
|
}
|
|
41722
41722
|
|
|
41723
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41723
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/graph/navigation/error.js
|
|
41724
41724
|
class GraphPathWalkerRequiredError extends Error {
|
|
41725
41725
|
path;
|
|
41726
41726
|
code = "GRAPH_PATH_WALKER_REQUIRED";
|
|
@@ -41730,7 +41730,7 @@ class GraphPathWalkerRequiredError extends Error {
|
|
|
41730
41730
|
this.name = "GraphPathWalkerRequiredError";
|
|
41731
41731
|
}
|
|
41732
41732
|
}
|
|
41733
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41733
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/graph/graph.js
|
|
41734
41734
|
var EMPTY_DATA = Object.freeze({
|
|
41735
41735
|
nodes: Object.freeze([]),
|
|
41736
41736
|
edges: Object.freeze([])
|
|
@@ -41811,7 +41811,7 @@ function equalEdge2(left, right) {
|
|
|
41811
41811
|
const rightKey = edgeKeyOf(right);
|
|
41812
41812
|
return leftKey.source === rightKey.source && leftKey.target === rightKey.target && leftKey.class === rightKey.class && left.slug === right.slug && equal3(left.props, right.props);
|
|
41813
41813
|
}
|
|
41814
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41814
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/wire.js
|
|
41815
41815
|
function decodeWire(schema, input, invalid5) {
|
|
41816
41816
|
const result = schema.safeParse(input);
|
|
41817
41817
|
if (result.success)
|
|
@@ -41825,7 +41825,7 @@ function escapePointer6(value) {
|
|
|
41825
41825
|
return value.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
41826
41826
|
}
|
|
41827
41827
|
|
|
41828
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41828
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/graph/model/model.js
|
|
41829
41829
|
var LOCAL_BINDING_PATTERN = /^[A-Za-z][A-Za-z0-9_]{0,63}$/u;
|
|
41830
41830
|
function LocalBinding(input) {
|
|
41831
41831
|
if (!isLocalBinding(input)) {
|
|
@@ -41837,7 +41837,7 @@ function isLocalBinding(input) {
|
|
|
41837
41837
|
return typeof input === "string" && LOCAL_BINDING_PATTERN.test(input);
|
|
41838
41838
|
}
|
|
41839
41839
|
|
|
41840
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41840
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/graph/model/wire.js
|
|
41841
41841
|
var text = exports_external.string().min(1);
|
|
41842
41842
|
var props = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
41843
41843
|
var binding = exports_external.string().check(fullMatch("[A-Za-z][A-Za-z0-9_]{0,63}"));
|
|
@@ -41867,7 +41867,7 @@ var graphDataSchema = exports_external.strictObject({
|
|
|
41867
41867
|
edges: exports_external.array(graphEdgeSchema)
|
|
41868
41868
|
});
|
|
41869
41869
|
|
|
41870
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
41870
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/graph/model/codec.js
|
|
41871
41871
|
class GraphDataDecodeError extends TypeError {
|
|
41872
41872
|
path;
|
|
41873
41873
|
code = "GRAPH_DATA_INVALID";
|
|
@@ -42084,10 +42084,10 @@ function errorPointer(error51, fallback = "") {
|
|
|
42084
42084
|
return error51 instanceof BoundaryError ? error51.pointer : fallback;
|
|
42085
42085
|
}
|
|
42086
42086
|
|
|
42087
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
42087
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/graph/model/index.js
|
|
42088
42088
|
var GraphData = Object.freeze({ decode: decodeGraphData, encode: encodeGraphData });
|
|
42089
42089
|
var GraphSpec = Object.freeze({ decode: decodeGraphSpec, encode: encodeGraphSpec });
|
|
42090
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
42090
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/query/language/error.js
|
|
42091
42091
|
class QueryASTDecodeError extends TypeError {
|
|
42092
42092
|
path;
|
|
42093
42093
|
code = "QUERY_AST_INVALID";
|
|
@@ -42097,7 +42097,7 @@ class QueryASTDecodeError extends TypeError {
|
|
|
42097
42097
|
this.name = "QueryASTDecodeError";
|
|
42098
42098
|
}
|
|
42099
42099
|
}
|
|
42100
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
42100
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/query/language/model.js
|
|
42101
42101
|
var QUERY_AST_FORMAT = "astrale.graph.query";
|
|
42102
42102
|
var QUERY_AST_VERSION = "v6";
|
|
42103
42103
|
var QUERY_AST_LIMITS = Object.freeze({
|
|
@@ -42107,7 +42107,7 @@ var QUERY_AST_LIMITS = Object.freeze({
|
|
|
42107
42107
|
bindings: 513
|
|
42108
42108
|
});
|
|
42109
42109
|
|
|
42110
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
42110
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/query/language/wire.js
|
|
42111
42111
|
var text2 = exports_external.string().min(1);
|
|
42112
42112
|
var binding3 = text2.max(64);
|
|
42113
42113
|
var definition = exports_external.strictObject({
|
|
@@ -42184,7 +42184,7 @@ var queryAstSchema = exports_external.strictObject({
|
|
|
42184
42184
|
select: exports_external.discriminatedUnion("kind", [graphSelect, nodeSelect, edgeSelect])
|
|
42185
42185
|
});
|
|
42186
42186
|
|
|
42187
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
42187
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/query/language/codec.js
|
|
42188
42188
|
var admittedQueryASTs = new WeakSet;
|
|
42189
42189
|
function decodeQueryAST(input) {
|
|
42190
42190
|
try {
|
|
@@ -42446,7 +42446,7 @@ function invalid6(path2, message2, cause) {
|
|
|
42446
42446
|
function errorPointer2(error51) {
|
|
42447
42447
|
return error51 instanceof BoundaryError ? error51.pointer : "";
|
|
42448
42448
|
}
|
|
42449
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
42449
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/query/language/fingerprint.js
|
|
42450
42450
|
var QUERY_DOMAIN = utf8ToBytes("astrale-query-ast-v6\x00");
|
|
42451
42451
|
var fingerprints = new WeakMap;
|
|
42452
42452
|
function fingerprintQueryAST(input) {
|
|
@@ -42583,7 +42583,7 @@ function compareBytes2(left, right) {
|
|
|
42583
42583
|
}
|
|
42584
42584
|
return Math.sign(left.length - right.length);
|
|
42585
42585
|
}
|
|
42586
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
42586
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/query/language/query-ast.js
|
|
42587
42587
|
var QueryAST = Object.freeze({
|
|
42588
42588
|
format: QUERY_AST_FORMAT,
|
|
42589
42589
|
version: QUERY_AST_VERSION,
|
|
@@ -42592,7 +42592,7 @@ var QueryAST = Object.freeze({
|
|
|
42592
42592
|
encode: encodeQueryAST,
|
|
42593
42593
|
fingerprint: fingerprintQueryAST
|
|
42594
42594
|
});
|
|
42595
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
42595
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/query/language/selection.js
|
|
42596
42596
|
function querySelectionKind(query) {
|
|
42597
42597
|
if (query.select.kind === "nodes")
|
|
42598
42598
|
return "node";
|
|
@@ -42619,7 +42619,7 @@ function querySelectionKind(query) {
|
|
|
42619
42619
|
throw new TypeError("Admitted Query selected an unknown binding.");
|
|
42620
42620
|
}
|
|
42621
42621
|
|
|
42622
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
42622
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/mutate/language/error.js
|
|
42623
42623
|
class MutationASTDecodeError extends TypeError {
|
|
42624
42624
|
path;
|
|
42625
42625
|
code = "MUTATION_AST_INVALID";
|
|
@@ -42630,7 +42630,7 @@ class MutationASTDecodeError extends TypeError {
|
|
|
42630
42630
|
}
|
|
42631
42631
|
}
|
|
42632
42632
|
|
|
42633
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
42633
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/mutate/language/model.js
|
|
42634
42634
|
var MUTATION_AST_FORMAT = "astrale.graph.mutation";
|
|
42635
42635
|
var MUTATION_AST_VERSION = "v3";
|
|
42636
42636
|
var MUTATION_AST_LIMITS = Object.freeze({
|
|
@@ -42639,7 +42639,7 @@ var MUTATION_AST_LIMITS = Object.freeze({
|
|
|
42639
42639
|
queryExpectedIdentities: 4096
|
|
42640
42640
|
});
|
|
42641
42641
|
|
|
42642
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
42642
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/mutate/language/wire.js
|
|
42643
42643
|
var text3 = exports_external.string().min(1);
|
|
42644
42644
|
var binding4 = exports_external.string().min(1).max(64);
|
|
42645
42645
|
var propertyKey = exports_external.string().check(fullMatch(exports_schema.patterns.propertyKeyFullMatch));
|
|
@@ -42714,7 +42714,7 @@ var mutationAstSchema = exports_external.strictObject({
|
|
|
42714
42714
|
])).min(1)
|
|
42715
42715
|
});
|
|
42716
42716
|
|
|
42717
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
42717
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/mutate/language/codec.js
|
|
42718
42718
|
function decodeMutationAST(input) {
|
|
42719
42719
|
try {
|
|
42720
42720
|
return decodeV3(decodeWire(mutationAstSchema, accept2(input), invalid7));
|
|
@@ -43091,7 +43091,7 @@ function invalid7(path2, message2) {
|
|
|
43091
43091
|
function errorPointer3(error51) {
|
|
43092
43092
|
return error51 instanceof BoundaryError ? error51.pointer : "";
|
|
43093
43093
|
}
|
|
43094
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
43094
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/mutate/language/index.js
|
|
43095
43095
|
var MutationLanguage = Object.freeze({
|
|
43096
43096
|
format: MUTATION_AST_FORMAT,
|
|
43097
43097
|
version: MUTATION_AST_VERSION,
|
|
@@ -43100,7 +43100,7 @@ var MutationLanguage = Object.freeze({
|
|
|
43100
43100
|
encode: encodeMutationAST
|
|
43101
43101
|
});
|
|
43102
43102
|
|
|
43103
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
43103
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/mutate/authoring/create.js
|
|
43104
43104
|
function createMutationAST(input) {
|
|
43105
43105
|
const preconditions = input.preconditions === undefined ? [] : input.preconditions;
|
|
43106
43106
|
return MutationLanguage.decode({
|
|
@@ -43188,7 +43188,7 @@ function mutationEndpoint(endpoint3) {
|
|
|
43188
43188
|
return "created" in endpoint3 ? Object.freeze({ created: endpoint3.created }) : endpoint3.path;
|
|
43189
43189
|
}
|
|
43190
43190
|
|
|
43191
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
43191
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/mutate/authoring/builder.js
|
|
43192
43192
|
function buildMutationAST(author) {
|
|
43193
43193
|
if (typeof author !== "function")
|
|
43194
43194
|
throw new TypeError("Mutation author must be a function.");
|
|
@@ -43297,7 +43297,7 @@ function buildMutationAST(author) {
|
|
|
43297
43297
|
function isPromiseLike(input) {
|
|
43298
43298
|
return (typeof input === "object" || typeof input === "function") && input !== null && typeof input.then === "function";
|
|
43299
43299
|
}
|
|
43300
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
43300
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/mutate/result/error.js
|
|
43301
43301
|
class MutationResultDecodeError extends TypeError {
|
|
43302
43302
|
path;
|
|
43303
43303
|
code = "MUTATION_RESULT_INVALID";
|
|
@@ -43308,12 +43308,12 @@ class MutationResultDecodeError extends TypeError {
|
|
|
43308
43308
|
}
|
|
43309
43309
|
}
|
|
43310
43310
|
|
|
43311
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
43311
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/mutate/result/wire.js
|
|
43312
43312
|
var text4 = exports_external.string().min(1);
|
|
43313
43313
|
var binding5 = exports_external.string().min(1).max(64);
|
|
43314
43314
|
var mutationResultSchema = exports_external.strictObject({ createdNodes: exports_external.record(binding5, text4) });
|
|
43315
43315
|
|
|
43316
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
43316
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/mutate/result/index.js
|
|
43317
43317
|
var MutationResult = Object.freeze({ decode: decodeMutationResult, encode: encodeMutationResult });
|
|
43318
43318
|
function encodeMutationResult(input) {
|
|
43319
43319
|
return decodeMutationResult(input);
|
|
@@ -43357,7 +43357,7 @@ function errorPointer4(error51) {
|
|
|
43357
43357
|
return error51 instanceof BoundaryError ? error51.pointer : "";
|
|
43358
43358
|
}
|
|
43359
43359
|
|
|
43360
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
43360
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/mutate/index.js
|
|
43361
43361
|
var MutationAST = Object.freeze({
|
|
43362
43362
|
format: MutationLanguage.format,
|
|
43363
43363
|
version: MutationLanguage.version,
|
|
@@ -43368,10 +43368,10 @@ var MutationAST = Object.freeze({
|
|
|
43368
43368
|
decode: MutationLanguage.decode,
|
|
43369
43369
|
encode: MutationLanguage.encode
|
|
43370
43370
|
});
|
|
43371
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
43371
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/auth/provision/request/admission.js
|
|
43372
43372
|
var PROOF_BYTES_LIMIT = 64 * 1024;
|
|
43373
43373
|
var textEncoder2 = new TextEncoder;
|
|
43374
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43374
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/artifact/ref.js
|
|
43375
43375
|
var DIGEST = /^sha256:[0-9a-f]{64}$/u;
|
|
43376
43376
|
var TOKEN = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/u;
|
|
43377
43377
|
function accept11(input) {
|
|
@@ -43429,7 +43429,7 @@ function compare5(left, right) {
|
|
|
43429
43429
|
function invalid9(subject) {
|
|
43430
43430
|
throw new TypeError(`Artifact Ref has invalid ${subject}.`);
|
|
43431
43431
|
}
|
|
43432
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43432
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/errors/codes.js
|
|
43433
43433
|
var CODES = Object.freeze({
|
|
43434
43434
|
PARSE_ERROR: 1001,
|
|
43435
43435
|
INVALID_REQUEST: 1002,
|
|
@@ -43451,7 +43451,7 @@ var CODES = Object.freeze({
|
|
|
43451
43451
|
BACKEND_UNAVAILABLE: 5001,
|
|
43452
43452
|
OUTCOME_UNKNOWN: 5002
|
|
43453
43453
|
});
|
|
43454
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43454
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/errors/http-status.js
|
|
43455
43455
|
var STATUS = {
|
|
43456
43456
|
[CODES.PARSE_ERROR]: 400,
|
|
43457
43457
|
[CODES.INVALID_REQUEST]: 400,
|
|
@@ -43473,7 +43473,7 @@ var STATUS = {
|
|
|
43473
43473
|
[CODES.BACKEND_UNAVAILABLE]: 503,
|
|
43474
43474
|
[CODES.OUTCOME_UNKNOWN]: 500
|
|
43475
43475
|
};
|
|
43476
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43476
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/errors/payload.js
|
|
43477
43477
|
var CODES_SET = new Set(Object.values(CODES));
|
|
43478
43478
|
var FIELDS = new Set(["code", "message", "data"]);
|
|
43479
43479
|
function acceptPayload(input, label = "error") {
|
|
@@ -43507,7 +43507,7 @@ function acceptPayload(input, label = "error") {
|
|
|
43507
43507
|
function isValueObject2(value) {
|
|
43508
43508
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
43509
43509
|
}
|
|
43510
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43510
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/errors/protocol-error.js
|
|
43511
43511
|
class ProtocolError extends Error {
|
|
43512
43512
|
payload;
|
|
43513
43513
|
constructor(payload) {
|
|
@@ -43516,17 +43516,18 @@ class ProtocolError extends Error {
|
|
|
43516
43516
|
this.payload = payload;
|
|
43517
43517
|
}
|
|
43518
43518
|
}
|
|
43519
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43519
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/errors/reason.js
|
|
43520
43520
|
var FIELDS2 = new Set(["code", "details"]);
|
|
43521
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43522
|
-
var FIELDS3 = new Set(["kind", "
|
|
43523
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43524
|
-
var FIELDS4 = new Set(["version", "kind", "
|
|
43525
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43521
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/binary.js
|
|
43522
|
+
var FIELDS3 = new Set(["kind", "requestId", "invocation", "body", "mediaType", "headers"]);
|
|
43523
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/cancellation.js
|
|
43524
|
+
var FIELDS4 = new Set(["version", "kind", "requestId"]);
|
|
43525
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/idempotency.js
|
|
43526
43526
|
var HTTP_IDEMPOTENCY_KEY = "x-astrale-idempotency-key";
|
|
43527
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43527
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/http/binary.js
|
|
43528
43528
|
var BINARY_HEADERS_FIELD = "x-astrale-binary-headers";
|
|
43529
43529
|
var REQUEST_ID_FIELD = "x-astrale-request-id";
|
|
43530
|
+
var INVOCATION_FIELD = "x-astrale-invocation";
|
|
43530
43531
|
var EMPTY_MANIFEST = "-";
|
|
43531
43532
|
var RESERVED = new Set([
|
|
43532
43533
|
"authorization",
|
|
@@ -43553,21 +43554,22 @@ var RESERVED = new Set([
|
|
|
43553
43554
|
"www-authenticate",
|
|
43554
43555
|
EMPTY_MANIFEST,
|
|
43555
43556
|
BINARY_HEADERS_FIELD,
|
|
43557
|
+
INVOCATION_FIELD,
|
|
43556
43558
|
REQUEST_ID_FIELD,
|
|
43557
43559
|
"x-astrale-stream-framing"
|
|
43558
43560
|
]);
|
|
43559
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43561
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/codecs/codec.js
|
|
43560
43562
|
class DecodeError2 extends SyntaxError {
|
|
43561
43563
|
name = "DecodeError";
|
|
43562
43564
|
constructor(message2, options) {
|
|
43563
43565
|
super(message2, options);
|
|
43564
43566
|
}
|
|
43565
43567
|
}
|
|
43566
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43568
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/codecs/media-types.js
|
|
43567
43569
|
var CONTENT_TYPE_JSON = "application/vnd.astrale+json";
|
|
43568
43570
|
var CONTENT_TYPE_MSGPACK = "application/vnd.astrale.msgpack";
|
|
43569
43571
|
|
|
43570
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43572
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/codecs/json.js
|
|
43571
43573
|
var json2 = Object.freeze({
|
|
43572
43574
|
name: "json",
|
|
43573
43575
|
contentType: CONTENT_TYPE_JSON,
|
|
@@ -43584,7 +43586,7 @@ var json2 = Object.freeze({
|
|
|
43584
43586
|
}
|
|
43585
43587
|
}
|
|
43586
43588
|
});
|
|
43587
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43589
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/codecs/msgpack.js
|
|
43588
43590
|
var library = null;
|
|
43589
43591
|
var MSGPACK = Object.freeze({
|
|
43590
43592
|
name: "msgpack",
|
|
@@ -43616,15 +43618,15 @@ var MSGPACK = Object.freeze({
|
|
|
43616
43618
|
}
|
|
43617
43619
|
}
|
|
43618
43620
|
});
|
|
43619
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43621
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/http/stream.js
|
|
43620
43622
|
var encoder7 = new TextEncoder;
|
|
43621
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43623
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/http/trace.js
|
|
43622
43624
|
var EMPTY_HEADERS = Object.freeze({});
|
|
43623
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43625
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/delegate.js
|
|
43624
43626
|
var FIELDS5 = new Set(["ttlSeconds", "attenuation"]);
|
|
43625
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43626
|
-
var FIELDS6 = new Set(["kind", "
|
|
43627
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43627
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/miss.js
|
|
43628
|
+
var FIELDS6 = new Set(["kind", "requestId", "invocation"]);
|
|
43629
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/index.js
|
|
43628
43630
|
var exports_publication = {};
|
|
43629
43631
|
__export(exports_publication, {
|
|
43630
43632
|
BUNDLE_MEDIA_TYPE: () => BUNDLE_MEDIA_TYPE,
|
|
@@ -43650,7 +43652,7 @@ __export(exports_publication, {
|
|
|
43650
43652
|
validateRequirements: () => validateRequirements
|
|
43651
43653
|
});
|
|
43652
43654
|
|
|
43653
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43655
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/error.js
|
|
43654
43656
|
class PublicationError extends Error {
|
|
43655
43657
|
code;
|
|
43656
43658
|
name = "PublicationError";
|
|
@@ -43663,7 +43665,7 @@ function fail2(code, message2, cause) {
|
|
|
43663
43665
|
throw new PublicationError(code, message2, cause === undefined ? undefined : { cause });
|
|
43664
43666
|
}
|
|
43665
43667
|
|
|
43666
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43668
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/content.js
|
|
43667
43669
|
function record2(input, code, message2) {
|
|
43668
43670
|
if (input === null || typeof input !== "object" || Array.isArray(input))
|
|
43669
43671
|
fail2(code, message2);
|
|
@@ -43714,7 +43716,7 @@ function absoluteUrl(input, protocols, allowSearch, code, allowTemplate = false)
|
|
|
43714
43716
|
return input;
|
|
43715
43717
|
}
|
|
43716
43718
|
|
|
43717
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43719
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/bindings/invocation.js
|
|
43718
43720
|
function acceptInvocationEndpoints(input) {
|
|
43719
43721
|
const value = record2(input, "PUBLICATION_BINDING_INVALID", "Invocation endpoints are invalid.");
|
|
43720
43722
|
exact(value, ["http", "websocket"], "PUBLICATION_BINDING_INVALID");
|
|
@@ -43726,7 +43728,7 @@ function acceptInvocationEndpoints(input) {
|
|
|
43726
43728
|
});
|
|
43727
43729
|
}
|
|
43728
43730
|
|
|
43729
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43731
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/bindings/callable.js
|
|
43730
43732
|
function admitCallableBinding(input, origin) {
|
|
43731
43733
|
const value = record2(input, "PUBLICATION_BINDING_INVALID", "Callable binding is invalid.");
|
|
43732
43734
|
exact(value, ["callable", "endpoint"], "PUBLICATION_BINDING_INVALID");
|
|
@@ -43751,7 +43753,7 @@ function admitCallableKey(input, origin) {
|
|
|
43751
43753
|
}
|
|
43752
43754
|
return callable;
|
|
43753
43755
|
}
|
|
43754
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43756
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/bindings/view.js
|
|
43755
43757
|
function admitViewBinding(input, origin) {
|
|
43756
43758
|
const value = record2(input, "PUBLICATION_VIEW_INVALID", "Published View binding is invalid.");
|
|
43757
43759
|
exact(value, ["view", "href", "handshake"], "PUBLICATION_VIEW_INVALID");
|
|
@@ -43776,7 +43778,7 @@ function admitViewBinding(input, origin) {
|
|
|
43776
43778
|
handshake: value.handshake
|
|
43777
43779
|
});
|
|
43778
43780
|
}
|
|
43779
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43781
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/etag.js
|
|
43780
43782
|
var DIGEST2 = /^sha256:[0-9a-f]{64}$/u;
|
|
43781
43783
|
function admitDigest(input) {
|
|
43782
43784
|
if (typeof input !== "string" || !DIGEST2.test(input)) {
|
|
@@ -43918,7 +43920,7 @@ var ROUND = new Uint32Array([
|
|
|
43918
43920
|
3329325298
|
|
43919
43921
|
]);
|
|
43920
43922
|
|
|
43921
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43923
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/bundle.js
|
|
43922
43924
|
var BUNDLE_MEDIA_TYPE = "application/vnd.astrale.domain-bundle+json;v=1";
|
|
43923
43925
|
function admitBundleDescriptor(input) {
|
|
43924
43926
|
const value = record2(input, "PUBLICATION_INVALID", "Bundle descriptor is invalid.");
|
|
@@ -43976,7 +43978,7 @@ function decodeBundleValue(publication, bytes) {
|
|
|
43976
43978
|
}
|
|
43977
43979
|
}
|
|
43978
43980
|
|
|
43979
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
43981
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/delivery-endpoint.js
|
|
43980
43982
|
function admitEndpoint(input, publicUrl) {
|
|
43981
43983
|
if (input === undefined)
|
|
43982
43984
|
return;
|
|
@@ -43998,7 +44000,7 @@ function admitEndpoint(input, publicUrl) {
|
|
|
43998
44000
|
});
|
|
43999
44001
|
}
|
|
44000
44002
|
|
|
44001
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
44003
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/manifest.js
|
|
44002
44004
|
function admitManifest(input) {
|
|
44003
44005
|
if (input === undefined)
|
|
44004
44006
|
return;
|
|
@@ -44020,7 +44022,7 @@ function admitManifest(input) {
|
|
|
44020
44022
|
});
|
|
44021
44023
|
}
|
|
44022
44024
|
|
|
44023
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44025
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/core/node.js
|
|
44024
44026
|
class CoreNodeModel {
|
|
44025
44027
|
origin;
|
|
44026
44028
|
name;
|
|
@@ -44039,7 +44041,7 @@ class CoreNodeModel {
|
|
|
44039
44041
|
}
|
|
44040
44042
|
}
|
|
44041
44043
|
|
|
44042
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44044
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/core/collection.js
|
|
44043
44045
|
function coreNodesFor(domainSchema) {
|
|
44044
44046
|
const nodes = {};
|
|
44045
44047
|
for (const slug of Object.keys(domainSchema.core.nodes).sort()) {
|
|
@@ -44050,7 +44052,7 @@ function coreNodesFor(domainSchema) {
|
|
|
44050
44052
|
}
|
|
44051
44053
|
return Object.freeze(nodes);
|
|
44052
44054
|
}
|
|
44053
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44055
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/error.js
|
|
44054
44056
|
class DomainError extends Error {
|
|
44055
44057
|
code;
|
|
44056
44058
|
diagnostics;
|
|
@@ -44062,7 +44064,7 @@ class DomainError extends Error {
|
|
|
44062
44064
|
}
|
|
44063
44065
|
}
|
|
44064
44066
|
|
|
44065
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44067
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/collection.js
|
|
44066
44068
|
class ImmutableMap {
|
|
44067
44069
|
#map;
|
|
44068
44070
|
constructor(entries) {
|
|
@@ -44096,12 +44098,12 @@ class ImmutableMap {
|
|
|
44096
44098
|
}
|
|
44097
44099
|
}
|
|
44098
44100
|
|
|
44099
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44101
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/addressing/address.js
|
|
44100
44102
|
function definitionIdentity(origin, kind, name) {
|
|
44101
44103
|
const ref = Ref.definition(kind, name);
|
|
44102
44104
|
return Object.freeze({ origin, kind, name, ref, key: Key.of(origin, ref) });
|
|
44103
44105
|
}
|
|
44104
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44106
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/data.js
|
|
44105
44107
|
function dataFor(model) {
|
|
44106
44108
|
const data3 = model.analysis?.data;
|
|
44107
44109
|
return data3 === undefined ? undefined : Object.freeze({
|
|
@@ -44110,7 +44112,7 @@ function dataFor(model) {
|
|
|
44110
44112
|
});
|
|
44111
44113
|
}
|
|
44112
44114
|
|
|
44113
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44115
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/inheritance/satisfies.js
|
|
44114
44116
|
function definitionSatisfies(source2, target) {
|
|
44115
44117
|
const queue = [source2];
|
|
44116
44118
|
const visited = new Set;
|
|
@@ -44128,7 +44130,7 @@ function definitionSatisfies(source2, target) {
|
|
|
44128
44130
|
}
|
|
44129
44131
|
return false;
|
|
44130
44132
|
}
|
|
44131
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44133
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/inheritance/parents.js
|
|
44132
44134
|
function parentRefsFor(model) {
|
|
44133
44135
|
if (model.schemaRef.kind === "interface") {
|
|
44134
44136
|
return model.declaration.extends;
|
|
@@ -44138,7 +44140,7 @@ function parentRefsFor(model) {
|
|
|
44138
44140
|
}
|
|
44139
44141
|
return [];
|
|
44140
44142
|
}
|
|
44141
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44143
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/source/source.js
|
|
44142
44144
|
function definitionModelFor(schemaRef, schemas3, rootResolution) {
|
|
44143
44145
|
const domainSchema = schemas3.get(schemaRef.origin);
|
|
44144
44146
|
if (domainSchema === undefined)
|
|
@@ -44240,7 +44242,7 @@ function classKind(_declaration) {
|
|
|
44240
44242
|
function isSchemaDefinitionKind(kind) {
|
|
44241
44243
|
return kind === "class" || kind === "interface";
|
|
44242
44244
|
}
|
|
44243
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44245
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/lookup/lookup.js
|
|
44244
44246
|
function schemaRefForLocator(locator, localOrigin, schemas3) {
|
|
44245
44247
|
if (typeof locator !== "string") {
|
|
44246
44248
|
return schemas3.has(locator.origin) ? locator : undefined;
|
|
@@ -44261,7 +44263,7 @@ function schemaRefForLocator(locator, localOrigin, schemas3) {
|
|
|
44261
44263
|
const domainSchema = schemas3.get(origin);
|
|
44262
44264
|
return domainSchema === undefined ? undefined : schemaRefFor(domainSchema, reference2);
|
|
44263
44265
|
}
|
|
44264
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44266
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/lookup/local.js
|
|
44265
44267
|
function requireLocalDefinition(catalog, kinds, name, label) {
|
|
44266
44268
|
const matches2 = kinds.flatMap((kind) => {
|
|
44267
44269
|
const value = catalog.localByKind.get(kind)?.get(name);
|
|
@@ -44274,7 +44276,7 @@ function requireLocalDefinition(catalog, kinds, name, label) {
|
|
|
44274
44276
|
}
|
|
44275
44277
|
throw new DomainError("DOMAIN_DEFINITION_NOT_FOUND", `${label} ${JSON.stringify(name)} does not exist in ${catalog.schema.origin}.`);
|
|
44276
44278
|
}
|
|
44277
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44279
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/lookup/member.js
|
|
44278
44280
|
var FIXED_DEFINITION_KEYS = new Set([
|
|
44279
44281
|
"$",
|
|
44280
44282
|
"origin",
|
|
@@ -44327,15 +44329,15 @@ function indexByName(values) {
|
|
|
44327
44329
|
}
|
|
44328
44330
|
return result;
|
|
44329
44331
|
}
|
|
44330
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44332
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/method/addressing/instance.js
|
|
44331
44333
|
function instanceMethodPath(receiver, name) {
|
|
44332
44334
|
return Path.instanceMethod(receiver, name);
|
|
44333
44335
|
}
|
|
44334
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44336
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/method/addressing/static.js
|
|
44335
44337
|
function staticMethodPath(owner, name) {
|
|
44336
44338
|
return Path.staticMethod(Path.project(owner), name);
|
|
44337
44339
|
}
|
|
44338
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44340
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/method/project.js
|
|
44339
44341
|
function methodsFor(model) {
|
|
44340
44342
|
const methods = [];
|
|
44341
44343
|
for (const [name, method] of model.analysis?.methods ?? []) {
|
|
@@ -44356,7 +44358,7 @@ function methodsFor(model) {
|
|
|
44356
44358
|
}
|
|
44357
44359
|
return new ImmutableMap(methods);
|
|
44358
44360
|
}
|
|
44359
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44361
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/property/project.js
|
|
44360
44362
|
function propertiesFor(model) {
|
|
44361
44363
|
const properties = [];
|
|
44362
44364
|
for (const [key, field] of model.analysis?.properties ?? []) {
|
|
@@ -44380,7 +44382,7 @@ function propertiesFor(model) {
|
|
|
44380
44382
|
}
|
|
44381
44383
|
return new ImmutableMap(properties);
|
|
44382
44384
|
}
|
|
44383
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44385
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/definition.js
|
|
44384
44386
|
class DefinitionModel {
|
|
44385
44387
|
$;
|
|
44386
44388
|
origin;
|
|
@@ -44451,7 +44453,7 @@ function pathFor(ref) {
|
|
|
44451
44453
|
}
|
|
44452
44454
|
}
|
|
44453
44455
|
|
|
44454
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44456
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/catalog/catalog.js
|
|
44455
44457
|
function createDomainCatalog(domainSchema) {
|
|
44456
44458
|
let resolved;
|
|
44457
44459
|
try {
|
|
@@ -44516,7 +44518,7 @@ function createDomainCatalog(domainSchema) {
|
|
|
44516
44518
|
function compareText2(left, right) {
|
|
44517
44519
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
44518
44520
|
}
|
|
44519
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44521
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/instance/binding/bind.js
|
|
44520
44522
|
function bindInstanceMethods(definition2, actual, receiver, binder) {
|
|
44521
44523
|
const bound = [];
|
|
44522
44524
|
for (const method of definition2.methods.values()) {
|
|
@@ -44538,7 +44540,7 @@ function bindInstanceMethods(definition2, actual, receiver, binder) {
|
|
|
44538
44540
|
function isInstanceMethod(method) {
|
|
44539
44541
|
return typeof method === "object" && method !== null && "on" in method;
|
|
44540
44542
|
}
|
|
44541
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44543
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/instance/access/project.js
|
|
44542
44544
|
var FIXED_VALUE_KEYS = new Set(["$", "$d", "class", "props"]);
|
|
44543
44545
|
function projectDomainAccess(value, definition2, actual, bindMethod) {
|
|
44544
44546
|
const propertyValues = new Map;
|
|
@@ -44695,7 +44697,7 @@ function indexValues(values, keyOf2) {
|
|
|
44695
44697
|
function isNode(value) {
|
|
44696
44698
|
return "id" in value;
|
|
44697
44699
|
}
|
|
44698
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44700
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/instance/projection/project.js
|
|
44699
44701
|
function wrapDomainValue(context, value, expected, bindMethod) {
|
|
44700
44702
|
const node3 = isNode2(value);
|
|
44701
44703
|
const actual = context.schemaDefinition({
|
|
@@ -44717,7 +44719,7 @@ function wrapDomainValue(context, value, expected, bindMethod) {
|
|
|
44717
44719
|
function isNode2(value) {
|
|
44718
44720
|
return "id" in value;
|
|
44719
44721
|
}
|
|
44720
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44722
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/validation/callable/resolution.js
|
|
44721
44723
|
function callableDeclaration(catalog, key) {
|
|
44722
44724
|
const origin = Key.origin(key);
|
|
44723
44725
|
const reference2 = Key.ref(key);
|
|
@@ -44753,7 +44755,7 @@ function isMethodRef(ref) {
|
|
|
44753
44755
|
return ref.includes(".method.");
|
|
44754
44756
|
}
|
|
44755
44757
|
|
|
44756
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44758
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/validation/result/diagnostic.js
|
|
44757
44759
|
function domainDiagnostic(code, message2, path2, details) {
|
|
44758
44760
|
return Object.freeze({
|
|
44759
44761
|
code,
|
|
@@ -44762,14 +44764,14 @@ function domainDiagnostic(code, message2, path2, details) {
|
|
|
44762
44764
|
...details === undefined ? {} : { details }
|
|
44763
44765
|
});
|
|
44764
44766
|
}
|
|
44765
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44767
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/validation/result/result.js
|
|
44766
44768
|
function validationResult(status, diagnostics = []) {
|
|
44767
44769
|
return Object.freeze({ status, diagnostics: Object.freeze([...diagnostics]) });
|
|
44768
44770
|
}
|
|
44769
44771
|
function resultFromDiagnostics(diagnostics) {
|
|
44770
44772
|
return validationResult(diagnostics.length === 0 ? "pass" : "reject", diagnostics);
|
|
44771
44773
|
}
|
|
44772
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44774
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/validation/callable/input/validate.js
|
|
44773
44775
|
function validateCallableInput(catalog, key, value) {
|
|
44774
44776
|
try {
|
|
44775
44777
|
const { declaration, owner } = callableDeclaration(catalog, key);
|
|
@@ -44781,7 +44783,7 @@ function validateCallableInput(catalog, key, value) {
|
|
|
44781
44783
|
function diagnosticFromError(error51) {
|
|
44782
44784
|
return error51 instanceof DomainError ? domainDiagnostic(error51.code, error51.message) : domainDiagnostic("DOMAIN_VALIDATION_FAILED", error51 instanceof Error ? error51.message : String(error51));
|
|
44783
44785
|
}
|
|
44784
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44786
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/validation/callable/output/validate.js
|
|
44785
44787
|
function validateCallableOutput(catalog, key, value) {
|
|
44786
44788
|
try {
|
|
44787
44789
|
const { declaration, owner } = callableDeclaration(catalog, key);
|
|
@@ -44799,7 +44801,7 @@ function validateCallableOutput(catalog, key, value) {
|
|
|
44799
44801
|
function diagnosticFromError2(error51) {
|
|
44800
44802
|
return error51 instanceof DomainError ? domainDiagnostic(error51.code, error51.message) : domainDiagnostic("DOMAIN_VALIDATION_FAILED", error51 instanceof Error ? error51.message : String(error51));
|
|
44801
44803
|
}
|
|
44802
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44804
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/validation/property/qualification/qualify.js
|
|
44803
44805
|
function qualifyPropertyInput(catalog, definitionRef, input) {
|
|
44804
44806
|
const admitted = accept2(input);
|
|
44805
44807
|
if (admitted === null || typeof admitted !== "object" || Array.isArray(admitted)) {
|
|
@@ -44837,7 +44839,7 @@ function propertyAliases(properties) {
|
|
|
44837
44839
|
}
|
|
44838
44840
|
return result;
|
|
44839
44841
|
}
|
|
44840
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44842
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/validation/property/validate.js
|
|
44841
44843
|
function validateProperties(catalog, definitionRef, input) {
|
|
44842
44844
|
let qualified;
|
|
44843
44845
|
let definition2;
|
|
@@ -44882,7 +44884,7 @@ function requireSchema2(catalog, origin) {
|
|
|
44882
44884
|
function diagnosticFromError3(error51) {
|
|
44883
44885
|
return error51 instanceof DomainError ? domainDiagnostic(error51.code, error51.message) : domainDiagnostic("DOMAIN_VALIDATION_FAILED", error51 instanceof Error ? error51.message : String(error51));
|
|
44884
44886
|
}
|
|
44885
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44887
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/validation/validator.js
|
|
44886
44888
|
function createDomainValidator(context) {
|
|
44887
44889
|
return Object.freeze({
|
|
44888
44890
|
properties: (definition2, input) => validateProperties(context, definition2, input),
|
|
@@ -44894,7 +44896,7 @@ function createDomainValidator(context) {
|
|
|
44894
44896
|
}
|
|
44895
44897
|
});
|
|
44896
44898
|
}
|
|
44897
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44899
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/validation/property/admission/admit.js
|
|
44898
44900
|
function admitProperties(catalog, definitionRef, input) {
|
|
44899
44901
|
const qualified = qualifyPropertyInput(catalog, definitionRef, input);
|
|
44900
44902
|
const definition2 = catalog.definition(definitionRef);
|
|
@@ -44907,7 +44909,7 @@ function admitProperties(catalog, definitionRef, input) {
|
|
|
44907
44909
|
}
|
|
44908
44910
|
return qualified;
|
|
44909
44911
|
}
|
|
44910
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44912
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/view/applicability/applicable.js
|
|
44911
44913
|
function isViewApplicable(target, subject) {
|
|
44912
44914
|
if (target.kind === "domain")
|
|
44913
44915
|
return subject === "domain";
|
|
@@ -44915,7 +44917,7 @@ function isViewApplicable(target, subject) {
|
|
|
44915
44917
|
return false;
|
|
44916
44918
|
return target.definitions.some((definition2) => subject.satisfies(definition2));
|
|
44917
44919
|
}
|
|
44918
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44920
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/view/target/resolve.js
|
|
44919
44921
|
function resolveViewTarget(catalog, view2) {
|
|
44920
44922
|
const target = view2.definition.target;
|
|
44921
44923
|
if (target.kind === "domain")
|
|
@@ -44925,17 +44927,17 @@ function resolveViewTarget(catalog, view2) {
|
|
|
44925
44927
|
definitions: Object.freeze(target.definitions.map((definition2) => catalog.schemaDefinition(definition2)))
|
|
44926
44928
|
});
|
|
44927
44929
|
}
|
|
44928
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44930
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/view/selection/order.js
|
|
44929
44931
|
function compareViews(left, right) {
|
|
44930
44932
|
return left.key < right.key ? -1 : left.key > right.key ? 1 : 0;
|
|
44931
44933
|
}
|
|
44932
44934
|
|
|
44933
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44935
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/view/selection/select.js
|
|
44934
44936
|
function selectViews(catalog, subject) {
|
|
44935
44937
|
const candidates = catalog.localByKind.get("view")?.values() ?? [];
|
|
44936
44938
|
return Object.freeze([...candidates].filter((candidate2) => candidate2.kind === "view").filter((view2) => isViewApplicable(resolveViewTarget(catalog, view2), subject)).sort(compareViews));
|
|
44937
44939
|
}
|
|
44938
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44940
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/domain/domain.js
|
|
44939
44941
|
var admittedDomains = new WeakSet;
|
|
44940
44942
|
|
|
44941
44943
|
class DomainModel {
|
|
@@ -44991,7 +44993,7 @@ var Domain = DomainModel;
|
|
|
44991
44993
|
function isDefinition(value) {
|
|
44992
44994
|
return typeof value === "object" && value !== null && "$" in value && "key" in value;
|
|
44993
44995
|
}
|
|
44994
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
44996
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/meta/descriptable.js
|
|
44995
44997
|
var Descriptable = defineInterface({
|
|
44996
44998
|
family: "both",
|
|
44997
44999
|
description: "Optional human-facing description metadata with no identity or authority semantics.",
|
|
@@ -44999,12 +45001,12 @@ var Descriptable = defineInterface({
|
|
|
44999
45001
|
description: property(exports_schema.metadata.description, { required: false })
|
|
45000
45002
|
}
|
|
45001
45003
|
});
|
|
45002
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45004
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/meta/edge.js
|
|
45003
45005
|
var Edge = defineInterface({
|
|
45004
45006
|
family: "both",
|
|
45005
45007
|
description: "Explicit kernel marker for Edge definitions; it carries no structural fields."
|
|
45006
45008
|
});
|
|
45007
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45009
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/meta/iconable.js
|
|
45008
45010
|
var Iconable = defineInterface({
|
|
45009
45011
|
family: "both",
|
|
45010
45012
|
description: "Optional bounded presentation icon metadata.",
|
|
@@ -45012,7 +45014,7 @@ var Iconable = defineInterface({
|
|
|
45012
45014
|
icon: property(exports_schema.metadata.icon, { required: false })
|
|
45013
45015
|
}
|
|
45014
45016
|
});
|
|
45015
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45017
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/meta/named.js
|
|
45016
45018
|
var Named = defineInterface({
|
|
45017
45019
|
family: "both",
|
|
45018
45020
|
description: "Stable human-facing name metadata that never acts as a locator.",
|
|
@@ -45020,11 +45022,11 @@ var Named = defineInterface({
|
|
|
45020
45022
|
name: { type: "string", minLength: 1, maxLength: 100 }
|
|
45021
45023
|
}
|
|
45022
45024
|
});
|
|
45023
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45025
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/meta/node.js
|
|
45024
45026
|
var Node = nodeInterface({
|
|
45025
45027
|
description: "The universal kernel node contract implicitly satisfied by every Node Interface and Node Class."
|
|
45026
45028
|
});
|
|
45027
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45029
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/meta/remotable.js
|
|
45028
45030
|
var Remotable = defineInterface({
|
|
45029
45031
|
family: "both",
|
|
45030
45032
|
description: "Optional synchronization metadata for a value originating outside the local kernel.",
|
|
@@ -45034,7 +45036,7 @@ var Remotable = defineInterface({
|
|
|
45034
45036
|
updatedAt: property(exports_schema.values.instant, { required: false })
|
|
45035
45037
|
}
|
|
45036
45038
|
});
|
|
45037
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45039
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/meta/statused.js
|
|
45038
45040
|
var Statused = defineInterface({
|
|
45039
45041
|
family: "both",
|
|
45040
45042
|
description: "Explicit lifecycle-state metadata for values whose contract declares such a state.",
|
|
@@ -45042,7 +45044,7 @@ var Statused = defineInterface({
|
|
|
45042
45044
|
status: { enum: ["active", "creating", "deleting", "error", "updating"] }
|
|
45043
45045
|
}
|
|
45044
45046
|
});
|
|
45045
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45047
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/meta/timestamped.js
|
|
45046
45048
|
var Timestamped = defineInterface({
|
|
45047
45049
|
family: "both",
|
|
45048
45050
|
description: "Explicit creation and update timestamp metadata.",
|
|
@@ -45054,7 +45056,7 @@ var Timestamped = defineInterface({
|
|
|
45054
45056
|
})
|
|
45055
45057
|
}
|
|
45056
45058
|
});
|
|
45057
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45059
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/definitions/class.js
|
|
45058
45060
|
var Class2 = nodeClass({
|
|
45059
45061
|
description: "The installed graph projection of a concrete Node Class or Edge Class declaration.",
|
|
45060
45062
|
implements: [Descriptable, Iconable],
|
|
@@ -45062,7 +45064,7 @@ var Class2 = nodeClass({
|
|
|
45062
45064
|
family: { enum: ["node", "edge"] }
|
|
45063
45065
|
}
|
|
45064
45066
|
});
|
|
45065
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45067
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/definitions/interface.js
|
|
45066
45068
|
var Interface = nodeClass({
|
|
45067
45069
|
description: "The installed graph projection of a both-, Node-, or Edge-family Interface.",
|
|
45068
45070
|
implements: [Descriptable],
|
|
@@ -45071,7 +45073,7 @@ var Interface = nodeClass({
|
|
|
45071
45073
|
}
|
|
45072
45074
|
});
|
|
45073
45075
|
|
|
45074
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45076
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/definitions/extends.js
|
|
45075
45077
|
var Extends = edgeClass.directed({
|
|
45076
45078
|
source: { as: "sub", accepts: [Interface], outgoing: "0..*" },
|
|
45077
45079
|
target: { as: "super", accepts: [Interface], incoming: "0..*" },
|
|
@@ -45079,7 +45081,7 @@ var Extends = edgeClass.directed({
|
|
|
45079
45081
|
implements: [Edge],
|
|
45080
45082
|
constraints: { noSelf: true, acyclic: true }
|
|
45081
45083
|
});
|
|
45082
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45084
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/definitions/implements.js
|
|
45083
45085
|
var Implements = edgeClass.directed({
|
|
45084
45086
|
source: { as: "class", accepts: [Class2], outgoing: "0..*" },
|
|
45085
45087
|
target: { as: "interface", accepts: [Interface], incoming: "0..*" },
|
|
@@ -45087,14 +45089,14 @@ var Implements = edgeClass.directed({
|
|
|
45087
45089
|
implements: [Edge],
|
|
45088
45090
|
constraints: { noSelf: true }
|
|
45089
45091
|
});
|
|
45090
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45092
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/definitions/instance-of.js
|
|
45091
45093
|
var InstanceOf = edgeClass.directed({
|
|
45092
45094
|
source: { as: "instance", accepts: [Node], outgoing: "1" },
|
|
45093
45095
|
target: { as: "class", accepts: [Class2], incoming: "0..*" },
|
|
45094
45096
|
description: "The concrete Node Class fact fixed when a node is created.",
|
|
45095
45097
|
implements: [Edge]
|
|
45096
45098
|
});
|
|
45097
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45099
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/authority-relation.js
|
|
45098
45100
|
var IdentityRef = {
|
|
45099
45101
|
origin: "kernel.astrale.ai",
|
|
45100
45102
|
kind: "interface",
|
|
@@ -45109,27 +45111,27 @@ function authorityRelation(target, role, description2) {
|
|
|
45109
45111
|
});
|
|
45110
45112
|
}
|
|
45111
45113
|
|
|
45112
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45114
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/can-create.js
|
|
45113
45115
|
var CanCreate = authorityRelation(Class2, "class", "An Identity may create instances of the target Class.");
|
|
45114
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45116
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/can-delete.js
|
|
45115
45117
|
var CanDelete = authorityRelation(Class2, "class", "An Identity may delete instances of the target Class.");
|
|
45116
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45118
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/operation.js
|
|
45117
45119
|
var Operation = nodeClass({
|
|
45118
45120
|
description: "One closed authority relation operation administered by can_grant and can_revoke.",
|
|
45119
45121
|
implements: [Named]
|
|
45120
45122
|
});
|
|
45121
45123
|
|
|
45122
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45124
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/can-grant.js
|
|
45123
45125
|
var CanGrant = authorityRelation(Operation, "operation", "An Identity may create authority edges for the target Operation.");
|
|
45124
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45126
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/can-read.js
|
|
45125
45127
|
var CanRead = authorityRelation(Class2, "class", "An Identity may read complete instances of the target Class; read also permits traversal.");
|
|
45126
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45128
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/can-revoke.js
|
|
45127
45129
|
var CanRevoke = authorityRelation(Operation, "operation", "An Identity may remove authority edges for the target Operation.");
|
|
45128
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45130
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/can-traverse.js
|
|
45129
45131
|
var CanTraverse = authorityRelation(Class2, "class", "An Identity may use instances of the target Class as structural Query witnesses without reading their values.");
|
|
45130
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45132
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/can-update.js
|
|
45131
45133
|
var CanUpdate = authorityRelation(Class2, "class", "An Identity may update instances of the target Class.");
|
|
45132
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45134
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/admit.js
|
|
45133
45135
|
var admitInput = exports_external.strictObject({
|
|
45134
45136
|
call: exports_external.strictObject({
|
|
45135
45137
|
target: exports_external.string().min(1),
|
|
@@ -45141,11 +45143,11 @@ var admitOutput = exports_external.strictObject({
|
|
|
45141
45143
|
callable: exports_external.string().min(1),
|
|
45142
45144
|
receiver: exports_external.string().min(1).optional()
|
|
45143
45145
|
});
|
|
45144
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45146
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/can.js
|
|
45145
45147
|
var text5 = exports_external.string().min(1);
|
|
45146
45148
|
var canInput = exports_external.strictObject({ policy: text5, object: text5 });
|
|
45147
45149
|
var canOutput = exports_external.strictObject({ allowed: exports_external.boolean() });
|
|
45148
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45150
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/delegate.js
|
|
45149
45151
|
var text6 = exports_external.string().min(1);
|
|
45150
45152
|
var delegateInput = exports_external.strictObject({
|
|
45151
45153
|
audience: text6,
|
|
@@ -45153,7 +45155,10 @@ var delegateInput = exports_external.strictObject({
|
|
|
45153
45155
|
attenuation: exports_external.unknown()
|
|
45154
45156
|
});
|
|
45155
45157
|
var delegateOutput = text6;
|
|
45156
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45158
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/installation/operation-id.js
|
|
45159
|
+
var operationIdSchema = exports_external.string().check(fullMatch("[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"));
|
|
45160
|
+
|
|
45161
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/installation.js
|
|
45157
45162
|
var installationText = exports_external.string().min(1);
|
|
45158
45163
|
var installationDigest = installationText.check(fullMatch("sha256:[0-9a-f]{64}"));
|
|
45159
45164
|
var artifactRef = exports_external.strictObject({
|
|
@@ -45214,7 +45219,7 @@ var installationTarget = exports_external.strictObject({
|
|
|
45214
45219
|
});
|
|
45215
45220
|
var transitionIntent = exports_external.strictObject({
|
|
45216
45221
|
transition: installationText,
|
|
45217
|
-
operation:
|
|
45222
|
+
operation: operationIdSchema,
|
|
45218
45223
|
installation: installationText,
|
|
45219
45224
|
origin: installationText,
|
|
45220
45225
|
source: installationTarget.nullable(),
|
|
@@ -45232,24 +45237,10 @@ var transitionReceipt = exports_external.strictObject({
|
|
|
45232
45237
|
state: exports_external.literal("committed"),
|
|
45233
45238
|
readiness: readinessReceipt.optional()
|
|
45234
45239
|
});
|
|
45235
|
-
var installationOperation = exports_external.discriminatedUnion("kind", [
|
|
45236
|
-
exports_external.strictObject({
|
|
45237
|
-
operation: installationText,
|
|
45238
|
-
kind: exports_external.literal("install"),
|
|
45239
|
-
fingerprint: installationDigest,
|
|
45240
|
-
transitions: exports_external.array(transitionReceipt).min(1)
|
|
45241
|
-
}),
|
|
45242
|
-
exports_external.strictObject({
|
|
45243
|
-
operation: installationText,
|
|
45244
|
-
kind: exports_external.literal("uninstall"),
|
|
45245
|
-
fingerprint: installationDigest,
|
|
45246
|
-
transition: transitionReceipt
|
|
45247
|
-
})
|
|
45248
|
-
]);
|
|
45249
45240
|
|
|
45250
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45241
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/install.js
|
|
45251
45242
|
var installInput = exports_external.strictObject({
|
|
45252
|
-
operation:
|
|
45243
|
+
operation: operationIdSchema,
|
|
45253
45244
|
domains: exports_external.array(exports_external.union([
|
|
45254
45245
|
exports_external.strictObject({
|
|
45255
45246
|
source: exports_external.strictObject({
|
|
@@ -45271,10 +45262,10 @@ var installInput = exports_external.strictObject({
|
|
|
45271
45262
|
])).min(1)
|
|
45272
45263
|
});
|
|
45273
45264
|
var installOutput = exports_external.strictObject({
|
|
45274
|
-
operation:
|
|
45265
|
+
operation: operationIdSchema,
|
|
45275
45266
|
transitions: exports_external.array(transitionReceipt).min(1)
|
|
45276
45267
|
});
|
|
45277
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45268
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/introspect.js
|
|
45278
45269
|
var selection = exports_external.strictObject({
|
|
45279
45270
|
state: exports_external.literal(true).optional(),
|
|
45280
45271
|
target: exports_external.literal(true).optional(),
|
|
@@ -45290,13 +45281,14 @@ var introspectInput = exports_external.strictObject({
|
|
|
45290
45281
|
}),
|
|
45291
45282
|
select: selection
|
|
45292
45283
|
});
|
|
45293
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45284
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/journal.js
|
|
45294
45285
|
var text7 = exports_external.string().min(1);
|
|
45295
45286
|
var eventTopicPattern = exports_external.strictObject({
|
|
45296
45287
|
exact: exports_external.array(text7).optional(),
|
|
45297
45288
|
prefixes: exports_external.array(text7).optional()
|
|
45298
45289
|
});
|
|
45299
45290
|
var journalInput = exports_external.strictObject({
|
|
45291
|
+
invocation: exports_external.strictObject({ source: text7, id: text7 }).optional(),
|
|
45300
45292
|
topics: eventTopicPattern.optional(),
|
|
45301
45293
|
principal: text7.optional(),
|
|
45302
45294
|
since: text7.optional(),
|
|
@@ -45315,7 +45307,7 @@ var journalOutput = exports_external.strictObject({
|
|
|
45315
45307
|
cursor: text7.optional(),
|
|
45316
45308
|
gap: exports_external.unknown().optional()
|
|
45317
45309
|
});
|
|
45318
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45310
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/mint.js
|
|
45319
45311
|
var text8 = exports_external.string().min(1);
|
|
45320
45312
|
var mintInput = exports_external.strictObject({
|
|
45321
45313
|
audience: text8.optional(),
|
|
@@ -45323,10 +45315,10 @@ var mintInput = exports_external.strictObject({
|
|
|
45323
45315
|
grant: exports_external.unknown().optional()
|
|
45324
45316
|
});
|
|
45325
45317
|
var mintOutput = text8;
|
|
45326
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45318
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/mutate.js
|
|
45327
45319
|
var mutateInput = mutationAstSchema;
|
|
45328
45320
|
var mutateOutput = mutationResultSchema;
|
|
45329
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45321
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/claims.js
|
|
45330
45322
|
var claim = exports_external.string().min(1);
|
|
45331
45323
|
var portableValue = exports_external.unknown().nonoptional();
|
|
45332
45324
|
var claimConstraintSchema = exports_external.discriminatedUnion("op", [
|
|
@@ -45336,7 +45328,7 @@ var claimConstraintSchema = exports_external.discriminatedUnion("op", [
|
|
|
45336
45328
|
]);
|
|
45337
45329
|
var requiredClaimsSchema = exports_external.array(claimConstraintSchema).max(exports_claims.MAX_REQUIRED_CLAIMS);
|
|
45338
45330
|
|
|
45339
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45331
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/provision.js
|
|
45340
45332
|
var text9 = exports_external.string().min(1);
|
|
45341
45333
|
var requiredClaims = requiredClaimsSchema.optional();
|
|
45342
45334
|
var asserted = exports_external.strictObject({ issuer: text9, subject: text9, requiredClaims });
|
|
@@ -45353,7 +45345,7 @@ var provisionOutput = exports_external.strictObject({
|
|
|
45353
45345
|
createdNodes: exports_external.record(exports_external.string(), text9),
|
|
45354
45346
|
identities: exports_external.record(exports_external.string(), exports_external.strictObject({ issuer: text9, subject: text9 }))
|
|
45355
45347
|
});
|
|
45356
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45348
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/query/result/error.js
|
|
45357
45349
|
class QueryResultDecodeError extends TypeError {
|
|
45358
45350
|
path;
|
|
45359
45351
|
code = "QUERY_RESULT_INVALID";
|
|
@@ -45364,7 +45356,7 @@ class QueryResultDecodeError extends TypeError {
|
|
|
45364
45356
|
}
|
|
45365
45357
|
}
|
|
45366
45358
|
|
|
45367
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45359
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/query/result/wire.js
|
|
45368
45360
|
var text10 = exports_external.string().min(1);
|
|
45369
45361
|
var nodeReference = exports_external.strictObject({ id: text10, class: text10 });
|
|
45370
45362
|
var nodeProjection = exports_external.discriminatedUnion("kind", [
|
|
@@ -45396,7 +45388,7 @@ var queryResultSchema = exports_external.discriminatedUnion("kind", [
|
|
|
45396
45388
|
exports_external.strictObject({ kind: exports_external.literal("edges"), edges: exports_external.array(edgeItem) })
|
|
45397
45389
|
]);
|
|
45398
45390
|
|
|
45399
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45391
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/graph/query/result/index.js
|
|
45400
45392
|
var QueryResult = Object.freeze({
|
|
45401
45393
|
decode: decodeQueryResult,
|
|
45402
45394
|
encode: encodeQueryResult,
|
|
@@ -45550,7 +45542,7 @@ function joinPointer(base, nested) {
|
|
|
45550
45542
|
function errorPointer5(error51) {
|
|
45551
45543
|
return error51 instanceof BoundaryError ? error51.pointer : "";
|
|
45552
45544
|
}
|
|
45553
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45545
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/query.js
|
|
45554
45546
|
var queryInput = exports_external.strictObject({
|
|
45555
45547
|
ast: queryAstSchema,
|
|
45556
45548
|
page: exports_external.strictObject({
|
|
@@ -45562,16 +45554,16 @@ var queryOutput = exports_external.strictObject({
|
|
|
45562
45554
|
result: queryResultSchema,
|
|
45563
45555
|
page: exports_external.strictObject({ next: exports_external.string().min(1).optional() })
|
|
45564
45556
|
});
|
|
45565
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45557
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/uninstall.js
|
|
45566
45558
|
var uninstallInput = exports_external.strictObject({
|
|
45567
|
-
operation:
|
|
45559
|
+
operation: operationIdSchema,
|
|
45568
45560
|
origin: installationText
|
|
45569
45561
|
});
|
|
45570
45562
|
var uninstallOutput = exports_external.strictObject({
|
|
45571
|
-
operation:
|
|
45563
|
+
operation: operationIdSchema,
|
|
45572
45564
|
transition: transitionReceipt
|
|
45573
45565
|
});
|
|
45574
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45566
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/view-resolve.js
|
|
45575
45567
|
var definition2 = exports_external.discriminatedUnion("kind", [
|
|
45576
45568
|
exports_external.strictObject({ origin: exports_external.string().min(1), kind: exports_external.literal("class"), name: exports_external.string().min(1) }),
|
|
45577
45569
|
exports_external.strictObject({
|
|
@@ -45601,7 +45593,7 @@ var viewResolveOutput = exports_external.strictObject({
|
|
|
45601
45593
|
revision: exports_external.string().min(1)
|
|
45602
45594
|
}))
|
|
45603
45595
|
});
|
|
45604
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45596
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/identity.js
|
|
45605
45597
|
var text11 = exports_external.string().min(1);
|
|
45606
45598
|
var identityOutput = exports_external.strictObject({
|
|
45607
45599
|
id: text11,
|
|
@@ -45611,19 +45603,19 @@ var identityOutput = exports_external.strictObject({
|
|
|
45611
45603
|
requiredClaims: requiredClaimsSchema
|
|
45612
45604
|
});
|
|
45613
45605
|
|
|
45614
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45606
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/whoami.js
|
|
45615
45607
|
var whoamiInput = exports_external.strictObject({});
|
|
45616
45608
|
var whoamiOutput = identityOutput;
|
|
45617
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45609
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/contracts/whois.js
|
|
45618
45610
|
var text12 = exports_external.string().min(1);
|
|
45619
45611
|
var whoisInput = exports_external.strictObject({ issuer: text12, subject: text12 });
|
|
45620
45612
|
var whoisOutput = identityOutput.nullable();
|
|
45621
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45613
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/define.js
|
|
45622
45614
|
function defineSyscall(config2) {
|
|
45623
45615
|
return fn(config2);
|
|
45624
45616
|
}
|
|
45625
45617
|
|
|
45626
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45618
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/admit.js
|
|
45627
45619
|
var Admit = defineSyscall({
|
|
45628
45620
|
description: "Admit one remote path-only attempt and return its request-scoped execution target.",
|
|
45629
45621
|
auth: "authenticated",
|
|
@@ -45633,7 +45625,7 @@ var Admit = defineSyscall({
|
|
|
45633
45625
|
inheritance: "sealed"
|
|
45634
45626
|
});
|
|
45635
45627
|
|
|
45636
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45628
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/can.js
|
|
45637
45629
|
var Can = defineSyscall({
|
|
45638
45630
|
description: "Determine whether the current authenticated Identity satisfies one installed Policy for one object.",
|
|
45639
45631
|
auth: "authenticated",
|
|
@@ -45643,7 +45635,7 @@ var Can = defineSyscall({
|
|
|
45643
45635
|
inheritance: "default"
|
|
45644
45636
|
});
|
|
45645
45637
|
|
|
45646
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45638
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/delegate.js
|
|
45647
45639
|
var Delegate = defineSyscall({
|
|
45648
45640
|
description: "Issue one strictly attenuated credential from this authenticated Identity.",
|
|
45649
45641
|
auth: "authenticated",
|
|
@@ -45652,7 +45644,7 @@ var Delegate = defineSyscall({
|
|
|
45652
45644
|
inheritance: "default"
|
|
45653
45645
|
});
|
|
45654
45646
|
|
|
45655
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45647
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/install.js
|
|
45656
45648
|
var Install = defineSyscall({
|
|
45657
45649
|
description: "Durably install one or more exact Schema targets and return a terminal receipt.",
|
|
45658
45650
|
auth: "authorized",
|
|
@@ -45660,7 +45652,7 @@ var Install = defineSyscall({
|
|
|
45660
45652
|
output: installOutput
|
|
45661
45653
|
});
|
|
45662
45654
|
|
|
45663
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45655
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/introspect.js
|
|
45664
45656
|
var Introspect = defineSyscall({
|
|
45665
45657
|
description: "Return bounded installed-Publication evidence to an authenticated Kernel session.",
|
|
45666
45658
|
auth: "authenticated",
|
|
@@ -45668,7 +45660,7 @@ var Introspect = defineSyscall({
|
|
|
45668
45660
|
output: output.binary()
|
|
45669
45661
|
});
|
|
45670
45662
|
|
|
45671
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45663
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/journal.js
|
|
45672
45664
|
var Journal = defineSyscall({
|
|
45673
45665
|
description: "Read one authorized page of semantic operations from the kernel journal.",
|
|
45674
45666
|
auth: "authorized",
|
|
@@ -45676,7 +45668,7 @@ var Journal = defineSyscall({
|
|
|
45676
45668
|
output: journalOutput
|
|
45677
45669
|
});
|
|
45678
45670
|
|
|
45679
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45671
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/mint.js
|
|
45680
45672
|
var Mint = defineSyscall({
|
|
45681
45673
|
description: "Resolve and sign one authorized Grant credential.",
|
|
45682
45674
|
auth: "authorized",
|
|
@@ -45686,7 +45678,7 @@ var Mint = defineSyscall({
|
|
|
45686
45678
|
inheritance: "default"
|
|
45687
45679
|
});
|
|
45688
45680
|
|
|
45689
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45681
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/mutate.js
|
|
45690
45682
|
var Mutate = defineSyscall({
|
|
45691
45683
|
description: "Validate, authorize, and commit one atomic graph mutation.",
|
|
45692
45684
|
auth: "authorized",
|
|
@@ -45694,7 +45686,7 @@ var Mutate = defineSyscall({
|
|
|
45694
45686
|
output: mutateOutput
|
|
45695
45687
|
});
|
|
45696
45688
|
|
|
45697
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45689
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/provision.js
|
|
45698
45690
|
var Provision = defineSyscall({
|
|
45699
45691
|
description: "Atomically execute a graph transition whose designated Identities are born complete.",
|
|
45700
45692
|
auth: "authorized",
|
|
@@ -45702,7 +45694,7 @@ var Provision = defineSyscall({
|
|
|
45702
45694
|
output: provisionOutput
|
|
45703
45695
|
});
|
|
45704
45696
|
|
|
45705
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45697
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/query.js
|
|
45706
45698
|
var Query = defineSyscall({
|
|
45707
45699
|
description: "Execute one finite authorized graph query.",
|
|
45708
45700
|
auth: "authorized",
|
|
@@ -45710,7 +45702,7 @@ var Query = defineSyscall({
|
|
|
45710
45702
|
output: queryOutput
|
|
45711
45703
|
});
|
|
45712
45704
|
|
|
45713
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45705
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/uninstall.js
|
|
45714
45706
|
var Uninstall = defineSyscall({
|
|
45715
45707
|
description: "Durably uninstall one Domain installation epoch and return its terminal receipt.",
|
|
45716
45708
|
auth: "authorized",
|
|
@@ -45718,7 +45710,7 @@ var Uninstall = defineSyscall({
|
|
|
45718
45710
|
output: uninstallOutput
|
|
45719
45711
|
});
|
|
45720
45712
|
|
|
45721
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45713
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/view-resolve.js
|
|
45722
45714
|
var ViewResolve = defineSyscall({
|
|
45723
45715
|
description: "Resolve the installed View declarations applicable to one authorized graph target.",
|
|
45724
45716
|
auth: "authorized",
|
|
@@ -45728,7 +45720,7 @@ var ViewResolve = defineSyscall({
|
|
|
45728
45720
|
inheritance: "sealed"
|
|
45729
45721
|
});
|
|
45730
45722
|
|
|
45731
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45723
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/whoami.js
|
|
45732
45724
|
var Whoami = defineSyscall({
|
|
45733
45725
|
description: "Return the Identity authenticated for this invocation.",
|
|
45734
45726
|
auth: "authenticated",
|
|
@@ -45738,7 +45730,7 @@ var Whoami = defineSyscall({
|
|
|
45738
45730
|
inheritance: "default"
|
|
45739
45731
|
});
|
|
45740
45732
|
|
|
45741
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45733
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/whois.js
|
|
45742
45734
|
var Whois = defineSyscall({
|
|
45743
45735
|
description: "Resolve one issuer-and-subject Identity.",
|
|
45744
45736
|
auth: "authorized",
|
|
@@ -45748,7 +45740,7 @@ var Whois = defineSyscall({
|
|
|
45748
45740
|
inheritance: "default"
|
|
45749
45741
|
});
|
|
45750
45742
|
|
|
45751
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45743
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/declarations/index.js
|
|
45752
45744
|
var Functions = Object.freeze({
|
|
45753
45745
|
query: Query,
|
|
45754
45746
|
mutate: Mutate,
|
|
@@ -45772,7 +45764,7 @@ var ViewMethods = Object.freeze({
|
|
|
45772
45764
|
resolve: ViewResolve
|
|
45773
45765
|
});
|
|
45774
45766
|
|
|
45775
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45767
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/callables/function-interface.js
|
|
45776
45768
|
var FunctionInterface = nodeInterface({
|
|
45777
45769
|
description: "Ordinary projection-node contract for a standalone Function or Node Method declaration.",
|
|
45778
45770
|
extends: [Descriptable],
|
|
@@ -45787,13 +45779,13 @@ var FunctionInterface = nodeInterface({
|
|
|
45787
45779
|
}
|
|
45788
45780
|
});
|
|
45789
45781
|
|
|
45790
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45782
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/callables/function.js
|
|
45791
45783
|
var Function2 = nodeClass({
|
|
45792
45784
|
description: "The installed projection of a standalone Function or Node Method declaration; it is not a principal.",
|
|
45793
45785
|
implements: [FunctionInterface],
|
|
45794
45786
|
methods: FunctionMethods
|
|
45795
45787
|
});
|
|
45796
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45788
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/callables/method-of.js
|
|
45797
45789
|
var MethodOf = edgeClass.directed({
|
|
45798
45790
|
source: { as: "method", accepts: [Function2], outgoing: "0..1" },
|
|
45799
45791
|
target: { as: "owner", accepts: [Class2, Interface], incoming: "0..*" },
|
|
@@ -45804,7 +45796,7 @@ var MethodOf = edgeClass.directed({
|
|
|
45804
45796
|
static: property({ type: "boolean" }, { visibility: "private" })
|
|
45805
45797
|
}
|
|
45806
45798
|
});
|
|
45807
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45799
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/callables/ui.js
|
|
45808
45800
|
var UI = nodeInterface({
|
|
45809
45801
|
description: "Ordinary projection-node contract for a declarative browser surface.",
|
|
45810
45802
|
extends: [Descriptable],
|
|
@@ -45812,13 +45804,13 @@ var UI = nodeInterface({
|
|
|
45812
45804
|
auth: { enum: ["required", "optional", "public"] }
|
|
45813
45805
|
}
|
|
45814
45806
|
});
|
|
45815
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45807
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/callables/view.js
|
|
45816
45808
|
var View = nodeClass({
|
|
45817
45809
|
description: "The installed projection of a declarative browser surface; it is not a principal.",
|
|
45818
45810
|
implements: [UI],
|
|
45819
45811
|
methods: ViewMethods
|
|
45820
45812
|
});
|
|
45821
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45813
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/identity/identity.js
|
|
45822
45814
|
var Identity = nodeInterface({
|
|
45823
45815
|
description: "A principal that can be authenticated and can originate persistent authority facts.",
|
|
45824
45816
|
properties: {
|
|
@@ -45833,7 +45825,7 @@ var Identity = nodeInterface({
|
|
|
45833
45825
|
methods: IdentityMethods
|
|
45834
45826
|
});
|
|
45835
45827
|
|
|
45836
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45828
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/identity/composition.js
|
|
45837
45829
|
function identityComposition(role, description2) {
|
|
45838
45830
|
return edgeClass.directed({
|
|
45839
45831
|
source: { as: "subject", accepts: [Identity], outgoing: "0..*" },
|
|
@@ -45844,13 +45836,13 @@ function identityComposition(role, description2) {
|
|
|
45844
45836
|
});
|
|
45845
45837
|
}
|
|
45846
45838
|
|
|
45847
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45839
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/identity/constrained-by.js
|
|
45848
45840
|
var ConstrainedBy = identityComposition("constraint", "An Identity intersects its effective authority with another Identity.");
|
|
45849
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45841
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/identity/excluded-from.js
|
|
45850
45842
|
var ExcludedFrom = identityComposition("excluded", "An Identity excludes another Identity from its effective authority.");
|
|
45851
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45843
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/identity/extends-with.js
|
|
45852
45844
|
var ExtendsWith = identityComposition("extension", "An Identity unions its effective authority with another Identity.");
|
|
45853
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45845
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/domain/domain.js
|
|
45854
45846
|
var Domain2 = nodeClass({
|
|
45855
45847
|
description: "A stable Domain principal and the active projection of one canonical DomainSchema revision.",
|
|
45856
45848
|
implements: [Identity],
|
|
@@ -45864,7 +45856,7 @@ var Domain2 = nodeClass({
|
|
|
45864
45856
|
schemaRevision: property({ type: "string", pattern: "sha256:[0-9a-f]{64}" }, { visibility: "private" })
|
|
45865
45857
|
}
|
|
45866
45858
|
});
|
|
45867
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45859
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/domain/of-domain.js
|
|
45868
45860
|
var OfDomain = edgeClass.directed({
|
|
45869
45861
|
source: { as: "member", accepts: [Node], outgoing: "0..1" },
|
|
45870
45862
|
target: { as: "domain", accepts: [Domain2], incoming: "0..*" },
|
|
@@ -45875,22 +45867,22 @@ var OfDomain = edgeClass.directed({
|
|
|
45875
45867
|
member: property({ type: "string", minLength: 3 }, { visibility: "private" })
|
|
45876
45868
|
}
|
|
45877
45869
|
});
|
|
45878
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45870
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/callables/view-for.js
|
|
45879
45871
|
var ViewFor = edgeClass.directed({
|
|
45880
45872
|
source: { as: "view", accepts: [View], outgoing: "1..*" },
|
|
45881
45873
|
target: { as: "target", accepts: [Class2, Domain2, Interface], incoming: "0..*" },
|
|
45882
45874
|
description: "A View declaration targets one Domain or a non-empty set of Classes and Interfaces.",
|
|
45883
45875
|
implements: [Edge]
|
|
45884
45876
|
});
|
|
45885
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45877
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/can-use.js
|
|
45886
45878
|
var CanUse = authorityRelation(Function2, "function", "An Identity may invoke the exact target Function declaration.");
|
|
45887
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45879
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/policy.js
|
|
45888
45880
|
var Policy = nodeClass({
|
|
45889
45881
|
description: "The installed graph projection of one named closed Policy declaration owned by a Domain.",
|
|
45890
45882
|
implements: [Descriptable]
|
|
45891
45883
|
});
|
|
45892
45884
|
|
|
45893
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45885
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/governed-by.js
|
|
45894
45886
|
var GovernedBy = edgeClass.directed({
|
|
45895
45887
|
source: { as: "class", accepts: [Class2], outgoing: "0..*" },
|
|
45896
45888
|
target: { as: "policy", accepts: [Policy], incoming: "0..*" },
|
|
@@ -45901,7 +45893,7 @@ var GovernedBy = edgeClass.directed({
|
|
|
45901
45893
|
},
|
|
45902
45894
|
constraints: { noSelf: true }
|
|
45903
45895
|
});
|
|
45904
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45896
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/authority/operations.js
|
|
45905
45897
|
var AuthorityOperationOrder = Object.freeze([
|
|
45906
45898
|
"use",
|
|
45907
45899
|
"create",
|
|
@@ -45922,12 +45914,12 @@ var AuthorityOperations = Object.freeze({
|
|
|
45922
45914
|
grant: node(Operation, { name: "grant" }),
|
|
45923
45915
|
revoke: node(Operation, { name: "revoke" })
|
|
45924
45916
|
});
|
|
45925
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45917
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/core/operations/index.js
|
|
45926
45918
|
var OperationCore = Object.freeze({
|
|
45927
45919
|
nodes: AuthorityOperations,
|
|
45928
45920
|
edges: Object.freeze([])
|
|
45929
45921
|
});
|
|
45930
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45922
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/schema.js
|
|
45931
45923
|
var KernelDefinitions = {
|
|
45932
45924
|
interfaces: {
|
|
45933
45925
|
Descriptable,
|
|
@@ -46004,7 +45996,7 @@ var KernelRootFunctions = Object.freeze([
|
|
|
46004
45996
|
K.Identity.mint,
|
|
46005
45997
|
K.View.resolve
|
|
46006
45998
|
].sort((left, right) => left.key < right.key ? -1 : left.key > right.key ? 1 : 0));
|
|
46007
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
45999
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/descriptors/model.js
|
|
46008
46000
|
function functionSyscall(callable) {
|
|
46009
46001
|
const ref = Object.freeze({
|
|
46010
46002
|
origin: callable.origin,
|
|
@@ -46042,7 +46034,7 @@ function methodSyscall(callable) {
|
|
|
46042
46034
|
});
|
|
46043
46035
|
}
|
|
46044
46036
|
|
|
46045
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
46037
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/descriptors/functions.js
|
|
46046
46038
|
var query = functionSyscall(K.query);
|
|
46047
46039
|
var mutate = functionSyscall(K.mutate);
|
|
46048
46040
|
var provision = functionSyscall(K.provision);
|
|
@@ -46050,27 +46042,27 @@ var install = functionSyscall(K.install);
|
|
|
46050
46042
|
var introspect = functionSyscall(K.introspect);
|
|
46051
46043
|
var uninstall = functionSyscall(K.uninstall);
|
|
46052
46044
|
var journal = functionSyscall(K.journal);
|
|
46053
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
46045
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/descriptors/identity.js
|
|
46054
46046
|
var delegate = methodSyscall(K.Identity.delegate);
|
|
46055
46047
|
var can = methodSyscall(K.Identity.can);
|
|
46056
46048
|
var whoami = methodSyscall(K.Identity.whoami);
|
|
46057
46049
|
var whois = methodSyscall(K.Identity.whois);
|
|
46058
46050
|
var mint = methodSyscall(K.Identity.mint);
|
|
46059
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
46051
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/descriptors/function.js
|
|
46060
46052
|
var Admit2 = K.$.class("Function").$.method("admit");
|
|
46061
46053
|
var admit2 = methodSyscall(Admit2);
|
|
46062
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
46054
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/syscalls/descriptors/view.js
|
|
46063
46055
|
var resolve = methodSyscall(K.View.resolve);
|
|
46064
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
46056
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/projection/keys.js
|
|
46065
46057
|
var encoder8 = new TextEncoder;
|
|
46066
46058
|
|
|
46067
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
46059
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/projection/project.js
|
|
46068
46060
|
var EMPTY_PROPERTIES = normalizeProperties({});
|
|
46069
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
46061
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/schema/kernel/projection/compile.js
|
|
46070
46062
|
var EMPTY_LOOKUP = Object.freeze({ get: () => {
|
|
46071
46063
|
return;
|
|
46072
46064
|
} });
|
|
46073
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46065
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/requirements.js
|
|
46074
46066
|
var ClassOperationOrder = Object.freeze([
|
|
46075
46067
|
"create",
|
|
46076
46068
|
"read",
|
|
@@ -46233,7 +46225,7 @@ function hasCallable(dependency, reference2) {
|
|
|
46233
46225
|
return declaration2?.family === "node" && declaration2.methods[method] !== undefined;
|
|
46234
46226
|
}
|
|
46235
46227
|
|
|
46236
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46228
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/route.js
|
|
46237
46229
|
var ROUTE_NAME = /^[A-Za-z][A-Za-z0-9_-]{0,63}$/u;
|
|
46238
46230
|
function admitRoute(input, origin) {
|
|
46239
46231
|
const value = record2(input, "PUBLICATION_ROUTE_INVALID", "Published HTTP route is invalid.");
|
|
@@ -46352,7 +46344,7 @@ function stringRecord(input) {
|
|
|
46352
46344
|
return Object.freeze(output2);
|
|
46353
46345
|
}
|
|
46354
46346
|
|
|
46355
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46347
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/schema.js
|
|
46356
46348
|
function admitSchema(input) {
|
|
46357
46349
|
const value = record2(input, "PUBLICATION_INVALID", "Published schema is invalid.");
|
|
46358
46350
|
exact(value, ["revision", "bundle"], "PUBLICATION_INVALID");
|
|
@@ -46365,7 +46357,7 @@ function admitSchema(input) {
|
|
|
46365
46357
|
});
|
|
46366
46358
|
}
|
|
46367
46359
|
|
|
46368
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46360
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/publication.js
|
|
46369
46361
|
var PATH = "/.well-known/astrale/domain.json";
|
|
46370
46362
|
var MEDIA_TYPE = "application/vnd.astrale.domain-publication+json;v=2";
|
|
46371
46363
|
function url2(input) {
|
|
@@ -46532,7 +46524,7 @@ function withoutEtag(input) {
|
|
|
46532
46524
|
const { etag: _etag, ...content } = input;
|
|
46533
46525
|
return content;
|
|
46534
46526
|
}
|
|
46535
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46527
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/delivery/index.js
|
|
46536
46528
|
var exports_delivery = {};
|
|
46537
46529
|
__export(exports_delivery, {
|
|
46538
46530
|
ATTESTATION_MAX_BYTES: () => ATTESTATION_MAX_BYTES,
|
|
@@ -46545,7 +46537,7 @@ __export(exports_delivery, {
|
|
|
46545
46537
|
acceptRequest: () => acceptRequest
|
|
46546
46538
|
});
|
|
46547
46539
|
|
|
46548
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46540
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/delivery/error.js
|
|
46549
46541
|
class DeliveryError extends Error {
|
|
46550
46542
|
code;
|
|
46551
46543
|
name = "DeliveryError";
|
|
@@ -46558,20 +46550,20 @@ function fail3(code, message2, cause) {
|
|
|
46558
46550
|
throw new DeliveryError(code, message2, cause === undefined ? undefined : { cause });
|
|
46559
46551
|
}
|
|
46560
46552
|
|
|
46561
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46553
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/delivery/limits.js
|
|
46562
46554
|
var PURPOSE = "astrale.domain.delivery.v1";
|
|
46563
46555
|
var NONCE_MIN_LENGTH = 16;
|
|
46564
46556
|
var NONCE_MAX_LENGTH = 256;
|
|
46565
46557
|
var ATTESTATION_MAX_BYTES = 16384;
|
|
46566
46558
|
|
|
46567
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46559
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/delivery/attestation.js
|
|
46568
46560
|
function acceptAttestation(input) {
|
|
46569
46561
|
if (typeof input !== "string" || input.length === 0 || new TextEncoder().encode(input).byteLength > ATTESTATION_MAX_BYTES) {
|
|
46570
46562
|
fail3("DELIVERY_INVALID", "Delivery attestation is invalid.");
|
|
46571
46563
|
}
|
|
46572
46564
|
return input;
|
|
46573
46565
|
}
|
|
46574
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46566
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/delivery/claims.js
|
|
46575
46567
|
function acceptClaims(input) {
|
|
46576
46568
|
if (input === null || typeof input !== "object" || Array.isArray(input)) {
|
|
46577
46569
|
fail3("DELIVERY_CLAIMS_INVALID", "Expected delivery claims.");
|
|
@@ -46620,7 +46612,7 @@ function deepFreeze5(value) {
|
|
|
46620
46612
|
deepFreeze5(nested);
|
|
46621
46613
|
return Object.freeze(value);
|
|
46622
46614
|
}
|
|
46623
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46615
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/delivery/delivery.js
|
|
46624
46616
|
function accept13(input) {
|
|
46625
46617
|
if (input === null || typeof input !== "object" || Array.isArray(input)) {
|
|
46626
46618
|
fail3("DELIVERY_INVALID", "Expected a Delivery object.");
|
|
@@ -46647,7 +46639,7 @@ function deepFreeze6(value) {
|
|
|
46647
46639
|
deepFreeze6(nested);
|
|
46648
46640
|
return Object.freeze(value);
|
|
46649
46641
|
}
|
|
46650
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46642
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/delivery/request.js
|
|
46651
46643
|
function acceptRequest(input) {
|
|
46652
46644
|
if (input === null || typeof input !== "object" || Array.isArray(input)) {
|
|
46653
46645
|
fail3("DELIVERY_REQUEST_INVALID", "Expected a Delivery request.");
|
|
@@ -46687,7 +46679,7 @@ function acceptRequest(input) {
|
|
|
46687
46679
|
etag: value.etag
|
|
46688
46680
|
});
|
|
46689
46681
|
}
|
|
46690
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46682
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/publication/reference.js
|
|
46691
46683
|
function reference2(input) {
|
|
46692
46684
|
return deepFreeze4({
|
|
46693
46685
|
origin: input.origin,
|
|
@@ -46748,24 +46740,25 @@ function acceptIssuer2(input) {
|
|
|
46748
46740
|
throw cause;
|
|
46749
46741
|
}
|
|
46750
46742
|
}
|
|
46751
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46743
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/redirect.js
|
|
46752
46744
|
var ROUTE_FIELDS = new Set(["endpoint", "via"]);
|
|
46753
46745
|
var VIA_FIELDS = new Set(["kind", "publication", "issuer"]);
|
|
46754
|
-
var
|
|
46755
|
-
|
|
46746
|
+
var REDIRECTION_FIELDS = new Set(["route", "credential", "trace"]);
|
|
46747
|
+
var REDIRECT_RESPONSE_FIELDS = new Set(["kind", "requestId", "invocation", "redirect"]);
|
|
46748
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/routing.js
|
|
46756
46749
|
var VIA_FIELDS2 = new Set(["kind", "publication", "issuer"]);
|
|
46757
46750
|
var REFRESH_FIELDS = new Set(["kind", "stale"]);
|
|
46758
46751
|
|
|
46759
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46752
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/schema.js
|
|
46760
46753
|
var FIELDS7 = new Set(["target", "revision"]);
|
|
46761
46754
|
|
|
46762
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46755
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/target.js
|
|
46763
46756
|
var CALL_FIELDS = new Set(["target", "input"]);
|
|
46764
46757
|
|
|
46765
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46758
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/request.js
|
|
46766
46759
|
var REQUEST_FIELDS = new Set([
|
|
46767
46760
|
"version",
|
|
46768
|
-
"
|
|
46761
|
+
"requestId",
|
|
46769
46762
|
"call",
|
|
46770
46763
|
"credential",
|
|
46771
46764
|
"delegate",
|
|
@@ -46774,23 +46767,23 @@ var REQUEST_FIELDS = new Set([
|
|
|
46774
46767
|
"idempotencyKey",
|
|
46775
46768
|
"trace"
|
|
46776
46769
|
]);
|
|
46777
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46778
|
-
var FIELDS8 = new Set(["kind", "
|
|
46770
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/stale-route.js
|
|
46771
|
+
var FIELDS8 = new Set(["kind", "requestId", "invocation", "current"]);
|
|
46779
46772
|
|
|
46780
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46781
|
-
var SUCCESS_FIELDS = new Set(["result", "
|
|
46782
|
-
var ERROR_FIELDS = new Set(["error", "
|
|
46783
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46773
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/response.js
|
|
46774
|
+
var SUCCESS_FIELDS = new Set(["result", "requestId", "invocation"]);
|
|
46775
|
+
var ERROR_FIELDS = new Set(["error", "requestId", "invocation"]);
|
|
46776
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/invocation/websocket/binary.js
|
|
46784
46777
|
var MAGIC = new Uint8Array([65, 83, 84, 66, 1]);
|
|
46785
46778
|
var encoder9 = new TextEncoder;
|
|
46786
46779
|
var decoder4 = new TextDecoder("utf-8", { fatal: true });
|
|
46787
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46780
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/routes/routing.js
|
|
46788
46781
|
var HTTP_ROUTE_PUBLICATION = "if-match";
|
|
46789
46782
|
var HTTP_ROUTE_ISSUER = "x-astrale-issuer";
|
|
46790
46783
|
var HTTP_ROUTE_STALE = "x-astrale-route-stale";
|
|
46791
46784
|
var HTTP_ROUTE_MISS = "x-astrale-route-miss";
|
|
46792
46785
|
|
|
46793
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46786
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/routes/mapping.js
|
|
46794
46787
|
var RESERVED_HEADERS = new Set([
|
|
46795
46788
|
HTTP_IDEMPOTENCY_KEY,
|
|
46796
46789
|
HTTP_ROUTE_ISSUER,
|
|
@@ -46799,7 +46792,7 @@ var RESERVED_HEADERS = new Set([
|
|
|
46799
46792
|
HTTP_ROUTE_STALE
|
|
46800
46793
|
]);
|
|
46801
46794
|
|
|
46802
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46795
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/issuer/index.js
|
|
46803
46796
|
var exports_issuer2 = {};
|
|
46804
46797
|
__export(exports_issuer2, {
|
|
46805
46798
|
DiscoveryError: () => DiscoveryError,
|
|
@@ -46812,7 +46805,7 @@ __export(exports_issuer2, {
|
|
|
46812
46805
|
paths: () => paths
|
|
46813
46806
|
});
|
|
46814
46807
|
|
|
46815
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46808
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/issuer/error.js
|
|
46816
46809
|
class DiscoveryError extends Error {
|
|
46817
46810
|
code;
|
|
46818
46811
|
name = "DiscoveryError";
|
|
@@ -46825,7 +46818,7 @@ function fail5(code, message2, cause) {
|
|
|
46825
46818
|
throw new DiscoveryError(code, message2, cause === undefined ? undefined : { cause });
|
|
46826
46819
|
}
|
|
46827
46820
|
|
|
46828
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46821
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/issuer/url.js
|
|
46829
46822
|
function acceptIssuer3(input) {
|
|
46830
46823
|
if (typeof input !== "string") {
|
|
46831
46824
|
fail5("ISSUER_DISCOVERY_INVALID", "Issuer must be an absolute HTTP(S) URL.");
|
|
@@ -46852,7 +46845,7 @@ function acceptIssuer3(input) {
|
|
|
46852
46845
|
}
|
|
46853
46846
|
}
|
|
46854
46847
|
|
|
46855
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46848
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/issuer/configuration.js
|
|
46856
46849
|
var ALGORITHM = /^[A-Za-z0-9_-]{1,64}$/u;
|
|
46857
46850
|
function configuration(issuer, algorithms, options = {}) {
|
|
46858
46851
|
const admitted = acceptIssuer3(issuer);
|
|
@@ -46934,14 +46927,14 @@ function deepFreeze7(input) {
|
|
|
46934
46927
|
deepFreeze7(value);
|
|
46935
46928
|
return Object.freeze(input);
|
|
46936
46929
|
}
|
|
46937
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46930
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/issuer/hosted.js
|
|
46938
46931
|
var THUMBPRINT = /^[A-Za-z0-9_-]{43}$/u;
|
|
46939
46932
|
function hosted(base, thumbprint2) {
|
|
46940
46933
|
if (typeof thumbprint2 !== "string" || !THUMBPRINT.test(thumbprint2))
|
|
46941
46934
|
return;
|
|
46942
46935
|
return acceptIssuer3(`${acceptIssuer3(base)}/iss/${thumbprint2}`);
|
|
46943
46936
|
}
|
|
46944
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46937
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/issuer/key-set.js
|
|
46945
46938
|
function keySet(keys, algorithms) {
|
|
46946
46939
|
if (!Array.isArray(keys))
|
|
46947
46940
|
fail5("ISSUER_KEY_SET_INVALID", "Issuer keys must be an array.");
|
|
@@ -46985,7 +46978,7 @@ function deepFreeze8(input) {
|
|
|
46985
46978
|
deepFreeze8(value);
|
|
46986
46979
|
return Object.freeze(input);
|
|
46987
46980
|
}
|
|
46988
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46981
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/issuer/paths.js
|
|
46989
46982
|
function paths(issuer) {
|
|
46990
46983
|
const admitted = acceptIssuer3(issuer);
|
|
46991
46984
|
const pathname = new URL(admitted).pathname.replace(/\/+$/u, "");
|
|
@@ -46995,7 +46988,7 @@ function paths(issuer) {
|
|
|
46995
46988
|
tokenExchange: `${pathname}/.well-known/astrale/token`
|
|
46996
46989
|
});
|
|
46997
46990
|
}
|
|
46998
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
46991
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/issuer/exchange.js
|
|
46999
46992
|
var exports_exchange = {};
|
|
47000
46993
|
__export(exports_exchange, {
|
|
47001
46994
|
MEDIA_TYPE: () => MEDIA_TYPE4,
|
|
@@ -47134,9 +47127,9 @@ function nonEmptyText(input, label) {
|
|
|
47134
47127
|
}
|
|
47135
47128
|
return input;
|
|
47136
47129
|
}
|
|
47137
|
-
// node_modules/.pnpm/@astrale-os+kernel-protocol@
|
|
47130
|
+
// node_modules/.pnpm/@astrale-os+kernel-protocol@0.5.0-beta.3_msgpackr@1.12.1_typescript@6.0.3/node_modules/@astrale-os/kernel-protocol/dist/routes/reservation.js
|
|
47138
47131
|
var STATIC_RESERVED_PATHS = new Set([PATH]);
|
|
47139
|
-
// node_modules/.pnpm/@astrale-os+sdk@
|
|
47132
|
+
// node_modules/.pnpm/@astrale-os+sdk@0.5.0-beta.4_@astrale-os+ox@0.1.2_oxfmt@0.52.0_oxlint@1.79.0__msgpackr@1.12.1_oxlint@1.79.0/node_modules/@astrale-os/sdk/dist/auth/exchange.js
|
|
47140
47133
|
var paths2 = exports_issuer2.paths;
|
|
47141
47134
|
var acceptConfiguration2 = exports_issuer2.acceptConfiguration;
|
|
47142
47135
|
var MEDIA_TYPE5 = exports_issuer2.exchange.MEDIA_TYPE;
|
|
@@ -52070,7 +52063,7 @@ var log = {
|
|
|
52070
52063
|
};
|
|
52071
52064
|
var IS_CI = !!(process.env.CI || process.env.CONTINUOUS_INTEGRATION || process.env.NO_SPINNER);
|
|
52072
52065
|
|
|
52073
|
-
// node_modules/.pnpm/@astrale-os+sdk@
|
|
52066
|
+
// node_modules/.pnpm/@astrale-os+sdk@0.5.0-beta.4_@astrale-os+ox@0.1.2_oxfmt@0.52.0_oxlint@1.79.0__msgpackr@1.12.1_oxlint@1.79.0/node_modules/@astrale-os/sdk/dist/capability/define.js
|
|
52074
52067
|
var operations = new WeakSet;
|
|
52075
52068
|
var definitions = new WeakSet;
|
|
52076
52069
|
var providers = new WeakMap;
|
|
@@ -52199,7 +52192,7 @@ function isObject4(input) {
|
|
|
52199
52192
|
return input !== null && typeof input === "object";
|
|
52200
52193
|
}
|
|
52201
52194
|
|
|
52202
|
-
// node_modules/.pnpm/@astrale-os+sdk@
|
|
52195
|
+
// node_modules/.pnpm/@astrale-os+sdk@0.5.0-beta.4_@astrale-os+ox@0.1.2_oxfmt@0.52.0_oxlint@1.79.0__msgpackr@1.12.1_oxlint@1.79.0/node_modules/@astrale-os/sdk/dist/capability/client.js
|
|
52203
52196
|
function captureCapabilityRequirements(requirements) {
|
|
52204
52197
|
const source2 = acceptMap(requirements, "Capability requirements");
|
|
52205
52198
|
const names = ownStringKeys2(source2, "Capability requirements");
|
|
@@ -52230,22 +52223,22 @@ function ownDataValue2(input, key, label) {
|
|
|
52230
52223
|
return descriptor.value;
|
|
52231
52224
|
}
|
|
52232
52225
|
|
|
52233
|
-
// node_modules/.pnpm/@astrale-os+sdk@
|
|
52226
|
+
// node_modules/.pnpm/@astrale-os+sdk@0.5.0-beta.4_@astrale-os+ox@0.1.2_oxfmt@0.52.0_oxlint@1.79.0__msgpackr@1.12.1_oxlint@1.79.0/node_modules/@astrale-os/sdk/dist/view/admission.js
|
|
52234
52227
|
var admittedFrontendArtifacts = new WeakSet;
|
|
52235
52228
|
function isCapturedFrontendArtifact(input) {
|
|
52236
52229
|
return admittedFrontendArtifacts.has(input);
|
|
52237
52230
|
}
|
|
52238
52231
|
|
|
52239
|
-
// node_modules/.pnpm/@astrale-os+sdk@
|
|
52232
|
+
// node_modules/.pnpm/@astrale-os+sdk@0.5.0-beta.4_@astrale-os+ox@0.1.2_oxfmt@0.52.0_oxlint@1.79.0__msgpackr@1.12.1_oxlint@1.79.0/node_modules/@astrale-os/sdk/dist/workflow/binding.js
|
|
52240
52233
|
function isWorkflowBinding(input) {
|
|
52241
52234
|
return input !== null && typeof input === "object" && input.kind === "workflow" && typeof input.workflow?.run === "function";
|
|
52242
52235
|
}
|
|
52243
52236
|
function isTriggeredHandler(input) {
|
|
52244
52237
|
return input !== null && typeof input === "object" && input.kind === "handler" && typeof input.handler === "function";
|
|
52245
52238
|
}
|
|
52246
|
-
// node_modules/.pnpm/@astrale-os+sdk@
|
|
52239
|
+
// node_modules/.pnpm/@astrale-os+sdk@0.5.0-beta.4_@astrale-os+ox@0.1.2_oxfmt@0.52.0_oxlint@1.79.0__msgpackr@1.12.1_oxlint@1.79.0/node_modules/@astrale-os/sdk/dist/workflow/runner.js
|
|
52247
52240
|
var DIRECT_ACTIVATION = Object.freeze({ kind: "direct" });
|
|
52248
|
-
// node_modules/.pnpm/@astrale-os+sdk@
|
|
52241
|
+
// node_modules/.pnpm/@astrale-os+sdk@0.5.0-beta.4_@astrale-os+ox@0.1.2_oxfmt@0.52.0_oxlint@1.79.0__msgpackr@1.12.1_oxlint@1.79.0/node_modules/@astrale-os/sdk/dist/domain/handlers.js
|
|
52249
52242
|
function acceptDomainHandlers(domain3, input) {
|
|
52250
52243
|
const registry2 = record4(input, "handlers");
|
|
52251
52244
|
exactKeys2(registry2, ["functions", "classes", "interfaces"], "handlers");
|
|
@@ -52327,7 +52320,7 @@ function compareText3(left, right) {
|
|
|
52327
52320
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
52328
52321
|
}
|
|
52329
52322
|
|
|
52330
|
-
// node_modules/.pnpm/@astrale-os+sdk@
|
|
52323
|
+
// node_modules/.pnpm/@astrale-os+sdk@0.5.0-beta.4_@astrale-os+ox@0.1.2_oxfmt@0.52.0_oxlint@1.79.0__msgpackr@1.12.1_oxlint@1.79.0/node_modules/@astrale-os/sdk/dist/domain/requirements.js
|
|
52331
52324
|
var ClassOperationOrder2 = Object.freeze([
|
|
52332
52325
|
"create",
|
|
52333
52326
|
"read",
|
|
@@ -52412,7 +52405,7 @@ function compare7(left, right) {
|
|
|
52412
52405
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
52413
52406
|
}
|
|
52414
52407
|
|
|
52415
|
-
// node_modules/.pnpm/@astrale-os+sdk@
|
|
52408
|
+
// node_modules/.pnpm/@astrale-os+sdk@0.5.0-beta.4_@astrale-os+ox@0.1.2_oxfmt@0.52.0_oxlint@1.79.0__msgpackr@1.12.1_oxlint@1.79.0/node_modules/@astrale-os/sdk/dist/domain/define.js
|
|
52416
52409
|
function defineDomain(input) {
|
|
52417
52410
|
const config2 = record5(input, "defineDomain input");
|
|
52418
52411
|
const hasCapabilities = Object.hasOwn(config2, "capabilities");
|
|
@@ -52481,7 +52474,7 @@ function acceptFrontend(domainSchema, frontend) {
|
|
|
52481
52474
|
}
|
|
52482
52475
|
return artifact;
|
|
52483
52476
|
}
|
|
52484
|
-
// node_modules/.pnpm/@astrale-os+kernel-core@
|
|
52477
|
+
// node_modules/.pnpm/@astrale-os+kernel-core@0.9.0-beta.3_typescript@6.0.3/node_modules/@astrale-os/kernel-core/dist/dns-label.js
|
|
52485
52478
|
var DNS_LABEL_RE = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
|
|
52486
52479
|
function isDnsLabel(value) {
|
|
52487
52480
|
return DNS_LABEL_RE.test(value);
|
|
@@ -52607,6 +52600,7 @@ var IdpSessionSchema = exports_external2.object({
|
|
|
52607
52600
|
idp: exports_external2.string(),
|
|
52608
52601
|
issuer: exports_external2.string().url(),
|
|
52609
52602
|
subject: exports_external2.string(),
|
|
52603
|
+
clientId: exports_external2.string().optional(),
|
|
52610
52604
|
audience: exports_external2.string().optional(),
|
|
52611
52605
|
organizationId: exports_external2.string().optional(),
|
|
52612
52606
|
access_token: exports_external2.string(),
|
|
@@ -52909,10 +52903,11 @@ async function refreshSession(identityName, session, opts = {}) {
|
|
|
52909
52903
|
if (!session.refresh_token)
|
|
52910
52904
|
throw new Error(`IdP session for "${identityName}" has no refresh token`);
|
|
52911
52905
|
const idp = await readIdpConfig(session.idp);
|
|
52906
|
+
const clientId = requireClientId(idp, session.clientId);
|
|
52912
52907
|
const params = new URLSearchParams({
|
|
52913
52908
|
grant_type: "refresh_token",
|
|
52914
52909
|
refresh_token: session.refresh_token,
|
|
52915
|
-
client_id:
|
|
52910
|
+
client_id: clientId
|
|
52916
52911
|
});
|
|
52917
52912
|
const audience = opts.audience ?? session.audience;
|
|
52918
52913
|
if (audience)
|
|
@@ -52936,6 +52931,7 @@ async function refreshSession(identityName, session, opts = {}) {
|
|
|
52936
52931
|
const expiresAt = tokenExpiresAt(token);
|
|
52937
52932
|
const next = {
|
|
52938
52933
|
...session,
|
|
52934
|
+
clientId,
|
|
52939
52935
|
access_token: token.access_token,
|
|
52940
52936
|
id_token: token.id_token ?? session.id_token,
|
|
52941
52937
|
refresh_token: token.refresh_token ?? session.refresh_token,
|
|
@@ -53263,7 +53259,7 @@ function isRegionRoutedInstanceRoot(url3) {
|
|
|
53263
53259
|
if (url3.search || url3.hash)
|
|
53264
53260
|
return false;
|
|
53265
53261
|
const labels = url3.hostname.toLowerCase().split(".");
|
|
53266
|
-
return labels.length === 4 &&
|
|
53262
|
+
return (labels.length === 4 || labels.length === 5) && /^[a-z]{2}(?:-[a-z0-9]+)*$/u.test(labels[1] ?? "") && labels.at(-2) === "astrale" && labels.at(-1) === "ai";
|
|
53267
53263
|
}
|
|
53268
53264
|
// src/lib/admin-target.ts
|
|
53269
53265
|
var DEFAULT_ADMIN_TARGET_NAME = "admin";
|
|
@@ -53762,16 +53758,23 @@ function refreshFailureError(identityName, identity3, cause) {
|
|
|
53762
53758
|
// src/lib/login-flow.ts
|
|
53763
53759
|
async function loginViaIdp(opts) {
|
|
53764
53760
|
const idpName = await resolveIdpName(opts.idp);
|
|
53765
|
-
const
|
|
53761
|
+
const previous = opts.name && !opts.clientId ? await readIdpSession(opts.name) : null;
|
|
53762
|
+
const savedClientId = previous?.idp === idpName ? previous.clientId : undefined;
|
|
53763
|
+
const requestedClientId = opts.clientId ?? savedClientId;
|
|
53764
|
+
const idp = await readIdpConfigOrBuiltin(idpName, {
|
|
53765
|
+
clientId: requestedClientId,
|
|
53766
|
+
persist: true
|
|
53767
|
+
});
|
|
53768
|
+
const clientId = requireClientId(idp, requestedClientId);
|
|
53766
53769
|
const scope = opts.scope ?? idp.client.scope ?? "openid profile email offline_access";
|
|
53767
|
-
const token = normalizeTokenResponse(await obtainToken(idp, opts, scope));
|
|
53770
|
+
const token = normalizeTokenResponse(await obtainToken(idp, { ...opts, clientId }, scope));
|
|
53768
53771
|
if (!token.access_token)
|
|
53769
53772
|
throw new Error("IdP response did not include access_token");
|
|
53770
53773
|
if (opts.audience && !tokenAudienceMatches(token.access_token, opts.audience)) {
|
|
53771
53774
|
throw new Error(`IdP response access_token was not minted for requested audience ${opts.audience}`);
|
|
53772
53775
|
}
|
|
53773
53776
|
const claims = decodeTokenClaims(token.id_token ?? token.access_token);
|
|
53774
|
-
const subject = subjectFromToken(token,
|
|
53777
|
+
const subject = subjectFromToken(token, clientId);
|
|
53775
53778
|
const issuer = issuerFromToken(token, idp.metadata.issuer);
|
|
53776
53779
|
const identityName = opts.name ?? identityNameFromClaims(claims, idpName);
|
|
53777
53780
|
const session = {
|
|
@@ -53779,6 +53782,7 @@ async function loginViaIdp(opts) {
|
|
|
53779
53782
|
idp: idpName,
|
|
53780
53783
|
issuer,
|
|
53781
53784
|
subject,
|
|
53785
|
+
clientId,
|
|
53782
53786
|
audience: opts.audience,
|
|
53783
53787
|
access_token: token.access_token,
|
|
53784
53788
|
id_token: token.id_token,
|