pluribus-context 0.3.3 → 0.3.4
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/CHANGELOG.md +9 -0
- package/README.md +16 -22
- package/docs/ci-audit-example.md +5 -7
- package/docs/context-drift-audit.md +7 -16
- package/docs/migrate-existing-context.md +3 -3
- package/docs/quickstart.md +3 -3
- package/examples/github-actions/pluribus-audit.yml +1 -2
- package/package.json +4 -1
- package/src/utils/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
All notable changes to Pluribus are documented here.
|
|
6
6
|
|
|
7
|
+
## 0.3.4 — npm package page README refresh prep
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Replace pre-publish GitHub-tag workaround commands in README, quickstart, migration, CI audit, and drift-audit docs with the published `pluribus-context@0.3.3` npm path now that `latest` is current.
|
|
12
|
+
- Let `release:verify` run as a post-publish verification gate when npm `latest` already matches `package.json`, while preserving unreleased-copy checks when `main` is ahead of npm.
|
|
13
|
+
- Mark this docs-only patch as copy-paste compatible with `pluribus-context@0.3.3`, so the release gate can prepare a package-page README refresh without forcing temporary GitHub-tag workaround commands back into docs that already work on the current npm package.
|
|
14
|
+
- Extend `published:smoke` to reject the stale `github:caioribeiroclw-pixel/pluribus#v0.3.3` package-page workaround once npm `latest` reaches `0.3.4`.
|
|
15
|
+
|
|
7
16
|
## 0.3.3 — Publish-window rehearsal hardening
|
|
8
17
|
|
|
9
18
|
### Changed
|
package/README.md
CHANGED
|
@@ -73,8 +73,6 @@ And it generates the right files for each tool:
|
|
|
73
73
|
|
|
74
74
|
## Getting Started
|
|
75
75
|
|
|
76
|
-
> **Version note:** `pluribus audit` is published in `pluribus-context@0.3.0`. The CI-oriented audit flags and read-only init preview documented in the GitHub release tag `v0.3.3` (`--json`, `--output`, `--github-annotations`, `--ci`, `init --dry-run`) are prepared for the next npm patch release `0.3.3`; until that patch is published, use `@0.3.0` for the basic read-only audit, or use the explicit `github:...#v0.3.3` source command shown below when testing the tagged read-only preview flags.
|
|
77
|
-
|
|
78
76
|
### Pick the safe first command
|
|
79
77
|
|
|
80
78
|
If your repo already has AI context files such as `CLAUDE.md`, `.cursorrules`, Copilot instructions, or `AGENTS.md`, start with the read-only audit:
|
|
@@ -88,10 +86,10 @@ It does not write files. Without `pluribus.md`, it lists existing AI context sur
|
|
|
88
86
|
If you are starting from scratch, preview the source-of-truth scaffold first, then create it when it looks right:
|
|
89
87
|
|
|
90
88
|
```bash
|
|
91
|
-
#
|
|
92
|
-
npx --yes
|
|
89
|
+
# Preview only; does not write files:
|
|
90
|
+
npx --yes pluribus-context@latest init --dry-run
|
|
93
91
|
|
|
94
|
-
#
|
|
92
|
+
# Write pluribus.md when the preview looks right:
|
|
95
93
|
npx --yes pluribus-context@latest init
|
|
96
94
|
```
|
|
97
95
|
|
|
@@ -126,10 +124,10 @@ Want to see exactly what gets generated before adding it to a real project?
|
|
|
126
124
|
|
|
127
125
|
```bash
|
|
128
126
|
mkdir pluribus-demo && cd pluribus-demo
|
|
129
|
-
#
|
|
130
|
-
npx --yes
|
|
127
|
+
# Preview only; does not write files:
|
|
128
|
+
npx --yes pluribus-context@latest init --dry-run --name "Ana" --description "A Node.js service" --tools claude,cursor,copilot
|
|
131
129
|
|
|
132
|
-
#
|
|
130
|
+
# Write pluribus.md when the preview looks right:
|
|
133
131
|
npx --yes pluribus-context@latest init --name "Ana" --description "A Node.js service" --tools claude,cursor,copilot
|
|
134
132
|
npx --yes pluribus-context@latest validate
|
|
135
133
|
npx --yes pluribus-context@latest sync --dry-run
|
|
@@ -145,10 +143,10 @@ For a fuller walkthrough, see the [Quickstart](docs/quickstart.md). To enforce g
|
|
|
145
143
|
|
|
146
144
|
```bash
|
|
147
145
|
cd your-project/
|
|
148
|
-
#
|
|
149
|
-
npx --yes
|
|
146
|
+
# Preview only; does not write files:
|
|
147
|
+
npx --yes pluribus-context@latest init --dry-run
|
|
150
148
|
|
|
151
|
-
#
|
|
149
|
+
# Write pluribus.md when the preview looks right:
|
|
152
150
|
npx --yes pluribus-context@latest init
|
|
153
151
|
```
|
|
154
152
|
|
|
@@ -157,10 +155,10 @@ The dry-run prints the scaffold without writing files. The second command create
|
|
|
157
155
|
You can also use flags for non-interactive init, including the same dry-run preview:
|
|
158
156
|
|
|
159
157
|
```bash
|
|
160
|
-
#
|
|
161
|
-
npx --yes
|
|
158
|
+
# Preview only; does not write files:
|
|
159
|
+
npx --yes pluribus-context@latest init --dry-run --name "Ana" --description "A background job runner" --tools claude,cursor,openclaw
|
|
162
160
|
|
|
163
|
-
#
|
|
161
|
+
# Write pluribus.md when the preview looks right:
|
|
164
162
|
npx --yes pluribus-context@latest init --name "Ana" --description "A background job runner" --tools claude,cursor,openclaw
|
|
165
163
|
```
|
|
166
164
|
|
|
@@ -234,29 +232,25 @@ pluribus audit --strict
|
|
|
234
232
|
In GitHub Actions, add annotations so drift appears inline in the check UI:
|
|
235
233
|
|
|
236
234
|
```bash
|
|
237
|
-
|
|
238
|
-
npx --yes --package github:caioribeiroclw-pixel/pluribus#v0.3.3 pluribus audit --strict --github-annotations
|
|
235
|
+
npx --yes pluribus-context@latest audit --strict --github-annotations
|
|
239
236
|
```
|
|
240
237
|
|
|
241
238
|
For GitHub Actions, `--ci` is the shorter equivalent of `--strict --github-annotations`:
|
|
242
239
|
|
|
243
240
|
```bash
|
|
244
|
-
|
|
245
|
-
npx --yes --package github:caioribeiroclw-pixel/pluribus#v0.3.3 pluribus audit --ci
|
|
241
|
+
npx --yes pluribus-context@latest audit --ci
|
|
246
242
|
```
|
|
247
243
|
|
|
248
244
|
For CI scripts, dashboards, or migration tooling, use machine-readable output:
|
|
249
245
|
|
|
250
246
|
```bash
|
|
251
|
-
|
|
252
|
-
npx --yes --package github:caioribeiroclw-pixel/pluribus#v0.3.3 pluribus audit --strict --json
|
|
247
|
+
npx --yes pluribus-context@latest audit --strict --json
|
|
253
248
|
```
|
|
254
249
|
|
|
255
250
|
To save the JSON as a CI artifact while keeping stdout quiet, add `--output`:
|
|
256
251
|
|
|
257
252
|
```bash
|
|
258
|
-
|
|
259
|
-
npx --yes --package github:caioribeiroclw-pixel/pluribus#v0.3.3 pluribus audit --strict --json --output pluribus-audit.json
|
|
253
|
+
npx --yes pluribus-context@latest audit --strict --json --output pluribus-audit.json
|
|
260
254
|
```
|
|
261
255
|
|
|
262
256
|
The JSON shape is documented in [`schemas/audit-result.schema.json`](schemas/audit-result.schema.json) so CI wrappers and dashboards can validate integrations without scraping human output. For copy-paste enforcement, see the [CI audit example](docs/ci-audit-example.md) and the [Pre-commit Audit Hook](docs/pre-commit-audit.md).
|
package/docs/ci-audit-example.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Use this when `pluribus.md` is the source of truth and generated context files should stay current in pull requests.
|
|
4
4
|
|
|
5
|
-
`pluribus audit --strict` is read-only: it fails when a generated file is missing or drifted, but it does not rewrite anything in CI. The
|
|
5
|
+
`pluribus audit --strict` is read-only: it fails when a generated file is missing or drifted, but it does not rewrite anything in CI. The `--github-annotations`, `--json`, `--output`, and `--ci` flags are published in `pluribus-context@0.3.3` and available through the npm `latest` tag.
|
|
6
6
|
|
|
7
7
|
Use `--ci` in GitHub Actions when you want the shortest path: it is equivalent to `--strict --github-annotations`, so drift appears inline in the check UI and the job fails on drift. Use the explicit flags when composing custom outputs; pair annotations with `--json --output pluribus-audit.json` when you want a machine-readable artifact for dashboards or review comments. The output contract is documented in [`schemas/audit-result.schema.json`](../schemas/audit-result.schema.json).
|
|
8
8
|
|
|
@@ -35,16 +35,14 @@ jobs:
|
|
|
35
35
|
node-version: 22.x
|
|
36
36
|
|
|
37
37
|
- name: Audit AI context drift
|
|
38
|
-
|
|
39
|
-
run: npx --yes --package github:caioribeiroclw-pixel/pluribus#v0.3.3 pluribus audit --ci
|
|
38
|
+
run: npx --yes pluribus-context@latest audit --ci
|
|
40
39
|
```
|
|
41
40
|
|
|
42
41
|
If you want JSON output as an artifact, use this variant:
|
|
43
42
|
|
|
44
43
|
```yaml
|
|
45
44
|
- name: Audit AI context drift as JSON
|
|
46
|
-
|
|
47
|
-
run: npx --yes --package github:caioribeiroclw-pixel/pluribus#v0.3.3 pluribus audit --ci --json --output pluribus-audit.json
|
|
45
|
+
run: npx --yes pluribus-context@latest audit --ci --json --output pluribus-audit.json
|
|
48
46
|
|
|
49
47
|
- name: Upload Pluribus audit result
|
|
50
48
|
if: always()
|
|
@@ -63,8 +61,8 @@ npx --yes pluribus-context@latest audit
|
|
|
63
61
|
npx --yes pluribus-context@latest sync --dry-run
|
|
64
62
|
npx --yes pluribus-context@latest sync
|
|
65
63
|
npx --yes pluribus-context@latest audit --strict
|
|
66
|
-
# In GitHub Actions
|
|
67
|
-
npx --yes
|
|
64
|
+
# In GitHub Actions, use the CI shorthand:
|
|
65
|
+
npx --yes pluribus-context@latest audit --ci
|
|
68
66
|
```
|
|
69
67
|
|
|
70
68
|
Commit `pluribus.md` and the generated files together, or document that your team regenerates generated files during setup. Do not commit `.pluribus/cache/remote/`; commit `pluribus.lock.json` when you use remote imports.
|
|
@@ -18,19 +18,10 @@ Want to see the workflow before touching a real repo? Use the intentionally drif
|
|
|
18
18
|
|
|
19
19
|
## Version availability
|
|
20
20
|
|
|
21
|
-
The
|
|
22
|
-
|
|
23
|
-
The CI-oriented flags in this guide are available in the GitHub release tag `v0.3.3` while npm latest waits for the `0.3.3` publish:
|
|
24
|
-
|
|
25
|
-
- `--json`
|
|
26
|
-
- `--output <file>`
|
|
27
|
-
- `--github-annotations`
|
|
28
|
-
- `--ci`
|
|
29
|
-
|
|
30
|
-
Until `0.3.3` is published to npm, use `npx --yes pluribus-context@0.3.0 audit` for the stable published audit, or run the immutable GitHub tag when you specifically want to test the new CI flags:
|
|
21
|
+
The read-only audit workflow, including `--json`, `--output <file>`, `--github-annotations`, and `--ci`, is published in `pluribus-context@0.3.3` and available through the npm `latest` tag.
|
|
31
22
|
|
|
32
23
|
```bash
|
|
33
|
-
npx --yes
|
|
24
|
+
npx --yes pluribus-context@latest audit --strict --json
|
|
34
25
|
```
|
|
35
26
|
|
|
36
27
|
## 1. Find AI context surfaces
|
|
@@ -123,28 +114,28 @@ After adoption, the simplest check is:
|
|
|
123
114
|
npx --yes pluribus-context@latest audit --strict
|
|
124
115
|
```
|
|
125
116
|
|
|
126
|
-
If you want GitHub Actions to show drift inline in the check UI, add `--github-annotations
|
|
117
|
+
If you want GitHub Actions to show drift inline in the check UI, add `--github-annotations`:
|
|
127
118
|
|
|
128
119
|
```bash
|
|
129
|
-
npx --yes
|
|
120
|
+
npx --yes pluribus-context@latest audit --strict --github-annotations
|
|
130
121
|
```
|
|
131
122
|
|
|
132
123
|
For GitHub Actions, `--ci` is the shorter equivalent of `--strict --github-annotations`:
|
|
133
124
|
|
|
134
125
|
```bash
|
|
135
|
-
npx --yes
|
|
126
|
+
npx --yes pluribus-context@latest audit --ci
|
|
136
127
|
```
|
|
137
128
|
|
|
138
129
|
If you want machine-readable results for CI, dashboards, or a migration script, add `--json`:
|
|
139
130
|
|
|
140
131
|
```bash
|
|
141
|
-
npx --yes
|
|
132
|
+
npx --yes pluribus-context@latest audit --strict --json
|
|
142
133
|
```
|
|
143
134
|
|
|
144
135
|
To save that JSON as an artifact without relying on shell redirection, add `--output`:
|
|
145
136
|
|
|
146
137
|
```bash
|
|
147
|
-
npx --yes
|
|
138
|
+
npx --yes pluribus-context@latest audit --strict --json --output pluribus-audit.json
|
|
148
139
|
```
|
|
149
140
|
|
|
150
141
|
The JSON output includes `ok`, `source`, `results`, `summary`, and `nextStep`, so callers can fail on drift without parsing the human emoji output. The schema lives at [`schemas/audit-result.schema.json`](../schemas/audit-result.schema.json) for CI wrappers, dashboards, and migration tools that want a stable contract. `--output` writes the same JSON payload to disk and keeps stdout quiet. `--ci` is a shorthand for `--strict --github-annotations`. `--github-annotations` writes annotations to stderr, so it can be combined with `--json`/`--output` while preserving a clean artifact. See the [CI audit example](ci-audit-example.md) for a copy-paste GitHub Actions workflow and JSON artifact variant. If you want the same guard before commits leave a developer machine, use the [Pre-commit Audit Hook](pre-commit-audit.md).
|
|
@@ -51,16 +51,16 @@ Move project facts and shared conventions into `pluribus.md`. Keep tool-specific
|
|
|
51
51
|
|
|
52
52
|
## 2. Preview and scaffold `pluribus.md`
|
|
53
53
|
|
|
54
|
-
Preview the scaffold before writing a new source file
|
|
54
|
+
Preview the scaffold before writing a new source file:
|
|
55
55
|
|
|
56
56
|
```bash
|
|
57
|
-
npx --yes
|
|
57
|
+
npx --yes pluribus-context@latest init --dry-run \
|
|
58
58
|
--name "Your project" \
|
|
59
59
|
--description "What this repo does" \
|
|
60
60
|
--tools claude,cursor,copilot,openclaw
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
When the preview looks right, create `pluribus.md
|
|
63
|
+
When the preview looks right, create `pluribus.md`:
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
66
|
npx --yes pluribus-context@latest init \
|
package/docs/quickstart.md
CHANGED
|
@@ -27,16 +27,16 @@ cd pluribus-demo
|
|
|
27
27
|
|
|
28
28
|
## 2. Preview and scaffold context
|
|
29
29
|
|
|
30
|
-
Start read-only so you can see the template before writing a file
|
|
30
|
+
Start read-only so you can see the template before writing a file:
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
npx --yes
|
|
33
|
+
npx --yes pluribus-context@latest init --dry-run \
|
|
34
34
|
--name "Ana" \
|
|
35
35
|
--description "A Node.js service" \
|
|
36
36
|
--tools claude,cursor,copilot
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
When the scaffold looks right, create it
|
|
39
|
+
When the scaffold looks right, create it:
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
42
|
npx --yes pluribus-context@latest init \
|
|
@@ -22,5 +22,4 @@ jobs:
|
|
|
22
22
|
node-version: 22.x
|
|
23
23
|
|
|
24
24
|
- name: Audit AI context drift
|
|
25
|
-
|
|
26
|
-
run: npx --yes --package github:caioribeiroclw-pixel/pluribus#v0.3.3 pluribus audit --ci
|
|
25
|
+
run: npx --yes pluribus-context@latest audit --ci
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pluribus-context",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Sync intentional AI context and rules across Claude Code, Cursor, Copilot, OpenClaw, Windsurf, Continue, and Zed.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/caioribeiroclw-pixel/pluribus#readme",
|
|
@@ -63,5 +63,8 @@
|
|
|
63
63
|
"license": "MIT",
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=18.0.0"
|
|
66
|
+
},
|
|
67
|
+
"pluribusRelease": {
|
|
68
|
+
"publishedCommandMinimumVersion": "0.3.3"
|
|
66
69
|
}
|
|
67
70
|
}
|
package/src/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.3.
|
|
1
|
+
export const VERSION = '0.3.4'
|