sh3-core 0.15.4 → 0.16.1

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 (228) hide show
  1. package/dist/BrandSlot.svelte +9 -9
  2. package/dist/{Shell.svelte → Sh3.svelte} +65 -65
  3. package/dist/Sh3.svelte.d.ts +5 -0
  4. package/dist/__test__/render.js +1 -1
  5. package/dist/actions/ActionPanel.svelte +3 -3
  6. package/dist/actions/CommandPalette.svelte +2 -2
  7. package/dist/actions/MenuBar.svelte +1 -1
  8. package/dist/actions/MenuBar.test.js +1 -1
  9. package/dist/actions/MenuButton.svelte +3 -3
  10. package/dist/actions/dispatcher.svelte.js +1 -1
  11. package/dist/actions/listActive.js +1 -1
  12. package/dist/actions/listeners.js +6 -6
  13. package/dist/actions/selection.svelte.d.ts +2 -2
  14. package/dist/actions/selection.svelte.js +4 -4
  15. package/dist/actions/selection.test.js +1 -1
  16. package/dist/actions/{shellActions.test.js → sh3Actions.test.js} +14 -14
  17. package/dist/actions/state.svelte.d.ts +3 -3
  18. package/dist/actions/state.svelte.js +3 -3
  19. package/dist/actions/syncMountedViewIds.test.js +1 -1
  20. package/dist/actions/types.d.ts +1 -1
  21. package/dist/api.d.ts +5 -5
  22. package/dist/api.js +7 -7
  23. package/dist/app/admin/ApiKeysView.svelte +9 -9
  24. package/dist/app/admin/AuthSettingsView.svelte +6 -6
  25. package/dist/app/admin/SystemView.svelte +12 -12
  26. package/dist/app/admin/UsersView.svelte +8 -8
  27. package/dist/app/store/AppUpdateAvailableModal.svelte +14 -14
  28. package/dist/app/store/PermissionConfirmModal.svelte +20 -20
  29. package/dist/app/store/StoreView.svelte +51 -51
  30. package/dist/app/store/UninstallAppDialog.svelte +14 -14
  31. package/dist/app/store/storeShard.svelte.js +1 -1
  32. package/dist/app/store/verbs.js +1 -1
  33. package/dist/apps/lifecycle.d.ts +1 -1
  34. package/dist/apps/lifecycle.js +4 -4
  35. package/dist/apps/lifecycle.test.js +5 -5
  36. package/dist/apps/registry.svelte.d.ts +2 -2
  37. package/dist/apps/registry.svelte.js +3 -3
  38. package/dist/apps/types.d.ts +1 -1
  39. package/dist/auth/GuestBanner.svelte +19 -19
  40. package/dist/auth/SignInWall.svelte +17 -17
  41. package/dist/auth/auth.svelte.d.ts +1 -1
  42. package/dist/auth/auth.svelte.js +1 -1
  43. package/dist/boot/satellitePayload.js +1 -1
  44. package/dist/build.d.ts +27 -0
  45. package/dist/build.js +59 -1
  46. package/dist/build.test.js +31 -0
  47. package/dist/color/api.d.ts +1 -1
  48. package/dist/color/api.js +1 -1
  49. package/dist/color/{shell-api.js → sh3-api.js} +3 -3
  50. package/dist/conflicts/ConflictModal.svelte +1 -1
  51. package/dist/conflicts/ConflictModal.svelte.d.ts +1 -1
  52. package/dist/conflicts/DetailView.svelte +19 -19
  53. package/dist/conflicts/PromptView.svelte +9 -9
  54. package/dist/conflicts/adapter-documents.js +1 -1
  55. package/dist/conflicts/api.d.ts +1 -1
  56. package/dist/conflicts/api.js +2 -2
  57. package/dist/conflicts/renderer-registry.js +1 -1
  58. package/dist/conflicts/renderers/MetaOnlyRenderer.svelte +8 -8
  59. package/dist/conflicts/renderers/TextDiffRenderer.svelte +15 -15
  60. package/dist/conflicts/renderers/index.js +1 -1
  61. package/dist/conflicts/resolve-primitive.js +1 -1
  62. package/dist/conflicts/{shell-api.js → sh3-api.js} +2 -2
  63. package/dist/contributions/registry.js +1 -1
  64. package/dist/createShell.d.ts +2 -2
  65. package/dist/createShell.js +6 -6
  66. package/dist/host-entry.d.ts +1 -1
  67. package/dist/host-entry.js +2 -2
  68. package/dist/host.js +2 -2
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +2 -2
  71. package/dist/keys/ConsentDialog.svelte +15 -15
  72. package/dist/keys/consent.svelte.d.ts +2 -2
  73. package/dist/keys/consent.svelte.js +3 -3
  74. package/dist/keys/revocation-bus.svelte.d.ts +3 -3
  75. package/dist/keys/revocation-bus.svelte.js +3 -3
  76. package/dist/layout/DragPreview.svelte +9 -9
  77. package/dist/layout/LayoutRenderer.browser.test.js +2 -2
  78. package/dist/layout/LayoutRenderer.svelte +4 -4
  79. package/dist/layout/SlotContainer.svelte +12 -12
  80. package/dist/layout/SlotDropZone.svelte +2 -2
  81. package/dist/layout/inspection.d.ts +1 -1
  82. package/dist/layout/inspection.js +1 -1
  83. package/dist/layout/store.svelte.js +3 -3
  84. package/dist/layout/types.d.ts +1 -1
  85. package/dist/layouts-shard/LayoutSaveModal.svelte +20 -20
  86. package/dist/layouts-shard/LayoutsSection.svelte +11 -11
  87. package/dist/layouts-shard/filter.test.js +3 -3
  88. package/dist/layouts-shard/layoutsApi.test.js +3 -3
  89. package/dist/layouts-shard/layoutsShard.svelte.test.js +7 -7
  90. package/dist/migrations/mode-id-rename.js +2 -2
  91. package/dist/overlays/ConfirmDialog.svelte +8 -8
  92. package/dist/overlays/EntityAppearanceModal.svelte +19 -19
  93. package/dist/overlays/FloatFrame.svelte +20 -20
  94. package/dist/overlays/FloatLayer.svelte +1 -1
  95. package/dist/overlays/ModalFrame.svelte +5 -5
  96. package/dist/overlays/PopupFrame.svelte +4 -4
  97. package/dist/overlays/ToastItem.svelte +12 -12
  98. package/dist/overlays/float.d.ts +2 -2
  99. package/dist/overlays/float.js +3 -3
  100. package/dist/overlays/float.test.js +6 -6
  101. package/dist/overlays/modal.js +1 -1
  102. package/dist/overlays/modal.test.js +2 -2
  103. package/dist/overlays/parentHost.js +2 -2
  104. package/dist/overlays/parentHost.test.js +5 -5
  105. package/dist/overlays/popup.js +2 -2
  106. package/dist/overlays/popup.test.js +2 -2
  107. package/dist/overlays/roots.js +4 -4
  108. package/dist/overlays/toast.js +1 -1
  109. package/dist/overlays/types.js +3 -3
  110. package/dist/primitives/Button.svelte +16 -16
  111. package/dist/primitives/Collapsible.svelte +11 -11
  112. package/dist/primitives/ResizableSplitter.svelte +10 -10
  113. package/dist/primitives/TabbedPanel.svelte +19 -19
  114. package/dist/primitives/base.css +57 -57
  115. package/dist/primitives/widgets/ColorSwatch.svelte +15 -15
  116. package/dist/primitives/widgets/ColorSwatch.svelte.test.js +4 -4
  117. package/dist/primitives/widgets/Field.svelte +20 -20
  118. package/dist/primitives/widgets/FilePicker.svelte +13 -13
  119. package/dist/primitives/widgets/IconPicker.svelte +14 -14
  120. package/dist/primitives/widgets/IconToggleGroup.svelte +14 -14
  121. package/dist/primitives/widgets/NumberInput.svelte +17 -17
  122. package/dist/primitives/widgets/PickerList.svelte +17 -17
  123. package/dist/primitives/widgets/RangeSlider.svelte +16 -16
  124. package/dist/primitives/widgets/Segmented.svelte +16 -16
  125. package/dist/primitives/widgets/Select.svelte +14 -14
  126. package/dist/primitives/widgets/Select.svelte.test.js +2 -2
  127. package/dist/primitives/widgets/Slider.svelte +20 -20
  128. package/dist/primitives/widgets/SliderGroup.svelte +2 -2
  129. package/dist/primitives/widgets/Textarea.svelte +13 -13
  130. package/dist/primitives/widgets/_select-listbox.svelte +15 -15
  131. package/dist/projects/session-state.svelte.js +1 -1
  132. package/dist/projects-shard/DeleteProjectDialog.svelte +12 -12
  133. package/dist/projects-shard/ProjectManage.svelte +25 -25
  134. package/dist/projects-shard/ProjectsSection.svelte +12 -12
  135. package/dist/registry/installer.d.ts +2 -2
  136. package/dist/registry/installer.js +2 -2
  137. package/dist/registry/loader.js +1 -1
  138. package/dist/registry/permission-descriptions.js +2 -2
  139. package/dist/registry/permission-descriptions.test.js +1 -1
  140. package/dist/runtime/runVerb-shell.test.js +2 -2
  141. package/dist/runtime/runVerb.js +4 -4
  142. package/dist/runtime/runVerb.test.js +4 -4
  143. package/dist/satellite/SatelliteShell.svelte +2 -2
  144. package/dist/{shell → sh3}/views/KeysAndPeers.svelte +7 -7
  145. package/dist/sh3Api/headless.d.ts +4 -0
  146. package/dist/{shell-shard/shellApi.js → sh3Api/headless.js} +5 -5
  147. package/dist/{shell-shard/shellApi.svelte.test.js → sh3Api/headless.svelte.test.js} +11 -11
  148. package/dist/{shellApi → sh3Api}/window.js +2 -2
  149. package/dist/{shellApi → sh3Api}/window.test.js +1 -1
  150. package/dist/{shellRuntime.svelte.d.ts → sh3Runtime.svelte.d.ts} +11 -11
  151. package/dist/{shellRuntime.svelte.js → sh3Runtime.svelte.js} +10 -10
  152. package/dist/sh3Runtime.svelte.test.d.ts +1 -0
  153. package/dist/{shellRuntime.svelte.test.js → sh3Runtime.svelte.test.js} +10 -10
  154. package/dist/sh3core-shard/AppInfoView.svelte +19 -19
  155. package/dist/sh3core-shard/{ShellHome.svelte → Sh3Home.svelte} +82 -82
  156. package/dist/sh3core-shard/Sh3Home.svelte.d.ts +3 -0
  157. package/dist/sh3core-shard/{ShellTitle.svelte → Sh3Title.svelte} +11 -11
  158. package/dist/sh3core-shard/Sh3Title.svelte.d.ts +3 -0
  159. package/dist/sh3core-shard/appActions.js +3 -3
  160. package/dist/sh3core-shard/sh3coreShard.svelte.js +7 -7
  161. package/dist/shards/activate.svelte.d.ts +1 -1
  162. package/dist/shards/activate.svelte.js +6 -6
  163. package/dist/shards/types.d.ts +5 -5
  164. package/dist/shards/types.js +2 -2
  165. package/dist/shell-shard/CommandLine.svelte +7 -7
  166. package/dist/shell-shard/InputLine.svelte +3 -3
  167. package/dist/shell-shard/ScrollbackView.svelte +2 -2
  168. package/dist/shell-shard/Terminal.svelte +5 -5
  169. package/dist/shell-shard/Terminal.svelte.d.ts +2 -2
  170. package/dist/shell-shard/dispatch-custom.test.js +2 -2
  171. package/dist/shell-shard/dispatch-gating.test.js +2 -2
  172. package/dist/shell-shard/dispatch-invoke.test.js +2 -2
  173. package/dist/shell-shard/dispatch-to-terminal.js +1 -1
  174. package/dist/shell-shard/dispatch.d.ts +2 -2
  175. package/dist/shell-shard/dispatch.js +2 -2
  176. package/dist/shell-shard/entries/PromptEntry.svelte +4 -4
  177. package/dist/shell-shard/entries/StatusEntry.svelte +4 -4
  178. package/dist/shell-shard/entries/TextEntry.svelte +3 -3
  179. package/dist/shell-shard/locateSlot.test.js +9 -9
  180. package/dist/shell-shard/manifest.js +2 -2
  181. package/dist/shell-shard/registry.d.ts +2 -2
  182. package/dist/shell-shard/rich/AppCard.svelte +1 -1
  183. package/dist/shell-shard/rich/AppsTable.svelte +1 -1
  184. package/dist/shell-shard/rich/HelpTable.svelte +1 -1
  185. package/dist/shell-shard/rich/HistoryList.svelte +1 -1
  186. package/dist/shell-shard/rich/ViewsTable.svelte +1 -1
  187. package/dist/shell-shard/rich/ZoneTree.svelte +2 -2
  188. package/dist/shell-shard/shellShard.svelte.d.ts +1 -1
  189. package/dist/shell-shard/shellShard.svelte.js +8 -8
  190. package/dist/shell-shard/terminal-dispatch.test.js +2 -2
  191. package/dist/shell-shard/toolbar/Toolbar.svelte +4 -4
  192. package/dist/shell-shard/toolbar/Toolbar.svelte.d.ts +2 -2
  193. package/dist/shell-shard/toolbar/slots/BusySlot.svelte +2 -2
  194. package/dist/shell-shard/toolbar/slots/FocusLockSlot.svelte +2 -2
  195. package/dist/shell-shard/toolbar/slots/ModeSlot.svelte +1 -1
  196. package/dist/shell-shard/toolbar/slots/TargetShardSlot.svelte +1 -1
  197. package/dist/shell-shard/toolbar/slots.d.ts +3 -3
  198. package/dist/shell-shard/verbs/apps.js +3 -3
  199. package/dist/shell-shard/verbs/help.js +1 -1
  200. package/dist/shell-shard/verbs/help.svelte.test.js +1 -1
  201. package/dist/shell-shard/verbs/history.js +1 -1
  202. package/dist/shell-shard/verbs/mode.js +2 -2
  203. package/dist/shell-shard/verbs/mode.test.js +2 -2
  204. package/dist/shell-shard/verbs/shards.js +1 -1
  205. package/dist/shell-shard/verbs/views.js +8 -8
  206. package/dist/shell-shard/verbs/zones.js +2 -2
  207. package/dist/state/zones.svelte.d.ts +2 -2
  208. package/dist/state/zones.svelte.js +4 -4
  209. package/dist/theme.d.ts +3 -3
  210. package/dist/theme.js +5 -5
  211. package/dist/tokens.css +68 -68
  212. package/dist/verbs/types.d.ts +5 -5
  213. package/dist/verbs/types.js +1 -1
  214. package/dist/version.d.ts +1 -1
  215. package/dist/version.js +1 -1
  216. package/package.json +1 -1
  217. package/dist/Shell.svelte.d.ts +0 -5
  218. package/dist/sh3core-shard/ShellHome.svelte.d.ts +0 -3
  219. package/dist/sh3core-shard/ShellTitle.svelte.d.ts +0 -3
  220. package/dist/shell-shard/shellApi.d.ts +0 -4
  221. /package/dist/actions/{shellActions.test.d.ts → sh3Actions.test.d.ts} +0 -0
  222. /package/dist/{shell-shard/shellApi.svelte.test.d.ts → build.test.d.ts} +0 -0
  223. /package/dist/color/{shell-api.d.ts → sh3-api.d.ts} +0 -0
  224. /package/dist/conflicts/{shell-api.d.ts → sh3-api.d.ts} +0 -0
  225. /package/dist/{shell → sh3}/views/KeysAndPeers.svelte.d.ts +0 -0
  226. /package/dist/{shellApi/window.test.d.ts → sh3Api/headless.svelte.test.d.ts} +0 -0
  227. /package/dist/{shellApi → sh3Api}/window.d.ts +0 -0
  228. /package/dist/{shellRuntime.svelte.test.d.ts → sh3Api/window.test.d.ts} +0 -0
@@ -1,15 +1,15 @@
1
1
  /*
2
- * Targeted coverage for the `shell` runtime singleton's dispatchToTerminal.
2
+ * Targeted coverage for the `sh3` runtime singleton's dispatchToTerminal.
3
3
  *
4
4
  * The wiring is what matters: the singleton must consult the same module-
5
- * scoped terminal-registry as ShellApi.dispatchToTerminal so a Svelte view
6
- * (which imports `shell`) and a verb (which receives `vctx.shell`) hit the
5
+ * scoped terminal-registry as Sh3Api.dispatchToTerminal so a Svelte view
6
+ * (which imports `sh3`) and a verb (which receives `vctx.sh3`) hit the
7
7
  * same set of live Terminal handles. A view import is the only path a
8
8
  * picker has — without this, the dispatchToTerminal API is unreachable
9
9
  * from the place it was designed to be called.
10
10
  */
11
11
  import { describe, it, expect, beforeEach, vi } from 'vitest';
12
- import { shell } from './shellRuntime.svelte';
12
+ import { sh3 } from './sh3Runtime.svelte';
13
13
  import { registerTerminalView, __resetTerminalRegistryForTest, } from './shell-shard/terminal-registry';
14
14
  function makeHandle(id, focusStamp = 0, dispatch = vi.fn(async () => undefined)) {
15
15
  return {
@@ -19,27 +19,27 @@ function makeHandle(id, focusStamp = 0, dispatch = vi.fn(async () => undefined))
19
19
  getMode: () => ({ id: 'sh3', label: 'sh3', transport: 'none', autoRelocate: false, showCwd: true }),
20
20
  };
21
21
  }
22
- describe('shell runtime singleton — dispatchToTerminal', () => {
22
+ describe('sh3 runtime singleton — dispatchToTerminal', () => {
23
23
  beforeEach(() => {
24
24
  __resetTerminalRegistryForTest();
25
25
  });
26
26
  it('returns no-terminal when registry is empty', () => {
27
- const r = shell.dispatchToTerminal('foo');
27
+ const r = sh3.dispatchToTerminal('foo');
28
28
  expect(r).toMatchObject({ ok: false, error: 'no-terminal', message: 'no terminal open' });
29
29
  });
30
30
  it('routes through the resolved handle when one is registered', () => {
31
31
  const dispatch = vi.fn(async () => undefined);
32
32
  registerTerminalView(makeHandle('term-1', 0, dispatch));
33
- const r = shell.dispatchToTerminal('apps');
33
+ const r = sh3.dispatchToTerminal('apps');
34
34
  expect(r).toEqual({ ok: true, terminalId: 'term-1' });
35
35
  expect(dispatch).toHaveBeenCalledWith('apps');
36
36
  });
37
- it('shares the registry with ShellApi.dispatchToTerminal (same handles, same routing)', () => {
37
+ it('shares the registry with Sh3Api.dispatchToTerminal (same handles, same routing)', () => {
38
38
  const dispatch = vi.fn(async () => undefined);
39
39
  registerTerminalView(makeHandle('term-shared', 0, dispatch));
40
40
  // The singleton is the surface a Svelte view sees; it must hit the
41
- // same registry as the verb-side ShellApi.
42
- const r = shell.dispatchToTerminal('hi');
41
+ // same registry as the verb-side Sh3Api.
42
+ const r = sh3.dispatchToTerminal('hi');
43
43
  expect(r).toEqual({ ok: true, terminalId: 'term-shared' });
44
44
  expect(dispatch).toHaveBeenCalledWith('hi');
45
45
  });
@@ -94,15 +94,15 @@
94
94
  padding: 16px 20px;
95
95
  min-width: 360px;
96
96
  max-width: 520px;
97
- color: var(--shell-fg);
98
- background: var(--shell-bg);
97
+ color: var(--sh3-fg);
98
+ background: var(--sh3-bg);
99
99
  font: inherit;
100
100
  }
101
101
  header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
102
102
  header h2 { margin: 0; font-size: 16px; }
103
103
  header .id {
104
104
  font-size: 12px;
105
- color: var(--shell-fg-muted);
105
+ color: var(--sh3-fg-muted);
106
106
  }
107
107
  .version { margin: 4px 0 12px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
108
108
  .description { margin: 8px 0 12px; }
@@ -114,7 +114,7 @@
114
114
  }
115
115
  .row { margin: 6px 0; font-size: 13px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
116
116
  .label {
117
- color: var(--shell-fg-muted);
117
+ color: var(--sh3-fg-muted);
118
118
  font-size: 11px;
119
119
  text-transform: uppercase;
120
120
  letter-spacing: 0.04em;
@@ -124,31 +124,31 @@
124
124
  .chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
125
125
  .chips code {
126
126
  padding: 1px 6px;
127
- border: 1px solid var(--shell-border);
128
- border-radius: var(--shell-radius-sm, 3px);
127
+ border: 1px solid var(--sh3-border);
128
+ border-radius: var(--sh3-radius-sm, 3px);
129
129
  }
130
130
  .badge {
131
131
  font-size: 11px;
132
132
  padding: 1px 6px;
133
- border-radius: var(--shell-radius-sm, 3px);
134
- background: var(--shell-bg-elevated);
135
- color: var(--shell-fg-muted);
136
- border: 1px solid var(--shell-border);
133
+ border-radius: var(--sh3-radius-sm, 3px);
134
+ background: var(--sh3-bg-elevated);
135
+ color: var(--sh3-fg-muted);
136
+ border: 1px solid var(--sh3-border);
137
137
  }
138
- .installed { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--shell-border); }
138
+ .installed { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--sh3-border); }
139
139
  code {
140
- font-family: var(--shell-font-mono, monospace);
141
- background: var(--shell-bg-elevated);
140
+ font-family: var(--sh3-font-mono, monospace);
141
+ background: var(--sh3-bg-elevated);
142
142
  padding: 0 4px;
143
- border-radius: var(--shell-radius-sm, 3px);
143
+ border-radius: var(--sh3-radius-sm, 3px);
144
144
  }
145
145
  .actions { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }
146
146
  .actions button {
147
- background: var(--shell-bg-elevated);
148
- color: var(--shell-fg);
149
- border: 1px solid var(--shell-border);
150
- border-radius: var(--shell-radius-sm, 3px);
147
+ background: var(--sh3-bg-elevated);
148
+ color: var(--sh3-fg);
149
+ border: 1px solid var(--sh3-border);
150
+ border-radius: var(--sh3-radius-sm, 3px);
151
151
  padding: 6px 14px; font: inherit; cursor: pointer;
152
152
  }
153
- .actions button:hover { border-color: var(--shell-accent); }
153
+ .actions button:hover { border-color: var(--sh3-accent); }
154
154
  </style>
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  /*
3
- * Shell home — the view shown when no app is active.
3
+ * Sh3 home — the view shown when no app is active.
4
4
  *
5
5
  * Layout: a title header, a filter bar, then one grid per visible
6
6
  * section (User apps always, Admin apps when elevated). Each app is
@@ -8,12 +8,12 @@
8
8
  */
9
9
 
10
10
  import { listRegisteredApps, launchApp, isAdmin, VERSION } from '../api';
11
- import ShellTitle from './ShellTitle.svelte';
11
+ import Sh3Title from './Sh3Title.svelte';
12
12
  import ProjectsSection from '../projects-shard/ProjectsSection.svelte';
13
13
  import LayoutsSection from '../layouts-shard/LayoutsSection.svelte';
14
14
  import { sessionState } from '../projects/session-state.svelte';
15
15
  import { projectsState } from '../projects-shard/projectsShard.svelte';
16
- import { shell } from '../shellRuntime.svelte';
16
+ import { sh3 } from '../sh3Runtime.svelte';
17
17
  import { makeSelectionApi } from '../actions/selection.svelte';
18
18
  import { getAppearance } from '../app-appearance';
19
19
  import iconsUrl from '../assets/icons.svg';
@@ -23,7 +23,7 @@
23
23
  function openAppContextMenu(event: MouseEvent, appId: string): void {
24
24
  event.preventDefault();
25
25
  homeSelection.set({ type: 'app', ref: { appId } });
26
- shell.actions.openContextMenu({
26
+ sh3.actions.openContextMenu({
27
27
  x: event.clientX,
28
28
  y: event.clientY,
29
29
  scope: { element: 'app' },
@@ -59,25 +59,25 @@
59
59
  const totalVisible = $derived(userApps.length + (elevated ? adminApps.length : 0));
60
60
  </script>
61
61
 
62
- <div class="shell-home">
63
- <header class="shell-home-header">
64
- <div class="shell-home-title-row">
65
- <ShellTitle/>
66
- <span class="shell-home-version">v{VERSION}</span>
67
- <span class="shell-home-alpha">alpha</span>
62
+ <div class="sh3-home">
63
+ <header class="sh3-home-header">
64
+ <div class="sh3-home-title-row">
65
+ <Sh3Title/>
66
+ <span class="sh3-home-version">v{VERSION}</span>
67
+ <span class="sh3-home-alpha">alpha</span>
68
68
  </div>
69
- <div class="shell-home-credit">
69
+ <div class="sh3-home-credit">
70
70
  Art: by <a href="https://www.andbc.co/" target="_blank" rel="noopener noreferrer">andbc</a>
71
71
  </div>
72
72
  </header>
73
73
 
74
- <div class="shell-home-filter">
74
+ <div class="sh3-home-filter">
75
75
  <input
76
76
  type="search"
77
77
  placeholder="Filter apps…"
78
78
  bind:value={filter}
79
79
  aria-label="Filter apps by name"
80
- class="shell-home-filter-input"
80
+ class="sh3-home-filter-input"
81
81
  />
82
82
  </div>
83
83
 
@@ -86,24 +86,24 @@
86
86
  <LayoutsSection />
87
87
 
88
88
  {#if userApps.length > 0}
89
- <section class="shell-home-section">
90
- <h2 class="shell-home-section-title">Apps</h2>
91
- <div class="shell-home-grid">
89
+ <section class="sh3-home-section">
90
+ <h2 class="sh3-home-section-title">Apps</h2>
91
+ <div class="sh3-home-grid">
92
92
  {#each userApps as manifest (manifest.id)}
93
93
  {@const appearance = getAppearance(manifest.id)}
94
94
  <button
95
95
  type="button"
96
- class="shell-home-card"
97
- class:shell-home-card--tinted={appearance?.color}
96
+ class="sh3-home-card"
97
+ class:sh3-home-card--tinted={appearance?.color}
98
98
  style:--card-color={appearance?.color ?? 'transparent'}
99
99
  data-sh3-scope="element:app"
100
100
  onclick={() => launchApp(manifest.id)}
101
101
  oncontextmenu={(e) => openAppContextMenu(e, manifest.id)}
102
102
  >
103
- <span class="shell-home-card-square">
104
- <svg class="shell-home-card-icon"><use href="{iconsUrl}#{appearance?.icon ?? manifest.icon ?? 'box'}" /></svg>
103
+ <span class="sh3-home-card-square">
104
+ <svg class="sh3-home-card-icon"><use href="{iconsUrl}#{appearance?.icon ?? manifest.icon ?? 'box'}" /></svg>
105
105
  </span>
106
- <span class="shell-home-card-label">{appearance?.label ?? manifest.label}</span>
106
+ <span class="sh3-home-card-label">{appearance?.label ?? manifest.label}</span>
107
107
  </button>
108
108
  {/each}
109
109
  </div>
@@ -111,24 +111,24 @@
111
111
  {/if}
112
112
 
113
113
  {#if elevated && adminApps.length > 0}
114
- <section class="shell-home-section">
115
- <h2 class="shell-home-section-title">Admin</h2>
116
- <div class="shell-home-grid">
114
+ <section class="sh3-home-section">
115
+ <h2 class="sh3-home-section-title">Admin</h2>
116
+ <div class="sh3-home-grid">
117
117
  {#each adminApps as manifest (manifest.id)}
118
118
  {@const appearance = getAppearance(manifest.id)}
119
119
  <button
120
120
  type="button"
121
- class="shell-home-card"
122
- class:shell-home-card--tinted={appearance?.color}
121
+ class="sh3-home-card"
122
+ class:sh3-home-card--tinted={appearance?.color}
123
123
  style:--card-color={appearance?.color ?? 'transparent'}
124
124
  data-sh3-scope="element:app"
125
125
  onclick={() => launchApp(manifest.id)}
126
126
  oncontextmenu={(e) => openAppContextMenu(e, manifest.id)}
127
127
  >
128
- <span class="shell-home-card-square">
129
- <svg class="shell-home-card-icon"><use href="{iconsUrl}#{appearance?.icon ?? manifest.icon ?? 'box'}" /></svg>
128
+ <span class="sh3-home-card-square">
129
+ <svg class="sh3-home-card-icon"><use href="{iconsUrl}#{appearance?.icon ?? manifest.icon ?? 'box'}" /></svg>
130
130
  </span>
131
- <span class="shell-home-card-label">{appearance?.label ?? manifest.label}</span>
131
+ <span class="sh3-home-card-label">{appearance?.label ?? manifest.label}</span>
132
132
  </button>
133
133
  {/each}
134
134
  </div>
@@ -136,7 +136,7 @@
136
136
  {/if}
137
137
 
138
138
  {#if totalVisible === 0}
139
- <p class="shell-home-empty">
139
+ <p class="sh3-home-empty">
140
140
  {#if apps.length === 0}
141
141
  No apps registered.
142
142
  {:else}
@@ -147,7 +147,7 @@
147
147
  </div>
148
148
 
149
149
  <style>
150
- .shell-home {
150
+ .sh3-home {
151
151
  position: absolute;
152
152
  inset: 0;
153
153
  display: flex;
@@ -156,11 +156,11 @@
156
156
  justify-content: flex-start;
157
157
  padding: 48px 24px;
158
158
  overflow: auto;
159
- background: var(--shell-grad-bg, var(--shell-bg));
160
- color: var(--shell-fg);
159
+ background: var(--sh3-grad-bg, var(--sh3-bg));
160
+ color: var(--sh3-fg);
161
161
  font-family: system-ui, sans-serif;
162
162
  }
163
- .shell-home-header {
163
+ .sh3-home-header {
164
164
  text-align: center;
165
165
  margin-bottom: 24px;
166
166
  display: flex;
@@ -168,90 +168,90 @@
168
168
  align-items: center;
169
169
  gap: 12px;
170
170
  }
171
- .shell-home-title-row {
171
+ .sh3-home-title-row {
172
172
  display: flex;
173
173
  align-items: baseline;
174
174
  gap: 6px;
175
175
  }
176
- .shell-home-credit {
176
+ .sh3-home-credit {
177
177
  font-size: 11px;
178
- color: var(--shell-fg-muted);
178
+ color: var(--sh3-fg-muted);
179
179
  letter-spacing: 0.04em;
180
180
  margin-top: -4px;
181
181
  }
182
- .shell-home-credit a {
183
- color: var(--shell-fg-subtle);
182
+ .sh3-home-credit a {
183
+ color: var(--sh3-fg-subtle);
184
184
  text-decoration: none;
185
- border-bottom: 1px dotted var(--shell-fg-muted);
185
+ border-bottom: 1px dotted var(--sh3-fg-muted);
186
186
  }
187
- .shell-home-credit a:hover {
188
- color: var(--shell-accent);
189
- border-bottom-color: var(--shell-accent);
187
+ .sh3-home-credit a:hover {
188
+ color: var(--sh3-accent);
189
+ border-bottom-color: var(--sh3-accent);
190
190
  }
191
- .shell-home-version {
191
+ .sh3-home-version {
192
192
  font-size: 14px;
193
- color: var(--shell-fg-subtle);
193
+ color: var(--sh3-fg-subtle);
194
194
  letter-spacing: 0.04em;
195
195
  }
196
- .shell-home-alpha {
196
+ .sh3-home-alpha {
197
197
  font-size: 10px;
198
198
  font-weight: 700;
199
199
  text-transform: uppercase;
200
200
  letter-spacing: 0.08em;
201
201
  color: #fff;
202
- background: var(--shell-accent);
202
+ background: var(--sh3-accent);
203
203
  padding: 2px 8px;
204
204
  border-radius: 8px;
205
205
  position: relative;
206
206
  top: -1px;
207
207
  }
208
- .shell-home-filter {
208
+ .sh3-home-filter {
209
209
  width: 100%;
210
210
  max-width: 720px;
211
211
  margin-bottom: 24px;
212
212
  }
213
- .shell-home-filter-input {
213
+ .sh3-home-filter-input {
214
214
  width: 100%;
215
215
  padding: 10px 14px;
216
216
  font: inherit;
217
217
  font-size: 14px;
218
- color: var(--shell-fg);
219
- background: var(--shell-bg-elevated);
220
- border: 1px solid var(--shell-border);
221
- border-radius: var(--shell-radius-md);
218
+ color: var(--sh3-fg);
219
+ background: var(--sh3-bg-elevated);
220
+ border: 1px solid var(--sh3-border);
221
+ border-radius: var(--sh3-radius-md);
222
222
  outline: none;
223
223
  transition: border-color 120ms ease, box-shadow 120ms ease;
224
224
  }
225
- .shell-home-filter-input::placeholder {
226
- color: var(--shell-fg-muted);
225
+ .sh3-home-filter-input::placeholder {
226
+ color: var(--sh3-fg-muted);
227
227
  }
228
- .shell-home-filter-input:focus {
229
- border-color: var(--shell-accent);
230
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--shell-accent) 25%, transparent);
228
+ .sh3-home-filter-input:focus {
229
+ border-color: var(--sh3-accent);
230
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--sh3-accent) 25%, transparent);
231
231
  }
232
- .shell-home-empty {
233
- color: var(--shell-fg-muted);
232
+ .sh3-home-empty {
233
+ color: var(--sh3-fg-muted);
234
234
  font-style: italic;
235
235
  }
236
- .shell-home-section {
236
+ .sh3-home-section {
237
237
  width: 100%;
238
238
  max-width: 720px;
239
239
  margin-bottom: 28px;
240
240
  }
241
- .shell-home-section-title {
241
+ .sh3-home-section-title {
242
242
  font-size: 13px;
243
243
  font-weight: 600;
244
244
  text-transform: uppercase;
245
245
  letter-spacing: 0.06em;
246
- color: var(--shell-fg-subtle);
246
+ color: var(--sh3-fg-subtle);
247
247
  margin: 0 0 12px;
248
248
  }
249
- .shell-home-grid {
249
+ .sh3-home-grid {
250
250
  display: grid;
251
251
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
252
252
  gap: 18px 14px;
253
253
  }
254
- .shell-home-card {
254
+ .sh3-home-card {
255
255
  display: flex;
256
256
  flex-direction: column;
257
257
  align-items: center;
@@ -263,37 +263,37 @@
263
263
  font: inherit;
264
264
  cursor: pointer;
265
265
  }
266
- .shell-home-card-square {
266
+ .sh3-home-card-square {
267
267
  width: 64px;
268
268
  height: 64px;
269
269
  display: flex;
270
270
  align-items: center;
271
271
  justify-content: center;
272
- background: var(--shell-grad-bg-elevated, var(--shell-bg-elevated));
273
- border: 1px solid var(--shell-border);
274
- border-radius: var(--shell-radius-md);
272
+ background: var(--sh3-grad-bg-elevated, var(--sh3-bg-elevated));
273
+ border: 1px solid var(--sh3-border);
274
+ border-radius: var(--sh3-radius-md);
275
275
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15);
276
276
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
277
277
  }
278
- .shell-home-card:hover .shell-home-card-square {
279
- border-color: var(--shell-accent);
278
+ .sh3-home-card:hover .sh3-home-card-square {
279
+ border-color: var(--sh3-accent);
280
280
  transform: translateY(-1px);
281
281
  box-shadow:
282
282
  0 6px 14px rgba(0, 0, 0, 0.3),
283
- 0 0 0 1px color-mix(in srgb, var(--shell-accent) 35%, transparent),
284
- 0 4px 12px color-mix(in srgb, var(--shell-accent) 18%, transparent);
283
+ 0 0 0 1px color-mix(in srgb, var(--sh3-accent) 35%, transparent),
284
+ 0 4px 12px color-mix(in srgb, var(--sh3-accent) 18%, transparent);
285
285
  }
286
- .shell-home-card:focus-visible {
286
+ .sh3-home-card:focus-visible {
287
287
  outline: none;
288
288
  }
289
- .shell-home-card:focus-visible .shell-home-card-square {
290
- border-color: var(--shell-accent);
291
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--shell-accent) 40%, transparent);
289
+ .sh3-home-card:focus-visible .sh3-home-card-square {
290
+ border-color: var(--sh3-accent);
291
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--sh3-accent) 40%, transparent);
292
292
  }
293
- .shell-home-card:active .shell-home-card-square {
293
+ .sh3-home-card:active .sh3-home-card-square {
294
294
  transform: translateY(0);
295
295
  }
296
- .shell-home-card-label {
296
+ .sh3-home-card-label {
297
297
  font-weight: 600;
298
298
  font-size: 11px;
299
299
  line-height: 1.2;
@@ -305,12 +305,12 @@
305
305
  line-clamp: 2;
306
306
  word-break: break-word;
307
307
  }
308
- .shell-home-card-icon {
308
+ .sh3-home-card-icon {
309
309
  width: 28px;
310
310
  height: 28px;
311
- color: var(--shell-fg);
311
+ color: var(--sh3-fg);
312
312
  }
313
- .shell-home-card--tinted .shell-home-card-square {
313
+ .sh3-home-card--tinted .sh3-home-card-square {
314
314
  background: var(--card-color);
315
315
  }
316
316
  </style>
@@ -0,0 +1,3 @@
1
+ declare const Sh3Home: import("svelte").Component<Record<string, never>, {}, "">;
2
+ type Sh3Home = ReturnType<typeof Sh3Home>;
3
+ export default Sh3Home;
@@ -52,7 +52,7 @@
52
52
 
53
53
  const buildSketch = () => (p: any) => {
54
54
  const rootStyle = getComputedStyle(document.documentElement);
55
- const accentColor = rootStyle.getPropertyValue('--shell-accent').trim();
55
+ const accentColor = rootStyle.getPropertyValue('--sh3-accent').trim();
56
56
  let gfx: any;
57
57
  let src: any;
58
58
  let ready = false;
@@ -117,12 +117,12 @@
117
117
  try {
118
118
  p5inst = new P5(buildSketch(), container);
119
119
  } catch (err) {
120
- console.error('[ShellTitle] p5 sketch failed to start', err);
120
+ console.error('[Sh3Title] p5 sketch failed to start', err);
121
121
  failed = true;
122
122
  }
123
123
  })
124
124
  .catch((err) => {
125
- console.error('[ShellTitle] failed to load p5 from CDN', err);
125
+ console.error('[Sh3Title] failed to load p5 from CDN', err);
126
126
  failed = true;
127
127
  });
128
128
 
@@ -137,35 +137,35 @@
137
137
  </script>
138
138
 
139
139
  {#if failed}
140
- <h1 class="shell-title-fallback">SH3</h1>
140
+ <h1 class="sh3-title-fallback">SH3</h1>
141
141
  {:else}
142
142
  <div
143
143
  bind:this={container}
144
- class="shell-title"
144
+ class="sh3-title"
145
145
  style:width="{DISPLAY_W}px"
146
146
  style:height="{DISPLAY_H}px"
147
- style:--shell-title-scale={SCALE}
147
+ style:--sh3-title-scale={SCALE}
148
148
  ></div>
149
149
  {/if}
150
150
 
151
151
  <style>
152
- .shell-title {
152
+ .sh3-title {
153
153
  display: inline-block;
154
154
  line-height: 0;
155
155
  overflow: hidden;
156
156
  }
157
157
  /* canvas is injected by p5 at runtime, so scoped selectors don't reach it */
158
- .shell-title :global(canvas) {
159
- transform: scale(var(--shell-title-scale));
158
+ .sh3-title :global(canvas) {
159
+ transform: scale(var(--sh3-title-scale));
160
160
  transform-origin: top left;
161
161
  /* p5 sets inline width/height attributes on the canvas; override its inline
162
162
  style so layout doesn't get the intrinsic pixel-buffer size. */
163
163
  display: block;
164
164
  }
165
- .shell-title-fallback {
165
+ .sh3-title-fallback {
166
166
  margin: 0;
167
167
  font-size: 42px;
168
- color: var(--shell-accent);
168
+ color: var(--sh3-accent);
169
169
  letter-spacing: 2px;
170
170
  }
171
171
  </style>
@@ -0,0 +1,3 @@
1
+ declare const Sh3Title: import("svelte").Component<Record<string, never>, {}, "">;
2
+ type Sh3Title = ReturnType<typeof Sh3Title>;
3
+ export default Sh3Title;
@@ -2,7 +2,7 @@
2
2
  * Element-scope actions for app cards. Wired by sh3coreShard.activate.
3
3
  * The element scope is { element: 'app' } and activates when right-click
4
4
  * on a host with data-sh3-scope="element:app" sets a selection of type
5
- * 'app' (see ShellHome.svelte).
5
+ * 'app' (see Sh3Home.svelte).
6
6
  *
7
7
  * Three actions are registered here:
8
8
  * - app.info : open the AppInfoView modal with manifest + (when
@@ -15,7 +15,7 @@
15
15
  *
16
16
  * Disabled predicate: !isAdmin || isBuiltin. Built-in means the app id is
17
17
  * NOT in storeContext.state.ephemeral.installed (those are framework-shipped
18
- * shards like sh3-store, sh3-shell, projects, etc.).
18
+ * shards like sh3-store, sh3-sh3, projects, etc.).
19
19
  */
20
20
  import { listRegisteredApps } from '../api';
21
21
  import { isAdmin } from '../auth/auth.svelte';
@@ -27,7 +27,7 @@ import { toastManager } from '../overlays/toast';
27
27
  import AppUpdateAvailableModal from '../app/store/AppUpdateAvailableModal.svelte';
28
28
  import UninstallAppDialog from '../app/store/UninstallAppDialog.svelte';
29
29
  import AppInfoView from './AppInfoView.svelte';
30
- import { spawnSatellite } from '../shellApi/window';
30
+ import { spawnSatellite } from '../sh3Api/window';
31
31
  import { activeApp, getActiveApp } from '../apps/registry.svelte';
32
32
  import { returnToHome } from '../apps/lifecycle';
33
33
  const isTauri = typeof globalThis.__TAURI_INTERNALS__ !== 'undefined';
@@ -4,12 +4,12 @@
4
4
  * layout manager's home tree references.
5
5
  *
6
6
  * Renamed from the former `__shell__` pseudo-shard on 2026-04-10 to free
7
- * the `shell` id and the `src/shell-shard/` directory for the new
7
+ * the `sh3` id and the `src/shell-shard/` directory for the new
8
8
  * user-facing shell-shard (terminal). See
9
9
  * `docs/superpowers/specs/2026-04-10-shell-shard-design.md` § Step 0.
10
10
  *
11
11
  * This shard uses the public contract same as any other shard (see
12
- * ADR-008 / the phase-8 shell-as-shard feasibility check). Its only
12
+ * ADR-008 / the phase-8 sh3-as-shard feasibility check). Its only
13
13
  * concession to being framework-owned is:
14
14
  * - The reserved id `__sh3core__`
15
15
  * - It is registered by `bootstrap()` itself, not by the glob loop
@@ -22,8 +22,8 @@
22
22
  * `.svelte.ts` because mounting Svelte components requires rune access.
23
23
  */
24
24
  import { mount, unmount } from 'svelte';
25
- import ShellHome from './ShellHome.svelte';
26
- import KeysAndPeers from '../shell/views/KeysAndPeers.svelte';
25
+ import Sh3Home from './Sh3Home.svelte';
26
+ import KeysAndPeers from '../sh3/views/KeysAndPeers.svelte';
27
27
  import ConfirmDialog from '../overlays/ConfirmDialog.svelte';
28
28
  import { VERSION } from '../version';
29
29
  import { __setBindingsZone } from '../actions/bindings-store';
@@ -61,7 +61,7 @@ export const sh3coreShard = {
61
61
  version: VERSION,
62
62
  views: [
63
63
  { id: 'sh3core:home', label: 'Home' },
64
- { id: 'shell:keys-and-peers', label: 'Keys & Peers' },
64
+ { id: 'sh3:keys-and-peers', label: 'Keys & Peers' },
65
65
  ],
66
66
  },
67
67
  activate(ctx) {
@@ -103,7 +103,7 @@ export const sh3coreShard = {
103
103
  });
104
104
  const factory = {
105
105
  mount(container, _context) {
106
- const instance = mount(ShellHome, { target: container });
106
+ const instance = mount(Sh3Home, { target: container });
107
107
  return {
108
108
  unmount() {
109
109
  unmount(instance);
@@ -119,7 +119,7 @@ export const sh3coreShard = {
119
119
  },
120
120
  };
121
121
  ctx.registerView('sh3core:home', factory);
122
- ctx.registerView('shell:keys-and-peers', keysFactory);
122
+ ctx.registerView('sh3:keys-and-peers', keysFactory);
123
123
  registerAppActions(ctx);
124
124
  // Launcher parent — submenu drill host. No `run` needed: the
125
125
  // dispatcher's default behavior opens a sub-palette filtered to
@@ -4,7 +4,7 @@ import type { Shard, ShardContext } from './types';
4
4
  * Populated once at boot by the glob-discovery loop in main.ts (through
5
5
  * `registerShard`); a future runtime loader appends late without touching
6
6
  * the rest of the framework. Callers that need a live list subscribe via
7
- * Svelte reactivity (e.g. shell home listing apps cross-references this
7
+ * Svelte reactivity (e.g. sh3 home listing apps cross-references this
8
8
  * map to show which shards they require).
9
9
  */
10
10
  export declare const registeredShards: Map<string, Shard>;