@figs-so/cli 0.1.11 → 0.1.13

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/figs.mjs +8 -2
  2. package/package.json +1 -1
package/figs.mjs CHANGED
@@ -38,7 +38,7 @@ import { homedir } from "node:os"
38
38
  import { join } from "node:path"
39
39
  import { randomUUID } from "node:crypto"
40
40
 
41
- const VERSION = "0.1.11"
41
+ const VERSION = "0.1.13"
42
42
  // Going-forward default; override with FIGS_ENDPOINT or .figs/config.json endpoint
43
43
  // (e.g. FIGS_ENDPOINT=http://localhost:3000 for local dev).
44
44
  const DEFAULT_ENDPOINT = "https://app.figs.so"
@@ -600,7 +600,13 @@ async function doctor() {
600
600
  console.log(JSON.stringify(r.issues, null, 2))
601
601
  } else {
602
602
  console.log("figs: ✗ validation issues:")
603
- for (const i of r.issues) console.log(` ${i.path || "(root)"}: ${i.message}`)
603
+ for (const i of r.issues) {
604
+ console.log(` ${i.path || "(root)"}: ${i.message}`)
605
+ // The server quotes the canonical shape for the field you got wrong —
606
+ // show it so you don't have to re-read the guide to fix it.
607
+ if (i.expected) console.log(` expected e.g. ${i.expected}`)
608
+ }
609
+ console.log(` (full shapes + a valid example: ${resolveEndpoint()}/llms.txt)`)
604
610
  }
605
611
  process.exit(1)
606
612
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@figs-so/cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Figs CLI — publish your AI agent's state to Figs (figs.so). Run by the agent.",
5
5
  "type": "module",
6
6
  "bin": {