@opensip-cli/simulation 0.1.8 → 0.1.10

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/dist/tool.js +1 -1
  3. package/package.json +61 -11
package/README.md CHANGED
@@ -23,8 +23,8 @@ This package is published for the CLI and advanced plugin authors; most users sh
23
23
  ## Documentation
24
24
 
25
25
  - 📚 Project docs: https://opensip.ai/docs/opensip-cli/
26
- - 🧭 Package catalog (what every package does): https://github.com/opensip-ai/opensip-cli/blob/v0.1.8/docs/public/70-reference/02-package-catalog.md
27
- - 📦 Source: https://github.com/opensip-ai/opensip-cli/tree/v0.1.8/packages/simulation/engine
26
+ - 🧭 Package catalog (what every package does): https://github.com/opensip-ai/opensip-cli/blob/v0.1.10/docs/public/70-reference/02-package-catalog.md
27
+ - 📦 Source: https://github.com/opensip-ai/opensip-cli/tree/v0.1.10/packages/simulation/engine
28
28
 
29
29
  ## License
30
30
 
package/dist/tool.js CHANGED
@@ -301,7 +301,7 @@ export const simulationTool = defineTool({
301
301
  // the DECOUPLED `simulationConfigDeclaration.namespace = 'simulation'`
302
302
  // literal, NOT metadata.name, so existing `simulation:` config blocks keep
303
303
  // validating. The session `tool` column is already `'sim'`, so aligning the
304
- // name REDUCES mismatch. Q6 (flipping the literal to `sim:`) stays open — no
304
+ // name REDUCES mismatch. Q6 (decided): keep the `simulation:` namespace — no
305
305
  // `sim:` config alias is added.
306
306
  name: 'sim', // command verb + human key (was 'simulation')
307
307
  version: readPackageVersion(import.meta.url),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensip-cli/simulation",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Simulation scenarios for OpenSIP CLI",
6
6
  "keywords": [
@@ -38,15 +38,58 @@
38
38
  "commands": [
39
39
  {
40
40
  "name": "sim",
41
- "description": "Run simulation scenarios"
41
+ "description": "Run simulation scenarios",
42
+ "commonFlags": [
43
+ "cwd",
44
+ "json",
45
+ "quiet",
46
+ "verbose",
47
+ "debug",
48
+ "reportTo",
49
+ "apiKey",
50
+ "open"
51
+ ],
52
+ "options": [
53
+ {
54
+ "flag": "--recipe",
55
+ "value": "<name>",
56
+ "description": "Run a named sim recipe (default: built-in `default`)"
57
+ },
58
+ {
59
+ "flag": "--show",
60
+ "value": "<session>",
61
+ "description": "Replay a stored sim session by id, or latest for the latest sim session"
62
+ }
63
+ ],
64
+ "scope": "project",
65
+ "output": "raw-stream",
66
+ "rawStreamReason": "runtime-render-dispatch"
42
67
  },
43
68
  {
44
69
  "name": "recipes",
45
- "description": "List available simulation recipes"
70
+ "description": "List available simulation recipes",
71
+ "parent": "sim",
72
+ "commonFlags": [
73
+ "cwd",
74
+ "json"
75
+ ],
76
+ "scope": "project",
77
+ "output": "command-result"
46
78
  },
47
79
  {
48
80
  "name": "sim-run-worker",
49
- "description": "[internal] Run sim headless and stream progress + result over IPC (forked by the live view)"
81
+ "description": "[internal] Run sim headless and stream progress + result over IPC (forked by the live view)",
82
+ "visibility": "internal",
83
+ "commonFlags": [],
84
+ "args": [
85
+ {
86
+ "name": "specPath",
87
+ "description": "Path to a JSON sim-args spec file"
88
+ }
89
+ ],
90
+ "scope": "project",
91
+ "output": "raw-stream",
92
+ "rawStreamReason": "worker-ipc"
50
93
  }
51
94
  ],
52
95
  "capabilities": [
@@ -94,19 +137,26 @@
94
137
  ]
95
138
  }
96
139
  }
97
- ]
140
+ ],
141
+ "pluginLayout": {
142
+ "domain": "sim",
143
+ "userSubdirs": [
144
+ "scenarios",
145
+ "recipes"
146
+ ]
147
+ }
98
148
  },
99
149
  "dependencies": {
100
150
  "commander": "^15.0.0",
101
151
  "ink": "^7.0.5",
102
152
  "react": "^19.2.7",
103
153
  "zod": "^4.4.3",
104
- "@opensip-cli/contracts": "0.1.8",
105
- "@opensip-cli/core": "0.1.8",
106
- "@opensip-cli/config": "0.1.8",
107
- "@opensip-cli/datastore": "0.1.8",
108
- "@opensip-cli/session-store": "0.1.8",
109
- "@opensip-cli/cli-ui": "0.1.8"
154
+ "@opensip-cli/cli-ui": "0.1.10",
155
+ "@opensip-cli/contracts": "0.1.10",
156
+ "@opensip-cli/core": "0.1.10",
157
+ "@opensip-cli/datastore": "0.1.10",
158
+ "@opensip-cli/config": "0.1.10",
159
+ "@opensip-cli/session-store": "0.1.10"
110
160
  },
111
161
  "devDependencies": {
112
162
  "@types/node": "^24.13.2",