@fusion.dev/helix 0.60.0 → 0.61.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.
@@ -80373,11 +80373,8 @@
80373
80373
  {
80374
80374
  "kind": "variable",
80375
80375
  "name": "ORB_STATES",
80376
- "type": {
80377
- "text": "[\n 'waiting',\n 'connecting',\n 'thinking',\n 'fetching',\n 'listening',\n 'working',\n 'done',\n]"
80378
- },
80379
- "default": "[ 'waiting', 'connecting', 'thinking', 'fetching', 'listening', 'working', 'done', ]",
80380
- "description": "The states an orb can be in, in the order a task tends to pass through them.\n\nExported so the component can validate an attribute against the same list the\ngenerator reads, rather than keeping a second copy that drifts."
80376
+ "default": "Object.keys(ORDER)",
80377
+ "description": "The same states as a list, in that order.\n\nExported so the component can validate an attribute against one list rather\nthan a second copy that drifts. String keys come back in insertion order,\nwhich the object above is written in."
80381
80378
  },
80382
80379
  {
80383
80380
  "kind": "variable",
@@ -1,12 +1,23 @@
1
1
  /**
2
- * The states an orb can be in, in the order a task tends to pass through them.
2
+ * What the agent is doing.
3
3
  *
4
- * Exported so the component can validate an attribute against the same list the
5
- * generator reads, rather than keeping a second copy that drifts.
4
+ * **Written out rather than derived from the array below**, which is the other
5
+ * way round from where this started. The manifest records a property's type as
6
+ * the text somebody wrote, so `(typeof ORB_STATES)[number]` reached it as a name
7
+ * with no values in it and the reference page listed none: a reader was told the
8
+ * attribute takes an `OrbState` and left to find out what one is. A union on one
9
+ * line is what every reader of this repository's sources can resolve, the `axes`
10
+ * rule included, and no type system is needed to do it.
6
11
  */
7
- export declare const ORB_STATES: readonly ['waiting', 'connecting', 'thinking', 'fetching', 'listening', 'working', 'done'];
8
- /** What the agent is doing. */
9
- export type OrbState = (typeof ORB_STATES)[number];
12
+ export type OrbState = 'waiting' | 'connecting' | 'thinking' | 'fetching' | 'listening' | 'working' | 'done';
13
+ /**
14
+ * The same states as a list, in that order.
15
+ *
16
+ * Exported so the component can validate an attribute against one list rather
17
+ * than a second copy that drifts. String keys come back in insertion order,
18
+ * which the object above is written in.
19
+ */
20
+ export declare const ORB_STATES: readonly OrbState[];
10
21
  /**
11
22
  * The numbers one state is made of.
12
23
  *
@@ -1,12 +1,13 @@
1
- export const ORB_STATES = [
2
- 'waiting',
3
- 'connecting',
4
- 'thinking',
5
- 'fetching',
6
- 'listening',
7
- 'working',
8
- 'done',
9
- ];
1
+ const ORDER = {
2
+ connecting: 1,
3
+ done: 6,
4
+ fetching: 3,
5
+ listening: 4,
6
+ thinking: 2,
7
+ waiting: 0,
8
+ working: 5,
9
+ };
10
+ export const ORB_STATES = Object.keys(ORDER);
10
11
  export const ORB_PARAMS = {
11
12
  connecting: {
12
13
  belt: 0.32,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix",
3
3
  "description": "Styled component tier. Extends the headless tier with token-driven presentation.",
4
- "version": "0.60.0",
4
+ "version": "0.61.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -47,14 +47,14 @@
47
47
  },
48
48
  "bugs": "https://github.com/project-fusion/fusion/issues",
49
49
  "dependencies": {
50
- "@fusion.dev/helix-core": "0.60.0",
51
- "@fusion.dev/helix-headless": "0.60.0",
52
- "@fusion.dev/helix-styles": "0.60.0"
50
+ "@fusion.dev/helix-core": "0.61.0",
51
+ "@fusion.dev/helix-headless": "0.61.0",
52
+ "@fusion.dev/helix-styles": "0.61.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@custom-elements-manifest/analyzer": "^0.11.0",
56
- "@fusion.dev/helix-cem": "0.60.0",
57
- "@fusion.dev/helix-testing": "0.60.0",
56
+ "@fusion.dev/helix-cem": "0.61.0",
57
+ "@fusion.dev/helix-testing": "0.61.0",
58
58
  "@fusion.dev/scripts": "0.0.0-dev",
59
59
  "@happy-dom/global-registrator": "^20.0.0",
60
60
  "@lit-labs/ssr": "^4.1.0",