@pi-unipi/core 0.1.11 → 0.1.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/constants.ts +3 -0
- package/events.ts +19 -1
- package/package.json +1 -1
package/constants.ts
CHANGED
|
@@ -162,6 +162,7 @@ export const UTILITY_COMMANDS = {
|
|
|
162
162
|
BADGE_GEN: "badge-gen",
|
|
163
163
|
BADGE_TOGGLE: "badge-toggle",
|
|
164
164
|
BADGE_SETTINGS: "badge-settings",
|
|
165
|
+
UTIL_SETTINGS: "util-settings",
|
|
165
166
|
} as const;
|
|
166
167
|
|
|
167
168
|
/** Utility tool names */
|
|
@@ -267,7 +268,9 @@ export const NOTIFY_COMMANDS = {
|
|
|
267
268
|
SETTINGS: "notify-settings",
|
|
268
269
|
SET_GOTIFY: "notify-set-gotify",
|
|
269
270
|
SET_TG: "notify-set-tg",
|
|
271
|
+
SET_NTFY: "notify-set-ntfy",
|
|
270
272
|
TEST: "notify-test",
|
|
273
|
+
RECAP_MODEL: "notify-recap-model",
|
|
271
274
|
} as const;
|
|
272
275
|
|
|
273
276
|
/** Notify tool names */
|
package/events.ts
CHANGED
|
@@ -78,6 +78,9 @@ export const UNIPI_EVENTS = {
|
|
|
78
78
|
|
|
79
79
|
/** Badge generation requested (from kanboard or other module) */
|
|
80
80
|
BADGE_GENERATE_REQUEST: "unipi:badge:generate:request",
|
|
81
|
+
|
|
82
|
+
/** Agent asked user a question (ask_user tool invoked) */
|
|
83
|
+
ASK_USER_PROMPT: "unipi:ask-user:prompt",
|
|
81
84
|
} as const;
|
|
82
85
|
|
|
83
86
|
/** Payload for MODULE_READY / MODULE_GONE */
|
|
@@ -306,6 +309,20 @@ export interface UnipiBadgeGenerateRequestEvent {
|
|
|
306
309
|
conversationSummary?: string;
|
|
307
310
|
}
|
|
308
311
|
|
|
312
|
+
/** Payload for ASK_USER_PROMPT */
|
|
313
|
+
export interface UnipiAskUserPromptEvent {
|
|
314
|
+
/** Question being asked */
|
|
315
|
+
question: string;
|
|
316
|
+
/** Additional context */
|
|
317
|
+
context?: string;
|
|
318
|
+
/** Number of options provided */
|
|
319
|
+
optionCount?: number;
|
|
320
|
+
/** Whether multi-select mode */
|
|
321
|
+
allowMultiple?: boolean;
|
|
322
|
+
/** Whether freeform input allowed */
|
|
323
|
+
allowFreeform?: boolean;
|
|
324
|
+
}
|
|
325
|
+
|
|
309
326
|
/** Payload for NOTIFICATION_SENT */
|
|
310
327
|
export interface UnipiNotificationSentEvent {
|
|
311
328
|
/** Event type that triggered notification */
|
|
@@ -341,4 +358,5 @@ export type UnipiEventPayload =
|
|
|
341
358
|
| UnipiUtilityDiagnosticsEvent
|
|
342
359
|
| UnipiUtilityLifecycleEvent
|
|
343
360
|
| UnipiNotificationSentEvent
|
|
344
|
-
| UnipiBadgeGenerateRequestEvent
|
|
361
|
+
| UnipiBadgeGenerateRequestEvent
|
|
362
|
+
| UnipiAskUserPromptEvent;
|