@hyperdrive.bot/sign-cli 0.1.3 → 0.1.4
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/dist/lib/manifest.js +12 -3
- package/oclif.manifest.json +1 -1
- package/package.json +1 -2
package/dist/lib/manifest.js
CHANGED
|
@@ -44,11 +44,20 @@ const loadCachedManifest = async () => {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
|
-
* Fetch manifest from the API
|
|
47
|
+
* Fetch manifest from the tenants API Gateway (no auth required).
|
|
48
|
+
* Uses the bootstrap URL base to reach the tenants gateway directly.
|
|
48
49
|
*/
|
|
49
50
|
const fetchManifest = async (apiClient) => {
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
// The manifest endpoint is on the tenants gateway (same as bootstrap).
|
|
52
|
+
// It's unauthenticated, so we fetch it with plain HTTP.
|
|
53
|
+
const bootstrapUrl = process.env.SIGN_BOOTSTRAP_URL || 'https://oo2wp0ax27.execute-api.us-east-1.amazonaws.com/dev/tenant/bootstrap-dev';
|
|
54
|
+
const baseUrl = bootstrapUrl.replace(/\/tenant\/bootstrap.*$/, '');
|
|
55
|
+
const manifestUrl = `${baseUrl}/tenant/manifest`;
|
|
56
|
+
const response = await fetch(manifestUrl);
|
|
57
|
+
if (!response.ok) {
|
|
58
|
+
throw new Error(`Failed to fetch manifest: ${response.status} ${response.statusText}`);
|
|
59
|
+
}
|
|
60
|
+
return await response.json();
|
|
52
61
|
};
|
|
53
62
|
/**
|
|
54
63
|
* Cache manifest to local filesystem
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperdrive.bot/sign-cli",
|
|
3
3
|
"description": "Sign CLI — runtime-discovered API client for the Sign platform",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"author": "marcelomarra",
|
|
6
6
|
"bin": {
|
|
7
7
|
"sign": "./bin/run.js"
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"commands": "./dist/commands",
|
|
40
40
|
"plugins": [
|
|
41
41
|
"@oclif/plugin-help",
|
|
42
|
-
"@oclif/plugin-not-found",
|
|
43
42
|
"@hyperdrive.bot/auth-plugin"
|
|
44
43
|
],
|
|
45
44
|
"hooks": {
|