@neocompose/cli 0.75.0 → 0.75.1
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/CHANGELOG.md +11 -0
- package/README.md +28 -0
- package/dist/neo.mjs +612 -577
- package/dist/test-worker.mjs +138 -171
- package/package.json +5 -2
- package/skills/neocompose-cli/SKILL.md +12 -1
- package/skills/neocompose-cli/references/cli-development.md +15 -7
package/dist/test-worker.mjs
CHANGED
|
@@ -36,6 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
36
|
// node_modules/ignore/index.js
|
|
37
37
|
var require_ignore = __commonJS({
|
|
38
38
|
"node_modules/ignore/index.js"(exports, module) {
|
|
39
|
+
"use strict";
|
|
39
40
|
function makeArray(subject) {
|
|
40
41
|
return Array.isArray(subject) ? subject : [subject];
|
|
41
42
|
}
|
|
@@ -878,7 +879,7 @@ var require_ignore = __commonJS({
|
|
|
878
879
|
// src/test-worker.ts
|
|
879
880
|
import { parentPort } from "node:worker_threads";
|
|
880
881
|
|
|
881
|
-
// ../
|
|
882
|
+
// ../packages/models/src/members/member-storage.ts
|
|
882
883
|
function isMemberStorageKind(value) {
|
|
883
884
|
return value === 0 /* Inherit */ || value === 1 /* Immutable */ || value === 2 /* Save */ || value === 3 /* Session */ || value === 4 /* Writable */ || value === 5 /* User */;
|
|
884
885
|
}
|
|
@@ -922,40 +923,40 @@ function createWritableAncestorLookup(memberById) {
|
|
|
922
923
|
return lookup;
|
|
923
924
|
}
|
|
924
925
|
|
|
925
|
-
// ../
|
|
926
|
-
var MemberKind = /* @__PURE__ */ ((
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
return
|
|
926
|
+
// ../packages/models/src/members/member-kind-enum.ts
|
|
927
|
+
var MemberKind = /* @__PURE__ */ ((MemberKind8) => {
|
|
928
|
+
MemberKind8[MemberKind8["Null"] = 0] = "Null";
|
|
929
|
+
MemberKind8[MemberKind8["Bool"] = 1] = "Bool";
|
|
930
|
+
MemberKind8[MemberKind8["Int"] = 2] = "Int";
|
|
931
|
+
MemberKind8[MemberKind8["String"] = 3] = "String";
|
|
932
|
+
MemberKind8[MemberKind8["Float"] = 4] = "Float";
|
|
933
|
+
MemberKind8[MemberKind8["Dictionary"] = 5] = "Dictionary";
|
|
934
|
+
MemberKind8[MemberKind8["List"] = 6] = "List";
|
|
935
|
+
MemberKind8[MemberKind8["Class"] = 7] = "Class";
|
|
936
|
+
MemberKind8[MemberKind8["Enum"] = 8] = "Enum";
|
|
937
|
+
MemberKind8[MemberKind8["Lookup"] = 9] = "Lookup";
|
|
938
|
+
MemberKind8[MemberKind8["NSProperty"] = 10] = "NSProperty";
|
|
939
|
+
MemberKind8[MemberKind8["Sprite"] = 11] = "Sprite";
|
|
940
|
+
MemberKind8[MemberKind8["Audio"] = 12] = "Audio";
|
|
941
|
+
MemberKind8[MemberKind8["Function"] = 13] = "Function";
|
|
942
|
+
MemberKind8[MemberKind8["Vector2"] = 14] = "Vector2";
|
|
943
|
+
MemberKind8[MemberKind8["Vector2Int"] = 15] = "Vector2Int";
|
|
944
|
+
MemberKind8[MemberKind8["Vector3"] = 16] = "Vector3";
|
|
945
|
+
MemberKind8[MemberKind8["Vector3Int"] = 17] = "Vector3Int";
|
|
946
|
+
MemberKind8[MemberKind8["DialogueLookup"] = 18] = "DialogueLookup";
|
|
947
|
+
MemberKind8[MemberKind8["Color"] = 19] = "Color";
|
|
948
|
+
MemberKind8[MemberKind8["Decimal"] = 20] = "Decimal";
|
|
949
|
+
MemberKind8[MemberKind8["Generic"] = 21] = "Generic";
|
|
950
|
+
MemberKind8[MemberKind8["Interface"] = 22] = "Interface";
|
|
951
|
+
MemberKind8[MemberKind8["NSFunction"] = 23] = "NSFunction";
|
|
952
|
+
MemberKind8[MemberKind8["FunctionRef"] = 24] = "FunctionRef";
|
|
953
|
+
MemberKind8[MemberKind8["NSDelegate"] = 25] = "NSDelegate";
|
|
954
|
+
MemberKind8[MemberKind8["NSAction"] = 26] = "NSAction";
|
|
955
|
+
MemberKind8[MemberKind8["Variant"] = 27] = "Variant";
|
|
956
|
+
return MemberKind8;
|
|
956
957
|
})(MemberKind || {});
|
|
957
958
|
|
|
958
|
-
// ../
|
|
959
|
+
// ../packages/models/src/members/member-kind-taxonomy.ts
|
|
959
960
|
var STORED = 1 /* Storage */ | 2 /* OwnsValue */;
|
|
960
961
|
var BINDABLE = STORED | 4 /* Binding */;
|
|
961
962
|
var TAXONOMY = {
|
|
@@ -1055,7 +1056,7 @@ var hasTrait = (kind, trait) => (TAXONOMY[kind][1] & trait) !== 0;
|
|
|
1055
1056
|
var memberKindSupportsStorage = (kind) => hasTrait(kind, 1 /* Storage */);
|
|
1056
1057
|
var memberKindOwnsStoredValue = (kind) => hasTrait(kind, 2 /* OwnsValue */);
|
|
1057
1058
|
|
|
1058
|
-
// ../
|
|
1059
|
+
// ../packages/models/src/members/member-subtree-distribution.ts
|
|
1059
1060
|
function isNeoSubtreeDistributionKind(value) {
|
|
1060
1061
|
return value === 0 /* Sparse */ || value === 1 /* Packed */;
|
|
1061
1062
|
}
|
|
@@ -1246,7 +1247,7 @@ v5.DNS = DNS;
|
|
|
1246
1247
|
v5.URL = URL2;
|
|
1247
1248
|
var v5_default = v5;
|
|
1248
1249
|
|
|
1249
|
-
// ../
|
|
1250
|
+
// ../packages/models/src/project/project-root-members.ts
|
|
1250
1251
|
var PROJECT_ROOTS = [
|
|
1251
1252
|
{
|
|
1252
1253
|
key: "Assets",
|
|
@@ -1294,7 +1295,7 @@ function projectRootMembersInDisplayOrder(project) {
|
|
|
1294
1295
|
}));
|
|
1295
1296
|
}
|
|
1296
1297
|
|
|
1297
|
-
// ../
|
|
1298
|
+
// ../packages/models/src/core/structural-narrow.ts
|
|
1298
1299
|
function isObject(value) {
|
|
1299
1300
|
if (typeof value !== "object") return false;
|
|
1300
1301
|
return value !== null;
|
|
@@ -1354,7 +1355,7 @@ function setOwnField(record4, key, value) {
|
|
|
1354
1355
|
});
|
|
1355
1356
|
}
|
|
1356
1357
|
|
|
1357
|
-
// ../
|
|
1358
|
+
// ../packages/models/src/core/world-system-kinds.generated.ts
|
|
1358
1359
|
var NeoWorldSystemClassKind = {
|
|
1359
1360
|
CellPattern: "cellPattern",
|
|
1360
1361
|
TileGrid: "tileGrid",
|
|
@@ -1398,7 +1399,7 @@ function isNeoWorldSystemClassKind(value) {
|
|
|
1398
1399
|
return NEO_WORLD_SYSTEM_CLASS_KIND_VALUES.has(value);
|
|
1399
1400
|
}
|
|
1400
1401
|
|
|
1401
|
-
// ../
|
|
1402
|
+
// ../packages/models/src/core/core-types.ts
|
|
1402
1403
|
var SystemDisallowedOperation = {
|
|
1403
1404
|
/**
|
|
1404
1405
|
* Blocks project-author edits to the record's schema/configuration.
|
|
@@ -1457,7 +1458,7 @@ function isWithName(value) {
|
|
|
1457
1458
|
return typeof value?.name === "string";
|
|
1458
1459
|
}
|
|
1459
1460
|
|
|
1460
|
-
// ../
|
|
1461
|
+
// ../packages/models/src/docs-text.ts
|
|
1461
1462
|
var DOCS_TEXT_MAX_UTF8_BYTES = 16384;
|
|
1462
1463
|
var textEncoder = new TextEncoder();
|
|
1463
1464
|
function isValidDocsText(value) {
|
|
@@ -1466,7 +1467,7 @@ function isValidDocsText(value) {
|
|
|
1466
1467
|
return textEncoder.encode(value).byteLength <= DOCS_TEXT_MAX_UTF8_BYTES;
|
|
1467
1468
|
}
|
|
1468
1469
|
|
|
1469
|
-
// ../
|
|
1470
|
+
// ../packages/models/src/members/float32.ts
|
|
1470
1471
|
function isFloat32(value) {
|
|
1471
1472
|
return typeof value === "number" && Number.isFinite(value) && Math.fround(value) === value;
|
|
1472
1473
|
}
|
|
@@ -2414,7 +2415,7 @@ function isValidNeoProjectBindingIdentifier(name) {
|
|
|
2414
2415
|
return PROJECT_IDENTIFIER_PATTERN.test(name) && !PROJECT_BINDING_RESERVED_NAMES.has(name);
|
|
2415
2416
|
}
|
|
2416
2417
|
|
|
2417
|
-
// ../
|
|
2418
|
+
// ../packages/models/src/project-source-identifiers.ts
|
|
2418
2419
|
function isValidGeneratedIdentifier(value) {
|
|
2419
2420
|
return typeof value === "string" && isGeneratedCSharpIdentifier(value) && !isGeneratedCSharpReservedKeyword(value);
|
|
2420
2421
|
}
|
|
@@ -2428,7 +2429,7 @@ function isValidProjectBindingIdentifier(value) {
|
|
|
2428
2429
|
return isValidGeneratedIdentifier(value) && isValidNeoProjectBindingIdentifier(value);
|
|
2429
2430
|
}
|
|
2430
2431
|
|
|
2431
|
-
// ../
|
|
2432
|
+
// ../packages/models/src/schema-identifiers.ts
|
|
2432
2433
|
function isValidSchemaMemberIdentifier(value) {
|
|
2433
2434
|
return isValidProjectMemberIdentifier(value);
|
|
2434
2435
|
}
|
|
@@ -2451,7 +2452,7 @@ var NeoScriptDialogueOp = /* @__PURE__ */ ((NeoScriptDialogueOp2) => {
|
|
|
2451
2452
|
return NeoScriptDialogueOp2;
|
|
2452
2453
|
})(NeoScriptDialogueOp || {});
|
|
2453
2454
|
|
|
2454
|
-
// ../
|
|
2455
|
+
// ../packages/models/src/neoscript/neoscript-compiler-revision.ts
|
|
2455
2456
|
var ACTIVE_NEOSCRIPT_COMPILER_REVISION_ROLLOUT = (
|
|
2456
2457
|
// <neoscript-compiler-revision-rollout>
|
|
2457
2458
|
null
|
|
@@ -2496,7 +2497,7 @@ function isCompiledBodyShape(object) {
|
|
|
2496
2497
|
return Object.prototype.hasOwnProperty.call(object, "typeInfo");
|
|
2497
2498
|
}
|
|
2498
2499
|
|
|
2499
|
-
// ../
|
|
2500
|
+
// ../packages/models/src/neoscript/neoscript-types.ts
|
|
2500
2501
|
var NS_TYPE_UNKNOWN = "Unknown";
|
|
2501
2502
|
var NS_TYPE_VOID = "Void";
|
|
2502
2503
|
var NSAssignmentOperator = /* @__PURE__ */ ((NSAssignmentOperator2) => {
|
|
@@ -2531,7 +2532,7 @@ var NSCollectionMutation = /* @__PURE__ */ ((NSCollectionMutation2) => {
|
|
|
2531
2532
|
return NSCollectionMutation2;
|
|
2532
2533
|
})(NSCollectionMutation || {});
|
|
2533
2534
|
|
|
2534
|
-
// ../
|
|
2535
|
+
// ../packages/models/src/neoscript/neoscript-guards.ts
|
|
2535
2536
|
function isNSTypeInfoBase(value) {
|
|
2536
2537
|
const v = value;
|
|
2537
2538
|
return typeof v === "object" && v !== null && typeof v.type === "number" && v.type in MemberKind && typeof v.required === "boolean";
|
|
@@ -3678,7 +3679,7 @@ function isNSVoidBody(value) {
|
|
|
3678
3679
|
return value.typeInfo.required === true;
|
|
3679
3680
|
}
|
|
3680
3681
|
|
|
3681
|
-
// ../
|
|
3682
|
+
// ../packages/models/src/neoscript/parameter-defaults.ts
|
|
3682
3683
|
function parameterHasDefault(argument2) {
|
|
3683
3684
|
return argument2.defaultValue !== void 0;
|
|
3684
3685
|
}
|
|
@@ -3724,7 +3725,7 @@ function callableParameters(overload) {
|
|
|
3724
3725
|
}));
|
|
3725
3726
|
}
|
|
3726
3727
|
|
|
3727
|
-
// ../
|
|
3728
|
+
// ../packages/models/src/neoscript/type-info-equality.ts
|
|
3728
3729
|
function typeInfosInvariantlyEqual(left, right) {
|
|
3729
3730
|
if (left.type !== right.type) return false;
|
|
3730
3731
|
if (left.required !== right.required) return false;
|
|
@@ -3775,7 +3776,7 @@ function typeInfosInvariantlyEqual(left, right) {
|
|
|
3775
3776
|
return true;
|
|
3776
3777
|
}
|
|
3777
3778
|
|
|
3778
|
-
// ../src/common/collections.ts
|
|
3779
|
+
// ../packages/models/src/common/collections.ts
|
|
3779
3780
|
function indexById(records2) {
|
|
3780
3781
|
const indexed = /* @__PURE__ */ new Map();
|
|
3781
3782
|
for (const record4 of records2) indexed.set(record4.id, record4);
|
|
@@ -3800,7 +3801,7 @@ async function forEachConcurrently(items, limit, work) {
|
|
|
3800
3801
|
);
|
|
3801
3802
|
}
|
|
3802
3803
|
|
|
3803
|
-
// ../
|
|
3804
|
+
// ../packages/models/src/classes/classes.ts
|
|
3804
3805
|
function isAbstractClass(value) {
|
|
3805
3806
|
return value?.modifier === 1 /* Abstract */;
|
|
3806
3807
|
}
|
|
@@ -3992,7 +3993,7 @@ function isNeoSchemaClass(value) {
|
|
|
3992
3993
|
return isNeoSchemaClassProps(value);
|
|
3993
3994
|
}
|
|
3994
3995
|
|
|
3995
|
-
// ../
|
|
3996
|
+
// ../packages/models/src/members/structured-leaf-fields.ts
|
|
3996
3997
|
var STRUCTURED_LEAF_FIELDS = {
|
|
3997
3998
|
[11 /* Sprite */]: [
|
|
3998
3999
|
{ name: "FileId", key: "fileId", type: "fileId" },
|
|
@@ -4096,7 +4097,7 @@ function structuredLeafFieldViolation(type, value) {
|
|
|
4096
4097
|
return "must be between 0 and 1";
|
|
4097
4098
|
}
|
|
4098
4099
|
|
|
4099
|
-
// ../
|
|
4100
|
+
// ../packages/models/src/members/member-kinds.ts
|
|
4100
4101
|
var FunctionArgumentReservedNames = /* @__PURE__ */ new Set([
|
|
4101
4102
|
"this",
|
|
4102
4103
|
"root",
|
|
@@ -5270,7 +5271,7 @@ function isAnyMemberAuthoredOrCompiled(value) {
|
|
|
5270
5271
|
return isAnyMember(value) || isUncompiledMemberNSFunctionOverride(value) || getField(value, "kind") === 10 /* NSProperty */ && isMemberOverridePropsInternal(value, true);
|
|
5271
5272
|
}
|
|
5272
5273
|
|
|
5273
|
-
// ../
|
|
5274
|
+
// ../packages/models/src/project/project-schema-index.ts
|
|
5274
5275
|
var CircularInheritanceError = class extends Error {
|
|
5275
5276
|
constructor(nodeId, chain) {
|
|
5276
5277
|
super(
|
|
@@ -5497,7 +5498,7 @@ function projectSchemaIndexFor(source, revision = EMPTY_REVISION) {
|
|
|
5497
5498
|
return index;
|
|
5498
5499
|
}
|
|
5499
5500
|
|
|
5500
|
-
// ../
|
|
5501
|
+
// ../packages/models/src/classes/inheritance.ts
|
|
5501
5502
|
var UnresolvedMemberInheritanceError = class extends Error {
|
|
5502
5503
|
constructor(memberId) {
|
|
5503
5504
|
super(
|
|
@@ -5765,7 +5766,7 @@ function descendantClassIdsInChildIndex(classId, childrenByClassId) {
|
|
|
5765
5766
|
return result;
|
|
5766
5767
|
}
|
|
5767
5768
|
|
|
5768
|
-
// ../
|
|
5769
|
+
// ../packages/models/src/system-record-id.ts
|
|
5769
5770
|
var SYSTEM_RECORD_ID_PREFIX = "system_";
|
|
5770
5771
|
function isSystemRecordId(id) {
|
|
5771
5772
|
return id.startsWith(SYSTEM_RECORD_ID_PREFIX);
|
|
@@ -5805,7 +5806,7 @@ function inSystemRecordNamespaceOf(ownerId, derivedId) {
|
|
|
5805
5806
|
return systemRecordId(derivedId);
|
|
5806
5807
|
}
|
|
5807
5808
|
|
|
5808
|
-
// ../
|
|
5809
|
+
// ../packages/models/src/classes/world-system-classes.generated.ts
|
|
5809
5810
|
var WORLD_SPRITE_MASK_INTERACTION_ENUM_ID = "system_4e6c4d6f-1d0b-402a-ad3a-be92242dceec";
|
|
5810
5811
|
var WORLD_SPRITE_MASK_INTERACTION_NONE_OPTION_ID = "system_9d607a4f-60c3-4347-94fc-f24b538bf468";
|
|
5811
5812
|
var WORLD_SPRITE_MASK_INTERACTION_VISIBLE_INSIDE_OPTION_ID = "system_4c670ac9-78a4-44e9-9833-94e1c69dca97";
|
|
@@ -7756,7 +7757,7 @@ var WORLD_SYSTEM_CLASS_DEFINITIONS = [
|
|
|
7756
7757
|
}
|
|
7757
7758
|
];
|
|
7758
7759
|
|
|
7759
|
-
// ../
|
|
7760
|
+
// ../packages/models/src/core/deep-clone-plain-data.ts
|
|
7760
7761
|
function deepClonePlainData(value) {
|
|
7761
7762
|
return clonePlain(value, "$", /* @__PURE__ */ new Set());
|
|
7762
7763
|
}
|
|
@@ -7804,41 +7805,7 @@ function clonePlain(value, path, visiting) {
|
|
|
7804
7805
|
}
|
|
7805
7806
|
}
|
|
7806
7807
|
|
|
7807
|
-
// ../
|
|
7808
|
-
var WORLD_SYSTEM_CLASS_DEFINITION_BY_KIND = new Map(
|
|
7809
|
-
WORLD_SYSTEM_CLASS_DEFINITIONS.map((definition) => [
|
|
7810
|
-
definition.worldKind,
|
|
7811
|
-
definition
|
|
7812
|
-
])
|
|
7813
|
-
);
|
|
7814
|
-
var WORLD_SYSTEM_ANIMATION_KIND_MARKER = "animation";
|
|
7815
|
-
var WORLD_SYSTEM_ANIMATION_KINDS = new Set(
|
|
7816
|
-
WORLD_SYSTEM_CLASS_DEFINITIONS.map(
|
|
7817
|
-
(definition) => definition.worldKind
|
|
7818
|
-
).filter(
|
|
7819
|
-
(worldKind) => worldKind.toLowerCase().includes(WORLD_SYSTEM_ANIMATION_KIND_MARKER)
|
|
7820
|
-
)
|
|
7821
|
-
);
|
|
7822
|
-
var GENERIC_WORLD_SYSTEM_CLASS_KINDS = new Set(
|
|
7823
|
-
WORLD_SYSTEM_CLASS_DEFINITIONS.filter(
|
|
7824
|
-
(definition) => (definition.genericParams?.length ?? 0) > 0
|
|
7825
|
-
).map((definition) => definition.worldKind)
|
|
7826
|
-
);
|
|
7827
|
-
var WORLD_SYSTEM_ALL_KINDS = new Set(
|
|
7828
|
-
WORLD_SYSTEM_CLASS_DEFINITIONS.map((definition) => definition.worldKind)
|
|
7829
|
-
);
|
|
7830
|
-
var WORLD_SYSTEM_SCHEMA_FIELD_SITES_BY_MEMBER_ID = new Map(
|
|
7831
|
-
WORLD_SYSTEM_CLASS_DEFINITIONS.flatMap(
|
|
7832
|
-
(definition) => (definition.schemaFields ?? []).map(
|
|
7833
|
-
(field) => [
|
|
7834
|
-
field.memberId,
|
|
7835
|
-
{ worldKind: definition.worldKind, schemaKey: field.schemaKey }
|
|
7836
|
-
]
|
|
7837
|
-
)
|
|
7838
|
-
)
|
|
7839
|
-
);
|
|
7840
|
-
|
|
7841
|
-
// ../src/models/classes/generics.ts
|
|
7808
|
+
// ../packages/models/src/classes/generics.ts
|
|
7842
7809
|
var genericBindingsByClassIndex = /* @__PURE__ */ new WeakMap();
|
|
7843
7810
|
function resolveGenericEnv(classId, classes, draft) {
|
|
7844
7811
|
const index = classIndexFor(classes);
|
|
@@ -8536,7 +8503,7 @@ function isAnimationChildOverrideEntrySlot(slotMember, members) {
|
|
|
8536
8503
|
return false;
|
|
8537
8504
|
}
|
|
8538
8505
|
|
|
8539
|
-
// ../
|
|
8506
|
+
// ../packages/models/src/members/instance-provenance.ts
|
|
8540
8507
|
var LITERAL_INSTANCE_IDENTITY_FIELDS = [
|
|
8541
8508
|
"classId",
|
|
8542
8509
|
"constructorArgs",
|
|
@@ -8576,7 +8543,7 @@ function isCollapseStampedInstanceRoot(value) {
|
|
|
8576
8543
|
return isLiteralValueContent(value) && isVirtualInstanceRootShape(value);
|
|
8577
8544
|
}
|
|
8578
8545
|
|
|
8579
|
-
// ../
|
|
8546
|
+
// ../packages/models/src/members/unordered-list-membership.ts
|
|
8580
8547
|
function buildUnorderedListMembershipIndex(values) {
|
|
8581
8548
|
const membersByContainerId = /* @__PURE__ */ new Map();
|
|
8582
8549
|
for (const candidate of values) {
|
|
@@ -8595,7 +8562,7 @@ function buildUnorderedListMembershipIndex(values) {
|
|
|
8595
8562
|
return membersByContainerId;
|
|
8596
8563
|
}
|
|
8597
8564
|
|
|
8598
|
-
// ../
|
|
8565
|
+
// ../packages/models/src/members/member-value-id.ts
|
|
8599
8566
|
var NEO_MEMBER_VALUE_NAMESPACE = "7f2b9c14-58d6-5a07-b3e1-4c9d0a6f8b25";
|
|
8600
8567
|
var NEO_VIRTUAL_VALUE_NAMESPACE = "3e8ca0b3-e3f1-5d5f-bf2f-6ab5ee3896d0";
|
|
8601
8568
|
var virtualNamespaceBytes = parse_default(NEO_VIRTUAL_VALUE_NAMESPACE);
|
|
@@ -8628,7 +8595,7 @@ function pendingVirtualValueId(pendingInstanceRootId, sourceIdentity2) {
|
|
|
8628
8595
|
return `${PENDING_VIRTUAL_VALUE_PREFIX}${encodeURIComponent(pendingInstanceRootId)}:${encodeURIComponent(sourceIdentity2)}`;
|
|
8629
8596
|
}
|
|
8630
8597
|
|
|
8631
|
-
// ../
|
|
8598
|
+
// ../packages/models/src/members/packed-value-encoding.ts
|
|
8632
8599
|
var PACKED_VALUE_ENTRY_KEY = "~packed";
|
|
8633
8600
|
var PackedValueEncodingError = class extends Error {
|
|
8634
8601
|
constructor(message) {
|
|
@@ -8893,7 +8860,7 @@ function registerEdge(edges, ownerId, childId) {
|
|
|
8893
8860
|
else existing.push(childId);
|
|
8894
8861
|
}
|
|
8895
8862
|
|
|
8896
|
-
// ../
|
|
8863
|
+
// ../packages/models/src/members/member-storage-key.ts
|
|
8897
8864
|
var MAIN_STORAGE_PARTITION = "main";
|
|
8898
8865
|
var STORAGE_KEY_INHERIT = "inherit";
|
|
8899
8866
|
var STORAGE_KEY_ALL = "all";
|
|
@@ -8931,7 +8898,7 @@ function resolveMapKeyForCreatedValue(args) {
|
|
|
8931
8898
|
return declaration;
|
|
8932
8899
|
}
|
|
8933
8900
|
|
|
8934
|
-
// ../
|
|
8901
|
+
// ../packages/models/src/members/storage-partitions.ts
|
|
8935
8902
|
function stampCreatedValuesMapKey(values, mapKey) {
|
|
8936
8903
|
const normalized = mapKey === void 0 || mapKey === null || mapKey.length === 0 || mapKey === MAIN_STORAGE_PARTITION ? null : mapKey;
|
|
8937
8904
|
for (const value of values) {
|
|
@@ -9036,7 +9003,7 @@ function referencedValueIdCandidates(value) {
|
|
|
9036
9003
|
return [];
|
|
9037
9004
|
}
|
|
9038
9005
|
|
|
9039
|
-
// ../
|
|
9006
|
+
// ../packages/models/src/core/auth-ownership-types.ts
|
|
9040
9007
|
var ActorKind = {
|
|
9041
9008
|
/**
|
|
9042
9009
|
* `better-auth` user identities.
|
|
@@ -9062,7 +9029,7 @@ function isActorKind(value) {
|
|
|
9062
9029
|
return value === ActorKind.user || value === ActorKind.organization || value === ActorKind.system;
|
|
9063
9030
|
}
|
|
9064
9031
|
|
|
9065
|
-
// ../
|
|
9032
|
+
// ../packages/models/src/members/member-change-listeners.ts
|
|
9066
9033
|
function editChangeListenerSet(explicit, inherited, edit, options = { inheritedComplete: true }) {
|
|
9067
9034
|
if (edit.kind === "reset") {
|
|
9068
9035
|
return explicit === void 0 ? { changed: false } : { changed: true, targets: void 0 };
|
|
@@ -9168,7 +9135,7 @@ function defaultSourceWithListeners(row, graph) {
|
|
|
9168
9135
|
return { ...row, changeListeners: map };
|
|
9169
9136
|
}
|
|
9170
9137
|
|
|
9171
|
-
// ../
|
|
9138
|
+
// ../packages/models/src/constructors/constructors.ts
|
|
9172
9139
|
var REJECTED_CONSTRUCTOR_KEYS = [
|
|
9173
9140
|
"bodyMode",
|
|
9174
9141
|
"uiAction",
|
|
@@ -9315,7 +9282,7 @@ function constructorActionParameterId(constructor, index) {
|
|
|
9315
9282
|
return `__arg_${index}__`;
|
|
9316
9283
|
}
|
|
9317
9284
|
|
|
9318
|
-
// ../
|
|
9285
|
+
// ../packages/models/src/classes/construction-requirements.ts
|
|
9319
9286
|
function requiredMembersForConstruction(classId, document2, classArguments2) {
|
|
9320
9287
|
return unsettledMembers(
|
|
9321
9288
|
classId,
|
|
@@ -9549,7 +9516,7 @@ function resolveConstructionTypeArguments(typeArguments, document2) {
|
|
|
9549
9516
|
return bindings;
|
|
9550
9517
|
}
|
|
9551
9518
|
|
|
9552
|
-
// ../
|
|
9519
|
+
// ../packages/models/src/unity/unity-import-settings.ts
|
|
9553
9520
|
var UNITY_TEXTURE_2D_OVERRIDE_PATHS = /* @__PURE__ */ new Set([
|
|
9554
9521
|
"textureType",
|
|
9555
9522
|
"textureShape",
|
|
@@ -10232,7 +10199,7 @@ function isUnityAudioSampleRateSetting(value) {
|
|
|
10232
10199
|
return false;
|
|
10233
10200
|
}
|
|
10234
10201
|
|
|
10235
|
-
// ../
|
|
10202
|
+
// ../packages/models/src/files/file-types.ts
|
|
10236
10203
|
function isProjectFileType(value) {
|
|
10237
10204
|
if (value === "image" /* Image */) return true;
|
|
10238
10205
|
if (value === "audio" /* Audio */) return true;
|
|
@@ -10307,7 +10274,7 @@ function isSha256(value) {
|
|
|
10307
10274
|
return isString(value) && /^[a-f0-9]{64}$/u.test(value);
|
|
10308
10275
|
}
|
|
10309
10276
|
|
|
10310
|
-
// ../
|
|
10277
|
+
// ../packages/models/src/files/file-member-utils.ts
|
|
10311
10278
|
function resolveProjectFileTextureSettings(file, textureTemplates) {
|
|
10312
10279
|
if (file.fileType !== "image" /* Image */) return null;
|
|
10313
10280
|
const existing = file.unityTextureSettings;
|
|
@@ -10386,7 +10353,7 @@ function isPendingId(id) {
|
|
|
10386
10353
|
return id.startsWith(PENDING_ID_PREFIX);
|
|
10387
10354
|
}
|
|
10388
10355
|
|
|
10389
|
-
// ../
|
|
10356
|
+
// ../packages/models/src/enum/enum-types.ts
|
|
10390
10357
|
var OPTION_ID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/u;
|
|
10391
10358
|
function isValidEnumOptionId(id) {
|
|
10392
10359
|
if (typeof id !== "string" || id.length === 0) return false;
|
|
@@ -10464,7 +10431,7 @@ function isProspectiveEnum(value) {
|
|
|
10464
10431
|
return isEnumPropsWithIds(value, isProspectiveEnumOptionId);
|
|
10465
10432
|
}
|
|
10466
10433
|
|
|
10467
|
-
// ../
|
|
10434
|
+
// ../packages/models/src/members/stored-value-shape.ts
|
|
10468
10435
|
var ANIMATION_OVERRIDE_GRAPH_MEMBER_IDS = /* @__PURE__ */ new Set([
|
|
10469
10436
|
WORLD_ANIMATION_FRAME_OVERRIDES_MEMBER_ID,
|
|
10470
10437
|
WORLD_ANIMATION_CHILD_OVERRIDE_OVERRIDES_MEMBER_ID
|
|
@@ -10548,7 +10515,7 @@ function leafIssue(leaf, shape, value) {
|
|
|
10548
10515
|
return field === null ? { kind: shape } : { kind: "field", leaf, ...field };
|
|
10549
10516
|
}
|
|
10550
10517
|
|
|
10551
|
-
// ../
|
|
10518
|
+
// ../packages/models/src/members/build-default-member-value.ts
|
|
10552
10519
|
var DECLARATION_DEFAULT_POSITION = {
|
|
10553
10520
|
insideAnimationOverrideGraph: false
|
|
10554
10521
|
};
|
|
@@ -11873,7 +11840,7 @@ function validateAudioMemberValue(document2, member, body) {
|
|
|
11873
11840
|
}
|
|
11874
11841
|
}
|
|
11875
11842
|
|
|
11876
|
-
// ../
|
|
11843
|
+
// ../packages/models/src/members/list-indexes.ts
|
|
11877
11844
|
function validateListIndexDefinitions(ctx, listMember) {
|
|
11878
11845
|
const errors = [];
|
|
11879
11846
|
let list;
|
|
@@ -12086,7 +12053,7 @@ function errorMessage(error) {
|
|
|
12086
12053
|
return error instanceof Error ? error.message : String(error);
|
|
12087
12054
|
}
|
|
12088
12055
|
|
|
12089
|
-
// ../
|
|
12056
|
+
// ../packages/models/src/members/effective-storage.ts
|
|
12090
12057
|
function declaredMemberStorage(memberId, members) {
|
|
12091
12058
|
const declared = walkExtendsMemberChain(memberId, members, (a) => {
|
|
12092
12059
|
const storage = a.storage;
|
|
@@ -12332,7 +12299,7 @@ var EffectiveStorageResolver = class {
|
|
|
12332
12299
|
}
|
|
12333
12300
|
};
|
|
12334
12301
|
|
|
12335
|
-
// ../
|
|
12302
|
+
// ../packages/neoscript-runtime/src/neoscript/debug.ts
|
|
12336
12303
|
function snapshotNeoScriptFrames(state) {
|
|
12337
12304
|
const frames = state.frames.slice(-64).reverse().map((frame) => Object.freeze({ ...frame }));
|
|
12338
12305
|
if (state.frames.length > 64)
|
|
@@ -13142,7 +13109,7 @@ function withNeoTestPrelude(context) {
|
|
|
13142
13109
|
return { ...context, project };
|
|
13143
13110
|
}
|
|
13144
13111
|
|
|
13145
|
-
// ../
|
|
13112
|
+
// ../packages/neoscript-runtime/src/neoscript/NSGetterRuntimeError.ts
|
|
13146
13113
|
var NSGetterRuntimeError = class extends Error {
|
|
13147
13114
|
/** Keep catch-visible runtime messages stable; add guidance for diagnostic hosts. */
|
|
13148
13115
|
get diagnosticMessage() {
|
|
@@ -13190,7 +13157,7 @@ var UncompiledInitializerRuntimeError = class extends NSGetterRuntimeError {
|
|
|
13190
13157
|
valueId;
|
|
13191
13158
|
};
|
|
13192
13159
|
|
|
13193
|
-
// ../
|
|
13160
|
+
// ../packages/neoscript-runtime/src/listener-write-index.ts
|
|
13194
13161
|
var indexes = /* @__PURE__ */ new WeakMap();
|
|
13195
13162
|
var empty = /* @__PURE__ */ new Map();
|
|
13196
13163
|
function listenerWritesByOwner(state) {
|
|
@@ -13214,7 +13181,7 @@ function changeListenerWriteEdit(write) {
|
|
|
13214
13181
|
return write.operation === "clear" ? { kind: "replace", targets: [] } : { kind: write.operation, target: write.listener };
|
|
13215
13182
|
}
|
|
13216
13183
|
|
|
13217
|
-
// ../
|
|
13184
|
+
// ../packages/neoscript-runtime/src/neoscript/typed-aggregate-row-references.ts
|
|
13218
13185
|
function visitTypedAggregateRowReferences(value, rawType, visitor) {
|
|
13219
13186
|
visitor.beforeVisit?.();
|
|
13220
13187
|
const pending = [{ value, type: rawType }];
|
|
@@ -13240,7 +13207,7 @@ function visitTypedAggregateRowReferences(value, rawType, visitor) {
|
|
|
13240
13207
|
}
|
|
13241
13208
|
}
|
|
13242
13209
|
|
|
13243
|
-
// ../
|
|
13210
|
+
// ../packages/neoscript-runtime/src/neoscript/initializer-dependencies.ts
|
|
13244
13211
|
var PendingInitializerDependency = class extends NSGetterRuntimeError {
|
|
13245
13212
|
constructor(valueId) {
|
|
13246
13213
|
super(`Initializer dependency "${valueId}" has not been materialized.`);
|
|
@@ -13249,7 +13216,7 @@ var PendingInitializerDependency = class extends NSGetterRuntimeError {
|
|
|
13249
13216
|
valueId;
|
|
13250
13217
|
};
|
|
13251
13218
|
|
|
13252
|
-
// ../
|
|
13219
|
+
// ../packages/neoscript-runtime/src/neoscript/unattributable-reads.ts
|
|
13253
13220
|
var OWNERSHIP_CHAIN_PREFIXES = [
|
|
13254
13221
|
"generic-parent-resolution:",
|
|
13255
13222
|
"member-owner-resolution:",
|
|
@@ -13282,7 +13249,7 @@ function classifyUnattributableRead(reason) {
|
|
|
13282
13249
|
return { scope: "corpus" /* Corpus */ };
|
|
13283
13250
|
}
|
|
13284
13251
|
|
|
13285
|
-
// ../src/
|
|
13252
|
+
// ../packages/neoscript-runtime/src/values/value-row-owner-members.ts
|
|
13286
13253
|
function valueIdsWithSourceChains(targetValueIds, valuesById) {
|
|
13287
13254
|
const result = new Set(targetValueIds);
|
|
13288
13255
|
for (const targetId of targetValueIds) {
|
|
@@ -13591,7 +13558,7 @@ var NEO_CELL_PATTERN_PURE_NATIVE_MEMBER_IDS = /* @__PURE__ */ new Set([
|
|
|
13591
13558
|
]);
|
|
13592
13559
|
var NEO_OBJECT_CLASS_ID = "system_f671535d-0eb6-4139-9caf-5c5276febd31";
|
|
13593
13560
|
|
|
13594
|
-
// ../
|
|
13561
|
+
// ../packages/neoscript-runtime/src/neoscript/cell-pattern.ts
|
|
13595
13562
|
function integer(value, name, minimum = -2147483648) {
|
|
13596
13563
|
if (typeof value !== "number" || !Number.isInteger(value)) {
|
|
13597
13564
|
throw new TypeError(`${name} must be an integer.`);
|
|
@@ -13786,7 +13753,7 @@ function evaluateCellPatternNative(memberId, receiver, args, ctx) {
|
|
|
13786
13753
|
}
|
|
13787
13754
|
}
|
|
13788
13755
|
|
|
13789
|
-
// ../
|
|
13756
|
+
// ../packages/models/src/project/project-version-types.ts
|
|
13790
13757
|
var ProjectVersionBumpKind = {
|
|
13791
13758
|
Patch: "patch",
|
|
13792
13759
|
Minor: "minor",
|
|
@@ -14025,7 +13992,7 @@ function isStringArray(value) {
|
|
|
14025
13992
|
return value.every(isString);
|
|
14026
13993
|
}
|
|
14027
13994
|
|
|
14028
|
-
// ../
|
|
13995
|
+
// ../packages/models/src/project/internal-record-relations.ts
|
|
14029
13996
|
var InternalRecordRelationKind = {
|
|
14030
13997
|
WorldGridTileImport: "world.grid.tile-import",
|
|
14031
13998
|
WorldGridObjectImport: "world.grid.object-import",
|
|
@@ -14359,7 +14326,7 @@ function effectiveRelation(relation, targetRecordId, sourceAncestryDepth) {
|
|
|
14359
14326
|
};
|
|
14360
14327
|
}
|
|
14361
14328
|
|
|
14362
|
-
// ../
|
|
14329
|
+
// ../packages/models/src/classes/world-layer-link-target.ts
|
|
14363
14330
|
function worldLayerLinkTargetDescriptorForClass(classId, classes) {
|
|
14364
14331
|
return worldLayerLinkTargetDescriptor(
|
|
14365
14332
|
resolveWorldSystemClassKind(classId, classes)
|
|
@@ -14455,7 +14422,7 @@ function resolveWorldLayerLinkTarget(args) {
|
|
|
14455
14422
|
};
|
|
14456
14423
|
}
|
|
14457
14424
|
|
|
14458
|
-
// ../
|
|
14425
|
+
// ../packages/neoscript-runtime/src/world-grid-query-reads.ts
|
|
14459
14426
|
function worldGridQueryReadKey(read) {
|
|
14460
14427
|
return read.kind === "placement" ? JSON.stringify([read.kind, read.valueId]) : JSON.stringify([read.kind, read.gridId, read.cell.x, read.cell.y]);
|
|
14461
14428
|
}
|
|
@@ -14479,7 +14446,7 @@ var WorldGridQueryReadSet = class {
|
|
|
14479
14446
|
}
|
|
14480
14447
|
};
|
|
14481
14448
|
|
|
14482
|
-
// ../
|
|
14449
|
+
// ../packages/neoscript-runtime/src/neoscript/initializer-context.ts
|
|
14483
14450
|
function initializerEvaluatorCacheKey(document2) {
|
|
14484
14451
|
return document2.evaluatorCache?.key ?? document2;
|
|
14485
14452
|
}
|
|
@@ -14523,7 +14490,7 @@ var InitializerReadSet = class {
|
|
|
14523
14490
|
};
|
|
14524
14491
|
};
|
|
14525
14492
|
|
|
14526
|
-
// ../
|
|
14493
|
+
// ../packages/neoscript-runtime/src/world-grid-query.ts
|
|
14527
14494
|
var WorldGridQueryError = class extends Error {
|
|
14528
14495
|
name = "WorldGridQueryError";
|
|
14529
14496
|
};
|
|
@@ -14868,7 +14835,7 @@ function checkedCoordinate(value) {
|
|
|
14868
14835
|
return value;
|
|
14869
14836
|
}
|
|
14870
14837
|
|
|
14871
|
-
// ../
|
|
14838
|
+
// ../packages/neoscript-runtime/src/neoscript/getter-subscriptions.ts
|
|
14872
14839
|
var NeoScriptGetterSubscription = class {
|
|
14873
14840
|
constructor(rowId, getterId, classId) {
|
|
14874
14841
|
this.rowId = rowId;
|
|
@@ -15006,7 +14973,7 @@ var NeoScriptGetterSubscriptions = class _NeoScriptGetterSubscriptions {
|
|
|
15006
14973
|
}
|
|
15007
14974
|
};
|
|
15008
14975
|
|
|
15009
|
-
// ../
|
|
14976
|
+
// ../packages/models/src/decimal/decimal-math.ts
|
|
15010
14977
|
var DecimalOverflowError = class extends Error {
|
|
15011
14978
|
};
|
|
15012
14979
|
var DecimalDivisionByZeroError = class extends Error {
|
|
@@ -15273,7 +15240,7 @@ function floatFromDecimalString(value) {
|
|
|
15273
15240
|
return Number(value);
|
|
15274
15241
|
}
|
|
15275
15242
|
|
|
15276
|
-
// ../
|
|
15243
|
+
// ../packages/models/src/interfaces/interface-graph.ts
|
|
15277
15244
|
var CircularInterfaceExtensionError = class extends Error {
|
|
15278
15245
|
constructor(interfaceId, chain) {
|
|
15279
15246
|
super(
|
|
@@ -15337,7 +15304,7 @@ function classImplementsInterface(classId, interfaceId, classes, interfaces) {
|
|
|
15337
15304
|
);
|
|
15338
15305
|
}
|
|
15339
15306
|
|
|
15340
|
-
// ../
|
|
15307
|
+
// ../packages/models/src/members/read-class-member.ts
|
|
15341
15308
|
function readClassMember(args) {
|
|
15342
15309
|
const { member, schemaKey } = args;
|
|
15343
15310
|
const declaration = member.kind !== 10 /* NSProperty */ && member.defaultValue != null ? member.defaultValue : void 0;
|
|
@@ -15446,7 +15413,7 @@ function describeParameter(parameter3) {
|
|
|
15446
15413
|
return `${parameter3.name}${nullability}${defaulted}`;
|
|
15447
15414
|
}
|
|
15448
15415
|
|
|
15449
|
-
// ../
|
|
15416
|
+
// ../packages/neoscript-runtime/src/neoscript/NeoScriptScope.ts
|
|
15450
15417
|
var NeoScriptScope = class {
|
|
15451
15418
|
constructor(parent = null, initialBindings) {
|
|
15452
15419
|
this.parent = parent;
|
|
@@ -15519,7 +15486,7 @@ var NeoScriptScope = class {
|
|
|
15519
15486
|
}
|
|
15520
15487
|
};
|
|
15521
15488
|
|
|
15522
|
-
// ../
|
|
15489
|
+
// ../packages/neoscript-runtime/src/neoscript/evaluateNSGetter.ts
|
|
15523
15490
|
var DELEGATE_LEXICAL_THIS = /* @__PURE__ */ Symbol("neoDelegateLexicalThis");
|
|
15524
15491
|
var DELEGATE_LEXICAL_ROOT = /* @__PURE__ */ Symbol("neoDelegateLexicalRoot");
|
|
15525
15492
|
var NonCatchableNSGetterRuntimeError = class extends NSGetterRuntimeError {
|
|
@@ -15807,7 +15774,7 @@ function layerEvaluatorLookups(base, overlay) {
|
|
|
15807
15774
|
return merged.length === 0 ? void 0 : merged;
|
|
15808
15775
|
};
|
|
15809
15776
|
const unorderedMembership = /* @__PURE__ */ new Map();
|
|
15810
|
-
const
|
|
15777
|
+
const unorderedListEntryIds = (containerId) => {
|
|
15811
15778
|
const cached = unorderedMembership.get(containerId);
|
|
15812
15779
|
if (cached !== void 0) return cached;
|
|
15813
15780
|
const own = localUnorderedMembership.get(containerId) ?? [];
|
|
@@ -15874,7 +15841,7 @@ function layerEvaluatorLookups(base, overlay) {
|
|
|
15874
15841
|
memberById: (id) => base.memberById(id),
|
|
15875
15842
|
valueById: (id) => overlay.rows.get(id) ?? (overlay.hiddenIds.has(id) ? null : base.valueById(id)),
|
|
15876
15843
|
hasStoredValueId: (id) => overlay.rows.has(id) || !overlay.hiddenIds.has(id) && (base.hasStoredValueId?.(id) ?? false),
|
|
15877
|
-
unorderedListEntryIds
|
|
15844
|
+
unorderedListEntryIds,
|
|
15878
15845
|
virtualInstanceRowsForValue: () => [],
|
|
15879
15846
|
rowForValueReference: (value) => evaluatorIndexes2.rowByValueReference.get(value) ?? null,
|
|
15880
15847
|
evaluatorIndexes: evaluatorIndexes2,
|
|
@@ -27071,14 +27038,14 @@ function collectionEntryUsesReferenceResolution(collection, key, ctx) {
|
|
|
27071
27038
|
return referenceIndexes === void 0 || referenceIndexes.has(key);
|
|
27072
27039
|
}
|
|
27073
27040
|
|
|
27074
|
-
// ../
|
|
27041
|
+
// ../packages/neoscript-runtime/src/declaration-default-source.ts
|
|
27075
27042
|
function declarationDefaultSource(id, stored, resolveGraph) {
|
|
27076
27043
|
if (stored !== null && !isCollapseStampedInstanceRoot(stored)) return stored;
|
|
27077
27044
|
const graph = resolveGraph(id);
|
|
27078
27045
|
return defaultSourceWithListeners(graph?.rowsById.get(id) ?? stored, graph);
|
|
27079
27046
|
}
|
|
27080
27047
|
|
|
27081
|
-
// ../
|
|
27048
|
+
// ../packages/models/src/classes/constructor-parameter-settlement.ts
|
|
27082
27049
|
function createConstructorSettlementResolver(view) {
|
|
27083
27050
|
const classesById = new Map(
|
|
27084
27051
|
view.classes.map((schemaClass2) => [schemaClass2.id, schemaClass2])
|
|
@@ -27204,7 +27171,7 @@ function asRecord(value) {
|
|
|
27204
27171
|
return value;
|
|
27205
27172
|
}
|
|
27206
27173
|
|
|
27207
|
-
// ../
|
|
27174
|
+
// ../packages/models/src/members/stored-value-placement-index.ts
|
|
27208
27175
|
function buildStoredValuePlacementIndex(args) {
|
|
27209
27176
|
return createStoredValuePlacementTraversal(args)();
|
|
27210
27177
|
}
|
|
@@ -27426,7 +27393,7 @@ function isStringRecord2(value) {
|
|
|
27426
27393
|
return Object.values(value).every((item) => typeof item === "string");
|
|
27427
27394
|
}
|
|
27428
27395
|
|
|
27429
|
-
// ../
|
|
27396
|
+
// ../packages/neoscript-runtime/src/listener-endpoint-projection.ts
|
|
27430
27397
|
function projectListenerEndpoint(args) {
|
|
27431
27398
|
const { descriptor } = args;
|
|
27432
27399
|
if (!descriptor.pathKey.startsWith("$/")) return void 0;
|
|
@@ -27453,7 +27420,7 @@ function projectListenerEndpoint(args) {
|
|
|
27453
27420
|
return claim(descriptor.pathKey) === args.id ? node : void 0;
|
|
27454
27421
|
}
|
|
27455
27422
|
|
|
27456
|
-
// ../
|
|
27423
|
+
// ../packages/models/src/members/lookup-declared-type.ts
|
|
27457
27424
|
function lookupDeclaredTypeInfo(member, collectionTypeInfo) {
|
|
27458
27425
|
if (collectionTypeInfo === null) return null;
|
|
27459
27426
|
if (collectionTypeInfo.type !== 6 /* List */ && collectionTypeInfo.type !== 5 /* Dictionary */) {
|
|
@@ -27475,7 +27442,7 @@ function lookupDeclaredTypeInfo(member, collectionTypeInfo) {
|
|
|
27475
27442
|
};
|
|
27476
27443
|
}
|
|
27477
27444
|
|
|
27478
|
-
// ../src/
|
|
27445
|
+
// ../packages/neoscript-runtime/src/values/member-declared-type-info.ts
|
|
27479
27446
|
function resolveMemberDeclaredTypeInfo(member, members) {
|
|
27480
27447
|
return resolveMemberDeclaredTypeInfoInternal(member, members, /* @__PURE__ */ new Set());
|
|
27481
27448
|
}
|
|
@@ -27592,7 +27559,7 @@ function resolveMemberDeclaredTypeInfoInternal(member, members, seen) {
|
|
|
27592
27559
|
};
|
|
27593
27560
|
}
|
|
27594
27561
|
|
|
27595
|
-
// ../src/
|
|
27562
|
+
// ../packages/neoscript-runtime/src/values/constructor-argument-ownership.ts
|
|
27596
27563
|
var MaterializedValueGraphContext = class {
|
|
27597
27564
|
/**
|
|
27598
27565
|
* P79 §7a. Generic in the caller's document view so a pass typed against a
|
|
@@ -30162,7 +30129,7 @@ function describeToken(t) {
|
|
|
30162
30129
|
return `'${t.text}'`;
|
|
30163
30130
|
}
|
|
30164
30131
|
|
|
30165
|
-
// ../src/
|
|
30132
|
+
// ../packages/neoscript-runtime/src/values/initializer-identifiers.ts
|
|
30166
30133
|
function initializerReferencedIdentifiers(source) {
|
|
30167
30134
|
let expression;
|
|
30168
30135
|
try {
|
|
@@ -30195,7 +30162,7 @@ function initializerReferencesAnyIdentifier(source, names) {
|
|
|
30195
30162
|
return false;
|
|
30196
30163
|
}
|
|
30197
30164
|
|
|
30198
|
-
// ../
|
|
30165
|
+
// ../packages/neoscript-runtime/src/initializer-materialization.ts
|
|
30199
30166
|
var declarationInitializerContextByDocument = /* @__PURE__ */ new WeakMap();
|
|
30200
30167
|
function declarationInitializerContext(document2) {
|
|
30201
30168
|
const key = initializerEvaluatorCacheKey(document2);
|
|
@@ -30426,7 +30393,7 @@ function materializeMemberDefaultValue(args) {
|
|
|
30426
30393
|
return { root, createdValues: interior, pinnedRootSchemaKeys: /* @__PURE__ */ new Set() };
|
|
30427
30394
|
}
|
|
30428
30395
|
|
|
30429
|
-
// ../
|
|
30396
|
+
// ../packages/neoscript-runtime/src/virtual-instance-graph.ts
|
|
30430
30397
|
function buildVirtualInstanceMaterializedIndex(args) {
|
|
30431
30398
|
const rowsById = new Map(
|
|
30432
30399
|
(args.materializedRows ?? args.document.values).map((row) => [row.id, row])
|
|
@@ -32363,7 +32330,7 @@ function assertStoredConstructionStamp(root, classId = root.classId) {
|
|
|
32363
32330
|
}
|
|
32364
32331
|
}
|
|
32365
32332
|
|
|
32366
|
-
// ../
|
|
32333
|
+
// ../packages/neoscript-runtime/src/neoscript/evaluateInitializer.ts
|
|
32367
32334
|
var evaluatorLookupsByDocument = /* @__PURE__ */ new WeakMap();
|
|
32368
32335
|
var headlessResolversByLookupKey = /* @__PURE__ */ new WeakMap();
|
|
32369
32336
|
function sharedHeadlessResolver(overlay) {
|
|
@@ -32761,7 +32728,7 @@ function evaluateMemberInitializer(args) {
|
|
|
32761
32728
|
};
|
|
32762
32729
|
}
|
|
32763
32730
|
|
|
32764
|
-
// ../
|
|
32731
|
+
// ../packages/neoscript-runtime/src/virtual-instance-values.ts
|
|
32765
32732
|
function resolveVariantInstanceGraphForDocument2(args) {
|
|
32766
32733
|
return resolveVariantInstanceGraphForDocument({
|
|
32767
32734
|
...args,
|
|
@@ -32863,7 +32830,7 @@ function isObjectRecord(value) {
|
|
|
32863
32830
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
32864
32831
|
}
|
|
32865
32832
|
|
|
32866
|
-
// ../src/
|
|
32833
|
+
// ../packages/neoscript-runtime/src/values/canonical-json.ts
|
|
32867
32834
|
function canonicalJsonStringify(value) {
|
|
32868
32835
|
return JSON.stringify(toCanonicalJsonValue(value));
|
|
32869
32836
|
}
|
|
@@ -44311,6 +44278,20 @@ function compileErrorDiagnostic(source, error) {
|
|
|
44311
44278
|
};
|
|
44312
44279
|
}
|
|
44313
44280
|
|
|
44281
|
+
// ../packages/neoscript-language/src/docs-text.ts
|
|
44282
|
+
var DOCS_TEXT_MAX_UTF8_BYTES2 = 16384;
|
|
44283
|
+
function docsTextUtf8ByteLength(value) {
|
|
44284
|
+
return new TextEncoder().encode(value).byteLength;
|
|
44285
|
+
}
|
|
44286
|
+
function assertDocsTextWithinLimit(value, label = "Documentation") {
|
|
44287
|
+
const byteLength = docsTextUtf8ByteLength(value);
|
|
44288
|
+
if (byteLength > DOCS_TEXT_MAX_UTF8_BYTES2) {
|
|
44289
|
+
throw new Error(
|
|
44290
|
+
`${label} is ${byteLength} UTF-8 bytes; the limit is ${DOCS_TEXT_MAX_UTF8_BYTES2} bytes.`
|
|
44291
|
+
);
|
|
44292
|
+
}
|
|
44293
|
+
}
|
|
44294
|
+
|
|
44314
44295
|
// ../packages/neoscript-language/src/project-schema-manifest.ts
|
|
44315
44296
|
var nextManifestProjectionVersion = 1;
|
|
44316
44297
|
function projectSchemaManifest(input, options = {}) {
|
|
@@ -45965,7 +45946,7 @@ function defaultSourceUri(path) {
|
|
|
45965
45946
|
return `neo-source:///${path.split("/").map((part) => encodeURIComponent(part)).join("/")}`;
|
|
45966
45947
|
}
|
|
45967
45948
|
|
|
45968
|
-
// ../
|
|
45949
|
+
// ../packages/models/src/interfaces/interface-types.ts
|
|
45969
45950
|
function isInterfaceFunctionMember(member) {
|
|
45970
45951
|
return member.kind === 1 /* Function */;
|
|
45971
45952
|
}
|
|
@@ -46075,7 +46056,7 @@ function getInterfaceMemberKeyOrder(neoInterface) {
|
|
|
46075
46056
|
return result;
|
|
46076
46057
|
}
|
|
46077
46058
|
|
|
46078
|
-
// ../
|
|
46059
|
+
// ../packages/models/src/variants/variant-member.ts
|
|
46079
46060
|
function neoVariantSystemClass(classes, lookup = false) {
|
|
46080
46061
|
const declared = classes.find(
|
|
46081
46062
|
(item) => item.system?.worldKind === (lookup ? NeoWorldSystemClassKind.LookupVariant : NeoWorldSystemClassKind.Variant)
|
|
@@ -46215,12 +46196,12 @@ function pascalIdentifier(value) {
|
|
|
46215
46196
|
return identifier;
|
|
46216
46197
|
}
|
|
46217
46198
|
|
|
46218
|
-
// ../
|
|
46199
|
+
// ../packages/models/src/dialogue/dialogue-source-identifiers.ts
|
|
46219
46200
|
function isDialogueSourceIdentifier(value) {
|
|
46220
46201
|
return isValidProjectSourceIdentifier(value);
|
|
46221
46202
|
}
|
|
46222
46203
|
|
|
46223
|
-
// ../
|
|
46204
|
+
// ../packages/models/src/dialogue/logic-types.ts
|
|
46224
46205
|
function isNSBoolGetter(value) {
|
|
46225
46206
|
if (!isNSGetter(value)) return false;
|
|
46226
46207
|
if (value.typeInfo.type !== 1 /* Bool */) return false;
|
|
@@ -46290,7 +46271,7 @@ function isUIRenderableAction(action) {
|
|
|
46290
46271
|
return instruction.type === "return" /* return */ || instruction.type === "assign" /* assign */ || instruction.type === "collectionCall" /* collectionCall */ || instruction.type === "functionCall" /* functionCall */;
|
|
46291
46272
|
}
|
|
46292
46273
|
|
|
46293
|
-
// ../
|
|
46274
|
+
// ../packages/models/src/dialogue/dialogue-group-types.ts
|
|
46294
46275
|
function isOptionalNullableString2(value) {
|
|
46295
46276
|
if (value === void 0) return true;
|
|
46296
46277
|
if (value === null) return true;
|
|
@@ -46338,7 +46319,7 @@ function isAnyDialogueGroup(value) {
|
|
|
46338
46319
|
return isStandardDialogueGroupBase(value) || isLookupDialogueGroupBase(value) || isFolderDialogueGroupBase(value);
|
|
46339
46320
|
}
|
|
46340
46321
|
|
|
46341
|
-
// ../
|
|
46322
|
+
// ../packages/models/src/dialogue/dialogue-group-language.ts
|
|
46342
46323
|
var KINDS = {
|
|
46343
46324
|
[0 /* Standard */]: "standard",
|
|
46344
46325
|
[1 /* Lookup */]: "lookup",
|
|
@@ -48701,7 +48682,7 @@ async function restartProjectRead(read) {
|
|
|
48701
48682
|
}
|
|
48702
48683
|
}
|
|
48703
48684
|
|
|
48704
|
-
// ../
|
|
48685
|
+
// ../packages/models/src/project/project-types.ts
|
|
48705
48686
|
function isProject(value) {
|
|
48706
48687
|
const v = value;
|
|
48707
48688
|
return typeof v?.name === "string" && typeof v?.id === "string" && isProjectOwner(v.owner) && isActorIdentifier(v.author) && typeof v?.createdAt === "number" && typeof v?.updatedAt === "number" && typeof v?.rootAssetsMemberId === "string" && typeof v?.rootSaveFileMemberId === "string" && typeof v?.rootSessionMemberId === "string" && typeof v?.rootUserMemberId === "string" && isOptionalNullableString3(v.defaultPriorityGroupId) && isOptionalNullableString3(v.defaultTextureTemplateId) && isOptionalNullableString3(v.defaultAudioClipTemplateId) && isProjectExportSettingsOrEmpty(v.exportSettings);
|
|
@@ -48730,7 +48711,7 @@ function isUnityExportSettingsOrEmpty(value) {
|
|
|
48730
48711
|
return (namespaceValue === void 0 || namespaceValue === null || typeof namespaceValue === "string") && (singletonValue === void 0 || singletonValue === null || typeof singletonValue === "boolean");
|
|
48731
48712
|
}
|
|
48732
48713
|
|
|
48733
|
-
// ../
|
|
48714
|
+
// ../packages/models/src/project/project-migration-types.ts
|
|
48734
48715
|
function isProjectMigration(value) {
|
|
48735
48716
|
if (typeof value !== "object" || value === null) return false;
|
|
48736
48717
|
const migration = value;
|
|
@@ -48749,7 +48730,7 @@ function isProjectMigration(value) {
|
|
|
48749
48730
|
return isNumber(migration.updatedAt);
|
|
48750
48731
|
}
|
|
48751
48732
|
|
|
48752
|
-
// ../
|
|
48733
|
+
// ../packages/models/src/variants/variants.ts
|
|
48753
48734
|
function isNonEmptyString2(value) {
|
|
48754
48735
|
if (typeof value !== "string") return false;
|
|
48755
48736
|
return value.length > 0;
|
|
@@ -48780,7 +48761,7 @@ function isNeoClassVariantFolder(value) {
|
|
|
48780
48761
|
return true;
|
|
48781
48762
|
}
|
|
48782
48763
|
|
|
48783
|
-
// ../
|
|
48764
|
+
// ../packages/models/src/dialogue/dialogue-types.ts
|
|
48784
48765
|
function isNonArrayObject(value) {
|
|
48785
48766
|
if (!isRequiredType(value, isObject)) return false;
|
|
48786
48767
|
return !Array.isArray(value);
|
|
@@ -49077,7 +49058,7 @@ function isDialogue(value) {
|
|
|
49077
49058
|
return isDialogueProps(value);
|
|
49078
49059
|
}
|
|
49079
49060
|
|
|
49080
|
-
// ../
|
|
49061
|
+
// ../packages/models/src/dialogue/priority-types.ts
|
|
49081
49062
|
var DEFAULT_PRIORITY_OPTION_IDS = {
|
|
49082
49063
|
Urgent: "system_b0ad247f-fadc-4910-b202-75b7f94f1dbe",
|
|
49083
49064
|
High: "system_0beff759-9bdd-4a4e-841b-c6ebe0bbebac",
|
|
@@ -49144,7 +49125,7 @@ function isPriorityGroup(value) {
|
|
|
49144
49125
|
return isPriorityGroupProps(value);
|
|
49145
49126
|
}
|
|
49146
49127
|
|
|
49147
|
-
// ../
|
|
49128
|
+
// ../packages/models/src/localization/localization-types.ts
|
|
49148
49129
|
var PROJECT_LOCALIZATION_CONFIG_ID = "system_b9f80fd7-7ed2-4344-a2b6-625ced732ed0";
|
|
49149
49130
|
var LOCALIZED_TEXT_LINK_KINDS = [
|
|
49150
49131
|
"member-value",
|
|
@@ -53043,20 +53024,6 @@ function parse2(schema, input, config$1) {
|
|
|
53043
53024
|
return dataset.value;
|
|
53044
53025
|
}
|
|
53045
53026
|
|
|
53046
|
-
// ../packages/neoscript-language/src/docs-text.ts
|
|
53047
|
-
var DOCS_TEXT_MAX_UTF8_BYTES2 = 16384;
|
|
53048
|
-
function docsTextUtf8ByteLength(value) {
|
|
53049
|
-
return new TextEncoder().encode(value).byteLength;
|
|
53050
|
-
}
|
|
53051
|
-
function assertDocsTextWithinLimit(value, label = "Documentation") {
|
|
53052
|
-
const byteLength = docsTextUtf8ByteLength(value);
|
|
53053
|
-
if (byteLength > DOCS_TEXT_MAX_UTF8_BYTES2) {
|
|
53054
|
-
throw new Error(
|
|
53055
|
-
`${label} is ${byteLength} UTF-8 bytes; the limit is ${DOCS_TEXT_MAX_UTF8_BYTES2} bytes.`
|
|
53056
|
-
);
|
|
53057
|
-
}
|
|
53058
|
-
}
|
|
53059
|
-
|
|
53060
53027
|
// src/project-manifest/record-adapters/codecs.ts
|
|
53061
53028
|
var MEMBER_KIND = {
|
|
53062
53029
|
Null: 0,
|
|
@@ -55747,7 +55714,7 @@ var SPECIALIZED_RELATION_KINDS = /* @__PURE__ */ new Set([
|
|
|
55747
55714
|
|
|
55748
55715
|
// ../packages/manifest/schema-contract/registry.mjs
|
|
55749
55716
|
var PROJECT_SCHEMA_CONTRACT = Object.freeze({
|
|
55750
|
-
cliVersion: "0.75.
|
|
55717
|
+
cliVersion: "0.75.1",
|
|
55751
55718
|
projectFileUploadBatchSize: 32,
|
|
55752
55719
|
documentRecords: {
|
|
55753
55720
|
member: {
|