@mocito/pi-goal 0.1.1 → 0.1.6
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 +12 -0
- package/CONTRIBUTING.md +1 -1
- package/README.md +1 -1
- package/extensions/{pi-goal/index.ts → index.ts} +11 -11
- package/index.ts +1 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.6 - 2026-06-06
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Revert package name to `@mocito/pi-goal` (scoped) due to npm name conflict.
|
|
8
|
+
- Aligned package structure with monorepo guidelines (added root `index.ts` re-export, `.editorconfig`, `.gitignore`; fixed extension entry point; removed non-canonical tsconfig flags).
|
|
9
|
+
- Update `author` field to full name for monorepo consistency.
|
|
10
|
+
|
|
11
|
+
## 0.1.3
|
|
12
|
+
|
|
13
|
+
- Move the extension entry point to `extensions/index.ts` so Pi displays the package extension compactly.
|
|
14
|
+
|
|
3
15
|
## 0.1.1
|
|
4
16
|
|
|
5
17
|
- Add best-effort install/update telemetry, gated by Pi telemetry/offline settings and disabled in CI.
|
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/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./extensions/index.js";
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mocito/pi-goal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Persistent long-running goals for Pi.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"author": "
|
|
7
|
+
"author": "Jose Mocito",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/jvm/pi-mono.git",
|
|
@@ -26,10 +26,11 @@
|
|
|
26
26
|
},
|
|
27
27
|
"pi": {
|
|
28
28
|
"extensions": [
|
|
29
|
-
"./
|
|
29
|
+
"./index.ts"
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
|
+
"index.ts",
|
|
33
34
|
"extensions",
|
|
34
35
|
"src",
|
|
35
36
|
"README.md",
|
|
@@ -43,7 +44,6 @@
|
|
|
43
44
|
"check": "tsc --noEmit",
|
|
44
45
|
"typecheck": "tsc --noEmit",
|
|
45
46
|
"test": "node --import tsx --test tests/*.test.mjs",
|
|
46
|
-
"format": "tsc --noEmit",
|
|
47
47
|
"pack:dry-run": "npm pack --dry-run"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"typebox": "*"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@earendil-works/pi-ai": "^0.
|
|
57
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
58
|
-
"@earendil-works/pi-tui": "^0.
|
|
56
|
+
"@earendil-works/pi-ai": "^0.75.4",
|
|
57
|
+
"@earendil-works/pi-coding-agent": "^0.75.4",
|
|
58
|
+
"@earendil-works/pi-tui": "^0.75.4",
|
|
59
59
|
"@types/node": "^25.6.2",
|
|
60
60
|
"typebox": "^1.1.33",
|
|
61
61
|
"tsx": "^4.21.0",
|