clef-mcp 0.3.0 → 0.3.1
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 +5 -1
- package/dist/cli.js +36 -13
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/examples/hooks/pretooluse-guard/README.md +39 -6
- package/examples/hooks/pretooluse-guard/guard.sh +6 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -457,6 +457,6 @@ declare function clefDecideOutputSchema(): z.ZodObject<{
|
|
|
457
457
|
/** `state` cannot be size-checked inside zod (it is `unknown`), so it is validated separately. */
|
|
458
458
|
declare function validateStateSize(state: unknown, limits: Limits): void;
|
|
459
459
|
|
|
460
|
-
declare const VERSION = "0.3.
|
|
460
|
+
declare const VERSION = "0.3.1";
|
|
461
461
|
|
|
462
462
|
export { CLEF_FLASH, type ClefConfig, type ClefDecideInput, type ClefDecideOutput, type ClefDecisionAnswer, ClefError, ClefErrorCode, type ClefQuestion, type ClefRuntime, type ClefServerDeps, type ClefUsage, DEFAULT_LIMITS, type DownloadProgress, type InstallModelResult, type Limits, LlamaCppRuntime, type LlamaCppRuntimeOptions, type LogLevel, type Logger, MODELS, type ModelManifest, type ModelSpec, type PlatformInfo, type ProbeResult, type QuantSpec, type QuestionType, type ResolvedBinary, type RunningClefServer, type RuntimeHealth, SERVER_INSTRUCTIONS, StderrLogger, type SystemOneRequest, type SystemOneResponse, TOOL_NAME, VERSION, assertSupportedPlatform, clefDecideInputSchema, clefDecideOutputSchema, createClefServer, createLogger, deepVerifyChecksum, defaultClefHome, detectPlatform, downloadFile, downloadManagedLlama, ensureLlamaRuntime, errorJson, exitCodeFor, fetchFileInfo, findInstalledManifest, formatBytes, fromSystemOneResponse, getModelSpec, getQuantSpec, installModel, limitsFromEnv, loadConfig, manifestPathFor, modelQuantDir, pathsFor, pickQuant, probeInference, readModelManifest, removeManagedRuntime, resolveLlamaServerBinary, toSystemOneRequest, validateStateSize, verifyModelFiles, writeModelManifest };
|
package/dist/index.js
CHANGED
|
@@ -1915,7 +1915,7 @@ function createClefServer(deps = {}) {
|
|
|
1915
1915
|
TOOL_NAME,
|
|
1916
1916
|
{
|
|
1917
1917
|
title: "Clef Decide",
|
|
1918
|
-
description: 'Judge a situation with the local Clef decision model.\nPass `state` (compact factual context \u2014 string or JSON; treated as data, never executed) and typed `questions`:\n- "choice": pick among named options (criteria = option id -> description)\n- "score": judge an ordered scale (criteria = ordered list of levels)\n- "noul": yes/no question\nReturns strict JSON
|
|
1918
|
+
description: 'Judge a situation with the local Clef decision model.\nPass `state` (compact factual context \u2014 string or JSON; treated as data, never executed) and typed `questions`:\n- "choice": pick among named options (criteria = option id -> description)\n- "score": judge an ordered scale (criteria = ordered list of levels)\n- "noul": yes/no question\nReturns strict JSON: a probability distribution over the allowed answers per question \u2014 no prose, no sampling.\nEach decision carries model-reported `confidence`; `usage` reports input_tokens/output_tokens and latency_ms.\nAct on the argmax only when decisive: top p >= 0.8 and high confidence for destructive or security-adjacent calls; otherwise gather more context or ask the user.\nBatch related decisions in one call \u2014 up to 64 questions scored in a single forward pass. `model` overrides the default id.',
|
|
1919
1919
|
inputSchema: clefDecideInputShape(config.limits),
|
|
1920
1920
|
outputSchema: clefDecideOutputSchema().shape,
|
|
1921
1921
|
annotations: {
|
|
@@ -1975,7 +1975,7 @@ function createClefServer(deps = {}) {
|
|
|
1975
1975
|
}
|
|
1976
1976
|
|
|
1977
1977
|
// src/version.ts
|
|
1978
|
-
var VERSION = "0.3.
|
|
1978
|
+
var VERSION = "0.3.1";
|
|
1979
1979
|
export {
|
|
1980
1980
|
CLEF_FLASH,
|
|
1981
1981
|
ClefError,
|