cataly-darwin-x64 0.2.3 → 0.2.5
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/cataly +0 -0
- package/cataly.ts +2 -2
- package/package.json +1 -1
package/cataly
CHANGED
|
Binary file
|
package/cataly.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type {
|
|
|
12
12
|
} from "@oh-my-pi/pi-coding-agent";
|
|
13
13
|
|
|
14
14
|
const PROTOCOL = 1;
|
|
15
|
-
const VERSION = "0.2.
|
|
15
|
+
const VERSION = "0.2.5"; // `cataly extension` writes the release file with it filled in (IR req. 5-6)
|
|
16
16
|
const MARKER = "cataly";
|
|
17
17
|
const DELIVERY = "cataly-delivery";
|
|
18
18
|
const [CONNECT_MS, HEARTBEAT_MS, SILENT_MS, CHANGE_MS] = [1_000, 15_000, 45_000, 10_000];
|
|
@@ -561,7 +561,7 @@ export class Bridge {
|
|
|
561
561
|
async tool(name: string, ms: number, callId: string, params: Json, ctx: Ctx): Promise<AgentToolResult> {
|
|
562
562
|
if (!this.main(ctx)) throw new Error(`${name} is not available in this session.`);
|
|
563
563
|
const call = { session: this.session, agent: ctx?.agent?.id, call: callId, tool: name, input: params };
|
|
564
|
-
const answer = await this.request("bridge.tool", { ...call,
|
|
564
|
+
const answer = await this.request("bridge.tool", { ...call, facts: this.evidence(params) }, ms);
|
|
565
565
|
if (!answer) throw new Error(`Cataly did not answer in time: ${UNSURE}`);
|
|
566
566
|
const text = String(answer.text ?? "");
|
|
567
567
|
if (answer.error) throw new Error(text);
|
package/package.json
CHANGED