kifaru 1.0.170 → 1.0.171
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/kifaru-pi.js +15 -4
- package/package.json +2 -2
package/kifaru-pi.js
CHANGED
|
@@ -16476,7 +16476,7 @@ var init_installation = __esm(async () => {
|
|
|
16476
16476
|
});
|
|
16477
16477
|
}
|
|
16478
16478
|
Installation.upgrade = upgrade;
|
|
16479
|
-
Installation.VERSION = "1.0.
|
|
16479
|
+
Installation.VERSION = "1.0.171";
|
|
16480
16480
|
Installation.CHANNEL = typeof KIFARU_CHANNEL === "string" ? KIFARU_CHANNEL : "local";
|
|
16481
16481
|
Installation.USER_AGENT = `kifaru/${Installation.CHANNEL}/${Installation.VERSION}`;
|
|
16482
16482
|
async function latest() {
|
|
@@ -132439,12 +132439,23 @@ function createKifaruExtension(state2, cwd, deps2) {
|
|
|
132439
132439
|
factory(pi) {
|
|
132440
132440
|
pi.on("session_start", (_event, ctx) => updateStatus(ctx));
|
|
132441
132441
|
const toolStarts = new Map;
|
|
132442
|
+
let lastIngestionWarning = 0;
|
|
132443
|
+
const warnIngestionError = (ctx, error92, action2) => {
|
|
132444
|
+
const now2 = Date.now();
|
|
132445
|
+
tuiLog.warn("platform", `Dashboard ${action2} failed: ${String(error92)}`);
|
|
132446
|
+
if (now2 - lastIngestionWarning > 30000) {
|
|
132447
|
+
lastIngestionWarning = now2;
|
|
132448
|
+
const isConnectionError = /unable to connect|fetch failed|econnrefused/i.test(String(error92));
|
|
132449
|
+
const message2 = isConnectionError ? `Dashboard gateway unreachable at ${deps2.client.baseURL ?? "http://127.0.0.1:38413"}. Start it with "bun run platform:demo" (or tunnel to remote VM) to record activity.` : `Dashboard activity ingestion failed: ${String(error92)}`;
|
|
132450
|
+
ctx.ui.notify(message2, "warning");
|
|
132451
|
+
}
|
|
132452
|
+
};
|
|
132442
132453
|
pi.on("agent_start", async (_event, ctx) => {
|
|
132443
132454
|
tuiLog.info("agent", `Agent turn starting: workflow=${state2.agentKey}, target=${state2.target}`);
|
|
132444
132455
|
try {
|
|
132445
132456
|
await ensurePiPlatformRun(deps2.client, deps2.runContext);
|
|
132446
132457
|
} catch (error92) {
|
|
132447
|
-
ctx
|
|
132458
|
+
warnIngestionError(ctx, error92, "run creation");
|
|
132448
132459
|
}
|
|
132449
132460
|
});
|
|
132450
132461
|
pi.on("tool_execution_start", (event) => {
|
|
@@ -132484,7 +132495,7 @@ function createKifaruExtension(state2, cwd, deps2) {
|
|
|
132484
132495
|
completedAt: Date.now()
|
|
132485
132496
|
}));
|
|
132486
132497
|
} catch (error92) {
|
|
132487
|
-
ctx
|
|
132498
|
+
warnIngestionError(ctx, error92, "operation recording");
|
|
132488
132499
|
}
|
|
132489
132500
|
});
|
|
132490
132501
|
pi.on("agent_settled", async () => {
|
|
@@ -132857,7 +132868,7 @@ Interactive TUI Commands:
|
|
|
132857
132868
|
async function handleCli() {
|
|
132858
132869
|
const args = process.argv.slice(2);
|
|
132859
132870
|
if (args.includes("--version") || args.includes("-v")) {
|
|
132860
|
-
console.log("1.0.
|
|
132871
|
+
console.log("1.0.171");
|
|
132861
132872
|
process.exit(0);
|
|
132862
132873
|
}
|
|
132863
132874
|
if (args.includes("--help") || args.includes("-h")) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kifaru",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.0.171",
|
|
4
|
+
"gitHead": "cdd22c7a2e77ae0a717564abee14b69a0e607f06",
|
|
5
5
|
"description": "Kifaru security agent on the Pi runtime",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|