clawlodge-cli 0.1.1 → 0.1.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/lib/core.mjs +6 -4
- package/package.json +1 -1
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
|
-
|
|
263
|
-
|
|
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.
|
|
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()),
|