pinomad 0.7.0 → 0.8.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.
- package/README.md +6 -59
- package/dist/{chunk-6ysezfy5.js → chunk-1r8a2434.js} +11 -5
- package/dist/{chunk-ywmm63ks.js → chunk-3p1eysm9.js} +4 -2
- package/dist/{chunk-12kaxggg.js → chunk-73vxwjs7.js} +2 -2
- package/dist/chunk-a4b61tx5.js +2984 -0
- package/dist/{chunk-fbkd73zr.js → chunk-cytnycs9.js} +9 -9
- package/dist/{chunk-07769pqx.js → chunk-ddh6wfv2.js} +8 -8
- package/dist/{chunk-sz3rzk55.js → chunk-fes7wjw1.js} +5 -5
- package/dist/{chunk-e4ahjbmz.js → chunk-jgd38rna.js} +210 -7
- package/dist/{chunk-1nyzr0mg.js → chunk-jjtr7fr5.js} +2323 -830
- package/dist/{chunk-7qb9tq54.js → chunk-khcpv54k.js} +64 -310
- package/dist/{chunk-m4c5gvce.js → chunk-mv94ksvb.js} +22 -5
- package/dist/{chunk-8yme2wep.js → chunk-p15hqqjz.js} +1 -1
- package/dist/{chunk-rtwxjb90.js → chunk-p56xf1r8.js} +1 -1
- package/dist/{chunk-1t58fh0k.js → chunk-ptjyk94f.js} +5 -5
- package/dist/{chunk-0xh6cy9v.js → chunk-r2ssa2ex.js} +1 -1
- package/dist/chunk-sygeb9qb.js +430 -0
- package/dist/{chunk-b1h374jr.js → chunk-v414b5pp.js} +8 -2
- package/dist/pinomad.js +10 -10
- package/package.json +2 -1
- package/web/assets/index-5DfEA9Zb.js +398 -0
- package/web/assets/{index-C0rwAo0H.css → index-D6qIPhPy.css} +1 -1
- package/web/index.html +2 -2
- package/dist/chunk-sj7rnvh4.js +0 -719
- package/dist/chunk-znhn8af7.js +0 -33
- package/web/assets/index-DGee2kNU.js +0 -394
package/dist/chunk-znhn8af7.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// packages/protocol/src/settings.ts
|
|
2
|
-
var HOST_SETTING_KEY_SET = {
|
|
3
|
-
defaultModel: true,
|
|
4
|
-
defaultThinkingLevel: true,
|
|
5
|
-
steeringMode: true,
|
|
6
|
-
followUpMode: true,
|
|
7
|
-
acceptAccountDevices: true,
|
|
8
|
-
hostName: true
|
|
9
|
-
};
|
|
10
|
-
var HOST_SETTING_KEYS = Object.keys(HOST_SETTING_KEY_SET);
|
|
11
|
-
var THINKING_LEVEL_KEYS = { off: true, minimal: true, low: true, medium: true, high: true, xhigh: true, max: true };
|
|
12
|
-
var THINKING_LEVELS = Object.keys(THINKING_LEVEL_KEYS);
|
|
13
|
-
var isThinkingLevel = (value) => typeof value === "string" && Object.prototype.hasOwnProperty.call(THINKING_LEVEL_KEYS, value);
|
|
14
|
-
var isQueueMode = (value) => value === "all" || value === "one-at-a-time";
|
|
15
|
-
var HOST_NAME_FALLBACK = "pinomad";
|
|
16
|
-
var HOST_NAME_MAX_UNITS = 64;
|
|
17
|
-
var isHostNameControl = (code) => code < 32 || code >= 127 && code <= 159;
|
|
18
|
-
function cleanHostName(name) {
|
|
19
|
-
let cleaned = name;
|
|
20
|
-
for (;; ) {
|
|
21
|
-
const local = cleaned.endsWith(".local") ? cleaned.slice(0, -".local".length) : cleaned;
|
|
22
|
-
const next = [...local.trim()].filter((c) => !isHostNameControl(c.codePointAt(0))).join("").slice(0, HOST_NAME_MAX_UNITS);
|
|
23
|
-
if (next === cleaned)
|
|
24
|
-
return next;
|
|
25
|
-
cleaned = next;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function normalizeHostName(name) {
|
|
29
|
-
const cleaned = cleanHostName(name);
|
|
30
|
-
return cleaned === "" ? HOST_NAME_FALLBACK : cleaned;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { HOST_SETTING_KEYS, THINKING_LEVELS, isThinkingLevel, isQueueMode, HOST_NAME_MAX_UNITS, cleanHostName, normalizeHostName };
|