@cohesivity/init 0.6.7 → 0.7.0
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 +81 -4
- package/bin/cli.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ Portable directories are staged and atomically replaced.
|
|
|
26
26
|
| Antigravity | `agy plugin install <verified-local-root>`; if `agy` is absent, atomically copy to `~/.gemini/config/plugins/cohesivity` only when an Antigravity-specific home is present |
|
|
27
27
|
| OpenClaw | install `cohesivity` through the verified Claude marketplace root, enable it, then save the remote Streamable HTTP OAuth MCP |
|
|
28
28
|
| Hermes | install the canonical skill and local server in Hermes-owned paths, import both MCP entries through `hermes import-agent ... --overwrite --yes`, then set the two enabled flags and dormant OAuth metadata with `hermes config set` |
|
|
29
|
-
| OpenCode | preserve the verified portable package, install its skill to `~/.agents/skills/cohesivity`, then use `opencode mcp add` for the local
|
|
29
|
+
| OpenCode | preserve the verified portable package, install its skill to `~/.agents/skills/cohesivity`, then use `opencode mcp add` for the local four-tool server and remote management server |
|
|
30
30
|
|
|
31
31
|
Detection is additive rather than first-match-wins. A Claude home does not stop
|
|
32
32
|
Cursor, Codex, Gemini, Antigravity, OpenClaw, Hermes, or OpenCode from also being
|
|
@@ -82,14 +82,14 @@ The manifest schema is:
|
|
|
82
82
|
```json
|
|
83
83
|
{
|
|
84
84
|
"schema_version": 1,
|
|
85
|
-
"version": "
|
|
85
|
+
"version": "3.0.5",
|
|
86
86
|
"packages": [
|
|
87
87
|
{
|
|
88
88
|
"client": "portable",
|
|
89
89
|
"immutable_url": "https://immutable.example/portable.tar.gz",
|
|
90
90
|
"size": 1234,
|
|
91
91
|
"sha256": "64 lowercase hexadecimal characters",
|
|
92
|
-
"archive": "cohesivity-portable-
|
|
92
|
+
"archive": "cohesivity-portable-3.0.5.tar.gz"
|
|
93
93
|
}
|
|
94
94
|
]
|
|
95
95
|
}
|
|
@@ -97,7 +97,7 @@ The manifest schema is:
|
|
|
97
97
|
|
|
98
98
|
The installer maps Claude and OpenClaw to `claude`; Cursor and Hermes to
|
|
99
99
|
`portable`; Codex to `codex`; Gemini to `gemini`; and Antigravity to
|
|
100
|
-
`antigravity`. The
|
|
100
|
+
`antigravity`. The 3.0.5 manifest also carries the direct `openai` package,
|
|
101
101
|
which this marketplace-based Codex installer does not select. Extraction
|
|
102
102
|
rejects absolute paths, traversal, links, duplicate paths, special files,
|
|
103
103
|
malformed headers, oversized content, and archives without an end marker.
|
|
@@ -166,6 +166,29 @@ server-issued, and not derived from hardware or user data. Delete
|
|
|
166
166
|
| `--base <url>` | API base for tenant bootstrap (default `https://cohesivity.ai`) |
|
|
167
167
|
| `-h`, `--help` | show command help and the exact package version |
|
|
168
168
|
|
|
169
|
+
## 0.7.0 four-tool bootstrap interface
|
|
170
|
+
|
|
171
|
+
Version 0.7.0 pins the published Cohesivity plugin 3.0.5. This is a breaking
|
|
172
|
+
change from 0.6.7's six-tool local interface: the installed server exposes only
|
|
173
|
+
`create_tenant`, `claim_tenant`, `tenant_status`, and `provision_resource`.
|
|
174
|
+
Single and bulk provisioning share `provision_resource`, replacing the separate
|
|
175
|
+
`bulk_provision_resources` tool. Deprovisioning is outside the four-tool MCP
|
|
176
|
+
interface; do not bypass the skill's MCP-only control-plane mutation policy
|
|
177
|
+
with direct HTTP requests.
|
|
178
|
+
|
|
179
|
+
Mutating local tool calls now require literal `confirmed: true`, an argument
|
|
180
|
+
that plugin 2.1.5 did not accept. Pass it only when the current user request
|
|
181
|
+
explicitly authorizes the exact action; otherwise ask first. Client adapters,
|
|
182
|
+
initializer tenant bootstrap, and OAuth handling are unchanged. The remote
|
|
183
|
+
management connection keeps its existing URL; this npm release does not deploy
|
|
184
|
+
the hosted server.
|
|
185
|
+
|
|
186
|
+
Standalone and fallback skill installs now pin
|
|
187
|
+
`cohesivity-org/cohesivity-skill@78d6d26c09ea955e2ab2392a62d980817bcabb39`
|
|
188
|
+
(metadata version `2923f0623a63`), matching the canonical skill in plugin 3.0.5.
|
|
189
|
+
Those published skill bytes still name `@cohesivity/init@0.6.6` as their
|
|
190
|
+
no-MCP fallback; this release does not rewrite upstream skill content.
|
|
191
|
+
|
|
169
192
|
## 0.6.7 local MCP metadata compatibility
|
|
170
193
|
|
|
171
194
|
Version 0.6.7 pins Cohesivity plugin 2.1.5. Its local MCP accepts optional
|
|
@@ -253,6 +276,60 @@ with provenance:
|
|
|
253
276
|
npm audit signatures
|
|
254
277
|
```
|
|
255
278
|
|
|
279
|
+
### Check installer delivery drift
|
|
280
|
+
|
|
281
|
+
Before tagging an initializer release, compare its source candidate with the
|
|
282
|
+
published shell installer and canonical skill:
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
node scripts/verify-release.mjs --source bin/cli.js
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
For a coordinated quickstart or canonical-skill update, pass the rendered
|
|
289
|
+
candidate files with `--quickstart-source <quickstart.sh>` and
|
|
290
|
+
`--skill-source <skill.md>`. These replace only those two public documents;
|
|
291
|
+
referenced immutable artifacts are still downloaded and verified. The main
|
|
292
|
+
Cohesivity repository vendors this verifier and its observation so its existing
|
|
293
|
+
unit gate can check the quickstart renderer against the same release contract.
|
|
294
|
+
|
|
295
|
+
After npm publication, run the same check against the actual npm `latest`
|
|
296
|
+
tarball, rather than the checkout:
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
node scripts/verify-release.mjs
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
Both commands are read-only: they download public artifacts without running an
|
|
303
|
+
installer, configuring clients, creating tenants, or starting OAuth. They verify
|
|
304
|
+
npm tarball integrity and plugin size/hash pins, then compare the release version inside each client archive and its MCP server,
|
|
305
|
+
standalone skill URLs and bytes, and the six packaged client skills across npm
|
|
306
|
+
and quickstart. Claude has an intentional skill adapter, so its two deliveries
|
|
307
|
+
must match each other; the other five client skills must also match the live
|
|
308
|
+
`https://cohesivity.ai/skill.md`. Antigravity's native manifest has no version field, so its packaged MCP server
|
|
309
|
+
supplies the version. Different archive commits are allowed when the release
|
|
310
|
+
version and delivered skill bytes agree.
|
|
311
|
+
|
|
312
|
+
`node --test` includes offline comparison regressions and a recorded delivery
|
|
313
|
+
snapshot. When changing release pins, refresh that snapshot only after the
|
|
314
|
+
candidate passes the live check, then review its immutable URLs and hashes:
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
node scripts/verify-release.mjs --source bin/cli.js \
|
|
318
|
+
--snapshot tests/fixtures/release-observation.json
|
|
319
|
+
node --test
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
The snapshot catches source pin changes that have not been checked against the
|
|
323
|
+
other delivery path. Offline unit tests cannot detect a later independent npm,
|
|
324
|
+
quickstart, or canonical-skill publication; the live checks above are required
|
|
325
|
+
release verification. They are not automatically added to CI by this change.
|
|
326
|
+
A mismatch exits nonzero and does not rewrite any release pin. Publication of
|
|
327
|
+
0.7.0 remains a separate release step; an unmerged PR does not update npm.
|
|
328
|
+
|
|
329
|
+
This comparison covers the skill bytes delivered by each installer. It does not
|
|
330
|
+
rewrite package versions mentioned inside the canonical skill (currently its
|
|
331
|
+
older no-MCP fallback), test native client behavior, or change mutation consent.
|
|
332
|
+
|
|
256
333
|
Node.js 18+ is required for built-in `fetch`. The package has zero dependencies
|
|
257
334
|
and no `postinstall` hook.
|
|
258
335
|
|
package/bin/cli.js
CHANGED
|
@@ -44,7 +44,7 @@ import { gunzipSync } from 'node:zlib';
|
|
|
44
44
|
const argv = process.argv.slice(2);
|
|
45
45
|
const has = (f) => argv.includes(f);
|
|
46
46
|
const flag = (f) => { const i = argv.indexOf(f); return i >= 0 ? argv[i + 1] : undefined; };
|
|
47
|
-
const PKG_VERSION = '0.
|
|
47
|
+
const PKG_VERSION = '0.7.0';
|
|
48
48
|
|
|
49
49
|
function validateArgs() {
|
|
50
50
|
const switches = new Set(['--dry-run', '--no-plugin', '--no-branding', '--help', '-h']);
|
|
@@ -78,16 +78,16 @@ const MACHINE_ID_FILE = join(MACHINE_ID_DIR, 'machine-id');
|
|
|
78
78
|
|
|
79
79
|
// The skill is pinned to an immutable commit in the public, auditable repo.
|
|
80
80
|
// Bumping the pin is a deliberate release step. See COH-172.
|
|
81
|
-
const SKILL_PIN = '
|
|
81
|
+
const SKILL_PIN = '78d6d26c09ea955e2ab2392a62d980817bcabb39';
|
|
82
82
|
const SKILL_URL = `https://raw.githubusercontent.com/cohesivity-org/cohesivity-skill/${SKILL_PIN}/cohesivity.skill.md`;
|
|
83
83
|
|
|
84
84
|
// Plugin release pins live in this one block. Bump all three values together
|
|
85
85
|
// after publishing a new two-commit artifact manifest from cohesivity-plugin.
|
|
86
86
|
// Tests inject a complete pin with COHESIVITY_PLUGIN_MANIFEST_PIN.
|
|
87
87
|
const PLUGIN_RELEASE = Object.freeze({
|
|
88
|
-
manifestUrl: 'https://raw.githubusercontent.com/cohesivity-org/cohesivity-plugin/
|
|
89
|
-
manifestBytes:
|
|
90
|
-
manifestSha256: '
|
|
88
|
+
manifestUrl: 'https://raw.githubusercontent.com/cohesivity-org/cohesivity-plugin/a10fde6309d99c5102d72acd867239eb40844c46/artifacts/v3.0.5/install-manifest.v1.json',
|
|
89
|
+
manifestBytes: 9400,
|
|
90
|
+
manifestSha256: 'f2ed554af17a5218d438869b6221d692de1678303fe9525f4d8f4bd79a191e30',
|
|
91
91
|
});
|
|
92
92
|
|
|
93
93
|
const ARTIFACT_KEYS = Object.freeze({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cohesivity/init",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Set up Cohesivity in a project: install the agent skill, create a managed backend tenant, write the project config. Run with `npx @cohesivity/init`.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|