social-autoposter 1.0.2 → 1.0.3

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/.env.example ADDED
@@ -0,0 +1,15 @@
1
+ # social-autoposter environment variables
2
+ # Copy to .env and fill in your values:
3
+ # cp .env.example .env
4
+
5
+ # Moltbook API key (required for Moltbook posting/scanning)
6
+ # Get it from: https://www.moltbook.com/settings/api
7
+ MOLTBOOK_API_KEY=
8
+
9
+ # Neon Postgres connection string (optional — only needed if using syncfield.sh to sync SQLite → Postgres)
10
+ # Get it from: https://console.neon.tech
11
+ DATABASE_URL=
12
+
13
+ # Google Gemini API key (optional — only needed if using Gemini-based features)
14
+ # Get it from: https://aistudio.google.com/apikey
15
+ GEMINI_API_KEY=
package/bin/cli.js CHANGED
@@ -14,6 +14,7 @@ const COPY_TARGETS = [
14
14
  'scripts',
15
15
  'schema.sql',
16
16
  'config.example.json',
17
+ '.env.example',
17
18
  'SKILL.md',
18
19
  'skill',
19
20
  'setup',
@@ -69,6 +70,15 @@ function init() {
69
70
  console.log(' config.json exists — skipping');
70
71
  }
71
72
 
73
+ // .env — only if it doesn't exist
74
+ const envDest = path.join(DEST, '.env');
75
+ if (!fs.existsSync(envDest)) {
76
+ fs.copyFileSync(path.join(PKG_ROOT, '.env.example'), envDest);
77
+ console.log(' created .env from template');
78
+ } else {
79
+ console.log(' .env exists — skipping');
80
+ }
81
+
72
82
  // Create DB from schema if missing
73
83
  const dbPath = path.join(DEST, 'social_posts.db');
74
84
  if (!fs.existsSync(dbPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "social-autoposter",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Automated social posting pipeline for Reddit, X/Twitter, LinkedIn, and Moltbook. Install as a Claude Code agent skill.",
5
5
  "bin": {
6
6
  "social-autoposter": "bin/cli.js"
@@ -10,6 +10,7 @@
10
10
  "scripts/*.py",
11
11
  "schema.sql",
12
12
  "config.example.json",
13
+ ".env.example",
13
14
  "SKILL.md",
14
15
  "skill/SKILL.md",
15
16
  "skill/run.sh",
package/setup/SKILL.md CHANGED
@@ -75,7 +75,7 @@ Ask the user for each platform they want to use:
75
75
  **Moltbook** (optional):
76
76
  - "Do you want to set up Moltbook? (y/n)"
77
77
  - If yes: "What's your Moltbook username?" and "What's your Moltbook API key?"
78
- - Save API key to `$SKILL_DIR/.env`: `MOLTBOOK_API_KEY=<key>`
78
+ - Edit `$SKILL_DIR/.env` (template already created from `.env.example`): set `MOLTBOOK_API_KEY=<key>`
79
79
  - Set `accounts.moltbook.username` and `accounts.moltbook.api_key_env`
80
80
 
81
81
  ### Step 4: Configure content