@pi-unipi/core 0.1.14 → 0.1.15

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.
Files changed (3) hide show
  1. package/constants.ts +20 -0
  2. package/events.ts +50 -1
  3. package/package.json +1 -1
package/constants.ts CHANGED
@@ -36,6 +36,8 @@ export const MODULES = {
36
36
  MILESTONE: "@pi-unipi/milestone",
37
37
  KANBOARD: "@pi-unipi/kanboard",
38
38
  FOOTER: "@pi-unipi/footer",
39
+ UPDATER: "@pi-unipi/updater",
40
+ INPUT_SHORTCUTS: "@pi-unipi/input-shortcuts",
39
41
  } as const;
40
42
 
41
43
  /** Workflow command names */
@@ -295,6 +297,24 @@ export const MILESTONE_DIRS = {
295
297
  MILESTONES: ".unipi/docs/MILESTONES.md",
296
298
  } as const;
297
299
 
300
+ /** Updater command names */
301
+ export const UPDATER_COMMANDS = {
302
+ README: "readme",
303
+ CHANGELOG: "changelog",
304
+ UPDATER_SETTINGS: "updater-settings",
305
+ } as const;
306
+
307
+ /** Updater directory paths */
308
+ export const UPDATER_DIRS = {
309
+ CONFIG: "~/.unipi/config/updater",
310
+ CACHE: "~/.unipi/cache/updater",
311
+ } as const;
312
+
313
+ /** Input-shortcuts command names */
314
+ export const INPUT_SHORTCUTS_COMMANDS = {
315
+ STASH_SETTINGS: "stash-settings",
316
+ } as const;
317
+
298
318
  /** Footer command names */
299
319
  export const FOOTER_COMMANDS = {
300
320
  FOOTER: "footer",
package/events.ts CHANGED
@@ -81,6 +81,15 @@ export const UNIPI_EVENTS = {
81
81
 
82
82
  /** Agent asked user a question (ask_user tool invoked) */
83
83
  ASK_USER_PROMPT: "unipi:ask-user:prompt",
84
+
85
+ /** Update check performed */
86
+ UPDATE_CHECK: "unipi:update:check",
87
+ /** Update available */
88
+ UPDATE_AVAILABLE: "unipi:update:available",
89
+ /** Update applied */
90
+ UPDATE_APPLIED: "unipi:update:applied",
91
+ /** Update error */
92
+ UPDATE_ERROR: "unipi:update:error",
84
93
  } as const;
85
94
 
86
95
  /** Payload for MODULE_READY / MODULE_GONE */
@@ -323,6 +332,42 @@ export interface UnipiAskUserPromptEvent {
323
332
  allowFreeform?: boolean;
324
333
  }
325
334
 
335
+ /** Payload for UPDATE_CHECK */
336
+ export interface UnipiUpdateCheckEvent {
337
+ /** Current installed version */
338
+ currentVersion: string;
339
+ /** Latest version found on npm */
340
+ latestVersion: string;
341
+ /** Whether an update is available */
342
+ updateAvailable: boolean;
343
+ /** Error if check failed */
344
+ error?: string;
345
+ }
346
+
347
+ /** Payload for UPDATE_AVAILABLE */
348
+ export interface UnipiUpdateAvailableEvent {
349
+ /** Current installed version */
350
+ currentVersion: string;
351
+ /** Latest version available */
352
+ latestVersion: string;
353
+ }
354
+
355
+ /** Payload for UPDATE_APPLIED */
356
+ export interface UnipiUpdateAppliedEvent {
357
+ /** Previous version */
358
+ previousVersion: string;
359
+ /** New version after update */
360
+ newVersion: string;
361
+ }
362
+
363
+ /** Payload for UPDATE_ERROR */
364
+ export interface UnipiUpdateErrorEvent {
365
+ /** Error message */
366
+ error: string;
367
+ /** Whether the error was from check or install */
368
+ phase: "check" | "install";
369
+ }
370
+
326
371
  /** Payload for NOTIFICATION_SENT */
327
372
  export interface UnipiNotificationSentEvent {
328
373
  /** Event type that triggered notification */
@@ -359,4 +404,8 @@ export type UnipiEventPayload =
359
404
  | UnipiUtilityLifecycleEvent
360
405
  | UnipiNotificationSentEvent
361
406
  | UnipiBadgeGenerateRequestEvent
362
- | UnipiAskUserPromptEvent;
407
+ | UnipiAskUserPromptEvent
408
+ | UnipiUpdateCheckEvent
409
+ | UnipiUpdateAvailableEvent
410
+ | UnipiUpdateAppliedEvent
411
+ | UnipiUpdateErrorEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/core",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "Shared utilities, event types, and constants for Unipi extension suite",
5
5
  "type": "module",
6
6
  "license": "MIT",