@floomhq/floom 1.0.58 → 1.0.59

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 (2) hide show
  1. package/dist/push-watch.js +14 -0
  2. package/package.json +1 -1
@@ -163,6 +163,9 @@ function isFloomCacheRoot(root, target) {
163
163
  function isExplicitlyPublished(entry) {
164
164
  return entry?.source === "published" || entry?.source === "updated";
165
165
  }
166
+ function isBaselineAdopted(entry) {
167
+ return entry?.source === "adopted";
168
+ }
166
169
  function slugFromPushManifest(key, pushManifest) {
167
170
  return pushManifest.files[key]?.slug ?? null;
168
171
  }
@@ -259,6 +262,17 @@ export async function pushWatchOnce(opts) {
259
262
  const pushedSlug = slugFromPushManifest(pushKey, pushManifest);
260
263
  const fallbackSlug = fallbackSlugFromPath(packagePath);
261
264
  const slug = pushedSlug ?? syncedSlug ?? fallbackSlug;
265
+ if (isBaselineAdopted(pushed) && !syncedSlug) {
266
+ pushManifest.files[pushKey] = {
267
+ hash,
268
+ slug: pushed.slug,
269
+ path: key,
270
+ pushedAt: new Date().toISOString(),
271
+ source: "adopted",
272
+ };
273
+ adopted += 1;
274
+ continue;
275
+ }
262
276
  if (!pushed && syncedSlug && isUnchangedSyncedPackage(root, skillPackage, syncManifest)) {
263
277
  pushManifest.files[pushKey] = {
264
278
  hash,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floomhq/floom",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "Sync AI skills across agents and machines.",
5
5
  "license": "MIT",
6
6
  "type": "module",