@web42/cli 0.1.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 (45) hide show
  1. package/dist/commands/auth.d.ts +2 -0
  2. package/dist/commands/auth.js +86 -0
  3. package/dist/commands/config.d.ts +2 -0
  4. package/dist/commands/config.js +27 -0
  5. package/dist/commands/init.d.ts +2 -0
  6. package/dist/commands/init.js +171 -0
  7. package/dist/commands/install.d.ts +3 -0
  8. package/dist/commands/install.js +198 -0
  9. package/dist/commands/list.d.ts +3 -0
  10. package/dist/commands/list.js +22 -0
  11. package/dist/commands/pack.d.ts +2 -0
  12. package/dist/commands/pack.js +80 -0
  13. package/dist/commands/pull.d.ts +2 -0
  14. package/dist/commands/pull.js +63 -0
  15. package/dist/commands/push.d.ts +2 -0
  16. package/dist/commands/push.js +127 -0
  17. package/dist/commands/remix.d.ts +2 -0
  18. package/dist/commands/remix.js +49 -0
  19. package/dist/commands/search.d.ts +2 -0
  20. package/dist/commands/search.js +58 -0
  21. package/dist/commands/uninstall.d.ts +3 -0
  22. package/dist/commands/uninstall.js +54 -0
  23. package/dist/commands/update.d.ts +3 -0
  24. package/dist/commands/update.js +59 -0
  25. package/dist/index.d.ts +2 -0
  26. package/dist/index.js +37 -0
  27. package/dist/platforms/base.d.ts +58 -0
  28. package/dist/platforms/base.js +1 -0
  29. package/dist/platforms/openclaw/adapter.d.ts +10 -0
  30. package/dist/platforms/openclaw/adapter.js +452 -0
  31. package/dist/platforms/openclaw/templates.d.ts +7 -0
  32. package/dist/platforms/openclaw/templates.js +369 -0
  33. package/dist/platforms/registry.d.ts +6 -0
  34. package/dist/platforms/registry.js +30 -0
  35. package/dist/utils/api.d.ts +3 -0
  36. package/dist/utils/api.js +35 -0
  37. package/dist/utils/config.d.ts +22 -0
  38. package/dist/utils/config.js +50 -0
  39. package/dist/utils/secrets.d.ts +32 -0
  40. package/dist/utils/secrets.js +118 -0
  41. package/dist/utils/skill.d.ts +4 -0
  42. package/dist/utils/skill.js +21 -0
  43. package/dist/version.d.ts +1 -0
  44. package/dist/version.js +1 -0
  45. package/package.json +45 -0
@@ -0,0 +1,21 @@
1
+ export function parseSkillMd(content, fallbackName) {
2
+ const lines = content.split("\n");
3
+ let name = fallbackName;
4
+ const descriptionLines = [];
5
+ let i = 0;
6
+ for (; i < lines.length; i++) {
7
+ const headingMatch = lines[i].match(/^#\s+(.+)/);
8
+ if (headingMatch) {
9
+ name = headingMatch[1].trim();
10
+ i++;
11
+ break;
12
+ }
13
+ }
14
+ for (; i < lines.length; i++) {
15
+ if (lines[i].match(/^#/))
16
+ break;
17
+ descriptionLines.push(lines[i]);
18
+ }
19
+ const description = descriptionLines.join("\n").trim();
20
+ return { name, description: description || `Skill: ${fallbackName}` };
21
+ }
@@ -0,0 +1 @@
1
+ export declare const CLI_VERSION = "0.1.0";
@@ -0,0 +1 @@
1
+ export const CLI_VERSION = "0.1.0";
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@web42/cli",
3
+ "version": "0.1.0",
4
+ "description": "CLI for the Web42 Agent Marketplace - push, install, and remix OpenClaw agent packages",
5
+ "type": "module",
6
+ "bin": {
7
+ "web42": "./dist/index.js"
8
+ },
9
+ "scripts": {
10
+ "build": "tsc",
11
+ "build:binary": "bash scripts/sync-version.sh && bash scripts/build-binaries.sh",
12
+ "dev": "tsc --watch",
13
+ "start": "node dist/index.js"
14
+ },
15
+ "dependencies": {
16
+ "chalk": "^5.3.0",
17
+ "commander": "^12.1.0",
18
+ "conf": "^13.0.1",
19
+ "glob": "^11.0.0",
20
+ "inquirer": "^9.3.7",
21
+ "node-fetch": "^3.3.2",
22
+ "ora": "^8.1.0",
23
+ "zod": "^3.22.4"
24
+ },
25
+ "devDependencies": {
26
+ "@types/inquirer": "^9.0.9",
27
+ "@types/node": "^20.11.5",
28
+ "typescript": "^5.3.3"
29
+ },
30
+ "engines": {
31
+ "node": ">=18"
32
+ },
33
+ "files": [
34
+ "dist/**/*.js",
35
+ "dist/**/*.d.ts"
36
+ ],
37
+ "keywords": [
38
+ "web42",
39
+ "openclaw",
40
+ "ai-agents",
41
+ "marketplace",
42
+ "cli"
43
+ ],
44
+ "license": "MIT"
45
+ }