@giamme/forge 0.13.1 → 0.14.0

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/SKILL.md +17 -11
  3. package/VERSION +1 -1
  4. package/docs/artifacts.md +1 -0
  5. package/docs/commands.md +121 -7
  6. package/docs/development.md +3 -0
  7. package/docs/reviews.md +2 -0
  8. package/docs/troubleshooting.md +5 -1
  9. package/forge +28 -1
  10. package/package.json +1 -1
  11. package/references/dataset.md +3 -1
  12. package/references/decompose.md +199 -61
  13. package/references/runtime.md +29 -0
  14. package/references/ui.md +10 -0
  15. package/scripts/forge-compare.py +491 -0
  16. package/scripts/forge-config.py +3 -3
  17. package/scripts/forge-contract.py +34 -8
  18. package/scripts/forge-control.py +105 -13
  19. package/scripts/forge-dispatch.sh +9 -5
  20. package/scripts/forge-jev-options.sh +17 -4
  21. package/scripts/forge-ledger.py +387 -0
  22. package/scripts/forge-lib-plans.sh +11 -2
  23. package/scripts/forge-lib-task.sh +390 -28
  24. package/scripts/forge-parallel-options.sh +20 -4
  25. package/scripts/forge-parallel.sh +116 -12
  26. package/scripts/forge-plan-check.py +68 -3
  27. package/scripts/forge-pr.py +276 -0
  28. package/scripts/forge-route.py +350 -34
  29. package/scripts/forge-runs.py +18 -1
  30. package/scripts/forge-runtime.py +23 -7
  31. package/scripts/forge-schedule.py +303 -46
  32. package/scripts/forge-verify-failed.py +111 -0
  33. package/scripts/forge-watch.py +372 -0
  34. package/scripts/forge_dataset/harvest.py +3 -1
  35. package/scripts/forge_fractal/cli.py +23 -6
  36. package/scripts/forge_infra.py +274 -0
  37. package/scripts/forge_jev/client.py +13 -9
  38. package/ui/docs/api.md +51 -8
  39. package/ui/forge_ui/export.py +6 -2
  40. package/ui/forge_ui/reader.py +172 -6
  41. package/ui/forge_ui/static/app.js +2 -2
  42. package/ui/forge_ui/static/checksview.js +20 -7
  43. package/ui/forge_ui/static/controls.js +6 -3
  44. package/ui/forge_ui/static/panel.js +69 -4
  45. package/ui/forge_ui/static/runmodel.js +30 -4
  46. package/ui/forge_ui/static/scene3d.js +3 -2
  47. package/ui/forge_ui/static/style.css +11 -4
@@ -42,7 +42,7 @@
42
42
  --lamp-green: light-dark(#1d7a39, #5bd57d);
43
43
  --lamp-amber: light-dark(#9c6c00, #f4c443);
44
44
  --lamp-red: light-dark(#bf3127, #ff5f53);
45
- --lamp-wait: light-dark(#0b7285, #5fd0e4); /* waiting for you (NEEDS_INPUT): stopped, not failed */
45
+ --lamp-wait: light-dark(#0b7285, #5fd0e4); /* waiting for you (NEEDS_INPUT, NEEDS_DECISION): stopped, not failed */
46
46
  --lamp-edge: light-dark(rgb(0 0 0 / .18), rgb(0 0 0 / .4));
47
47
  /* the same lamps lit on the 3D plate: on a pale panel a lit lamp is saturated, not darkened for text */
48
48
  --lit-green: light-dark(#2fae55, #5bd57d);
@@ -93,16 +93,16 @@
93
93
  :root[data-theme=dark] { color-scheme: dark; }
94
94
 
95
95
  /* status: the lamp behind each forge state. One meaning each (--st; --st-lit on the 3D plate): four lamps, and the
96
- waiting lamp for a task that waits for the user (NEEDS_INPUT, and an integration that only waits for answers).
96
+ waiting lamp for a task that waits for the user (NEEDS_INPUT, NEEDS_DECISION, and an integration that only waits for the user).
97
97
  A hollow lamp is that lamp's family but not its plain case: passed without a merge, stopped, failed outside the code,
98
98
  an outdated review, waiting for you */
99
99
  .st-merged, .st-pass, .st-accepted, .st-nochanges { --st: var(--lamp-green); --st-lit: var(--lit-green); }
100
100
  .st-running, .st-interrupted { --st: var(--lamp-amber); --st-lit: var(--lit-amber); }
101
101
  .st-pending, .st-none, .st-unknown, .st-invalidated, .st-outdated { --st: var(--lamp-off); --st-lit: var(--lamp-off); }
102
102
  .st-fail, .st-error, .st-conflict, .st-infra, .st-timeout, .st-blocked, .st-bounced, .st-incomplete { --st: var(--lamp-red); --st-lit: var(--lit-red); }
103
- .st-needs_input, .st-waiting { --st: var(--lamp-wait); --st-lit: var(--lit-wait); }
103
+ .st-needs_input, .st-needs_decision, .st-waiting { --st: var(--lamp-wait); --st-lit: var(--lit-wait); }
104
104
  [class^="st-"], [class*=" st-"] { --st-fill: var(--st); --st-ring: var(--lamp-edge); }
105
- .st-accepted, .st-nochanges, .st-interrupted, .st-infra, .st-timeout, .st-blocked, .st-outdated, .st-needs_input, .st-waiting { --st-fill: transparent; --st-ring: var(--st); }
105
+ .st-accepted, .st-nochanges, .st-interrupted, .st-infra, .st-timeout, .st-blocked, .st-outdated, .st-needs_input, .st-needs_decision, .st-waiting { --st-fill: transparent; --st-ring: var(--st); }
106
106
  /* verification lanes: flaky passed on a rerun (amber, hollow), known passed with only baseline failures (green, hollow) */
107
107
  .st-flaky { --st: var(--lamp-amber); --st-lit: var(--lit-amber); --st-fill: transparent; --st-ring: var(--st); }
108
108
  .st-known { --st: var(--lamp-green); --st-lit: var(--lit-green); --st-fill: transparent; --st-ring: var(--st); }
@@ -583,6 +583,12 @@ ul.plain li.current { font-weight: 650; }
583
583
  pre.cmd { max-height: none; }
584
584
  .waiting-cmd { display: flex; align-items: flex-start; gap: var(--s-2); }
585
585
  .waiting-cmd pre { flex: 1; min-width: 0; }
586
+ /* a task that waits for a decision (panel.js decisionSection): its reasons as the heading, and its review ledger */
587
+ .insp-section h3.decision-reasons { white-space: normal; }
588
+ .ledger-wrap { overflow-x: auto; margin: var(--s-2) 0; }
589
+ .ledger th, .ledger td { padding: var(--s-1) var(--s-2) var(--s-1) 0; }
590
+ .ledger td.num { font-variant-numeric: tabular-nums; }
591
+ .ledger tr.failed td:first-child { box-shadow: inset 3px 0 0 var(--lamp-red); }
586
592
  /* the verification inspector (verifyview.js): live state, failing tests, lanes and their logs */
587
593
  .vfy-num { font-variant-numeric: tabular-nums; }
588
594
  .vfy-live { margin: var(--s-3) 0 0; padding: var(--s-3); border-radius: var(--r-key); background: var(--module-2); box-shadow: inset 0 0 0 1px var(--rule); }
@@ -643,6 +649,7 @@ pre.cmd { max-height: none; }
643
649
  .now-live .vfy-idle { margin: 0; }
644
650
  .now-live .vfy-idle[hidden] { display: none; }
645
651
  .now-split summary { cursor: pointer; font-size: var(--t-xs); color: var(--muted); }
652
+ .pause-needs { display: block; flex-basis: 100%; } /* a pause's "needs you" line stands on its own */
646
653
  .checks-of { margin: 0 0 6px 2px; padding-left: 10px; border-left: 1px solid var(--rule-2); }
647
654
  .checks { gap: 2px; margin: 2px 0; }
648
655
  /* a check: its lamp, kind and command on one line, what it printed under them */