@floomhq/floom 1.0.34 → 1.0.36

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 +31 -1
  2. package/package.json +1 -1
@@ -155,7 +155,37 @@ export async function pushWatchOnce(opts) {
155
155
  const hash = hashPackage(key, skillPackage.skillBody, skillPackage.packageFiles);
156
156
  const pushed = pushManifest.files[pushKey];
157
157
  if (pushed?.hash === hash) {
158
- skipped += 1;
158
+ if (!isUnchangedSyncedPackage(root, skillPackage, syncManifest)) {
159
+ if (opts.yolo) {
160
+ try {
161
+ await publishSkillPath({ file: packagePath, update: true, updateSlug: pushed.slug, quiet: true });
162
+ updated += 1;
163
+ }
164
+ catch (err) {
165
+ if (err instanceof Error && /Skill not found/i.test(err.message)) {
166
+ const result = await publishSkillPath({ file: packagePath, visibility: "unlisted", quiet: true });
167
+ published += 1;
168
+ pushManifest.files[pushKey] = { hash, slug: result.data.slug, path: key, pushedAt: new Date().toISOString() };
169
+ markPackageSynced(root, skillPackage, syncManifest, result.data.slug);
170
+ await writeSyncManifest(syncManifest);
171
+ continue;
172
+ }
173
+ skipped += 1;
174
+ if (!opts.quiet) {
175
+ process.stderr.write(`[floom] skipped ${packagePath}: ${err instanceof Error ? err.message : String(err)}\n`);
176
+ }
177
+ continue;
178
+ }
179
+ }
180
+ else {
181
+ adopted += 1;
182
+ }
183
+ markPackageSynced(root, skillPackage, syncManifest, pushed.slug);
184
+ await writeSyncManifest(syncManifest);
185
+ }
186
+ else {
187
+ skipped += 1;
188
+ }
159
189
  continue;
160
190
  }
161
191
  if (!opts.yolo) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floomhq/floom",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "Sync AI skills across agents and machines.",
5
5
  "license": "MIT",
6
6
  "type": "module",