Commit 6f63ca5
authored
chore(deps): migrate pi-continuous-learning to @earendil-works namespace (#120)
## Summary
Migrates `packages/pi-continuous-learning` from the deprecated
`@mariozechner/*@^0.62.0` packages to `@earendil-works/*@^0.74.0`,
mirroring what PR #102 did for `pi-simplify`.
- Updates `peerDependencies` in `package.json` to
`@earendil-works/pi-coding-agent`, `@earendil-works/pi-ai`, and
`@earendil-works/pi-tui` at `^0.74.0`
- Replaces all `@mariozechner/*` import specifiers across 32 source and
test files
- Fixes all type errors arising from API shape changes between versions
## API shape changes fixed
### `loadSkills` — new required options
`loadSkills` now requires `agentDir`, `skillPaths`, and
`includeDefaults` in addition to `cwd`. Updated all three call sites:
- `src/index.ts` (session_start hook)
- Two dynamic `import()` calls in `src/cli/analyze.ts`
All now pass `getAgentDir()`, `[]`, and `true` for the new fields.
### `ExtensionUIContext` — new required methods
The `ExtensionUIContext` interface gained five new required methods
between 0.62 and 0.74: `setWorkingVisible`, `setWorkingIndicator`,
`setHiddenThinkingLabel`, `addAutocompleteProvider`, and
`getEditorComponent`. Added these as `vi.fn()` stubs to the test mock in
`src/analysis-notification.test.ts`.
### `ExtensionContext` — new `signal` property
`ExtensionContext` now declares `signal: AbortSignal | undefined`. Added
to the test mock alongside the existing fields.
### TypeBox / `StringEnum` compatibility
`@earendil-works/pi-ai` now re-exports `Type` and `Static` from
`typebox@^1.1.x` (not `@sinclair/typebox@0.34`). The `StringEnum` helper
it exports returns `TUnsafe<T>` which extends `TSchema` from
`typebox@1.x` — but is structurally incompatible with
`@sinclair/typebox@0.34`'s `TSchema`.
Fixed in `fact-tools.ts` and `instinct-tools.ts` by switching all three
imports (`Type`, `Static`, `StringEnum`) from `@sinclair/typebox` /
`@earendil-works/pi-ai` to importing everything from
`@earendil-works/pi-ai` (which re-exports the compatible v1 `Type` and
`Static`).
## Test plan
- [x] `npm run typecheck -w packages/pi-continuous-learning` — 0 errors
- [x] `npm run test -w packages/pi-continuous-learning` — 839 tests pass
across 52 test files1 parent a6dacc2 commit 6f63ca5
34 files changed
Lines changed: 54 additions & 50 deletions
File tree
- packages/pi-continuous-learning
- src
- cli
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
| 328 | + | |
| 329 | + | |
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
649 | | - | |
| 648 | + | |
| 649 | + | |
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments