@easysociable/cli 0.1.0 → 0.1.2

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 (108) hide show
  1. package/README.md +38 -69
  2. package/dist/easysociable.js +301 -2829
  3. package/dist/easysociable.js.map +1 -1
  4. package/package.json +17 -12
  5. package/skills/ONBOARDING.md +3 -1
  6. package/skills/easysociable-content/INSTALL.md +60 -0
  7. package/skills/easysociable-content/SKILL.md +107 -96
  8. package/skills/easysociable-content/fixtures/golden-run-en/draft.md +13 -0
  9. package/skills/easysociable-content/fixtures/golden-run-en/idea.md +26 -0
  10. package/skills/easysociable-content/fixtures/golden-run-en/pack-tiktok.json +11 -0
  11. package/skills/easysociable-content/platforms/claude.md +1 -2
  12. package/skills/easysociable-content/platforms/codex.md +1 -2
  13. package/skills/easysociable-content/platforms/hermes.md +1 -2
  14. package/skills/easysociable-content/platforms/openclaw.md +1 -2
  15. package/skills/easysociable-content/references/CLI.md +25 -12
  16. package/skills/easysociable-content/references/CONTRACT_SYNC.md +42 -0
  17. package/skills/easysociable-content/references/MCP.md +7 -12
  18. package/skills/easysociable-content/references/PAGE_PACK.md +128 -5
  19. package/skills/easysociable-content/references/PLATFORM_GUIDE.md +36 -0
  20. package/skills/easysociable-content/references/RUN_LAYOUT.md +73 -0
  21. package/skills/easysociable-content/references/TROUBLESHOOTING.md +11 -9
  22. package/skills/easysociable-content/references/VAULT.md +32 -12
  23. package/skills/easysociable-content/references/VOICE.md +16 -0
  24. package/skills/easysociable-content/scripts/contracts.mjs +183 -0
  25. package/skills/easysociable-content/scripts/export-contracts.mjs +76 -0
  26. package/skills/easysociable-content/scripts/fixture.test.mjs +24 -0
  27. package/skills/easysociable-content/scripts/package-skill.mjs +49 -0
  28. package/skills/easysociable-content/scripts/setup.mjs +127 -83
  29. package/skills/easysociable-content/scripts/setup.test.mjs +49 -38
  30. package/skills/easysociable-content/scripts/starter.mjs +50 -48
  31. package/skills/easysociable-content/scripts/validate-export.mjs +42 -0
  32. package/skills/easysociable-content/scripts/validate-pack.mjs +48 -0
  33. package/skills/easysociable-content/scripts/validate-run.mjs +100 -0
  34. package/skills/easysociable-content/scripts/validate.test.mjs +101 -0
  35. package/skills/easysociable-content/scripts/workbench.mjs +135 -0
  36. package/skills/easysociable-content/starter/CLAUDE.md +756 -0
  37. package/skills/easysociable-content/starter/accounts/README.md +9 -0
  38. package/skills/easysociable-content/starter/accounts/_index.md +31 -0
  39. package/skills/easysociable-content/starter/accounts/overrides/README.md +3 -0
  40. package/skills/easysociable-content/starter/discovery/README.md +18 -0
  41. package/skills/easysociable-content/starter/discovery/_index.md +27 -0
  42. package/skills/easysociable-content/starter/discovery/_template.md +41 -0
  43. package/skills/easysociable-content/starter/engine.json +19 -0
  44. package/skills/easysociable-content/starter/exports/README.md +28 -0
  45. package/skills/easysociable-content/starter/inbox/README.md +9 -0
  46. package/skills/easysociable-content/starter/inbox/_index.md +24 -0
  47. package/skills/easysociable-content/starter/inbox/entries/README.md +3 -0
  48. package/skills/easysociable-content/starter/platforms/README.md +19 -0
  49. package/skills/easysociable-content/starter/platforms/ig.md +69 -0
  50. package/skills/easysociable-content/starter/platforms/instagram.md +5 -0
  51. package/skills/easysociable-content/starter/platforms/linkedin.md +72 -0
  52. package/skills/easysociable-content/starter/platforms/threads.md +69 -0
  53. package/skills/easysociable-content/starter/platforms/tiktok.md +71 -0
  54. package/skills/easysociable-content/starter/platforms/x.md +78 -0
  55. package/skills/easysociable-content/starter/platforms/xiaohongshu.md +19 -0
  56. package/skills/easysociable-content/starter/profiles/_index.md +13 -0
  57. package/skills/easysociable-content/starter/profiles/default/README.md +11 -0
  58. package/skills/easysociable-content/starter/profiles/default/audience.md +38 -0
  59. package/skills/easysociable-content/starter/profiles/default/pillars.md +33 -0
  60. package/skills/easysociable-content/starter/profiles/default/voice.md +24 -0
  61. package/skills/easysociable-content/starter/published/_index.md +20 -0
  62. package/skills/easysociable-content/starter/raw/README.md +4 -0
  63. package/skills/easysociable-content/starter/raw/_index.md +12 -0
  64. package/skills/easysociable-content/starter/runs/README.md +22 -0
  65. package/skills/easysociable-content/starter/runs/_index.md +41 -0
  66. package/skills/easysociable-content/starter/runs/_template/brief.md +66 -0
  67. package/skills/easysociable-content/starter/runs/_template/draft.md +11 -0
  68. package/skills/easysociable-content/starter/runs/_template/editor.md +18 -0
  69. package/skills/easysociable-content/starter/runs/_template/feedback.md +15 -0
  70. package/skills/easysociable-content/starter/runs/_template/idea.md +27 -0
  71. package/skills/easysociable-content/starter/runs/_template/pack.md +47 -0
  72. package/skills/easysociable-content/starter/runs/_template/packet.md +25 -0
  73. package/skills/easysociable-content/starter/runs/_template/rubric.md +19 -0
  74. package/skills/easysociable-content/starter/swipe/_index.md +27 -0
  75. package/skills/easysociable-content/starter/swipe/_template.md +34 -0
  76. package/skills/easysociable-content/starter/topics/README.md +25 -0
  77. package/skills/easysociable-content/starter/topics/WATCHLIST.md +65 -0
  78. package/skills/easysociable-content/starter/topics/_index.md +44 -0
  79. package/skills/easysociable-content/starter/topics/_template-item.md +90 -0
  80. package/skills/easysociable-content/starter/topics/items/README.md +4 -0
  81. package/skills/easysociable-content/starter/topics/scoring.md +201 -0
  82. package/skills/easysociable-content/starter/topics/watchlists/README.md +10 -0
  83. package/skills/easysociable-content/starter/topics/watchlists/_shared.md +14 -0
  84. package/skills/easysociable-content/starter/topics/watchlists/default.md +6 -0
  85. package/skills/easysociable-content/starter/wiki/README.md +13 -0
  86. package/skills/easysociable-content/starter/wiki/atoms/_index.md +23 -0
  87. package/skills/easysociable-content/starter/wiki/atoms/_template.md +31 -0
  88. package/skills/easysociable-content/starter/wiki/claims/_index.md +26 -0
  89. package/skills/easysociable-content/starter/wiki/claims/_template.md +38 -0
  90. package/skills/easysociable-content/starter/workbench/README.md +17 -0
  91. package/skills/easysociable-content/workbench/build.py +1074 -0
  92. package/skills/easysociable-content/workbench/serve.py +53 -0
  93. package/skills/easysociable-content/workbench/template.html +2119 -0
  94. package/skills/easysociable-content/workflows/ANALYSIS_AND_COVERAGE.md +14 -5
  95. package/skills/easysociable-content/workflows/CONTENT_EXPORT.md +16 -11
  96. package/skills/easysociable-content/workflows/GETTING_STARTED.md +40 -0
  97. package/skills/easysociable-content/workflows/MCP_FIRST.md +3 -8
  98. package/skills/easysociable-content/workflows/OUT_OF_SCOPE.md +18 -0
  99. package/skills/easysociable-content/workflows/PACK_AUTHORING.md +42 -0
  100. package/skills/easysociable-content/workflows/SWIPE_CAPTURE.md +18 -0
  101. package/skills/easysociable-content/workflows/TOPIC_DRAFT.md +28 -4
  102. package/skills/easysociable-content/workflows/WORKING_DRAFT.md +17 -8
  103. package/skills/easysociable-slideshow/SKILL.md +20 -13
  104. package/skills/easysociable-slideshow/references/VAULT.md +13 -11
  105. package/skills/easysociable-template/scripts/generate-theme-from-hex.mjs +0 -0
  106. package/skills/easysociable-content/workflows/DEVICE_TASKS.md +0 -5
  107. package/skills/easysociable-content/workflows/EXPERIMENTS.md +0 -6
  108. package/skills/easysociable-content/workflows/PUBLICATION.md +0 -5
package/README.md CHANGED
@@ -1,95 +1,64 @@
1
1
  # EasySociable CLI
2
2
 
3
- Gateway-only client for the V1 Template and Slideshow product. The package does
4
- not start a Local API, open SQLite, or ship a renderer.
5
-
6
- ## End-user onboarding
3
+ Agent-first CLI and MCP host for EasySociable Template and Slideshow V1.
4
+ Gateway-only: no Local API, SQLite, or local renderer.
7
5
 
8
6
  ```bash
7
+ npm i -g @easysociable/cli
8
+ # or
9
9
  curl -fsSL https://easysociable.com/install.sh | bash
10
- easysociable install --yes
11
- # Tell your Agent what to make; auth login when Gateway asks for it.
12
- ```
13
-
14
- Default `install` copies **Template + Slideshow** Skills only. Opt into Obsidian
15
- Content later:
16
-
17
- ```bash
18
- easysociable install --skills content --yes
19
- ```
20
-
21
- Lazy-auth guidance for Agents: [`../../skills/ONBOARDING.md`](../../skills/ONBOARDING.md).
22
-
23
- ## Publishing to npm
24
-
25
- The package is **`@easysociable/cli`** on the public npm registry (`0.1.0+`).
26
- `prepack` copies `skills/` into the tarball so `easysociable install` works after
27
- a global install.
28
-
29
- Before the first publish:
30
-
31
- 1. Log in: `npm login --registry=https://registry.npmjs.org/`
32
- 2. Ensure the `@easysociable` scope exists on npm (org or user scope).
33
- 3. Package is MIT-licensed (`LICENSE` in this directory).
34
-
35
- Dry-run the tarball:
36
-
37
- ```bash
38
- pnpm easysociable:cli:pack
39
- ```
40
-
41
- Publish (from repo root; runs `prepack` → build → upload):
42
-
43
- ```bash
44
- pnpm easysociable:cli:publish
45
10
  ```
46
11
 
47
- Monorepo `.npmrc` may point at a mirror; `publishConfig.registry` in
48
- `apps/cli/package.json` forces **registry.npmjs.org** for this package only.
12
+ Requires Node.js 20+.
49
13
 
50
- After publish, `install.sh` installs `@easysociable/cli@0.1.0` (override with
51
- `EASYSOCIABLE_VERSION`).
52
-
53
- ## Monorepo development
54
-
55
- From the repository root:
14
+ ## Quick start
56
15
 
57
16
  ```bash
58
- pnpm install
59
- pnpm --filter @easysociable/cli build
60
- pnpm exec easysociable --help
17
+ easysociable install --yes
18
+ # Tell your Agent what to make.
19
+ # Sign up and run auth login only when Gateway asks for it.
61
20
  ```
62
21
 
63
- Equivalent scoped invocation:
22
+ Default `install` copies **Template + Slideshow** Skills and registers the
23
+ unified MCP for Codex / Claude Code. Opt into the Obsidian Content Skill later:
64
24
 
65
25
  ```bash
66
- pnpm --filter @easysociable/cli exec easysociable --help
26
+ easysociable install --skills content --yes
67
27
  ```
68
28
 
69
- After `pnpm install`, the workspace links `easysociable` into `node_modules/.bin`. Always invoke it through `pnpm exec easysociable` (or the scoped form above) unless you have globally linked the package.
70
-
71
- ## Authentication and smoke flow
29
+ Lazy-auth guidance for Agents lives in the package at `skills/ONBOARDING.md`
30
+ (also installed into your host skills directory by `easysociable install`).
72
31
 
73
- Build the bundle and authenticate once:
32
+ ## Authentication
74
33
 
75
34
  ```bash
76
- pnpm --filter @easysociable/cli build
77
- pnpm exec easysociable auth login --api-key "$EASYSOCIABLE_API_KEY" --gateway-url http://127.0.0.1:8787
78
- pnpm exec easysociable templates list --json
79
- pnpm exec easysociable mcp serve --transport stdio
35
+ easysociable auth login --api-key <key> --gateway-url https://gateway.easysociable.com
36
+ easysociable auth status
37
+ easysociable templates list --json
38
+ easysociable mcp serve --transport stdio
80
39
  ```
81
40
 
82
- Human-readable diagnostics are written to stderr. With `--json`, stdout contains only the versioned JSON envelope.
83
-
84
- ## Build output
41
+ Human-readable diagnostics go to stderr. With `--json`, stdout is only the
42
+ versioned JSON envelope.
85
43
 
86
- `pnpm --filter @easysociable/cli build` emits:
44
+ ## Common commands
87
45
 
88
- - `dist/easysociable.js` — bundled ESM executable (`bin` target)
46
+ | Command | Purpose |
47
+ |---------|---------|
48
+ | `easysociable install [--yes] [--skills list]` | Install Skills + MCP |
49
+ | `easysociable update [--yes] [--skills list]` | Update Skills + MCP |
50
+ | `easysociable auth login --api-key <key>` | Store Gateway credentials |
51
+ | `easysociable templates …` | Page Template drafts / catalog |
52
+ | `easysociable brands …` | Workspace Brands (fonts, colors, logo) |
53
+ | `easysociable profiles …` | Deprecated — use `brands` |
54
+ | `easysociable themes …` | Deprecated — use `brands` |
55
+ | `easysociable slideshows …` | List, create, update and render Slideshow Runs |
56
+ | `easysociable renders …` | Single-page final render jobs |
57
+ | `easysociable mcp serve --transport stdio` | Unified MCP server |
89
58
 
90
- The committed launcher at `bin/easysociable.js` loads the bundle after build. If the bundle is missing, it prints a build hint and exits non-zero.
59
+ `--skills` accepts comma-separated short names: `content`, `template`,
60
+ `slideshow` (default: `template,slideshow`).
91
61
 
92
- ## Public installer script
62
+ ## License
93
63
 
94
- Source: [`../../scripts/install.sh`](../../scripts/install.sh) (host at
95
- `https://easysociable.com/install.sh`).
64
+ MIT. See `LICENSE` in this package.