@dreamboard-games/cli 0.1.30-alpha.29 → 0.1.30-alpha.30
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 -1
- package/dist/agent-verifier/agent-workspace-verifier.mjs +360 -17
- package/dist/agent-verifier/agent-workspace-verifier.mjs.map +1 -1
- package/dist/agent-verifier/{chunk-IWB4L2HV.mjs → chunk-FNSHNMDY.mjs} +51 -5
- package/dist/agent-verifier/chunk-FNSHNMDY.mjs.map +1 -0
- package/dist/agent-verifier/{chunk-RDYXWXXC.mjs → chunk-LMW66VBH.mjs} +2 -11
- package/dist/agent-verifier/{chunk-RDYXWXXC.mjs.map → chunk-LMW66VBH.mjs.map} +1 -1
- package/dist/agent-verifier/{chunk-TIDX3YLW.mjs → chunk-M6YNQZCC.mjs} +2 -2
- package/dist/agent-verifier/{chunk-Z7UBAREF.mjs → chunk-QMOBTQ5G.mjs} +7 -9
- package/dist/agent-verifier/chunk-QMOBTQ5G.mjs.map +1 -0
- package/dist/agent-verifier/{chunk-F2DIOJJZ.mjs → chunk-XCQQIPCO.mjs} +5 -46
- package/dist/agent-verifier/chunk-XCQQIPCO.mjs.map +1 -0
- package/dist/agent-verifier/{global-config-IXZLY4BS.mjs → global-config-SWWR2LP4.mjs} +3 -4
- package/dist/agent-verifier/{materialize-workspace-XYYCQQGB.mjs → materialize-workspace-K4WYFG5E.mjs} +5 -5
- package/dist/agent-verifier/{reducer-native-test-harness-BY5SZ7XE.mjs → reducer-native-test-harness-UFMSNNDY.mjs} +49 -576
- package/dist/agent-verifier/reducer-native-test-harness-UFMSNNDY.mjs.map +1 -0
- package/dist/agent-verifier/{static-scaffold-M7QPX76Z.mjs → static-scaffold-MHVM63HU.mjs} +4 -4
- package/dist/authoring-compatibility-internal.js +1 -1
- package/dist/{chunk-QIVDPQME.js → chunk-I4SZ7FA4.js} +9 -64
- package/dist/{chunk-QIVDPQME.js.map → chunk-I4SZ7FA4.js.map} +1 -1
- package/dist/{chunk-NFCRMXEV.js → chunk-RTNKVNQA.js} +52 -624
- package/dist/chunk-RTNKVNQA.js.map +1 -0
- package/dist/index.js +318 -369
- package/dist/index.js.map +1 -1
- package/dist/internal.js +23 -3
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/release/authoring-release-set.json +2 -2
- package/skills/dreamboard/SKILL.md +1 -1
- package/skills/dreamboard/references/cli.md +2 -3
- package/skills/dreamboard/references/quickstart.md +1 -1
- package/skills/dreamboard/references/testing.md +0 -7
- package/dist/agent-verifier/chunk-B7M2TJSP.mjs +0 -363
- package/dist/agent-verifier/chunk-B7M2TJSP.mjs.map +0 -1
- package/dist/agent-verifier/chunk-F2DIOJJZ.mjs.map +0 -1
- package/dist/agent-verifier/chunk-IWB4L2HV.mjs.map +0 -1
- package/dist/agent-verifier/chunk-UXGTT25Q.mjs +0 -59
- package/dist/agent-verifier/chunk-UXGTT25Q.mjs.map +0 -1
- package/dist/agent-verifier/chunk-Z7UBAREF.mjs.map +0 -1
- package/dist/agent-verifier/reducer-native-test-harness-BY5SZ7XE.mjs.map +0 -1
- package/dist/chunk-NFCRMXEV.js.map +0 -1
- /package/dist/agent-verifier/{chunk-TIDX3YLW.mjs.map → chunk-M6YNQZCC.mjs.map} +0 -0
- /package/dist/agent-verifier/{global-config-IXZLY4BS.mjs.map → global-config-SWWR2LP4.mjs.map} +0 -0
- /package/dist/agent-verifier/{materialize-workspace-XYYCQQGB.mjs.map → materialize-workspace-K4WYFG5E.mjs.map} +0 -0
- /package/dist/agent-verifier/{static-scaffold-M7QPX76Z.mjs.map → static-scaffold-MHVM63HU.mjs.map} +0 -0
|
@@ -925,11 +925,6 @@ var getSessionSnapshot = (options) => (options.client ?? client).get({
|
|
|
925
925
|
url: "/api/sessions/{sessionId}/snapshot",
|
|
926
926
|
...options
|
|
927
927
|
});
|
|
928
|
-
var startGame = (options) => (options.client ?? client).post({
|
|
929
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
930
|
-
url: "/api/sessions/{sessionId}/start",
|
|
931
|
-
...options
|
|
932
|
-
});
|
|
933
928
|
var createGameplayCapability = (options) => (options.client ?? client).post({
|
|
934
929
|
security: [{ scheme: "bearer", type: "http" }],
|
|
935
930
|
url: "/api/sessions/{sessionId}/players/{playerId}/gameplay-capability",
|
|
@@ -18977,9 +18972,6 @@ var LOCAL_MAINTAINER_SDK_PACKAGE_NAMES = [
|
|
|
18977
18972
|
function getProjectAuthoringState(projectConfig) {
|
|
18978
18973
|
return projectConfig.authoring ?? {};
|
|
18979
18974
|
}
|
|
18980
|
-
function getProjectPendingAuthoringSync(projectConfig) {
|
|
18981
|
-
return getProjectAuthoringState(projectConfig).pendingSync;
|
|
18982
|
-
}
|
|
18983
18975
|
function getProjectCompileState(projectConfig) {
|
|
18984
18976
|
return projectConfig.compile ?? {};
|
|
18985
18977
|
}
|
|
@@ -19202,7 +19194,7 @@ var AUTHORING_RELEASE_SET = {
|
|
|
19202
19194
|
"packages": {
|
|
19203
19195
|
"cli": {
|
|
19204
19196
|
"name": "@dreamboard-games/cli",
|
|
19205
|
-
"version": "0.1.30-alpha.
|
|
19197
|
+
"version": "0.1.30-alpha.30"
|
|
19206
19198
|
},
|
|
19207
19199
|
"sdk": {
|
|
19208
19200
|
"name": "@dreamboard-games/sdk",
|
|
@@ -19232,7 +19224,7 @@ var AUTHORING_RELEASE_SET = {
|
|
|
19232
19224
|
"portable": true
|
|
19233
19225
|
},
|
|
19234
19226
|
"packageManager": "pnpm@10.4.1",
|
|
19235
|
-
"releaseSetId": "sha256:
|
|
19227
|
+
"releaseSetId": "sha256:3bd4ab3361ecffc08feeb8557d6f9cec98997cc1b838984ec56bd37908539d01"
|
|
19236
19228
|
};
|
|
19237
19229
|
|
|
19238
19230
|
// src/templates/testing-types-content.ts
|
|
@@ -19265,7 +19257,6 @@ import {
|
|
|
19265
19257
|
import type {
|
|
19266
19258
|
BaseDefinition,
|
|
19267
19259
|
ScenarioDefinition,
|
|
19268
|
-
TestRunner,
|
|
19269
19260
|
} from "./generated/testing-contract";
|
|
19270
19261
|
|
|
19271
19262
|
export * from "./generated/testing-contract";
|
|
@@ -19288,11 +19279,10 @@ export function defineBase<const Definition extends BaseDefinition>(
|
|
|
19288
19279
|
* \`phase\` / \`stage\` to the manifest-derived literal types.
|
|
19289
19280
|
*/
|
|
19290
19281
|
export function defineScenario<
|
|
19291
|
-
const Runners extends readonly TestRunner[] = readonly ["reducer"],
|
|
19292
19282
|
const Phase extends PhaseName | undefined = undefined,
|
|
19293
19283
|
>(
|
|
19294
|
-
definition: ScenarioDefinition<
|
|
19295
|
-
): ScenarioDefinition<
|
|
19284
|
+
definition: ScenarioDefinition<Phase>,
|
|
19285
|
+
): ScenarioDefinition<Phase> {
|
|
19296
19286
|
return definition;
|
|
19297
19287
|
}
|
|
19298
19288
|
|
|
@@ -19342,10 +19332,7 @@ import {
|
|
|
19342
19332
|
type PhaseName,
|
|
19343
19333
|
type StageName as WorkspaceStageName,
|
|
19344
19334
|
} from "../../shared/generated/ui-contract";
|
|
19345
|
-
import type {
|
|
19346
|
-
ExpectFn as SharedExpectFn,
|
|
19347
|
-
TestRunner as SharedTestRunner,
|
|
19348
|
-
} from "@dreamboard-games/sdk/testing";
|
|
19335
|
+
import type { ExpectFn as SharedExpectFn } from "@dreamboard-games/sdk/testing";
|
|
19349
19336
|
import type { InteractionDescriptor } from "@dreamboard-games/sdk/runtime";
|
|
19350
19337
|
import { BASE_STATES } from "./base-states.generated";
|
|
19351
19338
|
|
|
@@ -19378,14 +19365,12 @@ export type InteractionExplanation = {
|
|
|
19378
19365
|
eligibleCount: number | "lazy";
|
|
19379
19366
|
}>;
|
|
19380
19367
|
};
|
|
19381
|
-
export type TestRunner = SharedTestRunner;
|
|
19382
19368
|
export type ExpectFn = SharedExpectFn;
|
|
19383
19369
|
export type KnownRejectionCode = ${renderLiteralUnion(rejectionCodes)};
|
|
19384
19370
|
export type RejectionCode = [KnownRejectionCode] extends [never]
|
|
19385
19371
|
? string
|
|
19386
19372
|
: KnownRejectionCode;
|
|
19387
19373
|
|
|
19388
|
-
type DefaultRunners = readonly ["reducer"];
|
|
19389
19374
|
type PhaseTaggedView<Phase extends PhaseName> = Extract<
|
|
19390
19375
|
GameView,
|
|
19391
19376
|
{ phase: Phase } | { currentPhase: Phase } | { state: Phase }
|
|
@@ -19407,41 +19392,10 @@ type InteractionParamsForKey<Key extends InteractionKey> =
|
|
|
19407
19392
|
type InteractionParamsOfId<Id extends InteractionId> =
|
|
19408
19393
|
InteractionParamsForKey<InteractionKeyForId<Id>>;
|
|
19409
19394
|
|
|
19410
|
-
export interface BrowserRunnerSnapshot {
|
|
19411
|
-
sessionId: string | null;
|
|
19412
|
-
shortCode: string | null;
|
|
19413
|
-
version: number;
|
|
19414
|
-
currentPhase: string | null;
|
|
19415
|
-
controllingPlayerId: string;
|
|
19416
|
-
controllablePlayerIds: string[];
|
|
19417
|
-
view: unknown;
|
|
19418
|
-
availableInteractions?: string[];
|
|
19419
|
-
}
|
|
19420
|
-
|
|
19421
|
-
export interface BrowserRunnerBridge {
|
|
19422
|
-
snapshot(): Promise<BrowserRunnerSnapshot>;
|
|
19423
|
-
submitInteraction(
|
|
19424
|
-
playerId: PlayerId,
|
|
19425
|
-
interactionId: string,
|
|
19426
|
-
params: unknown,
|
|
19427
|
-
): Promise<void>;
|
|
19428
|
-
}
|
|
19429
|
-
|
|
19430
|
-
export interface BrowserRunnerDriver {
|
|
19431
|
-
onReady?(bridge: BrowserRunnerBridge): Promise<void> | void;
|
|
19432
|
-
interaction?(
|
|
19433
|
-
bridge: BrowserRunnerBridge,
|
|
19434
|
-
input: { playerId: PlayerId; interactionId: string; params: unknown },
|
|
19435
|
-
): Promise<boolean | void> | boolean | void;
|
|
19436
|
-
}
|
|
19437
|
-
|
|
19438
19395
|
export interface ScenarioGameApi {
|
|
19439
19396
|
start(): Promise<void>;
|
|
19440
19397
|
/**
|
|
19441
19398
|
* Patch the reducer snapshot for deterministic setup-heavy scenarios.
|
|
19442
|
-
* This is limited to reducer snapshot materialization and is rejected by
|
|
19443
|
-
* live replay/browser runners so authored gameplay verification still
|
|
19444
|
-
* submits real interactions.
|
|
19445
19399
|
*/
|
|
19446
19400
|
patchState(mutator: (state: Record<string, unknown>) => void): Promise<void>;
|
|
19447
19401
|
/**
|
|
@@ -19493,7 +19447,6 @@ export type ScenarioContext<
|
|
|
19493
19447
|
};
|
|
19494
19448
|
|
|
19495
19449
|
export type ScenarioThenContext<
|
|
19496
|
-
_Runners extends readonly TestRunner[] = DefaultRunners,
|
|
19497
19450
|
Phase extends PhaseName | undefined = undefined,
|
|
19498
19451
|
> = ScenarioContext<Phase>;
|
|
19499
19452
|
|
|
@@ -19507,17 +19460,15 @@ export interface BaseDefinition {
|
|
|
19507
19460
|
}
|
|
19508
19461
|
|
|
19509
19462
|
export interface ScenarioDefinition<
|
|
19510
|
-
Runners extends readonly TestRunner[] = DefaultRunners,
|
|
19511
19463
|
Phase extends PhaseName | undefined = undefined,
|
|
19512
19464
|
> {
|
|
19513
19465
|
id: string;
|
|
19514
19466
|
description?: string;
|
|
19515
19467
|
from: BaseId | string;
|
|
19516
|
-
runners?: Runners;
|
|
19517
19468
|
phase?: Phase;
|
|
19518
19469
|
stage?: Phase extends PhaseName ? WorkspaceStageName<Phase> : never;
|
|
19519
19470
|
when: (ctx: ScenarioContext<Phase>) => void | Promise<void>;
|
|
19520
|
-
then: (ctx: ScenarioThenContext<
|
|
19471
|
+
then: (ctx: ScenarioThenContext<Phase>) => void | Promise<void>;
|
|
19521
19472
|
}
|
|
19522
19473
|
|
|
19523
19474
|
export type {
|
|
@@ -19588,7 +19539,6 @@ export default defineScenario({
|
|
|
19588
19539
|
description:
|
|
19589
19540
|
"Sanity check that the scaffolded workspace boots into its initial phase.",
|
|
19590
19541
|
from: "initial-turn",
|
|
19591
|
-
runners: ["reducer", "remote", "browser"],
|
|
19592
19542
|
when: async () => undefined,
|
|
19593
19543
|
then: ({ expect, players, state }) => {
|
|
19594
19544
|
const playerIds = players();
|
|
@@ -19827,7 +19777,6 @@ export type PhaseName = string;
|
|
|
19827
19777
|
export type PlayerId = string;
|
|
19828
19778
|
export type RejectionCode = string;
|
|
19829
19779
|
export type StateName = string;
|
|
19830
|
-
export type TestRunner = "reducer" | "remote" | "browser";
|
|
19831
19780
|
export type ViewByPhase = Record<string, GameView>;
|
|
19832
19781
|
export type WorkspaceStageName<_Phase extends string = string> = string;
|
|
19833
19782
|
export type Expectation = { [matcher: string]: (...args: unknown[]) => unknown; not: Expectation };
|
|
@@ -19838,9 +19787,9 @@ export interface ScenarioGameApi { start(): Promise<void>; submit<Id extends Int
|
|
|
19838
19787
|
export interface BaseContext { game: ScenarioGameApi; players(): readonly PlayerId[]; seat(index: number): PlayerId; }
|
|
19839
19788
|
export interface SharedScenarioContext { game: ScenarioGameApi; players(): readonly PlayerId[]; seat(index: number): PlayerId; state(): StateName; view(playerId: PlayerId): GameView; interactions(playerId: PlayerId): readonly InteractionDescriptorFor[]; explain(playerId: PlayerId, interactionId: InteractionId): InteractionExplanation; expect: ExpectFn; }
|
|
19840
19789
|
export type ScenarioContext<Phase extends PhaseName | undefined = undefined> = Omit<SharedScenarioContext, "state" | "view"> & { state(): Phase extends PhaseName ? Phase : StateName; view(playerId: PlayerId): Phase extends PhaseName ? ViewByPhase[Phase] : GameView; };
|
|
19841
|
-
export type ScenarioThenContext<
|
|
19790
|
+
export type ScenarioThenContext<Phase extends PhaseName | undefined = undefined> = ScenarioContext<Phase>;
|
|
19842
19791
|
export interface BaseDefinition { id: string; seed?: number; players?: number; setupProfileId?: string; extends?: BaseId | string; setup: (ctx: BaseContext) => void | Promise<void>; }
|
|
19843
|
-
export interface ScenarioDefinition<
|
|
19792
|
+
export interface ScenarioDefinition<Phase extends PhaseName | undefined = undefined> { id: string; description?: string; from: BaseId | string; phase?: Phase; stage?: Phase extends PhaseName ? WorkspaceStageName<Phase> : never; when: (ctx: ScenarioContext<Phase>) => void | Promise<void>; then: (ctx: ScenarioThenContext<Phase>) => void | Promise<void>; }
|
|
19844
19793
|
`,
|
|
19845
19794
|
mode
|
|
19846
19795
|
);
|
|
@@ -20574,7 +20523,6 @@ export {
|
|
|
20574
20523
|
getJob,
|
|
20575
20524
|
createProjectSessionFromReducerSnapshot,
|
|
20576
20525
|
getSessionSnapshot,
|
|
20577
|
-
startGame,
|
|
20578
20526
|
createGameplayCapability,
|
|
20579
20527
|
external_exports,
|
|
20580
20528
|
zProblemDetails,
|
|
@@ -20598,9 +20546,6 @@ export {
|
|
|
20598
20546
|
applyWorkspaceCodegen,
|
|
20599
20547
|
installFrozenWorkspaceDependencies,
|
|
20600
20548
|
reconcileWorkspaceDependencies,
|
|
20601
|
-
getProjectAuthoringState,
|
|
20602
|
-
getProjectPendingAuthoringSync,
|
|
20603
|
-
getProjectCompileState,
|
|
20604
20549
|
getProjectLocalMaintainerRegistry,
|
|
20605
20550
|
setLatestCompileAttempt,
|
|
20606
20551
|
updateProjectLocalMaintainerRegistry,
|
|
@@ -20610,4 +20555,4 @@ export {
|
|
|
20610
20555
|
findProjectRoot,
|
|
20611
20556
|
materializeWorkspaceProject
|
|
20612
20557
|
};
|
|
20613
|
-
//# sourceMappingURL=chunk-
|
|
20558
|
+
//# sourceMappingURL=chunk-I4SZ7FA4.js.map
|