pi-do-always 0.2.1 → 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 (2) hide show
  1. package/README.md +5 -26
  2. package/package.json +6 -2
package/README.md CHANGED
@@ -36,19 +36,17 @@ as a user message instead.
36
36
 
37
37
  ## Install
38
38
 
39
- 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
40
40
  managing symlinks:
41
41
 
42
42
  ```bash
43
- pi install ./pi-always # from a local copy of this repo
44
- pi install git:github.com/aginies/pi-always # from the git repo
43
+ pi install npm:pi-do-always
45
44
  ```
46
45
 
47
- (It is not on npm yet; once published it will be `pi install npm:pi-do-always`.)
48
-
49
46
  Manage it with `pi list` (to see installed sources) and `pi remove <source>` using the same
50
- source you installed with (e.g. `pi remove git:github.com/aginies/pi-always`). Alternatively, it is auto-discovered from
51
- 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:
52
50
 
53
51
  ```bash
54
52
  ln -s "$PWD" ~/.pi/agent/extensions/do-always # uninstall with: rm that symlink
@@ -102,22 +100,3 @@ npm test # run the unit tests (node:test + tsx, in test/)
102
100
  The pure task logic (`parseConfig`, `mergeTasks`, `resolveTask`, `formatList`) lives in
103
101
  [`tasks.ts`](./tasks.ts) with no Pi dependencies, so it is unit-tested independently of the
104
102
  Pi runtime. The extension (`index.ts`) imports that logic and adds only the Pi UI.
105
-
106
- No build step is needed — Pi loads the TypeScript directly via jiti.
107
-
108
- ## Publishing
109
-
110
- To publish on npm:
111
-
112
- ```bash
113
- npm login
114
- npm publish
115
- ```
116
-
117
- `@earendil-works/pi-coding-agent` and `@earendil-works/pi-tui` are declared as `peerDependencies`
118
- with a `"*"` range and are **not** bundled — Pi supplies them to extensions. The `pi-package`
119
- keyword makes this package eligible for the [Pi package gallery](https://pi.dev/packages).
120
-
121
- The gallery page is built from `package.json` (name, description, author, version, license,
122
- repository, `pi` manifest) plus the README. Optional `pi.image` / `pi.video` fields in
123
- `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.1",
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": {
@@ -39,7 +39,11 @@
39
39
  "scripts": {
40
40
  "dev": "pi --extension ./index.ts",
41
41
  "typecheck": "tsc --noEmit",
42
- "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"
43
47
  },
44
48
  "peerDependencies": {
45
49
  "@earendil-works/pi-coding-agent": "*",