@ftrdotdev/pi-qrspi 0.2.4 → 0.2.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 +126 -0
- package/extensions/qrspi-artifacts.ts +12 -11
- package/package.json +15 -6
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# @ftrdotdev/pi-qrspi
|
|
2
|
+
|
|
3
|
+
## 0.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 891568b: Ship `CHANGELOG.md` in the package tarballs.
|
|
8
|
+
|
|
9
|
+
- Pi reads a package changelog after an update and lists the new entries under
|
|
10
|
+
"Extension Updates" on the next fresh launch. It reads the file from the
|
|
11
|
+
installed package.
|
|
12
|
+
- The `files` whitelist in each `package.json` left the changelog out, so the
|
|
13
|
+
published tarballs carried no release notes.
|
|
14
|
+
- The README release section now records the requirement.
|
|
15
|
+
|
|
16
|
+
- 9b1fcd6: Standardize the `@effect/tsgo` setup and clear every lint finding.
|
|
17
|
+
|
|
18
|
+
- The toolchain moves to `@effect/tsgo` 0.73.4, `oxlint` 1.94.0, and
|
|
19
|
+
`oxlint-tsgolint` 7.0.2008.
|
|
20
|
+
- The root `tsconfig.json` now carries the compiler options and the
|
|
21
|
+
`@effect/language-service` plugin, and every package extends it. Stricter
|
|
22
|
+
flags join it: `noUnusedLocals`, `noUnusedParameters`, `noImplicitReturns`,
|
|
23
|
+
`noUncheckedSideEffectImports`, and `exactOptionalPropertyTypes`. Effect
|
|
24
|
+
diagnostics come from oxlint alone: the 13 `recommended` errors fail the
|
|
25
|
+
lint run, and the remaining rules report as warnings.
|
|
26
|
+
- `oxlint` is the only owner of the Effect diagnostics. `tsconfig.json` sets
|
|
27
|
+
the language-service plugin's `diagnostics` to `false`, so `tsc` no longer
|
|
28
|
+
repeats what oxlint reports. The root `oxlint.config.ts` extends the Effect
|
|
29
|
+
`style`, `correctness`, `antipattern` and `recommended` presets in that order;
|
|
30
|
+
oxlint finds it by walking up from each package, so the per-package configs
|
|
31
|
+
are gone.
|
|
32
|
+
- `Schema.Class`, `Schema.TaggedClass`, and `Schema.TaggedError` declarations
|
|
33
|
+
now carry the nominal brand type argument. **Type-level breaking change** for
|
|
34
|
+
code that assigned plain object literals to these types; construct them with
|
|
35
|
+
`.make()` or `new`.
|
|
36
|
+
- `@ftrdotdev/pi-inquiry`: `Keyboard`'s `nextKey` is
|
|
37
|
+
`readonly nextKey: Effect.Effect<KeyEvent>` instead of a zero-argument
|
|
38
|
+
method. **Breaking for code that implements `Keyboard["Service"]`**; callers
|
|
39
|
+
drop the `()`.
|
|
40
|
+
- `@ftrdotdev/pi-tui`: new `withStatus` and `withCounts` helpers replace
|
|
41
|
+
class-instance spreads when a status or count record needs one field
|
|
42
|
+
replaced. The config schema now uses `Schema.Finite` where `Schema.Number`
|
|
43
|
+
accepted `NaN` and infinities.
|
|
44
|
+
- `@ftrdotdev/pi-qrspi`: `readGitMetadata` omits unknown frontmatter fields
|
|
45
|
+
instead of setting them to `undefined`.
|
|
46
|
+
|
|
47
|
+
- 81c4a61: Move the Pi packages to `1.5.0` and build tool parameter schemas with
|
|
48
|
+
`@earendil-works/pi-schema`.
|
|
49
|
+
|
|
50
|
+
- `@earendil-works/pi-ai`, `@earendil-works/pi-coding-agent`, and
|
|
51
|
+
`@earendil-works/pi-tui` move from `1.4.0` to `1.5.0`. Pi 1.5.0 validates
|
|
52
|
+
tool arguments with `@earendil-works/pi-schema`.
|
|
53
|
+
- `pi-tracker` and `pi-tui` build `parameters` with pi-schema builders and
|
|
54
|
+
derive the parameter types from pi-schema's `Static`. The `typebox` peer
|
|
55
|
+
dependency is removed.
|
|
56
|
+
- `pi-inquiry` drops its TypeBox type import. Its Effect-generated JSON Schema
|
|
57
|
+
passes to Pi unchanged.
|
|
58
|
+
- Tool validation errors now use pi-schema messages, such as
|
|
59
|
+
`recommended: expected boolean, got string`.
|
|
60
|
+
|
|
61
|
+
## 0.2.5
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- c294fe5: Bump the Effect packages to `4.1.1`, `@effect/tsgo` to `0.63.0`, `vitest` to
|
|
66
|
+
`5.0.5`, and the Pi packages to `1.4.0`.
|
|
67
|
+
|
|
68
|
+
- `effect`, `@effect/platform-node`, `@effect/platform-node-shared`, and
|
|
69
|
+
`@effect/vitest` move from `4.0.0` to `4.1.1`; `@effect/tsgo` moves from
|
|
70
|
+
`0.47.2` to `0.63.0`.
|
|
71
|
+
- `@earendil-works/pi-ai`, `@earendil-works/pi-coding-agent`, and
|
|
72
|
+
`@earendil-works/pi-tui` move from `1.1.0` to `1.4.0`. No extension API
|
|
73
|
+
changes were needed.
|
|
74
|
+
- `vitest` moves from the 4.1 line to `5.0.5`, the range that
|
|
75
|
+
`@effect/vitest` declares as its peer. `oxlint` moves to `1.90.0` and
|
|
76
|
+
`oxlint-tsgolint` to `7.0.2005`, the pair that `@effect/tsgo` 0.63.0 supports.
|
|
77
|
+
- Effect 4.1.1 marks `effect/FileSystem`, `effect/Path`, `effect/PlatformError`,
|
|
78
|
+
`effect/Graph`, `@effect/platform-node*`, and `@effect/vitest` as unstable.
|
|
79
|
+
Each package `tsconfig.json` now lists them in the language-service plugin
|
|
80
|
+
option `allowedUnstableApis`, so typecheck stays green without per-file
|
|
81
|
+
`@effect-diagnostics` directives.
|
|
82
|
+
- The internal `TuiConfig` schema in `pi-tui` is now a `Schema.Struct` with a type
|
|
83
|
+
alias instead of a `Schema.Class`. The class was only ever used as plain data,
|
|
84
|
+
and the 4.1.1 `schemaClassObjectLiteral` rule flagged every literal and spread.
|
|
85
|
+
`TuiConfig` is not part of the package exports, so no consumer code changes.
|
|
86
|
+
|
|
87
|
+
## 0.2.4
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- 4057216: Update the bundled planning-workflow and tdd skills to tag 0.2.0 of the
|
|
92
|
+
`felixnorden/skills` repository.
|
|
93
|
+
|
|
94
|
+
## 0.2.3
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- a860f5b: Move the Effect packages to the stable `4.0.0` release and the Pi packages to `1.0.0`.
|
|
99
|
+
|
|
100
|
+
- Bump `effect`, `@effect/platform-node`, `@effect/platform-node-shared`, and `@effect/vitest` to `4.0.0`, and `@effect/tsgo` to `0.47.2`.
|
|
101
|
+
- Bump `@earendil-works/pi-ai`, `@earendil-works/pi-coding-agent`, and `@earendil-works/pi-tui` to `1.0.0`.
|
|
102
|
+
- Follow the rc.118 module move: `effect/unstable/process` becomes `effect/process`.
|
|
103
|
+
- Follow the Pi 0.99.0 tool API: tool execution contexts are now `ExtensionToolContext`.
|
|
104
|
+
- `pi-inquiry` gains a `typecheck` script; its two latent type errors are fixed.
|
|
105
|
+
|
|
106
|
+
## 0.2.2
|
|
107
|
+
|
|
108
|
+
### Patch Changes
|
|
109
|
+
|
|
110
|
+
- Add the `pi-package` keyword and related npm keywords to `package.json`.
|
|
111
|
+
|
|
112
|
+
The keywords landed after the 0.2.1 publish, so the registry copy has no
|
|
113
|
+
`keywords` field. Keyword-based discovery, including the `pi-package`
|
|
114
|
+
convention, cannot find the package at 0.2.1.
|
|
115
|
+
|
|
116
|
+
## 0.2.1
|
|
117
|
+
|
|
118
|
+
### Patch Changes
|
|
119
|
+
|
|
120
|
+
- Update underlying skills to tag 0.1.2
|
|
121
|
+
|
|
122
|
+
## 0.2.0
|
|
123
|
+
|
|
124
|
+
### Minor Changes
|
|
125
|
+
|
|
126
|
+
- fe0ac01: Solidify initial tooling, visuals, and configurability between packages
|
|
@@ -64,7 +64,7 @@ export function dateStamp(now: Date): string {
|
|
|
64
64
|
*/
|
|
65
65
|
export function fixFrontmatterDate(content: string, now: Date): string {
|
|
66
66
|
const fm = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
67
|
-
if (
|
|
67
|
+
if (fm === null) return content;
|
|
68
68
|
const block = fm[1] ?? "";
|
|
69
69
|
if (!/^date:/m.test(block)) return content;
|
|
70
70
|
const iso = now.toISOString();
|
|
@@ -78,7 +78,7 @@ export function fixFrontmatterDate(content: string, now: Date): string {
|
|
|
78
78
|
*/
|
|
79
79
|
export function hasFrontmatterKey(content: string, keys: readonly string[]): boolean {
|
|
80
80
|
const fm = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
81
|
-
if (
|
|
81
|
+
if (fm === null) return false;
|
|
82
82
|
const block = fm[1] ?? "";
|
|
83
83
|
const pattern = new RegExp(`^(${keys.join("|")}):`, "m");
|
|
84
84
|
return pattern.test(block);
|
|
@@ -91,7 +91,7 @@ export function hasFrontmatterKey(content: string, keys: readonly string[]): boo
|
|
|
91
91
|
*/
|
|
92
92
|
export function fixFrontmatterGit(content: string, git: GitMetadata): string {
|
|
93
93
|
const fm = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
94
|
-
if (
|
|
94
|
+
if (fm === null) return content;
|
|
95
95
|
const block = fm[1] ?? "";
|
|
96
96
|
let out = block;
|
|
97
97
|
for (const { prop, key } of FRONTMATTER_GIT_KEYS) {
|
|
@@ -143,10 +143,11 @@ export async function readGitMetadata(cwd: string): Promise<GitMetadata> {
|
|
|
143
143
|
runGit(cwd, ["branch", "--show-current"]),
|
|
144
144
|
runGit(cwd, ["remote", "get-url", "origin"]),
|
|
145
145
|
]);
|
|
146
|
+
const remote = remoteUrl === undefined ? undefined : repositoryNameFromUrl(remoteUrl);
|
|
146
147
|
return {
|
|
147
|
-
commit,
|
|
148
|
-
branch: branch
|
|
149
|
-
|
|
148
|
+
...(commit === undefined ? {} : { commit }),
|
|
149
|
+
...(branch === undefined || branch === "" ? {} : { branch }),
|
|
150
|
+
...(remote === undefined ? {} : { repository: remote }),
|
|
150
151
|
};
|
|
151
152
|
}
|
|
152
153
|
|
|
@@ -177,7 +178,7 @@ export async function cachedGitMetadata(
|
|
|
177
178
|
): Promise<GitMetadata> {
|
|
178
179
|
const at = now();
|
|
179
180
|
const hit = gitMetadataCache.get(cwd);
|
|
180
|
-
if (hit && at - hit.at < GIT_CACHE_TTL_MS) return hit.meta;
|
|
181
|
+
if (hit !== undefined && at - hit.at < GIT_CACHE_TTL_MS) return hit.meta;
|
|
181
182
|
const meta = await fetch(cwd);
|
|
182
183
|
gitMetadataCache.set(cwd, { meta, at });
|
|
183
184
|
return meta;
|
|
@@ -252,7 +253,7 @@ export function normalizeArtifactPath(
|
|
|
252
253
|
}
|
|
253
254
|
|
|
254
255
|
const match = rawPath.match(ARTIFACT_PATH_RE);
|
|
255
|
-
if (
|
|
256
|
+
if (match === null) return {};
|
|
256
257
|
const prefix = match[1] ?? "";
|
|
257
258
|
const kind = match[2] ?? "";
|
|
258
259
|
const basename = match[3] ?? "";
|
|
@@ -266,7 +267,7 @@ export function normalizeArtifactPath(
|
|
|
266
267
|
.replace(COMPACT_DATE_RE, "")
|
|
267
268
|
.replace(DASHED_DATE_RE, "");
|
|
268
269
|
const slug = slugify(stem);
|
|
269
|
-
if (
|
|
270
|
+
if (slug === "") return {};
|
|
270
271
|
|
|
271
272
|
return { path: `${prefix}.qrspi/${kind}/${dateStamp(now)}-${slug}.md` };
|
|
272
273
|
}
|
|
@@ -310,11 +311,11 @@ export default function (pi: ExtensionAPI) {
|
|
|
310
311
|
const exists = (p: string) => existsSync(resolve(ctx.cwd, p));
|
|
311
312
|
const result = normalizeArtifactPath(rawPath, new Date(), exists);
|
|
312
313
|
|
|
313
|
-
if (result.block) {
|
|
314
|
+
if (result.block !== undefined) {
|
|
314
315
|
if (ctx.hasUI) ctx.ui.notify(result.block, "warning");
|
|
315
316
|
return { block: true, reason: result.block };
|
|
316
317
|
}
|
|
317
|
-
if (result.path && result.path !== rawPath) {
|
|
318
|
+
if (result.path !== undefined && result.path !== rawPath) {
|
|
318
319
|
input.path = result.path; // mutate in place — the tool executes with the canonical path
|
|
319
320
|
}
|
|
320
321
|
// Stamp the frontmatter only when creating a NEW .qrspi artifact.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ftrdotdev/pi-qrspi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"coding-agent",
|
|
6
6
|
"extension",
|
|
@@ -25,18 +25,22 @@
|
|
|
25
25
|
"path": "packages/qrspi"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
|
+
"CHANGELOG.md",
|
|
28
29
|
"prompts",
|
|
29
30
|
"extensions",
|
|
30
31
|
"skills/planning-workflow",
|
|
31
32
|
"skills/tdd"
|
|
32
33
|
],
|
|
33
34
|
"type": "module",
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
34
38
|
"scripts": {
|
|
35
39
|
"fetch:skills": "bun run scripts/fetch-skills.ts",
|
|
36
40
|
"prepare": "[ -d skills/planning-workflow ] || bun run fetch:skills",
|
|
37
41
|
"prepack": "bun run fetch:skills",
|
|
38
42
|
"pack": "bun pm pack --destination ./dist",
|
|
39
|
-
"test": "
|
|
43
|
+
"test": "vitest run",
|
|
40
44
|
"typecheck": "tsc --noEmit",
|
|
41
45
|
"lint": "oxlint",
|
|
42
46
|
"lint:fix": "oxlint --fix",
|
|
@@ -44,11 +48,16 @@
|
|
|
44
48
|
"fmt:check": "oxfmt --check"
|
|
45
49
|
},
|
|
46
50
|
"devDependencies": {
|
|
47
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
51
|
+
"@earendil-works/pi-coding-agent": "1.6.0",
|
|
52
|
+
"@effect/tsgo": "0.73.4",
|
|
53
|
+
"@effect/vitest": "4.1.5",
|
|
54
|
+
"@ftrdotdev/pi-test-kit": "0.0.0",
|
|
48
55
|
"@types/bun": "latest",
|
|
49
|
-
"oxfmt": "
|
|
50
|
-
"oxlint": "1.
|
|
51
|
-
"
|
|
56
|
+
"oxfmt": "0.80.0",
|
|
57
|
+
"oxlint": "1.94.0",
|
|
58
|
+
"oxlint-tsgolint": "7.0.2008",
|
|
59
|
+
"typescript": "7.0.2",
|
|
60
|
+
"vitest": "^5.1.0"
|
|
52
61
|
},
|
|
53
62
|
"pi": {
|
|
54
63
|
"prompts": [
|