@dcrays/dcgchat 0.4.26 → 0.4.27
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/package.json +1 -1
- package/src/cronToolCall.ts +2 -2
package/package.json
CHANGED
package/src/cronToolCall.ts
CHANGED
|
@@ -137,7 +137,7 @@ function patchCronDeliveryInParams(
|
|
|
137
137
|
if (agentId) d.accountId = agentId
|
|
138
138
|
if (announceNoChannel) {
|
|
139
139
|
d.bestEffort = true
|
|
140
|
-
d.channel =
|
|
140
|
+
d.channel = "dcgchat"
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
@@ -191,7 +191,7 @@ export function cronToolCall(event: { toolName: any; params: any; toolCallId: an
|
|
|
191
191
|
if (params.command.indexOf('cron create') > -1 || params.command.indexOf('cron add') > -1) {
|
|
192
192
|
const newParams = JSON.parse(JSON.stringify(params)) as Record<string, unknown>
|
|
193
193
|
newParams.command =
|
|
194
|
-
params.command.replace('--json', '') + ` --session-key ${sk} --channel ${
|
|
194
|
+
params.command.replace('--json', '') + ` --session-key ${sk} --channel ${"dcgchat"} --to dcg-cron:${sk} --json`
|
|
195
195
|
return { params: newParams }
|
|
196
196
|
} else {
|
|
197
197
|
return undefined
|