@remits/remits-cli 0.1.117 → 0.1.118
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/index.js +17 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5195,12 +5195,25 @@ async function verifyCommand(flags, subcommand) {
|
|
|
5195
5195
|
if (!artifacts.length && !note) {
|
|
5196
5196
|
throw new Error('verify attach requires --artifact <path>, --screenshot <path>, or --note "..."');
|
|
5197
5197
|
}
|
|
5198
|
+
const evidenceCategories = artifacts.map((a) => a.kind === 'screenshot' ? 'screenshot' : 'artifact.sha256');
|
|
5199
|
+
const categoryFlags = []
|
|
5200
|
+
.concat(flags.category || [])
|
|
5201
|
+
.concat(flags['evidence-category'] || [])
|
|
5202
|
+
.concat(flags.evidenceCategory || []);
|
|
5203
|
+
categoryFlags
|
|
5204
|
+
.filter(Boolean)
|
|
5205
|
+
.flatMap((value) => String(value).split(','))
|
|
5206
|
+
.map((value) => value.trim())
|
|
5207
|
+
.filter(Boolean)
|
|
5208
|
+
.forEach((value) => {
|
|
5209
|
+
if (!evidenceCategories.includes(value)) evidenceCategories.push(value);
|
|
5210
|
+
});
|
|
5198
5211
|
const packet = {
|
|
5199
5212
|
type,
|
|
5200
5213
|
success: true,
|
|
5201
5214
|
claim: note || label,
|
|
5202
5215
|
artifacts,
|
|
5203
|
-
evidenceCategories
|
|
5216
|
+
evidenceCategories
|
|
5204
5217
|
};
|
|
5205
5218
|
const response = await appendVerificationPacket(api, cwd, session, accountId, { 'verify-envelope': envelopeId }, packet);
|
|
5206
5219
|
console.log('Evidence attached:', (response.packet || packet).packetId);
|
|
@@ -10928,9 +10941,9 @@ function printVerifyHelp() {
|
|
|
10928
10941
|
console.log('Manifest and manual evidence:');
|
|
10929
10942
|
console.log(' remits-cli verify manifest --file file.json [--envelope ID]');
|
|
10930
10943
|
console.log(' remits-cli verify manifest --print [--envelope ID]');
|
|
10931
|
-
console.log(' remits-cli verify attach --artifact path --label "..." [--envelope ID]');
|
|
10932
|
-
console.log(' remits-cli verify attach --screenshot path --label "..." [--envelope ID]');
|
|
10933
|
-
console.log(' remits-cli verify attach --note "..." [--envelope ID]');
|
|
10944
|
+
console.log(' remits-cli verify attach --artifact path --label "..." [--category name] [--envelope ID]');
|
|
10945
|
+
console.log(' remits-cli verify attach --screenshot path --label "..." [--category name] [--envelope ID]');
|
|
10946
|
+
console.log(' remits-cli verify attach --note "..." [--category name] [--envelope ID]');
|
|
10934
10947
|
console.log('');
|
|
10935
10948
|
console.log('Wrappers around existing commands:');
|
|
10936
10949
|
console.log(' remits-cli verify stage --workset');
|