@floomhq/floom 1.0.35 → 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 +24 -1
  2. package/package.json +1 -1
@@ -156,9 +156,32 @@ export async function pushWatchOnce(opts) {
156
156
  const pushed = pushManifest.files[pushKey];
157
157
  if (pushed?.hash === hash) {
158
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
+ }
159
183
  markPackageSynced(root, skillPackage, syncManifest, pushed.slug);
160
184
  await writeSyncManifest(syncManifest);
161
- adopted += 1;
162
185
  }
163
186
  else {
164
187
  skipped += 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floomhq/floom",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "Sync AI skills across agents and machines.",
5
5
  "license": "MIT",
6
6
  "type": "module",