clawflowbang 1.0.2 → 1.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.
- package/README.md +162 -49
- package/bin/clawflowhub.js +152 -66
- package/package.json +20 -8
- package/src/commands/create.js +286 -0
- package/src/commands/cron.js +46 -21
- package/src/commands/doctor.js +146 -0
- package/src/commands/explore.js +49 -0
- package/src/commands/register.js +83 -0
- package/src/commands/update.js +35 -0
- package/src/core/Installer.js +226 -109
- package/src/core/TerminalUI.js +12 -17
- package/.env.example +0 -14
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -35
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -23
- package/.github/pull_request_template.md +0 -19
- package/.github/workflows/publish.yml +0 -46
- package/.github/workflows/test.yml +0 -31
- package/CODE_OF_CONDUCT.md +0 -29
- package/SECURITY.md +0 -20
- package/SUPPORT.md +0 -21
package/src/core/TerminalUI.js
CHANGED
|
@@ -58,22 +58,17 @@ const boxStyles = {
|
|
|
58
58
|
},
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
ClawFlow - Skill + Cron Installer for OpenClaw
|
|
75
|
-
`;
|
|
76
|
-
/* eslint-enable no-useless-escape */
|
|
61
|
+
// ASCII Art for logo
|
|
62
|
+
const asciiLogo = `
|
|
63
|
+
██████╗██╗ █████╗ ██╗ ██╗███████╗██╗ ██████╗ ██╗ ██╗
|
|
64
|
+
██╔════╝██║ ██╔══██╗██║ ██║██╔════╝██║ ██╔═══██╗██║ ██║
|
|
65
|
+
██║ ██║ ███████║██║ █╗ ██║█████╗ ██║ ██║ ██║██║ █╗ ██║
|
|
66
|
+
██║ ██║ ██╔══██║██║███╗██║██╔══╝ ██║ ██║ ██║██║███╗██║
|
|
67
|
+
╚██████╗███████╗██║ ██║╚███╔███╔╝██║ ███████╗╚██████╔╝╚███╔███╔╝
|
|
68
|
+
╚═════╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚══════╝ ╚═════╝ ╚══╝╚══╝
|
|
69
|
+
|
|
70
|
+
ClawFlow - Skill + Cron Installer for OpenClaw
|
|
71
|
+
`;
|
|
77
72
|
|
|
78
73
|
// Mini logo for sub-headers
|
|
79
74
|
const miniLogo = `
|
|
@@ -180,7 +175,7 @@ function createProgressBar(total, current, width = 30) {
|
|
|
180
175
|
/**
|
|
181
176
|
* Print main banner
|
|
182
177
|
*/
|
|
183
|
-
function printBanner(_pkgVersion = '1.0.0') {
|
|
178
|
+
function printBanner(_pkgVersion = '1.0.0') {
|
|
184
179
|
const banner = gradientText(asciiLogo, colors.primary, colors.secondary);
|
|
185
180
|
|
|
186
181
|
console.log(chalk.bgBlack(banner));
|
package/.env.example
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# ClawFlow local environment
|
|
2
|
-
DEBUG=
|
|
3
|
-
TZ=Asia/Bangkok
|
|
4
|
-
OPENCLAW_URL=http://localhost:18789
|
|
5
|
-
|
|
6
|
-
# Optional skill credentials
|
|
7
|
-
BINANCE_API_KEY=
|
|
8
|
-
BINANCE_SECRET_KEY=
|
|
9
|
-
FB_ACCESS_TOKEN=
|
|
10
|
-
TWITTER_API_KEY=
|
|
11
|
-
TWITTER_API_SECRET=
|
|
12
|
-
DISCORD_WEBHOOK=
|
|
13
|
-
GOOGLE_CREDENTIALS=
|
|
14
|
-
NOTION_TOKEN=
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Report a reproducible problem
|
|
4
|
-
title: "[bug] "
|
|
5
|
-
labels: bug
|
|
6
|
-
assignees: ''
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Summary
|
|
10
|
-
|
|
11
|
-
Describe the problem clearly.
|
|
12
|
-
|
|
13
|
-
## Environment
|
|
14
|
-
|
|
15
|
-
- OS:
|
|
16
|
-
- Node.js version:
|
|
17
|
-
- CLI version (`clawflow --version`):
|
|
18
|
-
|
|
19
|
-
## Steps to Reproduce
|
|
20
|
-
|
|
21
|
-
1.
|
|
22
|
-
2.
|
|
23
|
-
3.
|
|
24
|
-
|
|
25
|
-
## Expected Behavior
|
|
26
|
-
|
|
27
|
-
What should happen.
|
|
28
|
-
|
|
29
|
-
## Actual Behavior
|
|
30
|
-
|
|
31
|
-
What actually happened.
|
|
32
|
-
|
|
33
|
-
## Logs / Output
|
|
34
|
-
|
|
35
|
-
Paste full command and error output.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature request
|
|
3
|
-
about: Suggest an improvement
|
|
4
|
-
title: "[feature] "
|
|
5
|
-
labels: enhancement
|
|
6
|
-
assignees: ''
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Problem
|
|
10
|
-
|
|
11
|
-
What problem are you trying to solve?
|
|
12
|
-
|
|
13
|
-
## Proposed Solution
|
|
14
|
-
|
|
15
|
-
Describe the behavior you want.
|
|
16
|
-
|
|
17
|
-
## Alternatives Considered
|
|
18
|
-
|
|
19
|
-
Other options you evaluated.
|
|
20
|
-
|
|
21
|
-
## Additional Context
|
|
22
|
-
|
|
23
|
-
Any examples, links, or screenshots.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
## Summary
|
|
2
|
-
|
|
3
|
-
Explain what changed and why.
|
|
4
|
-
|
|
5
|
-
## Changes
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
## Validation
|
|
10
|
-
|
|
11
|
-
- [ ] `npm run lint`
|
|
12
|
-
- [ ] `npm test -- --runInBand`
|
|
13
|
-
- [ ] Manual test performed (if applicable)
|
|
14
|
-
|
|
15
|
-
## Checklist
|
|
16
|
-
|
|
17
|
-
- [ ] Backward compatibility considered
|
|
18
|
-
- [ ] Docs updated (README/CHANGELOG) if needed
|
|
19
|
-
- [ ] No secrets or local machine data committed
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
name: Publish to npm
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
tags:
|
|
6
|
-
- 'v*'
|
|
7
|
-
release:
|
|
8
|
-
types: [published]
|
|
9
|
-
|
|
10
|
-
permissions:
|
|
11
|
-
contents: read
|
|
12
|
-
packages: write
|
|
13
|
-
id-token: write
|
|
14
|
-
|
|
15
|
-
jobs:
|
|
16
|
-
publish:
|
|
17
|
-
name: Publish package
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
|
|
20
|
-
steps:
|
|
21
|
-
- name: Checkout
|
|
22
|
-
uses: actions/checkout@v4
|
|
23
|
-
|
|
24
|
-
- name: Use Node.js
|
|
25
|
-
uses: actions/setup-node@v4
|
|
26
|
-
with:
|
|
27
|
-
node-version: '18'
|
|
28
|
-
registry-url: 'https://registry.npmjs.org'
|
|
29
|
-
|
|
30
|
-
- name: Install dependencies
|
|
31
|
-
run: npm ci
|
|
32
|
-
|
|
33
|
-
- name: Publish to npm (using NPM_TOKEN)
|
|
34
|
-
if: secrets.NPM_TOKEN != ''
|
|
35
|
-
env:
|
|
36
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
37
|
-
run: |
|
|
38
|
-
echo "Publishing with NPM_TOKEN..."
|
|
39
|
-
npm publish --access public
|
|
40
|
-
|
|
41
|
-
- name: Publish to npm (OIDC / Trusted Publisher)
|
|
42
|
-
if: secrets.NPM_TOKEN == ''
|
|
43
|
-
run: |
|
|
44
|
-
echo "No NPM_TOKEN found. To publish without a stored token, set up a Trusted Publisher in npm and enable OIDC."
|
|
45
|
-
echo "See README or npm docs for steps to configure Trusted Publisher."
|
|
46
|
-
exit 1
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
name: Test
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main, develop]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [main, develop]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test:
|
|
11
|
-
name: Run tests
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- name: Checkout
|
|
16
|
-
uses: actions/checkout@v4
|
|
17
|
-
|
|
18
|
-
- name: Use Node.js
|
|
19
|
-
uses: actions/setup-node@v4
|
|
20
|
-
with:
|
|
21
|
-
node-version: '18'
|
|
22
|
-
cache: 'npm'
|
|
23
|
-
|
|
24
|
-
- name: Install dependencies
|
|
25
|
-
run: npm ci
|
|
26
|
-
|
|
27
|
-
- name: Run tests
|
|
28
|
-
run: npm test
|
|
29
|
-
|
|
30
|
-
- name: Run linter
|
|
31
|
-
run: npm run lint
|
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Code of Conduct
|
|
2
|
-
|
|
3
|
-
This project follows the Contributor Covenant.
|
|
4
|
-
|
|
5
|
-
## Our Pledge
|
|
6
|
-
|
|
7
|
-
We aim to provide a respectful, harassment-free experience for everyone.
|
|
8
|
-
|
|
9
|
-
## Expected Behavior
|
|
10
|
-
|
|
11
|
-
- Be respectful and constructive.
|
|
12
|
-
- Assume good intent.
|
|
13
|
-
- Focus on technical discussion and collaboration.
|
|
14
|
-
|
|
15
|
-
## Unacceptable Behavior
|
|
16
|
-
|
|
17
|
-
- Harassment, abuse, discrimination, or hate speech.
|
|
18
|
-
- Personal attacks or threats.
|
|
19
|
-
- Sharing private information without consent.
|
|
20
|
-
|
|
21
|
-
## Enforcement
|
|
22
|
-
|
|
23
|
-
Maintainers may edit/remove content and restrict participation for violations.
|
|
24
|
-
|
|
25
|
-
Report issues to: `maintainers@clawflow.dev`
|
|
26
|
-
|
|
27
|
-
## Attribution
|
|
28
|
-
|
|
29
|
-
Adapted from Contributor Covenant: https://www.contributor-covenant.org
|
package/SECURITY.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
## Supported Versions
|
|
4
|
-
|
|
5
|
-
The latest published version is supported for security fixes.
|
|
6
|
-
|
|
7
|
-
## Reporting a Vulnerability
|
|
8
|
-
|
|
9
|
-
Please do not open a public issue for security vulnerabilities.
|
|
10
|
-
|
|
11
|
-
Report privately to: `maintainers@clawflow.dev`
|
|
12
|
-
|
|
13
|
-
Include:
|
|
14
|
-
|
|
15
|
-
- Affected version
|
|
16
|
-
- Steps to reproduce
|
|
17
|
-
- Impact
|
|
18
|
-
- Suggested mitigation (if any)
|
|
19
|
-
|
|
20
|
-
We will acknowledge receipt and follow up as quickly as possible.
|
package/SUPPORT.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Support
|
|
2
|
-
|
|
3
|
-
## Questions and Usage Help
|
|
4
|
-
|
|
5
|
-
- Open a GitHub Discussion (recommended for how-to questions)
|
|
6
|
-
- Open a GitHub Issue for bugs and feature requests
|
|
7
|
-
|
|
8
|
-
## Before Opening an Issue
|
|
9
|
-
|
|
10
|
-
- Confirm CLI version with `clawflow --version`
|
|
11
|
-
- Run `clawflow status`
|
|
12
|
-
- Include command used and full error output
|
|
13
|
-
- Include OS + Node.js version
|
|
14
|
-
|
|
15
|
-
## Scope
|
|
16
|
-
|
|
17
|
-
This project focuses on:
|
|
18
|
-
|
|
19
|
-
- OpenClaw skill installation orchestration
|
|
20
|
-
- Cron setup/management integration
|
|
21
|
-
- Package preset workflow
|