pushci 0.5.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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +115 -0
  3. package/bin/pushci.js +68 -0
  4. package/package.json +36 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 FinsavvyAI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,115 @@
1
+ # PushCI
2
+
3
+ **Zero-config AI CI/CD. Runs on your machine. Free forever.**
4
+
5
+ ```bash
6
+ npx pushci init # AI detects your stack in 30 seconds
7
+ git push # tests run automatically
8
+ ```
9
+
10
+ ## Why PushCI?
11
+
12
+ | | PushCI | GitHub Actions | GitLab CI | Jenkins |
13
+ |--|---------|---------------|-----------|---------|
14
+ | **Setup** | 30 seconds | 30+ minutes | 30+ minutes | Hours |
15
+ | **Config** | Zero (AI) | 50+ lines YAML | 50+ lines YAML | Groovy DSL |
16
+ | **Cost** | $0 (your machine) | $0.008/min | $0.008/min | Server costs |
17
+ | **Platforms** | GitHub + GitLab + BB | GitHub only | GitLab only | All |
18
+ | **AI** | Auto-detects stack | None | None | None |
19
+
20
+ ## Quick Start
21
+
22
+ ```bash
23
+ # Install and auto-detect your stack
24
+ npx pushci init
25
+
26
+ # Run CI locally
27
+ pushci run
28
+
29
+ # Start webhook agent
30
+ GITHUB_TOKEN=xxx pushci agent
31
+ ```
32
+
33
+ ## AI Agent Integration (MCP)
34
+
35
+ PushCI includes an MCP server for AI coding agents like **Claude Code**, **Cursor**, **Windsurf**, and **Cline**.
36
+
37
+ ```json
38
+ {
39
+ "mcpServers": {
40
+ "pushci": {
41
+ "command": "pushci",
42
+ "args": ["mcp"]
43
+ }
44
+ }
45
+ }
46
+ ```
47
+
48
+ **Available tools**: `pushci_init` (detect stack), `pushci_run` (run pipeline), `pushci_status` (check results), `pushci_doctor` (diagnose env), `pushci_secret_set` (store secrets).
49
+
50
+ **Natural language**: `pushci ask "set up CI for this project"`
51
+
52
+ ## Supported
53
+
54
+ **19 Languages**: Go, Node/TS, Python, Rust, Java, C#,
55
+ Ruby, PHP, Swift, Dart, Elixir, Zig, Docker +more
56
+
57
+ **40+ Frameworks**: Next.js, Nuxt, SvelteKit, Django, FastAPI,
58
+ Flask, Spring Boot, Rails, Laravel, Phoenix, Flutter +more
59
+
60
+ **16 Deploy Targets**: Cloudflare, AWS (ECS/Lambda/S3),
61
+ GCP (Cloud Run/App Engine), Azure, Vercel, Railway,
62
+ Fly.io, Netlify, Docker, Kubernetes, SSH
63
+
64
+ ## Commands
65
+
66
+ ```
67
+ pushci init Scan repo, generate config, install hooks
68
+ pushci run Run full CI pipeline locally
69
+ pushci agent Start webhook server (GitHub/GitLab/BB)
70
+ pushci status Show last run results
71
+ pushci ask Natural language CI commands
72
+ pushci mcp Start MCP server for AI agents
73
+ pushci doctor Check environment health
74
+ pushci deploy Deploy to configured target
75
+ pushci heal AI-powered pipeline auto-fix
76
+ pushci version Print version
77
+ ```
78
+
79
+ ## Configuration
80
+
81
+ Optional `pushci.yml`:
82
+
83
+ ```yaml
84
+ on: [push, pull_request]
85
+ checks:
86
+ - build
87
+ - test
88
+ - lint
89
+ - line-limit: 100
90
+ deploy:
91
+ target: cloudflare-pages
92
+ trigger: merge to main
93
+ ```
94
+
95
+ Or just run `pushci init` — AI figures everything out.
96
+
97
+ ## Pricing
98
+
99
+ | Free | Pro $9/mo | Team $29/mo |
100
+ |------|-----------|-------------|
101
+ | 1 repo | Unlimited | Unlimited |
102
+ | Self-hosted | Dashboard | Shared runners |
103
+ | Unlimited runs | Slack/Discord | SSO + audit |
104
+ | AI detection | Analytics | SLA guarantee |
105
+
106
+ ## Links
107
+
108
+ - **Website**: https://pushci.dev
109
+ - **AI Agents**: https://pushci.dev/ai
110
+ - **Cost Calculator**: https://pushci.dev/tools/cost-calculator
111
+ - **Compare**: [vs GitHub Actions](https://pushci.dev/vs/github-actions) | [vs GitLab CI](https://pushci.dev/vs/gitlab-ci) | [vs CircleCI](https://pushci.dev/vs/circleci) | [vs Jenkins](https://pushci.dev/vs/jenkins)
112
+
113
+ ## License
114
+
115
+ MIT
package/bin/pushci.js ADDED
@@ -0,0 +1,68 @@
1
+ #!/usr/bin/env node
2
+ const { execSync, spawn } = require('child_process');
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+ const os = require('os');
6
+
7
+ const VERSION = '0.5.0';
8
+ const BINARY_NAME = os.platform() === 'win32' ? 'pushci.exe' : 'pushci';
9
+
10
+ function getBinaryPath() {
11
+ // Check if Go binary exists locally
12
+ const local = path.join(__dirname, '..', BINARY_NAME);
13
+ if (fs.existsSync(local)) return local;
14
+
15
+ // Check PATH
16
+ try {
17
+ const which = os.platform() === 'win32' ? 'where' : 'which';
18
+ return execSync(`${which} pushci`, { encoding: 'utf8' }).trim();
19
+ } catch (_) {}
20
+
21
+ // Download pre-built binary
22
+ return downloadBinary();
23
+ }
24
+
25
+ function downloadBinary() {
26
+ const platform = os.platform();
27
+ const arch = os.arch();
28
+ const ext = platform === 'win32' ? '.exe' : '';
29
+ const target = path.join(os.tmpdir(), `pushci${ext}`);
30
+
31
+ if (fs.existsSync(target)) return target;
32
+
33
+ console.log('Downloading pushci binary...');
34
+ const url = `https://github.com/finsavvyai/pushci/releases/download/v${VERSION}/pushci-${platform}-${arch}${ext}`;
35
+
36
+ try {
37
+ execSync(`curl -sL -o "${target}" "${url}"`);
38
+ fs.chmodSync(target, 0o755);
39
+ return target;
40
+ } catch (_) {
41
+ // Fallback: build from source if Go is available
42
+ return buildFromSource();
43
+ }
44
+ }
45
+
46
+ function buildFromSource() {
47
+ console.log('Building pushci from source...');
48
+ const src = path.join(__dirname, '..');
49
+ const out = path.join(os.tmpdir(), BINARY_NAME);
50
+ try {
51
+ execSync(`go build -o "${out}" ./cmd/pushci`, { cwd: src });
52
+ return out;
53
+ } catch (_) {
54
+ console.error('Error: Could not find or build pushci binary.');
55
+ console.error('');
56
+ console.error('Install alternatives:');
57
+ console.error(' curl -sSL https://pushci.dev/install | bash');
58
+ console.error(' brew install finsavvyai/tap/pushci');
59
+ console.error(' go install github.com/finsavvyai/pushci/cmd/pushci@latest');
60
+ console.error('');
61
+ console.error('Or install Go: https://go.dev/dl');
62
+ process.exit(1);
63
+ }
64
+ }
65
+
66
+ const binary = getBinaryPath();
67
+ const child = spawn(binary, process.argv.slice(2), { stdio: 'inherit' });
68
+ child.on('exit', (code) => process.exit(code || 0));
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "pushci",
3
+ "version": "0.5.0",
4
+ "description": "Zero-config AI CI/CD — auto-detects your stack, runs on your machine",
5
+ "bin": {
6
+ "pushci": "./bin/pushci.js"
7
+ },
8
+ "files": [
9
+ "bin/",
10
+ "README.md",
11
+ "LICENSE"
12
+ ],
13
+ "scripts": {
14
+ "postinstall": "node bin/pushci.js version"
15
+ },
16
+ "keywords": [
17
+ "ci", "cd", "cicd", "continuous-integration", "continuous-deployment",
18
+ "github-actions", "github-actions-alternative", "gitlab-ci", "circleci",
19
+ "jenkins-alternative", "travis-ci-alternative", "buildkite-alternative",
20
+ "zero-config", "yaml-free", "local", "self-hosted",
21
+ "ai", "ai-cicd", "ai-devops", "mcp", "mcp-server", "model-context-protocol",
22
+ "devops", "deploy", "pipeline", "automation",
23
+ "go", "node", "python", "rust", "java", "docker", "typescript",
24
+ "claude", "cursor", "windsurf", "copilot"
25
+ ],
26
+ "author": "FinsavvyAI",
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/finsavvyai/pushci"
31
+ },
32
+ "homepage": "https://pushci.dev",
33
+ "engines": {
34
+ "node": ">=16"
35
+ }
36
+ }