@happyvertical/smrt-workbench 0.40.66

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 (52) hide show
  1. package/AGENTS.md +28 -0
  2. package/CLAUDE.md +1 -0
  3. package/LICENSE +7 -0
  4. package/README.md +31 -0
  5. package/dist/chunks/discovery-G9-foyW8.js +979 -0
  6. package/dist/chunks/discovery-G9-foyW8.js.map +1 -0
  7. package/dist/chunks/runtime-BTiu5fuP.js +93 -0
  8. package/dist/chunks/runtime-BTiu5fuP.js.map +1 -0
  9. package/dist/discovery.d.ts +14 -0
  10. package/dist/discovery.d.ts.map +1 -0
  11. package/dist/index.d.ts +4 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +3 -0
  14. package/dist/runtime.d.ts +10 -0
  15. package/dist/runtime.d.ts.map +1 -0
  16. package/dist/runtime.js +2 -0
  17. package/dist/svelte/MarkdownDocument.svelte +200 -0
  18. package/dist/svelte/MarkdownDocument.svelte.d.ts +7 -0
  19. package/dist/svelte/MarkdownDocument.svelte.d.ts.map +1 -0
  20. package/dist/svelte/WorkbenchHost.svelte +2058 -0
  21. package/dist/svelte/WorkbenchHost.svelte.d.ts +13 -0
  22. package/dist/svelte/WorkbenchHost.svelte.d.ts.map +1 -0
  23. package/dist/svelte/command.d.ts +6 -0
  24. package/dist/svelte/command.d.ts.map +1 -0
  25. package/dist/svelte/command.js +18 -0
  26. package/dist/svelte/index.d.ts +2 -0
  27. package/dist/svelte/index.d.ts.map +1 -0
  28. package/dist/svelte/index.js +1 -0
  29. package/dist/types.d.ts +202 -0
  30. package/dist/types.d.ts.map +1 -0
  31. package/dist/types.js +0 -0
  32. package/dist/utils.d.ts +3 -0
  33. package/dist/utils.d.ts.map +1 -0
  34. package/dist/vite.d.ts +6 -0
  35. package/dist/vite.d.ts.map +1 -0
  36. package/dist/vite.js +124 -0
  37. package/dist/vite.js.map +1 -0
  38. package/host/README.md +12 -0
  39. package/host/package.json +21 -0
  40. package/host/src/app.html +11 -0
  41. package/host/src/hooks.client.ts +5 -0
  42. package/host/src/routes/+error.svelte +44 -0
  43. package/host/src/routes/+page.svelte +15 -0
  44. package/host/svelte.config.js +12 -0
  45. package/host/tsconfig.json +10 -0
  46. package/host/vite.config.ts +202 -0
  47. package/package.json +96 -0
  48. package/src/discovery.ts +1748 -0
  49. package/src/runtime.ts +165 -0
  50. package/src/types.ts +243 -0
  51. package/src/utils.ts +16 -0
  52. package/src/vite.ts +303 -0
package/AGENTS.md ADDED
@@ -0,0 +1,28 @@
1
+ # smrt-workbench
2
+
3
+ Shared developer workbench for SMRT packages and consumer projects.
4
+
5
+ ## Role
6
+
7
+ - Owns the browser host, Vite discovery plugin, package workbench module
8
+ contract, and read-only developer UI.
9
+ - Composes existing package route modules, `smrt-playground` previews, package
10
+ metadata, scripts, docs, manifests, and knowledge summaries.
11
+ - Does not execute shell commands from browser UI. Commands are displayed as
12
+ copyable text only.
13
+
14
+ ## Boundaries
15
+
16
+ - `smrt-playground` continues to own preview discovery/rendering contracts.
17
+ - `smrt-dev-mcp` continues to own knowledge freshness, review/architecture
18
+ bundles, and package specialist context generation.
19
+ - Package route modules remain package-owned. Workbench mounts them inline in a
20
+ single shared host.
21
+
22
+ ## Commands
23
+
24
+ ```bash
25
+ pnpm --filter @happyvertical/smrt-workbench test
26
+ pnpm --filter @happyvertical/smrt-workbench typecheck
27
+ pnpm --filter @happyvertical/smrt-workbench build
28
+ ```
package/CLAUDE.md ADDED
@@ -0,0 +1 @@
1
+ @AGENTS.md
package/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright <2025> <Happy Vertical Corporation>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # @happyvertical/smrt-workbench
2
+
3
+ Standard s-m-r-t package workbench.
4
+
5
+ `pnpm workbench` launches the aggregate workspace host from this repository.
6
+ Use `pnpm workbench --package @happyvertical/smrt-content` to focus it on one
7
+ workspace package. Consumer projects add `"workbench": "smrt workbench dev"` to
8
+ their package scripts after installing `@happyvertical/smrt-cli` and
9
+ `@happyvertical/smrt-workbench`.
10
+
11
+ Yarn consumers must use `nodeLinker: node-modules`. The workbench browser host
12
+ is served from the installed package directory and is not available through
13
+ Yarn Plug'n'Play's virtual filesystem.
14
+
15
+ - workspace root: aggregate view of all workspace packages
16
+ - package directory: aggregate host focused to that package
17
+ - consumer project: installed s-m-r-t package metadata plus local project knowledge
18
+
19
+ V1 is read-only for command execution. Scripts and validation commands are shown
20
+ as copyable commands; the browser UI does not run package tasks.
21
+
22
+ Package-owned workbench modules can export route modules and metadata:
23
+
24
+ ```ts
25
+ import { defineWorkbenchModule } from '@happyvertical/smrt-workbench';
26
+
27
+ export default defineWorkbenchModule({
28
+ packageName: '@happyvertical/smrt-content',
29
+ routeModules: [CONTENT_ROUTE_MODULE],
30
+ });
31
+ ```