@agentchatme/openclaw 0.10.0 → 0.10.2

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.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { L as Logger, M as MetricsRecorder } from './setup-entry-C9aFZx3n.cjs';
2
- export { A as AgentchatChannelConfig, a as AgentchatResolvedAccount, C as CreateMetricsOptions, I as IntegrationSocket, b as IntegrationSocketOptions, c as MetricsSnapshot, P as PromFactory, d as PromRegistryLike, S as SocketBlocked, e as SocketDisconnect, f as SocketHandlers, g as SocketHealth, h as SocketState, i as agentchatChannelEntry, j as agentchatPlugin, k as agentchatSetupEntry, j as agentchatSetupPlugin, l as createInMemoryMetrics, m as createMetrics, n as createNoopMetrics, i as default, p as parseChannelConfig, r as realtimeOptionsFor } from './setup-entry-C9aFZx3n.cjs';
1
+ import { L as Logger, M as MetricsRecorder } from './setup-entry-DFY6cAa6.cjs';
2
+ export { A as AgentchatChannelConfig, a as AgentchatResolvedAccount, C as CreateMetricsOptions, I as IntegrationSocket, b as IntegrationSocketOptions, c as MetricsSnapshot, P as PromFactory, d as PromRegistryLike, S as SocketBlocked, e as SocketDisconnect, f as SocketHandlers, g as SocketHealth, h as SocketState, i as agentchatChannelEntry, j as agentchatPlugin, k as agentchatSetupEntry, j as agentchatSetupPlugin, l as createInMemoryMetrics, m as createMetrics, n as createNoopMetrics, i as default, p as parseChannelConfig, r as realtimeOptionsFor } from './setup-entry-DFY6cAa6.cjs';
3
3
  export { hasAgentChatConfiguredState } from './configured-state.cjs';
4
4
  import { integration, InboxCard, TrayInvite, RealtimeClient, GateModelCall, Texts, AgentChatClient, ToolNamer } from 'agentchatme';
5
5
  import 'openclaw/plugin-sdk/channel-core';
@@ -124,7 +124,7 @@ interface TurnOutcome {
124
124
  readonly runId?: string;
125
125
  readonly status?: RunEndStatus | 'gone';
126
126
  readonly error?: string;
127
- /** AgentChat tool calls the run made, from its transcript; null when OpenClaw did not let the plugin read it (unknown, never zero). */
127
+ /** AgentChat tool calls the run made, from its transcript; null when unknown — the transcript could not be read, or may be cut, or a call's outcome cannot be read from it (never zero, never all-ok). */
128
128
  readonly agentchatCalls?: AgentChatCalls | null;
129
129
  /** From admission to the confirmed end. */
130
130
  readonly elapsedMs?: number;
@@ -297,9 +297,11 @@ declare class TurnStore {
297
297
  * when it ends it gets the after-turn rule. A stored turn first started more
298
298
  * than `STORED_TURN_MAX_AGE_MS` ago is dropped, so a restart storm cannot
299
299
  * re-adopt it forever. Not covered (accepted): a continuation that starts
300
- * after the hold, when the conversation may have been gated again; the wake
301
- * text AgentChat serves for OpenClaw is to tell the agent not to resume an
302
- * AgentChat turn after a restart (a server change). A plugin reload waits for the runs (OpenClaw drains a plugin's
300
+ * after the hold, when the conversation may have been gated again. The wake
301
+ * instruction and invite prompt AgentChat serves for OpenClaw end with a
302
+ * restart note telling the agent not to continue an interrupted turn after a
303
+ * restart (it promises no wake); that lowers the odds, it is no guarantee.
304
+ * A plugin reload waits for the runs (OpenClaw drains a plugin's
303
305
  * admitted work first, and every turn holds it until it ends).
304
306
  */
305
307
 
@@ -540,11 +542,14 @@ interface IntegrationLoop {
540
542
  declare function createIntegrationLoop(options: IntegrationLoopOptions): IntegrationLoop;
541
543
 
542
544
  declare function hostedMcpUrl(apiBase?: string): string;
545
+ /** The header that names the calling client to AgentChat (the server reads it case-insensitively). */
546
+ declare const CLIENT_HEADER = "X-AgentChat-Client";
543
547
  interface McpServerEntry {
544
548
  readonly url: string;
545
549
  readonly transport: 'streamable-http';
546
550
  readonly headers: {
547
551
  readonly Authorization: string;
552
+ readonly [CLIENT_HEADER]: string;
548
553
  };
549
554
  }
550
555
  /** The `mcp.servers.agentchat` value this plugin places. */
@@ -651,8 +656,8 @@ declare function turnEndOf(outcome: TurnOutcome): integration.TurnEnd;
651
656
  *
652
657
  * Every text an agent sees is written once on the server and served as data
653
658
  * (`GET /v1/texts?runtime=openclaw`): the wake instruction, the invite
654
- * prompt, the gate-call preamble and answer format, the identity line, where
655
- * the manual is. The kit's cache fetches them at channel start and daily,
659
+ * prompt, the gate-call preamble and answer format, the reply-turn template,
660
+ * the identity line, where the manual is. The kit's cache fetches them at channel start and daily,
656
661
  * keeps the last good copy in `<state dir>/agentchat/<accountId>/texts.json`
657
662
  * (an offline start is not mute), and backs off after a failure. The server
658
663
  * spells the hosted tools for `runtime=openclaw` the way OpenClaw exposes
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { L as Logger, M as MetricsRecorder } from './setup-entry-C9aFZx3n.js';
2
- export { A as AgentchatChannelConfig, a as AgentchatResolvedAccount, C as CreateMetricsOptions, I as IntegrationSocket, b as IntegrationSocketOptions, c as MetricsSnapshot, P as PromFactory, d as PromRegistryLike, S as SocketBlocked, e as SocketDisconnect, f as SocketHandlers, g as SocketHealth, h as SocketState, i as agentchatChannelEntry, j as agentchatPlugin, k as agentchatSetupEntry, j as agentchatSetupPlugin, l as createInMemoryMetrics, m as createMetrics, n as createNoopMetrics, i as default, p as parseChannelConfig, r as realtimeOptionsFor } from './setup-entry-C9aFZx3n.js';
1
+ import { L as Logger, M as MetricsRecorder } from './setup-entry-DFY6cAa6.js';
2
+ export { A as AgentchatChannelConfig, a as AgentchatResolvedAccount, C as CreateMetricsOptions, I as IntegrationSocket, b as IntegrationSocketOptions, c as MetricsSnapshot, P as PromFactory, d as PromRegistryLike, S as SocketBlocked, e as SocketDisconnect, f as SocketHandlers, g as SocketHealth, h as SocketState, i as agentchatChannelEntry, j as agentchatPlugin, k as agentchatSetupEntry, j as agentchatSetupPlugin, l as createInMemoryMetrics, m as createMetrics, n as createNoopMetrics, i as default, p as parseChannelConfig, r as realtimeOptionsFor } from './setup-entry-DFY6cAa6.js';
3
3
  export { hasAgentChatConfiguredState } from './configured-state.js';
4
4
  import { integration, InboxCard, TrayInvite, RealtimeClient, GateModelCall, Texts, AgentChatClient, ToolNamer } from 'agentchatme';
5
5
  import 'openclaw/plugin-sdk/channel-core';
@@ -124,7 +124,7 @@ interface TurnOutcome {
124
124
  readonly runId?: string;
125
125
  readonly status?: RunEndStatus | 'gone';
126
126
  readonly error?: string;
127
- /** AgentChat tool calls the run made, from its transcript; null when OpenClaw did not let the plugin read it (unknown, never zero). */
127
+ /** AgentChat tool calls the run made, from its transcript; null when unknown — the transcript could not be read, or may be cut, or a call's outcome cannot be read from it (never zero, never all-ok). */
128
128
  readonly agentchatCalls?: AgentChatCalls | null;
129
129
  /** From admission to the confirmed end. */
130
130
  readonly elapsedMs?: number;
@@ -297,9 +297,11 @@ declare class TurnStore {
297
297
  * when it ends it gets the after-turn rule. A stored turn first started more
298
298
  * than `STORED_TURN_MAX_AGE_MS` ago is dropped, so a restart storm cannot
299
299
  * re-adopt it forever. Not covered (accepted): a continuation that starts
300
- * after the hold, when the conversation may have been gated again; the wake
301
- * text AgentChat serves for OpenClaw is to tell the agent not to resume an
302
- * AgentChat turn after a restart (a server change). A plugin reload waits for the runs (OpenClaw drains a plugin's
300
+ * after the hold, when the conversation may have been gated again. The wake
301
+ * instruction and invite prompt AgentChat serves for OpenClaw end with a
302
+ * restart note telling the agent not to continue an interrupted turn after a
303
+ * restart (it promises no wake); that lowers the odds, it is no guarantee.
304
+ * A plugin reload waits for the runs (OpenClaw drains a plugin's
303
305
  * admitted work first, and every turn holds it until it ends).
304
306
  */
305
307
 
@@ -540,11 +542,14 @@ interface IntegrationLoop {
540
542
  declare function createIntegrationLoop(options: IntegrationLoopOptions): IntegrationLoop;
541
543
 
542
544
  declare function hostedMcpUrl(apiBase?: string): string;
545
+ /** The header that names the calling client to AgentChat (the server reads it case-insensitively). */
546
+ declare const CLIENT_HEADER = "X-AgentChat-Client";
543
547
  interface McpServerEntry {
544
548
  readonly url: string;
545
549
  readonly transport: 'streamable-http';
546
550
  readonly headers: {
547
551
  readonly Authorization: string;
552
+ readonly [CLIENT_HEADER]: string;
548
553
  };
549
554
  }
550
555
  /** The `mcp.servers.agentchat` value this plugin places. */
@@ -651,8 +656,8 @@ declare function turnEndOf(outcome: TurnOutcome): integration.TurnEnd;
651
656
  *
652
657
  * Every text an agent sees is written once on the server and served as data
653
658
  * (`GET /v1/texts?runtime=openclaw`): the wake instruction, the invite
654
- * prompt, the gate-call preamble and answer format, the identity line, where
655
- * the manual is. The kit's cache fetches them at channel start and daily,
659
+ * prompt, the gate-call preamble and answer format, the reply-turn template,
660
+ * the identity line, where the manual is. The kit's cache fetches them at channel start and daily,
656
661
  * keeps the last good copy in `<state dir>/agentchat/<accountId>/texts.json`
657
662
  * (an offline start is not mute), and backs off after a failure. The server
658
663
  * spells the hosted tools for `runtime=openclaw` the way OpenClaw exposes