@vibecompass/vibecompass 0.10.6 → 0.10.7

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 CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.10.7 - 2026-06-25
6
+
7
+ - Let `connect-hosted` attach hosted sync to existing `local-only` project-memory roots by promoting them to `local-primary`, so local-only users can run the hosted setup command copied from the app without first editing `project.yaml`.
8
+ - Print the mode promotion in CLI output and preserve existing `local-primary` / `hosted-only` behavior.
9
+ - Cover hosted-only passthrough, local-only promotion, and named-target promotion with CLI regression tests.
10
+
5
11
  ## 0.10.6 - 2026-06-22
6
12
 
7
13
  - Add `docs-update` as a session-delta documentation maintenance planner that maps changed files, lane claims, session repos/features, new decisions, and package-owned generated/state surfaces to targeted architecture/decision/session follow-up.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibecompass/vibecompass",
3
- "version": "0.10.6",
3
+ "version": "0.10.7",
4
4
  "description": "Local-first project-memory core for VibeCompass",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -147,6 +147,9 @@ export async function runCli(argv, io = createDefaultIo(), runtime = {}) {
147
147
  ...(runtime.cwd ? { cwd: runtime.cwd } : {}),
148
148
  });
149
149
  io.stdout.write(`Connected hosted VibeCompass for ${result.mode}\n`);
150
+ if (result.modeChanged) {
151
+ io.stdout.write(`Project mode: ${result.previousMode} -> ${result.mode}\n`);
152
+ }
150
153
  io.stdout.write(`Updated ${result.projectFilePath}\n`);
151
154
  if (result.syncTarget) {
152
155
  io.stdout.write(`Sync target: ${result.syncTarget.name} (default: ${result.syncTarget.defaultTarget})\n`);
package/src/init.js CHANGED
@@ -71,8 +71,13 @@ export async function connectHostedProjectMemory(options) {
71
71
  throw error;
72
72
  }
73
73
 
74
- if (!['local-primary', 'hosted-only'].includes(projectConfig.mode)) {
75
- throw new Error('connect-hosted requires project.yaml mode to be local-primary or hosted-only.');
74
+ if (!VALID_MODES.has(projectConfig.mode)) {
75
+ throw new Error('connect-hosted requires project.yaml mode to be local-only, local-primary, or hosted-only.');
76
+ }
77
+
78
+ const previousMode = projectConfig.mode;
79
+ if (projectConfig.mode === 'local-only') {
80
+ projectConfig.mode = 'local-primary';
76
81
  }
77
82
 
78
83
  const targetName = typeof options?.targetName === 'string' && options.targetName.trim() !== ''
@@ -136,6 +141,8 @@ export async function connectHostedProjectMemory(options) {
136
141
  rootDir,
137
142
  projectFilePath,
138
143
  mode: projectConfig.mode,
144
+ previousMode,
145
+ modeChanged: previousMode !== projectConfig.mode,
139
146
  syncEnvVar: sync.credential_env_var,
140
147
  syncTarget,
141
148
  };