@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/CHANGELOG.md +62 -1
- package/README.md +22 -15
- package/RUNBOOK.md +12 -7
- package/SECURITY.md +8 -3
- package/dist/index.cjs +410 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -8
- package/dist/index.d.ts +13 -8
- package/dist/index.js +410 -42
- package/dist/index.js.map +1 -1
- package/dist/{setup-entry-C9aFZx3n.d.cts → setup-entry-DFY6cAa6.d.cts} +4 -0
- package/dist/{setup-entry-C9aFZx3n.d.ts → setup-entry-DFY6cAa6.d.ts} +4 -0
- package/dist/setup-entry.cjs +405 -41
- package/dist/setup-entry.cjs.map +1 -1
- package/dist/setup-entry.d.cts +1 -1
- package/dist/setup-entry.d.ts +1 -1
- package/dist/setup-entry.js +405 -41
- package/dist/setup-entry.js.map +1 -1
- package/openclaw.plugin.json +5 -5
- package/package.json +2 -2
- package/skills/agentchat/SKILL.md +73 -69
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as Logger, M as MetricsRecorder } from './setup-entry-
|
|
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-
|
|
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
|
|
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
|
|
301
|
-
*
|
|
302
|
-
*
|
|
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
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
301
|
-
*
|
|
302
|
-
*
|
|
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
|
|
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
|