@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.
- package/dist/push-watch.js +31 -1
- package/package.json +1 -1
package/dist/push-watch.js
CHANGED
|
@@ -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
|
-
|
|
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) {
|