@agentvault/agentvault 0.13.8 → 0.13.9

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.d.ts CHANGED
@@ -5,5 +5,5 @@ export type { ResolvedAccount } from "./account-config.js";
5
5
  export { agentVaultPlugin, setOcRuntime, getActiveChannel } from "./openclaw-plugin.js";
6
6
  export { sendToOwner, checkGateway } from "./gateway-send.js";
7
7
  export type { GatewaySendOptions, GatewaySendResult, GatewayStatusResult, } from "./gateway-send.js";
8
- export declare const VERSION = "0.13.8";
8
+ export declare const VERSION = "0.13.9";
9
9
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -48248,13 +48248,39 @@ var agentVaultPlugin = {
48248
48248
  aliases: ["av", "agent-vault"]
48249
48249
  },
48250
48250
  capabilities: {
48251
- chatTypes: ["direct"]
48251
+ chatTypes: ["direct", "room"]
48252
48252
  },
48253
48253
  config: {
48254
48254
  listAccountIds,
48255
48255
  resolveAccount
48256
48256
  },
48257
48257
  gateway: {
48258
+ /** Health probe for `openclaw channels status --probe` */
48259
+ probe: async (ctx) => {
48260
+ const accountId = ctx?.accountId ?? "default";
48261
+ const ch = _channels.get(accountId);
48262
+ if (!ch) return { ok: false, status: "disconnected", error: "Channel not started" };
48263
+ const state = ch.state;
48264
+ return {
48265
+ ok: state === "ready",
48266
+ status: state,
48267
+ deviceId: ch.deviceId ?? void 0,
48268
+ sessions: ch.sessionCount
48269
+ };
48270
+ },
48271
+ /** Status for `openclaw health --json` per-channel summary */
48272
+ status: (ctx) => {
48273
+ const accountId = ctx?.accountId ?? "default";
48274
+ const ch = _channels.get(accountId);
48275
+ if (!ch) return { connected: false, status: "not_started" };
48276
+ return {
48277
+ connected: ch.state === "ready",
48278
+ status: ch.state,
48279
+ deviceId: ch.deviceId ?? void 0,
48280
+ sessions: ch.sessionCount,
48281
+ encrypted: true
48282
+ };
48283
+ },
48258
48284
  startAccount: async (ctx) => {
48259
48285
  const { account, cfg, log, abortSignal } = ctx;
48260
48286
  if (!account.configured) {
@@ -48336,6 +48362,25 @@ var agentVaultPlugin = {
48336
48362
  } catch (err) {
48337
48363
  return { ok: false, error: String(err) };
48338
48364
  }
48365
+ },
48366
+ sendMedia: async ({
48367
+ text,
48368
+ mediaUrl,
48369
+ accountId
48370
+ }) => {
48371
+ const resolvedId = accountId ?? "default";
48372
+ const channel = _channels.get(resolvedId);
48373
+ if (!channel) {
48374
+ return { ok: false, error: "AgentVault channel is not connected" };
48375
+ }
48376
+ try {
48377
+ const message = text ? `${text}
48378
+ ${mediaUrl}` : mediaUrl;
48379
+ await channel.send(message);
48380
+ return { ok: true };
48381
+ } catch (err) {
48382
+ return { ok: false, error: String(err) };
48383
+ }
48339
48384
  }
48340
48385
  }
48341
48386
  };
@@ -48468,7 +48513,7 @@ async function checkGateway(options) {
48468
48513
  }
48469
48514
 
48470
48515
  // src/index.ts
48471
- var VERSION = "0.13.8";
48516
+ var VERSION = "0.13.9";
48472
48517
  export {
48473
48518
  SecureChannel,
48474
48519
  VERSION,