@floomhq/floom 2.0.4 → 2.0.5
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/index.js +20 -4
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2503,6 +2503,20 @@ var ActivityFeedResponseSchema = z2.object({
|
|
|
2503
2503
|
events: z2.array(ActivityEventSchema),
|
|
2504
2504
|
total: z2.number().int().nonnegative()
|
|
2505
2505
|
}).strict();
|
|
2506
|
+
var SkillSyncTargetEntrySchema = z2.object({
|
|
2507
|
+
target: TargetSchema,
|
|
2508
|
+
last_pulled_at: IsoDateTimeSchema
|
|
2509
|
+
}).strict();
|
|
2510
|
+
var SkillSyncMachineSchema = z2.object({
|
|
2511
|
+
machine_id: IdSchema,
|
|
2512
|
+
machine_label: z2.string().min(1),
|
|
2513
|
+
targets: z2.array(SkillSyncTargetEntrySchema)
|
|
2514
|
+
}).strict();
|
|
2515
|
+
var SkillSyncStateResponseSchema = z2.object({
|
|
2516
|
+
machines: z2.array(SkillSyncMachineSchema),
|
|
2517
|
+
total_machines: z2.number().int().nonnegative(),
|
|
2518
|
+
total_targets_synced: z2.number().int().nonnegative()
|
|
2519
|
+
}).strict();
|
|
2506
2520
|
|
|
2507
2521
|
// src/lib/output.ts
|
|
2508
2522
|
import chalk from "chalk";
|
|
@@ -3899,13 +3913,15 @@ async function fetchPublicShare(token) {
|
|
|
3899
3913
|
} catch {
|
|
3900
3914
|
throw new Error("Unexpected response from Floom API. Try again in a moment.");
|
|
3901
3915
|
}
|
|
3902
|
-
if (json
|
|
3903
|
-
|
|
3916
|
+
if (json && typeof json === "object" && "error" in json) {
|
|
3917
|
+
const errObj = json.error;
|
|
3918
|
+
if (errObj) throw new Error(errObj.message ?? "API error");
|
|
3904
3919
|
}
|
|
3905
|
-
|
|
3920
|
+
const candidate = json;
|
|
3921
|
+
if (!candidate || typeof candidate !== "object" || !candidate.skill || !Array.isArray(candidate.file_contents)) {
|
|
3906
3922
|
throw new Error("Unexpected response shape from Floom API.");
|
|
3907
3923
|
}
|
|
3908
|
-
return
|
|
3924
|
+
return candidate;
|
|
3909
3925
|
}
|
|
3910
3926
|
async function addCommand(input, opts = {}) {
|
|
3911
3927
|
const token = parseToken(input);
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.0.
|
|
1
|
+
export const VERSION = "2.0.5";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floomhq/floom",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Floom CLI \u2014 one shared skill library, pulled into the AI agent you choose (Claude, Codex, Cursor, Gemini, OpenCode).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://floom.dev",
|