@kahitsan/plugin-sdk 0.4.2 → 0.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kahitsan/plugin-sdk",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "THE single public author surface for Hilinga plugins: createPlugin, auth guards, the workspace-scoped data surface (makeDataSurface) + migrations + withTenantContext, cross-plugin RPC, and the wire-protocol verify surface. One npm package, no -composite/-protocol companions. Self-contained, no kernel internals, no signing capability.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,9 +25,9 @@
25
25
  "plugin-sdk": "./bin/cli.mjs"
26
26
  },
27
27
  "dependencies": {
28
- "express": "^5.1.0",
29
- "pg": "^8.16.0",
30
- "ws": "^8.20.1"
28
+ "@hono/node-server": "^1.19.0",
29
+ "hono": "^4.12.0",
30
+ "pg": "^8.16.0"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "node build.mjs",
@@ -98,7 +98,9 @@ const mediator = Bun.serve({
98
98
  "content-type": "application/json",
99
99
  "x-kserp-internal": DEV_SECRET,
100
100
  ...(req.headers.get("x-kserp-identity")
101
- ? { "x-kserp-identity": req.headers.get("x-kserp-identity")! }
101
+ ? (req.headers.get("x-kserp-identity")!.includes(".")
102
+ ? { "x-kserp-identity": req.headers.get("x-kserp-identity")! }
103
+ : { "x-kserp-dev-identity": req.headers.get("x-kserp-identity")! })
102
104
  : {}),
103
105
  },
104
106
  body: JSON.stringify(body.args ?? {}),