promigence 0.1.0-beta.12
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/NOTICE +14 -0
- package/README.md +88 -0
- package/dist/account.js +850 -0
- package/dist/agent.js +374 -0
- package/dist/argv.js +159 -0
- package/dist/bin.js +332 -0
- package/dist/bundle.js +133 -0
- package/dist/capacity.js +69 -0
- package/dist/commands.d.ts +110 -0
- package/dist/commands.js +2675 -0
- package/dist/connectreq.js +125 -0
- package/dist/credfile.js +188 -0
- package/dist/credits.js +197 -0
- package/dist/devcontainer.d.ts +99 -0
- package/dist/devcontainer.js +744 -0
- package/dist/device.js +129 -0
- package/dist/dirsnap.js +378 -0
- package/dist/errfix.js +262 -0
- package/dist/generated.d.ts +35 -0
- package/dist/generated.js +307 -0
- package/dist/github.js +307 -0
- package/dist/gitlab.js +210 -0
- package/dist/guide.d.ts +19 -0
- package/dist/guide.js +366 -0
- package/dist/handlers.js +511 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +7 -0
- package/dist/init.d.ts +40 -0
- package/dist/init.js +352 -0
- package/dist/install.d.ts +23 -0
- package/dist/install.js +127 -0
- package/dist/io.d.ts +37 -0
- package/dist/io.js +318 -0
- package/dist/live.js +469 -0
- package/dist/login.js +1063 -0
- package/dist/mcp.js +889 -0
- package/dist/money.js +5 -0
- package/dist/orgs.js +475 -0
- package/dist/pricing.d.ts +52 -0
- package/dist/pricing.js +181 -0
- package/dist/report.js +132 -0
- package/dist/routes.js +135 -0
- package/dist/runners-github.js +257 -0
- package/dist/runners-gitlab.js +125 -0
- package/dist/runners-spec.js +137 -0
- package/dist/runners.js +1458 -0
- package/dist/sdk/blake3.d.ts +10 -0
- package/dist/sdk/blake3.js +111 -0
- package/dist/sdk/bundle.d.ts +96 -0
- package/dist/sdk/bundle.js +227 -0
- package/dist/sdk/ca-guard.js +166 -0
- package/dist/sdk/caller.d.ts +73 -0
- package/dist/sdk/caller.js +47 -0
- package/dist/sdk/client.d.ts +3015 -0
- package/dist/sdk/client.js +2583 -0
- package/dist/sdk/command-errors.d.ts +41 -0
- package/dist/sdk/command-errors.js +36 -0
- package/dist/sdk/context.d.ts +119 -0
- package/dist/sdk/context.js +588 -0
- package/dist/sdk/core.d.ts +285 -0
- package/dist/sdk/core.js +266 -0
- package/dist/sdk/credstore.d.ts +90 -0
- package/dist/sdk/credstore.js +206 -0
- package/dist/sdk/dispatcher.js +86 -0
- package/dist/sdk/github.d.ts +158 -0
- package/dist/sdk/github.js +78 -0
- package/dist/sdk/gitlab.d.ts +104 -0
- package/dist/sdk/gitlab.js +20 -0
- package/dist/sdk/handles.d.ts +82 -0
- package/dist/sdk/handles.js +135 -0
- package/dist/sdk/hint.js +7 -0
- package/dist/sdk/http2.js +1921 -0
- package/dist/sdk/index.d.ts +34 -0
- package/dist/sdk/index.js +15 -0
- package/dist/sdk/keyed.gen.js +7 -0
- package/dist/sdk/models.gen.d.ts +6162 -0
- package/dist/sdk/models.gen.js +1 -0
- package/dist/sdk/proxy.js +249 -0
- package/dist/sdk/pty.d.ts +171 -0
- package/dist/sdk/pty.js +496 -0
- package/dist/sdk/sandbox.d.ts +537 -0
- package/dist/sdk/sandbox.js +725 -0
- package/dist/sdk/ssh.d.ts +25 -0
- package/dist/sdk/ssh.js +114 -0
- package/dist/sdk/trace.js +80 -0
- package/dist/sdk/transport-worker.js +466 -0
- package/dist/sdk/warm.js +40 -0
- package/dist/ssh.js +267 -0
- package/dist/surface.d.ts +95 -0
- package/dist/surface.js +1452 -0
- package/dist/templates.js +53 -0
- package/dist/term.js +50 -0
- package/dist/timing.js +71 -0
- package/dist/untar.js +324 -0
- package/dist/uploadguard.js +75 -0
- package/llms.txt +209 -0
- package/package.json +52 -0
package/NOTICE
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Promigence — SDK and CLI (npm package `promigence`)
|
|
2
|
+
Copyright 2026 Promigence AI
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# promigence
|
|
2
|
+
|
|
3
|
+
The fastest sandboxes for AI agents and code. Snapshot an environment once, fork it as often as you need, run
|
|
4
|
+
commands in every copy and get a report that tells environment failures apart from task failures.
|
|
5
|
+
Billed per second, with a quote before a run and a hard spend cap. One package: the `promigence`
|
|
6
|
+
command and the TypeScript SDK.
|
|
7
|
+
|
|
8
|
+
Docs: https://www.promigence.ai/docs
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
You need Node.js 20 or newer.
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm i -g promigence
|
|
16
|
+
promigence --version
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
On Linux, if `npm i -g` fails with a permissions error, run it with `sudo` or give npm a prefix you
|
|
20
|
+
own (`npm config set prefix ~/.npm-global` and add `~/.npm-global/bin` to your `PATH`).
|
|
21
|
+
|
|
22
|
+
## Create your account
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
promigence signup
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
It opens your browser to create the account. Your API key is saved in your system keychain, or in
|
|
29
|
+
`~/.config/promigence/credentials` (mode 0600) where there is none.
|
|
30
|
+
On another machine, use `promigence login`: it signs you in with a code we email you. In CI or on an
|
|
31
|
+
agent's machine, set `PROMIGENCE_API_KEY` instead. `promigence doctor` checks the setup.
|
|
32
|
+
|
|
33
|
+
## First commands
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
promigence me # your credit and limits
|
|
37
|
+
promigence pricing # prices and limits, live
|
|
38
|
+
|
|
39
|
+
# One command in 2 fresh sandboxes, then a report
|
|
40
|
+
promigence run --count 2 --cap 1 -- python3 -c 'print(6*7)'
|
|
41
|
+
|
|
42
|
+
# A sandbox you keep until its timeout
|
|
43
|
+
promigence fork --count 1 --cap 1 --timeout 30m # prints its id: sbx_...
|
|
44
|
+
promigence exec --sandbox sbx_ID -- uname -a
|
|
45
|
+
promigence sandbox shell sbx_ID # a live terminal
|
|
46
|
+
promigence files put ./app.py /tmp/app.py --sandbox sbx_ID
|
|
47
|
+
promigence sandbox kill sbx_ID
|
|
48
|
+
|
|
49
|
+
# Your own environment: build it once, fork it as often as you like
|
|
50
|
+
promigence snapshot create --image python:3.12-slim --alias py --wait
|
|
51
|
+
promigence fork --snapshot py --count 5 --cap 2
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`promigence --help` lists every command; `promigence <command> --help` explains one.
|
|
55
|
+
|
|
56
|
+
## For AI agents
|
|
57
|
+
|
|
58
|
+
Run `promigence agent-guide` (about 1.4k tokens) before driving the CLI: it covers the model, the
|
|
59
|
+
JSON output contract, exit codes and errors. `promigence agent-guide --install` writes the same
|
|
60
|
+
guidance into your repo for coding agents, and `promigence mcp` serves the CLI as an MCP server.
|
|
61
|
+
Every command takes `--json`.
|
|
62
|
+
|
|
63
|
+
## From TypeScript
|
|
64
|
+
|
|
65
|
+
In your project (the global install gives you the command only):
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
npm i promigence
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
import { Sandbox } from "promigence";
|
|
73
|
+
|
|
74
|
+
const sbx = await Sandbox.create();
|
|
75
|
+
const r = await sbx.commands.run("echo hello");
|
|
76
|
+
console.log(r.stdout);
|
|
77
|
+
await sbx.kill();
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
The SDK is also published on its own as `@promigence/sdk`.
|
|
81
|
+
|
|
82
|
+
## Support
|
|
83
|
+
|
|
84
|
+
support@promigence.ai
|
|
85
|
+
|
|
86
|
+
## Licence
|
|
87
|
+
|
|
88
|
+
Apache-2.0. See `NOTICE`.
|