@makinbakin/sdk 0.0.1-rc.10 → 0.0.1-rc.12
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/_internal/app/types/index.d.ts +2 -0
- package/hooks/index.js +11 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ export interface TaskLogEntry {
|
|
|
2
2
|
timestamp: string;
|
|
3
3
|
author: string;
|
|
4
4
|
message: string;
|
|
5
|
+
data?: Record<string, unknown>;
|
|
5
6
|
}
|
|
6
7
|
export interface Task {
|
|
7
8
|
id: string;
|
|
@@ -76,6 +77,7 @@ export interface ActivityEvent {
|
|
|
76
77
|
taskTitle?: string;
|
|
77
78
|
eventName?: string;
|
|
78
79
|
duplicate?: boolean;
|
|
80
|
+
data?: Record<string, unknown>;
|
|
79
81
|
}
|
|
80
82
|
export interface ContentState {
|
|
81
83
|
files: Record<string, string>;
|
package/hooks/index.js
CHANGED
|
@@ -227,6 +227,15 @@ function mapAuditMessage(event, data) {
|
|
|
227
227
|
return `Assigned "${data.title}" to ${data.assignee}`;
|
|
228
228
|
case "task.blocked":
|
|
229
229
|
return `Blocked: ${data.title} \u2014 ${data.reason || "no reason"}`;
|
|
230
|
+
case "task.dispatch_failed": {
|
|
231
|
+
if (data.category === "model_provider_unavailable")
|
|
232
|
+
return "Dispatch failed: model provider unavailable";
|
|
233
|
+
if (typeof data.summary === "string")
|
|
234
|
+
return data.summary;
|
|
235
|
+
if (typeof data.error === "string" && data.error.startsWith("Dispatch failed:"))
|
|
236
|
+
return data.error;
|
|
237
|
+
return `Dispatch failed: ${data.error || "unknown error"}`;
|
|
238
|
+
}
|
|
230
239
|
case "task.updated":
|
|
231
240
|
return `Updated: ${data.title}`;
|
|
232
241
|
case "system.init":
|
|
@@ -15033,7 +15042,8 @@ function useSSE() {
|
|
|
15033
15042
|
taskId: entryData.taskId,
|
|
15034
15043
|
taskTitle: entryData.title,
|
|
15035
15044
|
eventName: entry.event,
|
|
15036
|
-
...entryData.duplicate ? { duplicate: true } : {}
|
|
15045
|
+
...entryData.duplicate ? { duplicate: true } : {},
|
|
15046
|
+
data: entryData
|
|
15037
15047
|
});
|
|
15038
15048
|
}
|
|
15039
15049
|
if (data.type === "plugin-event" && typeof data.event === "string" && data.event.startsWith("workflow.")) {
|
package/package.json
CHANGED