signetai 0.221.2 → 0.221.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/mcp-stdio.js +46 -4
- package/native-manifest.json +14 -14
- package/package.json +6 -6
package/dist/mcp-stdio.js
CHANGED
|
@@ -41495,8 +41495,10 @@ function readRuntimeConfig(agentsDir) {
|
|
|
41495
41495
|
base_url: active ? endpoint?.trim() ? endpoint : endpoints[provider] : "",
|
|
41496
41496
|
api_key: active ? embedding.api_key : undefined,
|
|
41497
41497
|
warmNative: embedding.warmNative,
|
|
41498
|
+
preloadNative: embedding.preloadNative,
|
|
41498
41499
|
promptSubmitTimeoutMs: Math.max(MIN_PROMPT_SUBMIT_EMBEDDING_TIMEOUT_MS, Math.min(MAX_PROMPT_SUBMIT_EMBEDDING_TIMEOUT_MS, embedding.promptSubmitTimeoutMs)),
|
|
41499
41500
|
llamaCppMaxInputTokens: Math.max(MIN_LLAMACPP_MAX_INPUT_TOKENS, Math.min(MAX_LLAMACPP_MAX_INPUT_TOKENS, embedding.llamaCppMaxInputTokens)),
|
|
41501
|
+
idleTtlMs: Math.max(MIN_NATIVE_EMBEDDING_IDLE_TTL_MS, Math.min(MAX_NATIVE_EMBEDDING_IDLE_TTL_MS, embedding.idleTtlMs)),
|
|
41500
41502
|
...rates && Object.keys(rates).length ? { costRates: rates } : {}
|
|
41501
41503
|
},
|
|
41502
41504
|
search: {
|
|
@@ -41873,7 +41875,7 @@ function loadMemoryConfig(agentsDir) {
|
|
|
41873
41875
|
throw new MemoryConfigValidationError(`${config2.path ?? join6(agentsDir, "agent.yaml")}: ${error51 instanceof Error ? error51.message : "invalid runtime configuration"}`);
|
|
41874
41876
|
}
|
|
41875
41877
|
}
|
|
41876
|
-
var DEFAULT_DREAMING_SURPRISAL, DEFAULT_DREAMING, PipelineConfigValidationError, DEFAULT_PIPELINE_V2, DEFAULT_OLLAMA_BASE_URL, DEFAULT_LLAMACPP_BASE_URL, DEFAULT_LLAMACPP_MAX_INPUT_TOKENS = 1400, MIN_LLAMACPP_MAX_INPUT_TOKENS = 128, MAX_LLAMACPP_MAX_INPUT_TOKENS = 131072, DEFAULT_OPENAI_BASE_URL = "https://api.openai.com/v1", DEFAULT_PROMPT_SUBMIT_EMBEDDING_TIMEOUT_MS = 1000, MIN_PROMPT_SUBMIT_EMBEDDING_TIMEOUT_MS = 1000, MAX_PROMPT_SUBMIT_EMBEDDING_TIMEOUT_MS = 300000, MemoryConfigValidationError, cost, costs, fraction, runtimeSchema;
|
|
41878
|
+
var DEFAULT_DREAMING_SURPRISAL, DEFAULT_DREAMING, PipelineConfigValidationError, DEFAULT_PIPELINE_V2, DEFAULT_OLLAMA_BASE_URL, DEFAULT_LLAMACPP_BASE_URL, DEFAULT_LLAMACPP_MAX_INPUT_TOKENS = 1400, MIN_LLAMACPP_MAX_INPUT_TOKENS = 128, MAX_LLAMACPP_MAX_INPUT_TOKENS = 131072, DEFAULT_OPENAI_BASE_URL = "https://api.openai.com/v1", DEFAULT_PROMPT_SUBMIT_EMBEDDING_TIMEOUT_MS = 1000, MIN_PROMPT_SUBMIT_EMBEDDING_TIMEOUT_MS = 1000, MAX_PROMPT_SUBMIT_EMBEDDING_TIMEOUT_MS = 300000, DEFAULT_NATIVE_EMBEDDING_IDLE_TTL_MS, MIN_NATIVE_EMBEDDING_IDLE_TTL_MS = 1000, MAX_NATIVE_EMBEDDING_IDLE_TTL_MS, MemoryConfigValidationError, cost, costs, fraction, runtimeSchema;
|
|
41877
41879
|
var init_memory_config = __esm(() => {
|
|
41878
41880
|
init_zod();
|
|
41879
41881
|
init_dist();
|
|
@@ -42059,6 +42061,8 @@ var init_memory_config = __esm(() => {
|
|
|
42059
42061
|
};
|
|
42060
42062
|
DEFAULT_OLLAMA_BASE_URL = `http://${LOOPBACK_HOST}:11434`;
|
|
42061
42063
|
DEFAULT_LLAMACPP_BASE_URL = `http://${LOOPBACK_HOST}:8080`;
|
|
42064
|
+
DEFAULT_NATIVE_EMBEDDING_IDLE_TTL_MS = 10 * 60 * 1000;
|
|
42065
|
+
MAX_NATIVE_EMBEDDING_IDLE_TTL_MS = 24 * 60 * 60 * 1000;
|
|
42062
42066
|
MemoryConfigValidationError = class MemoryConfigValidationError extends Error {
|
|
42063
42067
|
};
|
|
42064
42068
|
cost = exports_external.number().nonnegative().optional();
|
|
@@ -42074,8 +42078,10 @@ var init_memory_config = __esm(() => {
|
|
|
42074
42078
|
endpoint: exports_external.string().optional(),
|
|
42075
42079
|
api_key: exports_external.string().optional(),
|
|
42076
42080
|
warmNative: exports_external.boolean().default(true),
|
|
42081
|
+
preloadNative: exports_external.boolean().default(false),
|
|
42077
42082
|
promptSubmitTimeoutMs: exports_external.number().default(DEFAULT_PROMPT_SUBMIT_EMBEDDING_TIMEOUT_MS),
|
|
42078
42083
|
llamaCppMaxInputTokens: exports_external.number().default(DEFAULT_LLAMACPP_MAX_INPUT_TOKENS),
|
|
42084
|
+
idleTtlMs: exports_external.number().int().default(DEFAULT_NATIVE_EMBEDDING_IDLE_TTL_MS),
|
|
42079
42085
|
costRates: costs.optional(),
|
|
42080
42086
|
cost_rates: costs.optional()
|
|
42081
42087
|
}).prefault({}),
|
|
@@ -53465,6 +53471,44 @@ import { dirname as dirname9, join as join11 } from "node:path";
|
|
|
53465
53471
|
function nativeRuntimeAssets() {
|
|
53466
53472
|
return globalThis.__SIGNET_NATIVE_RUNTIME_ASSETS__ ?? {};
|
|
53467
53473
|
}
|
|
53474
|
+
function materializeEmbeddedWorker(path, content) {
|
|
53475
|
+
const valid = () => {
|
|
53476
|
+
try {
|
|
53477
|
+
return existsSync10(path) && readFileSync9(path).equals(content);
|
|
53478
|
+
} catch {
|
|
53479
|
+
return false;
|
|
53480
|
+
}
|
|
53481
|
+
};
|
|
53482
|
+
if (valid())
|
|
53483
|
+
return;
|
|
53484
|
+
const tempDir = mkdtempSync(join11(dirname9(path), ".tmp-worker-"));
|
|
53485
|
+
const tempPath = join11(tempDir, "worker.mjs");
|
|
53486
|
+
try {
|
|
53487
|
+
writeFileSync(tempPath, content, { flag: "wx", mode: 384 });
|
|
53488
|
+
let published = false;
|
|
53489
|
+
for (let attempt = 0;attempt < 2 && !published; attempt += 1) {
|
|
53490
|
+
try {
|
|
53491
|
+
renameSync6(tempPath, path);
|
|
53492
|
+
published = true;
|
|
53493
|
+
} catch (error51) {
|
|
53494
|
+
const code = typeof error51 === "object" && error51 !== null && "code" in error51 ? error51.code : undefined;
|
|
53495
|
+
if (code !== "EEXIST" && code !== "EPERM" && code !== "EBUSY")
|
|
53496
|
+
throw error51;
|
|
53497
|
+
if (valid()) {
|
|
53498
|
+
published = true;
|
|
53499
|
+
} else if (attempt === 0) {
|
|
53500
|
+
try {
|
|
53501
|
+
unlinkSync4(path);
|
|
53502
|
+
} catch {}
|
|
53503
|
+
}
|
|
53504
|
+
}
|
|
53505
|
+
}
|
|
53506
|
+
if (!published)
|
|
53507
|
+
throw new Error(`Unable to publish embedded worker: ${path}`);
|
|
53508
|
+
} finally {
|
|
53509
|
+
rmSync3(tempDir, { recursive: true, force: true });
|
|
53510
|
+
}
|
|
53511
|
+
}
|
|
53468
53512
|
function resolveEmbeddedWorkerPath(name) {
|
|
53469
53513
|
const worker = (nativeRuntimeAssets().workers ?? []).find((asset) => asset.name === name);
|
|
53470
53514
|
if (!worker)
|
|
@@ -53473,9 +53517,7 @@ function resolveEmbeddedWorkerPath(name) {
|
|
|
53473
53517
|
const dir = join11(tmpdir(), "signet-native-workers");
|
|
53474
53518
|
const path = join11(dir, `${name.replace(/[^a-zA-Z0-9_.-]/g, "_")}-${hash2}.mjs`);
|
|
53475
53519
|
mkdirSync5(dir, { recursive: true });
|
|
53476
|
-
|
|
53477
|
-
writeFileSync(path, Buffer.from(worker.contentBase64, "base64"));
|
|
53478
|
-
}
|
|
53520
|
+
materializeEmbeddedWorker(path, Buffer.from(worker.contentBase64, "base64"));
|
|
53479
53521
|
return path;
|
|
53480
53522
|
}
|
|
53481
53523
|
|
package/native-manifest.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.221.
|
|
3
|
+
"version": "0.221.4",
|
|
4
4
|
"assets": [
|
|
5
5
|
{
|
|
6
6
|
"name": "signet-darwin-arm64",
|
|
7
7
|
"platform": "darwin-arm64",
|
|
8
|
-
"sha256": "
|
|
9
|
-
"size":
|
|
8
|
+
"sha256": "ea97f26986fe883d309372c03246e09124839f8a8e5ea655aca405448871771a",
|
|
9
|
+
"size": 202411936
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "signet-darwin-x64",
|
|
13
13
|
"platform": "darwin-x64",
|
|
14
|
-
"sha256": "
|
|
15
|
-
"size":
|
|
14
|
+
"sha256": "21946660ab4e0a777ba55214858a962c5ceed0da3f3f0c26aa10f806f090b776",
|
|
15
|
+
"size": 206817856
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "signet-linux-arm64",
|
|
19
19
|
"platform": "linux-arm64",
|
|
20
|
-
"sha256": "
|
|
21
|
-
"size":
|
|
20
|
+
"sha256": "a0fa94de6b25d267ed06305f2108ab14a6d519330c10ec7d3c12e9e89ebc9240",
|
|
21
|
+
"size": 249424165
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "signet-linux-x64",
|
|
25
25
|
"platform": "linux-x64",
|
|
26
|
-
"sha256": "
|
|
27
|
-
"size":
|
|
26
|
+
"sha256": "1daad50e5d2a20c6750243aeb990432f84c433d0927a2378b8ce67ad1d4757bd",
|
|
27
|
+
"size": 252212053
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "signet-win32-x64.exe",
|
|
31
31
|
"platform": "win32-x64",
|
|
32
|
-
"sha256": "
|
|
33
|
-
"size":
|
|
32
|
+
"sha256": "c779f8a89aa47cdf1260aec388244df2d2d2961356f6ae532408c89f32d91ab5",
|
|
33
|
+
"size": 258668032
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"components": {
|
|
37
37
|
"connectors": {
|
|
38
|
-
"url": "signet-connectors-0.221.
|
|
39
|
-
"sha256": "
|
|
40
|
-
"size":
|
|
38
|
+
"url": "signet-connectors-0.221.4.tar.gz",
|
|
39
|
+
"sha256": "14240667ea04256af2d92ce19dcaa5ef22e8352b642cc25cd10858b54f2c42ff",
|
|
40
|
+
"size": 21843
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signetai",
|
|
3
|
-
"version": "0.221.
|
|
3
|
+
"version": "0.221.4",
|
|
4
4
|
"description": "Signet native CLI installer wrapper",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
67
|
"optionalDependencies": {
|
|
68
|
-
"signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.221.
|
|
69
|
-
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.221.
|
|
70
|
-
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.221.
|
|
71
|
-
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.221.
|
|
72
|
-
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.221.
|
|
68
|
+
"signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.221.4/signetai-darwin-arm64-0.221.4.tgz",
|
|
69
|
+
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.221.4/signetai-darwin-x64-0.221.4.tgz",
|
|
70
|
+
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.221.4/signetai-linux-arm64-0.221.4.tgz",
|
|
71
|
+
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.221.4/signetai-linux-x64-0.221.4.tgz",
|
|
72
|
+
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.221.4/signetai-win32-x64-0.221.4.tgz"
|
|
73
73
|
}
|
|
74
74
|
}
|