@patchbay-nebius/agent 0.0.0-stage → 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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sarah Vogel
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 CHANGED
@@ -1,3 +1,67 @@
1
- # Temporary Holding Version
1
+ # @patchbay-nebius/agent
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![patchbay](https://img.shields.io/badge/patchbay-github-181717?logo=github)](https://github.com/GodSmasher/patchbay)
4
+ [![benchmark](https://img.shields.io/badge/benchmark-90%25%20green%20over%2092%20runs-brightgreen)](https://github.com/GodSmasher/patchbay/blob/main/bench/RESULTS-variance.md)
5
+
6
+ **Describe an integration in one sentence. Get a tested TypeScript connector.**
7
+
8
+ ```bash
9
+ npx -y @patchbay-nebius/agent build "When a Stripe payment succeeds, add the customer to a Mailchimp audience with the plan as a tag"
10
+ ```
11
+
12
+ patchbay plans the integration, reads the real API docs, writes a TypeScript connector with tests, runs them in an isolated Nebius sandbox with the network switched off, and repairs the code when a test fails. Up to 4 repair attempts, two parallel branches each; monotonic — it never hands back something strictly worse than it already had.
13
+
14
+ ## Install
15
+
16
+ ```bash
17
+ npm install -g @patchbay-nebius/agent # exposes `patchbay` on your PATH
18
+ # or just
19
+ npx -y @patchbay-nebius/agent build "..."
20
+ ```
21
+
22
+ ## Use
23
+
24
+ ```bash
25
+ patchbay build [--record] "<one-sentence integration>"
26
+ patchbay research "<one-sentence integration>"
27
+ patchbay verify <directory>
28
+ patchbay help
29
+ ```
30
+
31
+ ### Programmatic
32
+
33
+ ```ts
34
+ import { startRun, loadConfig } from '@patchbay-nebius/agent'
35
+
36
+ for await (const event of startRun('When a Jotform submission arrives, create a task in Asana', loadConfig())) {
37
+ if (event.type === 'tests') console.log(event.report.passed, '/', event.report.total)
38
+ }
39
+ ```
40
+
41
+ ## Configuration (environment)
42
+
43
+ | Variable | Required | Default | What it does |
44
+ |---|---|---|---|
45
+ | `NEBIUS_API_KEY` | live | – | Nebius Token Factory key |
46
+ | `NEBIUS_AI_PROJECT` | nebius runner | – | `aiproject-…` id |
47
+ | `TAVILY_API_KEY` | live | – | Docs search |
48
+ | `PATCHBAY_MOCK` | – | `true` | `false` for live runs |
49
+ | `PATCHBAY_RUNNER` | – | `nebius` | `nebius` (isolated sandbox) or `local` |
50
+ | `PATCHBAY_MAX_ATTEMPTS` | – | `4` | Repair-loop cap |
51
+ | `PATCHBAY_PARALLEL_REPAIRS` | – | `2` | N parallel repair branches per attempt (max 4) |
52
+
53
+ The generated connector has **zero `@patchbay-nebius/agent` runtime dependency** – it's a plain TypeScript file you can drop into any project.
54
+
55
+ ## Numbers
56
+
57
+ **90.2% green over 92 runs** · **52.2% first-try green** · **~$0.07 per connector** · **~45s wall-clock**.
58
+
59
+ Full breakdown and per-prompt stability in [bench/RESULTS-variance.md](https://github.com/GodSmasher/patchbay/blob/main/bench/RESULTS-variance.md).
60
+
61
+ ## Also runs as
62
+
63
+ - **MCP server** for Claude Code / Codex / Cursor — see [@patchbay-nebius/mcp](https://www.npmjs.com/package/@patchbay-nebius/mcp)
64
+ - **Web app** — live at <https://patchbay-nebius.vercel.app>
65
+ - **Slack slash command** — see [docs/slack-setup.md](https://github.com/GodSmasher/patchbay/blob/main/docs/slack-setup.md)
66
+
67
+ Built for the [Nebius × NVIDIA Global AI Hackathon](https://nebiusglobalaihackathon.devpost.com).