@primusclaw/personal-agent-runtime 0.15.0 → 0.15.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/dist/index.js +12 -0
- package/dist/types/claw/remote-agents.d.ts +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -581,6 +581,18 @@ var HttpRemoteAgents = class {
|
|
|
581
581
|
title: typeof d["title"] === "string" ? d["title"] : ""
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
|
+
async mutedTerminals(key2) {
|
|
585
|
+
return rowsOf(await this.#call("GET", "/approvals/mutes", key2), "the muted conversations").map((row) => {
|
|
586
|
+
if (typeof row["muted_since"] !== "string")
|
|
587
|
+
throw new ClawAnswerInvalid4("a muted conversation has no muted_since");
|
|
588
|
+
return {
|
|
589
|
+
item: typeof row["item"] === "number" ? row["item"] : null,
|
|
590
|
+
machine: typeof row["machine"] === "string" ? row["machine"] : null,
|
|
591
|
+
title: typeof row["title"] === "string" ? row["title"] : null,
|
|
592
|
+
muted_since: row["muted_since"]
|
|
593
|
+
};
|
|
594
|
+
});
|
|
595
|
+
}
|
|
584
596
|
async pair(key2) {
|
|
585
597
|
return read(
|
|
586
598
|
remotePairingSchema,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ClawCredential, type ClawRemoteAgentsPort, type JsonObject, type NewRemoteSession, type RemoteConnector, type RemoteEventRow, type RemoteHidden, type RemotePairing, type RemoteSession, type RemoteSetup, type SseEvent, type TerminalMute } from "@primusclaw/personal-agent";
|
|
1
|
+
import { type ClawCredential, type ClawRemoteAgentsPort, type JsonObject, type NewRemoteSession, type RemoteConnector, type RemoteEventRow, type RemoteHidden, type RemoteMutedConversation, type RemotePairing, type RemoteSession, type RemoteSetup, type SseEvent, type TerminalMute } from "@primusclaw/personal-agent";
|
|
2
2
|
import { type ClawHttp } from "./http.js";
|
|
3
3
|
/** `ClawRemoteAgentsPort` over Claw's HTTP API; every call names this client (`X-Claw-Client`) in Claw's audit trail. */
|
|
4
4
|
export declare class HttpRemoteAgents implements ClawRemoteAgentsPort {
|
|
@@ -15,6 +15,7 @@ export declare class HttpRemoteAgents implements ClawRemoteAgentsPort {
|
|
|
15
15
|
summary(key: ClawCredential): Promise<number>;
|
|
16
16
|
setSummary(key: ClawCredential, minutes: number): Promise<number>;
|
|
17
17
|
muteTerminal(key: ClawCredential, item: number, muted: boolean): Promise<TerminalMute>;
|
|
18
|
+
mutedTerminals(key: ClawCredential): Promise<RemoteMutedConversation[]>;
|
|
18
19
|
pair(key: ClawCredential): Promise<RemotePairing>;
|
|
19
20
|
hide(key: ClawCredential, connectorId: string, refs: readonly string[], hidden: boolean): Promise<RemoteHidden>;
|
|
20
21
|
revoke(key: ClawCredential, connectorId: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primusclaw/personal-agent-runtime",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Node adapters for the personal agent's ports (clock, randomness, logging, storage, Claw, metrics, HTTP), and, at @primusclaw/personal-agent-runtime/worker, the worker process on any chat surface.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@primusclaw/personal-agent": "0.15.
|
|
36
|
+
"@primusclaw/personal-agent": "0.15.1",
|
|
37
37
|
"fastify": "^5.12.8",
|
|
38
38
|
"zod": "^4.6.7"
|
|
39
39
|
}
|