@portauthority/manifest 0.1.0 → 0.2.3
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/package.json +3 -2
- package/run.js +24 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portauthority/manifest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Cryptographic receipts for AI agent tool calls",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
"compliance"
|
|
19
19
|
],
|
|
20
20
|
"bin": {
|
|
21
|
-
"manifest": "
|
|
21
|
+
"manifest": "run.js"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"postinstall": "node install.js"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"install.js",
|
|
28
|
+
"run.js",
|
|
28
29
|
"bin/"
|
|
29
30
|
],
|
|
30
31
|
"engines": {
|
package/run.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
const { execFileSync } = require("child_process");
|
|
6
|
+
const fs = require("fs");
|
|
7
|
+
const path = require("path");
|
|
8
|
+
|
|
9
|
+
const binPath = path.join(__dirname, "bin", "manifest");
|
|
10
|
+
|
|
11
|
+
if (!fs.existsSync(binPath)) {
|
|
12
|
+
console.error(
|
|
13
|
+
"manifest binary not found. The postinstall download may have failed.\n" +
|
|
14
|
+
"Try reinstalling: npm install -g @portauthority/manifest\n" +
|
|
15
|
+
"Or install manually: https://github.com/PortAuthorityHQ/manifest#installation"
|
|
16
|
+
);
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
try {
|
|
21
|
+
execFileSync(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
22
|
+
} catch (err) {
|
|
23
|
+
process.exit(err.status || 1);
|
|
24
|
+
}
|