clawlodge-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 (2) hide show
  1. package/lib/core.mjs +6 -4
  2. package/package.json +2 -2
package/lib/core.mjs CHANGED
@@ -5,7 +5,7 @@ import readline from "node:readline/promises";
5
5
  import { stdin as input, stdout as output } from "node:process";
6
6
 
7
7
  const ALLOWED_ROOT_FILES = new Set(["AGENTS.md", "SOUL.md", "TOOLS.md", "README.md"]);
8
- const ALLOWED_PREFIXES = ["skills/", "examples/", "templates/", "prompts/", ".openclaw/"];
8
+ const ALLOWED_PREFIXES = ["skills/", "examples/", "templates/", "prompts/", "memory/", ".openclaw/"];
9
9
  const BLOCKED_DIRS = new Set([".git", ".next", "node_modules", "dist", "build", "coverage", ".idea", ".vscode", "tmp", "temp", "logs", "data"]);
10
10
  const BLOCKED_FILE_NAMES = [/^\.env(\..+)?$/i, /^id_(rsa|dsa|ecdsa|ed25519)(\.pub)?$/i];
11
11
  const BLOCKED_FILE_EXTENSIONS = new Set([".pem", ".key", ".p12", ".pfx", ".db", ".sqlite", ".sqlite3", ".log"]);
@@ -259,8 +259,10 @@ async function readExplicitReadme(readmePath) {
259
259
 
260
260
  function deriveSummary(name, summary, readme, sharedCount) {
261
261
  if (summary?.trim()) return summary.trim();
262
- const normalized = readme.replace(/^#+\s*/gm, "").replace(/`/g, "").replace(/\[(.*?)\]\((.*?)\)/g, "$1").replace(/\s+/g, " ").trim();
263
- return normalized ? normalized.slice(0, 180) : `${name} workspace publish with ${sharedCount} shared files.`;
262
+ if (readme.trim() || sharedCount > 0) {
263
+ return `${name} OpenClaw config workspace.`;
264
+ }
265
+ return `${name} for OpenClaw.`;
264
266
  }
265
267
 
266
268
  async function buildPayload(options) {
@@ -304,7 +306,7 @@ async function buildPayload(options) {
304
306
  readme_markdown: readme || undefined,
305
307
  source_repo: options.source_repo?.trim() || undefined,
306
308
  source_commit: options.source_commit?.trim() || undefined,
307
- publish_client: "clawlodge-cli/0.1.0",
309
+ publish_client: "clawlodge-cli/0.1.2",
308
310
  workspace_files: shared,
309
311
  blocked_files: blocked,
310
312
  skills: Array.from(skills.values()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawlodge-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "CLI for packing and publishing OpenClaw configs to ClawLodge",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "lib/core.mjs",
24
24
  "README.md"
25
25
  ],
26
- "license": "UNLICENSED",
26
+ "license": "MIT",
27
27
  "engines": {
28
28
  "node": ">=18"
29
29
  }