@seriousgaming/sdk-tools 1.10.0 → 1.11.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/dist/agent/guidance.md +31 -23
- package/dist/{cli-5V4N4BR4.js → cli-27TQVLVF.js} +1 -1
- package/dist/{cli-FGP6YYM7.js → cli-3VLBFWHN.js} +8 -8
- package/dist/{cli-XR3O2YTV.js → cli-4F24FUW6.js} +5 -5
- package/dist/{cli-CQ4ZR3ZQ.js → cli-5ATO27Z4.js} +5 -5
- package/dist/{cli-MGZYQDCH.js → cli-5TTJWM2R.js} +5 -5
- package/dist/{cli-6CYAOUYT.js → cli-5UKWX3IU.js} +4 -4
- package/dist/{cli-LLJQI2QP.js → cli-6AMK3DYS.js} +1 -1
- package/dist/{cli-WOFYI7HZ.js → cli-6JWDFCUV.js} +6 -6
- package/dist/{cli-A3AJQZEN.js → cli-6P6V2EHY.js} +7 -7
- package/dist/{cli-RSF5R3HC.js → cli-77T4LJQF.js} +10 -7
- package/dist/{cli-LNEZ6KDW.js → cli-ATAJSIXH.js} +4 -4
- package/dist/{cli-4A7RWFNO.js → cli-ATHATKI5.js} +47 -47
- package/dist/{cli-QW7VXL2V.js → cli-B2QAJ5RQ.js} +5 -5
- package/dist/{cli-BB6CU4ZC.js → cli-BINVO5R7.js} +8 -8
- package/dist/{cli-5SHG2M7E.js → cli-BJFYGVJV.js} +4 -4
- package/dist/{cli-J42N4PJG.js → cli-BZOKZ7LP.js} +11 -9
- package/dist/{cli-MUOLHQNL.js → cli-D3S7NJZ3.js} +1 -1
- package/dist/{cli-WLSACMYA.js → cli-DBMEH4Y5.js} +10 -8
- package/dist/{cli-CLO7HKEQ.js → cli-DH35TZ2Q.js} +4 -2
- package/dist/{cli-2ANX6E3A.js → cli-DQE7ITIR.js} +5 -5
- package/dist/{cli-467VRXGP.js → cli-EEO5ZPAZ.js} +1 -1
- package/dist/{cli-B5DWKRZ4.js → cli-ERJNDBDH.js} +1 -1
- package/dist/{cli-IQBY7Z7Q.js → cli-FT3X3D4P.js} +5 -5
- package/dist/{cli-5TKPT3CY.js → cli-FYPW25VD.js} +4 -4
- package/dist/{cli-36GABN2A.js → cli-G3TU6CP6.js} +5 -5
- package/dist/{cli-NAZTYKZT.js → cli-H6PP2MZT.js} +14 -2
- package/dist/{cli-5XE4OMFL.js → cli-HLI5UEKX.js} +8 -8
- package/dist/{cli-YZJBFKRI.js → cli-HMDYG6PS.js} +5 -5
- package/dist/{cli-2AH6D32V.js → cli-K4HSQWXC.js} +1 -1
- package/dist/{cli-EXUPHPDJ.js → cli-L7F4XKCB.js} +7 -7
- package/dist/{cli-O5WYATAI.js → cli-LHMRUJVN.js} +3 -1
- package/dist/{cli-VALLLE6Y.js → cli-LPFSJ625.js} +7 -7
- package/dist/{cli-HN442ZVK.js → cli-MSNSXVGF.js} +5 -5
- package/dist/{cli-OXU6TTEN.js → cli-NKKCDO6K.js} +5 -5
- package/dist/{cli-L54SXUK6.js → cli-OBLEROSC.js} +4 -4
- package/dist/{cli-RFAPPYXK.js → cli-OF36EA62.js} +8 -8
- package/dist/{cli-XB5PI2XT.js → cli-OM32UURE.js} +6 -6
- package/dist/{cli-2AVPNSAX.js → cli-OMTHTWYJ.js} +6 -6
- package/dist/{cli-I3ZAZYWP.js → cli-OVIJRBFI.js} +8 -8
- package/dist/{cli-IPTHJT3J.js → cli-PNS4KWWC.js} +10 -7
- package/dist/{cli-VZVHS5AP.js → cli-Q7QSWNY2.js} +5 -5
- package/dist/{cli-GRSQRFRG.js → cli-QEFYDXMH.js} +8 -1
- package/dist/{cli-TDLIPYKT.js → cli-QPV3TYOM.js} +8 -8
- package/dist/{cli-PYAST3G5.js → cli-R5SNTPND.js} +6 -6
- package/dist/{cli-WG7MAOCS.js → cli-REAM7LSC.js} +5 -5
- package/dist/{cli-URCHZDTS.js → cli-RHL4B4H7.js} +3 -2
- package/dist/{cli-KNXY43YV.js → cli-RKPQLB7J.js} +1 -1
- package/dist/{cli-PBSLPO6G.js → cli-RMD5WSUQ.js} +4 -4
- package/dist/{cli-PTXOKO2Y.js → cli-S3NHXAJM.js} +1 -1
- package/dist/{cli-33MZSPPK.js → cli-SRXDLMXY.js} +6 -6
- package/dist/{cli-M6AZFIMV.js → cli-TEBV2OIW.js} +5 -2
- package/dist/{cli-35GV2F6R.js → cli-TI2FOFPA.js} +4 -4
- package/dist/{cli-JMNPMDXH.js → cli-TLSTSZAC.js} +7 -7
- package/dist/{cli-XEEOJGBL.js → cli-UIYKPSIY.js} +8 -8
- package/dist/{cli-267QJ2DS.js → cli-UVIURDZC.js} +1 -1
- package/dist/{cli-JAVMRERQ.js → cli-VXLHOZSO.js} +5 -5
- package/dist/{cli-SOO6SEIS.js → cli-WJVPSVF2.js} +10 -7
- package/dist/{cli-RUEPTOWG.js → cli-WNBP3LOD.js} +7 -7
- package/dist/{cli-ILHHJR2S.js → cli-WNHMJM3Z.js} +5 -5
- package/dist/{cli-4JNF3O5N.js → cli-WQ7JBZNW.js} +1 -1
- package/dist/{cli-5DWR7RPQ.js → cli-X3TSTTYI.js} +1 -1
- package/dist/{cli-Z3DITVBE.js → cli-X52TXCNF.js} +7 -7
- package/dist/{cli-HNG6PZW2.js → cli-XJ7JESC2.js} +7 -7
- package/dist/{cli-7NUFHMGE.js → cli-XNOAO6DY.js} +1 -1
- package/dist/{cli-HHRP6FP6.js → cli-XOYUTNER.js} +7 -7
- package/dist/{cli-YFLQ7XOO.js → cli-YYXAGJQR.js} +5 -5
- package/dist/{cli-NQSL2CIH.js → cli-ZGCG6C22.js} +6 -6
- package/dist/cli.js +24 -24
- package/dist/client/index.d.ts +1 -1
- package/dist/client/test-session.d.ts +44 -6
- package/dist/client.js +16 -3
- package/dist/docs/api/index.md +3 -1
- package/dist/docs/api/sdk-tools-client.md +38 -6
- package/dist/docs/api/sdk-tools-vite.md +21 -0
- package/dist/docs/changelog.md +39 -0
- package/dist/docs/guides/endpoints.md +1 -1
- package/dist/docs/guides/engine-testing.md +49 -14
- package/dist/docs/guides/engine.md +2 -2
- package/dist/docs/guides/testing.md +3 -8
- package/dist/docs/guides/upgrading.md +15 -0
- package/dist/docs/page-index.md +4 -3
- package/dist/docs/recipes/create-game.md +1 -1
- package/dist/docs/recipes/fix-duplicate-packages.md +8 -19
- package/dist/oxlint/logic.json +184 -0
- package/dist/playwright.js +16 -3
- package/dist/templates/package/README.md.liquid +1 -0
- package/dist/templates/package/claude/rules/workflow-create-engine.md +1 -1
- package/dist/templates/package/claude/rules/workflow-create-user-interface.md +1 -1
- package/dist/templates/package/claude/rules/workflow-test-engine-or-ui.md +1 -1
- package/dist/templates/package/claude/rules/workflow-update-sdk-version.md +2 -2
- package/dist/templates/package/claude/settings.json.template +1 -0
- package/dist/templates/package/oxfmtrc.json.template +8 -1
- package/dist/templates/package/oxlintrc.json.template +1 -180
- package/dist/templates/package/package.json.liquid +1 -0
- package/dist/templates/package/vite.config.ts.liquid +2 -8
- package/dist/templates/package/vitest.config.ts.liquid +2 -8
- package/dist/templates/starter-game/package.json +2 -1
- package/dist/templates/starter-game/testing/engine/game.engine.test.ts +62 -37
- package/dist/templates/starter-game/vite.config.ts +2 -8
- package/dist/templates/starter-game/vitest.config.ts +4 -3
- package/dist/utils/resource-scan.d.ts +5 -0
- package/dist/vite/index.d.ts +30 -0
- package/dist/vite.js +12 -0
- package/package.json +12 -4
package/dist/agent/guidance.md
CHANGED
|
@@ -38,10 +38,10 @@ pnpm run --silent sdk docs view recipes/index.md # every recipe, o
|
|
|
38
38
|
pnpm run --silent sdk docs view recipes/create-hook.md # one document
|
|
39
39
|
pnpm run --silent sdk docs view guides/session.md --outline # the headings of a page, with section lengths
|
|
40
40
|
pnpm run --silent sdk docs view guides/session.md --section 'Building the session UI' # one section
|
|
41
|
-
pnpm run --silent sdk docs view cli-reference.md
|
|
41
|
+
pnpm run --silent sdk docs view cli-reference.md --outline # every command, to pick a section from
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
Some
|
|
44
|
+
Some pages run past 50,000 characters, more than one read may show you. Before reading a long page whole, find it in `page-index.md`, list its headings with `--outline`, and read the section you need with `--section`. Never read `cli-reference.md`, `changelog.md` or `guides/upgrading.md` whole: each is far longer than that, and `pnpm run sdk <command> --help` answers a question about one command.
|
|
45
45
|
|
|
46
46
|
The same files are on disk in `node_modules/@seriousgaming/sdk-tools/dist/docs/`, so you can search them with `grep -rn`. Start from `recipes/` for a task, `guides/` for a whole subject, and `concepts/` for the model.
|
|
47
47
|
|
|
@@ -110,17 +110,24 @@ Pass `--json` to any command (or set `SERIOUSGAMING_JSON=1`) and it prints exact
|
|
|
110
110
|
{ "ok": false, "command": "build", "error": { "code": "PACKAGE_INVALID", "message": "…", "hint": "…" }, "diagnostics": [{ "severity": "error", "code": "SETTINGS_UNKNOWN_KEY", "file": "scenarios/hard/scenario.sdk.json", "pointer": "/definition/settings/engine/BaseDemnd", "hint": "Did you mean 'BaseDemand'?", "message": "…" }], "warnings": [] }
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
After every change, run
|
|
113
|
+
After every change, run the package's own check. It stops at the first step that fails, and it is the package's script, so it may hold more steps than these:
|
|
114
114
|
|
|
115
115
|
```bash
|
|
116
|
-
pnpm
|
|
117
|
-
pnpm run typecheck # tsc over the whole package
|
|
118
|
-
pnpm run lint # oxlint, warnings included
|
|
119
|
-
pnpm test:run # unit and component tests beside each resource
|
|
120
|
-
pnpm test:engine # whole games, in-process
|
|
121
|
-
pnpm run --silent sdk tick --no-server --json # one tick in the restricted production runtime
|
|
116
|
+
pnpm check
|
|
122
117
|
```
|
|
123
118
|
|
|
119
|
+
```bash
|
|
120
|
+
pnpm run --silent sdk build --validate-only # the package: bundles, references, settings
|
|
121
|
+
pnpm run typecheck # tsc over the whole package
|
|
122
|
+
pnpm run lint # oxlint, warnings included; flags a host global in logic
|
|
123
|
+
pnpm test:run # unit and component tests beside each resource
|
|
124
|
+
pnpm test:engine # whole games, in-process, in the restricted runtime
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
`pnpm test:engine` runs logic in the same restricted runtime `sdk tick` does, so a global the production runtime lacks fails there as `ReferenceError`. Keep a test in `testing/engine/` that starts every scenario and plays a tick: a scenario's settings are only exercised when the game is played on them. A package scaffolded before 1.11 has no `check` script; add it from `guides/upgrading.md`, or run the five steps in order. When a step fails, rerun that one command with `--json` for the diagnostics.
|
|
128
|
+
|
|
129
|
+
`pnpm run --silent sdk tick --no-server --summary` plays one tick by hand, as a smoke test, and prints only the session head.
|
|
130
|
+
|
|
124
131
|
Branch on `ok`, the exit code and `error.code`, never on the message:
|
|
125
132
|
|
|
126
133
|
| Exit | Meaning | What to do |
|
|
@@ -157,15 +164,15 @@ A slot command takes no identifier. `new` refuses a slot that is already filled,
|
|
|
157
164
|
### Playing the game from the CLI
|
|
158
165
|
|
|
159
166
|
```bash
|
|
160
|
-
pnpm run --silent sdk init
|
|
161
|
-
pnpm run --silent sdk tick --patch '[{"op":"replace","path":"/<capability>/<variable>","value":70}]'
|
|
167
|
+
pnpm run --silent sdk init --summary # start the session, or rebuild it at tick 0
|
|
168
|
+
pnpm run --silent sdk tick --summary --patch '[{"op":"replace","path":"/<capability>/<variable>","value":70}]'
|
|
162
169
|
pnpm run --silent sdk patch '[{"op":"replace","path":"/<capability>/<variable>","value":0}]'
|
|
163
170
|
pnpm run --silent sdk view # the current state (--full for the whole projection)
|
|
164
171
|
pnpm run --silent sdk undo # undo the last tick
|
|
165
172
|
pnpm run --silent sdk reset # back to tick 0
|
|
166
173
|
```
|
|
167
174
|
|
|
168
|
-
Patch paths start at the capability. `--team N` picks the team in a game with several. `pnpm run sdk configure '{"<settings>":{"<property>":60}}'` overrides settings for the session, keyed by settings identifier, and restarts a running session on the new values.
|
|
175
|
+
`init`, `tick` and `view` print every team's context unless you pass `--summary`, which prints only the session head (the tick count and whether the game is complete). Pass it whenever you are not about to read the context, and use `view --team N` when you are. Patch paths start at the capability. `--team N` picks the team in a game with several. `pnpm run sdk configure '{"<settings>":{"<property>":60}}'` overrides settings for the session, keyed by settings identifier, and restarts a running session on the new values.
|
|
169
176
|
|
|
170
177
|
**Know which session a command touches:**
|
|
171
178
|
|
|
@@ -215,7 +222,7 @@ export const Run: RunFunction<Context, Settings> = async ({ context, meta }) =>
|
|
|
215
222
|
|
|
216
223
|
- The args are `{ context, settings, callbacks, meta, participants }`, plus `state` for an engine. `settings` is keyed by settings identifier and already resolved for the session; `guides/settings.md` has the order
|
|
217
224
|
- Hooks, aggregate engines (`{ shared: { capabilities }, teams: [{ capabilities }] }`) and writing endpoints (`{ response, capabilities }`) return the same way. A flat return fails the call
|
|
218
|
-
- **To remove a key**, return its path in `deletes` beside `capabilities` (`deletes: [['orders', 'Open', id]]`), under a capability in `writes`.
|
|
225
|
+
- **To remove a key**, return its path in `deletes` beside `capabilities` (`deletes: [['orders', 'Open', id]]`), under a capability in `writes`. A variable you return replaces the old one whole, so an entry survives only because you spread the old map into the new one; `deletes` removes it whichever way the map was built, and reads the same in a surface's `setData`
|
|
219
226
|
- `Init` is optional: without it each team starts from the capabilities' defaults
|
|
220
227
|
- `Run` may return `complete: true` to end the game, and an engine may return `state` beside `capabilities` for private memory between ticks (type it with `RunFunction`'s fourth parameter)
|
|
221
228
|
- A step of a split engine is a `StepFunction<Context, Settings>`: steps pass the context flat, and only the exported function wraps the result
|
|
@@ -286,7 +293,8 @@ const result = await Run(
|
|
|
286
293
|
|
|
287
294
|
const session = await createTestSession<Context, SharedContext>({ packagePath });
|
|
288
295
|
await session.setData(0, { decisions: { Price: 4 } }); // a write to a capability the UI declares
|
|
289
|
-
await session.tick();
|
|
296
|
+
const result = await session.tick();
|
|
297
|
+
expect(result.ok, JSON.stringify(result)).toBe(true); // a failure carries `logicError`: file, line, tick, team
|
|
290
298
|
expect(session.team(0).context.results.Day).toBe(1);
|
|
291
299
|
```
|
|
292
300
|
|
|
@@ -335,15 +343,15 @@ Upgrade only when the user asks, or when the changelog has a fix the task needs,
|
|
|
335
343
|
|
|
336
344
|
## Troubleshooting
|
|
337
345
|
|
|
338
|
-
| Problem | Solution
|
|
339
|
-
| ------------------------------------- |
|
|
340
|
-
| Types not updating | `pnpm run generate`
|
|
341
|
-
| A capability is missing in code | Add it to the resource's `reads` or `writes`; `update` regenerates the types
|
|
342
|
-
| A surface's write is refused | Add the capability to that surface's `writes`
|
|
343
|
-
| Build failing | `pnpm run --silent sdk build --validate-only --json`, then read `diagnostics`
|
|
344
|
-
| Edit not showing, or `SETTINGS_STALE` | A setting, `teams` or a capability's scope applies only at init: `sdk init`
|
|
345
|
-
| A hook reads empty data in a surface | Two copies of a package with React context: add it to `resolve.dedupe` in `vite.config.ts` |
|
|
346
|
-
| Anything else | `pnpm run --silent sdk docs view troubleshooting.md`
|
|
346
|
+
| Problem | Solution |
|
|
347
|
+
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
|
|
348
|
+
| Types not updating | `pnpm run generate` |
|
|
349
|
+
| A capability is missing in code | Add it to the resource's `reads` or `writes`; `update` regenerates the types |
|
|
350
|
+
| A surface's write is refused | Add the capability to that surface's `writes` |
|
|
351
|
+
| Build failing | `pnpm run --silent sdk build --validate-only --json`, then read `diagnostics` |
|
|
352
|
+
| Edit not showing, or `SETTINGS_STALE` | A setting, `teams` or a capability's scope applies only at init: `sdk init` |
|
|
353
|
+
| A hook reads empty data in a surface | Two copies of a package with React context: add it to `resolve.dedupe` in `vite.config.ts`, beside `REACT_CONTEXT_PACKAGES` |
|
|
354
|
+
| Anything else | `pnpm run --silent sdk docs view troubleshooting.md` |
|
|
347
355
|
|
|
348
356
|
Keep `DESIGN.md` up to date as the game changes, and hold to two habits for every surface:
|
|
349
357
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createSettingsEditor
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import "./cli-
|
|
6
|
-
import "./cli-
|
|
4
|
+
} from "./cli-5UKWX3IU.js";
|
|
5
|
+
import "./cli-EEO5ZPAZ.js";
|
|
6
|
+
import "./cli-DH35TZ2Q.js";
|
|
7
7
|
import "./cli-S5IVGDDD.js";
|
|
8
8
|
import "./cli-6O7YCK2M.js";
|
|
9
9
|
import "./cli-XW3JLRSA.js";
|
|
10
|
-
import "./cli-
|
|
10
|
+
import "./cli-RHL4B4H7.js";
|
|
11
11
|
import "./cli-WW54THXN.js";
|
|
12
12
|
import "./cli-QUNIRH7A.js";
|
|
13
|
-
import "./cli-
|
|
14
|
-
import "./cli-
|
|
15
|
-
import "./cli-
|
|
16
|
-
import "./cli-
|
|
13
|
+
import "./cli-ERJNDBDH.js";
|
|
14
|
+
import "./cli-LHMRUJVN.js";
|
|
15
|
+
import "./cli-X3TSTTYI.js";
|
|
16
|
+
import "./cli-QEFYDXMH.js";
|
|
17
17
|
import "./cli-QTCTWYCM.js";
|
|
18
18
|
import "./cli-P3NUTOPK.js";
|
|
19
19
|
import "./cli-UQC46YSV.js";
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
deleteEngineFiles,
|
|
4
4
|
findEngineReferences
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-RHL4B4H7.js";
|
|
6
6
|
import "./cli-WW54THXN.js";
|
|
7
7
|
import "./cli-QUNIRH7A.js";
|
|
8
|
-
import "./cli-
|
|
8
|
+
import "./cli-ERJNDBDH.js";
|
|
9
9
|
import {
|
|
10
10
|
loadPackageContext
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import "./cli-
|
|
13
|
-
import "./cli-
|
|
11
|
+
} from "./cli-LHMRUJVN.js";
|
|
12
|
+
import "./cli-X3TSTTYI.js";
|
|
13
|
+
import "./cli-QEFYDXMH.js";
|
|
14
14
|
import {
|
|
15
15
|
operationError,
|
|
16
16
|
recordOperationResult,
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
deleteTickControllerFiles,
|
|
4
4
|
findTickControllerReferences
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-RHL4B4H7.js";
|
|
6
6
|
import "./cli-WW54THXN.js";
|
|
7
7
|
import "./cli-QUNIRH7A.js";
|
|
8
|
-
import "./cli-
|
|
8
|
+
import "./cli-ERJNDBDH.js";
|
|
9
9
|
import {
|
|
10
10
|
loadPackageContext
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import "./cli-
|
|
13
|
-
import "./cli-
|
|
11
|
+
} from "./cli-LHMRUJVN.js";
|
|
12
|
+
import "./cli-X3TSTTYI.js";
|
|
13
|
+
import "./cli-QEFYDXMH.js";
|
|
14
14
|
import {
|
|
15
15
|
operationError,
|
|
16
16
|
recordOperationResult
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
deleteValidatorFiles,
|
|
4
4
|
findValidatorReferences
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-RHL4B4H7.js";
|
|
6
6
|
import "./cli-WW54THXN.js";
|
|
7
7
|
import "./cli-QUNIRH7A.js";
|
|
8
|
-
import "./cli-
|
|
8
|
+
import "./cli-ERJNDBDH.js";
|
|
9
9
|
import {
|
|
10
10
|
loadPackageContext
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import "./cli-
|
|
13
|
-
import "./cli-
|
|
11
|
+
} from "./cli-LHMRUJVN.js";
|
|
12
|
+
import "./cli-X3TSTTYI.js";
|
|
13
|
+
import "./cli-QEFYDXMH.js";
|
|
14
14
|
import {
|
|
15
15
|
operationError,
|
|
16
16
|
recordOperationResult
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
loadResourceIdentifiers
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-EEO5ZPAZ.js";
|
|
5
5
|
import {
|
|
6
6
|
resolvePatchedDefinition
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-DH35TZ2Q.js";
|
|
8
8
|
import {
|
|
9
9
|
readAuthoredBundle
|
|
10
10
|
} from "./cli-6O7YCK2M.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
deleteSettingsEditorFiles,
|
|
17
17
|
findSettingsEditorReferences,
|
|
18
18
|
updateSettingsEditorFiles
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-RHL4B4H7.js";
|
|
20
20
|
import {
|
|
21
21
|
loadPackageContext
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-LHMRUJVN.js";
|
|
23
23
|
import {
|
|
24
24
|
BUILD_COMMAND,
|
|
25
25
|
generateTypes,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolvePatchedDefinition
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-DH35TZ2Q.js";
|
|
5
5
|
import "./cli-S5IVGDDD.js";
|
|
6
6
|
import {
|
|
7
7
|
readAuthoredBundle
|
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
} from "./cli-XW3JLRSA.js";
|
|
12
12
|
import {
|
|
13
13
|
updateTickControllerFiles
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-RHL4B4H7.js";
|
|
15
15
|
import "./cli-WW54THXN.js";
|
|
16
16
|
import "./cli-QUNIRH7A.js";
|
|
17
|
-
import "./cli-
|
|
17
|
+
import "./cli-ERJNDBDH.js";
|
|
18
18
|
import {
|
|
19
19
|
loadPackageContext
|
|
20
|
-
} from "./cli-
|
|
21
|
-
import "./cli-
|
|
22
|
-
import "./cli-
|
|
20
|
+
} from "./cli-LHMRUJVN.js";
|
|
21
|
+
import "./cli-X3TSTTYI.js";
|
|
22
|
+
import "./cli-QEFYDXMH.js";
|
|
23
23
|
import {
|
|
24
24
|
operationError,
|
|
25
25
|
printOperationResult,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
promptForSettings
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-RKPQLB7J.js";
|
|
5
5
|
import {
|
|
6
6
|
loadResourceIdentifiers
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-EEO5ZPAZ.js";
|
|
8
8
|
import {
|
|
9
9
|
readAuthoredBundle
|
|
10
10
|
} from "./cli-6O7YCK2M.js";
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
} from "./cli-XW3JLRSA.js";
|
|
14
14
|
import {
|
|
15
15
|
createEngineFiles
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-RHL4B4H7.js";
|
|
17
17
|
import "./cli-WW54THXN.js";
|
|
18
18
|
import "./cli-QUNIRH7A.js";
|
|
19
|
-
import "./cli-
|
|
19
|
+
import "./cli-ERJNDBDH.js";
|
|
20
20
|
import {
|
|
21
21
|
loadPackageContext
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-LHMRUJVN.js";
|
|
23
23
|
import {
|
|
24
24
|
presentFields
|
|
25
|
-
} from "./cli-
|
|
26
|
-
import "./cli-
|
|
25
|
+
} from "./cli-X3TSTTYI.js";
|
|
26
|
+
import "./cli-QEFYDXMH.js";
|
|
27
27
|
import {
|
|
28
28
|
BUILD_COMMAND,
|
|
29
29
|
generateTypes,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolvePatchedDefinition
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-DH35TZ2Q.js";
|
|
5
5
|
import "./cli-S5IVGDDD.js";
|
|
6
6
|
import {
|
|
7
7
|
getResourceIdentifierError,
|
|
@@ -12,17 +12,18 @@ import {
|
|
|
12
12
|
} from "./cli-XW3JLRSA.js";
|
|
13
13
|
import {
|
|
14
14
|
updateValidatorFiles
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-RHL4B4H7.js";
|
|
16
16
|
import "./cli-WW54THXN.js";
|
|
17
17
|
import "./cli-QUNIRH7A.js";
|
|
18
|
-
import "./cli-
|
|
18
|
+
import "./cli-ERJNDBDH.js";
|
|
19
19
|
import {
|
|
20
20
|
loadPackageContext
|
|
21
|
-
} from "./cli-
|
|
22
|
-
import "./cli-
|
|
21
|
+
} from "./cli-LHMRUJVN.js";
|
|
22
|
+
import "./cli-X3TSTTYI.js";
|
|
23
23
|
import {
|
|
24
|
+
existingResourcesHint,
|
|
24
25
|
findBundleFile
|
|
25
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-QEFYDXMH.js";
|
|
26
27
|
import {
|
|
27
28
|
operationError,
|
|
28
29
|
printOperationResult,
|
|
@@ -92,7 +93,9 @@ async function updateValidator(identifier, definitionInput, options) {
|
|
|
92
93
|
logger.info("No JSON definition provided. Starting interactive mode...\n");
|
|
93
94
|
const validatorFilePath = findBundleFile(options.workingDir, "validator", identifier);
|
|
94
95
|
if (!validatorFilePath) {
|
|
95
|
-
throw new CliError("RESOURCE_NOT_FOUND", `Validator "${identifier}" not found
|
|
96
|
+
throw new CliError("RESOURCE_NOT_FOUND", `Validator "${identifier}" not found`, {
|
|
97
|
+
hint: existingResourcesHint(options.workingDir, "validator")
|
|
98
|
+
});
|
|
96
99
|
}
|
|
97
100
|
let existingBundle;
|
|
98
101
|
try {
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
} from "./cli-XW3JLRSA.js";
|
|
10
10
|
import {
|
|
11
11
|
createPackageFiles
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-RHL4B4H7.js";
|
|
13
13
|
import "./cli-WW54THXN.js";
|
|
14
14
|
import "./cli-QUNIRH7A.js";
|
|
15
|
-
import "./cli-
|
|
16
|
-
import "./cli-
|
|
17
|
-
import "./cli-
|
|
15
|
+
import "./cli-ERJNDBDH.js";
|
|
16
|
+
import "./cli-X3TSTTYI.js";
|
|
17
|
+
import "./cli-QEFYDXMH.js";
|
|
18
18
|
import {
|
|
19
19
|
generateTypes,
|
|
20
20
|
operationError,
|
|
@@ -6,81 +6,81 @@ function lazy(load, name) {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
// cli/commands/resources/registry.ts
|
|
9
|
-
var deleteCapability = lazy(() => import("./cli-
|
|
10
|
-
var createCapability = lazy(() => import("./cli-
|
|
11
|
-
var updateCapability = lazy(() => import("./cli-
|
|
12
|
-
var deleteEndpoint = lazy(() => import("./cli-
|
|
13
|
-
var createEndpoint = lazy(() => import("./cli-
|
|
14
|
-
var updateEndpoint = lazy(() => import("./cli-
|
|
15
|
-
var deleteEngine = lazy(() => import("./cli-
|
|
16
|
-
var createEngine = lazy(() => import("./cli-
|
|
17
|
-
var updateEngine = lazy(() => import("./cli-
|
|
18
|
-
var deleteFacilitatorGuide = lazy(() => import("./cli-
|
|
19
|
-
var createFacilitatorGuide = lazy(() => import("./cli-
|
|
20
|
-
var updateFacilitatorGuide = lazy(() => import("./cli-
|
|
21
|
-
var deleteHook = lazy(() => import("./cli-
|
|
22
|
-
var createHook = lazy(() => import("./cli-
|
|
23
|
-
var updateHook = lazy(() => import("./cli-
|
|
24
|
-
var createPackage = lazy(() => import("./cli-
|
|
25
|
-
var updatePackage = lazy(() => import("./cli-
|
|
26
|
-
var deletePresentation = lazy(() => import("./cli-
|
|
27
|
-
var createPresentation = lazy(() => import("./cli-
|
|
28
|
-
var updatePresentation = lazy(() => import("./cli-
|
|
9
|
+
var deleteCapability = lazy(() => import("./cli-WNHMJM3Z.js"), "deleteCapability");
|
|
10
|
+
var createCapability = lazy(() => import("./cli-MSNSXVGF.js"), "createCapability");
|
|
11
|
+
var updateCapability = lazy(() => import("./cli-DBMEH4Y5.js"), "updateCapability");
|
|
12
|
+
var deleteEndpoint = lazy(() => import("./cli-NKKCDO6K.js"), "deleteEndpoint");
|
|
13
|
+
var createEndpoint = lazy(() => import("./cli-REAM7LSC.js"), "createEndpoint");
|
|
14
|
+
var updateEndpoint = lazy(() => import("./cli-PNS4KWWC.js"), "updateEndpoint");
|
|
15
|
+
var deleteEngine = lazy(() => import("./cli-4F24FUW6.js"), "deleteEngine");
|
|
16
|
+
var createEngine = lazy(() => import("./cli-6P6V2EHY.js"), "createEngine");
|
|
17
|
+
var updateEngine = lazy(() => import("./cli-QPV3TYOM.js"), "updateEngine");
|
|
18
|
+
var deleteFacilitatorGuide = lazy(() => import("./cli-TI2FOFPA.js"), "deleteFacilitatorGuide");
|
|
19
|
+
var createFacilitatorGuide = lazy(() => import("./cli-OBLEROSC.js"), "createFacilitatorGuide");
|
|
20
|
+
var updateFacilitatorGuide = lazy(() => import("./cli-HMDYG6PS.js"), "updateFacilitatorGuide");
|
|
21
|
+
var deleteHook = lazy(() => import("./cli-DQE7ITIR.js"), "deleteHook");
|
|
22
|
+
var createHook = lazy(() => import("./cli-XJ7JESC2.js"), "createHook");
|
|
23
|
+
var updateHook = lazy(() => import("./cli-WJVPSVF2.js"), "updateHook");
|
|
24
|
+
var createPackage = lazy(() => import("./cli-ATAJSIXH.js"), "createPackage");
|
|
25
|
+
var updatePackage = lazy(() => import("./cli-BJFYGVJV.js"), "updatePackage");
|
|
26
|
+
var deletePresentation = lazy(() => import("./cli-VXLHOZSO.js"), "deletePresentation");
|
|
27
|
+
var createPresentation = lazy(() => import("./cli-WNBP3LOD.js"), "createPresentation");
|
|
28
|
+
var updatePresentation = lazy(() => import("./cli-R5SNTPND.js"), "updatePresentation");
|
|
29
29
|
var deleteScenarioEditor = lazy(
|
|
30
|
-
() => import("./cli-
|
|
30
|
+
() => import("./cli-BINVO5R7.js"),
|
|
31
31
|
"deleteScenarioEditor"
|
|
32
32
|
);
|
|
33
|
-
var createScenarioEditor = lazy(() => import("./cli-
|
|
33
|
+
var createScenarioEditor = lazy(() => import("./cli-3VLBFWHN.js"), "createScenarioEditor");
|
|
34
34
|
var updateScenarioEditor = lazy(
|
|
35
|
-
() => import("./cli-
|
|
35
|
+
() => import("./cli-HLI5UEKX.js"),
|
|
36
36
|
"updateScenarioEditor"
|
|
37
37
|
);
|
|
38
|
-
var deleteScenario = lazy(() => import("./cli-
|
|
39
|
-
var createScenario = lazy(() => import("./cli-
|
|
40
|
-
var updateScenario = lazy(() => import("./cli-
|
|
38
|
+
var deleteScenario = lazy(() => import("./cli-FYPW25VD.js"), "deleteScenario");
|
|
39
|
+
var createScenario = lazy(() => import("./cli-RMD5WSUQ.js"), "createScenario");
|
|
40
|
+
var updateScenario = lazy(() => import("./cli-G3TU6CP6.js"), "updateScenario");
|
|
41
41
|
var deleteSessionUserInterface = lazy(
|
|
42
|
-
() => import("./cli-
|
|
42
|
+
() => import("./cli-B2QAJ5RQ.js"),
|
|
43
43
|
"deleteSessionUserInterface"
|
|
44
44
|
);
|
|
45
45
|
var createSessionUserInterface = lazy(
|
|
46
|
-
() => import("./cli-
|
|
46
|
+
() => import("./cli-L7F4XKCB.js"),
|
|
47
47
|
"createSessionUserInterface"
|
|
48
48
|
);
|
|
49
49
|
var updateSessionUserInterface = lazy(
|
|
50
|
-
() => import("./cli-
|
|
50
|
+
() => import("./cli-OMTHTWYJ.js"),
|
|
51
51
|
"updateSessionUserInterface"
|
|
52
52
|
);
|
|
53
|
-
var deleteSettings = lazy(() => import("./cli-
|
|
54
|
-
var createSettings = lazy(() => import("./cli-
|
|
55
|
-
var updateSettings = lazy(() => import("./cli-
|
|
56
|
-
var deleteSetup = lazy(() => import("./cli-
|
|
57
|
-
var createSetup = lazy(() => import("./cli-
|
|
58
|
-
var updateSetup = lazy(() => import("./cli-
|
|
53
|
+
var deleteSettings = lazy(() => import("./cli-YYXAGJQR.js"), "deleteSettings");
|
|
54
|
+
var createSettings = lazy(() => import("./cli-OM32UURE.js"), "createSettings");
|
|
55
|
+
var updateSettings = lazy(() => import("./cli-BZOKZ7LP.js"), "updateSettings");
|
|
56
|
+
var deleteSetup = lazy(() => import("./cli-UIYKPSIY.js"), "deleteSetup");
|
|
57
|
+
var createSetup = lazy(() => import("./cli-OVIJRBFI.js"), "createSetup");
|
|
58
|
+
var updateSetup = lazy(() => import("./cli-OF36EA62.js"), "updateSetup");
|
|
59
59
|
var deleteTickController = lazy(
|
|
60
|
-
() => import("./cli-
|
|
60
|
+
() => import("./cli-5ATO27Z4.js"),
|
|
61
61
|
"deleteTickController"
|
|
62
62
|
);
|
|
63
|
-
var createTickController = lazy(() => import("./cli-
|
|
63
|
+
var createTickController = lazy(() => import("./cli-XOYUTNER.js"), "createTickController");
|
|
64
64
|
var updateTickController = lazy(
|
|
65
|
-
() => import("./cli-
|
|
65
|
+
() => import("./cli-6JWDFCUV.js"),
|
|
66
66
|
"updateTickController"
|
|
67
67
|
);
|
|
68
|
-
var deleteUserInterface = lazy(() => import("./cli-
|
|
69
|
-
var createUserInterface = lazy(() => import("./cli-
|
|
70
|
-
var updateUserInterface = lazy(() => import("./cli-
|
|
71
|
-
var deleteValidator = lazy(() => import("./cli-
|
|
72
|
-
var createValidator = lazy(() => import("./cli-
|
|
73
|
-
var updateValidator = lazy(() => import("./cli-
|
|
68
|
+
var deleteUserInterface = lazy(() => import("./cli-FT3X3D4P.js"), "deleteUserInterface");
|
|
69
|
+
var createUserInterface = lazy(() => import("./cli-TLSTSZAC.js"), "createUserInterface");
|
|
70
|
+
var updateUserInterface = lazy(() => import("./cli-ZGCG6C22.js"), "updateUserInterface");
|
|
71
|
+
var deleteValidator = lazy(() => import("./cli-5TTJWM2R.js"), "deleteValidator");
|
|
72
|
+
var createValidator = lazy(() => import("./cli-X52TXCNF.js"), "createValidator");
|
|
73
|
+
var updateValidator = lazy(() => import("./cli-77T4LJQF.js"), "updateValidator");
|
|
74
74
|
var deleteWaitingRoomUserInterface = lazy(
|
|
75
|
-
() => import("./cli-
|
|
75
|
+
() => import("./cli-Q7QSWNY2.js"),
|
|
76
76
|
"deleteWaitingRoomUserInterface"
|
|
77
77
|
);
|
|
78
78
|
var createWaitingRoomUserInterface = lazy(
|
|
79
|
-
() => import("./cli-
|
|
79
|
+
() => import("./cli-LPFSJ625.js"),
|
|
80
80
|
"createWaitingRoomUserInterface"
|
|
81
81
|
);
|
|
82
82
|
var updateWaitingRoomUserInterface = lazy(
|
|
83
|
-
() => import("./cli-
|
|
83
|
+
() => import("./cli-SRXDLMXY.js"),
|
|
84
84
|
"updateWaitingRoomUserInterface"
|
|
85
85
|
);
|
|
86
86
|
var RESOURCE_DESCRIPTORS = [
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
deleteSessionUserInterfaceFiles,
|
|
4
4
|
findSessionUserInterfaceReferences
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-RHL4B4H7.js";
|
|
6
6
|
import "./cli-WW54THXN.js";
|
|
7
7
|
import "./cli-QUNIRH7A.js";
|
|
8
|
-
import "./cli-
|
|
8
|
+
import "./cli-ERJNDBDH.js";
|
|
9
9
|
import {
|
|
10
10
|
loadPackageContext
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import "./cli-
|
|
13
|
-
import "./cli-
|
|
11
|
+
} from "./cli-LHMRUJVN.js";
|
|
12
|
+
import "./cli-X3TSTTYI.js";
|
|
13
|
+
import "./cli-QEFYDXMH.js";
|
|
14
14
|
import {
|
|
15
15
|
operationError,
|
|
16
16
|
recordOperationResult
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
deleteSettingsEditor
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import "./cli-
|
|
6
|
-
import "./cli-
|
|
4
|
+
} from "./cli-5UKWX3IU.js";
|
|
5
|
+
import "./cli-EEO5ZPAZ.js";
|
|
6
|
+
import "./cli-DH35TZ2Q.js";
|
|
7
7
|
import "./cli-S5IVGDDD.js";
|
|
8
8
|
import "./cli-6O7YCK2M.js";
|
|
9
9
|
import "./cli-XW3JLRSA.js";
|
|
10
|
-
import "./cli-
|
|
10
|
+
import "./cli-RHL4B4H7.js";
|
|
11
11
|
import "./cli-WW54THXN.js";
|
|
12
12
|
import "./cli-QUNIRH7A.js";
|
|
13
|
-
import "./cli-
|
|
14
|
-
import "./cli-
|
|
15
|
-
import "./cli-
|
|
16
|
-
import "./cli-
|
|
13
|
+
import "./cli-ERJNDBDH.js";
|
|
14
|
+
import "./cli-LHMRUJVN.js";
|
|
15
|
+
import "./cli-X3TSTTYI.js";
|
|
16
|
+
import "./cli-QEFYDXMH.js";
|
|
17
17
|
import "./cli-QTCTWYCM.js";
|
|
18
18
|
import "./cli-P3NUTOPK.js";
|
|
19
19
|
import "./cli-UQC46YSV.js";
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
} from "./cli-XW3JLRSA.js";
|
|
12
12
|
import {
|
|
13
13
|
updatePackageFiles
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-RHL4B4H7.js";
|
|
15
15
|
import "./cli-WW54THXN.js";
|
|
16
16
|
import "./cli-QUNIRH7A.js";
|
|
17
|
-
import "./cli-
|
|
18
|
-
import "./cli-
|
|
19
|
-
import "./cli-
|
|
17
|
+
import "./cli-ERJNDBDH.js";
|
|
18
|
+
import "./cli-X3TSTTYI.js";
|
|
19
|
+
import "./cli-QEFYDXMH.js";
|
|
20
20
|
import {
|
|
21
21
|
operationError,
|
|
22
22
|
recordOperationResult
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
assertEveryPropertyHasDefault
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-K4HSQWXC.js";
|
|
5
5
|
import {
|
|
6
6
|
reviewSchemaProperties
|
|
7
7
|
} from "./cli-B3EFE7ZF.js";
|
|
8
8
|
import {
|
|
9
9
|
resolvePatchedDefinition
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-DH35TZ2Q.js";
|
|
11
11
|
import "./cli-S5IVGDDD.js";
|
|
12
12
|
import {
|
|
13
13
|
getResourceIdentifierError,
|
|
@@ -18,19 +18,20 @@ import {
|
|
|
18
18
|
} from "./cli-XW3JLRSA.js";
|
|
19
19
|
import {
|
|
20
20
|
updateSettingsFiles
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-RHL4B4H7.js";
|
|
22
22
|
import "./cli-WW54THXN.js";
|
|
23
23
|
import {
|
|
24
24
|
extractSchemaProperties
|
|
25
25
|
} from "./cli-QUNIRH7A.js";
|
|
26
|
-
import "./cli-
|
|
26
|
+
import "./cli-ERJNDBDH.js";
|
|
27
27
|
import {
|
|
28
28
|
loadPackageContext
|
|
29
|
-
} from "./cli-
|
|
30
|
-
import "./cli-
|
|
29
|
+
} from "./cli-LHMRUJVN.js";
|
|
30
|
+
import "./cli-X3TSTTYI.js";
|
|
31
31
|
import {
|
|
32
|
+
existingResourcesHint,
|
|
32
33
|
findBundleFile
|
|
33
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-QEFYDXMH.js";
|
|
34
35
|
import {
|
|
35
36
|
operationError,
|
|
36
37
|
printOperationResult,
|
|
@@ -103,8 +104,9 @@ async function updateSettings(identifier, definitionInput, options) {
|
|
|
103
104
|
logger.info("No JSON definition provided. Starting interactive mode...\n");
|
|
104
105
|
const bundlePath = findBundleFile(options.workingDir, "settings", identifier);
|
|
105
106
|
if (!bundlePath) {
|
|
106
|
-
throw new CliError("RESOURCE_NOT_FOUND", `Settings "${identifier}" not found
|
|
107
|
-
|
|
107
|
+
throw new CliError("RESOURCE_NOT_FOUND", `Settings "${identifier}" not found`, {
|
|
108
|
+
hint: existingResourcesHint(options.workingDir, "settings")
|
|
109
|
+
});
|
|
108
110
|
}
|
|
109
111
|
let existingBundle;
|
|
110
112
|
try {
|