@mocito/pi-goal 0.1.1 → 0.1.2
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/CHANGELOG.md +4 -0
- package/CONTRIBUTING.md +1 -1
- package/README.md +1 -1
- package/extensions/{pi-goal/index.ts → index.ts} +11 -11
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/CONTRIBUTING.md
CHANGED
|
@@ -43,7 +43,7 @@ Before opening a pull request:
|
|
|
43
43
|
|
|
44
44
|
## Coding guidelines
|
|
45
45
|
|
|
46
|
-
- Keep `extensions/
|
|
46
|
+
- Keep `extensions/index.ts` focused on Pi extension wiring and move reusable implementation details into `src/`.
|
|
47
47
|
- When changing model tool parameters, update the Typebox schema, runtime validation, README tool docs, and tests together.
|
|
48
48
|
- Treat persisted mutation shapes, custom message types, command names, and tool names as public interface.
|
|
49
49
|
- Preserve branch-scoped semantics: reconstruct state from `ctx.sessionManager.getBranch()` and avoid global process state that crosses sessions unexpectedly.
|
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
2
|
-
import { accountUsageFromBranch, isBudgetExceeded } from "
|
|
3
|
-
import { goalCompletions, handleGoalCommand } from "
|
|
4
|
-
import { filterGoalContextMessages, GoalContinuationScheduler } from "
|
|
5
|
-
import { registerGoalRenderers } from "
|
|
6
|
-
import { appendGoalMutation, applyGoalMutation, reconstructGoalState, statusMutation } from "
|
|
7
|
-
import { reportInstallTelemetry } from "
|
|
8
|
-
import { registerGoalTools } from "
|
|
9
|
-
import type { GoalState } from "
|
|
10
|
-
import { GOAL_EVENT_TYPE } from "
|
|
11
|
-
import { nowIso, realizedTimeUsed } from "
|
|
12
|
-
import { clearGoalUi, updateGoalUi } from "
|
|
2
|
+
import { accountUsageFromBranch, isBudgetExceeded } from "../src/accounting.js";
|
|
3
|
+
import { goalCompletions, handleGoalCommand } from "../src/commands.js";
|
|
4
|
+
import { filterGoalContextMessages, GoalContinuationScheduler } from "../src/continuation.js";
|
|
5
|
+
import { registerGoalRenderers } from "../src/rendering.js";
|
|
6
|
+
import { appendGoalMutation, applyGoalMutation, reconstructGoalState, statusMutation } from "../src/state.js";
|
|
7
|
+
import { reportInstallTelemetry } from "../src/install-telemetry.js";
|
|
8
|
+
import { registerGoalTools } from "../src/tools.js";
|
|
9
|
+
import type { GoalState } from "../src/types.js";
|
|
10
|
+
import { GOAL_EVENT_TYPE } from "../src/types.js";
|
|
11
|
+
import { nowIso, realizedTimeUsed } from "../src/utils.js";
|
|
12
|
+
import { clearGoalUi, updateGoalUi } from "../src/ui.js";
|
|
13
13
|
|
|
14
14
|
export default function piGoal(pi: ExtensionAPI) {
|
|
15
15
|
reportInstallTelemetry();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mocito/pi-goal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Persistent long-running goals for Pi.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"pi": {
|
|
28
28
|
"extensions": [
|
|
29
|
-
"./extensions/
|
|
29
|
+
"./extensions/index.ts"
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
32
|
"files": [
|