@suveren/gateway 0.13.0 → 0.14.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.
Files changed (32) hide show
  1. package/README.md +19 -3
  2. package/bin/suveren-gateway.js +5 -0
  3. package/dist/control-plane/index.mjs +146 -114
  4. package/dist/mcp-server/http.mjs +162 -118
  5. package/dist/ui/assets/{index-CmLqzgqA.js → index-Cg6VaGKb.js} +12 -12
  6. package/dist/ui/index.html +1 -1
  7. package/lib/autostart-templates.mjs +15 -7
  8. package/node_modules/@hap/core/dist/index.d.mts +49 -1
  9. package/node_modules/@hap/core/dist/index.d.ts +49 -1
  10. package/node_modules/@hap/core/dist/index.js +50 -0
  11. package/node_modules/@hap/core/dist/index.mjs +49 -0
  12. package/node_modules/@hap/core/package.json +1 -1
  13. package/node_modules/@hap/core/src/frame.ts +63 -1
  14. package/node_modules/@hap/core/src/gatekeeper.ts +37 -0
  15. package/node_modules/@hap/core/src/types.ts +29 -1
  16. package/node_modules/hono/dist/cjs/hono-base.js +2 -0
  17. package/node_modules/hono/dist/cjs/middleware/language/language.js +1 -1
  18. package/node_modules/hono/dist/cjs/middleware/mount/index.js +71 -0
  19. package/node_modules/hono/dist/cjs/request.js +4 -4
  20. package/node_modules/hono/dist/hono-base.js +2 -0
  21. package/node_modules/hono/dist/middleware/mount/index.js +70 -0
  22. package/node_modules/hono/dist/request.js +4 -4
  23. package/node_modules/hono/dist/types/hono-base.d.ts +2 -0
  24. package/node_modules/hono/dist/types/jsx/base.d.ts +1 -1
  25. package/node_modules/hono/dist/types/middleware/mount/index.d.ts +46 -0
  26. package/node_modules/hono/dist/types/request.d.ts +4 -4
  27. package/node_modules/hono/package.json +9 -1
  28. package/package.json +2 -2
  29. package/profiles/index.json +3 -1
  30. package/profiles/purchase/0.6.profile.json +234 -0
  31. package/profiles/sales/0.3.profile.json +290 -0
  32. package/server.js +6 -3
package/README.md CHANGED
@@ -89,7 +89,7 @@ No credentials. No signing keys. Just the scope of what the agent is allowed to
89
89
 
90
90
  ## Quick Start
91
91
 
92
- Pick whichever you have on hand — both produce the same gateway.
92
+ Pick whichever fits — all three produce the same gateway. For company laptops managed by IT, use Option C.
93
93
 
94
94
  ### Option A — Docker
95
95
 
@@ -99,7 +99,7 @@ Requires [Docker](https://docs.docker.com/get-docker/).
99
99
  docker run -d --name suveren-gateway \
100
100
  -p 7400:3000 -p 7430:3030 \
101
101
  -v $HOME/.suveren:/app/data \
102
- ghcr.io/humanagencyprotocol/suveren-gateway
102
+ ghcr.io/suverenai/suveren-gateway
103
103
  ```
104
104
 
105
105
  Open `http://localhost:7400`. The MCP server is at `http://localhost:7430`.
@@ -130,9 +130,23 @@ suveren-gateway restart
130
130
  PowerShell 5.1, which is what ships with Windows. Use `;` there if you want
131
131
  them on one line.)
132
132
 
133
+ ### Option C — Windows installer (company laptops)
134
+
135
+ For laptops managed by a company's IT: no admin rights, no Node.js and no access to the public npm registry needed. Every [GitHub Release](https://github.com/suverenai/suveren-gateway/releases) from 0.13.0 on carries:
136
+
137
+ | File | What it is |
138
+ |---|---|
139
+ | `suveren-gateway-<version>-windows-unsigned.msi` | Per-user installer: the gateway, its own Node.js and the tested connector versions — nothing is downloaded at runtime |
140
+ | `suveren-gateway-<version>-windows-signing-kit.zip` | The unpacked contents, the installer source and `build-signed.ps1`, so IT can sign every file with its own certificate and rebuild the `.msi` |
141
+ | `SHA256SUMS` | Checksums of both files |
142
+
143
+ **The installer is not signed by us.** IT checks where it comes from (`sha256sum -c SHA256SUMS` and `gh attestation verify <file> -R suverenai/suveren-gateway`, which shows the exact commit it was built from), signs it, and distributes it, e.g. with Intune. IT can preset the Authority Server, simulation mode, proxy and certificate centrally; the employee cannot change them, and updates come from IT. Step by step: [Windows IT guide](docs/windows-it-guide.md) · settings: [Managed settings](docs/managed-settings.md).
144
+
145
+ Open `http://localhost:3400` (Start menu: *Suveren Gateway*). The MCP server is at `http://localhost:3430`.
146
+
133
147
  ### Connecting an MCP client
134
148
 
135
- Either path exposes the same MCP transports — use the port from the path you chose (7430 for Docker, 3430 for npm):
149
+ Every option exposes the same MCP transports — use the port from the option you chose (7430 for Docker, 3430 for npm and the Windows installer):
136
150
 
137
151
  ```
138
152
  Streamable HTTP: POST http://localhost:<port>/mcp
@@ -263,6 +277,8 @@ for the full command reference.
263
277
  | [Authorization Flow](docs/authorization-flow.md) | Data flow, gate wizard, tool execution, agent context |
264
278
  | [Security Model](docs/security.md) | Enforcement layers, verification, encryption, fail-closed design |
265
279
  | [Development](docs/development.md) | Local setup, env vars, Docker, testing |
280
+ | [Windows IT guide](docs/windows-it-guide.md) | Verify, sign and distribute the Windows installer; network and updates |
281
+ | [Managed settings](docs/managed-settings.md) | Settings IT presets and locks (registry or policy file) |
266
282
 
267
283
  ---
268
284
 
@@ -316,6 +316,11 @@ async function start(args) {
316
316
  detached: true,
317
317
  stdio: ['ignore', out, out],
318
318
  env: process.env,
319
+ // Windows: `detached` gives the child its OWN console, which shows as a
320
+ // window for the gateway's whole lifetime — and closing it kills the
321
+ // gateway. Output goes to the log file anyway, so hide it. No effect
322
+ // on macOS/Linux.
323
+ windowsHide: true,
319
324
  });
320
325
  writeFileSync(PID_FILE, String(child.pid), 'utf8');
321
326
  child.unref();