treeship 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/README.md +41 -0
- package/bin/treeship.js +38 -0
- package/package.json +20 -0
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# treeship
|
|
2
|
+
|
|
3
|
+
Portable trust receipts for agent workflows.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g treeship
|
|
9
|
+
# or
|
|
10
|
+
npx treeship init
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
This package downloads the prebuilt Treeship CLI binary for your platform. No Rust required.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
treeship init
|
|
19
|
+
treeship wrap -- npm test
|
|
20
|
+
treeship verify last --full
|
|
21
|
+
treeship dock push <artifact-id>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## What it does
|
|
25
|
+
|
|
26
|
+
Every action, approval, and handoff your agents make gets a cryptographically signed receipt. Verifiable by anyone, anywhere.
|
|
27
|
+
|
|
28
|
+
- **Signed receipts** with Ed25519 (output digest, file changes, git state)
|
|
29
|
+
- **Auto-chaining** between receipts
|
|
30
|
+
- **Human approvals** with nonce binding
|
|
31
|
+
- **Merkle checkpoints** for batch integrity
|
|
32
|
+
- **WASM verification** in the browser
|
|
33
|
+
- **Templates** for common workflows
|
|
34
|
+
|
|
35
|
+
## Documentation
|
|
36
|
+
|
|
37
|
+
https://docs.treeship.dev
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
Apache-2.0
|
package/bin/treeship.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const { execFileSync } = require('child_process');
|
|
5
|
+
const os = require('os');
|
|
6
|
+
|
|
7
|
+
const PLATFORM_MAP = {
|
|
8
|
+
'linux-x64': '@treeship/cli-linux-x64',
|
|
9
|
+
'darwin-arm64': '@treeship/cli-darwin-arm64',
|
|
10
|
+
'darwin-x64': '@treeship/cli-darwin-x64',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const key = `${os.platform()}-${os.arch()}`;
|
|
14
|
+
const pkg = PLATFORM_MAP[key];
|
|
15
|
+
|
|
16
|
+
if (!pkg) {
|
|
17
|
+
console.error(`treeship: unsupported platform ${key}`);
|
|
18
|
+
console.error('Install via: cargo install treeship-cli');
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
let binaryPath;
|
|
23
|
+
try {
|
|
24
|
+
binaryPath = require(`${pkg}/binary`);
|
|
25
|
+
} catch {
|
|
26
|
+
console.error(`treeship: platform package ${pkg} not found`);
|
|
27
|
+
console.error('Try: npm install -g treeship');
|
|
28
|
+
process.exit(1);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
try {
|
|
32
|
+
execFileSync(binaryPath, process.argv.slice(2), {
|
|
33
|
+
stdio: 'inherit',
|
|
34
|
+
env: process.env,
|
|
35
|
+
});
|
|
36
|
+
} catch (e) {
|
|
37
|
+
process.exit(e.status ?? 1);
|
|
38
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "treeship",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Portable trust receipts for agent workflows",
|
|
5
|
+
"bin": {
|
|
6
|
+
"treeship": "./bin/treeship.js"
|
|
7
|
+
},
|
|
8
|
+
"optionalDependencies": {
|
|
9
|
+
"@treeship/cli-linux-x64": "0.1.0",
|
|
10
|
+
"@treeship/cli-darwin-arm64": "0.1.0",
|
|
11
|
+
"@treeship/cli-darwin-x64": "0.1.0"
|
|
12
|
+
},
|
|
13
|
+
"license": "Apache-2.0",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/zerkerlabs/treeship"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://treeship.dev",
|
|
19
|
+
"keywords": ["treeship", "attestation", "trust", "agents", "cli"]
|
|
20
|
+
}
|