@hivelore/cli 0.35.0 → 0.36.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/dist/{chunk-ZR7UPTRR.js → chunk-EWJQ3YE7.js} +10 -3
- package/dist/chunk-EWJQ3YE7.js.map +1 -0
- package/dist/index.js +75 -23
- package/dist/index.js.map +1 -1
- package/dist/{server-2FUYM6KI.js → server-JFLUYWUB.js} +2 -2
- package/package.json +5 -5
- package/dist/chunk-ZR7UPTRR.js.map +0 -1
- /package/dist/{server-2FUYM6KI.js.map → server-JFLUYWUB.js.map} +0 -0
|
@@ -1278,6 +1278,9 @@ var ProposeSensorInputSchema = {
|
|
|
1278
1278
|
bad_example: z15.string().optional().describe("A code snippet that SHOULD match \u2014 proves the sensor catches the mistake. If omitted, examples are read from the lesson body."),
|
|
1279
1279
|
severity: z15.enum(["warn", "block"]).default("block").describe("block = hard-fail the gate (accepted ONLY if it passes self-validation). warn = advisory."),
|
|
1280
1280
|
message: z15.string().optional().describe("LLM-facing fix message shown when it fires. Defaults to one derived from the lesson."),
|
|
1281
|
+
incident: z15.string().optional().describe(
|
|
1282
|
+
"Provenance: the real incident this sensor guards \u2014 a ticket/prod ref ('prod #442', 'INC-1029', '2026-06 refund overcharge'). Turns 'a test failed' into 'this reproduces the incident the test exists to prevent'. Surfaced in the block message and the prevention receipt. Strongly recommended for command/test sensors routed from a post-incident test."
|
|
1283
|
+
),
|
|
1281
1284
|
flags: z15.string().optional().describe("Optional regex flags (e.g. 'i' for case-insensitive)."),
|
|
1282
1285
|
paths: z15.array(z15.string()).default([]).describe("Override scope paths. Defaults to the memory's anchor paths.")
|
|
1283
1286
|
};
|
|
@@ -1397,6 +1400,7 @@ ${verdictCmd.detail}`,
|
|
|
1397
1400
|
...input.timeout_ms ? { timeout_ms: input.timeout_ms } : {},
|
|
1398
1401
|
paths: anchorPathsCmd,
|
|
1399
1402
|
message: input.message?.trim() || deriveMessage(found.memory.body, input.command.trim(), void 0),
|
|
1403
|
+
...input.incident?.trim() ? { incident: input.incident.trim() } : {},
|
|
1400
1404
|
severity: input.severity,
|
|
1401
1405
|
autogen: false,
|
|
1402
1406
|
last_fired: null
|
|
@@ -1427,6 +1431,7 @@ ${verdictCmd.detail}`,
|
|
|
1427
1431
|
...input.flags ? { flags: input.flags } : {},
|
|
1428
1432
|
paths: anchorPaths,
|
|
1429
1433
|
message: input.message?.trim() || deriveMessage(found.memory.body, input.pattern, input.absent),
|
|
1434
|
+
...input.incident?.trim() ? { incident: input.incident.trim() } : {},
|
|
1430
1435
|
severity: input.severity,
|
|
1431
1436
|
autogen: false,
|
|
1432
1437
|
// deliberately authored by the agent and validated — higher trust than heuristic
|
|
@@ -1479,6 +1484,7 @@ var MemTriedInputSchema = {
|
|
|
1479
1484
|
absent: z16.string().optional().describe("kind=regex: regex marking CORRECT usage nearby \u2014 excludes it from firing"),
|
|
1480
1485
|
severity: z16.enum(["warn", "block"]).default("block").describe("block = deterministic gate refusal"),
|
|
1481
1486
|
message: z16.string().optional().describe("Self-correction message shown when the sensor fires"),
|
|
1487
|
+
incident: z16.string().optional().describe("Provenance: the incident this sensor guards (e.g. 'prod #442') \u2014 surfaced when it fires and in the receipt"),
|
|
1482
1488
|
bad_example: z16.string().optional().describe("kind=regex: code snippet the sensor MUST fire on (validation)")
|
|
1483
1489
|
}).optional().describe(
|
|
1484
1490
|
"ONE-SHOT loop close: validate and attach a sensor in the same call (equivalent to a follow-up propose_sensor). Validated against HEAD \u2014 silent on current code, fires on the bad example. If rejected, the attempt is still saved and the verdict tells you how to revise."
|
|
@@ -1522,6 +1528,7 @@ async function memTried(input, ctx) {
|
|
|
1522
1528
|
absent: input.sensor.absent,
|
|
1523
1529
|
severity: input.sensor.severity ?? "block",
|
|
1524
1530
|
message: input.sensor.message,
|
|
1531
|
+
incident: input.sensor.incident,
|
|
1525
1532
|
bad_example: input.sensor.bad_example,
|
|
1526
1533
|
flags: void 0,
|
|
1527
1534
|
paths: []
|
|
@@ -2723,7 +2730,7 @@ function oneLine(value) {
|
|
|
2723
2730
|
return value.replace(/\s+/g, " ").replace(/"/g, '\\"').trim().slice(0, 120);
|
|
2724
2731
|
}
|
|
2725
2732
|
function serverVersion() {
|
|
2726
|
-
return true ? "0.
|
|
2733
|
+
return true ? "0.36.0" : "dev";
|
|
2727
2734
|
}
|
|
2728
2735
|
var CodeMapInputSchema = {
|
|
2729
2736
|
file: z20.string().optional().describe("Filter to files whose path contains this substring"),
|
|
@@ -4050,7 +4057,7 @@ When done, respond with: "Imported N memories: [list of IDs]" or "Nothing action
|
|
|
4050
4057
|
};
|
|
4051
4058
|
}
|
|
4052
4059
|
var SERVER_NAME = "hivelore";
|
|
4053
|
-
var SERVER_VERSION = "0.
|
|
4060
|
+
var SERVER_VERSION = "0.36.0";
|
|
4054
4061
|
function jsonResult(data) {
|
|
4055
4062
|
return {
|
|
4056
4063
|
content: [
|
|
@@ -4993,4 +5000,4 @@ export {
|
|
|
4993
5000
|
printHaiveMcpVersion,
|
|
4994
5001
|
runHaiveMcpStdio
|
|
4995
5002
|
};
|
|
4996
|
-
//# sourceMappingURL=chunk-
|
|
5003
|
+
//# sourceMappingURL=chunk-EWJQ3YE7.js.map
|