@drsamonline/cli 0.12.7 → 0.12.8

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drsamonline/cli",
3
- "version": "0.12.7",
3
+ "version": "0.12.8",
4
4
  "description": "The `sui` command line.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/cli.js CHANGED
@@ -174,6 +174,9 @@ async function cmdUp(flags) {
174
174
  }
175
175
 
176
176
  const configOverride = {};
177
+ // --headless: the proxy engine only, no dashboard. A gateway on a VPS should
178
+ // not serve a page that can rewrite its own config.
179
+ if (flags.headless === true) configOverride.headless = true;
177
180
  if (role) configOverride.planes = { ...(configOverride.planes ?? {}), role };
178
181
  if (flags['model-plane']) {
179
182
  configOverride.planes = { ...(configOverride.planes ?? {}), modelPlaneUrl: String(flags['model-plane']) };
@@ -586,7 +589,7 @@ sui ${VERSION} — one endpoint for every LLM
586
589
 
587
590
  ${RUN_AS} first run: find keys, find tools, prove the route, start
588
591
  ${RUN_AS} init the same, explicitly --demo --force --port 8787
589
- ${RUN_AS} start run the gateway --port 8787 --config <file> --no-workers
592
+ ${RUN_AS} start run the gateway --port 8787 --config <file> --no-workers --headless
590
593
  (aliases: up, serve)
591
594
  ${RUN_AS} invariants every hard constraint, and which are enforced
592
595
  ${RUN_AS} keys hash replace plaintext API keys with SHA-256 hashes