babavoss 0.0.0-stage → 0.0.2

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 (159) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +7 -0
  3. package/bin/voss.ts +48 -0
  4. package/gui/babavoss-web.js +234 -0
  5. package/gui/chunk-5hpp1ypv.js +11710 -0
  6. package/gui/chunk-9rq662fd.js +8627 -0
  7. package/gui/chunk-k3cm8j6r.js +433 -0
  8. package/gui/chunk-pk09y98y.js +50 -0
  9. package/gui/chunk-smz02qa6.js +186 -0
  10. package/gui/chunk-wwqypxre.js +49 -0
  11. package/gui/gui.js +2015 -0
  12. package/gui/react-compiler-runtime.js +39 -0
  13. package/gui/react-dom-client.js +21 -0
  14. package/gui/react-dom.js +44 -0
  15. package/gui/react-jsx-runtime.js +19 -0
  16. package/gui/react.js +105 -0
  17. package/gui/theme.css +3053 -0
  18. package/index.ts +15 -0
  19. package/package.json +52 -4
  20. package/src/baba/check.ts +90 -0
  21. package/src/baba/config.ts +261 -0
  22. package/src/baba/find.ts +12 -0
  23. package/src/baba/init.ts +176 -0
  24. package/src/baba/node.ts +483 -0
  25. package/src/baba/project.ts +63 -0
  26. package/src/baba/registry.ts +35 -0
  27. package/src/baba/worker.ts +55 -0
  28. package/src/bench/index.ts +6 -0
  29. package/src/bench/measure.ts +132 -0
  30. package/src/bench/scenarios.ts +136 -0
  31. package/src/build/builder.ts +74 -0
  32. package/src/build/failure.ts +78 -0
  33. package/src/build/guard.ts +85 -0
  34. package/src/build/mdx-register.ts +3 -0
  35. package/src/build/mdx.ts +38 -0
  36. package/src/build/project.ts +38 -0
  37. package/src/build/views.ts +146 -0
  38. package/src/builder/main.ts +29 -0
  39. package/src/desktop/bob.ts +76 -0
  40. package/src/desktop/desktop.css +111 -0
  41. package/src/desktop/icons.ts +50 -0
  42. package/src/desktop/index.ts +323 -0
  43. package/src/desktop/routes.ts +98 -0
  44. package/src/desktop/view.tsx +673 -0
  45. package/src/door/core.ts +384 -0
  46. package/src/ecs/baba.ts +431 -0
  47. package/src/ecs/codec.ts +334 -0
  48. package/src/ecs/handles.ts +91 -0
  49. package/src/ecs/replica.ts +150 -0
  50. package/src/ecs/runtime.ts +603 -0
  51. package/src/ecs/scheduler.ts +75 -0
  52. package/src/ecs/snapshot.ts +102 -0
  53. package/src/ecs/state.ts +759 -0
  54. package/src/ecs/system.ts +256 -0
  55. package/src/ecs/table.ts +420 -0
  56. package/src/ecs/testbed.ts +97 -0
  57. package/src/exec/host.ts +177 -0
  58. package/src/exec/main.ts +98 -0
  59. package/src/exec/watch.ts +7 -0
  60. package/src/exec/wire.ts +29 -0
  61. package/src/generated/build.ts +4 -0
  62. package/src/gui/css.d.ts +1 -0
  63. package/src/gui/gui.tsx +245 -0
  64. package/src/gui/index.ts +51 -0
  65. package/src/gui/inspector.tsx +47 -0
  66. package/src/gui/levels.tsx +73 -0
  67. package/src/gui/promptware.tsx +68 -0
  68. package/src/gui/runner.tsx +118 -0
  69. package/src/gui/theme.css +498 -0
  70. package/src/gui/theme.ts +25 -0
  71. package/src/gui/wizard.tsx +227 -0
  72. package/src/guide/add-a-desktop.mdx +100 -0
  73. package/src/guide/compose-an-interface.mdx +84 -0
  74. package/src/guide/index.ts +13 -0
  75. package/src/guide/reach-outside.mdx +112 -0
  76. package/src/guide/spec-a-system.mdx +93 -0
  77. package/src/guide/systems-together.mdx +72 -0
  78. package/src/guide/write-a-system.mdx +183 -0
  79. package/src/guide/write-promptware.mdx +90 -0
  80. package/src/http/server.ts +310 -0
  81. package/src/kernel/build.ts +21 -0
  82. package/src/kernel/builder.ts +105 -0
  83. package/src/kernel/children.ts +117 -0
  84. package/src/kernel/context.ts +90 -0
  85. package/src/kernel/lock.ts +46 -0
  86. package/src/kernel/names.ts +14 -0
  87. package/src/kernel/schema.ts +130 -0
  88. package/src/kernel/where.ts +12 -0
  89. package/src/kit/index.ts +232 -0
  90. package/src/maker/system.ts +213 -0
  91. package/src/mcp/daemon.ts +61 -0
  92. package/src/mcp/main.ts +208 -0
  93. package/src/mcp/rpc.ts +64 -0
  94. package/src/mcp/tools.ts +125 -0
  95. package/src/prompt/evals.ts +42 -0
  96. package/src/prompt/index.ts +242 -0
  97. package/src/prompt/jsx-dev-runtime.ts +1 -0
  98. package/src/prompt/jsx-runtime.ts +49 -0
  99. package/src/prompt/mdx.d.ts +1 -0
  100. package/src/promptware/compile.ts +183 -0
  101. package/src/promptware/define.ts +16 -0
  102. package/src/promptware/disk.ts +72 -0
  103. package/src/promptware/markdown.d.ts +6 -0
  104. package/src/promptware/sync.ts +437 -0
  105. package/src/promptware/system.ts +215 -0
  106. package/src/runtime/bridge.ts +85 -0
  107. package/src/runtime/connect.ts +54 -0
  108. package/src/runtime/env.ts +35 -0
  109. package/src/runtime/harness.ts +80 -0
  110. package/src/runtime/main.ts +119 -0
  111. package/src/runtime/worker.ts +33 -0
  112. package/src/server/edge.ts +332 -0
  113. package/src/server/main.ts +45 -0
  114. package/src/server/messages.ts +97 -0
  115. package/src/server/protocol.ts +37 -0
  116. package/src/services/args.ts +45 -0
  117. package/src/services/exec.ts +69 -0
  118. package/src/services/fs.ts +139 -0
  119. package/src/services/http.ts +30 -0
  120. package/src/services/index.ts +113 -0
  121. package/src/services/secrets.ts +18 -0
  122. package/src/shell/address.ts +21 -0
  123. package/src/shell/args.ts +219 -0
  124. package/src/shell/client.ts +107 -0
  125. package/src/shell/codes.ts +26 -0
  126. package/src/shell/positional.ts +20 -0
  127. package/src/shell/run.ts +470 -0
  128. package/src/shell/service.ts +167 -0
  129. package/src/shell/state.ts +204 -0
  130. package/src/spec/adapters.ts +72 -0
  131. package/src/spec/diff.ts +26 -0
  132. package/src/spec/files.ts +17 -0
  133. package/src/spec/index.ts +155 -0
  134. package/src/spec/run.ts +97 -0
  135. package/src/spec/take.ts +54 -0
  136. package/src/test/index.ts +8 -0
  137. package/src/test/prove.ts +56 -0
  138. package/src/test/records.ts +23 -0
  139. package/src/test/specs.ts +56 -0
  140. package/src/test/steps.ts +100 -0
  141. package/src/test/voss-dir.ts +17 -0
  142. package/src/transport/messages.ts +110 -0
  143. package/src/transport/transport.ts +62 -0
  144. package/src/wall/probe.ts +67 -0
  145. package/src/wall/profile.ts +103 -0
  146. package/src/wall/spawn.ts +59 -0
  147. package/src/web/app.tsx +53 -0
  148. package/src/web/core.tsx +140 -0
  149. package/src/web/form.ts +155 -0
  150. package/src/web/hooks.ts +135 -0
  151. package/src/web/index.tsx +17 -0
  152. package/src/web/list.ts +19 -0
  153. package/src/web/maker.tsx +766 -0
  154. package/src/web/objects.tsx +213 -0
  155. package/src/web/socket.ts +84 -0
  156. package/src/web/state.tsx +69 -0
  157. package/src/web/store.ts +221 -0
  158. package/src/web/ui.tsx +135 -0
  159. package/README.md +0 -4
@@ -0,0 +1,39 @@
1
+ import {
2
+ require_react
3
+ } from "./chunk-k3cm8j6r.js";
4
+ import {
5
+ __commonJS,
6
+ __esm,
7
+ __export,
8
+ __toESM
9
+ } from "./chunk-wwqypxre.js";
10
+
11
+ // ../../node_modules/.bun/react@19.3.0/node_modules/react/cjs/react-compiler-runtime.production.js
12
+ var exports_react_compiler_runtime_production = {};
13
+ __export(exports_react_compiler_runtime_production, {
14
+ c: () => $c
15
+ });
16
+ var react, ReactSharedInternals, $c = function(size) {
17
+ return ReactSharedInternals.H.useMemoCache(size);
18
+ };
19
+ var init_react_compiler_runtime_production = __esm(() => {
20
+ react = __toESM(require_react(), 1);
21
+ ReactSharedInternals = react.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
22
+ });
23
+
24
+ // ../../node_modules/.bun/react@19.3.0/node_modules/react/compiler-runtime.js
25
+ var require_compiler_runtime = __commonJS(function(exports, module) {
26
+ init_react_compiler_runtime_production();
27
+ if (true) {
28
+ module.exports = exports_react_compiler_runtime_production;
29
+ }
30
+ });
31
+
32
+ // src/gui/shared/react-compiler-runtime.ts
33
+ var m = __toESM(require_compiler_runtime(), 1);
34
+ var react_compiler_runtime_default = m.default ?? m;
35
+ var c2 = m.c;
36
+ export {
37
+ c2 as c,
38
+ react_compiler_runtime_default as default
39
+ };
@@ -0,0 +1,21 @@
1
+ import {
2
+ require_client
3
+ } from "./chunk-5hpp1ypv.js";
4
+ import"./chunk-smz02qa6.js";
5
+ import"./chunk-k3cm8j6r.js";
6
+ import {
7
+ __toESM
8
+ } from "./chunk-wwqypxre.js";
9
+
10
+ // src/gui/shared/react-dom-client.ts
11
+ var m = __toESM(require_client(), 1);
12
+ var react_dom_client_default = m.default ?? m;
13
+ var createRoot2 = m.createRoot;
14
+ var hydrateRoot2 = m.hydrateRoot;
15
+ var version2 = m.version;
16
+ export {
17
+ createRoot2 as createRoot,
18
+ react_dom_client_default as default,
19
+ hydrateRoot2 as hydrateRoot,
20
+ version2 as version
21
+ };
@@ -0,0 +1,44 @@
1
+ import {
2
+ require_react_dom
3
+ } from "./chunk-smz02qa6.js";
4
+ import"./chunk-k3cm8j6r.js";
5
+ import {
6
+ __toESM
7
+ } from "./chunk-wwqypxre.js";
8
+
9
+ // src/gui/shared/react-dom.ts
10
+ var m = __toESM(require_react_dom(), 1);
11
+ var react_dom_default = m.default ?? m;
12
+ var __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE2 = m.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
13
+ var browser2 = m.browser;
14
+ var createPortal2 = m.createPortal;
15
+ var flushSync2 = m.flushSync;
16
+ var preconnect2 = m.preconnect;
17
+ var prefetchDNS2 = m.prefetchDNS;
18
+ var preinit2 = m.preinit;
19
+ var preinitModule2 = m.preinitModule;
20
+ var preload2 = m.preload;
21
+ var preloadModule2 = m.preloadModule;
22
+ var requestFormReset2 = m.requestFormReset;
23
+ var unstable_batchedUpdates2 = m.unstable_batchedUpdates;
24
+ var useFormState2 = m.useFormState;
25
+ var useFormStatus2 = m.useFormStatus;
26
+ var version2 = m.version;
27
+ export {
28
+ __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE2 as __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
29
+ browser2 as browser,
30
+ createPortal2 as createPortal,
31
+ react_dom_default as default,
32
+ flushSync2 as flushSync,
33
+ preconnect2 as preconnect,
34
+ prefetchDNS2 as prefetchDNS,
35
+ preinit2 as preinit,
36
+ preinitModule2 as preinitModule,
37
+ preload2 as preload,
38
+ preloadModule2 as preloadModule,
39
+ requestFormReset2 as requestFormReset,
40
+ unstable_batchedUpdates2 as unstable_batchedUpdates,
41
+ useFormState2 as useFormState,
42
+ useFormStatus2 as useFormStatus,
43
+ version2 as version
44
+ };
@@ -0,0 +1,19 @@
1
+ import {
2
+ require_jsx_runtime
3
+ } from "./chunk-pk09y98y.js";
4
+ import {
5
+ __toESM
6
+ } from "./chunk-wwqypxre.js";
7
+
8
+ // src/gui/shared/react-jsx-runtime.ts
9
+ var m = __toESM(require_jsx_runtime(), 1);
10
+ var react_jsx_runtime_default = m.default ?? m;
11
+ var Fragment2 = m.Fragment;
12
+ var jsx2 = m.jsx;
13
+ var jsxs2 = m.jsxs;
14
+ export {
15
+ Fragment2 as Fragment,
16
+ react_jsx_runtime_default as default,
17
+ jsx2 as jsx,
18
+ jsxs2 as jsxs
19
+ };
package/gui/react.js ADDED
@@ -0,0 +1,105 @@
1
+ import {
2
+ require_react
3
+ } from "./chunk-k3cm8j6r.js";
4
+ import {
5
+ __toESM
6
+ } from "./chunk-wwqypxre.js";
7
+
8
+ // src/gui/shared/react.ts
9
+ var m = __toESM(require_react(), 1);
10
+ var react_default = m.default ?? m;
11
+ var Activity2 = m.Activity;
12
+ var Children2 = m.Children;
13
+ var Component2 = m.Component;
14
+ var Fragment2 = m.Fragment;
15
+ var Profiler2 = m.Profiler;
16
+ var PureComponent2 = m.PureComponent;
17
+ var StrictMode2 = m.StrictMode;
18
+ var Suspense2 = m.Suspense;
19
+ var ViewTransition2 = m.ViewTransition;
20
+ var __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE2 = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
21
+ var __COMPILER_RUNTIME2 = m.__COMPILER_RUNTIME;
22
+ var act2 = m.act;
23
+ var addTransitionType2 = m.addTransitionType;
24
+ var cache2 = m.cache;
25
+ var cacheSignal2 = m.cacheSignal;
26
+ var captureOwnerStack2 = m.captureOwnerStack;
27
+ var cloneElement2 = m.cloneElement;
28
+ var createContext2 = m.createContext;
29
+ var createElement2 = m.createElement;
30
+ var createRef2 = m.createRef;
31
+ var forwardRef2 = m.forwardRef;
32
+ var isValidElement2 = m.isValidElement;
33
+ var lazy2 = m.lazy;
34
+ var memo2 = m.memo;
35
+ var startTransition2 = m.startTransition;
36
+ var unstable_useCacheRefresh2 = m.unstable_useCacheRefresh;
37
+ var use2 = m.use;
38
+ var useActionState2 = m.useActionState;
39
+ var useCallback2 = m.useCallback;
40
+ var useContext2 = m.useContext;
41
+ var useDebugValue2 = m.useDebugValue;
42
+ var useDeferredValue2 = m.useDeferredValue;
43
+ var useEffect2 = m.useEffect;
44
+ var useEffectEvent2 = m.useEffectEvent;
45
+ var useId2 = m.useId;
46
+ var useImperativeHandle2 = m.useImperativeHandle;
47
+ var useInsertionEffect2 = m.useInsertionEffect;
48
+ var useLayoutEffect2 = m.useLayoutEffect;
49
+ var useMemo2 = m.useMemo;
50
+ var useOptimistic2 = m.useOptimistic;
51
+ var useReducer2 = m.useReducer;
52
+ var useRef2 = m.useRef;
53
+ var useState2 = m.useState;
54
+ var useSyncExternalStore2 = m.useSyncExternalStore;
55
+ var useTransition2 = m.useTransition;
56
+ var version2 = m.version;
57
+ export {
58
+ Activity2 as Activity,
59
+ Children2 as Children,
60
+ Component2 as Component,
61
+ Fragment2 as Fragment,
62
+ Profiler2 as Profiler,
63
+ PureComponent2 as PureComponent,
64
+ StrictMode2 as StrictMode,
65
+ Suspense2 as Suspense,
66
+ ViewTransition2 as ViewTransition,
67
+ __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE2 as __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
68
+ __COMPILER_RUNTIME2 as __COMPILER_RUNTIME,
69
+ act2 as act,
70
+ addTransitionType2 as addTransitionType,
71
+ cache2 as cache,
72
+ cacheSignal2 as cacheSignal,
73
+ captureOwnerStack2 as captureOwnerStack,
74
+ cloneElement2 as cloneElement,
75
+ createContext2 as createContext,
76
+ createElement2 as createElement,
77
+ createRef2 as createRef,
78
+ react_default as default,
79
+ forwardRef2 as forwardRef,
80
+ isValidElement2 as isValidElement,
81
+ lazy2 as lazy,
82
+ memo2 as memo,
83
+ startTransition2 as startTransition,
84
+ unstable_useCacheRefresh2 as unstable_useCacheRefresh,
85
+ use2 as use,
86
+ useActionState2 as useActionState,
87
+ useCallback2 as useCallback,
88
+ useContext2 as useContext,
89
+ useDebugValue2 as useDebugValue,
90
+ useDeferredValue2 as useDeferredValue,
91
+ useEffect2 as useEffect,
92
+ useEffectEvent2 as useEffectEvent,
93
+ useId2 as useId,
94
+ useImperativeHandle2 as useImperativeHandle,
95
+ useInsertionEffect2 as useInsertionEffect,
96
+ useLayoutEffect2 as useLayoutEffect,
97
+ useMemo2 as useMemo,
98
+ useOptimistic2 as useOptimistic,
99
+ useReducer2 as useReducer,
100
+ useRef2 as useRef,
101
+ useState2 as useState,
102
+ useSyncExternalStore2 as useSyncExternalStore,
103
+ useTransition2 as useTransition,
104
+ version2 as version
105
+ };