@floomhq/floom 1.0.7 → 1.0.9
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/README.md +28 -24
- package/dist/cli.js +158 -63
- package/dist/delete.js +2 -2
- package/dist/doctor.js +21 -8
- package/dist/errors.js +2 -2
- package/dist/info.js +2 -2
- package/dist/init.js +154 -6
- package/dist/install.js +20 -8
- package/dist/library.js +7 -7
- package/dist/list.js +2 -2
- package/dist/login.js +1 -1
- package/dist/mcp.js +2 -2
- package/dist/publish.js +11 -9
- package/dist/secrets.js +23 -3
- package/dist/setup.js +8 -8
- package/dist/share.js +2 -2
- package/dist/sync.js +2 -2
- package/dist/whoami.js +1 -1
- package/package.json +1 -1
package/dist/share.js
CHANGED
|
@@ -19,11 +19,11 @@ async function readJson(res) {
|
|
|
19
19
|
export async function share(opts) {
|
|
20
20
|
const cfg = await readConfig();
|
|
21
21
|
if (!cfg) {
|
|
22
|
-
throw new FloomError("Not signed in.", "Run `floom login` first.");
|
|
22
|
+
throw new FloomError("Not signed in.", "Run `npx -y @floomhq/floom login` first.");
|
|
23
23
|
}
|
|
24
24
|
const slug = slugFromInput(opts.slug);
|
|
25
25
|
if (!slug) {
|
|
26
|
-
throw new FloomError("Missing skill slug.", "Try: `floom share <slug> --list`");
|
|
26
|
+
throw new FloomError("Missing skill slug.", "Try: `npx -y @floomhq/floom share <slug> --list`");
|
|
27
27
|
}
|
|
28
28
|
const apiUrl = resolveApiUrl(cfg);
|
|
29
29
|
const endpoint = `${apiUrl}/api/skills/${encodeURIComponent(slug)}/share`;
|
package/dist/sync.js
CHANGED
|
@@ -205,7 +205,7 @@ function conflictError(message, code) {
|
|
|
205
205
|
export async function sync(opts = {}) {
|
|
206
206
|
const cfg = await readConfig();
|
|
207
207
|
if (!cfg)
|
|
208
|
-
throw new FloomError("Not signed in.", "Run `floom login` first.");
|
|
208
|
+
throw new FloomError("Not signed in.", "Run `npx -y @floomhq/floom login` first.");
|
|
209
209
|
await ensureSyncManifestDir();
|
|
210
210
|
const apiUrl = resolveApiUrl(cfg);
|
|
211
211
|
const spinner = opts.spinner === false ? null : ora({ text: c.dim("Syncing skills..."), color: "yellow" }).start();
|
|
@@ -394,7 +394,7 @@ export async function sync(opts = {}) {
|
|
|
394
394
|
process.stderr.write(`${symbols.bullet} [floom] skipped local conflict: ${note}\n`);
|
|
395
395
|
}
|
|
396
396
|
if (conflicts > 0) {
|
|
397
|
-
process.stderr.write(` ${c.dim("Move or delete the local file, then run `floom sync` again.")}\n`);
|
|
397
|
+
process.stderr.write(` ${c.dim("Move or delete the local file, then run `npx -y @floomhq/floom sync` again.")}\n`);
|
|
398
398
|
}
|
|
399
399
|
process.stdout.write(`\n${symbols.ok} [floom] synced ${synced} skills (${unchanged} unchanged, ${updated} updated${conflictNote})${skippedNote}\n\n`);
|
|
400
400
|
}
|
package/dist/whoami.js
CHANGED
|
@@ -6,7 +6,7 @@ import { FloomError, friendlyHttp, friendlyNetwork } from "./errors.js";
|
|
|
6
6
|
export async function whoami() {
|
|
7
7
|
const cfg = await readConfig();
|
|
8
8
|
if (!cfg) {
|
|
9
|
-
throw new FloomError("Not signed in.", "Run `floom login` to sign in.");
|
|
9
|
+
throw new FloomError("Not signed in.", "Run `npx -y @floomhq/floom login` to sign in.");
|
|
10
10
|
}
|
|
11
11
|
const apiUrl = resolveApiUrl(cfg);
|
|
12
12
|
const spinner = ora({ text: c.dim("Checking session..."), color: "yellow" }).start();
|