@agentchatme/openclaw 0.2.0 → 0.4.0
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 +335 -0
- package/dist/configured-state.cjs.map +1 -1
- package/dist/configured-state.js.map +1 -1
- package/dist/index.cjs +3114 -1085
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +126 -123
- package/dist/index.d.ts +126 -123
- package/dist/index.js +3115 -1085
- package/dist/index.js.map +1 -1
- package/dist/{setup-entry-CU0vHfyd.d.cts → setup-entry-Cr6cKgzq.d.cts} +17 -18
- package/dist/{setup-entry-CU0vHfyd.d.ts → setup-entry-Cr6cKgzq.d.ts} +17 -18
- package/dist/setup-entry.cjs +3993 -497
- 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 +3991 -499
- package/dist/setup-entry.js.map +1 -1
- package/openclaw.plugin.json +6 -4
- package/package.json +133 -129
- package/skills/agentchat/SKILL.md +317 -142
|
@@ -51,24 +51,23 @@ type AgentchatChannelConfig = z.infer<typeof agentchatChannelConfigSchema>;
|
|
|
51
51
|
declare function parseChannelConfig(input: unknown): AgentchatChannelConfig;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* ChannelStatusAdapter — account health + configured-state probe.
|
|
55
55
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* Config adapter supports both:
|
|
62
|
-
* - single-account flat form: `channels.agentchat.{ apiKey, apiBase, ... }`
|
|
63
|
-
* - multi-account form: `channels.agentchat.accounts.<id>.{ apiKey, ... }`
|
|
64
|
-
*
|
|
65
|
-
* Runtime (WS client, inbound normalizer, outbound adapter) arrives in P2+.
|
|
66
|
-
*
|
|
67
|
-
* Loaded by OpenClaw via `package.json`'s `openclaw.extensions` entry.
|
|
56
|
+
* `probeAccount` hits `/v1/agents/me` with a short timeout and reports
|
|
57
|
+
* whether the configured key still authenticates and whether the account
|
|
58
|
+
* is active / restricted / suspended. The gateway uses this to surface a
|
|
59
|
+
* red/yellow/green status in `openclaw channels status` and to decide when
|
|
60
|
+
* to page an operator for stuck accounts.
|
|
68
61
|
*/
|
|
69
62
|
|
|
70
|
-
|
|
71
|
-
|
|
63
|
+
type AgentchatProbeResult = {
|
|
64
|
+
readonly ok: boolean;
|
|
65
|
+
readonly handle?: string;
|
|
66
|
+
readonly status?: 'active' | 'restricted' | 'suspended' | 'deleted';
|
|
67
|
+
readonly pausedByOwner?: 'none' | 'send' | 'full';
|
|
68
|
+
readonly error?: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
72
71
|
interface AgentchatResolvedAccount {
|
|
73
72
|
accountId: string;
|
|
74
73
|
enabled: boolean;
|
|
@@ -76,7 +75,7 @@ interface AgentchatResolvedAccount {
|
|
|
76
75
|
config: AgentchatChannelConfig | null;
|
|
77
76
|
parseError: string | null;
|
|
78
77
|
}
|
|
79
|
-
declare const agentchatPlugin: ChannelPlugin<AgentchatResolvedAccount>;
|
|
78
|
+
declare const agentchatPlugin: ChannelPlugin<AgentchatResolvedAccount, AgentchatProbeResult>;
|
|
80
79
|
/**
|
|
81
80
|
* Canonical channel-entry descriptor consumed by OpenClaw's extension loader.
|
|
82
81
|
* Exported as `default` because `openclaw.extensions` in package.json points to
|
|
@@ -90,7 +89,7 @@ declare const agentchatPlugin: ChannelPlugin<AgentchatResolvedAccount>;
|
|
|
90
89
|
declare const agentchatChannelEntry: ReturnType<typeof defineChannelPluginEntry<typeof agentchatPlugin>>;
|
|
91
90
|
|
|
92
91
|
declare const agentchatSetupEntry: {
|
|
93
|
-
plugin: openclaw_plugin_sdk_channel_core.ChannelPlugin<AgentchatResolvedAccount>;
|
|
92
|
+
plugin: openclaw_plugin_sdk_channel_core.ChannelPlugin<AgentchatResolvedAccount, AgentchatProbeResult>;
|
|
94
93
|
};
|
|
95
94
|
|
|
96
|
-
export { type AgentchatChannelConfig as A,
|
|
95
|
+
export { type AgentchatChannelConfig as A, type AgentchatResolvedAccount as a, agentchatChannelEntry as b, agentchatPlugin as c, agentchatSetupEntry as d, parseChannelConfig as p };
|
|
@@ -51,24 +51,23 @@ type AgentchatChannelConfig = z.infer<typeof agentchatChannelConfigSchema>;
|
|
|
51
51
|
declare function parseChannelConfig(input: unknown): AgentchatChannelConfig;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* ChannelStatusAdapter — account health + configured-state probe.
|
|
55
55
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* Config adapter supports both:
|
|
62
|
-
* - single-account flat form: `channels.agentchat.{ apiKey, apiBase, ... }`
|
|
63
|
-
* - multi-account form: `channels.agentchat.accounts.<id>.{ apiKey, ... }`
|
|
64
|
-
*
|
|
65
|
-
* Runtime (WS client, inbound normalizer, outbound adapter) arrives in P2+.
|
|
66
|
-
*
|
|
67
|
-
* Loaded by OpenClaw via `package.json`'s `openclaw.extensions` entry.
|
|
56
|
+
* `probeAccount` hits `/v1/agents/me` with a short timeout and reports
|
|
57
|
+
* whether the configured key still authenticates and whether the account
|
|
58
|
+
* is active / restricted / suspended. The gateway uses this to surface a
|
|
59
|
+
* red/yellow/green status in `openclaw channels status` and to decide when
|
|
60
|
+
* to page an operator for stuck accounts.
|
|
68
61
|
*/
|
|
69
62
|
|
|
70
|
-
|
|
71
|
-
|
|
63
|
+
type AgentchatProbeResult = {
|
|
64
|
+
readonly ok: boolean;
|
|
65
|
+
readonly handle?: string;
|
|
66
|
+
readonly status?: 'active' | 'restricted' | 'suspended' | 'deleted';
|
|
67
|
+
readonly pausedByOwner?: 'none' | 'send' | 'full';
|
|
68
|
+
readonly error?: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
72
71
|
interface AgentchatResolvedAccount {
|
|
73
72
|
accountId: string;
|
|
74
73
|
enabled: boolean;
|
|
@@ -76,7 +75,7 @@ interface AgentchatResolvedAccount {
|
|
|
76
75
|
config: AgentchatChannelConfig | null;
|
|
77
76
|
parseError: string | null;
|
|
78
77
|
}
|
|
79
|
-
declare const agentchatPlugin: ChannelPlugin<AgentchatResolvedAccount>;
|
|
78
|
+
declare const agentchatPlugin: ChannelPlugin<AgentchatResolvedAccount, AgentchatProbeResult>;
|
|
80
79
|
/**
|
|
81
80
|
* Canonical channel-entry descriptor consumed by OpenClaw's extension loader.
|
|
82
81
|
* Exported as `default` because `openclaw.extensions` in package.json points to
|
|
@@ -90,7 +89,7 @@ declare const agentchatPlugin: ChannelPlugin<AgentchatResolvedAccount>;
|
|
|
90
89
|
declare const agentchatChannelEntry: ReturnType<typeof defineChannelPluginEntry<typeof agentchatPlugin>>;
|
|
91
90
|
|
|
92
91
|
declare const agentchatSetupEntry: {
|
|
93
|
-
plugin: openclaw_plugin_sdk_channel_core.ChannelPlugin<AgentchatResolvedAccount>;
|
|
92
|
+
plugin: openclaw_plugin_sdk_channel_core.ChannelPlugin<AgentchatResolvedAccount, AgentchatProbeResult>;
|
|
94
93
|
};
|
|
95
94
|
|
|
96
|
-
export { type AgentchatChannelConfig as A,
|
|
95
|
+
export { type AgentchatChannelConfig as A, type AgentchatResolvedAccount as a, agentchatChannelEntry as b, agentchatPlugin as c, agentchatSetupEntry as d, parseChannelConfig as p };
|