@flowdular/sdk 0.1.0 → 0.2.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 (174) hide show
  1. package/.ai/skills/test-hardening/SKILL.md +1 -1
  2. package/README.md +69 -12
  3. package/assets/flowdular-banner.png +0 -0
  4. package/modules/agents/package.json +1 -1
  5. package/modules/auth/package.json +1 -1
  6. package/modules/auth/src/client/AuthenticationCore.tsrx +3 -1
  7. package/modules/auth/src/server/endpoints.ts +3 -1
  8. package/modules/auth/src/server/runtime.ts +4 -0
  9. package/modules/automations/package.json +1 -1
  10. package/modules/automations-workflows-integration/package.json +1 -1
  11. package/modules/profile/package.json +1 -1
  12. package/modules/sandbox/package.json +1 -1
  13. package/modules/system/package.json +1 -1
  14. package/modules/users/package.json +1 -1
  15. package/modules/workflows/package.json +1 -1
  16. package/package.json +5 -13
  17. package/packages/ai-provider/package.json +1 -1
  18. package/packages/cli-protocol/package.json +1 -1
  19. package/packages/client/package.json +1 -1
  20. package/packages/client/src/routing.ts +39 -2
  21. package/packages/client/src/shell/BrandMark.tsrx +5 -1
  22. package/packages/client/src/shell/navigation.ts +3 -1
  23. package/packages/client/src/state.ts +6 -2
  24. package/packages/contracts/package.json +1 -1
  25. package/packages/contracts/schemas/project.schema.json +16 -42
  26. package/packages/database/package.json +1 -1
  27. package/packages/database-pglite/package.json +1 -1
  28. package/packages/database-testing/package.json +1 -1
  29. package/packages/dev-console/package.json +1 -1
  30. package/packages/harness/package.json +1 -1
  31. package/packages/kernel/package.json +1 -1
  32. package/packages/server/package.json +1 -1
  33. package/packages/server/src/application-routes.ts +80 -8
  34. package/packages/server/src/index.ts +4 -1
  35. package/packages/server/src/web-html.ts +9 -5
  36. package/packages/server/src/web.ts +59 -7
  37. package/packages/ui/package.json +1 -1
  38. package/packages/coding-agent/package.json +0 -44
  39. package/packages/coding-agent/src/drivers/byok.ts +0 -322
  40. package/packages/coding-agent/src/drivers/claude-code.ts +0 -290
  41. package/packages/coding-agent/src/drivers/codex.ts +0 -281
  42. package/packages/coding-agent/src/index.ts +0 -56
  43. package/packages/coding-agent/src/registry.ts +0 -119
  44. package/packages/coding-agent/src/roles/contract.ts +0 -60
  45. package/packages/coding-agent/src/roles/defaults.ts +0 -134
  46. package/packages/coding-agent/src/roles/handoff.ts +0 -41
  47. package/packages/coding-agent/src/roles/registry.ts +0 -156
  48. package/packages/coding-agent/src/roles/skills.ts +0 -72
  49. package/packages/coding-agent/src/roles/sync.ts +0 -88
  50. package/packages/coding-agent/src/types.ts +0 -102
  51. package/packages/coding-agent/src/workspace.ts +0 -275
  52. package/packages/sandbox/README.md +0 -691
  53. package/packages/sandbox/bin/flowdular-sandbox.mjs +0 -393
  54. package/packages/sandbox/dist/client/assets/App-ClMOrpyg.js +0 -11
  55. package/packages/sandbox/dist/client/assets/PreviewHost-BHiHrfbQ.js +0 -1
  56. package/packages/sandbox/dist/client/assets/auto-buGEq6de.js +0 -3
  57. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
  58. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
  59. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
  60. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
  61. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
  62. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
  63. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
  64. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
  65. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  66. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  67. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
  68. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
  69. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
  70. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
  71. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
  72. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
  73. package/packages/sandbox/dist/client/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
  74. package/packages/sandbox/dist/client/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
  75. package/packages/sandbox/dist/client/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
  76. package/packages/sandbox/dist/client/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
  77. package/packages/sandbox/dist/client/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2 +0 -0
  78. package/packages/sandbox/dist/client/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2 +0 -0
  79. package/packages/sandbox/dist/client/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2 +0 -0
  80. package/packages/sandbox/dist/client/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2 +0 -0
  81. package/packages/sandbox/dist/client/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
  82. package/packages/sandbox/dist/client/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2 +0 -0
  83. package/packages/sandbox/dist/client/assets/index-CvwhlQ87.js +0 -4
  84. package/packages/sandbox/dist/client/assets/styles-BPWaGf55.js +0 -3
  85. package/packages/sandbox/dist/client/assets/styles-Dx1_KOag.css +0 -1
  86. package/packages/sandbox/dist/client/favicon.svg +0 -1
  87. package/packages/sandbox/dist/server/assets/auto-CVGNYyb3.js +0 -12785
  88. package/packages/sandbox/dist/server/assets/chunk-DDJLRBDX-3OUNo51g.js +0 -4125
  89. package/packages/sandbox/dist/server/assets/nodefs-DVSI7kG0.js +0 -24
  90. package/packages/sandbox/dist/server/assets/opfs-ahp-D56iokt1.js +0 -388
  91. package/packages/sandbox/dist/server/assets/token-Bvaq7Anz.js +0 -55
  92. package/packages/sandbox/dist/server/assets/token-util-BqSvdIPQ.js +0 -3
  93. package/packages/sandbox/dist/server/assets/token-util-CktFFT4z.js +0 -494
  94. package/packages/sandbox/dist/server/entry.js +0 -91671
  95. package/packages/sandbox/dist/server/favicon.svg +0 -1
  96. package/packages/sandbox/dist/server/index.html +0 -161
  97. package/packages/sandbox/index.html +0 -159
  98. package/packages/sandbox/octane.config.ts +0 -36
  99. package/packages/sandbox/package.json +0 -83
  100. package/packages/sandbox/public/favicon.svg +0 -1
  101. package/packages/sandbox/public/og.png +0 -0
  102. package/packages/sandbox/src/App.tsrx +0 -924
  103. package/packages/sandbox/src/client/ApprovalHandoff.tsrx +0 -39
  104. package/packages/sandbox/src/client/ChatPane.tsrx +0 -694
  105. package/packages/sandbox/src/client/ConnectView.tsrx +0 -86
  106. package/packages/sandbox/src/client/DiffPane.tsrx +0 -150
  107. package/packages/sandbox/src/client/EjectModal.tsrx +0 -571
  108. package/packages/sandbox/src/client/GateResults.tsrx +0 -60
  109. package/packages/sandbox/src/client/GitHubSettingsModal.tsrx +0 -219
  110. package/packages/sandbox/src/client/NewSessionForm.tsrx +0 -214
  111. package/packages/sandbox/src/client/SessionBar.tsrx +0 -151
  112. package/packages/sandbox/src/client/SessionPicker.tsrx +0 -472
  113. package/packages/sandbox/src/client/SpecEditor.tsrx +0 -109
  114. package/packages/sandbox/src/client/SpecReviewCard.tsrx +0 -321
  115. package/packages/sandbox/src/client/WorkCard.tsrx +0 -128
  116. package/packages/sandbox/src/client/WorkbenchModal.tsrx +0 -161
  117. package/packages/sandbox/src/client/WorkspaceMenu.tsrx +0 -100
  118. package/packages/sandbox/src/client/api.ts +0 -797
  119. package/packages/sandbox/src/client/attachments.ts +0 -73
  120. package/packages/sandbox/src/client/dashboard.ts +0 -46
  121. package/packages/sandbox/src/client/github-settings.ts +0 -48
  122. package/packages/sandbox/src/client/highlight.ts +0 -105
  123. package/packages/sandbox/src/client/i18n.ts +0 -32
  124. package/packages/sandbox/src/client/locales/en.json +0 -466
  125. package/packages/sandbox/src/client/locales/pl.json +0 -466
  126. package/packages/sandbox/src/client/session-labels.ts +0 -77
  127. package/packages/sandbox/src/client/state.ts +0 -108
  128. package/packages/sandbox/src/index.ts +0 -10
  129. package/packages/sandbox/src/preview/PreviewHost.tsrx +0 -373
  130. package/packages/sandbox/src/preview/load-module.ts +0 -16
  131. package/packages/sandbox/src/server/attachments.ts +0 -308
  132. package/packages/sandbox/src/server/auto-review.ts +0 -181
  133. package/packages/sandbox/src/server/checkpoints.ts +0 -90
  134. package/packages/sandbox/src/server/config.ts +0 -460
  135. package/packages/sandbox/src/server/dashboard.ts +0 -245
  136. package/packages/sandbox/src/server/delivery/configuration.ts +0 -193
  137. package/packages/sandbox/src/server/delivery/git-pr.ts +0 -1473
  138. package/packages/sandbox/src/server/delivery/index.ts +0 -83
  139. package/packages/sandbox/src/server/delivery/local.ts +0 -151
  140. package/packages/sandbox/src/server/delivery/official-modules.ts +0 -516
  141. package/packages/sandbox/src/server/delivery/plan.ts +0 -218
  142. package/packages/sandbox/src/server/delivery/policies.ts +0 -239
  143. package/packages/sandbox/src/server/delivery/record.ts +0 -41
  144. package/packages/sandbox/src/server/delivery/steps.ts +0 -464
  145. package/packages/sandbox/src/server/delivery/types.ts +0 -158
  146. package/packages/sandbox/src/server/dependencies.ts +0 -88
  147. package/packages/sandbox/src/server/diff.ts +0 -230
  148. package/packages/sandbox/src/server/gates.ts +0 -388
  149. package/packages/sandbox/src/server/index.ts +0 -139
  150. package/packages/sandbox/src/server/path-guard.ts +0 -282
  151. package/packages/sandbox/src/server/planning.ts +0 -749
  152. package/packages/sandbox/src/server/platform-client.ts +0 -189
  153. package/packages/sandbox/src/server/preview-database-host.ts +0 -340
  154. package/packages/sandbox/src/server/preview-database-protocol.ts +0 -163
  155. package/packages/sandbox/src/server/preview-database-proxy.ts +0 -356
  156. package/packages/sandbox/src/server/preview-database.ts +0 -109
  157. package/packages/sandbox/src/server/preview-ipc.ts +0 -15
  158. package/packages/sandbox/src/server/preview-modules.ts +0 -83
  159. package/packages/sandbox/src/server/preview-revision.ts +0 -44
  160. package/packages/sandbox/src/server/preview-runtime.ts +0 -467
  161. package/packages/sandbox/src/server/preview-worker-manager.ts +0 -436
  162. package/packages/sandbox/src/server/preview-worker.ts +0 -168
  163. package/packages/sandbox/src/server/reference.ts +0 -251
  164. package/packages/sandbox/src/server/routes.ts +0 -2258
  165. package/packages/sandbox/src/server/runtime.ts +0 -188
  166. package/packages/sandbox/src/server/session-owner.ts +0 -23
  167. package/packages/sandbox/src/server/sessions.ts +0 -849
  168. package/packages/sandbox/src/server/spec.ts +0 -471
  169. package/packages/sandbox/src/server/turn-lifecycle.ts +0 -56
  170. package/packages/sandbox/src/server/turns.ts +0 -993
  171. package/packages/sandbox/src/server/workspace-install.ts +0 -266
  172. package/packages/sandbox/src/server/workspace-root.ts +0 -73
  173. package/packages/sandbox/src/styles.css +0 -1573
  174. package/packages/sandbox/vite.config.ts +0 -133
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect width="24" height="24" rx="5.4" fill="#2557D6"/><g transform="translate(12 12) scale(0.64) translate(-12 -12)"><circle cx="7.9" cy="3.4" r="1.7" fill="#fff"/><rect x="6.2" y="3.4" width="3.4" height="1.6" fill="#fff"/><rect x="6.2" y="10.8" width="3.4" height="9.8" fill="#fff"/><circle cx="7.9" cy="20.6" r="1.7" fill="#fff"/><circle cx="16.1" cy="3.4" r="1.7" fill="#fff"/><rect x="14.4" y="3.4" width="3.4" height="9.8" fill="#fff"/><rect x="14.4" y="19" width="3.4" height="1.6" fill="#fff"/><circle cx="16.1" cy="20.6" r="1.7" fill="#fff"/><circle cx="3.4" cy="7.9" r="1.7" fill="#fff"/><rect x="3.4" y="6.2" width="9.8" height="3.4" fill="#fff"/><rect x="19" y="6.2" width="1.6" height="3.4" fill="#fff"/><circle cx="20.6" cy="7.9" r="1.7" fill="#fff"/><circle cx="3.4" cy="16.1" r="1.7" fill="#fff"/><rect x="3.4" y="14.4" width="1.6" height="3.4" fill="#fff"/><rect x="10.8" y="14.4" width="9.8" height="3.4" fill="#fff"/><circle cx="20.6" cy="16.1" r="1.7" fill="#fff"/></g></svg>
@@ -1,161 +0,0 @@
1
- <!doctype html>
2
- <html lang="en" class="coreloom-booting">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <meta name="theme-color" content="#ffffff" />
7
- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
8
- <title>Coreloom Sandbox</title>
9
- <style id="coreloom-critical-splash">
10
- html,
11
- body,
12
- #root {
13
- min-height: 100%;
14
- margin: 0;
15
- background: #ffffff;
16
- }
17
- .coreloom-splash {
18
- position: fixed;
19
- inset: 0;
20
- z-index: 2147483647;
21
- display: grid;
22
- place-items: center;
23
- background: #ffffff;
24
- color: #141b2e;
25
- transition: opacity 180ms ease;
26
- }
27
- .coreloom-splash__content {
28
- display: grid;
29
- justify-items: center;
30
- gap: 14px;
31
- font:
32
- 600 13px/1.2 ui-sans-serif,
33
- system-ui,
34
- sans-serif;
35
- letter-spacing: 0.14em;
36
- text-transform: uppercase;
37
- }
38
- .coreloom-splash__stage {
39
- min-width: 190px;
40
- font-size: 10px;
41
- font-weight: 500;
42
- color: #64738f;
43
- letter-spacing: 0.08em;
44
- text-align: center;
45
- text-transform: none;
46
- }
47
- .coreloom-splash__mark {
48
- display: block;
49
- width: 40px;
50
- height: 40px;
51
- animation: coreloom-pulse 1.4s ease-in-out infinite alternate;
52
- }
53
- .coreloom-splash--leaving {
54
- opacity: 0;
55
- pointer-events: none;
56
- }
57
- @keyframes coreloom-pulse {
58
- to {
59
- opacity: 0.45;
60
- }
61
- }
62
- @media (prefers-reduced-motion: reduce) {
63
- .coreloom-splash__mark {
64
- animation: none;
65
- }
66
- }
67
- </style>
68
- <!--ssr-head-->
69
- <script type="module" crossorigin src="/assets/index-CvwhlQ87.js"></script>
70
- </head>
71
- <body aria-busy="true">
72
- <div
73
- id="coreloom-splash"
74
- class="coreloom-splash"
75
- role="status"
76
- aria-live="polite"
77
- >
78
- <div class="coreloom-splash__content">
79
- <svg
80
- class="coreloom-splash__mark"
81
- viewBox="0 0 24 24"
82
- aria-hidden="true"
83
- >
84
- <g fill="#141b2e">
85
- <circle cx="7.9" cy="3.4" r="1.7" />
86
- <rect x="6.2" y="3.4" width="3.4" height="1.6" />
87
- <rect x="6.2" y="10.8" width="3.4" height="9.8" />
88
- <circle cx="7.9" cy="20.6" r="1.7" />
89
- <circle cx="16.1" cy="3.4" r="1.7" />
90
- <rect x="14.4" y="3.4" width="3.4" height="9.8" />
91
- <rect x="14.4" y="19" width="3.4" height="1.6" />
92
- <circle cx="16.1" cy="20.6" r="1.7" />
93
- </g>
94
- <g fill="#e08a45">
95
- <circle cx="3.4" cy="7.9" r="1.7" />
96
- <rect x="3.4" y="6.2" width="9.8" height="3.4" />
97
- <rect x="19" y="6.2" width="1.6" height="3.4" />
98
- <circle cx="20.6" cy="7.9" r="1.7" />
99
- <circle cx="3.4" cy="16.1" r="1.7" />
100
- <rect x="3.4" y="14.4" width="1.6" height="3.4" />
101
- <rect x="10.8" y="14.4" width="9.8" height="3.4" />
102
- <circle cx="20.6" cy="16.1" r="1.7" />
103
- </g>
104
- </svg>
105
- <span>Coreloom sandbox</span>
106
- <small id="coreloom-splash-stage" class="coreloom-splash__stage"
107
- >Starting the sandbox</small
108
- >
109
- </div>
110
- </div>
111
- <div id="root"><!--ssr-body--></div>
112
- <script>
113
- (() => {
114
- const startedAt = performance.now();
115
- const stages = [
116
- 'Reading the workspace',
117
- 'Probing coding agents',
118
- 'Connecting to the application',
119
- 'Preparing sessions',
120
- ];
121
- let stageIndex = 0;
122
- let ready = false;
123
- let stageTimer;
124
- const stage = document.getElementById('coreloom-splash-stage');
125
- const advance = () => {
126
- if (!stage || ready) return;
127
- stage.textContent = stages[Math.min(stageIndex, stages.length - 1)];
128
- stageIndex += 1;
129
- };
130
- const finish = () => {
131
- if (ready) return;
132
- ready = true;
133
- clearInterval(stageTimer);
134
- const splash = document.getElementById('coreloom-splash');
135
- if (!splash) return;
136
- const leave = () => {
137
- splash.classList.add('coreloom-splash--leaving');
138
- document.documentElement.classList.remove('coreloom-booting');
139
- document.body.setAttribute('aria-busy', 'false');
140
- setTimeout(() => splash.remove(), 200);
141
- };
142
- const remaining = Math.max(0, 650 - (performance.now() - startedAt));
143
- setTimeout(leave, remaining);
144
- };
145
- window.addEventListener('DOMContentLoaded', () => {
146
- advance();
147
- stageTimer = setInterval(advance, 320);
148
- });
149
- window.addEventListener('coreloom:ready', finish, { once: true });
150
- })();
151
- </script>
152
- <noscript
153
- ><style>
154
- .coreloom-splash {
155
- display: none;
156
- }
157
- </style></noscript
158
- >
159
- <div hidden data-octane-hydrate-marker></div>
160
- </body>
161
- </html>
@@ -1,159 +0,0 @@
1
- <!doctype html>
2
- <html lang="en" class="flowdular-booting">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <meta name="theme-color" content="#ffffff" />
7
- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
8
- <title>Flowdular Sandbox</title>
9
- <style id="flowdular-critical-splash">
10
- html,
11
- body,
12
- #root {
13
- min-height: 100%;
14
- margin: 0;
15
- background: #ffffff;
16
- }
17
- .flowdular-splash {
18
- position: fixed;
19
- inset: 0;
20
- z-index: 2147483647;
21
- display: grid;
22
- place-items: center;
23
- background: #ffffff;
24
- color: #141b2e;
25
- transition: opacity 180ms ease;
26
- }
27
- .flowdular-splash__content {
28
- display: grid;
29
- justify-items: center;
30
- gap: 14px;
31
- font:
32
- 600 13px/1.2 ui-sans-serif,
33
- system-ui,
34
- sans-serif;
35
- letter-spacing: 0.14em;
36
- text-transform: uppercase;
37
- }
38
- .flowdular-splash__stage {
39
- min-width: 190px;
40
- font-size: 10px;
41
- font-weight: 500;
42
- color: #64738f;
43
- letter-spacing: 0.08em;
44
- text-align: center;
45
- text-transform: none;
46
- }
47
- .flowdular-splash__mark {
48
- display: block;
49
- width: 40px;
50
- height: 40px;
51
- animation: flowdular-pulse 1.4s ease-in-out infinite alternate;
52
- }
53
- .flowdular-splash--leaving {
54
- opacity: 0;
55
- pointer-events: none;
56
- }
57
- @keyframes flowdular-pulse {
58
- to {
59
- opacity: 0.45;
60
- }
61
- }
62
- @media (prefers-reduced-motion: reduce) {
63
- .flowdular-splash__mark {
64
- animation: none;
65
- }
66
- }
67
- </style>
68
- <!--ssr-head-->
69
- </head>
70
- <body aria-busy="true">
71
- <div
72
- id="flowdular-splash"
73
- class="flowdular-splash"
74
- role="status"
75
- aria-live="polite"
76
- >
77
- <div class="flowdular-splash__content">
78
- <svg
79
- class="flowdular-splash__mark"
80
- viewBox="0 0 24 24"
81
- aria-hidden="true"
82
- >
83
- <g fill="#141b2e">
84
- <circle cx="7.9" cy="3.4" r="1.7" />
85
- <rect x="6.2" y="3.4" width="3.4" height="1.6" />
86
- <rect x="6.2" y="10.8" width="3.4" height="9.8" />
87
- <circle cx="7.9" cy="20.6" r="1.7" />
88
- <circle cx="16.1" cy="3.4" r="1.7" />
89
- <rect x="14.4" y="3.4" width="3.4" height="9.8" />
90
- <rect x="14.4" y="19" width="3.4" height="1.6" />
91
- <circle cx="16.1" cy="20.6" r="1.7" />
92
- </g>
93
- <g fill="#e08a45">
94
- <circle cx="3.4" cy="7.9" r="1.7" />
95
- <rect x="3.4" y="6.2" width="9.8" height="3.4" />
96
- <rect x="19" y="6.2" width="1.6" height="3.4" />
97
- <circle cx="20.6" cy="7.9" r="1.7" />
98
- <circle cx="3.4" cy="16.1" r="1.7" />
99
- <rect x="3.4" y="14.4" width="1.6" height="3.4" />
100
- <rect x="10.8" y="14.4" width="9.8" height="3.4" />
101
- <circle cx="20.6" cy="16.1" r="1.7" />
102
- </g>
103
- </svg>
104
- <span>Flowdular sandbox</span>
105
- <small id="flowdular-splash-stage" class="flowdular-splash__stage"
106
- >Starting the sandbox</small
107
- >
108
- </div>
109
- </div>
110
- <div id="root"><!--ssr-body--></div>
111
- <script>
112
- (() => {
113
- const startedAt = performance.now();
114
- const stages = [
115
- 'Reading the workspace',
116
- 'Probing coding agents',
117
- 'Connecting to the application',
118
- 'Preparing sessions',
119
- ];
120
- let stageIndex = 0;
121
- let ready = false;
122
- let stageTimer;
123
- const stage = document.getElementById('flowdular-splash-stage');
124
- const advance = () => {
125
- if (!stage || ready) return;
126
- stage.textContent = stages[Math.min(stageIndex, stages.length - 1)];
127
- stageIndex += 1;
128
- };
129
- const finish = () => {
130
- if (ready) return;
131
- ready = true;
132
- clearInterval(stageTimer);
133
- const splash = document.getElementById('flowdular-splash');
134
- if (!splash) return;
135
- const leave = () => {
136
- splash.classList.add('flowdular-splash--leaving');
137
- document.documentElement.classList.remove('flowdular-booting');
138
- document.body.setAttribute('aria-busy', 'false');
139
- setTimeout(() => splash.remove(), 200);
140
- };
141
- const remaining = Math.max(0, 650 - (performance.now() - startedAt));
142
- setTimeout(leave, remaining);
143
- };
144
- window.addEventListener('DOMContentLoaded', () => {
145
- advance();
146
- stageTimer = setInterval(advance, 320);
147
- });
148
- window.addEventListener('flowdular:ready', finish, { once: true });
149
- })();
150
- </script>
151
- <noscript
152
- ><style>
153
- .flowdular-splash {
154
- display: none;
155
- }
156
- </style></noscript
157
- >
158
- </body>
159
- </html>
@@ -1,36 +0,0 @@
1
- import { defineConfig, RenderRoute } from '@octanejs/vite-plugin';
2
- import { createSandboxRoutes } from './src/server/routes.ts';
3
- import { processPreviewRuntime } from './src/server/preview-runtime.ts';
4
- import { createSandboxRuntime } from './src/server/runtime.ts';
5
- import { findFlowdularWorkspace } from './src/server/workspace-root.ts';
6
-
7
- const SHELL = ['App', '/src/App.tsrx'] as const;
8
- const PREVIEW = ['PreviewHost', '/src/preview/PreviewHost.tsrx'] as const;
9
-
10
- const workspace = await findFlowdularWorkspace(
11
- process.env.FD_SANDBOX_WORKSPACE ?? process.cwd(),
12
- );
13
- const runtime = await createSandboxRuntime(workspace.root);
14
- /* Server route modules are reevaluated during HMR. The preview runtime belongs
15
- to the Vite process so each generation reuses the same session workers. */
16
- const preview = processPreviewRuntime(workspace.root);
17
-
18
- export default defineConfig({
19
- router: {
20
- routes: [
21
- new RenderRoute({ path: '/', entry: SHELL }),
22
- new RenderRoute({ path: '/sessions/:id', entry: SHELL }),
23
- new RenderRoute({ path: '/settings', entry: SHELL }),
24
- /* The preview renders one draft module inside the application shell,
25
- in its own document, so the chat and the preview cannot share state
26
- by accident. */
27
- new RenderRoute({ path: '/preview/:sessionId', entry: PREVIEW }),
28
- new RenderRoute({ path: '/preview/:sessionId/:view', entry: PREVIEW }),
29
- ...createSandboxRoutes(runtime, preview, {
30
- ...(process.env.FD_SANDBOX_PORT
31
- ? { port: Number(process.env.FD_SANDBOX_PORT) }
32
- : {}),
33
- }),
34
- ],
35
- },
36
- });
@@ -1,83 +0,0 @@
1
- {
2
- "name": "@flowdular/sandbox",
3
- "version": "0.1.0",
4
- "description": "The Flowdular sandbox: chat a change, build it behind the gates, preview it in the real application, deliver it as code.",
5
- "license": "MIT",
6
- "homepage": "https://github.com/flowdular/flowdular/tree/main/packages/sandbox#readme",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/Flowdular/flowdular.git",
10
- "directory": "packages/sandbox"
11
- },
12
- "bugs": {
13
- "url": "https://github.com/flowdular/flowdular/issues"
14
- },
15
- "keywords": [
16
- "flowdular",
17
- "octanejs",
18
- "agentic",
19
- "coding-agent",
20
- "sandbox",
21
- "modules",
22
- "erp"
23
- ],
24
- "engines": {
25
- "node": ">=22.22.2"
26
- },
27
- "files": [
28
- "src",
29
- "schemas",
30
- "dist",
31
- "bin",
32
- "public",
33
- "module.json",
34
- "migrations",
35
- "translations",
36
- "spec",
37
- "README.md",
38
- "LICENSE",
39
- "index.html",
40
- "octane.config.ts",
41
- "vite.config.ts"
42
- ],
43
- "type": "module",
44
- "bin": {
45
- "flowdular-sandbox": "./bin/flowdular-sandbox.mjs"
46
- },
47
- "exports": {
48
- ".": "./src/index.ts",
49
- "./server": "./src/server/index.ts"
50
- },
51
- "scripts": {
52
- "dev": "node bin/flowdular-sandbox.mjs",
53
- "typecheck": "tsrx-tsc --noEmit -p tsconfig.json",
54
- "test": "vitest run"
55
- },
56
- "dependencies": {
57
- "@flowdular/ai-provider": "workspace:*",
58
- "@flowdular/client": "workspace:*",
59
- "@flowdular/coding-agent": "workspace:*",
60
- "@flowdular/contracts": "workspace:*",
61
- "@flowdular/database": "workspace:*",
62
- "@flowdular/database-pglite": "workspace:*",
63
- "@flowdular/dev-console": "workspace:*",
64
- "@flowdular/kernel": "workspace:*",
65
- "@flowdular/module-auth": "workspace:*",
66
- "@flowdular/server": "workspace:*",
67
- "@flowdular/ui": "workspace:*",
68
- "@octanejs/seo": "0.0.38",
69
- "@octanejs/vite-plugin": "0.1.51",
70
- "octane": "0.1.51",
71
- "segment-state": "0.2.0",
72
- "vite": "8.2.2"
73
- },
74
- "devDependencies": {
75
- "@flowdular/database-testing": "workspace:*",
76
- "@octanejs/app-core": "0.0.47",
77
- "@tsrx/typescript-plugin": "0.3.120",
78
- "@types/node": "24.13.3",
79
- "typescript": "5.9.3",
80
- "vitest": "4.1.10"
81
- },
82
- "private": true
83
- }
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect width="24" height="24" rx="5.4" fill="#2557D6"/><g transform="translate(12 12) scale(0.64) translate(-12 -12)"><circle cx="7.9" cy="3.4" r="1.7" fill="#fff"/><rect x="6.2" y="3.4" width="3.4" height="1.6" fill="#fff"/><rect x="6.2" y="10.8" width="3.4" height="9.8" fill="#fff"/><circle cx="7.9" cy="20.6" r="1.7" fill="#fff"/><circle cx="16.1" cy="3.4" r="1.7" fill="#fff"/><rect x="14.4" y="3.4" width="3.4" height="9.8" fill="#fff"/><rect x="14.4" y="19" width="3.4" height="1.6" fill="#fff"/><circle cx="16.1" cy="20.6" r="1.7" fill="#fff"/><circle cx="3.4" cy="7.9" r="1.7" fill="#fff"/><rect x="3.4" y="6.2" width="9.8" height="3.4" fill="#fff"/><rect x="19" y="6.2" width="1.6" height="3.4" fill="#fff"/><circle cx="20.6" cy="7.9" r="1.7" fill="#fff"/><circle cx="3.4" cy="16.1" r="1.7" fill="#fff"/><rect x="3.4" y="14.4" width="1.6" height="3.4" fill="#fff"/><rect x="10.8" y="14.4" width="9.8" height="3.4" fill="#fff"/><circle cx="20.6" cy="16.1" r="1.7" fill="#fff"/></g></svg>
Binary file