pi-do-always 0.4.1 → 0.4.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/README.md
CHANGED
|
@@ -76,7 +76,7 @@ Alternatively, you can install from the git repo or symlink a local checkout for
|
|
|
76
76
|
ln -s "$PWD" ~/.pi/agent/extensions/do-always # uninstall with: rm that symlink
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
For development you can also load it explicitly: `npm run dev` (runs `pi --extension ./index.ts`).
|
|
79
|
+
For development you can also load it explicitly: `npm run dev` (runs `pi --extension ./extensions/pi-do-always/index.ts`).
|
|
80
80
|
|
|
81
81
|
## Tasks configuration
|
|
82
82
|
|
|
@@ -88,7 +88,7 @@ Tasks are read from JSON files (an array of tasks, or the object form `{"tasks":
|
|
|
88
88
|
|`<project>/.pi/do-always.json`|Project-local; overrides global tasks with the same `name`|
|
|
89
89
|
|
|
90
90
|
If neither file exists, the built-in defaults (Review, Cleanup, Security, Performance, Propose features, Build, Tests, Readme, Release, Commit) are used.
|
|
91
|
-
This repo ships a sample in [`do-always.json`](./do-always.json) — copy it to one of the
|
|
91
|
+
This repo ships a sample in [`do-always.json`](./extensions/pi-do-always/do-always.json) — copy it to one of the
|
|
92
92
|
locations above to make it your own:
|
|
93
93
|
|
|
94
94
|
```json
|
|
@@ -147,5 +147,5 @@ npm test # run the unit tests (node:test + tsx, in test/)
|
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
The pure task logic (`parseConfig`, `mergeTasks`, `renderPrompt`, `resolveTask`, `formatList`) lives in
|
|
150
|
-
[`tasks.ts`](./tasks.ts) with no Pi dependencies, so it is unit-tested independently of the
|
|
151
|
-
Pi runtime. The extension (`index.ts`) imports that logic and adds only the Pi UI.
|
|
150
|
+
[`tasks.ts`](./extensions/pi-do-always/tasks.ts) with no Pi dependencies, so it is unit-tested independently of the
|
|
151
|
+
Pi runtime. The extension (`extensions/pi-do-always/index.ts`) imports that logic and adds only the Pi UI.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-do-always",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pi extension: /do-always — pick a common task by number, it fills your prompt",
|
|
6
6
|
"author": {
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"pi",
|
|
13
13
|
"pi-coding-agent",
|
|
14
14
|
"pi-extension",
|
|
15
|
-
"pi-extensions",
|
|
16
15
|
"do-always"
|
|
17
16
|
],
|
|
18
17
|
"license": "MIT",
|
|
@@ -28,22 +27,22 @@
|
|
|
28
27
|
"url": "https://github.com/aginies/pi-do-always/issues"
|
|
29
28
|
},
|
|
30
29
|
"files": [
|
|
31
|
-
"index.ts",
|
|
32
|
-
"tasks.ts",
|
|
33
|
-
"do-always.json",
|
|
30
|
+
"extensions/pi-do-always/index.ts",
|
|
31
|
+
"extensions/pi-do-always/tasks.ts",
|
|
32
|
+
"extensions/pi-do-always/do-always.json",
|
|
34
33
|
"README.md",
|
|
35
34
|
"pi.image.png"
|
|
36
35
|
],
|
|
37
36
|
"pi": {
|
|
38
37
|
"extensions": [
|
|
39
|
-
"./index.ts"
|
|
38
|
+
"./extensions/pi-do-always/index.ts"
|
|
40
39
|
],
|
|
41
40
|
"image": "pi.image.png"
|
|
42
41
|
},
|
|
43
42
|
"scripts": {
|
|
44
|
-
"dev": "pi --extension ./index.ts",
|
|
43
|
+
"dev": "pi --extension ./extensions/pi-do-always/index.ts",
|
|
45
44
|
"typecheck": "tsc --noEmit",
|
|
46
|
-
"test": "node --import tsx --test test/*.test.ts",
|
|
45
|
+
"test": "node --import tsx --test extensions/pi-do-always/test/*.test.ts",
|
|
47
46
|
"prepublishOnly": "npm run typecheck && npm test"
|
|
48
47
|
},
|
|
49
48
|
"publishConfig": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|