@crowdedkingdoms/crowdyjs 9.0.0 → 11.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 +60 -38
- package/README.md +86 -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/crowdy-studio/controller.d.ts +188 -0
- package/dist/crowdy-studio/controller.d.ts.map +1 -0
- package/dist/crowdy-studio/controller.js +915 -0
- package/dist/crowdy-studio/diagnostics.d.ts +22 -0
- package/dist/crowdy-studio/diagnostics.d.ts.map +1 -0
- package/dist/crowdy-studio/diagnostics.js +141 -0
- package/dist/crowdy-studio/dom-shell.d.ts +55 -0
- package/dist/crowdy-studio/dom-shell.d.ts.map +1 -0
- package/dist/crowdy-studio/dom-shell.js +527 -0
- package/dist/crowdy-studio/editor.d.ts +17 -0
- package/dist/crowdy-studio/editor.d.ts.map +1 -0
- package/dist/crowdy-studio/editor.js +1 -0
- package/dist/crowdy-studio/index.d.ts +10 -0
- package/dist/crowdy-studio/index.d.ts.map +1 -0
- package/dist/crowdy-studio/index.js +9 -0
- package/dist/crowdy-studio/models.d.ts +149 -0
- package/dist/crowdy-studio/models.d.ts.map +1 -0
- package/dist/crowdy-studio/models.js +62 -0
- package/dist/crowdy-studio/monaco-editor.d.ts +16 -0
- package/dist/crowdy-studio/monaco-editor.d.ts.map +1 -0
- package/dist/crowdy-studio/monaco-editor.js +548 -0
- package/dist/crowdy-studio/mount.d.ts +17 -0
- package/dist/crowdy-studio/mount.d.ts.map +1 -0
- package/dist/crowdy-studio/mount.js +86 -0
- package/dist/crowdy-studio/starter-projects.d.ts +11 -0
- package/dist/crowdy-studio/starter-projects.d.ts.map +1 -0
- package/dist/crowdy-studio/starter-projects.js +102 -0
- package/dist/crowdy-studio/styles.d.ts +2 -0
- package/dist/crowdy-studio/styles.d.ts.map +1 -0
- package/dist/crowdy-studio/styles.js +14 -0
- package/dist/crowdy-studio/textarea-editor.d.ts +8 -0
- package/dist/crowdy-studio/textarea-editor.d.ts.map +1 -0
- package/dist/crowdy-studio/textarea-editor.js +71 -0
- package/dist/domains/crowdyStudio.d.ts +27 -0
- package/dist/domains/crowdyStudio.d.ts.map +1 -0
- package/dist/domains/crowdyStudio.js +301 -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/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
|
@@ -92,6 +92,54 @@ export var CodeAdmissionSubjectKind;
|
|
|
92
92
|
CodeAdmissionSubjectKind["Code"] = "CODE";
|
|
93
93
|
CodeAdmissionSubjectKind["Org"] = "ORG";
|
|
94
94
|
})(CodeAdmissionSubjectKind || (CodeAdmissionSubjectKind = {}));
|
|
95
|
+
/** Crowdy Studio catalog visibility. Player catalog queries return only published entries. */
|
|
96
|
+
export var CrowdyStudioCommonStatus;
|
|
97
|
+
(function (CrowdyStudioCommonStatus) {
|
|
98
|
+
/** Retained for provenance but hidden from new player catalog reads and imports. */
|
|
99
|
+
CrowdyStudioCommonStatus["Archived"] = "ARCHIVED";
|
|
100
|
+
/** Crowdy Studio work in progress; hidden from player common-file queries. */
|
|
101
|
+
CrowdyStudioCommonStatus["Draft"] = "DRAFT";
|
|
102
|
+
/** Available to app-scoped players for reading and copy-by-value import. */
|
|
103
|
+
CrowdyStudioCommonStatus["Published"] = "PUBLISHED";
|
|
104
|
+
})(CrowdyStudioCommonStatus || (CrowdyStudioCommonStatus = {}));
|
|
105
|
+
/** How a project file entered the project. Imported content is copied by value; provenance is informational and does not create a live link. */
|
|
106
|
+
export var CrowdyStudioFileProvenance;
|
|
107
|
+
(function (CrowdyStudioFileProvenance) {
|
|
108
|
+
/** The owner authored or directly saved this project file. */
|
|
109
|
+
CrowdyStudioFileProvenance["Authored"] = "AUTHORED";
|
|
110
|
+
/** The file was copied from a specific immutable version of the app’s Crowdy Studio-curated common catalog. */
|
|
111
|
+
CrowdyStudioFileProvenance["Common"] = "COMMON";
|
|
112
|
+
/** The file was copied from a specific revision of the owner’s private personal library. */
|
|
113
|
+
CrowdyStudioFileProvenance["Library"] = "LIBRARY";
|
|
114
|
+
})(CrowdyStudioFileProvenance || (CrowdyStudioFileProvenance = {}));
|
|
115
|
+
/** The source catalog used for a copy-by-value project file import. */
|
|
116
|
+
export var CrowdyStudioImportSource;
|
|
117
|
+
(function (CrowdyStudioImportSource) {
|
|
118
|
+
/** Import from an immutable published common-file version in the requested app. */
|
|
119
|
+
CrowdyStudioImportSource["Common"] = "COMMON";
|
|
120
|
+
/** Import from a private personal-library file owned by the authenticated caller. */
|
|
121
|
+
CrowdyStudioImportSource["Library"] = "LIBRARY";
|
|
122
|
+
})(CrowdyStudioImportSource || (CrowdyStudioImportSource = {}));
|
|
123
|
+
/** Editor preference describing how the project presents its server and client targets; it never grants deployment or runtime authority. */
|
|
124
|
+
export var CrowdyStudioPairingPreference;
|
|
125
|
+
(function (CrowdyStudioPairingPreference) {
|
|
126
|
+
/** Present only the client-target authoring workflow. */
|
|
127
|
+
CrowdyStudioPairingPreference["ClientOnly"] = "CLIENT_ONLY";
|
|
128
|
+
/** Present server and client sources independently without an implied requirement edge. */
|
|
129
|
+
CrowdyStudioPairingPreference["Independent"] = "INDEPENDENT";
|
|
130
|
+
/** Present server and client sources as two coordinated halves of one Crowdy Studio project. */
|
|
131
|
+
CrowdyStudioPairingPreference["Paired"] = "PAIRED";
|
|
132
|
+
/** Present only the server-target authoring workflow. */
|
|
133
|
+
CrowdyStudioPairingPreference["ServerOnly"] = "SERVER_ONLY";
|
|
134
|
+
})(CrowdyStudioPairingPreference || (CrowdyStudioPairingPreference = {}));
|
|
135
|
+
/** The independently capped source target inside a player-owned Crowdy Studio project. */
|
|
136
|
+
export var CrowdyStudioTarget;
|
|
137
|
+
(function (CrowdyStudioTarget) {
|
|
138
|
+
/** Browser-worker Rust that can run only after the caller separately passes current grid ownership and write_client_code deployment checks. */
|
|
139
|
+
CrowdyStudioTarget["Client"] = "CLIENT";
|
|
140
|
+
/** Server-target Rust that can run only after the caller separately passes current grid ownership and write_server_code deployment checks. */
|
|
141
|
+
CrowdyStudioTarget["Server"] = "SERVER";
|
|
142
|
+
})(CrowdyStudioTarget || (CrowdyStudioTarget = {}));
|
|
95
143
|
/** How a player claim confers grid ownership in this app (D4): SELF_CLAIM (the claim alone assigns ownership), APPROVAL (claims create requests designated approvers accept), INVITE (only against a standing invite), or MARKETPLACE_ONLY (only a marketplace grid purchase; direct claims refused — the purchase edge ships in P4b). */
|
|
96
144
|
export var GridClaimPolicy;
|
|
97
145
|
(function (GridClaimPolicy) {
|
|
@@ -267,6 +315,7 @@ export const ComputeVersionFieldsFragmentDoc = { "kind": "Document", "definition
|
|
|
267
315
|
export const ComputeTriggerFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "ComputeTriggerFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "WasmModuleTrigger" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "triggerId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "moduleId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "triggerType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tickHz" } }, { "kind": "Field", "name": { "kind": "Name", "value": "onEvent" } }, { "kind": "Field", "name": { "kind": "Name", "value": "functionName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "containerTypeName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "propertyKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "eventName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "debounceMs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "exportName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "invokePolicyJson" } }, { "kind": "Field", "name": { "kind": "Name", "value": "contractJson" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }] } }] };
|
|
268
316
|
export const ComputePolicyFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "ComputePolicyFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "WasmModulePolicy" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "enabled" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxModules" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxTickHz" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fuelPerTick" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fuelPerInvoke" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxMemoryMb" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxRunMs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxDbOpsPerTick" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxEgressMsgsPerMin" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxEgressBytesPerMin" } }, { "kind": "Field", "name": { "kind": "Name", "value": "failureThreshold" } }, { "kind": "Field", "name": { "kind": "Name", "value": "cooldownMs" } }] } }] };
|
|
269
317
|
export const ComputeRunFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "ComputeRunFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "WasmModuleRun" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "runId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "flowId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "moduleId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "moduleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "triggerSource" } }, { "kind": "Field", "name": { "kind": "Name", "value": "entry" } }, { "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": "dbReads" } }, { "kind": "Field", "name": { "kind": "Name", "value": "dbWrites" } }, { "kind": "Field", "name": { "kind": "Name", "value": "egressMsgs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "egressBytes" } }, { "kind": "Field", "name": { "kind": "Name", "value": "success" } }, { "kind": "Field", "name": { "kind": "Name", "value": "errorMessage" } }, { "kind": "Field", "name": { "kind": "Name", "value": "circuitAction" } }] } }] };
|
|
318
|
+
export const CrowdyStudioProjectFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "CrowdyStudioProjectFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "CrowdyStudioProject" } }, "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" } }] } }] } }] };
|
|
270
319
|
export const GridOwnershipFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "GridOwnershipFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "GridOwnership" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "gridOwnershipId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerKind" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerRef" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tenure" } }, { "kind": "Field", "name": { "kind": "Name", "value": "acquiredVia" } }, { "kind": "Field", "name": { "kind": "Name", "value": "acquiredAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expiresAt" } }] } }] };
|
|
271
320
|
export const GmAutomationFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "GmAutomationFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "GmAutomation" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "automationId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "enabled" } }, { "kind": "Field", "name": { "kind": "Name", "value": "actionKind" } }, { "kind": "Field", "name": { "kind": "Name", "value": "functionName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "computeModuleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "computeExport" } }, { "kind": "Field", "name": { "kind": "Name", "value": "targetMode" } }, { "kind": "Field", "name": { "kind": "Name", "value": "selfContainerId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "targetTypeName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sessionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "paramsJson" } }, { "kind": "Field", "name": { "kind": "Name", "value": "selectorJson" } }, { "kind": "Field", "name": { "kind": "Name", "value": "runAsUserId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "triggerType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "scheduleKind" } }, { "kind": "Field", "name": { "kind": "Name", "value": "intervalMs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "cronExpr" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxTargets" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxFnDepth" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gasLimit" } }, { "kind": "Field", "name": { "kind": "Name", "value": "runTimeoutMs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxRunsPerMinute" } }, { "kind": "Field", "name": { "kind": "Name", "value": "failureThreshold" } }, { "kind": "Field", "name": { "kind": "Name", "value": "cooldownMs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "circuitState" } }, { "kind": "Field", "name": { "kind": "Name", "value": "consecutiveFailures" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pausedUntil" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastError" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastRunAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "nextRunAt" } }] } }] };
|
|
272
321
|
export const GmAutomationTriggerFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "GmAutomationTriggerFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "GmAutomationTrigger" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "triggerId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "automationId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "onEvent" } }, { "kind": "Field", "name": { "kind": "Name", "value": "functionName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "containerTypeName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "propertyKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "debounceMs" } }] } }] };
|
|
@@ -414,6 +463,14 @@ export const PublishEnvironmentReleaseFromGameApiTagDocument = { "kind": "Docume
|
|
|
414
463
|
export const YankEnvironmentVersionDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "YankEnvironmentVersion" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "version" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "yankEnvironmentVersion" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "version" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "version" } } }] }] } }] };
|
|
415
464
|
export const CpComputePlatformCeilingsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "CpComputePlatformCeilings" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "cpComputePlatformCeilings" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "maxModules" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxTickHz" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fuelPerTick" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fuelPerInvoke" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxMemoryMb" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxRunMs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxDbOpsPerTick" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxEgressMsgsPerMin" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxEgressBytesPerMin" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedByUserId" } }] } }] } }] };
|
|
416
465
|
export const CpSetComputePlatformCeilingsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CpSetComputePlatformCeilings" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "CpSetComputePlatformCeilingsInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "cpSetComputePlatformCeilings" }, "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": "maxModules" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxTickHz" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fuelPerTick" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fuelPerInvoke" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxMemoryMb" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxRunMs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxDbOpsPerTick" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxEgressMsgsPerMin" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxEgressBytesPerMin" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedByUserId" } }] } }] } }] };
|
|
466
|
+
export const CrowdyStudioProjectsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "CrowdyStudioProjects" }, "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": "crowdyStudioProjects" }, "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" } }] } }] } }] };
|
|
467
|
+
export const CrowdyStudioProjectDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "CrowdyStudioProject" }, "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": "crowdyStudioProject" }, "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": "CrowdyStudioProjectFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "CrowdyStudioProjectFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "CrowdyStudioProject" } }, "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" } }] } }] } }] };
|
|
468
|
+
export const CrowdyStudioProjectCreateDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CrowdyStudioProjectCreate" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "CreateCrowdyStudioProjectInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "crowdyStudioProjectCreate" }, "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": "CrowdyStudioProjectFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "CrowdyStudioProjectFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "CrowdyStudioProject" } }, "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" } }] } }] } }] };
|
|
469
|
+
export const CrowdyStudioProjectSaveDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CrowdyStudioProjectSave" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "SaveCrowdyStudioProjectInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "crowdyStudioProjectSave" }, "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": "CrowdyStudioProjectFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "CrowdyStudioProjectFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "CrowdyStudioProject" } }, "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" } }] } }] } }] };
|
|
470
|
+
export const CrowdyStudioLibraryFilesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "CrowdyStudioLibraryFiles" }, "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": "crowdyStudioLibraryFiles" }, "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" } }] } }] } }] };
|
|
471
|
+
export const CrowdyStudioLibrarySaveDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CrowdyStudioLibrarySave" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "SaveCrowdyStudioLibraryFileInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "crowdyStudioLibrarySave" }, "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" } }] } }] } }] };
|
|
472
|
+
export const CrowdyStudioCommonFilesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "CrowdyStudioCommonFiles" }, "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": "CrowdyStudioTarget" } } }, { "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": "crowdyStudioCommonFiles" }, "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" } }] } }] } }] };
|
|
473
|
+
export const CrowdyStudioProjectImportFileDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CrowdyStudioProjectImportFile" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ImportCrowdyStudioProjectFileInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "crowdyStudioProjectImportFile" }, "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": "CrowdyStudioProjectFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "CrowdyStudioProjectFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "CrowdyStudioProject" } }, "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" } }] } }] } }] };
|
|
417
474
|
export const CreateEnvironmentDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CreateEnvironment" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "CreateEnvironmentInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "createEnvironment" }, "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": "environment" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "orgId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "slug" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "billingStatus" } }, { "kind": "Field", "name": { "kind": "Name", "value": "environmentClass" } }, { "kind": "Field", "name": { "kind": "Name", "value": "primaryRegion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "desiredEnvironmentVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "observedEnvironmentVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "changeOrders" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "kind" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "error" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }] } }] } }] } }] };
|
|
418
475
|
export const DestroyEnvironmentDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "DestroyEnvironment" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "DestroyEnvironmentInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "destroyEnvironment" }, "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": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "environmentId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "kind" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "requestedBy" } }, { "kind": "Field", "name": { "kind": "Name", "value": "error" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "finishedAt" } }] } }] } }] };
|
|
419
476
|
export const EnvironmentDatacentersDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "EnvironmentDatacenters" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "environmentDatacenters" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "region" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "city" } }, { "kind": "Field", "name": { "kind": "Name", "value": "continent" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "isAvailable" } }, { "kind": "Field", "name": { "kind": "Name", "value": "selectableInstanceCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "syncedAt" } }] } }] } }] };
|
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 = "11.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 { CrowdyStudioAPI } from './domains/crowdyStudio.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 './crowdy-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,GACh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ACxB,KAAK,EACL,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,4BAA4B,EAG5B,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,WAAW,EACX,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 = '11.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 { CrowdyStudioAPI } from './domains/crowdyStudio.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 './crowdy-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","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AAO,CAAC,YACzB;YAAE,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,CAAA;SAAE;;;;;;;;;MAY9D;IAEF,8DAA8D;IAC9D,QAAQ,CAAC,IAAI;QACX,4DAA4D;qBACzC,MAAM;;;;;;;;;;;;;QAOzB,wBAAwB;0BACA,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;;;;;;;;0BAmDw2lkB,CAAC;;;;;;;;QA/C35lkB;;;;WAIG;0BAEU,OAAO,CAAC,QAAQ,CAAC,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 Crowdy 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,E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Ac,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();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crowdedkingdoms/crowdyjs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Browser-first Crowded Kingdoms SDK with GraphQL, realtime, and local Rust authoring support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"import": "./dist/stores/index.js",
|
|
19
19
|
"types": "./dist/stores/index.d.ts"
|
|
20
20
|
},
|
|
21
|
-
"./
|
|
22
|
-
"import": "./dist/
|
|
23
|
-
"types": "./dist/
|
|
21
|
+
"./crowdy-studio": {
|
|
22
|
+
"import": "./dist/crowdy-studio/index.js",
|
|
23
|
+
"types": "./dist/crowdy-studio/index.d.ts"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"sideEffects": false,
|