pi-auto-mode 0.1.2 → 0.1.3

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
@@ -206,3 +206,36 @@ Current differences:
206
206
  ## Development
207
207
 
208
208
  This package is intentionally dependency-light and relies on pi's extension runtime.
209
+
210
+ ## Publish to npm
211
+
212
+ This repository includes a GitHub Actions workflow at `.github/workflows/publish.yml` that publishes the package to npm using trusted publishing.
213
+
214
+ ### First publish
215
+
216
+ Because `pi-auto-mode` does not exist on npm yet, do the first publish once from your machine:
217
+
218
+ 1. Log in to npm from your shell.
219
+ 2. Run `npm publish --access public` from the repository root.
220
+ 3. Confirm the package exists on npm.
221
+
222
+ After that first publish, switch the repository to trusted publishing.
223
+
224
+ ### Switch to trusted publishing
225
+
226
+ After the package exists on npm, switch to npm trusted publishing:
227
+
228
+ 1. In npm package settings, add a trusted publisher for this GitHub repository:
229
+ - owner: `r4vi`
230
+ - repository: `pi-auto-mode`
231
+ - workflow file: `publish.yml`
232
+ 2. Keep the package public so the workflow can publish with `--access public`.
233
+
234
+ Release flow:
235
+
236
+ 1. Bump `version` in `package.json`.
237
+ 2. Commit and push the change.
238
+ 3. Create a GitHub release whose tag matches the package version, with or without a leading `v`.
239
+ 4. The workflow publishes the package to npm and attaches npm provenance automatically.
240
+
241
+ You can also run the workflow manually from the Actions tab with `workflow_dispatch`.
@@ -1,7 +1,7 @@
1
- import { complete } from "@mariozechner/pi-ai";
2
- import type { Model, UserMessage } from "@mariozechner/pi-ai";
3
- import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
4
- import { Container, SelectList, Text, matchesKey, type SelectItem } from "@mariozechner/pi-tui";
1
+ import { complete } from "@earendil-works/pi-ai/compat";
2
+ import type { Model, UserMessage } from "@earendil-works/pi-ai";
3
+ import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
4
+ import { Container, SelectList, Text, matchesKey, type SelectItem } from "@earendil-works/pi-tui";
5
5
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
6
6
  import { basename, dirname, resolve } from "node:path";
7
7
  import os from "node:os";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-auto-mode",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "A pi extension that re-implements Claude Code style auto mode with a two-stage tool-call classifier.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -22,8 +22,9 @@
22
22
  "access": "public"
23
23
  },
24
24
  "peerDependencies": {
25
- "@mariozechner/pi-ai": "*",
26
- "@mariozechner/pi-coding-agent": "*"
25
+ "@earendil-works/pi-ai": "*",
26
+ "@earendil-works/pi-coding-agent": "*",
27
+ "@earendil-works/pi-tui": "*"
27
28
  },
28
29
  "pi": {
29
30
  "extensions": ["./extensions"]