cornfield 0.34.3 → 0.35.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.
@@ -50,6 +50,16 @@
50
50
  --corn-bad: #fca5a5;
51
51
  --corn-info: #7dd3fc;
52
52
  --corn-ok-soft: color-mix(in srgb, var(--corn-ok) 15%, transparent);
53
+ /* An agent run's seven states, each its own colour for a theme to set (a pill also has a word and an icon, so none is told by colour alone).
54
+ They follow the status colours above in the light level too; a theme that sets one sets it for both levels, or leaves the alias. */
55
+ --corn-run-requested: var(--corn-text-3);
56
+ --corn-run-claimed: var(--corn-info);
57
+ --corn-run-working: var(--corn-info);
58
+ --corn-run-waiting: var(--corn-warn);
59
+ --corn-run-waiting-ink: var(--corn-ground);
60
+ --corn-run-done: var(--corn-ok);
61
+ --corn-run-failed: var(--corn-bad);
62
+ --corn-run-stopped: var(--corn-text-2);
53
63
 
54
64
  /* Diff: what a proposal adds, changes, removes and edits (the map draws the same four) */
55
65
  --corn-added: #2dd4bf;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cornfield",
3
- "version": "0.34.3",
3
+ "version": "0.35.0",
4
4
  "description": "A self-hostable dev dashboard with the topology map at its centre: proposals on the map, scenarios, outages and what-if edits, for any repo.",
5
5
  "license": "MIT",
6
6
  "author": "popcorn245 (https://github.com/popcorn245)",
@@ -149,7 +149,7 @@ export function errorFor(forge, status, body, rate, what) {
149
149
  if (status >= 300 && status < 400) return new ForgeError(`${forge} says ${what} has moved; check forge.repo in cornfield.config.js.`, { ...at, code: 'not-found' });
150
150
  if (status === 401) return new ForgeError(`${forge} did not accept the sign-in; sign in again.`, { ...at, code: 'unauthorized' });
151
151
  if (status === 403) return new ForgeError(`${forge} does not let this sign-in do that to ${what}.${theirs}`, { ...at, code: 'forbidden' });
152
- if (status === 404) return new ForgeError(`${forge} has no ${what}, or this sign-in cannot see it.`, { ...at, code: 'not-found' });
152
+ if (status === 404) return new ForgeError(`${forge} could not find ${what}, or this sign-in cannot see it.`, { ...at, code: 'not-found' });
153
153
  if (status === 405 || status === 409) return new ForgeError(`${forge} refused: ${what} cannot be changed that way now.${theirs}`, { ...at, code: 'conflict' });
154
154
  if (status === 400 || status === 422) return new ForgeError(`${forge} did not accept the request for ${what}.${theirs}`, { ...at, code: 'invalid' });
155
155
  return new ForgeError(`${forge} could not answer for ${what} (HTTP ${status}); try again in a minute.`, { ...at, code: 'unavailable' });