clawdock 0.2.9 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.js +9 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -125,6 +125,15 @@ program.command("push [path]").description("Publish an agent bundle").option("--
125
125
  formData.append("tarball", new Blob([tarball]), `${manifest.name}.tar.gz`);
126
126
  formData.append("is_public", opts.private ? "false" : "true");
127
127
  if (opts.changelog) formData.append("changelog", opts.changelog);
128
+ const readmeCandidates = ["README.md", "readme.md", "SOUL.md"];
129
+ for (const candidate of readmeCandidates) {
130
+ const readmePath = path.join(dir, candidate);
131
+ if (fs.existsSync(readmePath)) {
132
+ const content = fs.readFileSync(readmePath, "utf-8");
133
+ formData.append("readme", content);
134
+ break;
135
+ }
136
+ }
128
137
  try {
129
138
  const result = await apiRequest("POST", "/v1/bundles/publish", formData, true);
130
139
  console.log(`\u2705 Published ${result.owner}/${result.slug}@${result.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawdock",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
4
4
  "description": "CLI for ClawDock — the agent registry",
5
5
  "bin": {
6
6
  "clawdock": "./dist/index.js"