@cohesivity/init 0.7.0 → 0.8.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.
Files changed (3) hide show
  1. package/README.md +62 -4
  2. package/bin/cli.js +4 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -166,6 +166,53 @@ 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.8.0 optional MCP account access
170
+
171
+ Version 0.8.0 installs plugin 4.0.1 and the matching skill. The local MCP's
172
+ `create_tenant` runs the full quickstart, including client integrations and
173
+ project guidance. Its explicit CLI login enables account-owned creation;
174
+ without login it creates a guest tenant. Hosted MCP Connect separately offers
175
+ guest or account access, with an authorized credential-file tool response. Account
176
+ creation starts claimed and has no ephemeral expiry. Both MCPs retain four
177
+ tools and require approval for mutations.
178
+
179
+ Hosted `create_tenant` returns existing metadata plus
180
+ `credentials_file: { filename: ".cohesivity", content: "<exact .cohesivity file contents>" }`
181
+ in `structuredContent` and the compatible text result. The existing OAuth
182
+ `mcp:tenants:create` scope, confirmation, and fresh ownership or guest-creation
183
+ checks authorize this deliberate secret-bearing response, which may enter
184
+ model or client retained tool history. The calling agent writes content
185
+ verbatim to the current project's `.cohesivity` with mode `0600` and gitignores
186
+ it. Never overwrite a different existing tenant, print credentials in chat,
187
+ logs, or source, or commit them. If the agent cannot write safely, it must
188
+ report that explicitly; the server cannot force a client filesystem write.
189
+ Other hosted tool outputs retain secret scrubbing; local MCP output remains
190
+ metadata-only.
191
+
192
+ The non-secret `credentials_download_url` and protected browser endpoint remain
193
+ an optional fallback for clients with no writable workspace, not a prerequisite
194
+ for coding clients. Download requires the consent browser's guest cookie for
195
+ its own still-ephemeral creation or an owning account session; the URL and MCP
196
+ bearer alone do not authorize it. Existing plugin 4.0.0 artifacts remain immutable.
197
+
198
+ The initializer itself retains its existing guest bootstrap behavior and does
199
+ not use or modify local MCP account state. Its installed plugin supplies the
200
+ optional account flow for subsequent MCP-managed projects. Release completion
201
+ requires the coordinated Worker changes; a passing candidate comparison does
202
+ not mean initializer 0.8.0 is published or that those endpoints are deployed.
203
+
204
+ ## 0.7.1 four-tool skill guidance
205
+
206
+ Version 0.7.1 delivers plugin 3.0.6 and its matching standalone skill. The skill
207
+ lists the four supported MCP tools and requires a human handoff for unsupported
208
+ control-plane mutations, including deployment, billing, and destruction. It
209
+ does not permit an HTTP, CLI, or script bypass. Its no-MCP fallback pins this
210
+ initializer version so bootstrap does not reinstall the previous guidance.
211
+
212
+ The plugin's MCP behavior, explicit confirmation checks, client adapters, and
213
+ initializer bootstrap behavior are unchanged. The shared release observation
214
+ is regenerated from the immutable candidate artifacts, not edited by hand.
215
+
169
216
  ## 0.7.0 four-tool bootstrap interface
170
217
 
171
218
  Version 0.7.0 pins the published Cohesivity plugin 3.0.5. This is a breaking
@@ -311,24 +358,35 @@ version and delivered skill bytes agree.
311
358
 
312
359
  `node --test` includes offline comparison regressions and a recorded delivery
313
360
  snapshot. When changing release pins, refresh that snapshot only after the
314
- candidate passes the live check, then review its immutable URLs and hashes:
361
+ candidate passes the live check, then review its immutable URLs and hashes.
362
+ For this coordinated release, render the quickstart and generated skill from
363
+ the matching core candidate in cohesivity-org/cohesivity#514 and supply all
364
+ three candidate inputs:
315
365
 
316
366
  ```bash
317
367
  node scripts/verify-release.mjs --source bin/cli.js \
368
+ --quickstart-source /path/to/rendered-quickstart.sh \
369
+ --skill-source /path/to/generated-skill.md \
318
370
  --snapshot tests/fixtures/release-observation.json
319
371
  node --test
320
372
  ```
321
373
 
374
+ Omit the two document overrides only when intentionally checking the deployed
375
+ quickstart and skill. The observation records those flags; changing the inputs
376
+ changes that metadata. A new observation also receives a fresh timestamp.
377
+
322
378
  The snapshot catches source pin changes that have not been checked against the
323
379
  other delivery path. Offline unit tests cannot detect a later independent npm,
324
380
  quickstart, or canonical-skill publication; the live checks above are required
325
381
  release verification. They are not automatically added to CI by this change.
326
382
  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.
383
+ 0.8.0 remains a separate release step; an unmerged PR does not update npm.
328
384
 
329
385
  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.
386
+ rewrite or verify the availability of package versions mentioned inside the
387
+ canonical skill, test native client behavior, or change mutation consent.
388
+ Verify that the pinned fallback is published before merging the matching
389
+ canonical skill, skill mirror, or plugin release.
332
390
 
333
391
  Node.js 18+ is required for built-in `fetch`. The package has zero dependencies
334
392
  and no `postinstall` hook.
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.7.0';
47
+ const PKG_VERSION = '0.8.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 = '78d6d26c09ea955e2ab2392a62d980817bcabb39';
81
+ const SKILL_PIN = '27e41382fdaa31e4d32d5019ab76083c20736688';
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/a10fde6309d99c5102d72acd867239eb40844c46/artifacts/v3.0.5/install-manifest.v1.json',
88
+ manifestUrl: 'https://raw.githubusercontent.com/cohesivity-org/cohesivity-plugin/3552aff26940e4b48174a5a2cbbc009573b3e0e9/artifacts/v4.0.1/install-manifest.v1.json',
89
89
  manifestBytes: 9400,
90
- manifestSha256: 'f2ed554af17a5218d438869b6221d692de1678303fe9525f4d8f4bd79a191e30',
90
+ manifestSha256: 'fc42074cf01a9b0104f7cc3f9118a2d9718245c38177d9ffef45ce24f9817c12',
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.7.0",
3
+ "version": "0.8.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": {