@crowdedkingdoms/crowdyjs 9.0.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION.md +56 -34
- package/README.md +83 -50
- package/dist/crowdy-client.d.ts +3 -0
- package/dist/crowdy-client.d.ts.map +1 -1
- package/dist/crowdy-client.js +2 -0
- package/dist/domains/playerCodeProjects.d.ts +25 -0
- package/dist/domains/playerCodeProjects.d.ts.map +1 -0
- package/dist/domains/playerCodeProjects.js +299 -0
- package/dist/domains/playerCompute.d.ts +1 -1
- package/dist/domains/playerCompute.js +1 -1
- package/dist/generated/graphql.d.ts +792 -7
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +57 -0
- package/dist/index.d.ts +3 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -5
- package/dist/kit/npcs.d.ts.map +1 -1
- package/dist/kit/social.d.ts.map +1 -1
- package/dist/live-coding/rust-analysis.d.ts.map +1 -1
- package/dist/live-coding/rust-analysis.js +64 -1
- package/dist/live-coding/worker-transport.d.ts +3 -0
- package/dist/live-coding/worker-transport.d.ts.map +1 -1
- package/dist/live-coding/worker-transport.js +13 -0
- package/dist/mod-studio/controller.d.ts +188 -0
- package/dist/mod-studio/controller.d.ts.map +1 -0
- package/dist/mod-studio/controller.js +915 -0
- package/dist/mod-studio/diagnostics.d.ts +22 -0
- package/dist/mod-studio/diagnostics.d.ts.map +1 -0
- package/dist/mod-studio/diagnostics.js +141 -0
- package/dist/mod-studio/dom-shell.d.ts +55 -0
- package/dist/mod-studio/dom-shell.d.ts.map +1 -0
- package/dist/mod-studio/dom-shell.js +527 -0
- package/dist/mod-studio/editor.d.ts +17 -0
- package/dist/mod-studio/editor.d.ts.map +1 -0
- package/dist/mod-studio/editor.js +1 -0
- package/dist/mod-studio/index.d.ts +10 -0
- package/dist/mod-studio/index.d.ts.map +1 -0
- package/dist/mod-studio/index.js +9 -0
- package/dist/mod-studio/models.d.ts +149 -0
- package/dist/mod-studio/models.d.ts.map +1 -0
- package/dist/mod-studio/models.js +62 -0
- package/dist/mod-studio/monaco-editor.d.ts +16 -0
- package/dist/mod-studio/monaco-editor.d.ts.map +1 -0
- package/dist/mod-studio/monaco-editor.js +548 -0
- package/dist/mod-studio/mount.d.ts +17 -0
- package/dist/mod-studio/mount.d.ts.map +1 -0
- package/dist/mod-studio/mount.js +86 -0
- package/dist/mod-studio/starter-projects.d.ts +11 -0
- package/dist/mod-studio/starter-projects.d.ts.map +1 -0
- package/dist/mod-studio/starter-projects.js +102 -0
- package/dist/mod-studio/styles.d.ts +2 -0
- package/dist/mod-studio/styles.d.ts.map +1 -0
- package/dist/mod-studio/styles.js +14 -0
- package/dist/mod-studio/textarea-editor.d.ts +8 -0
- package/dist/mod-studio/textarea-editor.d.ts.map +1 -0
- package/dist/mod-studio/textarea-editor.js +71 -0
- package/package.json +4 -4
- package/dist/live-coding/ide.d.ts +0 -23
- package/dist/live-coding/ide.d.ts.map +0 -1
- package/dist/live-coding/ide.js +0 -514
- package/dist/live-coding/index.d.ts +0 -8
- package/dist/live-coding/index.d.ts.map +0 -1
- package/dist/live-coding/index.js +0 -7
- package/dist/live-coding/live-coding-controller.d.ts +0 -75
- package/dist/live-coding/live-coding-controller.d.ts.map +0 -1
- package/dist/live-coding/live-coding-controller.js +0 -141
- package/dist/live-coding/mount.d.ts +0 -26
- package/dist/live-coding/mount.d.ts.map +0 -1
- package/dist/live-coding/mount.js +0 -108
- package/dist/live-coding/templates.d.ts +0 -17
- package/dist/live-coding/templates.d.ts.map +0 -1
- package/dist/live-coding/templates.js +0 -59
|
@@ -137,6 +137,34 @@ export var PlayerCodeAdmissionState;
|
|
|
137
137
|
PlayerCodeAdmissionState["Pending"] = "PENDING";
|
|
138
138
|
PlayerCodeAdmissionState["Revoked"] = "REVOKED";
|
|
139
139
|
})(PlayerCodeAdmissionState || (PlayerCodeAdmissionState = {}));
|
|
140
|
+
/** Studio-controlled catalog visibility. Player catalog queries return only published entries. */
|
|
141
|
+
export var PlayerCodeCommonStatus;
|
|
142
|
+
(function (PlayerCodeCommonStatus) {
|
|
143
|
+
/** Retained for provenance but hidden from new player catalog reads and imports. */
|
|
144
|
+
PlayerCodeCommonStatus["Archived"] = "ARCHIVED";
|
|
145
|
+
/** Studio work in progress; hidden from player common-file queries. */
|
|
146
|
+
PlayerCodeCommonStatus["Draft"] = "DRAFT";
|
|
147
|
+
/** Available to app-scoped players for reading and copy-by-value import. */
|
|
148
|
+
PlayerCodeCommonStatus["Published"] = "PUBLISHED";
|
|
149
|
+
})(PlayerCodeCommonStatus || (PlayerCodeCommonStatus = {}));
|
|
150
|
+
/** How a project file entered the project. Imported content is copied by value; provenance is informational and does not create a live link. */
|
|
151
|
+
export var PlayerCodeFileProvenance;
|
|
152
|
+
(function (PlayerCodeFileProvenance) {
|
|
153
|
+
/** The owner authored or directly saved this project file. */
|
|
154
|
+
PlayerCodeFileProvenance["Authored"] = "AUTHORED";
|
|
155
|
+
/** The file was copied from a specific immutable version of the app’s studio-curated common catalog. */
|
|
156
|
+
PlayerCodeFileProvenance["Common"] = "COMMON";
|
|
157
|
+
/** The file was copied from a specific revision of the owner’s private personal library. */
|
|
158
|
+
PlayerCodeFileProvenance["Library"] = "LIBRARY";
|
|
159
|
+
})(PlayerCodeFileProvenance || (PlayerCodeFileProvenance = {}));
|
|
160
|
+
/** The source catalog used for a copy-by-value project file import. */
|
|
161
|
+
export var PlayerCodeImportSource;
|
|
162
|
+
(function (PlayerCodeImportSource) {
|
|
163
|
+
/** Import from an immutable published common-file version in the requested app. */
|
|
164
|
+
PlayerCodeImportSource["Common"] = "COMMON";
|
|
165
|
+
/** Import from a private personal-library file owned by the authenticated caller. */
|
|
166
|
+
PlayerCodeImportSource["Library"] = "LIBRARY";
|
|
167
|
+
})(PlayerCodeImportSource || (PlayerCodeImportSource = {}));
|
|
140
168
|
/** Source-access mode of a listing: CLOSED (artifacts + contracts only) or OPEN_SOURCE (source readable; irreversible per published version). */
|
|
141
169
|
export var PlayerCodeLicenseMode;
|
|
142
170
|
(function (PlayerCodeLicenseMode) {
|
|
@@ -156,6 +184,26 @@ export var PlayerCodeOwnerKind;
|
|
|
156
184
|
PlayerCodeOwnerKind["Org"] = "ORG";
|
|
157
185
|
PlayerCodeOwnerKind["User"] = "USER";
|
|
158
186
|
})(PlayerCodeOwnerKind || (PlayerCodeOwnerKind = {}));
|
|
187
|
+
/** Editor preference describing how the project presents its server and client targets; it never grants deployment or runtime authority. */
|
|
188
|
+
export var PlayerCodePairingPreference;
|
|
189
|
+
(function (PlayerCodePairingPreference) {
|
|
190
|
+
/** Present only the client-target authoring workflow. */
|
|
191
|
+
PlayerCodePairingPreference["ClientOnly"] = "CLIENT_ONLY";
|
|
192
|
+
/** Present server and client sources independently without an implied requirement edge. */
|
|
193
|
+
PlayerCodePairingPreference["Independent"] = "INDEPENDENT";
|
|
194
|
+
/** Present server and client sources as two coordinated halves of one mod. */
|
|
195
|
+
PlayerCodePairingPreference["Paired"] = "PAIRED";
|
|
196
|
+
/** Present only the server-target authoring workflow. */
|
|
197
|
+
PlayerCodePairingPreference["ServerOnly"] = "SERVER_ONLY";
|
|
198
|
+
})(PlayerCodePairingPreference || (PlayerCodePairingPreference = {}));
|
|
199
|
+
/** The independently capped source target inside a player-owned Mod Studio project. */
|
|
200
|
+
export var PlayerCodeTarget;
|
|
201
|
+
(function (PlayerCodeTarget) {
|
|
202
|
+
/** Browser-worker Rust that can run only after the caller separately passes current grid ownership and write_client_code deployment checks. */
|
|
203
|
+
PlayerCodeTarget["Client"] = "CLIENT";
|
|
204
|
+
/** Server-target Rust that can run only after the caller separately passes current grid ownership and write_server_code deployment checks. */
|
|
205
|
+
PlayerCodeTarget["Server"] = "SERVER";
|
|
206
|
+
})(PlayerCodeTarget || (PlayerCodeTarget = {}));
|
|
159
207
|
/** Execution target for player-authored Rust. SERVER runs as the grid owner in game-api; CLIENT runs as the actual player in the browser worker sandbox. */
|
|
160
208
|
export var PlayerComputeTarget;
|
|
161
209
|
(function (PlayerComputeTarget) {
|
|
@@ -282,6 +330,7 @@ export const PlayerCodeListingVersionFieldsFragmentDoc = { "kind": "Document", "
|
|
|
282
330
|
export const PlayerCodeAcquisitionFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PlayerCodeAcquisitionFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerCodeAcquisition" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "acquisitionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "listingId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "mode" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expiresAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "unitBudget" } }, { "kind": "Field", "name": { "kind": "Name", "value": "unitsConsumed" } }, { "kind": "Field", "name": { "kind": "Name", "value": "acquiredAt" } }] } }] };
|
|
283
331
|
export const PlayerCodeInstallFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PlayerCodeInstallFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerCodeInstall" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "installId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "acquisitionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "listingId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pinnedVersionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "targetGridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "consentedCapabilityHash" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }] } }] };
|
|
284
332
|
export const GridClaimRequestFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "GridClaimRequestFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "GridClaimRequest" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "requestId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "requesterUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }] } }] };
|
|
333
|
+
export const PlayerCodeProjectFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PlayerCodeProjectFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerCodeProject" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "projectId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "serverModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clientModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pairingPreference" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sdkVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "abiVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archived" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archivedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fileCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalBytes" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "files" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "path" } }, { "kind": "Field", "name": { "kind": "Name", "value": "content" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenance" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceLibraryFileId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceLibraryRevision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceCommonVersionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] } }] };
|
|
285
334
|
export const PlayerWasmModuleFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PlayerWasmModuleFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerWasmModule" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "moduleId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "authorUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "authorOrgId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "enabled" } }, { "kind": "Field", "name": { "kind": "Name", "value": "draft" } }, { "kind": "Field", "name": { "kind": "Name", "value": "currentVersionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "currentTarget" } }, { "kind": "Field", "name": { "kind": "Name", "value": "circuitState" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastError" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] };
|
|
286
335
|
export const PlayerWasmModuleVersionFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PlayerWasmModuleVersionFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerWasmModuleVersion" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "versionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "moduleId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "versionNo" } }, { "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sourceFilesJson" } }, { "kind": "Field", "name": { "kind": "Name", "value": "openSource" } }, { "kind": "Field", "name": { "kind": "Name", "value": "compileStatus" } }, { "kind": "Field", "name": { "kind": "Name", "value": "compileLog" } }, { "kind": "Field", "name": { "kind": "Name", "value": "compiledSizeBytes" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }] } }] };
|
|
287
336
|
export const PlayerWasmModuleRunFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PlayerWasmModuleRunFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerWasmModuleRun" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "runId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "moduleId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "moduleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "executedAsUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "flowId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "triggerSource" } }, { "kind": "Field", "name": { "kind": "Name", "value": "startedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "durationUs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fuelUsed" } }, { "kind": "Field", "name": { "kind": "Name", "value": "success" } }, { "kind": "Field", "name": { "kind": "Name", "value": "errorMessage" } }] } }] };
|
|
@@ -571,6 +620,14 @@ export const MyCheckoutsConnectionDocument = { "kind": "Document", "definitions"
|
|
|
571
620
|
export const PaymentEventsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "PaymentEvents" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "offset" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "paymentEvents" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "offset" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "offset" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "items" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "eventId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provider" } }, { "kind": "Field", "name": { "kind": "Name", "value": "externalEventId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "eventType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "checkoutId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "processedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "error" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "pageInfo" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "totalCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "limit" } }, { "kind": "Field", "name": { "kind": "Name", "value": "offset" } }] } }] } }] } }] };
|
|
572
621
|
export const PaymentEventsConnectionDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "PaymentEventsConnection" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "first" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "after" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "paymentEventsConnection" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "first" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "first" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "after" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "after" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "edges" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "cursor" } }, { "kind": "Field", "name": { "kind": "Name", "value": "node" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "eventId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provider" } }, { "kind": "Field", "name": { "kind": "Name", "value": "externalEventId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "eventType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "checkoutId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "processedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "error" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "pageInfo" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "hasNextPage" } }, { "kind": "Field", "name": { "kind": "Name", "value": "hasPreviousPage" } }, { "kind": "Field", "name": { "kind": "Name", "value": "startCursor" } }, { "kind": "Field", "name": { "kind": "Name", "value": "endCursor" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalCount" } }] } }] } }] };
|
|
573
622
|
export const PlatformConfigDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "PlatformConfig" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "platformConfig" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "sharedGameApiUrl" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sharedGameApiWsUrl" } }, { "kind": "Field", "name": { "kind": "Name", "value": "freeAppsPerOrg" } }] } }] } }] };
|
|
623
|
+
export const PlayerCodeProjectsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "PlayerCodeProjects" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "includeArchived" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Boolean" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "offset" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "playerCodeProjects" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "includeArchived" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "includeArchived" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "offset" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "offset" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "projectId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "serverModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clientModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pairingPreference" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archived" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] } }] };
|
|
624
|
+
export const PlayerCodeProjectDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "PlayerCodeProject" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "projectId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "playerCodeProject" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "projectId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "projectId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "PlayerCodeProjectFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PlayerCodeProjectFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerCodeProject" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "projectId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "serverModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clientModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pairingPreference" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sdkVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "abiVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archived" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archivedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fileCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalBytes" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "files" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "path" } }, { "kind": "Field", "name": { "kind": "Name", "value": "content" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenance" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceLibraryFileId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceLibraryRevision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceCommonVersionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] } }] };
|
|
625
|
+
export const PlayerCodeProjectCreateDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "PlayerCodeProjectCreate" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "CreatePlayerCodeProjectInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "playerCodeProjectCreate" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "PlayerCodeProjectFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PlayerCodeProjectFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerCodeProject" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "projectId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "serverModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clientModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pairingPreference" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sdkVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "abiVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archived" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archivedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fileCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalBytes" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "files" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "path" } }, { "kind": "Field", "name": { "kind": "Name", "value": "content" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenance" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceLibraryFileId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceLibraryRevision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceCommonVersionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] } }] };
|
|
626
|
+
export const PlayerCodeProjectSaveDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "PlayerCodeProjectSave" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "SavePlayerCodeProjectInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "playerCodeProjectSave" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "PlayerCodeProjectFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PlayerCodeProjectFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerCodeProject" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "projectId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "serverModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clientModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pairingPreference" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sdkVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "abiVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archived" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archivedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fileCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalBytes" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "files" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "path" } }, { "kind": "Field", "name": { "kind": "Name", "value": "content" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenance" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceLibraryFileId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceLibraryRevision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceCommonVersionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] } }] };
|
|
627
|
+
export const PlayerCodeLibraryFilesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "PlayerCodeLibraryFiles" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "includeArchived" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Boolean" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "offset" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "playerCodeLibraryFiles" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "includeArchived" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "includeArchived" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "offset" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "offset" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "libraryFileId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pathHint" } }, { "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tags" } }, { "kind": "Field", "name": { "kind": "Name", "value": "content" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archived" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archivedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] } }] };
|
|
628
|
+
export const PlayerCodeLibrarySaveDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "PlayerCodeLibrarySave" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "SavePlayerCodeLibraryFileInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "playerCodeLibrarySave" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "libraryFileId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pathHint" } }, { "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tags" } }, { "kind": "Field", "name": { "kind": "Name", "value": "content" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archived" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archivedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] } }] };
|
|
629
|
+
export const PlayerCodeCommonFilesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "PlayerCodeCommonFiles" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "target" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerCodeTarget" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "offset" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "playerCodeCommonFiles" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "target" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "target" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "offset" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "offset" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "commonFileId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "slug" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "path" } }, { "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tags" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "versionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "versionNo" } }, { "kind": "Field", "name": { "kind": "Name", "value": "content" } }, { "kind": "Field", "name": { "kind": "Name", "value": "contentSha256" } }, { "kind": "Field", "name": { "kind": "Name", "value": "publishedByUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "publishedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] } }] };
|
|
630
|
+
export const PlayerCodeProjectImportFileDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "PlayerCodeProjectImportFile" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ImportPlayerCodeProjectFileInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "playerCodeProjectImportFile" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "PlayerCodeProjectFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PlayerCodeProjectFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerCodeProject" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "projectId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "serverModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clientModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pairingPreference" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sdkVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "abiVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archived" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archivedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fileCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalBytes" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "files" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "path" } }, { "kind": "Field", "name": { "kind": "Name", "value": "content" } }, { "kind": "Field", "name": { "kind": "Name", "value": "revision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenance" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceLibraryFileId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceLibraryRevision" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provenanceCommonVersionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] } }] };
|
|
574
631
|
export const PlayerComputeDeployDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "PlayerComputeDeploy" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "DeployPlayerComputeInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "playerComputeDeploy" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "PlayerWasmModuleVersionFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PlayerWasmModuleVersionFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerWasmModuleVersion" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "versionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "moduleId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "versionNo" } }, { "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sourceFilesJson" } }, { "kind": "Field", "name": { "kind": "Name", "value": "openSource" } }, { "kind": "Field", "name": { "kind": "Name", "value": "compileStatus" } }, { "kind": "Field", "name": { "kind": "Name", "value": "compileLog" } }, { "kind": "Field", "name": { "kind": "Name", "value": "compiledSizeBytes" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }] } }] };
|
|
575
632
|
export const PlayerComputeSetEnabledDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "PlayerComputeSetEnabled" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "gridId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "name" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "enabled" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Boolean" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "playerComputeSetEnabled" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "gridId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "gridId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "name" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "name" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "enabled" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "enabled" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "PlayerWasmModuleFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PlayerWasmModuleFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PlayerWasmModule" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "moduleId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "authorUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "authorOrgId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "enabled" } }, { "kind": "Field", "name": { "kind": "Name", "value": "draft" } }, { "kind": "Field", "name": { "kind": "Name", "value": "currentVersionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "currentTarget" } }, { "kind": "Field", "name": { "kind": "Name", "value": "circuitState" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastError" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] };
|
|
576
633
|
export const PlayerComputeSetRequiresDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "PlayerComputeSetRequires" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "gridId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "serverName" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "requiredClientName" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "playerComputeSetRequires" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "gridId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "gridId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "serverName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "serverName" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "requiredClientName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "requiredClientName" } } }] }] } }] };
|
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* or internal tooling, never an untrusted browser.
|
|
46
46
|
*/
|
|
47
47
|
/** The published package version. Mirrors `package.json`. */
|
|
48
|
-
export declare const VERSION = "
|
|
48
|
+
export declare const VERSION = "10.0.0";
|
|
49
49
|
export { LbCookieStore } from './lb-cookie-store.js';
|
|
50
50
|
export { CrowdyClient, createCrowdyClient, type CrowdyClientConfig, } from './crowdy-client.js';
|
|
51
51
|
export { BrowserLocalStorageTokenStore, SessionStore, type SessionListener, type TokenStore, } from './session.js';
|
|
@@ -90,6 +90,7 @@ export { UdpAPI } from './domains/udp.js';
|
|
|
90
90
|
export { GameModelAPI } from './domains/gameModel.js';
|
|
91
91
|
export { ComputeAPI, COMPUTE_SDK_VERSION, COMPUTE_ABI_VERSION, type DeployVersionOptions, type WaitForCompileOptions, } from './domains/compute.js';
|
|
92
92
|
export { PlayerComputeAPI } from './domains/playerCompute.js';
|
|
93
|
+
export { PlayerCodeProjectsAPI } from './domains/playerCodeProjects.js';
|
|
93
94
|
export { PlayerWalletAPI } from './domains/playerWallet.js';
|
|
94
95
|
export { MarketplaceAPI } from './domains/marketplace.js';
|
|
95
96
|
export { PlayerModelAPI } from './domains/playerModel.js';
|
|
@@ -97,10 +98,7 @@ export { PlayerCodeBroker, type PlayerCodeBrokerOptions, type PlayerCodeGridBoun
|
|
|
97
98
|
export { GLUE_HOST_FUNCTIONS, parseFuelBudget, runWithWatchdog, GlueRuntime, startGlueWorker, type GlueInitMessage, type GlueDispatchResult, } from './player-runtime/player-glue-worker.js';
|
|
98
99
|
export { type GuestExports, type GlueRuntimeOptions, } from './player-runtime/glue-runtime.js';
|
|
99
100
|
export { createGlueSab, wrapGlueSab, armGlueRequest, waitAndReadGlueReply, writeGlueResult, writeGlueReply, glueEncoder, glueDecoder, type GlueSab, } from './player-runtime/glue-sab.js';
|
|
100
|
-
export
|
|
101
|
-
export { mountLiveCoding, type MountLiveCodingOptions, type LiveCodingHandle, } from './live-coding/mount.js';
|
|
102
|
-
export { mountLiveCodingIDE, type MountLiveCodingIDEOptions, } from './live-coding/ide.js';
|
|
103
|
-
export { PLAYER_CODE_TEMPLATES, templateById, type PlayerCodeTemplate, } from './live-coding/templates.js';
|
|
101
|
+
export * from './mod-studio/index.js';
|
|
104
102
|
export type { ChunkCoordinatesInput, VoxelCoordinatesInput, ActorUpdateRequestInput, VoxelUpdateRequestInput, ClientAudioPacketInput, ClientTextPacketInput, ClientEventNotificationInput, UdpProxyConnectionStatus, RealtimeConnectionEvent, GameClientBootstrap, PlayerWasmModule, PlayerWasmModuleVersion, DeployPlayerComputeInput, GridOwnership, AssignGridOwnershipInput, TransferGridOwnershipInput, UpdateGamertagInput, CreateActorInput, UpdateActorInput, ActorFilterInput, BatchActorLookupInput, CreateUserAppStateInput, UpdateUserStateInput, UpdateAvatarStateInput, UpdateActorStateInput, UpdateChunkStateInput, UpdateChunkLodsInput, ChunkUpdateInput, UpdateVoxelInput, RollbackVoxelUpdatesInput, GetChunkInput, GetChunkLodsInput, GetChunksByDistanceInput, GetVoxelListInput, ListVoxelsInput, ListVoxelUpdatesByDistanceInput, TeleportRequestInput, LodDataInput, VoxelStateInput, Chunk, ChunkLodsResponse, ChunksByDistanceResponse, ChunkVoxelResponse, ChunkVoxelUpdatesResponse, Voxel, VoxelUpdatesByDistanceResponse, VoxelUpdateHistoryEvent, RollbackVoxelEventResult, Actor, Avatar, AvatarDto, TeleportResponse, UserAppState, ServerStatus, GraphQlServer, ServerVersionInfo, VersionInfo, PageInfo, UdpNotificationsSubscription, GmContainer, GmContainerState, GmContainerType, GmPropertyDef, GmFunction, GmFunctionParam, GmFunctionMutation, GmSession, GmSessionParticipant, GmEdge, GmTraverseResult, GmInvokeResult, GmMutationApplied, GmEvent, GmTypeSchema, GmAppFeature, GmTierFeature, GmAppPolicy, GmSeedResult, UpsertContainerTypeInput, UpsertPropertyDefInput, UpsertFunctionInput, FunctionParamInput, FunctionMutationInput, SeedGameModelInput, SeedContainerInput, SeedContainerTypeInput, SeedPropertyDefInput, SeedFunctionInput, SeedEdgeInput, SeedPropertyInput, CreateSessionInput, JoinSessionInput, SetSessionTurnInput, CreateContainerInput, SetContainerPropertyInput, AddEdgeInput, InvokeFunctionInput, DefineAppFeatureInput, GrantTierFeatureInput, SetGameModelPolicyInput, Scalars, } from './generated/graphql.js';
|
|
105
103
|
export type { CreateAppInput, UpdateAppInput, CreateOrganizationInput, CreateOrgTokenInput, UpdateOrgTokenInput, InviteOrgMemberInput, CreateOrgRoleInput, UpdateOrgRoleInput, CreateAccessTierInput, UpdateAccessTierInput, GrantAppAccessInput, CreateCheckoutInput, CheckoutFilterInput, SetQuotaInput, AppCodeAdmission, AdmitAppCodeInput, } from './generated/graphql.js';
|
|
106
104
|
export { ServerState, AppVisibility, PlayerComputeTarget, GridOwnerKind, GridTenure, CodeAdmissionMode, CodeAdmissionSubjectKind, } from './generated/graphql.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,6DAA6D;AAC7D,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,6DAA6D;AAC7D,eAAO,MAAM,OAAO,WAAW,CAAC;AAEhC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,KAAK,kBAAkB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,6BAA6B,EAC7B,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,UAAU,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,KAAK,mBAAmB,GACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,uBAAuB,GAC7B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EACf,cAAc,EACd,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,GAC7B,MAAM,cA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X,YAAY,EACZ,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EAEvB,OAAO,GACR,MAAM,wBAAwB,CAAC;AAMhC,YAAY,EACV,cAAc,EACd,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,wBAAwB,GACzB,MAAM,wBAAwB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* or internal tooling, never an untrusted browser.
|
|
46
46
|
*/
|
|
47
47
|
/** The published package version. Mirrors `package.json`. */
|
|
48
|
-
export const VERSION = '
|
|
48
|
+
export const VERSION = '10.0.0';
|
|
49
49
|
export { LbCookieStore } from './lb-cookie-store.js';
|
|
50
50
|
export { CrowdyClient, createCrowdyClient, } from './crowdy-client.js';
|
|
51
51
|
export { BrowserLocalStorageTokenStore, SessionStore, } from './session.js';
|
|
@@ -93,14 +93,12 @@ export { UdpAPI } from './domains/udp.js';
|
|
|
93
93
|
export { GameModelAPI } from './domains/gameModel.js';
|
|
94
94
|
export { ComputeAPI, COMPUTE_SDK_VERSION, COMPUTE_ABI_VERSION, } from './domains/compute.js';
|
|
95
95
|
export { PlayerComputeAPI } from './domains/playerCompute.js';
|
|
96
|
+
export { PlayerCodeProjectsAPI } from './domains/playerCodeProjects.js';
|
|
96
97
|
export { PlayerWalletAPI } from './domains/playerWallet.js';
|
|
97
98
|
export { MarketplaceAPI } from './domains/marketplace.js';
|
|
98
99
|
export { PlayerModelAPI } from './domains/playerModel.js';
|
|
99
100
|
export { PlayerCodeBroker, } from './player-runtime/player-code-broker.js';
|
|
100
101
|
export { GLUE_HOST_FUNCTIONS, parseFuelBudget, runWithWatchdog, GlueRuntime, startGlueWorker, } from './player-runtime/player-glue-worker.js';
|
|
101
102
|
export { createGlueSab, wrapGlueSab, armGlueRequest, waitAndReadGlueReply, writeGlueResult, writeGlueReply, glueEncoder, glueDecoder, } from './player-runtime/glue-sab.js';
|
|
102
|
-
export
|
|
103
|
-
export { mountLiveCoding, } from './live-coding/mount.js';
|
|
104
|
-
export { mountLiveCodingIDE, } from './live-coding/ide.js';
|
|
105
|
-
export { PLAYER_CODE_TEMPLATES, templateById, } from './live-coding/templates.js';
|
|
103
|
+
export * from './mod-studio/index.js';
|
|
106
104
|
export { ServerState, AppVisibility, PlayerComputeTarget, GridOwnerKind, GridTenure, CodeAdmissionMode, CodeAdmissionSubjectKind, } from './generated/graphql.js';
|
package/dist/kit/npcs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"npcs.d.ts","sourceRoot":"","sources":["../../src/kit/npcs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,0EAA0E;AAC1E,MAAM,WAAW,cAAc;IAC7B,+EAA+E;IAC/E,Q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,CAAC,OAAO,CAAC,QAC/B,MAAM,KACX,OAAO,CAAC,OAAO,CAAC;QAQnB;;;WAGG;+BAEU,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,YAC3B,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,KAC1C,CAAC,MAAM,IAAI,CAAC;MAsBf;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rust-analysis.d.ts","sourceRoot":"","sources":["../../src/live-coding/rust-analysis.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,cAAc,EACd,KAAK,EACL,QAAQ,EACR,QAAQ,EAET,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAEV,aAAa,EAGd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"rust-analysis.d.ts","sourceRoot":"","sources":["../../src/live-coding/rust-analysis.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,cAAc,EACd,KAAK,EACL,QAAQ,EACR,QAAQ,EAET,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAEV,aAAa,EAGd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAsHhD,qBAAa,YAAY;IAIrB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAJhC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuC;IAE7D,OAAO;WAKM,MAAM,CAAC,OAAO,EAAE;QAC3B,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC;QACvB,aAAa,EAAE,aAAa,CAAC;KAC9B,GAAG,OAAO,CAAC,YAAY,CAAC;IAWzB,WAAW,CAAC,QAAQ,EAAE,eAAe,GAAG,UAAU,EAAE;IAIpD,WAAW,CACT,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,eAAe,EAAE,GACpC,cAAc,EAAE;IAoCnB,KAAK,CACH,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,eAAe,EAAE,GACpC,KAAK,GAAG,IAAI;IAwCf,eAAe,CAAC,QAAQ,EAAE,eAAe,GAAG,cAAc,EAAE;IAU5D,UAAU,CACR,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,eAAe,EAAE,GACpC,QAAQ,GAAG,IAAI;IAWlB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI7B,OAAO,IAAI,IAAI;IAKf,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,OAAO;CA6ChB"}
|
|
@@ -51,6 +51,44 @@ const RUST_KEYWORDS = [
|
|
|
51
51
|
'where',
|
|
52
52
|
'while',
|
|
53
53
|
];
|
|
54
|
+
const TARGET_SNIPPETS = {
|
|
55
|
+
server: [
|
|
56
|
+
{
|
|
57
|
+
label: 'server lifecycle',
|
|
58
|
+
kind: 15,
|
|
59
|
+
detail: 'SERVER init, tick, and invoke entry points',
|
|
60
|
+
documentation: 'Runs in the platform sandbox as the grid owner. Host effects remain permission checked and grid-clamped.',
|
|
61
|
+
insertText: 'fn on_init() {\n $1\n}\n\nfn on_tick(dt_ms: u32) {\n $2\n}\n\nfn on_invoke(payload: &[u8]) -> Vec<u8> {\n $3\n}\n\ncrowdy_compute_sdk::register_module!(init: on_init, tick: on_tick, invoke: on_invoke);',
|
|
62
|
+
sortText: '0-server-lifecycle',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: 'server invoke export',
|
|
66
|
+
kind: 15,
|
|
67
|
+
detail: 'SERVER export callable from Mod Studio Invoke',
|
|
68
|
+
documentation: 'The caller and owned grid are supplied by the platform runtime; author identity is never authority.',
|
|
69
|
+
insertText: 'fn on_invoke(payload: &[u8]) -> Vec<u8> {\n ${1:payload.to_vec()}\n}',
|
|
70
|
+
sortText: '0-server-invoke',
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
client: [
|
|
74
|
+
{
|
|
75
|
+
label: 'client lifecycle',
|
|
76
|
+
kind: 15,
|
|
77
|
+
detail: 'CLIENT init, tick, and invoke entry points',
|
|
78
|
+
documentation: 'Runs in the browser Rust sandbox. Page capabilities are exposed only through the broker allow-list.',
|
|
79
|
+
insertText: 'fn on_init() {\n $1\n}\n\nfn on_tick(dt_ms: u32) {\n $2\n}\n\nfn on_invoke(payload: &[u8]) -> Vec<u8> {\n $3\n}\n\ncrowdy_compute_sdk::register_module!(init: on_init, tick: on_tick, invoke: on_invoke);',
|
|
80
|
+
sortText: '0-client-lifecycle',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'client presentation tick',
|
|
84
|
+
kind: 15,
|
|
85
|
+
detail: 'CLIENT tick for allow-listed HUD/presentation effects',
|
|
86
|
+
documentation: 'Presentation calls cross PlayerCodeBroker; the language worker and guest module never receive page credentials.',
|
|
87
|
+
insertText: 'fn on_tick(dt_ms: u32) {\n // Call an allow-listed presentation host function here.\n $1\n}',
|
|
88
|
+
sortText: '0-client-presentation',
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
};
|
|
54
92
|
let parserInitialization = null;
|
|
55
93
|
export class RustAnalysis {
|
|
56
94
|
constructor(parser, platformIndex) {
|
|
@@ -92,6 +130,11 @@ export class RustAnalysis {
|
|
|
92
130
|
sortText: `0-${symbol.name}`,
|
|
93
131
|
});
|
|
94
132
|
}
|
|
133
|
+
const target = targetForDocument(document);
|
|
134
|
+
if (target) {
|
|
135
|
+
for (const snippet of TARGET_SNIPPETS[target])
|
|
136
|
+
add(snippet);
|
|
137
|
+
}
|
|
95
138
|
for (const symbol of this.platformIndex.symbols) {
|
|
96
139
|
add(platformCompletion(symbol, this.platformIndex));
|
|
97
140
|
}
|
|
@@ -106,10 +149,12 @@ export class RustAnalysis {
|
|
|
106
149
|
return null;
|
|
107
150
|
const local = this.workspaceSymbols(workspace).find((symbol) => symbol.name === word);
|
|
108
151
|
if (local) {
|
|
152
|
+
const targetNote = targetLifecycleNote(document, word);
|
|
109
153
|
return {
|
|
110
154
|
contents: {
|
|
111
155
|
kind: 'markdown',
|
|
112
|
-
value: `\`\`\`rust\n${local.detail}\n\`\`\`\n\nDefined in \`${local.uri}
|
|
156
|
+
value: `\`\`\`rust\n${local.detail}\n\`\`\`\n\nDefined in \`${local.uri}\`.` +
|
|
157
|
+
(targetNote ? `\n\n${targetNote}` : ''),
|
|
113
158
|
},
|
|
114
159
|
range: wordRange(document.text, position),
|
|
115
160
|
};
|
|
@@ -210,6 +255,24 @@ export class RustAnalysis {
|
|
|
210
255
|
}
|
|
211
256
|
}
|
|
212
257
|
}
|
|
258
|
+
function targetForDocument(document) {
|
|
259
|
+
const first = document.path.split('/', 1)[0]?.toLowerCase();
|
|
260
|
+
return first === 'server' || first === 'client' ? first : null;
|
|
261
|
+
}
|
|
262
|
+
function targetLifecycleNote(document, word) {
|
|
263
|
+
const target = targetForDocument(document);
|
|
264
|
+
if (!target || !['on_init', 'on_tick', 'on_invoke'].includes(word)) {
|
|
265
|
+
return null;
|
|
266
|
+
}
|
|
267
|
+
if (target === 'server') {
|
|
268
|
+
return word === 'on_invoke'
|
|
269
|
+
? 'SERVER invoke exports execute as the current grid owner; host effects remain permission checked and grid-confined.'
|
|
270
|
+
: 'SERVER lifecycle code executes in the platform sandbox and is activated only after an authoritative compile succeeds.';
|
|
271
|
+
}
|
|
272
|
+
return word === 'on_tick'
|
|
273
|
+
? 'CLIENT ticks execute inside the browser guest sandbox; all page effects cross the PlayerCodeBroker allow-list.'
|
|
274
|
+
: 'CLIENT lifecycle code is loaded from the exact hash-bound artifact produced for this project version.';
|
|
275
|
+
}
|
|
213
276
|
function visit(node, callback) {
|
|
214
277
|
callback(node);
|
|
215
278
|
for (const child of node.namedChildren)
|
|
@@ -44,6 +44,7 @@ export declare class WorkerLanguageClient {
|
|
|
44
44
|
private readonly writer;
|
|
45
45
|
private readonly connection;
|
|
46
46
|
private readonly transportErrorHandlers;
|
|
47
|
+
private readonly persistentErrorHandlers;
|
|
47
48
|
private readonly readerErrorDisposable;
|
|
48
49
|
private disposed;
|
|
49
50
|
private terminateTimer;
|
|
@@ -52,6 +53,8 @@ export declare class WorkerLanguageClient {
|
|
|
52
53
|
request(method: string, params?: unknown): Promise<unknown>;
|
|
53
54
|
notify(method: string, params?: unknown): Promise<void>;
|
|
54
55
|
onNotification(method: string, callback: (params: unknown) => void): Disposable;
|
|
56
|
+
/** Observe worker/transport failures for editor fallback and telemetry. */
|
|
57
|
+
onError(callback: (error: Error) => void): Disposable;
|
|
55
58
|
shutdown(): void;
|
|
56
59
|
dispose(): void;
|
|
57
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-transport.d.ts","sourceRoot":"","sources":["../../src/live-coding/worker-transport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EAErB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAC;AASxB,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B,MAAM,WAAW,kBAAkB;IACjC,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACpC,gBAAgB,CACd,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,cAAc,EAC1C,QAAQ,EAAE,aAAa,GACtB,IAAI,CAAC;IACR,mBAAmB,CACjB,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,cAAc,EAC1C,QAAQ,EAAE,aAAa,GACtB,IAAI,CAAC;IACR,SAAS,IAAI,IAAI,CAAC;CACnB;AAED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O,CAAC,QAAQ,CAAC,sBAAsB,CAAqC;IAC5E,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAqC;IAC7E,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAa;IACnD,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,cAAc,CAA8C;gBAGjD,MAAM,EAAE,kBAAkB,EAC1B,OAAO,GAAE,2BAAgC;IAYtD,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAMnD,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAsD3D,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAKvD,cAAc,CACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,GAClC,UAAU;IAIb,2EAA2E;IAC3E,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,UAAU;IAQrD,QAAQ,IAAI,IAAI;IAehB,OAAO,IAAI,IAAI;CAahB;AAED,wBAAgB,+BAA+B,IAAI,MAAM,CAKxD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAE1E"}
|
|
@@ -86,6 +86,7 @@ export class WorkerLanguageClient {
|
|
|
86
86
|
this.worker = worker;
|
|
87
87
|
this.options = options;
|
|
88
88
|
this.transportErrorHandlers = new Set();
|
|
89
|
+
this.persistentErrorHandlers = new Set();
|
|
89
90
|
this.disposed = false;
|
|
90
91
|
this.terminateTimer = null;
|
|
91
92
|
this.reader = new WorkerMessageReader(worker);
|
|
@@ -93,6 +94,8 @@ export class WorkerLanguageClient {
|
|
|
93
94
|
this.readerErrorDisposable = this.reader.onError((error) => {
|
|
94
95
|
for (const handler of this.transportErrorHandlers)
|
|
95
96
|
handler(error);
|
|
97
|
+
for (const handler of this.persistentErrorHandlers)
|
|
98
|
+
handler(error);
|
|
96
99
|
});
|
|
97
100
|
this.connection = createProtocolConnection(this.reader, this.writer);
|
|
98
101
|
this.connection.listen();
|
|
@@ -162,6 +165,15 @@ export class WorkerLanguageClient {
|
|
|
162
165
|
onNotification(method, callback) {
|
|
163
166
|
return this.connection.onNotification(method, callback);
|
|
164
167
|
}
|
|
168
|
+
/** Observe worker/transport failures for editor fallback and telemetry. */
|
|
169
|
+
onError(callback) {
|
|
170
|
+
if (this.disposed)
|
|
171
|
+
return { dispose() { } };
|
|
172
|
+
this.persistentErrorHandlers.add(callback);
|
|
173
|
+
return {
|
|
174
|
+
dispose: () => this.persistentErrorHandlers.delete(callback),
|
|
175
|
+
};
|
|
176
|
+
}
|
|
165
177
|
shutdown() {
|
|
166
178
|
if (this.disposed || this.terminateTimer)
|
|
167
179
|
return;
|
|
@@ -186,6 +198,7 @@ export class WorkerLanguageClient {
|
|
|
186
198
|
clearTimeout(this.terminateTimer);
|
|
187
199
|
this.terminateTimer = null;
|
|
188
200
|
this.transportErrorHandlers.clear();
|
|
201
|
+
this.persistentErrorHandlers.clear();
|
|
189
202
|
this.readerErrorDisposable.dispose();
|
|
190
203
|
this.connection.dispose();
|
|
191
204
|
this.reader.dispose();
|