@plures/runebook 0.4.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 (148) hide show
  1. package/ANALYSIS_LADDER.md +231 -0
  2. package/CHANGELOG.md +124 -0
  3. package/INTEGRATIONS.md +242 -0
  4. package/LICENSE +21 -0
  5. package/MEMORY.md +253 -0
  6. package/NIXOS.md +357 -0
  7. package/QUICKSTART.md +157 -0
  8. package/README.md +295 -0
  9. package/RELEASE.md +190 -0
  10. package/ValidationChecklist.md +598 -0
  11. package/docs/demo.md +338 -0
  12. package/docs/llm-integration.md +300 -0
  13. package/docs/parallel-execution-plan.md +160 -0
  14. package/flake.nix +228 -0
  15. package/integrations/README.md +242 -0
  16. package/integrations/demo-steps.sh +64 -0
  17. package/integrations/nvim-runebook.lua +140 -0
  18. package/integrations/tmux-status.sh +51 -0
  19. package/integrations/vim-runebook.vim +77 -0
  20. package/integrations/wezterm-status-simple.lua +48 -0
  21. package/integrations/wezterm-status.lua +76 -0
  22. package/nixos-module.nix +156 -0
  23. package/package.json +76 -0
  24. package/packages/design-dojo/index.js +4 -0
  25. package/packages/design-dojo/package.json +20 -0
  26. package/packages/design-dojo/tokens.css +69 -0
  27. package/playwright.config.ts +16 -0
  28. package/scripts/check-versions.cjs +62 -0
  29. package/scripts/demo.sh +220 -0
  30. package/shell.nix +31 -0
  31. package/src/app.html +13 -0
  32. package/src/cli/index.ts +1050 -0
  33. package/src/lib/agent/analysis-pipeline.ts +347 -0
  34. package/src/lib/agent/analysis-service.ts +171 -0
  35. package/src/lib/agent/analysis.ts +159 -0
  36. package/src/lib/agent/analyzers/heuristic.ts +289 -0
  37. package/src/lib/agent/analyzers/index.ts +7 -0
  38. package/src/lib/agent/analyzers/llm.ts +204 -0
  39. package/src/lib/agent/analyzers/local-search.ts +215 -0
  40. package/src/lib/agent/capture.ts +123 -0
  41. package/src/lib/agent/index.ts +244 -0
  42. package/src/lib/agent/integration.ts +81 -0
  43. package/src/lib/agent/llm/providers/base.ts +99 -0
  44. package/src/lib/agent/llm/providers/index.ts +60 -0
  45. package/src/lib/agent/llm/providers/mock.ts +67 -0
  46. package/src/lib/agent/llm/providers/ollama.ts +151 -0
  47. package/src/lib/agent/llm/providers/openai.ts +153 -0
  48. package/src/lib/agent/llm/sanitizer.ts +170 -0
  49. package/src/lib/agent/llm/types.ts +118 -0
  50. package/src/lib/agent/memory.ts +363 -0
  51. package/src/lib/agent/node-status.ts +56 -0
  52. package/src/lib/agent/node-suggestions.ts +64 -0
  53. package/src/lib/agent/status.ts +80 -0
  54. package/src/lib/agent/suggestions.ts +169 -0
  55. package/src/lib/components/Canvas.svelte +124 -0
  56. package/src/lib/components/ConnectionLine.svelte +46 -0
  57. package/src/lib/components/DisplayNode.svelte +167 -0
  58. package/src/lib/components/InputNode.svelte +158 -0
  59. package/src/lib/components/TerminalNode.svelte +237 -0
  60. package/src/lib/components/Toolbar.svelte +359 -0
  61. package/src/lib/components/TransformNode.svelte +327 -0
  62. package/src/lib/core/index.ts +31 -0
  63. package/src/lib/core/observer.ts +278 -0
  64. package/src/lib/core/redaction.ts +158 -0
  65. package/src/lib/core/shell-adapters/base.ts +325 -0
  66. package/src/lib/core/shell-adapters/bash.ts +110 -0
  67. package/src/lib/core/shell-adapters/index.ts +62 -0
  68. package/src/lib/core/shell-adapters/zsh.ts +105 -0
  69. package/src/lib/core/storage.ts +360 -0
  70. package/src/lib/core/types.ts +176 -0
  71. package/src/lib/design-dojo/Box.svelte +47 -0
  72. package/src/lib/design-dojo/Button.svelte +75 -0
  73. package/src/lib/design-dojo/Input.svelte +65 -0
  74. package/src/lib/design-dojo/List.svelte +38 -0
  75. package/src/lib/design-dojo/Select.svelte +48 -0
  76. package/src/lib/design-dojo/SplitPane.svelte +43 -0
  77. package/src/lib/design-dojo/StatusBar.svelte +61 -0
  78. package/src/lib/design-dojo/Table.svelte +47 -0
  79. package/src/lib/design-dojo/Text.svelte +36 -0
  80. package/src/lib/design-dojo/Toggle.svelte +48 -0
  81. package/src/lib/design-dojo/index.ts +10 -0
  82. package/src/lib/stores/canvas-praxis.ts +268 -0
  83. package/src/lib/stores/canvas.ts +58 -0
  84. package/src/lib/types/agent.ts +78 -0
  85. package/src/lib/types/canvas.ts +71 -0
  86. package/src/lib/utils/storage.ts +326 -0
  87. package/src/lib/utils/yaml-loader.ts +52 -0
  88. package/src/routes/+layout.svelte +5 -0
  89. package/src/routes/+layout.ts +5 -0
  90. package/src/routes/+page.svelte +32 -0
  91. package/src-tauri/Cargo.lock +5735 -0
  92. package/src-tauri/Cargo.toml +38 -0
  93. package/src-tauri/build.rs +3 -0
  94. package/src-tauri/capabilities/default.json +10 -0
  95. package/src-tauri/icons/128x128.png +0 -0
  96. package/src-tauri/icons/128x128@2x.png +0 -0
  97. package/src-tauri/icons/32x32.png +0 -0
  98. package/src-tauri/icons/Square107x107Logo.png +0 -0
  99. package/src-tauri/icons/Square142x142Logo.png +0 -0
  100. package/src-tauri/icons/Square150x150Logo.png +0 -0
  101. package/src-tauri/icons/Square284x284Logo.png +0 -0
  102. package/src-tauri/icons/Square30x30Logo.png +0 -0
  103. package/src-tauri/icons/Square310x310Logo.png +0 -0
  104. package/src-tauri/icons/Square44x44Logo.png +0 -0
  105. package/src-tauri/icons/Square71x71Logo.png +0 -0
  106. package/src-tauri/icons/Square89x89Logo.png +0 -0
  107. package/src-tauri/icons/StoreLogo.png +0 -0
  108. package/src-tauri/icons/icon.icns +0 -0
  109. package/src-tauri/icons/icon.ico +0 -0
  110. package/src-tauri/icons/icon.png +0 -0
  111. package/src-tauri/src/agents/agent1.rs +66 -0
  112. package/src-tauri/src/agents/agent2.rs +80 -0
  113. package/src-tauri/src/agents/agent3.rs +73 -0
  114. package/src-tauri/src/agents/agent4.rs +66 -0
  115. package/src-tauri/src/agents/agent5.rs +68 -0
  116. package/src-tauri/src/agents/agent6.rs +75 -0
  117. package/src-tauri/src/agents/base.rs +52 -0
  118. package/src-tauri/src/agents/mod.rs +17 -0
  119. package/src-tauri/src/core/coordination.rs +117 -0
  120. package/src-tauri/src/core/mod.rs +12 -0
  121. package/src-tauri/src/core/ownership.rs +61 -0
  122. package/src-tauri/src/core/types.rs +132 -0
  123. package/src-tauri/src/execution/mod.rs +5 -0
  124. package/src-tauri/src/execution/runner.rs +143 -0
  125. package/src-tauri/src/lib.rs +161 -0
  126. package/src-tauri/src/main.rs +6 -0
  127. package/src-tauri/src/memory/api.rs +422 -0
  128. package/src-tauri/src/memory/client.rs +156 -0
  129. package/src-tauri/src/memory/encryption.rs +79 -0
  130. package/src-tauri/src/memory/migration.rs +110 -0
  131. package/src-tauri/src/memory/mod.rs +28 -0
  132. package/src-tauri/src/memory/schema.rs +275 -0
  133. package/src-tauri/src/memory/tests.rs +192 -0
  134. package/src-tauri/src/orchestrator/coordinator.rs +232 -0
  135. package/src-tauri/src/orchestrator/mod.rs +13 -0
  136. package/src-tauri/src/orchestrator/planner.rs +304 -0
  137. package/src-tauri/tauri.conf.json +35 -0
  138. package/static/examples/date-time-example.yaml +147 -0
  139. package/static/examples/hello-world.yaml +74 -0
  140. package/static/examples/transform-example.yaml +157 -0
  141. package/static/favicon.png +0 -0
  142. package/static/svelte.svg +1 -0
  143. package/static/tauri.svg +6 -0
  144. package/static/vite.svg +1 -0
  145. package/svelte.config.js +18 -0
  146. package/tsconfig.json +19 -0
  147. package/vite.config.js +45 -0
  148. package/vitest.config.ts +21 -0
@@ -0,0 +1,147 @@
1
+ id: date-time-example
2
+ name: Date and Time Example
3
+ description: Shows multiple terminal nodes and different display types
4
+ version: 1.0.0
5
+
6
+ nodes:
7
+ - id: terminal-date
8
+ type: terminal
9
+ position:
10
+ x: 100
11
+ y: 100
12
+ label: Get Date
13
+ command: date
14
+ args:
15
+ - "+%Y-%m-%d"
16
+ autoStart: false
17
+ inputs: []
18
+ outputs:
19
+ - id: stdout
20
+ name: stdout
21
+ type: output
22
+
23
+ - id: terminal-time
24
+ type: terminal
25
+ position:
26
+ x: 100
27
+ y: 300
28
+ label: Get Time
29
+ command: date
30
+ args:
31
+ - "+%H:%M:%S"
32
+ autoStart: false
33
+ inputs: []
34
+ outputs:
35
+ - id: stdout
36
+ name: stdout
37
+ type: output
38
+
39
+ - id: terminal-ls
40
+ type: terminal
41
+ position:
42
+ x: 100
43
+ y: 500
44
+ label: List Files
45
+ command: ls
46
+ args:
47
+ - "-la"
48
+ autoStart: false
49
+ inputs: []
50
+ outputs:
51
+ - id: stdout
52
+ name: stdout
53
+ type: output
54
+
55
+ - id: display-date
56
+ type: display
57
+ position:
58
+ x: 500
59
+ y: 100
60
+ label: Today's Date
61
+ displayType: text
62
+ content: ''
63
+ inputs:
64
+ - id: input
65
+ name: input
66
+ type: input
67
+ outputs: []
68
+
69
+ - id: display-time
70
+ type: display
71
+ position:
72
+ x: 500
73
+ y: 300
74
+ label: Current Time
75
+ displayType: text
76
+ content: ''
77
+ inputs:
78
+ - id: input
79
+ name: input
80
+ type: input
81
+ outputs: []
82
+
83
+ - id: display-files
84
+ type: display
85
+ position:
86
+ x: 500
87
+ y: 500
88
+ label: File Listing
89
+ displayType: text
90
+ content: ''
91
+ inputs:
92
+ - id: input
93
+ name: input
94
+ type: input
95
+ outputs: []
96
+
97
+ - id: input-slider
98
+ type: input
99
+ position:
100
+ x: 900
101
+ y: 200
102
+ label: Refresh Interval
103
+ inputType: slider
104
+ value: 50
105
+ min: 0
106
+ max: 100
107
+ step: 10
108
+ inputs: []
109
+ outputs:
110
+ - id: value
111
+ name: value
112
+ type: output
113
+
114
+ - id: display-slider
115
+ type: display
116
+ position:
117
+ x: 1200
118
+ y: 200
119
+ label: Slider Value
120
+ displayType: text
121
+ content: ''
122
+ inputs:
123
+ - id: input
124
+ name: input
125
+ type: input
126
+ outputs: []
127
+
128
+ connections:
129
+ - from: terminal-date
130
+ to: display-date
131
+ fromPort: stdout
132
+ toPort: input
133
+
134
+ - from: terminal-time
135
+ to: display-time
136
+ fromPort: stdout
137
+ toPort: input
138
+
139
+ - from: terminal-ls
140
+ to: display-files
141
+ fromPort: stdout
142
+ toPort: input
143
+
144
+ - from: input-slider
145
+ to: display-slider
146
+ fromPort: value
147
+ toPort: input
@@ -0,0 +1,74 @@
1
+ id: hello-world
2
+ name: Hello World Example
3
+ description: A simple example demonstrating terminal, input, and display nodes
4
+ version: 1.0.0
5
+
6
+ nodes:
7
+ - id: terminal-1
8
+ type: terminal
9
+ position:
10
+ x: 100
11
+ y: 100
12
+ label: Echo Command
13
+ command: echo
14
+ args:
15
+ - Hello from RuneBook!
16
+ autoStart: true
17
+ inputs: []
18
+ outputs:
19
+ - id: stdout
20
+ name: stdout
21
+ type: output
22
+
23
+ - id: input-1
24
+ type: input
25
+ position:
26
+ x: 100
27
+ y: 300
28
+ label: User Input
29
+ inputType: text
30
+ value: Type something here...
31
+ inputs: []
32
+ outputs:
33
+ - id: value
34
+ name: value
35
+ type: output
36
+
37
+ - id: display-1
38
+ type: display
39
+ position:
40
+ x: 500
41
+ y: 100
42
+ label: Terminal Output
43
+ displayType: text
44
+ content: ''
45
+ inputs:
46
+ - id: input
47
+ name: input
48
+ type: input
49
+ outputs: []
50
+
51
+ - id: display-2
52
+ type: display
53
+ position:
54
+ x: 500
55
+ y: 300
56
+ label: Input Display
57
+ displayType: text
58
+ content: ''
59
+ inputs:
60
+ - id: input
61
+ name: input
62
+ type: input
63
+ outputs: []
64
+
65
+ connections:
66
+ - from: terminal-1
67
+ to: display-1
68
+ fromPort: stdout
69
+ toPort: input
70
+
71
+ - from: input-1
72
+ to: display-2
73
+ fromPort: value
74
+ toPort: input
@@ -0,0 +1,157 @@
1
+ id: transform-example
2
+ name: Transform Node Example
3
+ description: Demonstrates data transformation with map, filter, and reduce
4
+ version: 1.0.0
5
+
6
+ nodes:
7
+ # Input node with array data
8
+ - id: input-1
9
+ type: input
10
+ position: { x: 100, y: 150 }
11
+ label: "Array Input"
12
+ inputType: text
13
+ value: "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]"
14
+ inputs: []
15
+ outputs:
16
+ - id: value
17
+ name: value
18
+ type: output
19
+
20
+ # Display the original input
21
+ - id: display-1
22
+ type: display
23
+ position: { x: 100, y: 300 }
24
+ label: "Original Data"
25
+ displayType: json
26
+ inputs:
27
+ - id: input
28
+ name: input
29
+ type: input
30
+ outputs: []
31
+
32
+ # Transform: Map (multiply by 2)
33
+ - id: transform-1
34
+ type: transform
35
+ position: { x: 400, y: 100 }
36
+ label: "Map: Double Values"
37
+ transformType: map
38
+ code: "item * 2"
39
+ inputs:
40
+ - id: input
41
+ name: input
42
+ type: input
43
+ outputs:
44
+ - id: output
45
+ name: output
46
+ type: output
47
+
48
+ # Display mapped result
49
+ - id: display-2
50
+ type: display
51
+ position: { x: 700, y: 100 }
52
+ label: "Doubled"
53
+ displayType: json
54
+ inputs:
55
+ - id: input
56
+ name: input
57
+ type: input
58
+ outputs: []
59
+
60
+ # Transform: Filter (greater than 5)
61
+ - id: transform-2
62
+ type: transform
63
+ position: { x: 400, y: 250 }
64
+ label: "Filter: > 5"
65
+ transformType: filter
66
+ code: "item > 5"
67
+ inputs:
68
+ - id: input
69
+ name: input
70
+ type: input
71
+ outputs:
72
+ - id: output
73
+ name: output
74
+ type: output
75
+
76
+ # Display filtered result
77
+ - id: display-3
78
+ type: display
79
+ position: { x: 700, y: 250 }
80
+ label: "Filtered"
81
+ displayType: json
82
+ inputs:
83
+ - id: input
84
+ name: input
85
+ type: input
86
+ outputs: []
87
+
88
+ # Transform: Reduce (sum all values)
89
+ - id: transform-3
90
+ type: transform
91
+ position: { x: 400, y: 400 }
92
+ label: "Reduce: Sum"
93
+ transformType: reduce
94
+ code: "acc + item"
95
+ inputs:
96
+ - id: input
97
+ name: input
98
+ type: input
99
+ outputs:
100
+ - id: output
101
+ name: output
102
+ type: output
103
+
104
+ # Display reduced result
105
+ - id: display-4
106
+ type: display
107
+ position: { x: 700, y: 400 }
108
+ label: "Sum Total"
109
+ displayType: text
110
+ inputs:
111
+ - id: input
112
+ name: input
113
+ type: input
114
+ outputs: []
115
+
116
+ connections:
117
+ # Connect input to original display
118
+ - from: input-1
119
+ to: display-1
120
+ fromPort: value
121
+ toPort: input
122
+
123
+ # Connect input to map transform
124
+ - from: input-1
125
+ to: transform-1
126
+ fromPort: value
127
+ toPort: input
128
+
129
+ # Connect map to its display
130
+ - from: transform-1
131
+ to: display-2
132
+ fromPort: output
133
+ toPort: input
134
+
135
+ # Connect input to filter transform
136
+ - from: input-1
137
+ to: transform-2
138
+ fromPort: value
139
+ toPort: input
140
+
141
+ # Connect filter to its display
142
+ - from: transform-2
143
+ to: display-3
144
+ fromPort: output
145
+ toPort: input
146
+
147
+ # Connect input to reduce transform
148
+ - from: input-1
149
+ to: transform-3
150
+ fromPort: value
151
+ toPort: input
152
+
153
+ # Connect reduce to its display
154
+ - from: transform-3
155
+ to: display-4
156
+ fromPort: output
157
+ toPort: input
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="26.6" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 308"><path fill="#FF3E00" d="M239.682 40.707C211.113-.182 154.69-12.301 113.895 13.69L42.247 59.356a82.198 82.198 0 0 0-37.135 55.056a86.566 86.566 0 0 0 8.536 55.576a82.425 82.425 0 0 0-12.296 30.719a87.596 87.596 0 0 0 14.964 66.244c28.574 40.893 84.997 53.007 125.787 27.016l71.648-45.664a82.182 82.182 0 0 0 37.135-55.057a86.601 86.601 0 0 0-8.53-55.577a82.409 82.409 0 0 0 12.29-30.718a87.573 87.573 0 0 0-14.963-66.244"></path><path fill="#FFF" d="M106.889 270.841c-23.102 6.007-47.497-3.036-61.103-22.648a52.685 52.685 0 0 1-9.003-39.85a49.978 49.978 0 0 1 1.713-6.693l1.35-4.115l3.671 2.697a92.447 92.447 0 0 0 28.036 14.007l2.663.808l-.245 2.659a16.067 16.067 0 0 0 2.89 10.656a17.143 17.143 0 0 0 18.397 6.828a15.786 15.786 0 0 0 4.403-1.935l71.67-45.672a14.922 14.922 0 0 0 6.734-9.977a15.923 15.923 0 0 0-2.713-12.011a17.156 17.156 0 0 0-18.404-6.832a15.78 15.78 0 0 0-4.396 1.933l-27.35 17.434a52.298 52.298 0 0 1-14.553 6.391c-23.101 6.007-47.497-3.036-61.101-22.649a52.681 52.681 0 0 1-9.004-39.849a49.428 49.428 0 0 1 22.34-33.114l71.664-45.677a52.218 52.218 0 0 1 14.563-6.398c23.101-6.007 47.497 3.036 61.101 22.648a52.685 52.685 0 0 1 9.004 39.85a50.559 50.559 0 0 1-1.713 6.692l-1.35 4.116l-3.67-2.693a92.373 92.373 0 0 0-28.037-14.013l-2.664-.809l.246-2.658a16.099 16.099 0 0 0-2.89-10.656a17.143 17.143 0 0 0-18.398-6.828a15.786 15.786 0 0 0-4.402 1.935l-71.67 45.674a14.898 14.898 0 0 0-6.73 9.975a15.9 15.9 0 0 0 2.709 12.012a17.156 17.156 0 0 0 18.404 6.832a15.841 15.841 0 0 0 4.402-1.935l27.345-17.427a52.147 52.147 0 0 1 14.552-6.397c23.101-6.006 47.497 3.037 61.102 22.65a52.681 52.681 0 0 1 9.003 39.848a49.453 49.453 0 0 1-22.34 33.12l-71.664 45.673a52.218 52.218 0 0 1-14.563 6.398"></path></svg>
@@ -0,0 +1,6 @@
1
+ <svg width="206" height="231" viewBox="0 0 206 231" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M143.143 84C143.143 96.1503 133.293 106 121.143 106C108.992 106 99.1426 96.1503 99.1426 84C99.1426 71.8497 108.992 62 121.143 62C133.293 62 143.143 71.8497 143.143 84Z" fill="#FFC131"/>
3
+ <ellipse cx="84.1426" cy="147" rx="22" ry="22" transform="rotate(180 84.1426 147)" fill="#24C8DB"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M166.738 154.548C157.86 160.286 148.023 164.269 137.757 166.341C139.858 160.282 141 153.774 141 147C141 144.543 140.85 142.121 140.558 139.743C144.975 138.204 149.215 136.139 153.183 133.575C162.73 127.404 170.292 118.608 174.961 108.244C179.63 97.8797 181.207 86.3876 179.502 75.1487C177.798 63.9098 172.884 53.4021 165.352 44.8883C157.82 36.3744 147.99 30.2165 137.042 27.1546C126.095 24.0926 114.496 24.2568 103.64 27.6274C92.7839 30.998 83.1319 37.4317 75.8437 46.1553C74.9102 47.2727 74.0206 48.4216 73.176 49.5993C61.9292 50.8488 51.0363 54.0318 40.9629 58.9556C44.2417 48.4586 49.5653 38.6591 56.679 30.1442C67.0505 17.7298 80.7861 8.57426 96.2354 3.77762C111.685 -1.01901 128.19 -1.25267 143.769 3.10474C159.348 7.46215 173.337 16.2252 184.056 28.3411C194.775 40.457 201.767 55.4101 204.193 71.404C206.619 87.3978 204.374 103.752 197.73 118.501C191.086 133.25 180.324 145.767 166.738 154.548ZM41.9631 74.275L62.5557 76.8042C63.0459 72.813 63.9401 68.9018 65.2138 65.1274C57.0465 67.0016 49.2088 70.087 41.9631 74.275Z" fill="#FFC131"/>
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M38.4045 76.4519C47.3493 70.6709 57.2677 66.6712 67.6171 64.6132C65.2774 70.9669 64 77.8343 64 85.0001C64 87.1434 64.1143 89.26 64.3371 91.3442C60.0093 92.8732 55.8533 94.9092 51.9599 97.4256C42.4128 103.596 34.8505 112.392 30.1816 122.756C25.5126 133.12 23.9357 144.612 25.6403 155.851C27.3449 167.09 32.2584 177.598 39.7906 186.112C47.3227 194.626 57.153 200.784 68.1003 203.846C79.0476 206.907 90.6462 206.743 101.502 203.373C112.359 200.002 122.011 193.568 129.299 184.845C130.237 183.722 131.131 182.567 131.979 181.383C143.235 180.114 154.132 176.91 164.205 171.962C160.929 182.49 155.596 192.319 148.464 200.856C138.092 213.27 124.357 222.426 108.907 227.222C93.458 232.019 76.9524 232.253 61.3736 227.895C45.7948 223.538 31.8055 214.775 21.0867 202.659C10.3679 190.543 3.37557 175.59 0.949823 159.596C-1.47592 143.602 0.768139 127.248 7.41237 112.499C14.0566 97.7497 24.8183 85.2327 38.4045 76.4519ZM163.062 156.711L163.062 156.711C162.954 156.773 162.846 156.835 162.738 156.897C162.846 156.835 162.954 156.773 163.062 156.711Z" fill="#24C8DB"/>
6
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
@@ -0,0 +1,18 @@
1
+ // Tauri doesn't have a Node.js server to do proper SSR
2
+ // so we use adapter-static with a fallback to index.html to put the site in SPA mode
3
+ // See: https://svelte.dev/docs/kit/single-page-apps
4
+ // See: https://v2.tauri.app/start/frontend/sveltekit/ for more info
5
+ import adapter from "@sveltejs/adapter-static";
6
+ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
7
+
8
+ /** @type {import('@sveltejs/kit').Config} */
9
+ const config = {
10
+ preprocess: vitePreprocess(),
11
+ kit: {
12
+ adapter: adapter({
13
+ fallback: "index.html",
14
+ }),
15
+ },
16
+ };
17
+
18
+ export default config;
package/tsconfig.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "extends": "./.svelte-kit/tsconfig.json",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "checkJs": true,
6
+ "esModuleInterop": true,
7
+ "forceConsistentCasingInFileNames": true,
8
+ "resolveJsonModule": true,
9
+ "skipLibCheck": true,
10
+ "sourceMap": true,
11
+ "strict": true,
12
+ "moduleResolution": "bundler"
13
+ }
14
+ // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
15
+ // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files
16
+ //
17
+ // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
18
+ // from the referenced tsconfig.json - TypeScript does not merge them in
19
+ }
package/vite.config.js ADDED
@@ -0,0 +1,45 @@
1
+ import { defineConfig } from "vite";
2
+ import { sveltekit } from "@sveltejs/kit/vite";
3
+
4
+ const host = process.env.TAURI_DEV_HOST;
5
+
6
+ // https://vite.dev/config/
7
+ export default defineConfig(async () => ({
8
+ plugins: [sveltekit()],
9
+
10
+ // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
11
+ //
12
+ // 1. prevent Vite from obscuring rust errors
13
+ clearScreen: false,
14
+ // 2. tauri expects a fixed port, fail if that port is not available
15
+ server: {
16
+ port: 1420,
17
+ strictPort: true,
18
+ host: host || false,
19
+ hmr: host
20
+ ? {
21
+ protocol: "ws",
22
+ host,
23
+ port: 1421,
24
+ }
25
+ : undefined,
26
+ watch: {
27
+ // 3. tell Vite to ignore watching `src-tauri`
28
+ ignored: ["**/src-tauri/**"],
29
+ },
30
+ },
31
+
32
+ // Exclude Node.js-only modules from browser build
33
+ ssr: {
34
+ noExternal: [],
35
+ },
36
+
37
+ build: {
38
+ rollupOptions: {
39
+ external: [
40
+ // Mark node-only agent modules as external for dynamic import
41
+ /\/agent\/node-.*\.ts$/,
42
+ ],
43
+ },
44
+ },
45
+ }));
@@ -0,0 +1,21 @@
1
+ import { defineConfig } from 'vitest/config';
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ globals: true,
6
+ environment: 'node',
7
+ include: ['src/**/*.{test,spec}.{js,ts}'],
8
+ coverage: {
9
+ provider: 'v8',
10
+ reporter: ['text', 'json', 'html'],
11
+ exclude: [
12
+ 'node_modules/',
13
+ 'src-tauri/',
14
+ '**/*.d.ts',
15
+ '**/*.config.*',
16
+ '**/__tests__/**',
17
+ ],
18
+ },
19
+ },
20
+ });
21
+