@xemahq/xema 0.49.1 → 0.50.1
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/assets/boot-graph.json +65 -7
- package/dist/assets/distribution-assets.manifest.json +2 -2
- package/dist/commands/biome.d.ts.map +1 -1
- package/dist/commands/biome.js +6 -0
- package/dist/commands/biome.js.map +1 -1
- package/dist/dev/env-defaults.d.ts.map +1 -1
- package/dist/dev/env-defaults.js +0 -5
- package/dist/dev/env-defaults.js.map +1 -1
- package/dist/edition/verify-image-evidence.bundle.provenance.json +57 -57
- package/dist/runtime/biome-publish.d.ts +4 -1
- package/dist/runtime/biome-publish.d.ts.map +1 -1
- package/dist/runtime/biome-publish.js +80 -25
- package/dist/runtime/biome-publish.js.map +1 -1
- package/dist/runtime/biome-published-content.d.ts +1 -0
- package/dist/runtime/biome-published-content.d.ts.map +1 -1
- package/dist/runtime/biome-published-content.js +3 -1
- package/dist/runtime/biome-published-content.js.map +1 -1
- package/dist/runtime/biome-published-cosign.d.ts +14 -5
- package/dist/runtime/biome-published-cosign.d.ts.map +1 -1
- package/dist/runtime/biome-published-cosign.js +54 -81
- package/dist/runtime/biome-published-cosign.js.map +1 -1
- package/package.json +6 -2
|
@@ -2521,343 +2521,343 @@
|
|
|
2521
2521
|
},
|
|
2522
2522
|
{
|
|
2523
2523
|
"package": "@xemahq/xema",
|
|
2524
|
-
"version": "0.
|
|
2524
|
+
"version": "0.50.1",
|
|
2525
2525
|
"path": "edition/adapter-host-versions.mjs",
|
|
2526
2526
|
"sha256": "sha256:1b7ebd3592f4da1225fba74aaba912e7d85fbceeb1626f7dcdac83491cbb4d69"
|
|
2527
2527
|
},
|
|
2528
2528
|
{
|
|
2529
2529
|
"package": "@xemahq/xema",
|
|
2530
|
-
"version": "0.
|
|
2530
|
+
"version": "0.50.1",
|
|
2531
2531
|
"path": "edition/authorization-base.mjs",
|
|
2532
2532
|
"sha256": "sha256:bbeac7ff01376cb89ed2140526d4795d8e559b3f01612b404a701f19aaa24c6a"
|
|
2533
2533
|
},
|
|
2534
2534
|
{
|
|
2535
2535
|
"package": "@xemahq/xema",
|
|
2536
|
-
"version": "0.
|
|
2536
|
+
"version": "0.50.1",
|
|
2537
2537
|
"path": "edition/build-ledger.mjs",
|
|
2538
2538
|
"sha256": "sha256:05202cbdd606aee086c8e9c62d28be68c429653a8b1d73a289ed0fe4ff14da85"
|
|
2539
2539
|
},
|
|
2540
2540
|
{
|
|
2541
2541
|
"package": "@xemahq/xema",
|
|
2542
|
-
"version": "0.
|
|
2542
|
+
"version": "0.50.1",
|
|
2543
2543
|
"path": "edition/canonical-evidence-json.mjs",
|
|
2544
2544
|
"sha256": "sha256:3b32f6786c9fb1c0deadf2f687077356a503b0db766392d2e0254aa1ab78feec"
|
|
2545
2545
|
},
|
|
2546
2546
|
{
|
|
2547
2547
|
"package": "@xemahq/xema",
|
|
2548
|
-
"version": "0.
|
|
2548
|
+
"version": "0.50.1",
|
|
2549
2549
|
"path": "edition/canonical-repository-url.mjs",
|
|
2550
2550
|
"sha256": "sha256:f36e4f7cbe7849789422ec2f0ebce2d62f7dc3684afecc3ac51a32560e72d8a1"
|
|
2551
2551
|
},
|
|
2552
2552
|
{
|
|
2553
2553
|
"package": "@xemahq/xema",
|
|
2554
|
-
"version": "0.
|
|
2554
|
+
"version": "0.50.1",
|
|
2555
2555
|
"path": "edition/connector-source-authority.mjs",
|
|
2556
2556
|
"sha256": "sha256:ea94475f4324737673accd7de1303c44db1cbc4dac61a865a06cd83abe310164"
|
|
2557
2557
|
},
|
|
2558
2558
|
{
|
|
2559
2559
|
"package": "@xemahq/xema",
|
|
2560
|
-
"version": "0.
|
|
2560
|
+
"version": "0.50.1",
|
|
2561
2561
|
"path": "edition/cosign-certificate-constraints.mjs",
|
|
2562
2562
|
"sha256": "sha256:f8776e6095a477d3a6b510df572de804de73d2f5abf4a0fe9040a926dbe42d73"
|
|
2563
2563
|
},
|
|
2564
2564
|
{
|
|
2565
2565
|
"package": "@xemahq/xema",
|
|
2566
|
-
"version": "0.
|
|
2566
|
+
"version": "0.50.1",
|
|
2567
2567
|
"path": "edition/develop-graph.mjs",
|
|
2568
2568
|
"sha256": "sha256:319db77e708dd73a9dd4a81a963d86e52b030cad3346b104c0862af4e38a2237"
|
|
2569
2569
|
},
|
|
2570
2570
|
{
|
|
2571
2571
|
"package": "@xemahq/xema",
|
|
2572
|
-
"version": "0.
|
|
2572
|
+
"version": "0.50.1",
|
|
2573
2573
|
"path": "edition/dispatched-runtime-components.mjs",
|
|
2574
2574
|
"sha256": "sha256:9712823d183a60108cd002b2d36a9e5c0867b9d576dd02825264a18f7b8ece69"
|
|
2575
2575
|
},
|
|
2576
2576
|
{
|
|
2577
2577
|
"package": "@xemahq/xema",
|
|
2578
|
-
"version": "0.
|
|
2578
|
+
"version": "0.50.1",
|
|
2579
2579
|
"path": "edition/distribution-paths.mjs",
|
|
2580
2580
|
"sha256": "sha256:d78a5c8405bc6c25d36fcec61b0030e1fdacac7d528e698adb96f906f4b70279"
|
|
2581
2581
|
},
|
|
2582
2582
|
{
|
|
2583
2583
|
"package": "@xemahq/xema",
|
|
2584
|
-
"version": "0.
|
|
2584
|
+
"version": "0.50.1",
|
|
2585
2585
|
"path": "edition/edition-artifact.mjs",
|
|
2586
2586
|
"sha256": "sha256:4ca19b111d10252a067a6ee135338716ac5b509b56ba3ac475c05e9ea3c4a805"
|
|
2587
2587
|
},
|
|
2588
2588
|
{
|
|
2589
2589
|
"package": "@xemahq/xema",
|
|
2590
|
-
"version": "0.
|
|
2590
|
+
"version": "0.50.1",
|
|
2591
2591
|
"path": "edition/edition-channel.mjs",
|
|
2592
2592
|
"sha256": "sha256:3c0c1564dc50be133cad500452d953353aa5beb703142c05a17bbce8175ba9f3"
|
|
2593
2593
|
},
|
|
2594
2594
|
{
|
|
2595
2595
|
"package": "@xemahq/xema",
|
|
2596
|
-
"version": "0.
|
|
2596
|
+
"version": "0.50.1",
|
|
2597
2597
|
"path": "edition/edition-chart-set.mjs",
|
|
2598
2598
|
"sha256": "sha256:f9f16b58279c8c2619a39c5cc92bdbc334543d1a324304cd5d3b120d66dc8f3a"
|
|
2599
2599
|
},
|
|
2600
2600
|
{
|
|
2601
2601
|
"package": "@xemahq/xema",
|
|
2602
|
-
"version": "0.
|
|
2602
|
+
"version": "0.50.1",
|
|
2603
2603
|
"path": "edition/edition-config.mjs",
|
|
2604
2604
|
"sha256": "sha256:58af55e9a2b36ca23485246d44a295260afa240bcdc0649c697563b36085ddaa"
|
|
2605
2605
|
},
|
|
2606
2606
|
{
|
|
2607
2607
|
"package": "@xemahq/xema",
|
|
2608
|
-
"version": "0.
|
|
2608
|
+
"version": "0.50.1",
|
|
2609
2609
|
"path": "edition/edition-constants.mjs",
|
|
2610
2610
|
"sha256": "sha256:217fa5b1fa25cb50ee4e1b46ea5e086061ff1f44e00198e1dc28f52376f236a0"
|
|
2611
2611
|
},
|
|
2612
2612
|
{
|
|
2613
2613
|
"package": "@xemahq/xema",
|
|
2614
|
-
"version": "0.
|
|
2614
|
+
"version": "0.50.1",
|
|
2615
2615
|
"path": "edition/edition-contract-parse.mjs",
|
|
2616
2616
|
"sha256": "sha256:e2c6e66378f878499f44b62d060ae50197f40757b2044d9ce05290e367dfe21d"
|
|
2617
2617
|
},
|
|
2618
2618
|
{
|
|
2619
2619
|
"package": "@xemahq/xema",
|
|
2620
|
-
"version": "0.
|
|
2620
|
+
"version": "0.50.1",
|
|
2621
2621
|
"path": "edition/edition-contract.json",
|
|
2622
2622
|
"sha256": "sha256:566a17301ad15b94a06fef12b26bbe39e292ed2bf30a2659a9bf07ce5ce487e0"
|
|
2623
2623
|
},
|
|
2624
2624
|
{
|
|
2625
2625
|
"package": "@xemahq/xema",
|
|
2626
|
-
"version": "0.
|
|
2626
|
+
"version": "0.50.1",
|
|
2627
2627
|
"path": "edition/edition-kind.mjs",
|
|
2628
2628
|
"sha256": "sha256:b4f3358ffa81bbafb8c37d158b9e01032a7358c38b9d6e5aca409091f989e47a"
|
|
2629
2629
|
},
|
|
2630
2630
|
{
|
|
2631
2631
|
"package": "@xemahq/xema",
|
|
2632
|
-
"version": "0.
|
|
2632
|
+
"version": "0.50.1",
|
|
2633
2633
|
"path": "edition/edition-protocol.mjs",
|
|
2634
2634
|
"sha256": "sha256:4122dfb12c0f5e9fb44c96a277f8c2a308823095f0e4bed357189f7538230eb9"
|
|
2635
2635
|
},
|
|
2636
2636
|
{
|
|
2637
2637
|
"package": "@xemahq/xema",
|
|
2638
|
-
"version": "0.
|
|
2638
|
+
"version": "0.50.1",
|
|
2639
2639
|
"path": "edition/edition-publisher.mjs",
|
|
2640
2640
|
"sha256": "sha256:8803b41067d81acbc35a8974426f606b5b8168b7a9c2581c16586a86f36db50f"
|
|
2641
2641
|
},
|
|
2642
2642
|
{
|
|
2643
2643
|
"package": "@xemahq/xema",
|
|
2644
|
-
"version": "0.
|
|
2644
|
+
"version": "0.50.1",
|
|
2645
2645
|
"path": "edition/edition-source-pins.mjs",
|
|
2646
2646
|
"sha256": "sha256:b141474fff33b06734fb62cd2552752b991c8267bb1c9bccb22a81dd80e91c6c"
|
|
2647
2647
|
},
|
|
2648
2648
|
{
|
|
2649
2649
|
"package": "@xemahq/xema",
|
|
2650
|
-
"version": "0.
|
|
2650
|
+
"version": "0.50.1",
|
|
2651
2651
|
"path": "edition/edition-workspace.mjs",
|
|
2652
2652
|
"sha256": "sha256:892b360f9f80d2308b0b12f9b99658ae06173878d9b71cf5d6fc8bd717b3c86e"
|
|
2653
2653
|
},
|
|
2654
2654
|
{
|
|
2655
2655
|
"package": "@xemahq/xema",
|
|
2656
|
-
"version": "0.
|
|
2656
|
+
"version": "0.50.1",
|
|
2657
2657
|
"path": "edition/evidence-checkout.mjs",
|
|
2658
2658
|
"sha256": "sha256:31fb669769b31de4c6f2b2501bb96959548172ef166e7568edbbfed7f5079a11"
|
|
2659
2659
|
},
|
|
2660
2660
|
{
|
|
2661
2661
|
"package": "@xemahq/xema",
|
|
2662
|
-
"version": "0.
|
|
2662
|
+
"version": "0.50.1",
|
|
2663
2663
|
"path": "edition/evidence-grammars.mjs",
|
|
2664
2664
|
"sha256": "sha256:4bea69437af5a36c139b5b41d0ecf2d1ddcf3f871e10c78e3d351f608eedca3b"
|
|
2665
2665
|
},
|
|
2666
2666
|
{
|
|
2667
2667
|
"package": "@xemahq/xema",
|
|
2668
|
-
"version": "0.
|
|
2668
|
+
"version": "0.50.1",
|
|
2669
2669
|
"path": "edition/evidence-trust-pin.mjs",
|
|
2670
2670
|
"sha256": "sha256:eb46e4d6a79dfac5536b7a439ab9df7dd4b03af369bdcfa9fcdd522aa1aab8dd"
|
|
2671
2671
|
},
|
|
2672
2672
|
{
|
|
2673
2673
|
"package": "@xemahq/xema",
|
|
2674
|
-
"version": "0.
|
|
2674
|
+
"version": "0.50.1",
|
|
2675
2675
|
"path": "edition/first-party-source-ids.mjs",
|
|
2676
2676
|
"sha256": "sha256:20cb1ad7cfb8c6e6686a6be5a51289da4bba76c20b58d9c1b5b6b3813a38dc1c"
|
|
2677
2677
|
},
|
|
2678
2678
|
{
|
|
2679
2679
|
"package": "@xemahq/xema",
|
|
2680
|
-
"version": "0.
|
|
2680
|
+
"version": "0.50.1",
|
|
2681
2681
|
"path": "edition/fulcio-certificate-extensions.mjs",
|
|
2682
2682
|
"sha256": "sha256:6f1f5a8ea110a489f7aff4bfb8e0b2d058919fe3e8ba4a1e5e8396fca24861b7"
|
|
2683
2683
|
},
|
|
2684
2684
|
{
|
|
2685
2685
|
"package": "@xemahq/xema",
|
|
2686
|
-
"version": "0.
|
|
2686
|
+
"version": "0.50.1",
|
|
2687
2687
|
"path": "edition/git-json.mjs",
|
|
2688
2688
|
"sha256": "sha256:d0d25cda0c19007becabc9a2827c3dcf759b295cd0b41596eb4480c9549a1f21"
|
|
2689
2689
|
},
|
|
2690
2690
|
{
|
|
2691
2691
|
"package": "@xemahq/xema",
|
|
2692
|
-
"version": "0.
|
|
2692
|
+
"version": "0.50.1",
|
|
2693
2693
|
"path": "edition/git-source-auth.mjs",
|
|
2694
2694
|
"sha256": "sha256:c1b32aa6f7d59798db58238d632cafeadbd4f07376396a31acdeb5f0ac56dcac"
|
|
2695
2695
|
},
|
|
2696
2696
|
{
|
|
2697
2697
|
"package": "@xemahq/xema",
|
|
2698
|
-
"version": "0.
|
|
2698
|
+
"version": "0.50.1",
|
|
2699
2699
|
"path": "edition/image-delivery-entitlement-descriptor.mjs",
|
|
2700
2700
|
"sha256": "sha256:4726b66116f01bf2523fafe2b7a356591eca8fb5ca6bd8b154dd4821873e921b"
|
|
2701
2701
|
},
|
|
2702
2702
|
{
|
|
2703
2703
|
"package": "@xemahq/xema",
|
|
2704
|
-
"version": "0.
|
|
2704
|
+
"version": "0.50.1",
|
|
2705
2705
|
"path": "edition/image-evidence-replay-state.mjs",
|
|
2706
2706
|
"sha256": "sha256:eba0cf1d38af0ab2f00c5099fa8bc2edc543136ce92f895544d4d284b3d6af0f"
|
|
2707
2707
|
},
|
|
2708
2708
|
{
|
|
2709
2709
|
"package": "@xemahq/xema",
|
|
2710
|
-
"version": "0.
|
|
2710
|
+
"version": "0.50.1",
|
|
2711
2711
|
"path": "edition/image-evidence.mjs",
|
|
2712
2712
|
"sha256": "sha256:6902845b5a015c6576b787fe9b443bb2876e65bcadbad5b62ef724a373b9be00"
|
|
2713
2713
|
},
|
|
2714
2714
|
{
|
|
2715
2715
|
"package": "@xemahq/xema",
|
|
2716
|
-
"version": "0.
|
|
2716
|
+
"version": "0.50.1",
|
|
2717
2717
|
"path": "edition/kernel-capability-domain.mjs",
|
|
2718
2718
|
"sha256": "sha256:3ecf887dd8d399e91a8285f6f115f6e418fb59bbf3f004539fe65ec667219356"
|
|
2719
2719
|
},
|
|
2720
2720
|
{
|
|
2721
2721
|
"package": "@xemahq/xema",
|
|
2722
|
-
"version": "0.
|
|
2722
|
+
"version": "0.50.1",
|
|
2723
2723
|
"path": "edition/kernel-contract-authority.mjs",
|
|
2724
2724
|
"sha256": "sha256:cf0326f29b6488438497c40665feffa68b470f493cf69a2f3fb5dea9624c40d4"
|
|
2725
2725
|
},
|
|
2726
2726
|
{
|
|
2727
2727
|
"package": "@xemahq/xema",
|
|
2728
|
-
"version": "0.
|
|
2728
|
+
"version": "0.50.1",
|
|
2729
2729
|
"path": "edition/kernel-contract-source-path-set.mjs",
|
|
2730
2730
|
"sha256": "sha256:bc4756f217d80fd8f802932f47da71ab14e782873fa9fa977002a94e058d8a9e"
|
|
2731
2731
|
},
|
|
2732
2732
|
{
|
|
2733
2733
|
"package": "@xemahq/xema",
|
|
2734
|
-
"version": "0.
|
|
2734
|
+
"version": "0.50.1",
|
|
2735
2735
|
"path": "edition/kernel-package.mjs",
|
|
2736
2736
|
"sha256": "sha256:b468039179d89b0251abcdbb3020c6dcadb86a675c398a3cbb4cbca53c59830e"
|
|
2737
2737
|
},
|
|
2738
2738
|
{
|
|
2739
2739
|
"package": "@xemahq/xema",
|
|
2740
|
-
"version": "0.
|
|
2740
|
+
"version": "0.50.1",
|
|
2741
2741
|
"path": "edition/lib.mjs",
|
|
2742
2742
|
"sha256": "sha256:89b6ed1883198fc0b6eff89d9797292d80e307ad983fad559a27edde8c6c644f"
|
|
2743
2743
|
},
|
|
2744
2744
|
{
|
|
2745
2745
|
"package": "@xemahq/xema",
|
|
2746
|
-
"version": "0.
|
|
2746
|
+
"version": "0.50.1",
|
|
2747
2747
|
"path": "edition/no-follow-file.mjs",
|
|
2748
2748
|
"sha256": "sha256:c17bdf5e441f3c079aa06d4b48bbed05cad087855b9ad2a5e6dc43d5ee2b17c3"
|
|
2749
2749
|
},
|
|
2750
2750
|
{
|
|
2751
2751
|
"package": "@xemahq/xema",
|
|
2752
|
-
"version": "0.
|
|
2752
|
+
"version": "0.50.1",
|
|
2753
2753
|
"path": "edition/operation-requirements.mjs",
|
|
2754
2754
|
"sha256": "sha256:82c0fadc5b10c6f60a1258ad685aeb33e58a53c14f83d4b6d468ac71a5e4e7b4"
|
|
2755
2755
|
},
|
|
2756
2756
|
{
|
|
2757
2757
|
"package": "@xemahq/xema",
|
|
2758
|
-
"version": "0.
|
|
2758
|
+
"version": "0.50.1",
|
|
2759
2759
|
"path": "edition/pin-source.mjs",
|
|
2760
2760
|
"sha256": "sha256:32fa918729a83587b4d3bca6e5fe381f5a525397ebc49d52729ec1f8cf216c37"
|
|
2761
2761
|
},
|
|
2762
2762
|
{
|
|
2763
2763
|
"package": "@xemahq/xema",
|
|
2764
|
-
"version": "0.
|
|
2764
|
+
"version": "0.50.1",
|
|
2765
2765
|
"path": "edition/sigstore-bundle-media-type.mjs",
|
|
2766
2766
|
"sha256": "sha256:e0aa5a3992f0385ddbbe69eb0307d642ac428ef516c8394816ac4fd52e0ac39c"
|
|
2767
2767
|
},
|
|
2768
2768
|
{
|
|
2769
2769
|
"package": "@xemahq/xema",
|
|
2770
|
-
"version": "0.
|
|
2770
|
+
"version": "0.50.1",
|
|
2771
2771
|
"path": "edition/source-authority.mjs",
|
|
2772
2772
|
"sha256": "sha256:9c351f60e8ea838f445f89c3709c60b7f13b021b78d6e40eaef91350a793f0ff"
|
|
2773
2773
|
},
|
|
2774
2774
|
{
|
|
2775
2775
|
"package": "@xemahq/xema",
|
|
2776
|
-
"version": "0.
|
|
2776
|
+
"version": "0.50.1",
|
|
2777
2777
|
"path": "edition/strict-json.mjs",
|
|
2778
2778
|
"sha256": "sha256:f95778396df7f38b086f55d2ec4f3b6644a8aeff2b32282a62829145fb544562"
|
|
2779
2779
|
},
|
|
2780
2780
|
{
|
|
2781
2781
|
"package": "@xemahq/xema",
|
|
2782
|
-
"version": "0.
|
|
2782
|
+
"version": "0.50.1",
|
|
2783
2783
|
"path": "edition/string-order.mjs",
|
|
2784
2784
|
"sha256": "sha256:b3210cd273e4b2e01fb8b1a91e28734cd211d4010c080d0ce95f5e5ff631cffb"
|
|
2785
2785
|
},
|
|
2786
2786
|
{
|
|
2787
2787
|
"package": "@xemahq/xema",
|
|
2788
|
-
"version": "0.
|
|
2788
|
+
"version": "0.50.1",
|
|
2789
2789
|
"path": "edition/third-party-admission.mjs",
|
|
2790
2790
|
"sha256": "sha256:7e32f631a8948e2b93a5cfa163390d52d2a8d9ade87a637c7fe1fc6351fe5974"
|
|
2791
2791
|
},
|
|
2792
2792
|
{
|
|
2793
2793
|
"package": "@xemahq/xema",
|
|
2794
|
-
"version": "0.
|
|
2794
|
+
"version": "0.50.1",
|
|
2795
2795
|
"path": "edition/third-party-certificate-extensions.mjs",
|
|
2796
2796
|
"sha256": "sha256:3293267b09452199f605001d8c14070d1c822b77390caee4088e17b059b7b05d"
|
|
2797
2797
|
},
|
|
2798
2798
|
{
|
|
2799
2799
|
"package": "@xemahq/xema",
|
|
2800
|
-
"version": "0.
|
|
2800
|
+
"version": "0.50.1",
|
|
2801
2801
|
"path": "edition/third-party-source-pins.mjs",
|
|
2802
2802
|
"sha256": "sha256:6f12feb9061bd4ea3e5aeab3f369c081ab58da335c0d281e21b250251e1c0dd9"
|
|
2803
2803
|
},
|
|
2804
2804
|
{
|
|
2805
2805
|
"package": "@xemahq/xema",
|
|
2806
|
-
"version": "0.
|
|
2806
|
+
"version": "0.50.1",
|
|
2807
2807
|
"path": "edition/trust-policy-arming.mjs",
|
|
2808
2808
|
"sha256": "sha256:6f6f192118407e71a744087caea988bcf3d33aca9803217bceb8134d7e2b9120"
|
|
2809
2809
|
},
|
|
2810
2810
|
{
|
|
2811
2811
|
"package": "@xemahq/xema",
|
|
2812
|
-
"version": "0.
|
|
2812
|
+
"version": "0.50.1",
|
|
2813
2813
|
"path": "edition/trust-policy-image-ownership.mjs",
|
|
2814
2814
|
"sha256": "sha256:be0c787c6a75124f0143fc0ce3b127a94e3bb7f6aa64e282c91dd84e566e550e"
|
|
2815
2815
|
},
|
|
2816
2816
|
{
|
|
2817
2817
|
"package": "@xemahq/xema",
|
|
2818
|
-
"version": "0.
|
|
2818
|
+
"version": "0.50.1",
|
|
2819
2819
|
"path": "edition/trusted-executable.mjs",
|
|
2820
2820
|
"sha256": "sha256:37d46cdbc999ddd55d4ea8aeed4850ddd1efde89ed7b532f5a2ddec87105d796"
|
|
2821
2821
|
},
|
|
2822
2822
|
{
|
|
2823
2823
|
"package": "@xemahq/xema",
|
|
2824
|
-
"version": "0.
|
|
2824
|
+
"version": "0.50.1",
|
|
2825
2825
|
"path": "edition/verifier-binding.mjs",
|
|
2826
2826
|
"sha256": "sha256:80732658617f5255258c538eeb2383331ec8553b44b58d552b567845a7b916aa"
|
|
2827
2827
|
},
|
|
2828
2828
|
{
|
|
2829
2829
|
"package": "@xemahq/xema",
|
|
2830
|
-
"version": "0.
|
|
2830
|
+
"version": "0.50.1",
|
|
2831
2831
|
"path": "edition/verifier-files.mjs",
|
|
2832
2832
|
"sha256": "sha256:cdd14a20a63f0f194a8abb55680a5a7e3ced1f09f8b210a90d349e655f6de0c0"
|
|
2833
2833
|
},
|
|
2834
2834
|
{
|
|
2835
2835
|
"package": "@xemahq/xema",
|
|
2836
|
-
"version": "0.
|
|
2836
|
+
"version": "0.50.1",
|
|
2837
2837
|
"path": "edition/verifier-provenance.mjs",
|
|
2838
2838
|
"sha256": "sha256:3e2fb8e07cf1f66b8ad6c7ac2555fe3af64ec7abeb07cecbaf1939a18c2b3663"
|
|
2839
2839
|
},
|
|
2840
2840
|
{
|
|
2841
2841
|
"package": "@xemahq/xema",
|
|
2842
|
-
"version": "0.
|
|
2842
|
+
"version": "0.50.1",
|
|
2843
2843
|
"path": "edition/verify-catalogue-evidence.mjs",
|
|
2844
2844
|
"sha256": "sha256:156d0ee39210658ec489609629c5b9cddd3ce5b3938d8980dcf8282ae4be60bb"
|
|
2845
2845
|
},
|
|
2846
2846
|
{
|
|
2847
2847
|
"package": "@xemahq/xema",
|
|
2848
|
-
"version": "0.
|
|
2848
|
+
"version": "0.50.1",
|
|
2849
2849
|
"path": "edition/verify-image-evidence.mjs",
|
|
2850
2850
|
"sha256": "sha256:958360f7889985c48abb048852c5bbba349cd7353ce4b532c4511b4902380fac"
|
|
2851
2851
|
},
|
|
2852
2852
|
{
|
|
2853
2853
|
"package": "@xemahq/xema",
|
|
2854
|
-
"version": "0.
|
|
2854
|
+
"version": "0.50.1",
|
|
2855
2855
|
"path": "edition/workspace-sections.mjs",
|
|
2856
2856
|
"sha256": "sha256:18c28e9fa2a6b7d8589c8434fc6ed9f1e93954d41339813e711ed0fbbcf5c61d"
|
|
2857
2857
|
},
|
|
2858
2858
|
{
|
|
2859
2859
|
"package": "@xemahq/xema",
|
|
2860
|
-
"version": "0.
|
|
2860
|
+
"version": "0.50.1",
|
|
2861
2861
|
"path": "scripts/build-evidence-verifier.mjs",
|
|
2862
2862
|
"sha256": "sha256:5a688d20c47dc88aff37aa0c6cc02daf2c370a5bc610fef8446ce7be222d4c0b"
|
|
2863
2863
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type BiomeManifest } from '@xemahq/contracts/biome';
|
|
2
2
|
import { type PackageImageLayers } from './biome-publish-image-layers';
|
|
3
3
|
import { PublishedContentState } from './biome-published-content';
|
|
4
|
-
import { PublishedAttestationState, PublishedSignatureState } from './biome-published-cosign';
|
|
4
|
+
import { PublishedAttestationState, PublishedSignatureState, type CosignSigner } from './biome-published-cosign';
|
|
5
5
|
export declare const BIOME_ARTIFACT_TYPE = "application/vnd.xema.biome.manifest.v1+json";
|
|
6
6
|
export declare const COSIGN_KEY_ENV = "COSIGN_KEY";
|
|
7
7
|
export interface PublishOptions {
|
|
@@ -14,6 +14,8 @@ export interface PublishOptions {
|
|
|
14
14
|
readonly configPath?: string;
|
|
15
15
|
readonly dryRun?: boolean;
|
|
16
16
|
readonly keyless?: boolean;
|
|
17
|
+
readonly certificateIdentity?: string;
|
|
18
|
+
readonly certificateOidcIssuer?: string;
|
|
17
19
|
readonly imageLock?: string;
|
|
18
20
|
}
|
|
19
21
|
export interface PublishPlan {
|
|
@@ -29,6 +31,7 @@ export interface PublishPlan {
|
|
|
29
31
|
readonly tokenEnv?: string;
|
|
30
32
|
readonly tokenPresent: boolean;
|
|
31
33
|
readonly cosignKeyResolved: boolean;
|
|
34
|
+
readonly signer?: CosignSigner;
|
|
32
35
|
readonly contentHash: string;
|
|
33
36
|
readonly indexSha256: string;
|
|
34
37
|
readonly published: PublishedContentState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"biome-publish.d.ts","sourceRoot":"","sources":["../../src/runtime/biome-publish.ts"],"names":[],"mappings":"AAkBA,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AAOjC,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"biome-publish.d.ts","sourceRoot":"","sources":["../../src/runtime/biome-publish.ts"],"names":[],"mappings":"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"}
|
|
@@ -55,6 +55,7 @@ class MissingRuntimeToolError extends Error {
|
|
|
55
55
|
exports.MissingRuntimeToolError = MissingRuntimeToolError;
|
|
56
56
|
function publishBiome(options) {
|
|
57
57
|
const biomeDir = (0, node_path_1.resolve)(options.path);
|
|
58
|
+
assertKeylessIdentity(options);
|
|
58
59
|
const manifest = loadManifest(biomeDir);
|
|
59
60
|
const biomeId = manifest.xema.id;
|
|
60
61
|
const version = manifest.version;
|
|
@@ -81,23 +82,26 @@ function publishBiome(options) {
|
|
|
81
82
|
const token = auth.tokenEnv !== undefined && (options.dryRun !== true || credentials.has(auth.tokenEnv))
|
|
82
83
|
? credentials.resolve(auth.tokenEnv, auth.sourceName)
|
|
83
84
|
: undefined;
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
const registryAuth = { username, ...(token !== undefined ? { token } : {}) };
|
|
86
|
+
const publishedContent = (0, biome_published_content_1.readPublishedContentHash)(ociRef, tag, registryAuth);
|
|
87
|
+
const probed = (0, biome_published_content_1.assertPublishedContentCurrent)(publishedContent, ociRef, pack.contentHash);
|
|
88
|
+
const existingSubject = publishedContent.state === biome_published_content_1.PublishedContentState.Present
|
|
89
|
+
? `${(0, biome_published_content_1.repositoryOf)(ociRef, tag)}@${publishedContent.manifestDigest}`
|
|
90
|
+
: undefined;
|
|
88
91
|
const published = probed === biome_published_content_1.PublishedContentState.Absent && token === undefined && options.dryRun === true
|
|
89
92
|
? biome_published_content_1.PublishedContentState.Unverified
|
|
90
93
|
: probed;
|
|
91
|
-
const { signature, attestation } = published === biome_published_content_1.PublishedContentState.Present
|
|
92
|
-
? (0, biome_published_cosign_1.readPublishedCosignState)(ociRef, tag, {
|
|
93
|
-
username,
|
|
94
|
-
...(token !== undefined ? { token } : {}),
|
|
95
|
-
})
|
|
96
|
-
: biome_published_cosign_1.NOTHING_PUBLISHED;
|
|
97
94
|
const cosignKey = process.env[exports.COSIGN_KEY_ENV];
|
|
98
95
|
const keyless = options.keyless === true;
|
|
99
|
-
const
|
|
100
|
-
|
|
96
|
+
const signer = resolveSigner(options, cosignKey);
|
|
97
|
+
if (existingSubject !== undefined || options.dryRun !== true) {
|
|
98
|
+
ensureToolInstalled('cosign');
|
|
99
|
+
(0, biome_published_cosign_1.assertCosignVersionSupported)();
|
|
100
|
+
}
|
|
101
|
+
const { signature, attestation } = existingSubject !== undefined ? (0, biome_published_cosign_1.readPublishedCosignState)(existingSubject, requireSigner(signer)) : biome_published_cosign_1.NOTHING_PUBLISHED;
|
|
102
|
+
const signTarget = existingSubject ?? ociRef;
|
|
103
|
+
const cosignArgs = buildCosignArgs(signTarget, cosignKey, keyless);
|
|
104
|
+
const cosignAttestArgs = buildCosignAttestArgs(signTarget, cosignKey, keyless);
|
|
101
105
|
const credentialArgs = cosignCredentialArgs(cosignKey, keyless);
|
|
102
106
|
const cosignSignBlobArgs = (imageLayers?.signingJobs ?? []).map((job) => (0, biome_publish_image_layers_1.buildCosignSignBlobArgs)(job, credentialArgs));
|
|
103
107
|
const plan = {
|
|
@@ -113,6 +117,7 @@ function publishBiome(options) {
|
|
|
113
117
|
...(auth.tokenEnv !== undefined ? { tokenEnv: auth.tokenEnv } : {}),
|
|
114
118
|
tokenPresent: credentials.has(auth.tokenEnv),
|
|
115
119
|
cosignKeyResolved: cosignKey !== undefined && cosignKey.length > 0,
|
|
120
|
+
...(signer !== undefined ? { signer } : {}),
|
|
116
121
|
contentHash: pack.contentHash,
|
|
117
122
|
indexSha256: pack.indexSha256,
|
|
118
123
|
published,
|
|
@@ -128,17 +133,11 @@ function publishBiome(options) {
|
|
|
128
133
|
if (published === biome_published_content_1.PublishedContentState.Present &&
|
|
129
134
|
signature === biome_published_cosign_1.PublishedSignatureState.Signed &&
|
|
130
135
|
attestation === biome_published_cosign_1.PublishedAttestationState.Attested) {
|
|
131
|
-
console.log(`${ociRef} is already current (content.hash ${pack.contentHash}), signed and attested; nothing to publish.`);
|
|
136
|
+
console.log(`${ociRef} is already current (content.hash ${pack.contentHash}), signed and attested by this signer; nothing to publish.`);
|
|
132
137
|
return plan;
|
|
133
138
|
}
|
|
134
|
-
ensureToolInstalled('cosign');
|
|
135
139
|
if (!keyless && !plan.cosignKeyResolved) {
|
|
136
|
-
throw
|
|
137
|
-
'SLSA provenance attestation (the fetcher refuses artifacts missing either). ' +
|
|
138
|
-
`Set ${exports.COSIGN_KEY_ENV} to your cosign private key ref, or pass --keyless to ` +
|
|
139
|
-
'sign with an ambient OIDC identity (which is what CI should do: a first-party ' +
|
|
140
|
-
'catalog bundle must carry an identity, because that is what a publisher label ' +
|
|
141
|
-
'resolves from).');
|
|
140
|
+
throw missingCosignKeyError();
|
|
142
141
|
}
|
|
143
142
|
if (imageLayers !== undefined && published === biome_published_content_1.PublishedContentState.Present) {
|
|
144
143
|
throw new BiomePublishConfigError(`${ociRef} is already published without these image layers; a version's artifact is immutable, so publish the image lock with a new version.`);
|
|
@@ -158,8 +157,15 @@ function publishBiome(options) {
|
|
|
158
157
|
if (attestOwed) {
|
|
159
158
|
attestProvenance({ plan, biomeDir: pack.root, startedOn });
|
|
160
159
|
}
|
|
160
|
+
const verifiedSubject = existingSubject ?? publishedSubject((0, biome_published_content_1.readPublishedContentHash)(ociRef, tag, registryAuth), ociRef, tag);
|
|
161
|
+
const after = (0, biome_published_cosign_1.readPublishedCosignState)(verifiedSubject, requireSigner(signer));
|
|
162
|
+
if (after.signature !== biome_published_cosign_1.PublishedSignatureState.Signed || after.attestation !== biome_published_cosign_1.PublishedAttestationState.Attested) {
|
|
163
|
+
throw new BiomePublishConfigError(`${verifiedSubject} is not signed and attested by the declared signer after publishing ` +
|
|
164
|
+
`(signature: ${after.signature}, attestation: ${after.attestation}). The signer declared with ` +
|
|
165
|
+
'--certificate-identity / --certificate-oidc-issuer (or COSIGN_KEY) is not the one cosign signed as.');
|
|
166
|
+
}
|
|
161
167
|
console.log(published === biome_published_content_1.PublishedContentState.Present
|
|
162
|
-
? `Completed an already-published artifact: ${ociRef} (content.hash ${pack.contentHash}) — ${[signOwed ? 'signed it' : undefined, attestOwed ? 'attested it' : undefined].filter((x) => x !== undefined).join(' and ')}.`
|
|
168
|
+
? `Completed an already-published artifact: ${ociRef} (content.hash ${pack.contentHash}), as this signer — ${[signOwed ? 'signed it' : undefined, attestOwed ? 'attested it' : undefined].filter((x) => x !== undefined).join(' and ')}.`
|
|
163
169
|
: `Published, signed and attested ${ociRef}.`);
|
|
164
170
|
return plan;
|
|
165
171
|
}
|
|
@@ -286,6 +292,50 @@ function buildOrasArgs(input) {
|
|
|
286
292
|
}
|
|
287
293
|
return args;
|
|
288
294
|
}
|
|
295
|
+
function publishedSubject(content, ociRef, tag) {
|
|
296
|
+
if (content.state !== biome_published_content_1.PublishedContentState.Present) {
|
|
297
|
+
throw new biome_published_content_1.PublishedContentProbeError(`${ociRef} is not readable after publishing, so its signature cannot be verified.`);
|
|
298
|
+
}
|
|
299
|
+
return `${(0, biome_published_content_1.repositoryOf)(ociRef, tag)}@${content.manifestDigest}`;
|
|
300
|
+
}
|
|
301
|
+
function assertKeylessIdentity(options) {
|
|
302
|
+
const given = (value) => value !== undefined && value.length > 0;
|
|
303
|
+
if (options.keyless === true) {
|
|
304
|
+
if (!given(options.certificateIdentity) || !given(options.certificateOidcIssuer)) {
|
|
305
|
+
throw new BiomePublishConfigError('--keyless requires --certificate-identity <uri> and --certificate-oidc-issuer <url>: the signer this ' +
|
|
306
|
+
'run signs and attests as, which decides what an already-published tag still owes it. They are not ' +
|
|
307
|
+
'derived from GITHUB_WORKFLOW_REF (Fulcio signs the job_workflow_ref, which differs for a reusable workflow).');
|
|
308
|
+
}
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
if (given(options.certificateIdentity) || given(options.certificateOidcIssuer)) {
|
|
312
|
+
throw new BiomePublishConfigError('--certificate-identity and --certificate-oidc-issuer name a keyless signer; pass --keyless with them, or drop them to sign with COSIGN_KEY.');
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
function resolveSigner(options, cosignKey) {
|
|
316
|
+
if (options.keyless === true) {
|
|
317
|
+
return {
|
|
318
|
+
kind: biome_published_cosign_1.CosignSignerKind.Keyless,
|
|
319
|
+
identity: options.certificateIdentity,
|
|
320
|
+
issuer: options.certificateOidcIssuer,
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
return cosignKey !== undefined && cosignKey.length > 0 ? { kind: biome_published_cosign_1.CosignSignerKind.Key, keyRef: cosignKey } : undefined;
|
|
324
|
+
}
|
|
325
|
+
function requireSigner(signer) {
|
|
326
|
+
if (signer === undefined) {
|
|
327
|
+
throw missingCosignKeyError();
|
|
328
|
+
}
|
|
329
|
+
return signer;
|
|
330
|
+
}
|
|
331
|
+
function missingCosignKeyError() {
|
|
332
|
+
return new BiomePublishConfigError(`${exports.COSIGN_KEY_ENV} is not set — a published biome MUST be cosign-signed AND carry a ` +
|
|
333
|
+
'SLSA provenance attestation (the fetcher refuses artifacts missing either). ' +
|
|
334
|
+
`Set ${exports.COSIGN_KEY_ENV} to your cosign private key ref, or pass --keyless ` +
|
|
335
|
+
'--certificate-identity <uri> --certificate-oidc-issuer <url> to sign with an ambient OIDC ' +
|
|
336
|
+
'identity (which is what CI should do: a first-party catalog bundle must carry an identity, ' +
|
|
337
|
+
'because that is what a publisher label resolves from).');
|
|
338
|
+
}
|
|
289
339
|
function buildCosignArgs(ociRef, cosignKey, keyless) {
|
|
290
340
|
if (keyless) {
|
|
291
341
|
return ['sign', '--yes', ociRef];
|
|
@@ -393,13 +443,13 @@ const PUBLISHED_PLAN_TEXT = {
|
|
|
393
443
|
[biome_published_content_1.PublishedContentState.Unverified]: 'unverified (no registry credentials)',
|
|
394
444
|
};
|
|
395
445
|
const PUBLISHED_SIGNATURE_PLAN_TEXT = {
|
|
396
|
-
[biome_published_cosign_1.PublishedSignatureState.Signed]: 'signed — nothing to sign',
|
|
397
|
-
[biome_published_cosign_1.PublishedSignatureState.Unsigned]: '
|
|
446
|
+
[biome_published_cosign_1.PublishedSignatureState.Signed]: 'signed by this signer — nothing to sign',
|
|
447
|
+
[biome_published_cosign_1.PublishedSignatureState.Unsigned]: 'not signed by this signer — a real publish would sign it',
|
|
398
448
|
[biome_published_cosign_1.PublishedSignatureState.NotApplicable]: 'n/a',
|
|
399
449
|
};
|
|
400
450
|
const PUBLISHED_ATTESTATION_PLAN_TEXT = {
|
|
401
|
-
[biome_published_cosign_1.PublishedAttestationState.Attested]: 'attested — nothing to attest',
|
|
402
|
-
[biome_published_cosign_1.PublishedAttestationState.Unattested]: '
|
|
451
|
+
[biome_published_cosign_1.PublishedAttestationState.Attested]: 'attested by this signer — nothing to attest',
|
|
452
|
+
[biome_published_cosign_1.PublishedAttestationState.Unattested]: 'not attested by this signer — a real publish would attest it',
|
|
403
453
|
[biome_published_cosign_1.PublishedAttestationState.NotApplicable]: 'n/a',
|
|
404
454
|
};
|
|
405
455
|
function printPlan(plan, biomeDir, username) {
|
|
@@ -409,6 +459,11 @@ function printPlan(plan, biomeDir, username) {
|
|
|
409
459
|
console.log(` tag : ${plan.tag}`);
|
|
410
460
|
console.log(` oci ref : ${plan.ociRef}`);
|
|
411
461
|
console.log(` published : ${PUBLISHED_PLAN_TEXT[plan.published]}`);
|
|
462
|
+
if (plan.signer !== undefined) {
|
|
463
|
+
console.log(` signer : ${plan.signer.kind === biome_published_cosign_1.CosignSignerKind.Keyless
|
|
464
|
+
? `keyless ${plan.signer.identity} (issuer ${plan.signer.issuer})`
|
|
465
|
+
: `key (${exports.COSIGN_KEY_ENV})`}`);
|
|
466
|
+
}
|
|
412
467
|
if (plan.signature !== biome_published_cosign_1.PublishedSignatureState.NotApplicable) {
|
|
413
468
|
console.log(` signature : ${PUBLISHED_SIGNATURE_PLAN_TEXT[plan.signature]}`);
|
|
414
469
|
}
|