@gianfrancopiana/openclaw-autoresearch 1.0.8 → 1.0.9
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 +1 -1
- package/RELEASING.md +48 -19
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -132,7 +132,7 @@ npm run smoke:openclaw-host -- /absolute/path/to/openclaw
|
|
|
132
132
|
npm run smoke:registry-openclaw-host -- <published-version> /absolute/path/to/openclaw
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
Release instructions, including npm
|
|
135
|
+
Release instructions, including `npm run release:prepare -- <version> --host /absolute/path/to/openclaw` and GitHub Actions trusted publishing with npm provenance, live in [`RELEASING.md`](RELEASING.md).
|
|
136
136
|
|
|
137
137
|
The local test shim supports typechecking and tests without a full OpenClaw host checkout. Runtime behavior depends on a real OpenClaw host, so run the host smoke against a current checkout before release.
|
|
138
138
|
|
package/RELEASING.md
CHANGED
|
@@ -2,44 +2,55 @@
|
|
|
2
2
|
|
|
3
3
|
## Prerequisites
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
-
|
|
5
|
+
- GitHub release access for `gianfrancopiana/openclaw-autoresearch`
|
|
6
|
+
- npm trusted publishing configured for `@gianfrancopiana/openclaw-autoresearch`
|
|
7
|
+
- repository: `gianfrancopiana/openclaw-autoresearch`
|
|
8
|
+
- workflow: `.github/workflows/npm-publish.yml`
|
|
9
|
+
- environment: `npm`
|
|
10
|
+
- fallback only: local npm publish access with 2FA or a granular publish token
|
|
7
11
|
|
|
8
12
|
## Release
|
|
9
13
|
|
|
10
|
-
1.
|
|
14
|
+
1. Prepare the version bump from a clean branch:
|
|
11
15
|
|
|
12
16
|
```bash
|
|
13
|
-
npm run
|
|
17
|
+
npm run release:prepare -- <version> --host /absolute/path/to/openclaw
|
|
14
18
|
```
|
|
15
19
|
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
This updates `package.json`, `openclaw.plugin.json`, and `package-lock.json`,
|
|
21
|
+
syncs generated metadata, checks the matching `v<version>` tag, runs
|
|
22
|
+
`release:verify`, and smoke-tests against the supplied OpenClaw checkout.
|
|
18
23
|
|
|
19
|
-
|
|
24
|
+
If you do not have a host checkout available, omit `--host` and run the host
|
|
25
|
+
smoke before publishing:
|
|
20
26
|
|
|
21
27
|
```bash
|
|
22
|
-
npm
|
|
23
|
-
npm run release:verify
|
|
28
|
+
npm run smoke:openclaw-host -- /absolute/path/to/openclaw
|
|
24
29
|
```
|
|
25
30
|
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
If you change the minimum supported OpenClaw version, keep
|
|
32
|
+
`openclaw.install`, `openclaw.compat`, and `openclaw.build` aligned too.
|
|
33
|
+
|
|
34
|
+
2. Open and merge a PR with the version and metadata changes.
|
|
28
35
|
|
|
29
|
-
3.
|
|
36
|
+
3. Create and publish the matching GitHub release/tag from `main`:
|
|
30
37
|
|
|
31
38
|
```bash
|
|
32
|
-
npm run
|
|
39
|
+
npm run release:check-tag -- v<version>
|
|
40
|
+
gh release create v<version> --target main --title v<version> --notes-file release-notes.md
|
|
33
41
|
```
|
|
34
42
|
|
|
35
|
-
|
|
43
|
+
Publishing the GitHub release triggers `.github/workflows/npm-publish.yml`,
|
|
44
|
+
which publishes the package to npm with provenance through GitHub OIDC.
|
|
45
|
+
|
|
46
|
+
4. Watch the publish workflow and verify npm:
|
|
36
47
|
|
|
37
48
|
```bash
|
|
38
|
-
npm
|
|
49
|
+
gh run list --workflow npm-publish.yml --limit 1
|
|
50
|
+
npm view @gianfrancopiana/openclaw-autoresearch version
|
|
51
|
+
npm view @gianfrancopiana/openclaw-autoresearch@<version> version
|
|
39
52
|
```
|
|
40
53
|
|
|
41
|
-
Replace `123456` with the current code from your authenticator app.
|
|
42
|
-
|
|
43
54
|
5. Verify the published registry tarball against the same host:
|
|
44
55
|
|
|
45
56
|
```bash
|
|
@@ -58,9 +69,27 @@
|
|
|
58
69
|
pnpm openclaw plugins install @gianfrancopiana/openclaw-autoresearch
|
|
59
70
|
```
|
|
60
71
|
|
|
61
|
-
##
|
|
72
|
+
## Local fallback
|
|
73
|
+
|
|
74
|
+
Prefer the GitHub Actions trusted-publishing workflow. If it is unavailable,
|
|
75
|
+
publish from a clean checkout only:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npm ci
|
|
79
|
+
npm run release:verify
|
|
80
|
+
npm publish --otp=123456
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Replace `123456` with the current code from your authenticator app.
|
|
84
|
+
|
|
85
|
+
## Common failures
|
|
86
|
+
|
|
87
|
+
If the publish workflow fails because trusted publishing is not configured,
|
|
88
|
+
add the npm trusted publisher for `.github/workflows/npm-publish.yml` and rerun
|
|
89
|
+
the release workflow.
|
|
62
90
|
|
|
63
|
-
If `npm publish` fails with `E403` and mentions 2FA or bypass tokens, the
|
|
91
|
+
If local `npm publish` fails with `E403` and mentions 2FA or bypass tokens, the
|
|
92
|
+
current auth on this machine is not sufficient to publish. Either:
|
|
64
93
|
|
|
65
94
|
- re-run `npm publish --otp=<current-code>`
|
|
66
95
|
- or switch to a granular npm token with publish rights and `Bypass 2FA` enabled
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gianfrancopiana/openclaw-autoresearch",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Faithful OpenClaw port of pi-autoresearch.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.ts",
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"test": "vitest run",
|
|
12
12
|
"validate": "npm run check:release-metadata && npm run typecheck && npm run test",
|
|
13
13
|
"release:verify": "npm run validate && npm pack --dry-run",
|
|
14
|
+
"release:check-tag": "node ./scripts/check-release-tag.mjs",
|
|
15
|
+
"release:prepare": "node ./scripts/prepare-release.mjs",
|
|
14
16
|
"prepublishOnly": "npm run release:verify",
|
|
15
17
|
"smoke:openclaw-host": "node ./scripts/smoke-openclaw-host.mjs",
|
|
16
18
|
"smoke:registry-openclaw-host": "node ./scripts/smoke-openclaw-registry.mjs"
|