@agentchatme/openclaw 0.6.11 → 0.6.13
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 +4 -0
- package/dist/binding/agents-anchor.cjs +1 -1
- package/dist/binding/agents-anchor.d.cts +104 -0
- package/dist/binding/agents-anchor.d.ts +104 -0
- package/dist/configured-state.d.cts +20 -0
- package/dist/configured-state.d.ts +20 -0
- package/dist/credentials/read-env.d.cts +33 -0
- package/dist/credentials/read-env.d.ts +33 -0
- package/dist/index.cjs +24 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +759 -0
- package/dist/index.d.ts +759 -0
- package/dist/index.js +22 -15
- package/dist/index.js.map +1 -1
- package/dist/setup-entry-Dtj6vwDY.d.cts +104 -0
- package/dist/setup-entry-Dtj6vwDY.d.ts +104 -0
- package/dist/setup-entry.cjs +24 -17
- package/dist/setup-entry.cjs.map +1 -1
- package/dist/setup-entry.d.cts +3 -0
- package/dist/setup-entry.d.ts +3 -0
- package/dist/setup-entry.js +22 -15
- package/dist/setup-entry.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +17 -14
package/dist/setup-entry.js
CHANGED
|
@@ -316,8 +316,8 @@ async function promptEmail(prompter) {
|
|
|
316
316
|
}
|
|
317
317
|
async function promptHandle(prompter) {
|
|
318
318
|
return (await prompter.text({
|
|
319
|
-
message: "
|
|
320
|
-
placeholder: "
|
|
319
|
+
message: "Choose a handle (your @name on AgentChat)",
|
|
320
|
+
placeholder: "3\u201330 chars, lowercase a-z, 0-9, hyphens, starts with a letter",
|
|
321
321
|
validate: (value) => {
|
|
322
322
|
const trimmed = value.trim();
|
|
323
323
|
if (!trimmed) return "Handle is required";
|
|
@@ -1845,7 +1845,7 @@ var CircuitBreaker = class {
|
|
|
1845
1845
|
};
|
|
1846
1846
|
|
|
1847
1847
|
// src/version.ts
|
|
1848
|
-
var PACKAGE_VERSION = "0.6.
|
|
1848
|
+
var PACKAGE_VERSION = "0.6.13";
|
|
1849
1849
|
|
|
1850
1850
|
// src/outbound.ts
|
|
1851
1851
|
var DEFAULT_RETRY_POLICY = {
|
|
@@ -2429,21 +2429,28 @@ async function handleMessage(deps, event) {
|
|
|
2429
2429
|
const recipientHandle = selfHandle ?? "me";
|
|
2430
2430
|
const conversationLabel = event.conversationKind === "group" ? `group ${event.conversationId}` : `dm with @${senderHandle}`;
|
|
2431
2431
|
try {
|
|
2432
|
+
const sessionKey = event.conversationKind === "group" ? `agentchat:${deps.accountId}:group:${event.conversationId}` : `agentchat:${deps.accountId}:dm:${senderHandle}`;
|
|
2432
2433
|
await dispatcher({
|
|
2433
2434
|
cfg: deps.gatewayCfg,
|
|
2434
2435
|
ctx: {
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2436
|
+
Body: body,
|
|
2437
|
+
BodyForAgent: body,
|
|
2438
|
+
RawBody: body,
|
|
2439
|
+
CommandBody: body,
|
|
2440
|
+
From: `@${senderHandle}`,
|
|
2441
|
+
To: `@${recipientHandle}`,
|
|
2442
|
+
SessionKey: sessionKey,
|
|
2443
|
+
AccountId: deps.accountId,
|
|
2444
|
+
ChatType: event.conversationKind === "group" ? "group" : "direct",
|
|
2445
|
+
ConversationLabel: conversationLabel,
|
|
2446
|
+
SenderId: senderHandle,
|
|
2447
|
+
Provider: "agentchat",
|
|
2448
|
+
Surface: "agentchat",
|
|
2449
|
+
MessageSid: event.messageId,
|
|
2450
|
+
MessageSidFull: event.messageId,
|
|
2451
|
+
Timestamp: event.createdAt,
|
|
2452
|
+
OriginatingChannel: "agentchat",
|
|
2453
|
+
OriginatingTo: `@${recipientHandle}`
|
|
2447
2454
|
},
|
|
2448
2455
|
dispatcherOptions: {
|
|
2449
2456
|
deliver: async (payload) => {
|