@easysociable/cli 0.1.0
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/LICENSE +21 -0
- package/README.md +95 -0
- package/bin/easysociable.js +15 -0
- package/dist/easysociable.js +35464 -0
- package/dist/easysociable.js.map +1 -0
- package/package.json +58 -0
- package/skills/ONBOARDING.md +61 -0
- package/skills/easysociable-content/SKILL.md +115 -0
- package/skills/easysociable-content/platforms/claude.md +5 -0
- package/skills/easysociable-content/platforms/codex.md +5 -0
- package/skills/easysociable-content/platforms/hermes.md +5 -0
- package/skills/easysociable-content/platforms/openclaw.md +5 -0
- package/skills/easysociable-content/references/CLI.md +27 -0
- package/skills/easysociable-content/references/MCP.md +20 -0
- package/skills/easysociable-content/references/PAGE_PACK.md +6 -0
- package/skills/easysociable-content/references/TROUBLESHOOTING.md +11 -0
- package/skills/easysociable-content/references/VAULT.md +20 -0
- package/skills/easysociable-content/scripts/setup.mjs +156 -0
- package/skills/easysociable-content/scripts/setup.test.mjs +71 -0
- package/skills/easysociable-content/scripts/starter.mjs +53 -0
- package/skills/easysociable-content/workflows/ANALYSIS_AND_COVERAGE.md +8 -0
- package/skills/easysociable-content/workflows/CONTENT_EXPORT.md +19 -0
- package/skills/easysociable-content/workflows/DEVICE_TASKS.md +5 -0
- package/skills/easysociable-content/workflows/EXPERIMENTS.md +6 -0
- package/skills/easysociable-content/workflows/MCP_FIRST.md +10 -0
- package/skills/easysociable-content/workflows/PUBLICATION.md +5 -0
- package/skills/easysociable-content/workflows/TOPIC_DRAFT.md +5 -0
- package/skills/easysociable-content/workflows/WORKING_DRAFT.md +10 -0
- package/skills/easysociable-slideshow/SKILL.md +77 -0
- package/skills/easysociable-slideshow/references/CONTENT_PACK.md +25 -0
- package/skills/easysociable-slideshow/references/GATEWAY.md +16 -0
- package/skills/easysociable-slideshow/references/PLATFORM_CAPS.md +17 -0
- package/skills/easysociable-slideshow/references/VAULT.md +18 -0
- package/skills/easysociable-slideshow/workflows/CREATE_RUN.md +7 -0
- package/skills/easysociable-slideshow/workflows/MCP_FIRST.md +14 -0
- package/skills/easysociable-slideshow/workflows/OUT_OF_SCOPE.md +8 -0
- package/skills/easysociable-slideshow/workflows/PUBLISH_RUN.md +4 -0
- package/skills/easysociable-slideshow/workflows/RENDER_RUN.md +6 -0
- package/skills/easysociable-template/SKILL.md +106 -0
- package/skills/easysociable-template/references/AUTHORING_SOURCE.md +129 -0
- package/skills/easysociable-template/references/CATALOG_METADATA.md +221 -0
- package/skills/easysociable-template/references/DESIGN_INTELLIGENCE.md +69 -0
- package/skills/easysociable-template/references/DESIGN_V2_1.md +278 -0
- package/skills/easysociable-template/references/EXTERNAL_RESOURCES.md +52 -0
- package/skills/easysociable-template/references/GATEWAY.md +25 -0
- package/skills/easysociable-template/references/PLATFORM_SPECS.md +134 -0
- package/skills/easysociable-template/references/SLOTS.md +104 -0
- package/skills/easysociable-template/references/THEME_PRESETS.md +48 -0
- package/skills/easysociable-template/references/THEME_TOKENS.md +89 -0
- package/skills/easysociable-template/references/fixtures/surface-gradient.design-plan.json +74 -0
- package/skills/easysociable-template/references/theme-presets.json +95 -0
- package/skills/easysociable-template/scripts/generate-theme-from-hex.mjs +402 -0
- package/skills/easysociable-template/scripts/validate-authoring-source.mjs +228 -0
- package/skills/easysociable-template/scripts/validate-design-v2.mjs +318 -0
- package/skills/easysociable-template/workflows/ASSET_PLAN.md +34 -0
- package/skills/easysociable-template/workflows/AUTHORING_FROM_BRIEF.md +52 -0
- package/skills/easysociable-template/workflows/AUTHORING_FROM_IMAGE.md +52 -0
- package/skills/easysociable-template/workflows/AUTHORING_STUDIO.md +122 -0
- package/skills/easysociable-template/workflows/DESIGN_BRIEF.md +92 -0
- package/skills/easysociable-template/workflows/DESIGN_CONCEPTS.md +41 -0
- package/skills/easysociable-template/workflows/DESIGN_PHILOSOPHY.md +69 -0
- package/skills/easysociable-template/workflows/FILL_AND_RENDER.md +86 -0
- package/skills/easysociable-template/workflows/MCP_FIRST.md +9 -0
- package/skills/easysociable-template/workflows/OUT_OF_SCOPE.md +15 -0
- package/skills/easysociable-template/workflows/PALETTE_REVIEW.md +71 -0
- package/skills/easysociable-template/workflows/PUBLISH_FROM_DRAFT.md +60 -0
- package/skills/easysociable-template/workflows/SURFACE_REVIEW.md +178 -0
- package/skills/easysociable-template/workflows/THEME_FROM_BRAND.md +73 -0
- package/skills/easysociable-template/workflows/VISUAL_QA.md +55 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 EasySociable
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# EasySociable CLI
|
|
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
|
|
7
|
+
|
|
8
|
+
```bash
|
|
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
|
+
```
|
|
46
|
+
|
|
47
|
+
Monorepo `.npmrc` may point at a mirror; `publishConfig.registry` in
|
|
48
|
+
`apps/cli/package.json` forces **registry.npmjs.org** for this package only.
|
|
49
|
+
|
|
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:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
pnpm install
|
|
59
|
+
pnpm --filter @easysociable/cli build
|
|
60
|
+
pnpm exec easysociable --help
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Equivalent scoped invocation:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
pnpm --filter @easysociable/cli exec easysociable --help
|
|
67
|
+
```
|
|
68
|
+
|
|
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
|
|
72
|
+
|
|
73
|
+
Build the bundle and authenticate once:
|
|
74
|
+
|
|
75
|
+
```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
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Human-readable diagnostics are written to stderr. With `--json`, stdout contains only the versioned JSON envelope.
|
|
83
|
+
|
|
84
|
+
## Build output
|
|
85
|
+
|
|
86
|
+
`pnpm --filter @easysociable/cli build` emits:
|
|
87
|
+
|
|
88
|
+
- `dist/easysociable.js` — bundled ESM executable (`bin` target)
|
|
89
|
+
|
|
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.
|
|
91
|
+
|
|
92
|
+
## Public installer script
|
|
93
|
+
|
|
94
|
+
Source: [`../../scripts/install.sh`](../../scripts/install.sh) (host at
|
|
95
|
+
`https://easysociable.com/install.sh`).
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { existsSync } from 'node:fs'
|
|
3
|
+
import { dirname, join } from 'node:path'
|
|
4
|
+
import { fileURLToPath } from 'node:url'
|
|
5
|
+
|
|
6
|
+
const bundlePath = join(dirname(fileURLToPath(import.meta.url)), '..', 'dist', 'easysociable.js')
|
|
7
|
+
|
|
8
|
+
if (!existsSync(bundlePath)) {
|
|
9
|
+
process.stderr.write(
|
|
10
|
+
'EasySociable CLI bundle is missing. Run: pnpm --filter @easysociable/cli build\n',
|
|
11
|
+
)
|
|
12
|
+
process.exit(1)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
await import(bundlePath)
|