@floomhq/floom 1.0.39 → 1.0.40
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 +1 -24
- package/package.json +1 -1
package/dist/push-watch.js
CHANGED
|
@@ -156,30 +156,7 @@ 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
|
-
|
|
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
|
+
adopted += 1;
|
|
183
160
|
markPackageSynced(root, skillPackage, syncManifest, pushed.slug);
|
|
184
161
|
await writeSyncManifest(syncManifest);
|
|
185
162
|
}
|