@suveren/gateway 0.3.3 → 0.3.4
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/dist/control-plane/index.mjs +2 -2
- package/dist/mcp-server/http.mjs +57 -59
- package/dist/ui/assets/index-mg8gMTzG.js +105 -0
- package/dist/ui/index.html +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/sbcs-data.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/utf32.js +10 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/package.json +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/types/encodings.d.ts +2 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-data.js +2 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/utf32.js +10 -3
- package/node_modules/raw-body/node_modules/iconv-lite/package.json +2 -2
- package/node_modules/raw-body/node_modules/iconv-lite/types/encodings.d.ts +2 -0
- package/package.json +1 -1
- package/dist/ui/assets/index-RkZBhIxU.js +0 -105
package/dist/ui/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Suveren</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-mg8gMTzG.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-BUgn3e63.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
@@ -31,7 +31,9 @@ function Utf32Encoder (options, codec) {
|
|
|
31
31
|
|
|
32
32
|
Utf32Encoder.prototype.write = function (str) {
|
|
33
33
|
var src = Buffer.from(str, "ucs2")
|
|
34
|
-
|
|
34
|
+
// src.length * 2 covers this chunk's code units (4 bytes each); the extra 4 bytes leave room for a
|
|
35
|
+
// high surrogate held over from a previous chunk, which is flushed ahead of this chunk's units.
|
|
36
|
+
var dst = Buffer.alloc(src.length * 2 + 4)
|
|
35
37
|
var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE
|
|
36
38
|
var offset = 0
|
|
37
39
|
|
|
@@ -113,9 +115,9 @@ Utf32Decoder.prototype.write = function (src) {
|
|
|
113
115
|
// NOTE: codepoint is a signed int32 and can be negative.
|
|
114
116
|
// NOTE: We copied this block from below to help V8 optimize it (it works with array, not buffer).
|
|
115
117
|
if (isLE) {
|
|
116
|
-
codepoint = overflow[
|
|
118
|
+
codepoint = overflow[0] | (overflow[1] << 8) | (overflow[2] << 16) | (overflow[3] << 24)
|
|
117
119
|
} else {
|
|
118
|
-
codepoint = overflow[
|
|
120
|
+
codepoint = overflow[3] | (overflow[2] << 8) | (overflow[1] << 16) | (overflow[0] << 24)
|
|
119
121
|
}
|
|
120
122
|
overflow.length = 0
|
|
121
123
|
|
|
@@ -169,7 +171,12 @@ function _writeCodepoint (dst, offset, codepoint, badChar) {
|
|
|
169
171
|
};
|
|
170
172
|
|
|
171
173
|
Utf32Decoder.prototype.end = function () {
|
|
174
|
+
if (this.overflow.length === 0) { return }
|
|
175
|
+
|
|
176
|
+
// A leftover, incomplete 4-byte code unit at the end of the input is ill-formed. Substitute a
|
|
177
|
+
// single U+FFFD (Unicode Standard conformance clause C10) instead of silently dropping the bytes.
|
|
172
178
|
this.overflow.length = 0
|
|
179
|
+
return String.fromCharCode(this.badChar)
|
|
173
180
|
}
|
|
174
181
|
|
|
175
182
|
// == UTF-32 Auto codec =============================================================
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iconv-lite",
|
|
3
3
|
"description": "Convert character encodings in pure javascript.",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"iconv",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"stream": false
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@arethetypeswrong/cli": "^0.
|
|
49
|
+
"@arethetypeswrong/cli": "^0.18.4",
|
|
50
50
|
"@stylistic/eslint-plugin": "^5.1.0",
|
|
51
51
|
"@stylistic/eslint-plugin-js": "^4.1.0",
|
|
52
52
|
"@types/node": "^24.0.12",
|
|
@@ -31,7 +31,9 @@ function Utf32Encoder (options, codec) {
|
|
|
31
31
|
|
|
32
32
|
Utf32Encoder.prototype.write = function (str) {
|
|
33
33
|
var src = Buffer.from(str, "ucs2")
|
|
34
|
-
|
|
34
|
+
// src.length * 2 covers this chunk's code units (4 bytes each); the extra 4 bytes leave room for a
|
|
35
|
+
// high surrogate held over from a previous chunk, which is flushed ahead of this chunk's units.
|
|
36
|
+
var dst = Buffer.alloc(src.length * 2 + 4)
|
|
35
37
|
var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE
|
|
36
38
|
var offset = 0
|
|
37
39
|
|
|
@@ -113,9 +115,9 @@ Utf32Decoder.prototype.write = function (src) {
|
|
|
113
115
|
// NOTE: codepoint is a signed int32 and can be negative.
|
|
114
116
|
// NOTE: We copied this block from below to help V8 optimize it (it works with array, not buffer).
|
|
115
117
|
if (isLE) {
|
|
116
|
-
codepoint = overflow[
|
|
118
|
+
codepoint = overflow[0] | (overflow[1] << 8) | (overflow[2] << 16) | (overflow[3] << 24)
|
|
117
119
|
} else {
|
|
118
|
-
codepoint = overflow[
|
|
120
|
+
codepoint = overflow[3] | (overflow[2] << 8) | (overflow[1] << 16) | (overflow[0] << 24)
|
|
119
121
|
}
|
|
120
122
|
overflow.length = 0
|
|
121
123
|
|
|
@@ -169,7 +171,12 @@ function _writeCodepoint (dst, offset, codepoint, badChar) {
|
|
|
169
171
|
};
|
|
170
172
|
|
|
171
173
|
Utf32Decoder.prototype.end = function () {
|
|
174
|
+
if (this.overflow.length === 0) { return }
|
|
175
|
+
|
|
176
|
+
// A leftover, incomplete 4-byte code unit at the end of the input is ill-formed. Substitute a
|
|
177
|
+
// single U+FFFD (Unicode Standard conformance clause C10) instead of silently dropping the bytes.
|
|
172
178
|
this.overflow.length = 0
|
|
179
|
+
return String.fromCharCode(this.badChar)
|
|
173
180
|
}
|
|
174
181
|
|
|
175
182
|
// == UTF-32 Auto codec =============================================================
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iconv-lite",
|
|
3
3
|
"description": "Convert character encodings in pure javascript.",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"iconv",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"stream": false
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@arethetypeswrong/cli": "^0.
|
|
49
|
+
"@arethetypeswrong/cli": "^0.18.4",
|
|
50
50
|
"@stylistic/eslint-plugin": "^5.1.0",
|
|
51
51
|
"@stylistic/eslint-plugin-js": "^4.1.0",
|
|
52
52
|
"@types/node": "^24.0.12",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suveren/gateway",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Suveren gateway — local agent gateway built in compliance with the Human Agency Protocol (HAP). Runs the UI, control plane, and MCP server in one Node process.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "server.js",
|