htmlship 0.1.3 → 0.1.4

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 CHANGED
@@ -6,8 +6,8 @@ CLI + MCP server for [HTMLShip](https://htmlship.com) — host and share HTML pa
6
6
  # Publish an HTML file
7
7
  npx htmlship publish report.html
8
8
 
9
- # Pipe from stdin
10
- cat report.html | npx htmlship publish -
9
+ # Password-protect a page
10
+ npx htmlship publish report.html --password "demo-pass"
11
11
 
12
12
  # Inspect / update / delete using the saved owner key
13
13
  npx htmlship get <slug>
@@ -18,7 +18,7 @@ npx htmlship list-mine
18
18
 
19
19
  ## MCP server
20
20
 
21
- `htmlship mcp` starts a stdio MCP server with three tools: `publish_html`, `fetch_html`, `update_html`.
21
+ `htmlship mcp` starts a stdio MCP server with three tools: `publish_html` (with optional `password`), `fetch_html`, `update_html`.
22
22
 
23
23
  ### Claude Desktop / Claude Code / Cursor
24
24
 
package/dist/cli.js CHANGED
@@ -56,7 +56,7 @@ var VERSION;
56
56
  var init_version = __esm({
57
57
  "src/version.ts"() {
58
58
  "use strict";
59
- VERSION = "0.1.3";
59
+ VERSION = "0.1.4";
60
60
  }
61
61
  });
62
62
 
@@ -207,13 +207,15 @@ function buildMcpServer(client) {
207
207
  inputSchema: {
208
208
  html: z.string().describe("The HTML body to publish."),
209
209
  title: z.string().optional().describe("Optional human-readable title."),
210
+ password: z.string().optional().describe("Optional password required before viewing the page."),
210
211
  expires_in: z.number().int().min(1).max(60 * 24 * 7).optional().describe("Optional TTL in minutes (1\u201310080, i.e. up to 7 days).")
211
212
  }
212
213
  },
213
- async ({ html, title, expires_in }) => {
214
+ async ({ html, title, password, expires_in }) => {
214
215
  try {
215
216
  const page = await c.publish(html, {
216
217
  title: title ?? null,
218
+ password: password ?? null,
217
219
  expiresIn: expires_in ?? null
218
220
  });
219
221
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "htmlship",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Host and share HTML pages from LLMs and coding agents in one line. CLI + MCP server.",
5
5
  "keywords": [
6
6
  "html",