dsh-ihateposting 0.1.1 → 1.0.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/README.md +9 -9
- package/cordis.patch.yml +2 -2
- package/lib/index.js +3 -3
- package/lib/skill.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ The bundle mounts two rows:
|
|
|
44
44
|
| Row | Package | Role |
|
|
45
45
|
|---|---|---|
|
|
46
46
|
| `ihateposting` | `dsh-ihateposting` (this package) | Reads the API key, exposes `ctx.ihateposting` (`url`, `headers`), and registers the `ihateposting` skill that teaches the agent the posting workflow and the HTML content rules. |
|
|
47
|
-
| `ihateposting-mcp` | `@deepseek-ai/dsh-mcp-client` (shipped with dsh) | Connects to `https://app.ihateposting.com/
|
|
47
|
+
| `ihateposting-mcp` | `@deepseek-ai/dsh-mcp-client` (shipped with dsh) | Connects to `https://app.ihateposting.com/mcp` over streamable HTTP with a `Bearer` header and registers the server's tools. |
|
|
48
48
|
|
|
49
49
|
The model sees the iHatePosting MCP tools under the `mcp__ihateposting__` namespace:
|
|
50
50
|
|
|
@@ -73,7 +73,7 @@ A bare `id:` configures the existing row:
|
|
|
73
73
|
- id: ihateposting
|
|
74
74
|
config:
|
|
75
75
|
apiKeyEnv: IHATEPOSTING_API_KEY # env var that holds the key (default)
|
|
76
|
-
baseUrl: https://app.ihateposting.com
|
|
76
|
+
baseUrl: https://app.ihateposting.com # another server that answers the same routes: https://your-server.example.com
|
|
77
77
|
skill: true # register the `ihateposting` workflow skill
|
|
78
78
|
```
|
|
79
79
|
|
|
@@ -81,7 +81,7 @@ A bare `id:` configures the existing row:
|
|
|
81
81
|
|---|---|---|
|
|
82
82
|
| `apiKeyEnv` | `IHATEPOSTING_API_KEY` | Environment variable read at boot for the API key. |
|
|
83
83
|
| `apiKey` | `''` | Inline key. Prefer the env var; this exists for patch-level overrides. |
|
|
84
|
-
| `baseUrl` | `https://app.ihateposting.com
|
|
84
|
+
| `baseUrl` | `https://app.ihateposting.com` | iHatePosting address. The MCP endpoint is `<baseUrl>/mcp` (an address that already ends in `/mcp` is used as it is). Another server that answers the same routes can be named here. |
|
|
85
85
|
| `skill` | `true` | Register the `ihateposting` skill on `ctx.skills`. |
|
|
86
86
|
|
|
87
87
|
Without a key the `ihateposting` row logs a warning naming the variable to set, and the
|
|
@@ -89,10 +89,10 @@ Without a key the `ihateposting` row logs a warning naming the variable to set,
|
|
|
89
89
|
|
|
90
90
|
## Self-hosted iHatePosting
|
|
91
91
|
|
|
92
|
-
The MCP server is part of the iHatePosting app
|
|
93
|
-
default the plugin connects to `https://app.ihateposting.com/
|
|
92
|
+
The MCP server is part of the iHatePosting app and listens at `/mcp` (Bearer auth), so by
|
|
93
|
+
default the plugin connects to `https://app.ihateposting.com/mcp`. The app is hosted, so there
|
|
94
94
|
is no server of your own to set up; another server that answers the same routes can be named with
|
|
95
|
-
`baseUrl`.
|
|
95
|
+
`baseUrl`. If your profile still has `baseUrl: https://app.ihateposting.com/api` (the default of version 0.1.1), take the `/api` out: the key address has no `/api` any more.
|
|
96
96
|
|
|
97
97
|
## Development
|
|
98
98
|
|
|
@@ -109,7 +109,7 @@ dsh plugin --profile web add /absolute/path/to/iHatePosting-Agent/plugins/dsh-ih
|
|
|
109
109
|
|
|
110
110
|
## Related
|
|
111
111
|
|
|
112
|
-
- [iHatePosting CLI](https://github.com/iHatePostingOrg/iHatePosting-Agent) — the `ihateposting
|
|
112
|
+
- [iHatePosting CLI](https://github.com/iHatePostingOrg/iHatePosting-Agent) — the `ihateposting` command-line tool and the Claude Code / Cursor / Grok plugins in this repository.
|
|
113
113
|
|
|
114
114
|
## License
|
|
115
115
|
|
|
@@ -119,7 +119,7 @@ MIT, same as the rest of this repository.
|
|
|
119
119
|
|
|
120
120
|
### Status
|
|
121
121
|
|
|
122
|
-
Status: **0.
|
|
122
|
+
Status: **1.0.0, never run inside a real `dsh`** (see "Unverified" below). The version number follows the repository's; the plugin's code differs from 0.1.1 in one value, its default `baseUrl` (`https://app.ihateposting.com`, without `/api`, because the key address `https://app.ihateposting.com/mcp` has none).
|
|
123
123
|
|
|
124
124
|
### The profile name and the PowerShell form of the install
|
|
125
125
|
|
|
@@ -137,7 +137,7 @@ The key is sent in one place only: the `Authorization: Bearer <key>` header of t
|
|
|
137
137
|
|
|
138
138
|
### The browser sign-in address is not used
|
|
139
139
|
|
|
140
|
-
`https://app.ihateposting.com/
|
|
140
|
+
`https://app.ihateposting.com/mcp/oauth` (a browser sign-in by OAuth) is not wired: the pages of `dsh`'s MCP client that were read do not describe an OAuth flow (unverified), so this plugin uses the key.
|
|
141
141
|
|
|
142
142
|
### What was verified, and from where
|
|
143
143
|
|
package/cordis.patch.yml
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# apiKeyEnv the variable that holds the key (default IHATEPOSTING_API_KEY); the
|
|
14
14
|
# key is made under Settings > Agents / Dev in iHatePosting
|
|
15
15
|
# apiKey the key itself, for an override in a patch file; prefer the variable
|
|
16
|
-
# baseUrl the
|
|
16
|
+
# baseUrl the app's address (default https://app.ihateposting.com); the MCP
|
|
17
17
|
# endpoint is this address followed by /mcp
|
|
18
18
|
# skill register the iHatePosting skill (default true)
|
|
19
19
|
#
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
name: dsh-ihateposting
|
|
25
25
|
config:
|
|
26
26
|
apiKeyEnv: IHATEPOSTING_API_KEY
|
|
27
|
-
baseUrl: https://app.ihateposting.com
|
|
27
|
+
baseUrl: https://app.ihateposting.com
|
|
28
28
|
- id: ihateposting-mcp
|
|
29
29
|
name: '@deepseek-ai/dsh-mcp-client'
|
|
30
30
|
inject: [ihateposting]
|
package/lib/index.js
CHANGED
|
@@ -26,15 +26,15 @@ export const SERVICE_NAME = 'ihateposting'
|
|
|
26
26
|
/** The variable that holds the key unless the settings name another. */
|
|
27
27
|
export const DEFAULT_KEY_VARIABLE = 'IHATEPOSTING_API_KEY'
|
|
28
28
|
|
|
29
|
-
/** The
|
|
30
|
-
export const DEFAULT_BASE_URL = 'https://app.ihateposting.com
|
|
29
|
+
/** The hosted app's address; the key-based MCP endpoint is this address followed by /mcp. */
|
|
30
|
+
export const DEFAULT_BASE_URL = 'https://app.ihateposting.com'
|
|
31
31
|
|
|
32
32
|
export const Config = z.object({
|
|
33
33
|
/** Environment variable that holds the key (made under Settings > Agents / Dev in iHatePosting). */
|
|
34
34
|
apiKeyEnv: z.string().default(DEFAULT_KEY_VARIABLE),
|
|
35
35
|
/** Inline key, for a patch-level override. Prefer the environment variable. */
|
|
36
36
|
apiKey: z.string().role('secret').default(''),
|
|
37
|
-
/** The
|
|
37
|
+
/** The app's address. The MCP endpoint is `<baseUrl>/mcp`; another host (self-hosted) goes here. */
|
|
38
38
|
baseUrl: z.string().default(DEFAULT_BASE_URL),
|
|
39
39
|
/** Register the iHatePosting skill on `ctx.skills`. */
|
|
40
40
|
skill: z.boolean().default(true),
|
package/lib/skill.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// The skill this plugin hands to the agent, written for the tools of iHatePosting's hosted MCP server.
|
|
2
2
|
//
|
|
3
3
|
// It is short on purpose: the job order, the writing rules and the few things the server will not do. It is
|
|
4
|
-
// not the long skill for the `ihateposting
|
|
4
|
+
// not the long skill for the `ihateposting` command line (that one is for a shell); the model reads the
|
|
5
5
|
// tools' own descriptions for the rest. The tools show up as mcp__ihateposting__<tool> because the MCP row of
|
|
6
6
|
// cordis.patch.yml names its server "ihateposting".
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ihateposting",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "DeepSeek Harness plugin that connects the agent to iHatePosting over MCP: list connected channels, fetch platform posting rules, and schedule, draft, or publish social media posts across 15 platforms.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|