agentscm 0.1.0-alpha.4 → 0.1.0-alpha.6
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 +5 -0
- package/SHA256SUMS +5 -5
- package/THIRD_PARTY_NOTICES.md +2581 -452
- package/lib/install.js +12 -6
- package/package.json +1 -1
package/lib/install.js
CHANGED
|
@@ -143,8 +143,18 @@ function checkProvenance(file, version, gap = provenanceGap(), run = spawnSync)
|
|
|
143
143
|
return true;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
+
// The one-line report of what was actually checked.
|
|
147
|
+
const provenanceLine = (gap) => gap
|
|
148
|
+
? `Checked the SHA-256 checksum (provenance not checked: ${gap}).`
|
|
149
|
+
: 'Verified provenance with GitHub attestations. Set AGENTSCM_INSTALL_VERBOSE=1 for details.';
|
|
150
|
+
|
|
146
151
|
async function main(args) {
|
|
147
152
|
const version = require('../package.json').version;
|
|
153
|
+
// The package installs exactly its own version, so this matches the binary without a download.
|
|
154
|
+
if (args[0] === '--version' || args[0] === '-V') {
|
|
155
|
+
console.log(`agentscm ${version}`);
|
|
156
|
+
return 0;
|
|
157
|
+
}
|
|
148
158
|
console.log(`${NOTICE_TEXT}\n`);
|
|
149
159
|
const target = targetFor(process.platform, process.arch);
|
|
150
160
|
if (!target) {
|
|
@@ -217,11 +227,7 @@ async function main(args) {
|
|
|
217
227
|
}
|
|
218
228
|
}
|
|
219
229
|
|
|
220
|
-
|
|
221
|
-
console.log(`Verified checksum; provenance was not checked (${gap}).`);
|
|
222
|
-
} else {
|
|
223
|
-
console.log('Verified checksum and build provenance. Set AGENTSCM_INSTALL_VERBOSE=1 for details.');
|
|
224
|
-
}
|
|
230
|
+
console.log(provenanceLine(gap));
|
|
225
231
|
|
|
226
232
|
// This process-only assertion comes from the verified installer. The binary records an
|
|
227
233
|
// installation only after its disclosure/choice gates are effective; HTTP stays detached.
|
|
@@ -231,4 +237,4 @@ async function main(args) {
|
|
|
231
237
|
return r.status ?? 128 + (os.constants.signals[r.signal] ?? 0);
|
|
232
238
|
}
|
|
233
239
|
|
|
234
|
-
module.exports = { NOTICE_TEXT, targetFor, assetNameFor, installNames, urlFor, launchArgs, verifiedInstallEnv, parseSums, sha256File, matches, localSums, ghVerifyArgs, provenanceGap, checkProvenance, main };
|
|
240
|
+
module.exports = { NOTICE_TEXT, targetFor, assetNameFor, installNames, urlFor, launchArgs, verifiedInstallEnv, parseSums, sha256File, matches, localSums, ghVerifyArgs, provenanceGap, checkProvenance, provenanceLine, main };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentscm",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.6",
|
|
4
4
|
"description": "Downloads, verifies and starts the AgentSCM release binary.",
|
|
5
5
|
"license": "FSL-1.1-ALv2",
|
|
6
6
|
"repository": {"type": "git", "url": "git+https://github.com/counterbranch/agentscm.git"},
|