@crowdedkingdoms/crowdyjs 8.12.0 → 8.13.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/README.md +2 -0
- package/dist/domains/gameModel.d.ts +29 -1
- package/dist/domains/gameModel.d.ts.map +1 -1
- package/dist/domains/gameModel.js +32 -1
- package/dist/generated/graphql.d.ts +104 -0
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +8 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/kit/decks.d.ts +1 -0
- package/dist/kit/decks.d.ts.map +1 -1
- package/dist/kit/engine.d.ts +6 -1
- package/dist/kit/engine.d.ts.map +1 -1
- package/dist/kit/engine.js +6 -1
- package/dist/kit/index.d.ts +1 -1
- package/dist/kit/index.d.ts.map +1 -1
- package/dist/kit/index.js +1 -1
- package/dist/kit/loot.d.ts +1 -0
- package/dist/kit/loot.d.ts.map +1 -1
- package/dist/kit/npcs.d.ts +2 -0
- package/dist/kit/npcs.d.ts.map +1 -1
- package/dist/kit/shared.d.ts +22 -4
- package/dist/kit/shared.d.ts.map +1 -1
- package/dist/kit/shared.js +29 -5
- package/dist/kit/social.d.ts.map +1 -1
- package/dist/kit/worldsim.d.ts +1 -0
- package/dist/kit/worldsim.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,8 @@ npm install @crowdedkingdoms/crowdyjs
|
|
|
12
12
|
|
|
13
13
|
CrowdyJS v4 targets browsers by default and uses native `fetch`, `WebSocket`, `crypto`, `btoa`, and `atob`. Node tools can still use the SDK, but must provide browser-compatible globals when opening realtime connections.
|
|
14
14
|
|
|
15
|
+
> **Server compatibility (v8.13):** v8.13 adds the **flow-correlation surface**: `gameModel.flow({ appId, flowId })` stitches one flow correlation id into a single cross-engine timeline (model events + automation runs + compute module runs, each time-ascending), and the default event/run fragments now select the nullable `flowId` field on `GmEvent` / `GmAutomationRun` / `WasmModuleRun`. Both require the 2026-07-19 `cks-game-api` dev line (the `2026-07-19-compute-fleet-hardening` migration for the columns and the `gameModelFlow` query for the timeline); older servers reject the operations with a GraphQL validation error, and everything else keeps working. `gameModel.flow` requires the app-admin `manage_apps` permission (it is a diagnostics surface). v8.13 also extends the kit invoke helpers' gameplay-verdict mapping: the typed invoke-contract violation `computeInvoke` raises (`BAD_REQUEST` with an "Invoke params violate ..." message, game-api 2026-07-19+) now maps onto `{ success: false, errorMessage }` (`kitInvoke`) / `{ success: false, reason }` (engine invokes) instead of throwing — see the exported `isKitVerdictError` predicate.
|
|
16
|
+
>
|
|
15
17
|
> **Server compatibility:** v8.12's **container query predicates** (`where`/`limit`/`offset` on `gameModel.containers`), **automation compute actions** (`actionKind: 'compute_invoke'` with `computeModuleName`/`computeExport` on `gameModel.upsertAutomation`; `property_changed` events additionally carry `oldValue`/`newValue` to compute modules), **container-change push** (`gameModel.containerChanged` — metadata-only pull-on-push over graphql-transport-ws; on Node ≤ 21 pass `webSocketImpl`), and **invoke-trigger contracts** (`contractJson` on `compute.upsertTrigger`/`moduleTriggers`, validated server-side pre-sandbox) require the 2026-07 `cks-game-api` dev line with the `2026-07-19-automation-compute-action` migration; older servers reject the new arguments/fields (omit them and everything else keeps working). (npm 8.11.0 is a partial cut of this surface — prefer 8.12.0.) v8.12 also adds the `runOptimisticAction` kit helper (client-only: the packaged optimistic apply → referee invoke → confirm/rollback loop with actionId receipts). v5.2+ targets environments on release **v0.1.19 or later** (`cks-game-api >= v0.10.3`, `cks-management-api >= v0.1.70`). The destructive mutations send an `idempotencyKey` argument that older servers don't define. v6.1's `client.gameApps.deleteGrid` additionally requires release **v0.1.33+** (`cks-game-api >= v0.12.3`). The game-model **permission effects** fields (`permissionEffects` on `gameModel.upsertFunction`/`seed`, `permissionEffectsAppliedJson` on events) require a `cks-game-api` build with the `2026-07-17-model-permission-effects` migration (v0.13.11+); older servers reject queries/mutations that include them (omit the fields and everything else keeps working). The **permission-read** surface (the `has_grid_permission`/`grid_at`/`has_chunk_permission` expression builtins the kit's `chunkPermission` locks compile to, and selector `*PermissionWhere` predicates) additionally requires `cks-game-api` **v0.13.12+**. Older `cks-game-api` builds report game-model **invoke policy denials** as `FORBIDDEN` GraphQL errors instead of resolving with `success: false`; as of this version the kit's invoke helpers map that error onto the documented `{ success: false, errorMessage }` result, so kit callers behave identically against both server generations. v8.6's **`client.compute`** (Compute Modules — server-side Rust/WASM logic) requires a `cks-game-api` build with the compute surface (the `compute*` root fields, v0.13.13+ dev line); older servers reject these operations with a GraphQL validation error, and everything else keeps working. v8.9's **realtime + live-ops surfaces** (`kit.abilities`/`movement`/`territory`/`racing`/`liveops`/`moderation`/`telemetry`, the loot engine path, `client.compute.deployTemplate` + `kit.deploy({engines})`, and the type-94..98 event parsers) complete the 30-abstraction catalog; v8.8's **session-genre engine surfaces** (`kit.instances`/`director`/`matchmaking`/`minigames`, the engine paths on matches/decks/leaderboards, `economy.orderBook`, and the type-91/92/93 event parsers) talk to the Wave 2 engine templates; capability detection keeps model-only deployments on today's behavior. v8.7's **engine kit surfaces** (`kit.mobs`, `kit.pets`, `kit.combat.attackRouted`, `kit.worldsim.forecast`, and the `kit/wire` pose/lane registry) talk to compute-module game engines built on the Wave 0/1 `cks-game-api` dev line (`crowdy-game-kit` crates); capability detection makes them degrade gracefully — model-only deployments keep today's behavior.
|
|
16
18
|
|
|
17
19
|
> **v8.10 inventory authority:** generated craft/barter transactions work on
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GraphQLClient } from '../client.js';
|
|
2
|
-
import { type GameModelCreateSessionMutation, type GameModelCreateSessionMutationVariables, type GameModelJoinSessionMutation, type GameModelJoinSessionMutationVariables, type GameModelSetSessionTurnMutation, type GameModelSetSessionTurnMutationVariables, type GameModelCreateContainerMutation, type GameModelCreateContainerMutationVariables, type GameModelDeleteContainerMutation, type GameModelDeleteContainerMutationVariables, type GameModelSetPropertyMutation, type GameModelSetPropertyMutationVariables, type GameModelAddEdgeMutation, type GameModelAddEdgeMutationVariables, type GameModelDeleteEdgeMutation, type GameModelDeleteEdgeMutationVariables, type GameModelInvokeMutation, type GameModelInvokeMutationVariables, type GameModelContainerQuery, type GameModelContainerQueryVariables, GameModelContainerChangedSubscription, GameModelContainerChangedSubscriptionVariables, type GameModelContainersQuery, type GameModelContainersQueryVariables, type GameModelContainerStateQuery, type GameModelContainerStateQueryVariables, type GameModelTraverseQuery, type GameModelTraverseQueryVariables, type GameModelSessionQuery, type GameModelSessionQueryVariables, type GameModelSessionsQuery, type GameModelSessionsQueryVariables, type GameModelEventsQuery, type GameModelEventsQueryVariables, type GameModelSeedMutation, type GameModelSeedMutationVariables, type GameModelUpsertContainerTypeMutation, type GameModelUpsertContainerTypeMutationVariables, type GameModelUpsertPropertyDefMutation, type GameModelUpsertPropertyDefMutationVariables, type GameModelDeletePropertyDefMutation, type GameModelDeletePropertyDefMutationVariables, type GameModelDeleteContainerTypeMutation, type GameModelDeleteContainerTypeMutationVariables, type GameModelUpsertFunctionMutation, type GameModelUpsertFunctionMutationVariables, type GameModelDeleteFunctionMutation, type GameModelDeleteFunctionMutationVariables, type GameModelDefineFeatureMutation, type GameModelDefineFeatureMutationVariables, type GameModelGrantTierFeatureMutation, type GameModelGrantTierFeatureMutationVariables, type GameModelSetPolicyMutation, type GameModelSetPolicyMutationVariables, type GameModelTypeSchemaQuery, type GameModelTypeSchemaQueryVariables, type GameModelContainerTypesQuery, type GameModelContainerTypesQueryVariables, type GameModelPropertyDefsQuery, type GameModelPropertyDefsQueryVariables, type GameModelFunctionQuery, type GameModelFunctionQueryVariables, type GameModelFunctionsQuery, type GameModelFunctionsQueryVariables, type GameModelFeaturesQuery, type GameModelFeaturesQueryVariables, type GameModelTierFeaturesQuery, type GameModelTierFeaturesQueryVariables, type GameModelPolicyQuery, type GameModelPolicyQueryVariables, type GameModelRevokeTierFeatureMutation, type GameModelRevokeTierFeatureMutationVariables, type GameModelEventsConnectionQuery, type GameModelEventsConnectionQueryVariables, type GameModelUpsertAutomationMutation, type GameModelUpsertAutomationMutationVariables, type GameModelDeleteAutomationMutation, type GameModelDeleteAutomationMutationVariables, type GameModelSetAutomationEnabledMutation, type GameModelSetAutomationEnabledMutationVariables, type GameModelUpsertAutomationTriggerMutation, type GameModelUpsertAutomationTriggerMutationVariables, type GameModelDeleteAutomationTriggerMutation, type GameModelDeleteAutomationTriggerMutationVariables, type GameModelSetAutomationPolicyMutation, type GameModelSetAutomationPolicyMutationVariables, type GameModelRunAutomationMutation, type GameModelRunAutomationMutationVariables, type GameModelAutomationsQuery, type GameModelAutomationsQueryVariables, type GameModelAutomationQuery, type GameModelAutomationQueryVariables, type GameModelAutomationTriggersQuery, type GameModelAutomationTriggersQueryVariables, type GameModelAutomationPolicyQuery, type GameModelAutomationPolicyQueryVariables, type GameModelAutomationRunsQuery, type GameModelAutomationRunsQueryVariables, type GameModelAutomationStatsQuery, type GameModelAutomationStatsQueryVariables, type GameModelAppDiagnosticsQuery, type GameModelAppDiagnosticsQueryVariables } from '../generated/graphql.js';
|
|
2
|
+
import { type GameModelCreateSessionMutation, type GameModelCreateSessionMutationVariables, type GameModelJoinSessionMutation, type GameModelJoinSessionMutationVariables, type GameModelSetSessionTurnMutation, type GameModelSetSessionTurnMutationVariables, type GameModelCreateContainerMutation, type GameModelCreateContainerMutationVariables, type GameModelDeleteContainerMutation, type GameModelDeleteContainerMutationVariables, type GameModelSetPropertyMutation, type GameModelSetPropertyMutationVariables, type GameModelAddEdgeMutation, type GameModelAddEdgeMutationVariables, type GameModelDeleteEdgeMutation, type GameModelDeleteEdgeMutationVariables, type GameModelInvokeMutation, type GameModelInvokeMutationVariables, type GameModelContainerQuery, type GameModelContainerQueryVariables, GameModelContainerChangedSubscription, GameModelContainerChangedSubscriptionVariables, type GameModelContainersQuery, type GameModelContainersQueryVariables, type GameModelContainerStateQuery, type GameModelContainerStateQueryVariables, type GameModelTraverseQuery, type GameModelTraverseQueryVariables, type GameModelSessionQuery, type GameModelSessionQueryVariables, type GameModelSessionsQuery, type GameModelSessionsQueryVariables, type GameModelEventsQuery, type GameModelEventsQueryVariables, type GameModelFlowQuery, type GameModelFlowQueryVariables, type GameModelSeedMutation, type GameModelSeedMutationVariables, type GameModelUpsertContainerTypeMutation, type GameModelUpsertContainerTypeMutationVariables, type GameModelUpsertPropertyDefMutation, type GameModelUpsertPropertyDefMutationVariables, type GameModelDeletePropertyDefMutation, type GameModelDeletePropertyDefMutationVariables, type GameModelDeleteContainerTypeMutation, type GameModelDeleteContainerTypeMutationVariables, type GameModelUpsertFunctionMutation, type GameModelUpsertFunctionMutationVariables, type GameModelDeleteFunctionMutation, type GameModelDeleteFunctionMutationVariables, type GameModelDefineFeatureMutation, type GameModelDefineFeatureMutationVariables, type GameModelGrantTierFeatureMutation, type GameModelGrantTierFeatureMutationVariables, type GameModelSetPolicyMutation, type GameModelSetPolicyMutationVariables, type GameModelTypeSchemaQuery, type GameModelTypeSchemaQueryVariables, type GameModelContainerTypesQuery, type GameModelContainerTypesQueryVariables, type GameModelPropertyDefsQuery, type GameModelPropertyDefsQueryVariables, type GameModelFunctionQuery, type GameModelFunctionQueryVariables, type GameModelFunctionsQuery, type GameModelFunctionsQueryVariables, type GameModelFeaturesQuery, type GameModelFeaturesQueryVariables, type GameModelTierFeaturesQuery, type GameModelTierFeaturesQueryVariables, type GameModelPolicyQuery, type GameModelPolicyQueryVariables, type GameModelRevokeTierFeatureMutation, type GameModelRevokeTierFeatureMutationVariables, type GameModelEventsConnectionQuery, type GameModelEventsConnectionQueryVariables, type GameModelUpsertAutomationMutation, type GameModelUpsertAutomationMutationVariables, type GameModelDeleteAutomationMutation, type GameModelDeleteAutomationMutationVariables, type GameModelSetAutomationEnabledMutation, type GameModelSetAutomationEnabledMutationVariables, type GameModelUpsertAutomationTriggerMutation, type GameModelUpsertAutomationTriggerMutationVariables, type GameModelDeleteAutomationTriggerMutation, type GameModelDeleteAutomationTriggerMutationVariables, type GameModelSetAutomationPolicyMutation, type GameModelSetAutomationPolicyMutationVariables, type GameModelRunAutomationMutation, type GameModelRunAutomationMutationVariables, type GameModelAutomationsQuery, type GameModelAutomationsQueryVariables, type GameModelAutomationQuery, type GameModelAutomationQueryVariables, type GameModelAutomationTriggersQuery, type GameModelAutomationTriggersQueryVariables, type GameModelAutomationPolicyQuery, type GameModelAutomationPolicyQueryVariables, type GameModelAutomationRunsQuery, type GameModelAutomationRunsQueryVariables, type GameModelAutomationStatsQuery, type GameModelAutomationStatsQueryVariables, type GameModelAppDiagnosticsQuery, type GameModelAppDiagnosticsQueryVariables } from '../generated/graphql.js';
|
|
3
3
|
/**
|
|
4
4
|
* Abstract **game-model** sub-client on the **game-api** — a schema-driven,
|
|
5
5
|
* server-authoritative layer for modelling game/world logic on top of the
|
|
@@ -370,6 +370,34 @@ export declare class GameModelAPI {
|
|
|
370
370
|
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED` / `SCOPE_MISSING`.
|
|
371
371
|
*/
|
|
372
372
|
eventsConnection(variables: GameModelEventsConnectionQueryVariables): Promise<GameModelEventsConnectionQuery['gameModelEventsConnection']>;
|
|
373
|
+
/**
|
|
374
|
+
* **Diagnostics** — stitch one flow correlation id into a single
|
|
375
|
+
* cross-engine timeline: the model **events** ({@link events} rows), the
|
|
376
|
+
* **automationRuns**, and the compute **moduleRuns** that share the
|
|
377
|
+
* `flowId` minted at the entry edge (a player {@link invoke}, an automation
|
|
378
|
+
* run, or a `computeInvoke`) and propagated across `model_invoke`, the
|
|
379
|
+
* event bus, and `emit_compute_event`. Each array is ordered by time
|
|
380
|
+
* ascending, so the three together read as one causal trace — "what
|
|
381
|
+
* happened to this kill's reward" in one query instead of three
|
|
382
|
+
* hand-joined ones. Take the `flowId` from the `flowId` field on any
|
|
383
|
+
* {@link GmEvent}, {@link GmAutomationRun}, or {@link WasmModuleRun}
|
|
384
|
+
* (selected by the default fragments since SDK 8.13.0).
|
|
385
|
+
*
|
|
386
|
+
* Requires the app-admin **`manage_apps`** permission (a diagnostics
|
|
387
|
+
* surface, like {@link automationRuns}) and a game-api with the
|
|
388
|
+
* `gameModelFlow` query (2026-07-19 or later; older servers reject the
|
|
389
|
+
* operation with a validation error).
|
|
390
|
+
*
|
|
391
|
+
* @param variables - `{ appId, flowId }`: `appId` (decimal string) and the
|
|
392
|
+
* flow correlation id (a UUID string). An unknown `flowId` returns three
|
|
393
|
+
* empty arrays.
|
|
394
|
+
* @returns The {@link GmFlowTimeline}: `flowId`, `events`,
|
|
395
|
+
* `automationRuns`, and `moduleRuns`, each time-ascending.
|
|
396
|
+
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED` / `SCOPE_MISSING`,
|
|
397
|
+
* `FORBIDDEN` (`requiredPermission === 'manage_apps'`), or `BAD_REQUEST`
|
|
398
|
+
* if `flowId` is not a UUID.
|
|
399
|
+
*/
|
|
400
|
+
flow(variables: GameModelFlowQueryVariables): Promise<GameModelFlowQuery['gameModelFlow']>;
|
|
373
401
|
/**
|
|
374
402
|
* **Seed** — bulk-create game-model definitions (container types, property
|
|
375
403
|
* defs, functions) and optionally instances (containers + edges) in one
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gameModel.d.ts","sourceRoot":"","sources":["../../src/domains/gameModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAIlD,OAAO,EAGL,KAAK,8BAA8B,EACnC,KAAK,uCAAuC,EAE5C,KAAK,4BAA4B,EACjC,KAAK,qCAAqC,EAE1C,KAAK,+BAA+B,EACpC,KAAK,wCAAwC,EAE7C,KAAK,gCAAgC,EACrC,KAAK,yCAAyC,EAE9C,KAAK,gCAAgC,EACrC,KAAK,yCAAyC,EAE9C,KAAK,4BAA4B,EACjC,KAAK,qCAAqC,EAE1C,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EAEtC,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EAEzC,KAAK,uBAAuB,EAC5B,KAAK,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+2,7 @@ import { createClient as createWsClient } from 'graphql-ws';
|
|
|
2
2
|
import { print } from 'graphql';
|
|
3
3
|
import {
|
|
4
4
|
// Runtime (player) ops
|
|
5
|
-
GameModelCreateSessionDocument, GameModelJoinSessionDocument, GameModelSetSessionTurnDocument, GameModelCreateContainerDocument, GameModelDeleteContainerDocument, GameModelSetPropertyDocument, GameModelAddEdgeDocument, GameModelDeleteEdgeDocument, GameModelInvokeDocument, GameModelContainerDocument, GameModelContainerChangedDocument, GameModelContainersDocument, GameModelContainerStateDocument, GameModelTraverseDocument, GameModelSessionDocument, GameModelSessionsDocument, GameModelEventsDocument,
|
|
5
|
+
GameModelCreateSessionDocument, GameModelJoinSessionDocument, GameModelSetSessionTurnDocument, GameModelCreateContainerDocument, GameModelDeleteContainerDocument, GameModelSetPropertyDocument, GameModelAddEdgeDocument, GameModelDeleteEdgeDocument, GameModelInvokeDocument, GameModelContainerDocument, GameModelContainerChangedDocument, GameModelContainersDocument, GameModelContainerStateDocument, GameModelTraverseDocument, GameModelSessionDocument, GameModelSessionsDocument, GameModelEventsDocument, GameModelFlowDocument,
|
|
6
6
|
// Studio authoring ops
|
|
7
7
|
GameModelSeedDocument, GameModelUpsertContainerTypeDocument, GameModelUpsertPropertyDefDocument, GameModelDeletePropertyDefDocument, GameModelDeleteContainerTypeDocument, GameModelUpsertFunctionDocument, GameModelDeleteFunctionDocument, GameModelDefineFeatureDocument, GameModelGrantTierFeatureDocument, GameModelSetPolicyDocument, GameModelTypeSchemaDocument, GameModelContainerTypesDocument, GameModelPropertyDefsDocument, GameModelFunctionDocument, GameModelFunctionsDocument, GameModelFeaturesDocument, GameModelTierFeaturesDocument, GameModelPolicyDocument, GameModelRevokeTierFeatureDocument, GameModelEventsConnectionDocument,
|
|
8
8
|
// Automations (autonomous processes / NPCs)
|
|
@@ -368,6 +368,37 @@ export class GameModelAPI {
|
|
|
368
368
|
const data = await this.gql.request(GameModelEventsConnectionDocument, variables);
|
|
369
369
|
return data.gameModelEventsConnection;
|
|
370
370
|
}
|
|
371
|
+
/**
|
|
372
|
+
* **Diagnostics** — stitch one flow correlation id into a single
|
|
373
|
+
* cross-engine timeline: the model **events** ({@link events} rows), the
|
|
374
|
+
* **automationRuns**, and the compute **moduleRuns** that share the
|
|
375
|
+
* `flowId` minted at the entry edge (a player {@link invoke}, an automation
|
|
376
|
+
* run, or a `computeInvoke`) and propagated across `model_invoke`, the
|
|
377
|
+
* event bus, and `emit_compute_event`. Each array is ordered by time
|
|
378
|
+
* ascending, so the three together read as one causal trace — "what
|
|
379
|
+
* happened to this kill's reward" in one query instead of three
|
|
380
|
+
* hand-joined ones. Take the `flowId` from the `flowId` field on any
|
|
381
|
+
* {@link GmEvent}, {@link GmAutomationRun}, or {@link WasmModuleRun}
|
|
382
|
+
* (selected by the default fragments since SDK 8.13.0).
|
|
383
|
+
*
|
|
384
|
+
* Requires the app-admin **`manage_apps`** permission (a diagnostics
|
|
385
|
+
* surface, like {@link automationRuns}) and a game-api with the
|
|
386
|
+
* `gameModelFlow` query (2026-07-19 or later; older servers reject the
|
|
387
|
+
* operation with a validation error).
|
|
388
|
+
*
|
|
389
|
+
* @param variables - `{ appId, flowId }`: `appId` (decimal string) and the
|
|
390
|
+
* flow correlation id (a UUID string). An unknown `flowId` returns three
|
|
391
|
+
* empty arrays.
|
|
392
|
+
* @returns The {@link GmFlowTimeline}: `flowId`, `events`,
|
|
393
|
+
* `automationRuns`, and `moduleRuns`, each time-ascending.
|
|
394
|
+
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED` / `SCOPE_MISSING`,
|
|
395
|
+
* `FORBIDDEN` (`requiredPermission === 'manage_apps'`), or `BAD_REQUEST`
|
|
396
|
+
* if `flowId` is not a UUID.
|
|
397
|
+
*/
|
|
398
|
+
async flow(variables) {
|
|
399
|
+
const data = await this.gql.request(GameModelFlowDocument, variables);
|
|
400
|
+
return data.gameModelFlow;
|
|
401
|
+
}
|
|
371
402
|
// -- Studio authoring -------------------------------------------------------
|
|
372
403
|
/**
|
|
373
404
|
* **Seed** — bulk-create game-model definitions (container types, property
|
|
@@ -2334,6 +2334,8 @@ export type GmAutomationRun = {
|
|
|
2334
2334
|
errorMessage: Maybe<Scalars['String']['output']>;
|
|
2335
2335
|
/** When the run finished. */
|
|
2336
2336
|
finishedAt: Maybe<Scalars['DateTime']['output']>;
|
|
2337
|
+
/** Flow correlation id: shared with gm event-log rows and compute module runs triggered by the same entry call (player invoke / automation run / computeInvoke). */
|
|
2338
|
+
flowId: Maybe<Scalars['String']['output']>;
|
|
2337
2339
|
/** Number of fn: user-function calls across invocations. */
|
|
2338
2340
|
fnCalls: Scalars['Int']['output'];
|
|
2339
2341
|
/** Evaluation gas consumed across invocations. */
|
|
@@ -2522,6 +2524,8 @@ export type GmEvent = {
|
|
|
2522
2524
|
eventId: Scalars['String']['output'];
|
|
2523
2525
|
/** When the invocation executed. */
|
|
2524
2526
|
executedAt: Scalars['DateTime']['output'];
|
|
2527
|
+
/** Flow correlation id: shared with automation runs and compute module runs caused by the same entry call (player invoke / automation run / computeInvoke), so cross-engine flows can be stitched together. */
|
|
2528
|
+
flowId: Maybe<Scalars['String']['output']>;
|
|
2525
2529
|
/** The function that was invoked. */
|
|
2526
2530
|
functionName: Scalars['String']['output'];
|
|
2527
2531
|
/** JSON array of applied mutations. */
|
|
@@ -2547,6 +2551,18 @@ export type GmEventEdge = {
|
|
|
2547
2551
|
/** The node at the end of this edge. */
|
|
2548
2552
|
node: GmEvent;
|
|
2549
2553
|
};
|
|
2554
|
+
/** The stitched cross-engine timeline for one flow correlation id: every model event, automation run, and compute module run that shares the flow_id minted at the entry edge (player invoke / automation run / computeInvoke). Each array is ordered by time ascending, so the three together read as one causal diagnostics trace (e.g. mob kill -> compute event -> reward grant). */
|
|
2555
|
+
export type GmFlowTimeline = {
|
|
2556
|
+
__typename?: 'GmFlowTimeline';
|
|
2557
|
+
/** Automation (autonomous process) runs in the flow, ordered by startedAt ascending. */
|
|
2558
|
+
automationRuns: Array<GmAutomationRun>;
|
|
2559
|
+
/** Model function-invocation events (gm_event_log rows) in the flow, ordered by executedAt ascending. */
|
|
2560
|
+
events: Array<GmEvent>;
|
|
2561
|
+
/** The flow correlation id (UUID) this timeline was built for. */
|
|
2562
|
+
flowId: Scalars['String']['output'];
|
|
2563
|
+
/** Compute module runs in the flow, ordered by startedAt ascending. */
|
|
2564
|
+
moduleRuns: Array<WasmModuleRun>;
|
|
2565
|
+
};
|
|
2550
2566
|
/** A studio-defined function: a named, sandboxed behavior over containers (parameters, declared mutations, optional return, and an authority invoke policy). */
|
|
2551
2567
|
export type GmFunction = {
|
|
2552
2568
|
__typename?: 'GmFunction';
|
|
@@ -4616,6 +4632,8 @@ export type Query = {
|
|
|
4616
4632
|
gameModelEventsConnection: GameModelEventsConnection;
|
|
4617
4633
|
/** List the feature keys defined for an app. Requires app-admin ('manage_apps'). */
|
|
4618
4634
|
gameModelFeatures: Array<GmAppFeature>;
|
|
4635
|
+
/** Diagnostics surface: stitch one flow correlation id into a single cross-engine timeline — the model events (gm event log), automation runs, and compute module runs that share the flowId minted at the entry edge (player gameModelInvoke / automation run / computeInvoke) and propagated across model_invoke, the event bus, and emit_compute_event. Each array is ordered by time ascending; an unknown flowId returns three empty arrays. Answers "what happened to this kill's reward" in one query instead of three hand-joined ones. Requires app-admin ('manage_apps'). */
|
|
4636
|
+
gameModelFlow: GmFlowTimeline;
|
|
4619
4637
|
/** Fetch one studio-defined function by name. Requires app-admin ('manage_apps'). */
|
|
4620
4638
|
gameModelFunction: GmFunction;
|
|
4621
4639
|
/** List studio-defined functions for an app, optionally filtered to those attached to a container type. Requires app-admin ('manage_apps'). */
|
|
@@ -5077,6 +5095,10 @@ export type QueryGameModelEventsConnectionArgs = {
|
|
|
5077
5095
|
export type QueryGameModelFeaturesArgs = {
|
|
5078
5096
|
appId: Scalars['BigInt']['input'];
|
|
5079
5097
|
};
|
|
5098
|
+
export type QueryGameModelFlowArgs = {
|
|
5099
|
+
appId: Scalars['BigInt']['input'];
|
|
5100
|
+
flowId: Scalars['String']['input'];
|
|
5101
|
+
};
|
|
5080
5102
|
export type QueryGameModelFunctionArgs = {
|
|
5081
5103
|
appId: Scalars['BigInt']['input'];
|
|
5082
5104
|
name: Scalars['String']['input'];
|
|
@@ -6915,6 +6937,8 @@ export type WasmModuleRun = {
|
|
|
6915
6937
|
entry: Maybe<Scalars['String']['output']>;
|
|
6916
6938
|
/** Error message when the run failed (trap, fuel, watchdog). */
|
|
6917
6939
|
errorMessage: Maybe<Scalars['String']['output']>;
|
|
6940
|
+
/** Flow correlation id: shared with gm event-log rows and automation runs caused by the same entry call (computeInvoke / automation run / player invoke); ticks mint their own. */
|
|
6941
|
+
flowId: Maybe<Scalars['String']['output']>;
|
|
6918
6942
|
/** Fuel consumed by the run. */
|
|
6919
6943
|
fuelUsed: Scalars['BigInt']['output'];
|
|
6920
6944
|
/** The module that ran. */
|
|
@@ -8612,6 +8636,7 @@ export type ComputeRunFieldsFragment = {
|
|
|
8612
8636
|
__typename?: 'WasmModuleRun';
|
|
8613
8637
|
runId: string;
|
|
8614
8638
|
appId: string;
|
|
8639
|
+
flowId: string | null;
|
|
8615
8640
|
moduleId: string;
|
|
8616
8641
|
moduleName: string;
|
|
8617
8642
|
triggerSource: string;
|
|
@@ -8900,6 +8925,7 @@ export type ComputeModuleRunsQuery = {
|
|
|
8900
8925
|
__typename?: 'WasmModuleRun';
|
|
8901
8926
|
runId: string;
|
|
8902
8927
|
appId: string;
|
|
8928
|
+
flowId: string | null;
|
|
8903
8929
|
moduleId: string;
|
|
8904
8930
|
moduleName: string;
|
|
8905
8931
|
triggerSource: string;
|
|
@@ -9986,6 +10012,7 @@ export type GmAutomationRunFieldsFragment = {
|
|
|
9986
10012
|
__typename?: 'GmAutomationRun';
|
|
9987
10013
|
runId: string;
|
|
9988
10014
|
appId: string;
|
|
10015
|
+
flowId: string | null;
|
|
9989
10016
|
automationId: string;
|
|
9990
10017
|
automationName: string;
|
|
9991
10018
|
triggerSource: string;
|
|
@@ -10149,6 +10176,7 @@ export type GameModelRunAutomationMutation = {
|
|
|
10149
10176
|
__typename?: 'GmAutomationRun';
|
|
10150
10177
|
runId: string;
|
|
10151
10178
|
appId: string;
|
|
10179
|
+
flowId: string | null;
|
|
10152
10180
|
automationId: string;
|
|
10153
10181
|
automationName: string;
|
|
10154
10182
|
triggerSource: string;
|
|
@@ -10300,6 +10328,7 @@ export type GameModelAutomationRunsQuery = {
|
|
|
10300
10328
|
__typename?: 'GmAutomationRun';
|
|
10301
10329
|
runId: string;
|
|
10302
10330
|
appId: string;
|
|
10331
|
+
flowId: string | null;
|
|
10303
10332
|
automationId: string;
|
|
10304
10333
|
automationName: string;
|
|
10305
10334
|
triggerSource: string;
|
|
@@ -10697,6 +10726,7 @@ export type GameModelEventsQuery = {
|
|
|
10697
10726
|
gameModelEvents: Array<{
|
|
10698
10727
|
__typename?: 'GmEvent';
|
|
10699
10728
|
eventId: string;
|
|
10729
|
+
flowId: string | null;
|
|
10700
10730
|
sessionId: string | null;
|
|
10701
10731
|
functionName: string;
|
|
10702
10732
|
selfContainerId: string | null;
|
|
@@ -10732,6 +10762,7 @@ export type GameModelEventsConnectionQuery = {
|
|
|
10732
10762
|
node: {
|
|
10733
10763
|
__typename?: 'GmEvent';
|
|
10734
10764
|
eventId: string;
|
|
10765
|
+
flowId: string | null;
|
|
10735
10766
|
sessionId: string | null;
|
|
10736
10767
|
functionName: string;
|
|
10737
10768
|
selfContainerId: string | null;
|
|
@@ -10756,6 +10787,78 @@ export type GameModelEventsConnectionQuery = {
|
|
|
10756
10787
|
};
|
|
10757
10788
|
};
|
|
10758
10789
|
};
|
|
10790
|
+
export type GameModelFlowQueryVariables = Exact<{
|
|
10791
|
+
appId: Scalars['BigInt']['input'];
|
|
10792
|
+
flowId: Scalars['String']['input'];
|
|
10793
|
+
}>;
|
|
10794
|
+
export type GameModelFlowQuery = {
|
|
10795
|
+
__typename?: 'Query';
|
|
10796
|
+
gameModelFlow: {
|
|
10797
|
+
__typename?: 'GmFlowTimeline';
|
|
10798
|
+
flowId: string;
|
|
10799
|
+
events: Array<{
|
|
10800
|
+
__typename?: 'GmEvent';
|
|
10801
|
+
eventId: string;
|
|
10802
|
+
flowId: string | null;
|
|
10803
|
+
sessionId: string | null;
|
|
10804
|
+
functionName: string;
|
|
10805
|
+
selfContainerId: string | null;
|
|
10806
|
+
callerUserId: string | null;
|
|
10807
|
+
callerKind: string;
|
|
10808
|
+
automationId: string | null;
|
|
10809
|
+
paramsJson: string;
|
|
10810
|
+
mutationsAppliedJson: string;
|
|
10811
|
+
permissionEffectsAppliedJson: string;
|
|
10812
|
+
returnValueJson: string | null;
|
|
10813
|
+
success: boolean;
|
|
10814
|
+
errorMessage: string | null;
|
|
10815
|
+
executedAt: string;
|
|
10816
|
+
}>;
|
|
10817
|
+
automationRuns: Array<{
|
|
10818
|
+
__typename?: 'GmAutomationRun';
|
|
10819
|
+
runId: string;
|
|
10820
|
+
appId: string;
|
|
10821
|
+
flowId: string | null;
|
|
10822
|
+
automationId: string;
|
|
10823
|
+
automationName: string;
|
|
10824
|
+
triggerSource: string;
|
|
10825
|
+
parentRunId: string | null;
|
|
10826
|
+
cascadeDepth: number;
|
|
10827
|
+
startedAt: string;
|
|
10828
|
+
finishedAt: string | null;
|
|
10829
|
+
durationUs: number;
|
|
10830
|
+
targets: number;
|
|
10831
|
+
invocations: number;
|
|
10832
|
+
mutations: number;
|
|
10833
|
+
fnCalls: number;
|
|
10834
|
+
gasUsed: number;
|
|
10835
|
+
success: boolean;
|
|
10836
|
+
errorMessage: string | null;
|
|
10837
|
+
circuitAction: string | null;
|
|
10838
|
+
computeUnits: number;
|
|
10839
|
+
}>;
|
|
10840
|
+
moduleRuns: Array<{
|
|
10841
|
+
__typename?: 'WasmModuleRun';
|
|
10842
|
+
runId: string;
|
|
10843
|
+
appId: string;
|
|
10844
|
+
flowId: string | null;
|
|
10845
|
+
moduleId: string;
|
|
10846
|
+
moduleName: string;
|
|
10847
|
+
triggerSource: string;
|
|
10848
|
+
entry: string | null;
|
|
10849
|
+
startedAt: string;
|
|
10850
|
+
durationUs: number;
|
|
10851
|
+
fuelUsed: string;
|
|
10852
|
+
dbReads: number;
|
|
10853
|
+
dbWrites: number;
|
|
10854
|
+
egressMsgs: number;
|
|
10855
|
+
egressBytes: string;
|
|
10856
|
+
success: boolean;
|
|
10857
|
+
errorMessage: string | null;
|
|
10858
|
+
circuitAction: string | null;
|
|
10859
|
+
}>;
|
|
10860
|
+
};
|
|
10861
|
+
};
|
|
10759
10862
|
export type GmFunctionFieldsFragment = {
|
|
10760
10863
|
__typename?: 'GmFunction';
|
|
10761
10864
|
functionId: string;
|
|
@@ -13580,6 +13683,7 @@ export declare const GameModelSessionDocument: DocumentNode<GameModelSessionQuer
|
|
|
13580
13683
|
export declare const GameModelSessionsDocument: DocumentNode<GameModelSessionsQuery, GameModelSessionsQueryVariables>;
|
|
13581
13684
|
export declare const GameModelEventsDocument: DocumentNode<GameModelEventsQuery, GameModelEventsQueryVariables>;
|
|
13582
13685
|
export declare const GameModelEventsConnectionDocument: DocumentNode<GameModelEventsConnectionQuery, GameModelEventsConnectionQueryVariables>;
|
|
13686
|
+
export declare const GameModelFlowDocument: DocumentNode<GameModelFlowQuery, GameModelFlowQueryVariables>;
|
|
13583
13687
|
export declare const GameModelSeedDocument: DocumentNode<GameModelSeedMutation, GameModelSeedMutationVariables>;
|
|
13584
13688
|
export declare const GameModelUpsertContainerTypeDocument: DocumentNode<GameModelUpsertContainerTypeMutation, GameModelUpsertContainerTypeMutationVariables>;
|
|
13585
13689
|
export declare const GameModelUpsertPropertyDefDocument: DocumentNode<GameModelUpsertPropertyDefMutation, GameModelUpsertPropertyDefMutationVariables>;
|