pi-do-always 0.2.0 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +7 -26
  2. package/package.json +10 -4
  3. package/pi.image.png +0 -0
package/README.md CHANGED
@@ -19,6 +19,8 @@ the task's prompt is **filled into the input editor**. Review it, tweak it, pres
19
19
  └───────────────────────────────────────────────────────────────────┘
20
20
  ```
21
21
 
22
+ ![do-always — the numbered task selector](pi.image.png)
23
+
22
24
  ## Usage
23
25
 
24
26
  |Command|What it does|
@@ -34,19 +36,17 @@ as a user message instead.
34
36
 
35
37
  ## Install
36
38
 
37
- Install it as a Pi package, which loads the bundled `index.ts` (and its `tasks.ts`) without
39
+ Install it from npm as a Pi package, which loads the bundled `index.ts` (and its `tasks.ts`) without
38
40
  managing symlinks:
39
41
 
40
42
  ```bash
41
- pi install ./pi-always # from a local copy of this repo
42
- pi install git:github.com/aginies/pi-always # from the git repo
43
+ pi install npm:pi-do-always
43
44
  ```
44
45
 
45
- (It is not on npm yet; once published it will be `pi install npm:pi-do-always`.)
46
-
47
46
  Manage it with `pi list` (to see installed sources) and `pi remove <source>` using the same
48
- source you installed with (e.g. `pi remove git:github.com/aginies/pi-always`). Alternatively, it is auto-discovered from
49
- the extensions directory, so you can symlink it instead:
47
+ source you installed with (e.g. `pi remove npm:pi-do-always`).
48
+
49
+ Alternatively, you can install from the git repo or symlink a local checkout for development:
50
50
 
51
51
  ```bash
52
52
  ln -s "$PWD" ~/.pi/agent/extensions/do-always # uninstall with: rm that symlink
@@ -100,22 +100,3 @@ npm test # run the unit tests (node:test + tsx, in test/)
100
100
  The pure task logic (`parseConfig`, `mergeTasks`, `resolveTask`, `formatList`) lives in
101
101
  [`tasks.ts`](./tasks.ts) with no Pi dependencies, so it is unit-tested independently of the
102
102
  Pi runtime. The extension (`index.ts`) imports that logic and adds only the Pi UI.
103
-
104
- No build step is needed — Pi loads the TypeScript directly via jiti.
105
-
106
- ## Publishing
107
-
108
- To publish on npm:
109
-
110
- ```bash
111
- npm login
112
- npm publish
113
- ```
114
-
115
- `@earendil-works/pi-coding-agent` and `@earendil-works/pi-tui` are declared as `peerDependencies`
116
- with a `"*"` range and are **not** bundled — Pi supplies them to extensions. The `pi-package`
117
- keyword makes this package eligible for the [Pi package gallery](https://pi.dev/packages).
118
-
119
- The gallery page is built from `package.json` (name, description, author, version, license,
120
- repository, `pi` manifest) plus the README. Optional `pi.image` / `pi.video` fields in
121
- `package.json` add a gallery preview if you want one.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-do-always",
3
- "version": "0.2.0",
3
+ "version": "0.2.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": {
@@ -27,17 +27,23 @@
27
27
  "index.ts",
28
28
  "tasks.ts",
29
29
  "do-always.json",
30
- "README.md"
30
+ "README.md",
31
+ "pi.image.png"
31
32
  ],
32
33
  "pi": {
33
34
  "extensions": [
34
35
  "./index.ts"
35
- ]
36
+ ],
37
+ "image": "pi.image.png"
36
38
  },
37
39
  "scripts": {
38
40
  "dev": "pi --extension ./index.ts",
39
41
  "typecheck": "tsc --noEmit",
40
- "test": "node --import tsx --test test/**/*.test.ts"
42
+ "test": "node --import tsx --test test/*.test.ts",
43
+ "prepublishOnly": "npm run typecheck && npm test"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
41
47
  },
42
48
  "peerDependencies": {
43
49
  "@earendil-works/pi-coding-agent": "*",
package/pi.image.png ADDED
Binary file