@cfio/cohort-sync 0.34.0 → 0.34.1
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.js +18 -5
- package/dist/openclaw.plugin.json +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12183,7 +12183,9 @@ async function callPublishWireFromPlugin(apiKey2, args) {
|
|
|
12183
12183
|
...args.filename !== void 0 ? { filename: args.filename } : {},
|
|
12184
12184
|
...args.altText !== void 0 ? { altText: args.altText } : {},
|
|
12185
12185
|
...args.roomId !== void 0 ? { roomId: args.roomId } : {},
|
|
12186
|
-
...args.taskId !== void 0 ? { taskId: args.taskId } : {}
|
|
12186
|
+
...args.taskId !== void 0 ? { taskId: args.taskId } : {},
|
|
12187
|
+
...args.inResponseToSteerId !== void 0 ? { inResponseToSteerId: args.inResponseToSteerId } : {},
|
|
12188
|
+
...args.deliveryNote !== void 0 ? { deliveryNote: args.deliveryNote } : {}
|
|
12187
12189
|
});
|
|
12188
12190
|
} catch (err) {
|
|
12189
12191
|
if (isUnauthorizedError(err)) {
|
|
@@ -14117,7 +14119,7 @@ function dumpEvent(event) {
|
|
|
14117
14119
|
function positiveNumber(value) {
|
|
14118
14120
|
return typeof value === "number" && Number.isFinite(value) && value > 0 ? value : void 0;
|
|
14119
14121
|
}
|
|
14120
|
-
var PLUGIN_VERSION = true ? "0.34.
|
|
14122
|
+
var PLUGIN_VERSION = true ? "0.34.1" : "unknown";
|
|
14121
14123
|
function resolveGatewayToken(api) {
|
|
14122
14124
|
const token2 = api.config?.gateway?.auth?.token;
|
|
14123
14125
|
return typeof token2 === "string" ? token2 : null;
|
|
@@ -15144,6 +15146,7 @@ var WIRE_FILENAME_MAX = 200;
|
|
|
15144
15146
|
var WIRE_MIME_TYPE_MAX = 100;
|
|
15145
15147
|
var WIRE_ALT_TEXT_MAX = 1e3;
|
|
15146
15148
|
var WIRE_IMAGE_MAX_BYTES = 10 * 1024 * 1024;
|
|
15149
|
+
var WIRE_DELIVERY_NOTE_MAX = 1e3;
|
|
15147
15150
|
function wireInvalid(message) {
|
|
15148
15151
|
return textResult(`Cannot publish to Wire: ${message}.`);
|
|
15149
15152
|
}
|
|
@@ -15486,7 +15489,9 @@ Do not attempt more comments until tomorrow.`);
|
|
|
15486
15489
|
filename: Type.Optional(Type.String({ description: `Original image filename, max ${WIRE_FILENAME_MAX} characters. Used with kind=image.` })),
|
|
15487
15490
|
alt_text: Type.Optional(Type.String({ description: `Accessible image description, max ${WIRE_ALT_TEXT_MAX} characters. Used with kind=image.` })),
|
|
15488
15491
|
room_id: Type.Optional(Type.String({ description: "Optional Cohort Room ID to link this Wire item to." })),
|
|
15489
|
-
task_id: Type.Optional(Type.String({ description: "Optional Cohort task ID to link this Wire item to." }))
|
|
15492
|
+
task_id: Type.Optional(Type.String({ description: "Optional Cohort task ID to link this Wire item to." })),
|
|
15493
|
+
in_response_to_steer_id: Type.Optional(Type.String({ description: "Wire request ID when delivering a requested revision or follow-up." })),
|
|
15494
|
+
delivery_note: Type.Optional(Type.String({ description: `Short note for the requester, max ${WIRE_DELIVERY_NOTE_MAX} characters.` }))
|
|
15490
15495
|
}),
|
|
15491
15496
|
async execute(_toolCallId, params) {
|
|
15492
15497
|
const rt = getToolRuntime();
|
|
@@ -15501,6 +15506,10 @@ Do not attempt more comments until tomorrow.`);
|
|
|
15501
15506
|
if (!roomId.ok) return wireInvalid(roomId.message);
|
|
15502
15507
|
const taskId = optionalWireString(params.task_id, "task_id", WIRE_TITLE_MAX);
|
|
15503
15508
|
if (!taskId.ok) return wireInvalid(taskId.message);
|
|
15509
|
+
const inResponseToSteerId = optionalWireString(params.in_response_to_steer_id, "in_response_to_steer_id", WIRE_TITLE_MAX);
|
|
15510
|
+
if (!inResponseToSteerId.ok) return wireInvalid(inResponseToSteerId.message);
|
|
15511
|
+
const deliveryNote = optionalWireString(params.delivery_note, "delivery_note", WIRE_DELIVERY_NOTE_MAX);
|
|
15512
|
+
if (!deliveryNote.ok) return wireInvalid(deliveryNote.message);
|
|
15504
15513
|
const agentName = rt.resolveAgentName(agentId);
|
|
15505
15514
|
if (params.kind === "report") {
|
|
15506
15515
|
const body = optionalWireString(params.body, "body", WIRE_BODY_MAX);
|
|
@@ -15513,7 +15522,9 @@ Do not attempt more comments until tomorrow.`);
|
|
|
15513
15522
|
brief: brief.value,
|
|
15514
15523
|
...body.value !== void 0 ? { body: body.value } : {},
|
|
15515
15524
|
...roomId.value !== void 0 ? { roomId: roomId.value } : {},
|
|
15516
|
-
...taskId.value !== void 0 ? { taskId: taskId.value } : {}
|
|
15525
|
+
...taskId.value !== void 0 ? { taskId: taskId.value } : {},
|
|
15526
|
+
...inResponseToSteerId.value !== void 0 ? { inResponseToSteerId: inResponseToSteerId.value } : {},
|
|
15527
|
+
...deliveryNote.value !== void 0 ? { deliveryNote: deliveryNote.value } : {}
|
|
15517
15528
|
});
|
|
15518
15529
|
return textResult(`Published report to Wire.
|
|
15519
15530
|
Wire item: ${result.wireItemId}`, result);
|
|
@@ -15562,7 +15573,9 @@ Wire item: ${result.wireItemId}`, result);
|
|
|
15562
15573
|
filename: filename.value,
|
|
15563
15574
|
altText: altText.value,
|
|
15564
15575
|
...roomId.value !== void 0 ? { roomId: roomId.value } : {},
|
|
15565
|
-
...taskId.value !== void 0 ? { taskId: taskId.value } : {}
|
|
15576
|
+
...taskId.value !== void 0 ? { taskId: taskId.value } : {},
|
|
15577
|
+
...inResponseToSteerId.value !== void 0 ? { inResponseToSteerId: inResponseToSteerId.value } : {},
|
|
15578
|
+
...deliveryNote.value !== void 0 ? { deliveryNote: deliveryNote.value } : {}
|
|
15566
15579
|
});
|
|
15567
15580
|
return textResult(`Published image to Wire.
|
|
15568
15581
|
Wire item: ${result.wireItemId}`, result);
|
package/dist/package.json
CHANGED
package/package.json
CHANGED