@mc-and-his-agents/loom-installer 0.1.30 → 0.1.32
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 +1 -1
- package/payload/manifest.json +42 -42
- package/payload/plugin/loom/skills/shared/scripts/loom_check.py +83 -9
- package/payload/plugin/loom/skills/shared/scripts/loom_flow.py +429 -0
- package/payload/skills/loom-adopt/.loom-runtime/shared/scripts/loom_check.py +83 -9
- package/payload/skills/loom-adopt/.loom-runtime/shared/scripts/loom_flow.py +429 -0
- package/payload/skills/loom-handoff/.loom-runtime/shared/scripts/loom_check.py +83 -9
- package/payload/skills/loom-handoff/.loom-runtime/shared/scripts/loom_flow.py +429 -0
- package/payload/skills/loom-init/.loom-runtime/shared/scripts/loom_check.py +83 -9
- package/payload/skills/loom-init/.loom-runtime/shared/scripts/loom_flow.py +429 -0
- package/payload/skills/loom-merge-ready/.loom-runtime/shared/scripts/loom_check.py +83 -9
- package/payload/skills/loom-merge-ready/.loom-runtime/shared/scripts/loom_flow.py +429 -0
- package/payload/skills/loom-pre-review/.loom-runtime/shared/scripts/loom_check.py +83 -9
- package/payload/skills/loom-pre-review/.loom-runtime/shared/scripts/loom_flow.py +429 -0
- package/payload/skills/loom-resume/.loom-runtime/shared/scripts/loom_check.py +83 -9
- package/payload/skills/loom-resume/.loom-runtime/shared/scripts/loom_flow.py +429 -0
- package/payload/skills/loom-retire/.loom-runtime/shared/scripts/loom_check.py +83 -9
- package/payload/skills/loom-retire/.loom-runtime/shared/scripts/loom_flow.py +429 -0
- package/payload/skills/loom-review/.loom-runtime/shared/scripts/loom_check.py +83 -9
- package/payload/skills/loom-review/.loom-runtime/shared/scripts/loom_flow.py +429 -0
- package/payload/skills/loom-spec-review/.loom-runtime/shared/scripts/loom_check.py +83 -9
- package/payload/skills/loom-spec-review/.loom-runtime/shared/scripts/loom_flow.py +429 -0
package/package.json
CHANGED
package/payload/manifest.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"schema_version": "loom-installer-payload/v1",
|
|
3
3
|
"loom_version": "0.4.0",
|
|
4
4
|
"source_repository": "https://github.com/MC-and-his-Agents/Loom",
|
|
5
|
-
"source_commit": "
|
|
5
|
+
"source_commit": "3fb64673745f62b2ea76f770c2f2e06cd6192b76",
|
|
6
6
|
"source_ref": "main",
|
|
7
|
-
"built_at": "2026-04-
|
|
7
|
+
"built_at": "2026-04-27T14:19:25+08:00",
|
|
8
8
|
"runtime": {
|
|
9
9
|
"python_minimum": "3.10",
|
|
10
10
|
"python_recommended": "3.11+"
|
|
@@ -633,13 +633,13 @@
|
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
"path": "plugin/loom/skills/shared/scripts/loom_check.py",
|
|
636
|
-
"bytes":
|
|
637
|
-
"sha256": "
|
|
636
|
+
"bytes": 326062,
|
|
637
|
+
"sha256": "984cb68a9c5c95e268810b1a6a3c90590bb410b399b2d7ea60efe3da5c377689"
|
|
638
638
|
},
|
|
639
639
|
{
|
|
640
640
|
"path": "plugin/loom/skills/shared/scripts/loom_flow.py",
|
|
641
|
-
"bytes":
|
|
642
|
-
"sha256": "
|
|
641
|
+
"bytes": 322554,
|
|
642
|
+
"sha256": "02f9b19b65ad580aaee0431a1f5151ac87a4755c95d4045168efb9624f44a558"
|
|
643
643
|
},
|
|
644
644
|
{
|
|
645
645
|
"path": "plugin/loom/skills/shared/scripts/loom_init.py",
|
|
@@ -1223,13 +1223,13 @@
|
|
|
1223
1223
|
},
|
|
1224
1224
|
{
|
|
1225
1225
|
"path": "skills/loom-adopt/.loom-runtime/shared/scripts/loom_check.py",
|
|
1226
|
-
"bytes":
|
|
1227
|
-
"sha256": "
|
|
1226
|
+
"bytes": 326062,
|
|
1227
|
+
"sha256": "984cb68a9c5c95e268810b1a6a3c90590bb410b399b2d7ea60efe3da5c377689"
|
|
1228
1228
|
},
|
|
1229
1229
|
{
|
|
1230
1230
|
"path": "skills/loom-adopt/.loom-runtime/shared/scripts/loom_flow.py",
|
|
1231
|
-
"bytes":
|
|
1232
|
-
"sha256": "
|
|
1231
|
+
"bytes": 322554,
|
|
1232
|
+
"sha256": "02f9b19b65ad580aaee0431a1f5151ac87a4755c95d4045168efb9624f44a558"
|
|
1233
1233
|
},
|
|
1234
1234
|
{
|
|
1235
1235
|
"path": "skills/loom-adopt/.loom-runtime/shared/scripts/loom_init.py",
|
|
@@ -1843,13 +1843,13 @@
|
|
|
1843
1843
|
},
|
|
1844
1844
|
{
|
|
1845
1845
|
"path": "skills/loom-handoff/.loom-runtime/shared/scripts/loom_check.py",
|
|
1846
|
-
"bytes":
|
|
1847
|
-
"sha256": "
|
|
1846
|
+
"bytes": 326062,
|
|
1847
|
+
"sha256": "984cb68a9c5c95e268810b1a6a3c90590bb410b399b2d7ea60efe3da5c377689"
|
|
1848
1848
|
},
|
|
1849
1849
|
{
|
|
1850
1850
|
"path": "skills/loom-handoff/.loom-runtime/shared/scripts/loom_flow.py",
|
|
1851
|
-
"bytes":
|
|
1852
|
-
"sha256": "
|
|
1851
|
+
"bytes": 322554,
|
|
1852
|
+
"sha256": "02f9b19b65ad580aaee0431a1f5151ac87a4755c95d4045168efb9624f44a558"
|
|
1853
1853
|
},
|
|
1854
1854
|
{
|
|
1855
1855
|
"path": "skills/loom-handoff/.loom-runtime/shared/scripts/loom_init.py",
|
|
@@ -2463,13 +2463,13 @@
|
|
|
2463
2463
|
},
|
|
2464
2464
|
{
|
|
2465
2465
|
"path": "skills/loom-init/.loom-runtime/shared/scripts/loom_check.py",
|
|
2466
|
-
"bytes":
|
|
2467
|
-
"sha256": "
|
|
2466
|
+
"bytes": 326062,
|
|
2467
|
+
"sha256": "984cb68a9c5c95e268810b1a6a3c90590bb410b399b2d7ea60efe3da5c377689"
|
|
2468
2468
|
},
|
|
2469
2469
|
{
|
|
2470
2470
|
"path": "skills/loom-init/.loom-runtime/shared/scripts/loom_flow.py",
|
|
2471
|
-
"bytes":
|
|
2472
|
-
"sha256": "
|
|
2471
|
+
"bytes": 322554,
|
|
2472
|
+
"sha256": "02f9b19b65ad580aaee0431a1f5151ac87a4755c95d4045168efb9624f44a558"
|
|
2473
2473
|
},
|
|
2474
2474
|
{
|
|
2475
2475
|
"path": "skills/loom-init/.loom-runtime/shared/scripts/loom_init.py",
|
|
@@ -3088,13 +3088,13 @@
|
|
|
3088
3088
|
},
|
|
3089
3089
|
{
|
|
3090
3090
|
"path": "skills/loom-merge-ready/.loom-runtime/shared/scripts/loom_check.py",
|
|
3091
|
-
"bytes":
|
|
3092
|
-
"sha256": "
|
|
3091
|
+
"bytes": 326062,
|
|
3092
|
+
"sha256": "984cb68a9c5c95e268810b1a6a3c90590bb410b399b2d7ea60efe3da5c377689"
|
|
3093
3093
|
},
|
|
3094
3094
|
{
|
|
3095
3095
|
"path": "skills/loom-merge-ready/.loom-runtime/shared/scripts/loom_flow.py",
|
|
3096
|
-
"bytes":
|
|
3097
|
-
"sha256": "
|
|
3096
|
+
"bytes": 322554,
|
|
3097
|
+
"sha256": "02f9b19b65ad580aaee0431a1f5151ac87a4755c95d4045168efb9624f44a558"
|
|
3098
3098
|
},
|
|
3099
3099
|
{
|
|
3100
3100
|
"path": "skills/loom-merge-ready/.loom-runtime/shared/scripts/loom_init.py",
|
|
@@ -3708,13 +3708,13 @@
|
|
|
3708
3708
|
},
|
|
3709
3709
|
{
|
|
3710
3710
|
"path": "skills/loom-pre-review/.loom-runtime/shared/scripts/loom_check.py",
|
|
3711
|
-
"bytes":
|
|
3712
|
-
"sha256": "
|
|
3711
|
+
"bytes": 326062,
|
|
3712
|
+
"sha256": "984cb68a9c5c95e268810b1a6a3c90590bb410b399b2d7ea60efe3da5c377689"
|
|
3713
3713
|
},
|
|
3714
3714
|
{
|
|
3715
3715
|
"path": "skills/loom-pre-review/.loom-runtime/shared/scripts/loom_flow.py",
|
|
3716
|
-
"bytes":
|
|
3717
|
-
"sha256": "
|
|
3716
|
+
"bytes": 322554,
|
|
3717
|
+
"sha256": "02f9b19b65ad580aaee0431a1f5151ac87a4755c95d4045168efb9624f44a558"
|
|
3718
3718
|
},
|
|
3719
3719
|
{
|
|
3720
3720
|
"path": "skills/loom-pre-review/.loom-runtime/shared/scripts/loom_init.py",
|
|
@@ -4328,13 +4328,13 @@
|
|
|
4328
4328
|
},
|
|
4329
4329
|
{
|
|
4330
4330
|
"path": "skills/loom-resume/.loom-runtime/shared/scripts/loom_check.py",
|
|
4331
|
-
"bytes":
|
|
4332
|
-
"sha256": "
|
|
4331
|
+
"bytes": 326062,
|
|
4332
|
+
"sha256": "984cb68a9c5c95e268810b1a6a3c90590bb410b399b2d7ea60efe3da5c377689"
|
|
4333
4333
|
},
|
|
4334
4334
|
{
|
|
4335
4335
|
"path": "skills/loom-resume/.loom-runtime/shared/scripts/loom_flow.py",
|
|
4336
|
-
"bytes":
|
|
4337
|
-
"sha256": "
|
|
4336
|
+
"bytes": 322554,
|
|
4337
|
+
"sha256": "02f9b19b65ad580aaee0431a1f5151ac87a4755c95d4045168efb9624f44a558"
|
|
4338
4338
|
},
|
|
4339
4339
|
{
|
|
4340
4340
|
"path": "skills/loom-resume/.loom-runtime/shared/scripts/loom_init.py",
|
|
@@ -4948,13 +4948,13 @@
|
|
|
4948
4948
|
},
|
|
4949
4949
|
{
|
|
4950
4950
|
"path": "skills/loom-retire/.loom-runtime/shared/scripts/loom_check.py",
|
|
4951
|
-
"bytes":
|
|
4952
|
-
"sha256": "
|
|
4951
|
+
"bytes": 326062,
|
|
4952
|
+
"sha256": "984cb68a9c5c95e268810b1a6a3c90590bb410b399b2d7ea60efe3da5c377689"
|
|
4953
4953
|
},
|
|
4954
4954
|
{
|
|
4955
4955
|
"path": "skills/loom-retire/.loom-runtime/shared/scripts/loom_flow.py",
|
|
4956
|
-
"bytes":
|
|
4957
|
-
"sha256": "
|
|
4956
|
+
"bytes": 322554,
|
|
4957
|
+
"sha256": "02f9b19b65ad580aaee0431a1f5151ac87a4755c95d4045168efb9624f44a558"
|
|
4958
4958
|
},
|
|
4959
4959
|
{
|
|
4960
4960
|
"path": "skills/loom-retire/.loom-runtime/shared/scripts/loom_init.py",
|
|
@@ -5568,13 +5568,13 @@
|
|
|
5568
5568
|
},
|
|
5569
5569
|
{
|
|
5570
5570
|
"path": "skills/loom-review/.loom-runtime/shared/scripts/loom_check.py",
|
|
5571
|
-
"bytes":
|
|
5572
|
-
"sha256": "
|
|
5571
|
+
"bytes": 326062,
|
|
5572
|
+
"sha256": "984cb68a9c5c95e268810b1a6a3c90590bb410b399b2d7ea60efe3da5c377689"
|
|
5573
5573
|
},
|
|
5574
5574
|
{
|
|
5575
5575
|
"path": "skills/loom-review/.loom-runtime/shared/scripts/loom_flow.py",
|
|
5576
|
-
"bytes":
|
|
5577
|
-
"sha256": "
|
|
5576
|
+
"bytes": 322554,
|
|
5577
|
+
"sha256": "02f9b19b65ad580aaee0431a1f5151ac87a4755c95d4045168efb9624f44a558"
|
|
5578
5578
|
},
|
|
5579
5579
|
{
|
|
5580
5580
|
"path": "skills/loom-review/.loom-runtime/shared/scripts/loom_init.py",
|
|
@@ -6188,13 +6188,13 @@
|
|
|
6188
6188
|
},
|
|
6189
6189
|
{
|
|
6190
6190
|
"path": "skills/loom-spec-review/.loom-runtime/shared/scripts/loom_check.py",
|
|
6191
|
-
"bytes":
|
|
6192
|
-
"sha256": "
|
|
6191
|
+
"bytes": 326062,
|
|
6192
|
+
"sha256": "984cb68a9c5c95e268810b1a6a3c90590bb410b399b2d7ea60efe3da5c377689"
|
|
6193
6193
|
},
|
|
6194
6194
|
{
|
|
6195
6195
|
"path": "skills/loom-spec-review/.loom-runtime/shared/scripts/loom_flow.py",
|
|
6196
|
-
"bytes":
|
|
6197
|
-
"sha256": "
|
|
6196
|
+
"bytes": 322554,
|
|
6197
|
+
"sha256": "02f9b19b65ad580aaee0431a1f5151ac87a4755c95d4045168efb9624f44a558"
|
|
6198
6198
|
},
|
|
6199
6199
|
{
|
|
6200
6200
|
"path": "skills/loom-spec-review/.loom-runtime/shared/scripts/loom_init.py",
|
|
@@ -2534,6 +2534,16 @@ def check_daily_execution_cli(root: Path) -> list[Failure]:
|
|
|
2534
2534
|
],
|
|
2535
2535
|
{"pass"},
|
|
2536
2536
|
),
|
|
2537
|
+
(
|
|
2538
|
+
"adopt-verify",
|
|
2539
|
+
["python3", "tools/loom_flow.py", "adopt", "verify", "--target", "examples/new-project", "--item", "INIT-0001"],
|
|
2540
|
+
{"pass"},
|
|
2541
|
+
),
|
|
2542
|
+
(
|
|
2543
|
+
"carrier-refresh",
|
|
2544
|
+
["python3", "tools/loom_flow.py", "carrier", "refresh", "--target", "examples/new-project", "--item", "INIT-0001", "--dry-run"],
|
|
2545
|
+
{"pass"},
|
|
2546
|
+
),
|
|
2537
2547
|
(
|
|
2538
2548
|
"governance-profile-status",
|
|
2539
2549
|
["python3", "tools/loom_flow.py", "governance-profile", "status", "--target", "examples/new-project"],
|
|
@@ -2798,6 +2808,28 @@ def check_daily_execution_cli(root: Path) -> list[Failure]:
|
|
|
2798
2808
|
context="`runtime-parity validate`",
|
|
2799
2809
|
payload=payload,
|
|
2800
2810
|
)
|
|
2811
|
+
if label == "adopt-verify":
|
|
2812
|
+
if payload.get("command") != "adopt" or payload.get("operation") != "verify":
|
|
2813
|
+
failures.append(Failure("daily-execution-cli", "`adopt verify` must report command/operation"))
|
|
2814
|
+
if payload.get("schema_version") != "loom-adoption-verify/v1":
|
|
2815
|
+
failures.append(Failure("daily-execution-cli", "`adopt verify` must report schema v1"))
|
|
2816
|
+
roundtrip = payload.get("producer_consumer_roundtrip")
|
|
2817
|
+
if not isinstance(roundtrip, dict):
|
|
2818
|
+
failures.append(Failure("daily-execution-cli", "`adopt verify` must include producer_consumer_roundtrip"))
|
|
2819
|
+
else:
|
|
2820
|
+
consumer = roundtrip.get("consumer")
|
|
2821
|
+
bypass = roundtrip.get("bypass_check")
|
|
2822
|
+
if not isinstance(consumer, dict) or consumer.get("result") != "pass":
|
|
2823
|
+
failures.append(Failure("daily-execution-cli", "`adopt verify` generated body must pass consumer validation"))
|
|
2824
|
+
if not isinstance(bypass, dict) or bypass.get("result") != "pass":
|
|
2825
|
+
failures.append(Failure("daily-execution-cli", "`adopt verify` must prove required section deletion blocks"))
|
|
2826
|
+
if label == "carrier-refresh":
|
|
2827
|
+
if payload.get("command") != "carrier" or payload.get("operation") != "refresh":
|
|
2828
|
+
failures.append(Failure("daily-execution-cli", "`carrier refresh` must report command/operation"))
|
|
2829
|
+
if payload.get("schema_version") != "loom-carrier-refresh/v1":
|
|
2830
|
+
failures.append(Failure("daily-execution-cli", "`carrier refresh` must report schema v1"))
|
|
2831
|
+
if not isinstance(payload.get("actions"), list):
|
|
2832
|
+
failures.append(Failure("daily-execution-cli", "`carrier refresh` must include actions"))
|
|
2801
2833
|
if label in {"governance-profile-status", "governance-profile-upgrade-plan"}:
|
|
2802
2834
|
if payload.get("command") != "governance-profile":
|
|
2803
2835
|
failures.append(Failure("daily-execution-cli", f"`{label}` must report `command: governance-profile`"))
|
|
@@ -6431,6 +6463,43 @@ def check_adversarial_adoption_fixture(root: Path) -> list[Failure]:
|
|
|
6431
6463
|
elif payload.get("result") != "block":
|
|
6432
6464
|
failures.append(Failure("adversarial-adoption", "runtime provenance drift must block runtime-parity"))
|
|
6433
6465
|
|
|
6466
|
+
carrier_refresh_target = base / "carrier-refresh"
|
|
6467
|
+
shutil.copytree(baseline, carrier_refresh_target)
|
|
6468
|
+
carrier_manifest_path = carrier_refresh_target / ".loom/bootstrap/manifest.json"
|
|
6469
|
+
carrier_manifest = load_json_file(carrier_manifest_path)
|
|
6470
|
+
carrier_artifacts = carrier_manifest.get("artifacts") if isinstance(carrier_manifest, dict) else []
|
|
6471
|
+
if isinstance(carrier_artifacts, list):
|
|
6472
|
+
for artifact in carrier_artifacts:
|
|
6473
|
+
if isinstance(artifact, dict) and artifact.get("path") == ".loom/bin/loom_flow.py":
|
|
6474
|
+
artifact["sha256"] = "1" * 64
|
|
6475
|
+
break
|
|
6476
|
+
write_json(carrier_manifest_path, carrier_manifest)
|
|
6477
|
+
dry_run_payload, dry_run_error = load_command_json(
|
|
6478
|
+
root,
|
|
6479
|
+
["python3", "tools/loom_flow.py", "carrier", "refresh", "--target", str(carrier_refresh_target), "--dry-run"],
|
|
6480
|
+
)
|
|
6481
|
+
if dry_run_error:
|
|
6482
|
+
failures.append(Failure("adversarial-adoption", f"carrier refresh dry-run sample failed: {dry_run_error}"))
|
|
6483
|
+
else:
|
|
6484
|
+
refresh_needed = dry_run_payload.get("refresh_needed")
|
|
6485
|
+
if dry_run_payload.get("result") != "pass" or not isinstance(refresh_needed, list) or not refresh_needed:
|
|
6486
|
+
failures.append(Failure("adversarial-adoption", "carrier refresh dry-run must report runtime provenance refresh-needed"))
|
|
6487
|
+
write_payload, write_error = load_command_json(
|
|
6488
|
+
root,
|
|
6489
|
+
["python3", "tools/loom_flow.py", "carrier", "refresh", "--target", str(carrier_refresh_target), "--write"],
|
|
6490
|
+
)
|
|
6491
|
+
if write_error:
|
|
6492
|
+
failures.append(Failure("adversarial-adoption", f"carrier refresh write sample failed: {write_error}"))
|
|
6493
|
+
else:
|
|
6494
|
+
after_payload, after_error = load_command_json(
|
|
6495
|
+
root,
|
|
6496
|
+
["python3", "tools/loom_flow.py", "carrier", "refresh", "--target", str(carrier_refresh_target), "--dry-run"],
|
|
6497
|
+
)
|
|
6498
|
+
if after_error:
|
|
6499
|
+
failures.append(Failure("adversarial-adoption", f"carrier refresh after-write sample failed: {after_error}"))
|
|
6500
|
+
elif after_payload.get("refresh_needed"):
|
|
6501
|
+
failures.append(Failure("adversarial-adoption", "carrier refresh --write must clear runtime provenance drift"))
|
|
6502
|
+
|
|
6434
6503
|
rollover_target = base / "active-rollover"
|
|
6435
6504
|
shutil.copytree(baseline, rollover_target)
|
|
6436
6505
|
payload, error = load_command_json(
|
|
@@ -6543,15 +6612,20 @@ def check_node_installer(root: Path) -> list[Failure]:
|
|
|
6543
6612
|
["npm", "test"],
|
|
6544
6613
|
["npm", "pack", "--dry-run"],
|
|
6545
6614
|
)
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6615
|
+
with tempfile.TemporaryDirectory(prefix="loom-check-npm-cache-") as cache_dir:
|
|
6616
|
+
npm_env = {
|
|
6617
|
+
"npm_config_cache": cache_dir,
|
|
6618
|
+
"NPM_CONFIG_CACHE": cache_dir,
|
|
6619
|
+
}
|
|
6620
|
+
for args in commands:
|
|
6621
|
+
try:
|
|
6622
|
+
result = run_command(root, args, cwd=package_root, env=npm_env, timeout_seconds=300)
|
|
6623
|
+
except subprocess.TimeoutExpired:
|
|
6624
|
+
failures.append(Failure(category, f"`{' '.join(args)}` timed out"))
|
|
6625
|
+
continue
|
|
6626
|
+
if result.returncode != 0:
|
|
6627
|
+
detail = result.stderr.strip() or result.stdout.strip() or "command failed without output"
|
|
6628
|
+
failures.append(Failure(category, f"`{' '.join(args)}` failed: {detail}"))
|
|
6555
6629
|
return failures
|
|
6556
6630
|
|
|
6557
6631
|
|