@kage-core/kage-graph-mcp 2.5.6 → 2.5.7
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/cli.js +4 -1
- package/dist/kernel.js +10 -4
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,6 @@ const CORE_USAGE = `Kage — code-grounded memory for coding agents
|
|
|
15
15
|
Core commands:
|
|
16
16
|
kage install [--project <dir>] one-shot: init + index + auto-wire detected agents
|
|
17
17
|
kage scan --project <dir> 60-second truth report on any repo (zero setup)
|
|
18
|
-
kage demo watch the reject/withhold loop run in a sandbox
|
|
19
18
|
kage init --project <dir> create repo memory (.agent_memory only)
|
|
20
19
|
kage index --project <dir> [--full] build/refresh code graph + indexes
|
|
21
20
|
kage recall "<query>" --project <dir> grounded recall from repo memory
|
|
@@ -1406,6 +1405,10 @@ async function main() {
|
|
|
1406
1405
|
`~${(0, kernel_js_1.formatTokenCount)(summary.all_time.replay_tokens)} all time ` +
|
|
1407
1406
|
`(discovery cost of served memories vs their compressed read cost)`);
|
|
1408
1407
|
}
|
|
1408
|
+
const usdOverridden = Number.isFinite(Number(process.env.KAGE_USD_PER_MTOK)) && Number(process.env.KAGE_USD_PER_MTOK) > 0;
|
|
1409
|
+
console.log(`\nDollars estimated at $${kernel_js_1.VALUE_DOLLARS_PER_MILLION_TOKENS}/1M input tokens ` +
|
|
1410
|
+
`(${usdOverridden ? "via KAGE_USD_PER_MTOK" : "Sonnet-class default — set KAGE_USD_PER_MTOK for your model"}). ` +
|
|
1411
|
+
`Ledger: .agent_memory/reports/value.json`);
|
|
1409
1412
|
return;
|
|
1410
1413
|
}
|
|
1411
1414
|
if (command === "file-context") {
|
package/dist/kernel.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.PACKET_MERGE_DRIVER_CONFIG = exports.PACKET_MERGE_ATTRIBUTE_LINE = exports.AUTO_DISTILL_SIGNAL_THRESHOLD = exports.AUTO_DISTILL_TAG = exports.SETUP_AGENTS = exports.MEMORY_TYPES = exports.PACKET_SCHEMA_VERSION = void 0;
|
|
36
|
+
exports.PACKET_MERGE_DRIVER_CONFIG = exports.PACKET_MERGE_ATTRIBUTE_LINE = exports.AUTO_DISTILL_SIGNAL_THRESHOLD = exports.AUTO_DISTILL_TAG = exports.VALUE_DOLLARS_PER_MILLION_TOKENS = exports.SETUP_AGENTS = exports.MEMORY_TYPES = exports.PACKET_SCHEMA_VERSION = void 0;
|
|
37
37
|
exports.memoryRoot = memoryRoot;
|
|
38
38
|
exports.packetsDir = packetsDir;
|
|
39
39
|
exports.pendingDir = pendingDir;
|
|
@@ -1017,8 +1017,14 @@ function recordRecallAccess(projectDir, results) {
|
|
|
1017
1017
|
// ---------------------------------------------------------------------------
|
|
1018
1018
|
const VALUE_LEDGER_SCHEMA_VERSION = 1;
|
|
1019
1019
|
const VALUE_LEDGER_EVENT_CAP = 5000;
|
|
1020
|
-
//
|
|
1021
|
-
|
|
1020
|
+
// Input price used for the dollar estimate. Default: Sonnet-class ~$3 per 1M input tokens (the
|
|
1021
|
+
// typical coding-agent tier) — deliberately conservative so the savings figure never overstates.
|
|
1022
|
+
// Override with KAGE_USD_PER_MTOK to match your model (e.g. 15 for Opus, 2.5 for GPT-4o, 0.8 for
|
|
1023
|
+
// Haiku). The old default ($15, Opus pricing) overstated savings ~5x for most users.
|
|
1024
|
+
exports.VALUE_DOLLARS_PER_MILLION_TOKENS = (() => {
|
|
1025
|
+
const raw = Number(process.env.KAGE_USD_PER_MTOK);
|
|
1026
|
+
return Number.isFinite(raw) && raw > 0 ? raw : 3;
|
|
1027
|
+
})();
|
|
1022
1028
|
function valueLedgerPath(projectDir) {
|
|
1023
1029
|
return (0, node_path_1.join)(reportsDir(projectDir), "value.json");
|
|
1024
1030
|
}
|
|
@@ -1112,7 +1118,7 @@ function recordValueEvent(projectDir, event) {
|
|
|
1112
1118
|
recordValueEvents(projectDir, [event]);
|
|
1113
1119
|
}
|
|
1114
1120
|
function estimatedTokenDollars(tokensSaved) {
|
|
1115
|
-
return Number(((tokensSaved / 1_000_000) * VALUE_DOLLARS_PER_MILLION_TOKENS).toFixed(2));
|
|
1121
|
+
return Number(((tokensSaved / 1_000_000) * exports.VALUE_DOLLARS_PER_MILLION_TOKENS).toFixed(2));
|
|
1116
1122
|
}
|
|
1117
1123
|
function summarizeValueWindow(events, cutoff) {
|
|
1118
1124
|
const window = { tokens_saved: 0, replay_tokens: 0, stale_withheld: 0, stale_caught: 0, recalls: 0, caller_answers: 0 };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kage-core/kage-graph-mcp",
|
|
3
|
-
"version": "2.5.
|
|
4
|
-
"description": "Team memory for coding agents: captures the decisions, runbooks, and bug fixes that get lost, verified against your code and shared via git. MCP server,
|
|
3
|
+
"version": "2.5.7",
|
|
4
|
+
"description": "Team memory for coding agents: captures the decisions, runbooks, and bug fixes that get lost, verified against your code and shared via git. MCP server, no account, no API key.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist/**/*.js",
|