@opensip-cli/simulation 0.1.10 → 0.1.12
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 +4 -2
- package/dist/__tests__/public-api.test.js +6 -2
- package/dist/__tests__/public-api.test.js.map +1 -1
- package/dist/__tests__/tool-live-view.test.js +4 -4
- package/dist/__tests__/tool-live-view.test.js.map +1 -1
- package/dist/__tests__/tool.test.js +15 -8
- package/dist/__tests__/tool.test.js.map +1 -1
- package/dist/cli/__tests__/sim-runner.test.d.ts +1 -19
- package/dist/cli/__tests__/sim-runner.test.d.ts.map +1 -1
- package/dist/cli/__tests__/sim-runner.test.js +70 -193
- package/dist/cli/__tests__/sim-runner.test.js.map +1 -1
- package/dist/cli/report-data.d.ts.map +1 -1
- package/dist/cli/report-data.js +0 -1
- package/dist/cli/report-data.js.map +1 -1
- package/dist/cli/sim-config.d.ts.map +1 -1
- package/dist/cli/sim-config.js +4 -8
- package/dist/cli/sim-config.js.map +1 -1
- package/dist/cli/sim-recipes.d.ts +6 -5
- package/dist/cli/sim-recipes.d.ts.map +1 -1
- package/dist/cli/sim-recipes.js +8 -8
- package/dist/cli/sim-recipes.js.map +1 -1
- package/dist/cli/sim-runner.d.ts +3 -48
- package/dist/cli/sim-runner.d.ts.map +1 -1
- package/dist/cli/sim-runner.js +67 -143
- package/dist/cli/sim-runner.js.map +1 -1
- package/dist/cli/sim-worker.d.ts.map +1 -1
- package/dist/cli/sim-worker.js +0 -1
- package/dist/cli/sim-worker.js.map +1 -1
- package/dist/cli/sim.d.ts.map +1 -1
- package/dist/cli/sim.js +10 -3
- package/dist/cli/sim.js.map +1 -1
- package/dist/framework/execution/fault-model.d.ts.map +1 -1
- package/dist/framework/execution/fault-model.js +0 -1
- package/dist/framework/execution/fault-model.js.map +1 -1
- package/dist/framework/execution/run-load-window.d.ts.map +1 -1
- package/dist/framework/execution/run-load-window.js +2 -15
- package/dist/framework/execution/run-load-window.js.map +1 -1
- package/dist/framework/execution/scenario-aborted-error.d.ts.map +1 -1
- package/dist/framework/execution/scenario-aborted-error.js +0 -1
- package/dist/framework/execution/scenario-aborted-error.js.map +1 -1
- package/dist/framework/result-builder.d.ts.map +1 -1
- package/dist/framework/result-builder.js +0 -4
- package/dist/framework/result-builder.js.map +1 -1
- package/dist/framework/result-renderers.d.ts.map +1 -1
- package/dist/framework/result-renderers.js +0 -1
- package/dist/framework/result-renderers.js.map +1 -1
- package/dist/framework/validation.d.ts.map +1 -1
- package/dist/framework/validation.js +0 -1
- package/dist/framework/validation.js.map +1 -1
- package/dist/identity.d.ts +8 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +8 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/kinds/load/executor.d.ts.map +1 -1
- package/dist/kinds/load/executor.js +0 -2
- package/dist/kinds/load/executor.js.map +1 -1
- package/dist/persistence/session-payload.d.ts.map +1 -1
- package/dist/persistence/session-payload.js +0 -1
- package/dist/persistence/session-payload.js.map +1 -1
- package/dist/persistence/session-replay.d.ts.map +1 -1
- package/dist/persistence/session-replay.js +7 -28
- package/dist/persistence/session-replay.js.map +1 -1
- package/dist/plugins/loader.d.ts.map +1 -1
- package/dist/plugins/loader.js +0 -1
- package/dist/plugins/loader.js.map +1 -1
- package/dist/recipes/__tests__/recipes.test.d.ts +7 -0
- package/dist/recipes/__tests__/recipes.test.d.ts.map +1 -1
- package/dist/recipes/__tests__/recipes.test.js +0 -1
- package/dist/recipes/__tests__/recipes.test.js.map +1 -1
- package/dist/recipes/service.d.ts.map +1 -1
- package/dist/recipes/service.js +0 -1
- package/dist/recipes/service.js.map +1 -1
- package/dist/tool.d.ts.map +1 -1
- package/dist/tool.js +13 -22
- package/dist/tool.js.map +1 -1
- package/package.json +23 -13
package/dist/tool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../src/tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../src/tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAgCH,OAAO,yBAAyB,CAAC;AAIjC,OAAO,KAAK,EAEV,IAAI,EAGL,MAAM,mBAAmB,CAAC;AA6S3B;;GAEG;AACH,eAAO,MAAM,2BAA2B,UAAU,CAAC;AAEnD,eAAO,MAAM,oBAAoB,yCAAyC,CAAC;AAE3E,eAAO,MAAM,cAAc,EAAE,IA4B3B,CAAC"}
|
package/dist/tool.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* old `register()` action body did (byte-identical behaviour).
|
|
12
12
|
*/
|
|
13
13
|
import { EXIT_CODES } from '@opensip-cli/contracts';
|
|
14
|
-
import { createToolScope,
|
|
14
|
+
import { createToolScope, definePrimaryCommand, defineTool, readPackageVersion, } from '@opensip-cli/core';
|
|
15
15
|
import { resolveSession } from '@opensip-cli/session-store';
|
|
16
16
|
import { collectSimulationReportData } from './cli/report-data.js';
|
|
17
17
|
import { simulationConfigDeclaration } from './cli/sim-config-schema.js';
|
|
@@ -20,6 +20,7 @@ import { renderSimLive } from './cli/sim-runner.js';
|
|
|
20
20
|
import { simRunWorkerCommandSpec } from './cli/sim-worker.js';
|
|
21
21
|
import { executeSim } from './cli/sim.js';
|
|
22
22
|
import { createScenarioRegistry, createSimulationLoadState, currentScenarioRegistry, } from './framework/registry.js';
|
|
23
|
+
import { SIMULATION_IDENTITY, SIMULATION_LIVE_VIEW_KEY } from './identity.js';
|
|
23
24
|
import { simReplayFromSession } from './persistence/session-replay.js';
|
|
24
25
|
import { SIM_PLUGIN_LAYOUT } from './plugins/loader.js';
|
|
25
26
|
import { createSimulationRecipeRegistry, currentSimulationRecipeRegistry, } from './recipes/registry.js';
|
|
@@ -27,11 +28,6 @@ import { simScaffoldExamples, simStableExampleIds } from './scaffold/examples.js
|
|
|
27
28
|
// Side-effect import: ensures the RunScope.simulation augmentation is
|
|
28
29
|
// loaded so `scope.simulation` is the correctly-typed slot here.
|
|
29
30
|
import './scope-augmentation.js';
|
|
30
|
-
// Live-view key — matches the `sim` subcommand name so the dispatcher's
|
|
31
|
-
// renderLive(key) lookup resolves it (ADR-0016). sim's Ink/React renderer
|
|
32
|
-
// (renderSimLive) is registered directly; the prior static-only path remains
|
|
33
|
-
// for json / non-TTY runs.
|
|
34
|
-
const SIM_LIVE_VIEW_KEY = 'sim';
|
|
35
31
|
/**
|
|
36
32
|
* Set sim's live view (ADR-0016) up on the host context — a synchronous,
|
|
37
33
|
* void-returning map write (named with the `set` prefix to signal that). Its
|
|
@@ -46,7 +42,7 @@ const SIM_LIVE_VIEW_KEY = 'sim';
|
|
|
46
42
|
* equivalent to the old mount-time registration.
|
|
47
43
|
*/
|
|
48
44
|
function setUpSimLiveView(cli) {
|
|
49
|
-
cli.registerLiveView(
|
|
45
|
+
cli.registerLiveView(SIMULATION_LIVE_VIEW_KEY, async (args, liveContext) => {
|
|
50
46
|
const simArgs = args;
|
|
51
47
|
// The renderer returns a ToolRunCompletion; the HOST persists its `session`
|
|
52
48
|
// after this resolves (host-owned-run-timing Phase 2).
|
|
@@ -80,7 +76,7 @@ async function runSim(rawOpts, cli) {
|
|
|
80
76
|
// renderSimLive (host completeLiveRender) after the Ink app exits.
|
|
81
77
|
if (opts.json !== true && process.stdout.isTTY === true) {
|
|
82
78
|
setUpSimLiveView(cli);
|
|
83
|
-
await cli.renderLive(
|
|
79
|
+
await cli.renderLive(SIMULATION_LIVE_VIEW_KEY, opts);
|
|
84
80
|
await cli.maybeOpenReport({
|
|
85
81
|
openRequested: Boolean(opts.open),
|
|
86
82
|
jsonOutput: false,
|
|
@@ -232,8 +228,7 @@ function sessionReplayResult(session, replay) {
|
|
|
232
228
|
* `emitEnvelope`/`render`), so the host renders nothing and the handler stays
|
|
233
229
|
* authoritative — byte-identical to the former action body.
|
|
234
230
|
*/
|
|
235
|
-
const simCommand =
|
|
236
|
-
name: 'sim',
|
|
231
|
+
const simCommand = definePrimaryCommand({
|
|
237
232
|
description: 'Run simulation scenarios',
|
|
238
233
|
// ADR-0021 cross-tool flags from the single registry: --cwd, --json, --quiet,
|
|
239
234
|
// --verbose, --debug, --report-to, --api-key, --open. sim carries -v/--verbose
|
|
@@ -294,30 +289,26 @@ const simulationScope = createToolScope({
|
|
|
294
289
|
export const SIMULATION_CONTRACT_VERSION = '1.0.0';
|
|
295
290
|
export const SIMULATION_STABLE_ID = '715d32c2-692c-4ed4-985b-a35deaf186aa';
|
|
296
291
|
export const simulationTool = defineTool({
|
|
292
|
+
identity: SIMULATION_IDENTITY,
|
|
297
293
|
metadata: {
|
|
298
|
-
id: SIMULATION_STABLE_ID,
|
|
299
|
-
// tool-command-surface-taxonomy Task 2.4 (Q1): metadata.name == the command
|
|
300
|
-
// verb (`sim`). The config namespace key stays `simulation:` — it keys off
|
|
301
|
-
// the DECOUPLED `simulationConfigDeclaration.namespace = 'simulation'`
|
|
302
|
-
// literal, NOT metadata.name, so existing `simulation:` config blocks keep
|
|
303
|
-
// validating. The session `tool` column is already `'sim'`, so aligning the
|
|
304
|
-
// name REDUCES mismatch. Q6 (decided): keep the `simulation:` namespace — no
|
|
305
|
-
// `sim:` config alias is added.
|
|
306
|
-
name: 'sim', // command verb + human key (was 'simulation')
|
|
294
|
+
id: SIMULATION_STABLE_ID,
|
|
307
295
|
version: readPackageVersion(import.meta.url),
|
|
308
296
|
description: 'Run simulation scenarios against a codebase',
|
|
309
297
|
},
|
|
310
|
-
pluginLayout: SIM_PLUGIN_LAYOUT,
|
|
298
|
+
pluginLayout: { userSubdirs: SIM_PLUGIN_LAYOUT.userSubdirs },
|
|
311
299
|
commandSpecs: [simCommand, simRecipesCommandSpec, simRunWorkerCommandSpec],
|
|
312
300
|
extensionPoints: {
|
|
313
301
|
simulationContractVersion: SIMULATION_CONTRACT_VERSION,
|
|
314
302
|
contributeScope: simulationScope.contributeScope,
|
|
315
303
|
collectReportData: collectSimulationReportData,
|
|
316
304
|
sessionReplay: {
|
|
317
|
-
tool: 'sim',
|
|
318
305
|
replaySession: simReplayFromSession,
|
|
319
306
|
},
|
|
320
|
-
config:
|
|
307
|
+
config: {
|
|
308
|
+
schema: simulationConfigDeclaration.schema,
|
|
309
|
+
defaults: simulationConfigDeclaration.defaults,
|
|
310
|
+
env: simulationConfigDeclaration.env,
|
|
311
|
+
},
|
|
321
312
|
capabilityRegistrars: {
|
|
322
313
|
'sim-pack': registerSimScenario,
|
|
323
314
|
'sim-recipe': registerSimRecipe,
|
package/dist/tool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.js","sourceRoot":"","sources":["../src/tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAwC,MAAM,wBAAwB,CAAC;AAC1F,OAAO,
|
|
1
|
+
{"version":3,"file":"tool.js","sourceRoot":"","sources":["../src/tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAwC,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,UAAU,EACV,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACL,sBAAsB,EACtB,yB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|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Simulation scenarios for OpenSIP CLI",
|
|
6
6
|
"keywords": [
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"main": "./dist/index.js",
|
|
24
24
|
"types": "./dist/index.d.ts",
|
|
25
25
|
"exports": {
|
|
26
|
-
".": "./dist/index.js"
|
|
26
|
+
".": "./dist/index.js",
|
|
27
|
+
"./internal": "./dist/internal.js"
|
|
27
28
|
},
|
|
28
29
|
"files": [
|
|
29
30
|
"dist",
|
|
@@ -32,13 +33,23 @@
|
|
|
32
33
|
],
|
|
33
34
|
"opensipTools": {
|
|
34
35
|
"kind": "tool",
|
|
35
|
-
"id": "
|
|
36
|
+
"id": "simulation",
|
|
37
|
+
"identity": {
|
|
38
|
+
"name": "simulation",
|
|
39
|
+
"aliases": [
|
|
40
|
+
"sim"
|
|
41
|
+
],
|
|
42
|
+
"layoutKey": "sim"
|
|
43
|
+
},
|
|
36
44
|
"stableId": "715d32c2-692c-4ed4-985b-a35deaf186aa",
|
|
37
45
|
"apiVersion": 1,
|
|
38
46
|
"commands": [
|
|
39
47
|
{
|
|
40
|
-
"name": "
|
|
48
|
+
"name": "simulation",
|
|
41
49
|
"description": "Run simulation scenarios",
|
|
50
|
+
"aliases": [
|
|
51
|
+
"sim"
|
|
52
|
+
],
|
|
42
53
|
"commonFlags": [
|
|
43
54
|
"cwd",
|
|
44
55
|
"json",
|
|
@@ -68,7 +79,7 @@
|
|
|
68
79
|
{
|
|
69
80
|
"name": "recipes",
|
|
70
81
|
"description": "List available simulation recipes",
|
|
71
|
-
"parent": "
|
|
82
|
+
"parent": "simulation",
|
|
72
83
|
"commonFlags": [
|
|
73
84
|
"cwd",
|
|
74
85
|
"json"
|
|
@@ -148,20 +159,19 @@
|
|
|
148
159
|
},
|
|
149
160
|
"dependencies": {
|
|
150
161
|
"commander": "^15.0.0",
|
|
151
|
-
"ink": "^7.0.5",
|
|
152
162
|
"react": "^19.2.7",
|
|
153
163
|
"zod": "^4.4.3",
|
|
154
|
-
"@opensip-cli/cli-
|
|
155
|
-
"@opensip-cli/
|
|
156
|
-
"@opensip-cli/
|
|
157
|
-
"@opensip-cli/
|
|
158
|
-
"@opensip-cli/
|
|
159
|
-
"@opensip-cli/
|
|
164
|
+
"@opensip-cli/cli-live": "0.1.12",
|
|
165
|
+
"@opensip-cli/cli-ui": "0.1.12",
|
|
166
|
+
"@opensip-cli/config": "0.1.12",
|
|
167
|
+
"@opensip-cli/contracts": "0.1.12",
|
|
168
|
+
"@opensip-cli/datastore": "0.1.12",
|
|
169
|
+
"@opensip-cli/core": "0.1.12",
|
|
170
|
+
"@opensip-cli/session-store": "0.1.12"
|
|
160
171
|
},
|
|
161
172
|
"devDependencies": {
|
|
162
173
|
"@types/node": "^24.13.2",
|
|
163
174
|
"@types/react": "^19.2.17",
|
|
164
|
-
"ink-testing-library": "^4.0.0",
|
|
165
175
|
"typescript": "~6.0.3",
|
|
166
176
|
"vitest": "^4.1.8"
|
|
167
177
|
},
|