@moltbankhq/openclaw 0.1.5 → 0.1.6

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/index.ts +3 -3
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -282,7 +282,7 @@ function ensureWrapperExecutable(skillDir: string, api: LoggerApi): void {
282
282
 
283
283
  const SKILL_FILES = [
284
284
  'README.md',
285
- 'skill.md',
285
+ 'SKILL.md',
286
286
  'skill.json',
287
287
  'install.sh',
288
288
  'assets/mcporter.json',
@@ -337,7 +337,7 @@ function ensureSkillInstalled(
337
337
 
338
338
  const filesJson = JSON.stringify(SKILL_FILES).replace(/"/g, '\\"');
339
339
  const installNode = run(
340
- `node --input-type=module -e "import fs from 'fs'; import path from 'path'; const baseRaw=process.argv[1]; const dir=process.argv[2]; const files=JSON.parse(process.argv[3]); const base=baseRaw.endsWith('/') ? baseRaw.slice(0,-1) : baseRaw; fs.mkdirSync(dir,{recursive:true}); for (const f of files){ const u=base+'/'+f; const out=path.join(dir,f); fs.mkdirSync(path.dirname(out),{recursive:true}); const r=await fetch(u); if(!r.ok){ console.error('download failed',u,r.status); process.exit(2);} fs.writeFileSync(out, await r.text(),'utf8'); } fs.writeFileSync(path.join(dir,'.install_success'),'ok\\n','utf8');" "${appBaseUrl}" "${skillDir}" "${filesJson}"`,
340
+ `node --input-type=module -e "import fs from 'fs'; import path from 'path'; const baseRaw=process.argv[1]; const dir=process.argv[2]; const files=JSON.parse(process.argv[3]); const base=baseRaw.endsWith('/') ? baseRaw.slice(0,-1) : baseRaw; const aliases={ 'SKILL.md':['SKILL.md','skill.md'], 'skill.md':['skill.md','SKILL.md'] }; fs.mkdirSync(dir,{recursive:true}); for (const f of files){ const out=path.join(dir,f); fs.mkdirSync(path.dirname(out),{recursive:true}); let body=null; let lastUrl=''; let lastStatus=''; for (const candidate of (aliases[f] ?? [f])){ const u=base+'/'+candidate; lastUrl=u; const r=await fetch(u); if(r.ok){ body=await r.text(); break; } lastStatus=String(r.status); } if(body===null){ console.error('download failed',lastUrl,lastStatus); process.exit(2);} fs.writeFileSync(out, body,'utf8'); } fs.writeFileSync(path.join(dir,'.install_success'),'ok\\n','utf8');" "${appBaseUrl}" "${skillDir}" "${filesJson}"`,
341
341
  { cwd: dirname(skillDir), silent: true }
342
342
  );
343
343
 
@@ -1294,7 +1294,7 @@ export async function runSetup(
1294
1294
  } else if (hostReady) {
1295
1295
  api.logger.info('[moltbank] ✓ host ready');
1296
1296
  }
1297
- api.logger.info(`[moltbank] skill: ${skillDir}/skill.md`);
1297
+ api.logger.info(`[moltbank] skill: ${skillDir}/SKILL.md`);
1298
1298
  api.logger.info(`[moltbank] mcporter: ${skillDir}/assets/mcporter.json`);
1299
1299
  if (sandbox) {
1300
1300
  const finalConfig = readOpenclawConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moltbankhq/openclaw",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "MoltBank stablecoin treasury CLI and OpenClaw plugin",
5
5
  "main": "index.ts",
6
6
  "bin": {