@pi-unipi/milestone 0.1.9 → 2.0.0
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/commands.ts +3 -3
- package/index.ts +2 -3
- package/package.json +1 -1
package/commands.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* loads SKILL.md content and sends it as a user message.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
9
|
+
import type { ExtensionAPI, ExtensionCommandContext } from "@mariozechner/pi-coding-agent";
|
|
10
10
|
import { UNIPI_PREFIX, MILESTONE_COMMANDS, MILESTONE_DIRS } from "@pi-unipi/core";
|
|
11
11
|
import { parseMilestones } from "./milestone.js";
|
|
12
12
|
import { readFileSync } from "node:fs";
|
|
@@ -33,7 +33,7 @@ export function registerCommands(pi: ExtensionAPI): void {
|
|
|
33
33
|
// milestone-onboard — create milestones from existing work
|
|
34
34
|
pi.registerCommand(`${UNIPI_PREFIX}${MILESTONE_COMMANDS.ONBOARD}`, {
|
|
35
35
|
description: "Create MILESTONES.md from existing workflow docs — scan, propose, refine, write",
|
|
36
|
-
handler: async (args: string, ctx:
|
|
36
|
+
handler: async (args: string, ctx: ExtensionCommandContext) => {
|
|
37
37
|
const skillContent = loadSkill("milestone-onboard");
|
|
38
38
|
|
|
39
39
|
let message = "Execute the milestone-onboard workflow.";
|
|
@@ -55,7 +55,7 @@ export function registerCommands(pi: ExtensionAPI): void {
|
|
|
55
55
|
// milestone-update — sync milestones with completed work
|
|
56
56
|
pi.registerCommand(`${UNIPI_PREFIX}${MILESTONE_COMMANDS.UPDATE}`, {
|
|
57
57
|
description: "Sync MILESTONES.md with completed work — scan docs, diff checkboxes, auto-update",
|
|
58
|
-
handler: async (args: string, ctx:
|
|
58
|
+
handler: async (args: string, ctx: ExtensionCommandContext) => {
|
|
59
59
|
const skillContent = loadSkill("milestone-update");
|
|
60
60
|
|
|
61
61
|
let message = "Execute the milestone-update workflow.";
|
package/index.ts
CHANGED
|
@@ -21,8 +21,7 @@ export default function milestoneExtension(pi: ExtensionAPI): void {
|
|
|
21
21
|
registerCommands(pi);
|
|
22
22
|
|
|
23
23
|
// Register info-screen group
|
|
24
|
-
const
|
|
25
|
-
const registry = globalObj.__unipi_info_registry;
|
|
24
|
+
const registry = globalThis.__unipi_info_registry;
|
|
26
25
|
if (registry) {
|
|
27
26
|
registry.registerGroup({
|
|
28
27
|
id: "milestone",
|
|
@@ -63,7 +62,7 @@ export default function milestoneExtension(pi: ExtensionAPI): void {
|
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
// Emit module ready event
|
|
66
|
-
emitEvent(pi
|
|
65
|
+
emitEvent(pi, UNIPI_EVENTS.MODULE_READY, {
|
|
67
66
|
name: MODULES.MILESTONE,
|
|
68
67
|
version: "0.1.0",
|
|
69
68
|
commands: Object.values(MILESTONE_COMMANDS),
|