@aui.io/apollo 0.1.11 → 0.1.13

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 (160) hide show
  1. package/node_modules/@aui.io/apollo-cli/package.json +3 -3
  2. package/node_modules/@aui.io/apollo-core/package.json +1 -1
  3. package/node_modules/@aui.io/apollo-tui/dist/src/actions/ActionPalette.d.ts +3 -1
  4. package/node_modules/@aui.io/apollo-tui/dist/src/actions/ActionPalette.js +7 -2
  5. package/node_modules/@aui.io/apollo-tui/dist/src/actions/ActionPalette.js.map +1 -1
  6. package/node_modules/@aui.io/apollo-tui/dist/src/activity/ActivityDrawer.d.ts +3 -1
  7. package/node_modules/@aui.io/apollo-tui/dist/src/activity/ActivityDrawer.js +8 -3
  8. package/node_modules/@aui.io/apollo-tui/dist/src/activity/ActivityDrawer.js.map +1 -1
  9. package/node_modules/@aui.io/apollo-tui/dist/src/activity/ActivitySummary.js.map +1 -1
  10. package/node_modules/@aui.io/apollo-tui/dist/src/activity/operationStore.js +4 -3
  11. package/node_modules/@aui.io/apollo-tui/dist/src/activity/operationStore.js.map +1 -1
  12. package/node_modules/@aui.io/apollo-tui/dist/src/author/AuthorHome.d.ts +12 -4
  13. package/node_modules/@aui.io/apollo-tui/dist/src/author/AuthorHome.js +67 -9
  14. package/node_modules/@aui.io/apollo-tui/dist/src/author/AuthorHome.js.map +1 -1
  15. package/node_modules/@aui.io/apollo-tui/dist/src/author/DiffView.d.ts +7 -1
  16. package/node_modules/@aui.io/apollo-tui/dist/src/author/DiffView.js +35 -8
  17. package/node_modules/@aui.io/apollo-tui/dist/src/author/DiffView.js.map +1 -1
  18. package/node_modules/@aui.io/apollo-tui/dist/src/author/SessionPane.d.ts +9 -2
  19. package/node_modules/@aui.io/apollo-tui/dist/src/author/SessionPane.js +24 -5
  20. package/node_modules/@aui.io/apollo-tui/dist/src/author/SessionPane.js.map +1 -1
  21. package/node_modules/@aui.io/apollo-tui/dist/src/author/ValidationView.js +2 -1
  22. package/node_modules/@aui.io/apollo-tui/dist/src/author/ValidationView.js.map +1 -1
  23. package/node_modules/@aui.io/apollo-tui/dist/src/author/VersionsView.js +4 -3
  24. package/node_modules/@aui.io/apollo-tui/dist/src/author/VersionsView.js.map +1 -1
  25. package/node_modules/@aui.io/apollo-tui/dist/src/author/data.d.ts +9 -0
  26. package/node_modules/@aui.io/apollo-tui/dist/src/author/data.js +31 -1
  27. package/node_modules/@aui.io/apollo-tui/dist/src/author/data.js.map +1 -1
  28. package/node_modules/@aui.io/apollo-tui/dist/src/author/session.d.ts +10 -1
  29. package/node_modules/@aui.io/apollo-tui/dist/src/author/session.js +19 -6
  30. package/node_modules/@aui.io/apollo-tui/dist/src/author/session.js.map +1 -1
  31. package/node_modules/@aui.io/apollo-tui/dist/src/context/ContextSwitcher.d.ts +3 -1
  32. package/node_modules/@aui.io/apollo-tui/dist/src/context/ContextSwitcher.js +7 -2
  33. package/node_modules/@aui.io/apollo-tui/dist/src/context/ContextSwitcher.js.map +1 -1
  34. package/node_modules/@aui.io/apollo-tui/dist/src/index.d.ts +4 -3
  35. package/node_modules/@aui.io/apollo-tui/dist/src/index.js +4 -3
  36. package/node_modules/@aui.io/apollo-tui/dist/src/index.js.map +1 -1
  37. package/node_modules/@aui.io/apollo-tui/dist/src/lib/actions.d.ts +3 -0
  38. package/node_modules/@aui.io/apollo-tui/dist/src/lib/actions.js +3 -0
  39. package/node_modules/@aui.io/apollo-tui/dist/src/lib/actions.js.map +1 -1
  40. package/node_modules/@aui.io/apollo-tui/dist/src/lib/jsonview.d.ts +31 -0
  41. package/node_modules/@aui.io/apollo-tui/dist/src/lib/jsonview.js +114 -0
  42. package/node_modules/@aui.io/apollo-tui/dist/src/lib/jsonview.js.map +1 -0
  43. package/node_modules/@aui.io/apollo-tui/dist/src/lib/sheet.js +10 -7
  44. package/node_modules/@aui.io/apollo-tui/dist/src/lib/sheet.js.map +1 -1
  45. package/node_modules/@aui.io/apollo-tui/dist/src/opentui-app.js +200 -90
  46. package/node_modules/@aui.io/apollo-tui/dist/src/opentui-app.js.map +1 -1
  47. package/node_modules/@aui.io/apollo-tui/dist/src/shell/Breadcrumb.d.ts +5 -2
  48. package/node_modules/@aui.io/apollo-tui/dist/src/shell/Breadcrumb.js +10 -4
  49. package/node_modules/@aui.io/apollo-tui/dist/src/shell/Breadcrumb.js.map +1 -1
  50. package/node_modules/@aui.io/apollo-tui/dist/src/shell/FooterHints.js +3 -2
  51. package/node_modules/@aui.io/apollo-tui/dist/src/shell/FooterHints.js.map +1 -1
  52. package/node_modules/@aui.io/apollo-tui/dist/src/shell/ModeNav.d.ts +2 -1
  53. package/node_modules/@aui.io/apollo-tui/dist/src/shell/ModeNav.js +29 -3
  54. package/node_modules/@aui.io/apollo-tui/dist/src/shell/ModeNav.js.map +1 -1
  55. package/node_modules/@aui.io/apollo-tui/dist/src/talk/Composer.d.ts +3 -1
  56. package/node_modules/@aui.io/apollo-tui/dist/src/talk/Composer.js +4 -3
  57. package/node_modules/@aui.io/apollo-tui/dist/src/talk/Composer.js.map +1 -1
  58. package/node_modules/@aui.io/apollo-tui/dist/src/talk/InspectorPane.d.ts +8 -3
  59. package/node_modules/@aui.io/apollo-tui/dist/src/talk/InspectorPane.js +7 -5
  60. package/node_modules/@aui.io/apollo-tui/dist/src/talk/InspectorPane.js.map +1 -1
  61. package/node_modules/@aui.io/apollo-tui/dist/src/talk/TalkView.d.ts +15 -2
  62. package/node_modules/@aui.io/apollo-tui/dist/src/talk/TalkView.js +22 -5
  63. package/node_modules/@aui.io/apollo-tui/dist/src/talk/TalkView.js.map +1 -1
  64. package/node_modules/@aui.io/apollo-tui/dist/src/talk/ThreadsPane.d.ts +5 -2
  65. package/node_modules/@aui.io/apollo-tui/dist/src/talk/ThreadsPane.js +10 -4
  66. package/node_modules/@aui.io/apollo-tui/dist/src/talk/ThreadsPane.js.map +1 -1
  67. package/node_modules/@aui.io/apollo-tui/dist/src/talk/data.d.ts +14 -3
  68. package/node_modules/@aui.io/apollo-tui/dist/src/talk/data.js +12 -2
  69. package/node_modules/@aui.io/apollo-tui/dist/src/talk/data.js.map +1 -1
  70. package/node_modules/@aui.io/apollo-tui/dist/src/theme/glyphs.d.ts +52 -0
  71. package/node_modules/@aui.io/apollo-tui/dist/src/theme/glyphs.js +76 -0
  72. package/node_modules/@aui.io/apollo-tui/dist/src/theme/glyphs.js.map +1 -0
  73. package/node_modules/@aui.io/apollo-tui/dist/src/theme/syntax.d.ts +20 -0
  74. package/node_modules/@aui.io/apollo-tui/dist/src/theme/syntax.js +54 -0
  75. package/node_modules/@aui.io/apollo-tui/dist/src/theme/syntax.js.map +1 -0
  76. package/node_modules/@aui.io/apollo-tui/dist/src/theme/tokens.d.ts +26 -8
  77. package/node_modules/@aui.io/apollo-tui/dist/src/theme/tokens.js +46 -8
  78. package/node_modules/@aui.io/apollo-tui/dist/src/theme/tokens.js.map +1 -1
  79. package/node_modules/@aui.io/apollo-tui/dist/src/ui/JsonPane.d.ts +12 -0
  80. package/node_modules/@aui.io/apollo-tui/dist/src/ui/JsonPane.js +22 -0
  81. package/node_modules/@aui.io/apollo-tui/dist/src/ui/JsonPane.js.map +1 -0
  82. package/node_modules/@aui.io/apollo-tui/dist/src/ui/PickerPane.d.ts +3 -1
  83. package/node_modules/@aui.io/apollo-tui/dist/src/ui/PickerPane.js +8 -3
  84. package/node_modules/@aui.io/apollo-tui/dist/src/ui/PickerPane.js.map +1 -1
  85. package/node_modules/@aui.io/apollo-tui/dist/src/ui/SheetPane.js +3 -2
  86. package/node_modules/@aui.io/apollo-tui/dist/src/ui/SheetPane.js.map +1 -1
  87. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/LICENSE +21 -0
  88. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/README.md +269 -0
  89. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/debug/tree-sitter.cjs +4558 -0
  90. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/debug/tree-sitter.cjs.map +7 -0
  91. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/debug/tree-sitter.js +4516 -0
  92. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/debug/tree-sitter.js.map +7 -0
  93. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/debug/tree-sitter.wasm +0 -0
  94. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/debug/tree-sitter.wasm.map +31 -0
  95. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/alloc.c +48 -0
  96. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/alloc.h +41 -0
  97. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/array.h +291 -0
  98. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/atomic.h +68 -0
  99. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/clock.h +146 -0
  100. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/error_costs.h +11 -0
  101. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/get_changed_ranges.c +523 -0
  102. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/get_changed_ranges.h +36 -0
  103. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/host.h +21 -0
  104. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/language.c +293 -0
  105. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/language.h +293 -0
  106. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/length.h +52 -0
  107. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/lexer.c +483 -0
  108. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/lexer.h +54 -0
  109. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/lib.c +12 -0
  110. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/node.c +875 -0
  111. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/parser.c +2297 -0
  112. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/parser.h +286 -0
  113. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/point.h +48 -0
  114. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/query.c +4347 -0
  115. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/reduce_action.h +34 -0
  116. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/reusable_node.h +95 -0
  117. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/stack.c +912 -0
  118. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/stack.h +133 -0
  119. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/subtree.c +1034 -0
  120. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/subtree.h +399 -0
  121. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/tree-sitter.c +987 -0
  122. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/tree-sitter.cjs +2988 -0
  123. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/tree-sitter.wasm +0 -0
  124. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/tree-sitter.wasm.map +1 -0
  125. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/tree.c +170 -0
  126. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/tree.h +31 -0
  127. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/tree_cursor.c +716 -0
  128. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/tree_cursor.h +48 -0
  129. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/ts_assert.h +11 -0
  130. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/unicode.h +75 -0
  131. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/wasm_store.c +1937 -0
  132. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/lib/wasm_store.h +31 -0
  133. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/package.json +98 -0
  134. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/src/bindings.ts +26 -0
  135. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/src/constants.ts +133 -0
  136. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/src/index.ts +31 -0
  137. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/src/language.ts +291 -0
  138. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/src/lookahead_iterator.ts +75 -0
  139. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/src/marshal.ts +176 -0
  140. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/src/node.ts +646 -0
  141. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/src/parser.ts +325 -0
  142. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/src/query.ts +973 -0
  143. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/src/tree.ts +145 -0
  144. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/src/tree_cursor.ts +318 -0
  145. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/tree-sitter.cjs +4031 -0
  146. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/tree-sitter.cjs.map +7 -0
  147. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/tree-sitter.js +3980 -0
  148. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/tree-sitter.js.map +7 -0
  149. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/tree-sitter.wasm +0 -0
  150. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/tree-sitter.wasm.map +30 -0
  151. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/web-tree-sitter.d.ts +1030 -0
  152. package/node_modules/@aui.io/apollo-tui/node_modules/web-tree-sitter/web-tree-sitter.d.ts.map +56 -0
  153. package/node_modules/@aui.io/apollo-tui/package.json +6 -3
  154. package/package.json +7 -5
  155. package/node_modules/@aui.io/apollo-tui/dist/src/components/glyph.d.ts +0 -19
  156. package/node_modules/@aui.io/apollo-tui/dist/src/components/glyph.js +0 -41
  157. package/node_modules/@aui.io/apollo-tui/dist/src/components/glyph.js.map +0 -1
  158. package/node_modules/@aui.io/apollo-tui/dist/src/lib/attractor.d.ts +0 -82
  159. package/node_modules/@aui.io/apollo-tui/dist/src/lib/attractor.js +0 -231
  160. package/node_modules/@aui.io/apollo-tui/dist/src/lib/attractor.js.map +0 -1
@@ -0,0 +1,56 @@
1
+ {
2
+ "version": 3,
3
+ "file": "web-tree-sitter.d.ts",
4
+ "names": [
5
+ "Point",
6
+ "Range",
7
+ "Edit",
8
+ "ParseCallback",
9
+ "ProgressCallback",
10
+ "LogCallback",
11
+ "ParseOptions",
12
+ "ParseState",
13
+ "LANGUAGE_VERSION",
14
+ "MIN_COMPATIBLE_VERSION",
15
+ "Parser",
16
+ "LanguageMetadata",
17
+ "Language",
18
+ "Tree",
19
+ "Node",
20
+ "TreeCursor",
21
+ "QueryOptions",
22
+ "QueryState",
23
+ "QueryProperties",
24
+ "QueryPredicate",
25
+ "QueryCapture",
26
+ "QueryMatch",
27
+ "CaptureQuantifier",
28
+ "PredicateStep",
29
+ "CapturePredicateStep",
30
+ "StringPredicateStep",
31
+ "Query",
32
+ "LookaheadIterator"
33
+ ],
34
+ "sources": [
35
+ "src/constants.ts",
36
+ "src/parser.ts",
37
+ "src/language.ts",
38
+ "src/tree.ts",
39
+ "src/node.ts",
40
+ "src/tree_cursor.ts",
41
+ "src/query.ts",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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBCQNC,YAAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA0DZC,UAAUA;;;;;aAMfC,eAAeA;;;;kBAKVC,cAAcA;;;;;;;;;;kBAYdC,YAAYA;;;;;;;;;;;;;;;kBAqBZC,UAAUA;;;;;;;;;;;;;;;cA8BfC,iBAAiBA;;;;;;;;aAAjBA,iBAAiBA;;;;;;;;;;;;aAajBC,aAAaA;;;;;;WAORC,oBAAoBA;;;;;;;;;WAOpBC,mBAAmBA;;;;cAqUvBC,KAAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cChfLC,iBAAiBA",
55
+ "ignoreList": []
56
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aui.io/apollo-tui",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Interactive Apollo operator TUI built on OpenTUI",
5
5
  "type": "module",
6
6
  "engines": {
@@ -31,14 +31,17 @@
31
31
  "build": "tsc -p tsconfig.json",
32
32
  "lint": "eslint .",
33
33
  "test": "vitest run",
34
+ "test:render": "bun tests/render.check.tsx",
34
35
  "start": "node ./bin/apollo-tui.js"
35
36
  },
36
37
  "dependencies": {
37
- "@aui.io/apollo-core": "0.1.11",
38
+ "@aui.io/apollo-core": "0.1.13",
38
39
  "@opentui/core": "^0.1.63",
39
40
  "@opentui/react": "^0.1.63",
41
+ "diff": "8.0.2",
40
42
  "picocolors": "^1.1.1",
41
- "react": "^19.1.0"
43
+ "react": "^19.1.0",
44
+ "web-tree-sitter": "0.25.10"
42
45
  },
43
46
  "devDependencies": {
44
47
  "@eslint/js": "^9.39.5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aui.io/apollo",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Apollo operator console — CLI + interactive TUI",
5
5
  "type": "module",
6
6
  "engines": {
@@ -31,15 +31,17 @@
31
31
  "postpack": "node ./scripts/clean-bundle.mjs"
32
32
  },
33
33
  "dependencies": {
34
- "@aui.io/apollo-core": "0.1.11",
35
- "@aui.io/apollo-cli": "0.1.11",
36
- "@aui.io/apollo-tui": "0.1.11",
34
+ "@aui.io/apollo-core": "0.1.13",
35
+ "@aui.io/apollo-cli": "0.1.13",
36
+ "@aui.io/apollo-tui": "0.1.13",
37
37
  "picocolors": "^1.1.1",
38
38
  "yaml": "^2.9.0",
39
39
  "commander": "^14.0.3",
40
40
  "@opentui/core": "^0.1.63",
41
41
  "@opentui/react": "^0.1.63",
42
- "react": "^19.1.0"
42
+ "diff": "8.0.2",
43
+ "react": "^19.1.0",
44
+ "web-tree-sitter": "0.25.10"
43
45
  },
44
46
  "bundleDependencies": [
45
47
  "@aui.io/apollo-core",
@@ -1,19 +0,0 @@
1
- export interface GlyphOptions {
2
- reducedMotion?: boolean;
3
- /** Frame size in character cells (defaults: 14×7; compact accents use less). */
4
- width?: number;
5
- height?: number;
6
- /** Subtle typographic accent: thin outline, no node blobs or trails. */
7
- compact?: boolean;
8
- }
9
- /** Stateful glyph frame provider for Overview / demo. */
10
- export declare class GlyphController {
11
- private sim;
12
- private reduced;
13
- private trails;
14
- private readonly size;
15
- constructor(seed: string, options?: GlyphOptions);
16
- setWorking(working: boolean): void;
17
- frame(): string[];
18
- private pushTrail;
19
- }
@@ -1,41 +0,0 @@
1
- import { GlyphSimulator, IDLE_CONFIG, WORKING_CONFIG, prefersReducedMotion, renderGlyphFrame, } from "../lib/attractor.js";
2
- const TRAIL_FRAMES = 2;
3
- /** Stateful glyph frame provider for Overview / demo. */
4
- export class GlyphController {
5
- sim;
6
- reduced;
7
- trails = [];
8
- size;
9
- constructor(seed, options = {}) {
10
- this.sim = new GlyphSimulator(seed, IDLE_CONFIG);
11
- this.reduced = options.reducedMotion ?? prefersReducedMotion();
12
- this.size = {
13
- ...(options.width !== undefined ? { width: options.width } : {}),
14
- ...(options.height !== undefined ? { height: options.height } : {}),
15
- ...(options.compact !== undefined ? { compact: options.compact } : {}),
16
- };
17
- }
18
- setWorking(working) {
19
- const config = working ? WORKING_CONFIG : IDLE_CONFIG;
20
- this.sim.setConfig(config);
21
- }
22
- frame() {
23
- if (this.reduced) {
24
- return renderGlyphFrame([], { staticMode: true, ...this.size });
25
- }
26
- const nodes = this.sim.tick();
27
- const frame = renderGlyphFrame(nodes, {
28
- ...this.size,
29
- ...(this.size.compact ? {} : { trails: this.trails.flat() }),
30
- });
31
- if (!this.size.compact)
32
- this.pushTrail(nodes);
33
- return frame;
34
- }
35
- pushTrail(nodes) {
36
- this.trails.push(nodes.map((n) => ({ x: n.x, y: n.y })));
37
- if (this.trails.length > TRAIL_FRAMES)
38
- this.trails.shift();
39
- }
40
- }
41
- //# sourceMappingURL=glyph.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glyph.js","sourceRoot":"","sources":["../../../src/components/glyph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,gBAAgB,GAGjB,MAAM,qBAAqB,CAAC;AAW7B,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,yDAAyD;AACzD,MAAM,OAAO,eAAe;IAClB,GAAG,CAAiB;IACpB,OAAO,CAAU;IACjB,MAAM,GAAiC,EAAE,CAAC;IACjC,IAAI,CAAyD;IAE9E,YAAY,IAAY,EAAE,UAAwB,EAAE;QAClD,IAAI,CAAC,GAAG,GAAG,IAAI,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,aAAa,IAAI,oBAAoB,EAAE,CAAC;QAC/D,IAAI,CAAC,IAAI,GAAG;YACV,GAAG,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC,CA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AAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACzD,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,YAAY;YAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IAC7D,CAAC;CACF"}
@@ -1,82 +0,0 @@
1
- /**
2
- * Strange-attractor dynamics for the Apollo brand glyph — a thought-orb.
3
- *
4
- * Motion model: the orb is a rigid dotted sphere (Fibonacci lattice); the
5
- * attractor never displaces its points. It acts as the orb's nervous system —
6
- * - spin: yaw rate modulated by the attractor's x component
7
- * - tilt: nodding precession driven by the y component
8
- * - saccade: a critically damped rotation kick on lobe transitions
9
- * - breath: sub-pixel scale oscillation from the z component
10
- * The geometry is invariant (always the sphere); chaos only modulates the
11
- * parameters of controlled motion. Rendering uses Braille sub-pixels; only
12
- * the front hemisphere is drawn so it reads as a solid orb, not a dot cloud.
13
- */
14
- export interface Vec3 {
15
- x: number;
16
- y: number;
17
- z: number;
18
- }
19
- export interface AttractorConfig {
20
- /** Integration step; larger = more energetic ("working" state). */
21
- dt: number;
22
- /** Overall glyph size multiplier. */
23
- scale: number;
24
- /** Which attractor family to integrate. */
25
- kind: "thomas" | "lorenz";
26
- /** Base spin rate (rad/s) — the "control" component. */
27
- spin: number;
28
- /** How strongly the attractor's x modulates spin — the "chaos" component. */
29
- drive: number;
30
- /** Saccade amplitude (rad) kicked on attractor lobe flips. */
31
- saccadeKick: number;
32
- /** Breathing depth (relative scale amplitude). */
33
- breath: number;
34
- /** Tilt precession rate (rad/s) for the pseudo-3D tumble. */
35
- tilt: number;
36
- }
37
- export declare const IDLE_CONFIG: AttractorConfig;
38
- export declare const WORKING_CONFIG: AttractorConfig;
39
- /** Thomas' cyclically symmetric attractor — calm meanders, good for idle. */
40
- export declare function thomasStep(state: Vec3, dt: number, b?: number): Vec3;
41
- /** Classic Lorenz butterfly — more dramatic lobe flips. */
42
- export declare function lorenzStep(state: Vec3, dt: number, sigma?: number, rho?: number, beta?: number): Vec3;
43
- export declare function stepAttractor(state: Vec3, config: AttractorConfig): Vec3;
44
- /** Deterministic seed from an agent id (or any string). */
45
- export declare function seedFromString(input: string): Vec3;
46
- export interface GlyphNode {
47
- homeX: number;
48
- homeY: number;
49
- x: number;
50
- y: number;
51
- }
52
- export declare class GlyphSimulator {
53
- private state;
54
- private config;
55
- private theta;
56
- private phi;
57
- private saccade;
58
- private saccadeVel;
59
- private saccadeTarget;
60
- private lastLobe;
61
- constructor(seed?: string, config?: AttractorConfig);
62
- setConfig(config: AttractorConfig): void;
63
- tick(): GlyphNode[];
64
- }
65
- export interface GlyphFrameOptions {
66
- /** Frame width in character cells. */
67
- width?: number;
68
- /** Frame height in character cells. */
69
- height?: number;
70
- /** Render the resting orb (reduced motion). */
71
- staticMode?: boolean;
72
- /** Ghost dots from previous frames for motion-blur texture. */
73
- trails?: readonly {
74
- x: number;
75
- y: number;
76
- }[];
77
- /** Kept for API compatibility; orb dots are always single-dot. */
78
- compact?: boolean;
79
- }
80
- /** Render orb dots (unit space) onto a Braille sub-pixel character grid. */
81
- export declare function renderGlyphFrame(nodes: GlyphNode[], options?: GlyphFrameOptions): string[];
82
- export declare function prefersReducedMotion(): boolean;
@@ -1,231 +0,0 @@
1
- /**
2
- * Strange-attractor dynamics for the Apollo brand glyph — a thought-orb.
3
- *
4
- * Motion model: the orb is a rigid dotted sphere (Fibonacci lattice); the
5
- * attractor never displaces its points. It acts as the orb's nervous system —
6
- * - spin: yaw rate modulated by the attractor's x component
7
- * - tilt: nodding precession driven by the y component
8
- * - saccade: a critically damped rotation kick on lobe transitions
9
- * - breath: sub-pixel scale oscillation from the z component
10
- * The geometry is invariant (always the sphere); chaos only modulates the
11
- * parameters of controlled motion. Rendering uses Braille sub-pixels; only
12
- * the front hemisphere is drawn so it reads as a solid orb, not a dot cloud.
13
- */
14
- export const IDLE_CONFIG = {
15
- dt: 0.03,
16
- scale: 1,
17
- kind: "thomas",
18
- spin: 0.55,
19
- drive: 0.45,
20
- saccadeKick: 0.85,
21
- breath: 0.05,
22
- tilt: 0.65,
23
- };
24
- export const WORKING_CONFIG = {
25
- dt: 0.055,
26
- scale: 1,
27
- kind: "thomas",
28
- spin: 1.7,
29
- drive: 0.9,
30
- saccadeKick: 1.25,
31
- breath: 0.09,
32
- tilt: 1.5,
33
- };
34
- /** Thomas' cyclically symmetric attractor — calm meanders, good for idle. */
35
- export function thomasStep(state, dt, b = 0.208186) {
36
- const { x, y, z } = state;
37
- return {
38
- x: x + dt * (Math.sin(y) - b * x),
39
- y: y + dt * (Math.sin(z) - b * y),
40
- z: z + dt * (Math.sin(x) - b * z),
41
- };
42
- }
43
- /** Classic Lorenz butterfly — more dramatic lobe flips. */
44
- export function lorenzStep(state, dt, sigma = 10, rho = 28, beta = 8 / 3) {
45
- const { x, y, z } = state;
46
- return {
47
- x: x + dt * (sigma * (y - x)),
48
- y: y + dt * (x * (rho - z) - y),
49
- z: z + dt * (x * y - beta * z),
50
- };
51
- }
52
- export function stepAttractor(state, config) {
53
- return config.kind === "lorenz"
54
- ? lorenzStep(state, config.dt)
55
- : thomasStep(state, config.dt);
56
- }
57
- /** Deterministic seed from an agent id (or any string). */
58
- export function seedFromString(input) {
59
- let h = 2166136261;
60
- for (let i = 0; i < input.length; i++) {
61
- h ^= input.charCodeAt(i);
62
- h = Math.imul(h, 16777619);
63
- }
64
- const a = (h >>> 0) / 0xffffffff;
65
- const b = ((h * 2654435761) >>> 0) / 0xffffffff;
66
- const c = ((h * 2246822519) >>> 0) / 0xffffffff;
67
- return {
68
- x: 0.1 + a * 0.4,
69
- y: 0.1 + b * 0.4,
70
- z: 0.1 + c * 0.4,
71
- };
72
- }
73
- /** Fibonacci-lattice points on the unit sphere — the orb's surface dots. */
74
- const ORB_POINT_COUNT = 92;
75
- const ORB_POINTS = (() => {
76
- const points = [];
77
- const golden = Math.PI * (3 - Math.sqrt(5));
78
- for (let i = 0; i < ORB_POINT_COUNT; i++) {
79
- const y = 1 - (2 * (i + 0.5)) / ORB_POINT_COUNT;
80
- const r = Math.sqrt(1 - y * y);
81
- const a = golden * i;
82
- points.push({ x: Math.cos(a) * r, y, z: Math.sin(a) * r });
83
- }
84
- return points;
85
- })();
86
- /** Hide dots beyond this depth so the orb reads as a surface, not a cloud. */
87
- const ORB_HORIZON = -0.08;
88
- function projectOrb(yaw, pitch, scale) {
89
- const cy = Math.cos(yaw);
90
- const sy = Math.sin(yaw);
91
- const cp = Math.cos(pitch);
92
- const sp = Math.sin(pitch);
93
- const nodes = [];
94
- for (const p of ORB_POINTS) {
95
- // Yaw about the vertical axis, then pitch (nod) about the horizontal.
96
- const x1 = p.x * cy + p.z * sy;
97
- const z1 = -p.x * sy + p.z * cy;
98
- const y2 = p.y * cp - z1 * sp;
99
- const z2 = p.y * sp + z1 * cp;
100
- if (z2 < ORB_HORIZON)
101
- continue; // back hemisphere
102
- nodes.push({ homeX: p.x, homeY: p.y, x: x1 * scale, y: y2 * scale });
103
- }
104
- return nodes;
105
- }
106
- const FRAME_DT = 1 / 30;
107
- const SPRING_K = 60;
108
- const SPRING_DAMP = 2 * Math.sqrt(SPRING_K); // critically damped — no overshoot
109
- const TWO_PI = Math.PI * 2;
110
- export class GlyphSimulator {
111
- state;
112
- config;
113
- theta = 0;
114
- phi = 0;
115
- saccade = 0;
116
- saccadeVel = 0;
117
- saccadeTarget = 0;
118
- lastLobe;
119
- constructor(seed = "apollo", config = IDLE_CONFIG) {
120
- this.state = seedFromString(seed);
121
- this.config = config;
122
- this.lastLobe = Math.sign(this.state.x) || 1;
123
- // Desynchronize the initial pose per seed.
124
- this.theta = (this.state.y + this.state.z) * 7;
125
- this.phi = this.state.x * 5;
126
- }
127
- setConfig(config) {
128
- this.config = config;
129
- }
130
- tick() {
131
- const c = this.config;
132
- // Two attractor substeps per frame keep the modulation smooth at 30fps.
133
- this.state = stepAttractor(this.state, c);
134
- this.state = stepAttractor(this.state, c);
135
- // Saccade: a lobe transition in the dynamics is the "decision" moment —
136
- // kick a spring-damped rotation that darts and lands cleanly.
137
- const lobe = Math.sign(this.state.x) || 1;
138
- if (lobe !== this.lastLobe) {
139
- this.lastLobe = lobe;
140
- this.saccadeTarget +=
141
- lobe * c.saccadeKick * (0.8 + 0.4 * Math.min(1, Math.abs(this.state.y)));
142
- }
143
- const accel = SPRING_K * (this.saccadeTarget - this.saccade) - SPRING_DAMP * this.saccadeVel;
144
- this.saccadeVel += accel * FRAME_DT;
145
- this.saccade += this.saccadeVel * FRAME_DT;
146
- // Spin: controlled base rate, chaotically modulated (may hesitate/reverse).
147
- this.theta += (c.spin + c.drive * this.state.x) * FRAME_DT;
148
- // Tilt precession for the pseudo-3D tumble.
149
- this.phi += (c.tilt + 0.5 * Math.tanh(this.state.y)) * FRAME_DT;
150
- // Keep angles bounded over long sessions without visible discontinuity.
151
- if (Math.abs(this.theta) > 1e4)
152
- this.theta %= TWO_PI;
153
- if (Math.abs(this.phi) > 1e4)
154
- this.phi %= TWO_PI;
155
- if (Math.abs(this.saccadeTarget) > 1e4) {
156
- const wrap = Math.floor(this.saccadeTarget / TWO_PI) * TWO_PI;
157
- this.saccadeTarget -= wrap;
158
- this.saccade -= wrap;
159
- }
160
- // Breathing: shallow, slow scale oscillation — "alive at rest".
161
- const breathScale = 1 + c.breath * Math.tanh(this.state.z * 0.5);
162
- const yaw = this.theta + this.saccade;
163
- // Gentle nodding tilt so the dot bands sweep in 3D instead of flat lines.
164
- const pitch = 0.4 + 0.3 * Math.sin(this.phi);
165
- return projectOrb(yaw, pitch, breathScale * c.scale);
166
- }
167
- }
168
- // Braille cell bit layout: BRAILLE_BITS[rowInCell][colInCell]
169
- const BRAILLE_BITS = [
170
- [0x01, 0x08],
171
- [0x02, 0x10],
172
- [0x04, 0x20],
173
- [0x40, 0x80],
174
- ];
175
- class BrailleCanvas {
176
- width;
177
- height;
178
- dotsW;
179
- dotsH;
180
- cells;
181
- constructor(width, height) {
182
- this.width = width;
183
- this.height = height;
184
- this.dotsW = width * 2;
185
- this.dotsH = height * 4;
186
- this.cells = new Array(width * height).fill(0);
187
- }
188
- set(x, y) {
189
- const dx = Math.round(x);
190
- const dy = Math.round(y);
191
- if (dx < 0 || dy < 0 || dx >= this.dotsW || dy >= this.dotsH)
192
- return;
193
- const cell = Math.floor(dy / 4) * this.width + Math.floor(dx / 2);
194
- this.cells[cell] = (this.cells[cell] ?? 0) | BRAILLE_BITS[dy % 4][dx % 2];
195
- }
196
- render() {
197
- const rows = [];
198
- for (let r = 0; r < this.height; r++) {
199
- let row = "";
200
- for (let col = 0; col < this.width; col++) {
201
- const mask = this.cells[r * this.width + col];
202
- row += mask === 0 ? " " : String.fromCharCode(0x2800 + mask);
203
- }
204
- rows.push(row);
205
- }
206
- return rows;
207
- }
208
- }
209
- /** Render orb dots (unit space) onto a Braille sub-pixel character grid. */
210
- export function renderGlyphFrame(nodes, options = {}) {
211
- const width = options.width ?? 14;
212
- const height = options.height ?? 7;
213
- const canvas = new BrailleCanvas(width, height);
214
- const cx = canvas.dotsW / 2 - 0.5;
215
- const cy = canvas.dotsH / 2 - 0.5;
216
- const radius = Math.min(canvas.dotsW, canvas.dotsH) / 2 - 1;
217
- const px = (u) => cx + u * radius;
218
- const py = (u) => cy + u * radius;
219
- const points = options.staticMode ? projectOrb(0.6, 0.4, 0.96) : nodes;
220
- for (const t of options.trails ?? []) {
221
- canvas.set(px(t.x), py(t.y));
222
- }
223
- for (const p of points) {
224
- canvas.set(px(p.x), py(p.y));
225
- }
226
- return canvas.render();
227
- }
228
- export function prefersReducedMotion() {
229
- return process.env.APOLLO_REDUCED_MOTION === "1";
230
- }
231
- //# sourceMappingURL=attractor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"attractor.js","sourceRoot":"","sources":["../../../src/lib/attractor.ts"],"names":[],"mappings":"AAAA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