@cohesivity/init 0.8.0 → 0.8.2
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 +17 -1
- package/bin/cli.js +14 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -166,6 +166,22 @@ 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.1 MCP connection and local reuse
|
|
170
|
+
|
|
171
|
+
Version 0.8.1 pins plugin 4.0.2 and generated skill `ac6c3a29928f`.
|
|
172
|
+
Hosted Connect uses the existing account browser session automatically or
|
|
173
|
+
temporary guest access, without asking whether to sign in. Sign-in remains
|
|
174
|
+
an independent optional action. A valid local `.cohesivity` is reused without
|
|
175
|
+
loading saved account tokens, so expired or malformed optional login state
|
|
176
|
+
cannot block project integration updates. New projects retain fail-closed
|
|
177
|
+
account authentication. Both MCP transports accept IPv6 loopback social-login
|
|
178
|
+
callbacks alongside localhost and IPv4 loopback.
|
|
179
|
+
|
|
180
|
+
The initializer's own bootstrap behavior is unchanged. Its six client archives,
|
|
181
|
+
manifest, standalone skill, and quickstart release observation are pinned to
|
|
182
|
+
verified immutable commits. Hosted fixes deploy separately through the core
|
|
183
|
+
runtime/front-door release.
|
|
184
|
+
|
|
169
185
|
## 0.8.0 optional MCP account access
|
|
170
186
|
|
|
171
187
|
Version 0.8.0 installs plugin 4.0.1 and the matching skill. The local MCP's
|
|
@@ -380,7 +396,7 @@ other delivery path. Offline unit tests cannot detect a later independent npm,
|
|
|
380
396
|
quickstart, or canonical-skill publication; the live checks above are required
|
|
381
397
|
release verification. They are not automatically added to CI by this change.
|
|
382
398
|
A mismatch exits nonzero and does not rewrite any release pin. Publication of
|
|
383
|
-
0.8.
|
|
399
|
+
0.8.1 remains a separate release step; an unmerged PR does not update npm.
|
|
384
400
|
|
|
385
401
|
This comparison covers the skill bytes delivered by each installer. It does not
|
|
386
402
|
rewrite or verify the availability of package versions mentioned inside the
|
package/bin/cli.js
CHANGED
|
@@ -44,10 +44,10 @@ 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.8.
|
|
47
|
+
const PKG_VERSION = '0.8.2';
|
|
48
48
|
|
|
49
49
|
function validateArgs() {
|
|
50
|
-
const switches = new Set(['--dry-run', '--no-plugin', '--no-branding', '--help', '-h']);
|
|
50
|
+
const switches = new Set(['--dry-run', '--no-plugin', '--no-branding', '--tenant-only', '--help', '-h']);
|
|
51
51
|
const values = new Set(['--runtime', '--base']);
|
|
52
52
|
for (let i = 0; i < argv.length; i++) {
|
|
53
53
|
if (switches.has(argv[i])) continue;
|
|
@@ -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 = 'dea8889b43482b91723de57bac17c5f96d84204b';
|
|
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/
|
|
88
|
+
manifestUrl: 'https://raw.githubusercontent.com/cohesivity-org/cohesivity-plugin/81845011decc6081c0e82fe6f39ad35598f3fca8/artifacts/v4.0.2/install-manifest.v1.json',
|
|
89
89
|
manifestBytes: 9400,
|
|
90
|
-
manifestSha256: '
|
|
90
|
+
manifestSha256: 'd5634c7d8d1106cea11cb6620dda218f9727173e9ffd636843dc02142e5aaec4',
|
|
91
91
|
});
|
|
92
92
|
|
|
93
93
|
const ARTIFACT_KEYS = Object.freeze({
|
|
@@ -146,6 +146,7 @@ function inferHarness() {
|
|
|
146
146
|
|
|
147
147
|
const DRY = has('--dry-run');
|
|
148
148
|
const NO_PLUGIN = has('--no-plugin');
|
|
149
|
+
const TENANT_ONLY = has('--tenant-only');
|
|
149
150
|
|
|
150
151
|
const CWD = process.cwd();
|
|
151
152
|
const rel = (p) => p.replace(CWD + '/', '');
|
|
@@ -161,9 +162,11 @@ const UA = `{npx:${HARNESS}}`;
|
|
|
161
162
|
async function main() {
|
|
162
163
|
validateArgs();
|
|
163
164
|
console.log(`\ncohesivity/init v${PKG_VERSION}: setting up (harness: ${HARNESS})${DRY ? ' [dry-run: no changes]' : ''}\n`);
|
|
164
|
-
const deliveryFailures =
|
|
165
|
-
?
|
|
166
|
-
:
|
|
165
|
+
const deliveryFailures = TENANT_ONLY
|
|
166
|
+
? []
|
|
167
|
+
: NO_PLUGIN
|
|
168
|
+
? await installStandaloneSkill()
|
|
169
|
+
: await installClientIntegrations();
|
|
167
170
|
await ensureTenant();
|
|
168
171
|
augmentProjectFiles();
|
|
169
172
|
if (deliveryFailures.length) {
|
|
@@ -906,7 +909,9 @@ function ground(deliveryFailures) {
|
|
|
906
909
|
console.log(` - Keys are in .cohesivity (gitignored, do not commit).`);
|
|
907
910
|
console.log(` - Provision a service: POST ${BASE}/api/resources/<name> (Authorization: Bearer <coh_management_key>)`);
|
|
908
911
|
console.log(` - Per-service docs: ${BASE}/offerings/<name> \u00b7 full reference: ${BASE}/llms.txt`);
|
|
909
|
-
if (
|
|
912
|
+
if (TENANT_ONLY) {
|
|
913
|
+
// No delivery message — tenant-only mode is silent about what it skipped.
|
|
914
|
+
} else if (NO_PLUGIN) {
|
|
910
915
|
console.log(` - Only the standalone skill was installed at ${displayPath(CANONICAL_SKILL_DIR)}; no plugin or MCP configuration was added.`);
|
|
911
916
|
} else if (deliveryFailures.length) {
|
|
912
917
|
console.log(' - Retry after correcting the delivery errors above; tenant bootstrap is idempotent.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cohesivity/init",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
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": {
|