@feltdb/core 0.11.1 → 0.11.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.
@@ -946,8 +946,33 @@ async function handleInitManaged(args) {
946
946
  if (managedState.revisionId) {
947
947
  console.log(`Revision: ${managedState.revisionId}`);
948
948
  }
949
- console.log('\nTo publish the local authority contract, run:');
950
- console.log(' feltdb publish --approve-destructive-changes --yes\n');
949
+ if (initialized.flow) {
950
+ console.log('\nAutomatic publication is blocked because feltdb.flow is a recovery draft.');
951
+ console.log('Review feltdb.flow, then run:');
952
+ console.log(' feltdb validate');
953
+ console.log(' feltdb publish --approve-destructive-changes --yes\n');
954
+ return;
955
+ }
956
+ const publishExisting = args.includes('--publish') || args.includes('--yes');
957
+ if (!publishExisting) {
958
+ console.log('\nThe existing application can be repaired in place without changing its identity or credentials.');
959
+ console.log('Run the explicit repair path:');
960
+ console.log(' feltdb init-managed --publish --yes\n');
961
+ return;
962
+ }
963
+ console.log('\nšŸ”Ø Validating and publishing the authoritative feltdb.flow...\n');
964
+ const result = await publishApplication({
965
+ cwd: projectDir,
966
+ yes: true,
967
+ approveDestructive: true,
968
+ });
969
+ if (result.status === 'published') {
970
+ const finalized = await finalizeManagedProvisioning({ projectDir });
971
+ console.log(`āœ“ Existing managed application repaired at revision ${finalized.revisionId}\n`);
972
+ }
973
+ else {
974
+ console.log('āœ“ Existing managed application already has this active contract.\n');
975
+ }
951
976
  return;
952
977
  }
953
978
  // Prompt for credentials
@@ -1,4 +1,4 @@
1
1
  // One release train keeps generated applications installable. The repository
2
2
  // validation script checks these values against every workspace manifest.
3
- export const FELTDB_PACKAGE_VERSION = '0.11.1';
3
+ export const FELTDB_PACKAGE_VERSION = '0.11.2';
4
4
  export const feltdbPackageRange = `^${FELTDB_PACKAGE_VERSION}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feltdb/core",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "FeltDB Core - Application-facing database with Browser, Local, and Server runtimes. Durable state, reactive APIs.",
5
5
  "license": "MIT",
6
6
  "type": "module",