@hanzo/dev 4.0.1 → 4.1.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.
- package/LICENSE +21 -0
- package/dist/{BinaryViewer-qn8xfPZp.js → BinaryViewer-CmFUK4zZ.js} +2 -2
- package/dist/{ChatMarkdown-Cyujn3JJ.js → ChatMarkdown-nvEI7iCv.js} +4 -4
- package/dist/{DiffCommentAnnotation-BZu1TP6E.js → DiffCommentAnnotation-BPTN_2a6.js} +1 -1
- package/dist/{DiffFileTree-CcJ91zOM.js → DiffFileTree-B_br90vY.js} +2 -2
- package/dist/{DiffPanel-BXC88NMs.js → DiffPanel-V5R5TPuK.js} +5 -5
- package/dist/{ExpandedImageDialog-BZnGRBJR.js → ExpandedImageDialog-CAorLacL.js} +1 -1
- package/dist/{FileExplorerPane-vBJS6V75.js → FileExplorerPane-CeHulcPz.js} +1 -1
- package/dist/{FilePreviewPanel-jJHWsMzm.js → FilePreviewPanel-BVNLvWOc.js} +8 -8
- package/dist/{MermaidDiagram-paNwQY33.js → MermaidDiagram-CTolIzQD.js} +1 -1
- package/dist/{MermaidFilePreview-B9KxfnIN.js → MermaidFilePreview-CP2zP4FU.js} +1 -1
- package/dist/{MermaidViewer-CAEGpLyD.js → MermaidViewer-BDfYkS9E.js} +2 -2
- package/dist/{NotebookPreview-D01mMCpR.js → NotebookPreview-Cybs5uM0.js} +1 -1
- package/dist/{OfficeFilePreview-DWaRgfQU.js → OfficeFilePreview-7JsmSoKU.js} +1 -1
- package/dist/{OfficeViewer-BudrZbBA.js → OfficeViewer-CJoojlJK.js} +1 -1
- package/dist/{OpenInPicker-Dd3ifHa1.js → OpenInPicker-BIMWUxBP.js} +7 -7
- package/dist/{OpenXmlOfficeViewer-CXcKdq7k.js → OpenXmlOfficeViewer-C24Kj8DM.js} +1 -1
- package/dist/{PreviewImage-C4Ku4z7v.js → PreviewImage-oY5YnuTr.js} +1 -1
- package/dist/{PreviewImageContent-BwOB9Lyd.js → PreviewImageContent-n6eLzY99.js} +1 -1
- package/dist/{PullRequestCodeTab-BcwyMk7d.js → PullRequestCodeTab-Dv_0kVad.js} +7 -7
- package/dist/{PullRequestReviewAnnotation-BU5t_1fC.js → PullRequestReviewAnnotation-LeuwO-iH.js} +4 -4
- package/dist/builder/activity.d.ts +16 -0
- package/dist/builder/activity.js +51 -0
- package/dist/builder/address.d.ts +11 -0
- package/dist/builder/address.js +50 -0
- package/dist/builder/ago.d.ts +2 -0
- package/dist/builder/ago.js +18 -0
- package/dist/builder/api/agents.d.ts +139 -0
- package/dist/builder/api/agents.js +253 -0
- package/dist/builder/api/auto.d.ts +166 -0
- package/dist/builder/api/auto.js +300 -0
- package/dist/builder/api/billing.d.ts +263 -0
- package/dist/builder/api/billing.js +401 -0
- package/dist/builder/api/call.d.ts +53 -0
- package/dist/builder/api/call.js +123 -0
- package/dist/builder/api/capabilities.d.ts +14 -0
- package/dist/builder/api/capabilities.js +41 -0
- package/dist/builder/api/changes.d.ts +74 -0
- package/dist/builder/api/changes.js +75 -0
- package/dist/builder/api/chat.d.ts +12 -0
- package/dist/builder/api/chat.js +28 -0
- package/dist/builder/api/cli.d.ts +59 -0
- package/dist/builder/api/cli.js +133 -0
- package/dist/builder/api/codebases.d.ts +46 -0
- package/dist/builder/api/codebases.js +100 -0
- package/dist/builder/api/coding.d.ts +117 -0
- package/dist/builder/api/coding.js +222 -0
- package/dist/builder/api/connectors.d.ts +76 -0
- package/dist/builder/api/connectors.js +111 -0
- package/dist/builder/api/consent.d.ts +22 -0
- package/dist/builder/api/consent.js +28 -0
- package/dist/builder/api/conversations.d.ts +20 -0
- package/dist/builder/api/conversations.js +23 -0
- package/dist/builder/api/draft.d.ts +38 -0
- package/dist/builder/api/draft.js +87 -0
- package/dist/builder/api/environment.d.ts +55 -0
- package/dist/builder/api/environment.js +126 -0
- package/dist/builder/api/gallery.d.ts +32 -0
- package/dist/builder/api/gallery.js +85 -0
- package/dist/builder/api/git.d.ts +31 -0
- package/dist/builder/api/git.js +47 -0
- package/dist/builder/api/github.d.ts +176 -0
- package/dist/builder/api/github.js +271 -0
- package/dist/builder/api/keys.d.ts +35 -0
- package/dist/builder/api/keys.js +72 -0
- package/dist/builder/api/library.d.ts +116 -0
- package/dist/builder/api/library.js +214 -0
- package/dist/builder/api/limits.d.ts +69 -0
- package/dist/builder/api/limits.js +86 -0
- package/dist/builder/api/links.d.ts +51 -0
- package/dist/builder/api/links.js +75 -0
- package/dist/builder/api/machines.d.ts +122 -0
- package/dist/builder/api/machines.js +238 -0
- package/dist/builder/api/mcp.d.ts +10 -0
- package/dist/builder/api/mcp.js +47 -0
- package/dist/builder/api/members.d.ts +35 -0
- package/dist/builder/api/members.js +95 -0
- package/dist/builder/api/memory.d.ts +14 -0
- package/dist/builder/api/memory.js +35 -0
- package/dist/builder/api/models.d.ts +17 -0
- package/dist/builder/api/models.js +20 -0
- package/dist/builder/api/places.d.ts +32 -0
- package/dist/builder/api/places.js +29 -0
- package/dist/builder/api/platform.d.ts +68 -0
- package/dist/builder/api/platform.js +87 -0
- package/dist/builder/api/plugins.d.ts +42 -0
- package/dist/builder/api/plugins.js +175 -0
- package/dist/builder/api/pref.d.ts +77 -0
- package/dist/builder/api/pref.js +93 -0
- package/dist/builder/api/profile.d.ts +11 -0
- package/dist/builder/api/profile.js +41 -0
- package/dist/builder/api/projects.d.ts +99 -0
- package/dist/builder/api/projects.js +166 -0
- package/dist/builder/api/provider.d.ts +49 -0
- package/dist/builder/api/provider.js +96 -0
- package/dist/builder/api/sandbox.d.ts +90 -0
- package/dist/builder/api/sandbox.js +223 -0
- package/dist/builder/api/sessions.d.ts +123 -0
- package/dist/builder/api/sessions.js +255 -0
- package/dist/builder/api/skills.d.ts +82 -0
- package/dist/builder/api/skills.js +117 -0
- package/dist/builder/api/sse.d.ts +24 -0
- package/dist/builder/api/sse.js +68 -0
- package/dist/builder/api/studio.d.ts +59 -0
- package/dist/builder/api/studio.js +91 -0
- package/dist/builder/api/talk.d.ts +48 -0
- package/dist/builder/api/talk.js +81 -0
- package/dist/builder/api/tools.d.ts +34 -0
- package/dist/builder/api/tools.js +37 -0
- package/dist/builder/api/turn.d.ts +202 -0
- package/dist/builder/api/turn.js +772 -0
- package/dist/builder/api/verdict.d.ts +3 -0
- package/dist/builder/api/verdict.js +21 -0
- package/dist/builder/api/webhooks.d.ts +47 -0
- package/dist/builder/api/webhooks.js +82 -0
- package/dist/builder/api/work.d.ts +110 -0
- package/dist/builder/api/work.js +218 -0
- package/dist/builder/ask.d.ts +51 -0
- package/dist/builder/ask.js +147 -0
- package/dist/builder/automations.d.ts +33 -0
- package/dist/builder/automations.js +453 -0
- package/dist/builder/awake.d.ts +24 -0
- package/dist/builder/awake.js +68 -0
- package/dist/builder/back.d.ts +30 -0
- package/dist/builder/back.js +105 -0
- package/dist/builder/builder.d.ts +12 -0
- package/dist/builder/builder.js +162 -0
- package/dist/builder/carry.d.ts +48 -0
- package/dist/builder/carry.js +278 -0
- package/dist/builder/choice.d.ts +134 -0
- package/dist/builder/choice.js +152 -0
- package/dist/builder/claims.d.ts +13 -0
- package/dist/builder/claims.js +35 -0
- package/dist/builder/clipboard.d.ts +2 -0
- package/dist/builder/clipboard.js +10 -0
- package/dist/builder/customize/agents.d.ts +11 -0
- package/dist/builder/customize/agents.js +513 -0
- package/dist/builder/customize/connectors.d.ts +2 -0
- package/dist/builder/customize/connectors.js +319 -0
- package/dist/builder/customize/drafted.d.ts +4 -0
- package/dist/builder/customize/drafted.js +92 -0
- package/dist/builder/customize/index.d.ts +8 -0
- package/dist/builder/customize/index.js +127 -0
- package/dist/builder/customize/inventory.d.ts +14 -0
- package/dist/builder/customize/inventory.js +127 -0
- package/dist/builder/customize/load.d.ts +9 -0
- package/dist/builder/customize/load.js +22 -0
- package/dist/builder/customize/ocean.d.ts +41 -0
- package/dist/builder/customize/ocean.js +332 -0
- package/dist/builder/customize/plugins.d.ts +2 -0
- package/dist/builder/customize/plugins.js +136 -0
- package/dist/builder/customize/roles.d.ts +4 -0
- package/dist/builder/customize/roles.js +105 -0
- package/dist/builder/customize/say.d.ts +13 -0
- package/dist/builder/customize/say.js +32 -0
- package/dist/builder/customize/skills.d.ts +2 -0
- package/dist/builder/customize/skills.js +208 -0
- package/dist/builder/customize/ui.d.ts +152 -0
- package/dist/builder/customize/ui.js +208 -0
- package/dist/builder/data.d.ts +57 -0
- package/dist/builder/data.js +322 -0
- package/dist/builder/design.d.ts +140 -0
- package/dist/builder/design.js +175 -0
- package/dist/builder/desk.d.ts +48 -0
- package/dist/builder/desk.js +449 -0
- package/dist/builder/dev-mode.d.ts +43 -0
- package/dist/builder/dev-mode.js +120 -0
- package/dist/builder/door.d.ts +11 -0
- package/dist/builder/door.js +126 -0
- package/dist/builder/environment.d.ts +23 -0
- package/dist/builder/environment.js +193 -0
- package/dist/builder/files.d.ts +23 -0
- package/dist/builder/files.js +175 -0
- package/dist/builder/find.d.ts +7 -0
- package/dist/builder/find.js +80 -0
- package/dist/builder/foot.d.ts +30 -0
- package/dist/builder/foot.js +79 -0
- package/dist/builder/forge.d.ts +4 -0
- package/dist/builder/forge.js +570 -0
- package/dist/builder/gear.d.ts +60 -0
- package/dist/builder/gear.js +180 -0
- package/dist/builder/git.d.ts +21 -0
- package/dist/builder/git.js +118 -0
- package/dist/builder/gutter.d.ts +17 -0
- package/dist/builder/gutter.js +25 -0
- package/dist/builder/handoff.d.ts +8 -0
- package/dist/builder/handoff.js +22 -0
- package/dist/builder/host.d.ts +189 -0
- package/dist/builder/host.js +46 -0
- package/dist/builder/index.d.ts +108 -0
- package/dist/builder/index.js +99 -0
- package/dist/builder/landing.d.ts +34 -0
- package/dist/builder/landing.js +725 -0
- package/dist/builder/library.d.ts +21 -0
- package/dist/builder/library.js +526 -0
- package/dist/builder/local.d.ts +80 -0
- package/dist/builder/local.js +124 -0
- package/dist/builder/make.d.ts +10 -0
- package/dist/builder/make.js +120 -0
- package/dist/builder/markdown.d.ts +49 -0
- package/dist/builder/markdown.js +125 -0
- package/dist/builder/marks.d.ts +15 -0
- package/dist/builder/marks.js +18 -0
- package/dist/builder/merge.d.ts +223 -0
- package/dist/builder/merge.js +380 -0
- package/dist/builder/meter.d.ts +31 -0
- package/dist/builder/meter.js +54 -0
- package/dist/builder/mind.d.ts +107 -0
- package/dist/builder/mind.js +335 -0
- package/dist/builder/names.d.ts +40 -0
- package/dist/builder/names.js +189 -0
- package/dist/builder/nav.d.ts +28 -0
- package/dist/builder/nav.js +218 -0
- package/dist/builder/out.d.ts +16 -0
- package/dist/builder/out.js +24 -0
- package/dist/builder/page.d.ts +55 -0
- package/dist/builder/page.js +217 -0
- package/dist/builder/pane.d.ts +30 -0
- package/dist/builder/pane.js +21 -0
- package/dist/builder/panel.d.ts +101 -0
- package/dist/builder/panel.js +408 -0
- package/dist/builder/pdf.d.ts +139 -0
- package/dist/builder/pdf.js +847 -0
- package/dist/builder/pick.d.ts +10 -0
- package/dist/builder/pick.js +38 -0
- package/dist/builder/plain.d.ts +59 -0
- package/dist/builder/plain.js +209 -0
- package/dist/builder/plan.d.ts +63 -0
- package/dist/builder/plan.js +155 -0
- package/dist/builder/plans.d.ts +1 -0
- package/dist/builder/plans.js +157 -0
- package/dist/builder/plugin.d.ts +60 -0
- package/dist/builder/plugin.js +1 -0
- package/dist/builder/plugins/design.d.ts +8 -0
- package/dist/builder/plugins/design.js +71 -0
- package/dist/builder/plugins/index.d.ts +46 -0
- package/dist/builder/plugins/index.js +117 -0
- package/dist/builder/plugins/pdf.d.ts +18 -0
- package/dist/builder/plugins/pdf.js +83 -0
- package/dist/builder/plugins/project.d.ts +5 -0
- package/dist/builder/plugins/project.js +68 -0
- package/dist/builder/plugins/research.d.ts +24 -0
- package/dist/builder/plugins/research.js +147 -0
- package/dist/builder/plugins/sketch.d.ts +9 -0
- package/dist/builder/plugins/sketch.js +101 -0
- package/dist/builder/plugins/slides.d.ts +14 -0
- package/dist/builder/plugins/slides.js +55 -0
- package/dist/builder/plugins/template.d.ts +13 -0
- package/dist/builder/plugins/template.js +95 -0
- package/dist/builder/prefs.d.ts +29 -0
- package/dist/builder/prefs.js +91 -0
- package/dist/builder/preview-url.d.ts +47 -0
- package/dist/builder/preview-url.js +107 -0
- package/dist/builder/project.d.ts +18 -0
- package/dist/builder/project.js +591 -0
- package/dist/builder/prose.d.ts +4 -0
- package/dist/builder/prose.js +57 -0
- package/dist/builder/publish.d.ts +18 -0
- package/dist/builder/publish.js +141 -0
- package/dist/builder/question.d.ts +33 -0
- package/dist/builder/question.js +64 -0
- package/dist/builder/redesign.d.ts +32 -0
- package/dist/builder/redesign.js +117 -0
- package/dist/builder/removal.d.ts +71 -0
- package/dist/builder/removal.js +73 -0
- package/dist/builder/reply.d.ts +50 -0
- package/dist/builder/reply.js +196 -0
- package/dist/builder/roles.d.ts +10 -0
- package/dist/builder/roles.js +28 -0
- package/dist/builder/route.d.ts +85 -0
- package/dist/builder/route.js +126 -0
- package/dist/builder/run.d.ts +4 -0
- package/dist/builder/run.js +804 -0
- package/dist/builder/runmeta.d.ts +16 -0
- package/dist/builder/runmeta.js +69 -0
- package/dist/builder/say.d.ts +2 -0
- package/dist/builder/say.js +7 -0
- package/dist/builder/scheduled.d.ts +3 -0
- package/dist/builder/scheduled.js +328 -0
- package/dist/builder/section.d.ts +27 -0
- package/dist/builder/section.js +60 -0
- package/dist/builder/settings/account.d.ts +1 -0
- package/dist/builder/settings/account.js +111 -0
- package/dist/builder/settings/billing.d.ts +1 -0
- package/dist/builder/settings/billing.js +210 -0
- package/dist/builder/settings/capabilities.d.ts +1 -0
- package/dist/builder/settings/capabilities.js +66 -0
- package/dist/builder/settings/card.d.ts +31 -0
- package/dist/builder/settings/card.js +140 -0
- package/dist/builder/settings/code.d.ts +1 -0
- package/dist/builder/settings/code.js +70 -0
- package/dist/builder/settings/credits.d.ts +10 -0
- package/dist/builder/settings/credits.js +123 -0
- package/dist/builder/settings/environments.d.ts +1 -0
- package/dist/builder/settings/environments.js +60 -0
- package/dist/builder/settings/general.d.ts +1 -0
- package/dist/builder/settings/general.js +58 -0
- package/dist/builder/settings/index.d.ts +4 -0
- package/dist/builder/settings/index.js +25 -0
- package/dist/builder/settings/integrations.d.ts +8 -0
- package/dist/builder/settings/integrations.js +138 -0
- package/dist/builder/settings/keys.d.ts +1 -0
- package/dist/builder/settings/keys.js +114 -0
- package/dist/builder/settings/list.d.ts +10 -0
- package/dist/builder/settings/list.js +28 -0
- package/dist/builder/settings/machines.d.ts +4 -0
- package/dist/builder/settings/machines.js +243 -0
- package/dist/builder/settings/members.d.ts +1 -0
- package/dist/builder/settings/members.js +77 -0
- package/dist/builder/settings/memory.d.ts +1 -0
- package/dist/builder/settings/memory.js +62 -0
- package/dist/builder/settings/notifications.d.ts +1 -0
- package/dist/builder/settings/notifications.js +111 -0
- package/dist/builder/settings/plan.d.ts +17 -0
- package/dist/builder/settings/plan.js +131 -0
- package/dist/builder/settings/privacy.d.ts +1 -0
- package/dist/builder/settings/privacy.js +76 -0
- package/dist/builder/settings/sections.d.ts +16 -0
- package/dist/builder/settings/sections.js +34 -0
- package/dist/builder/settings/shared.d.ts +6 -0
- package/dist/builder/settings/shared.js +58 -0
- package/dist/builder/settings/ui.d.ts +50 -0
- package/dist/builder/settings/ui.js +53 -0
- package/dist/builder/settings/usage.d.ts +1 -0
- package/dist/builder/settings/usage.js +24 -0
- package/dist/builder/shared.d.ts +26 -0
- package/dist/builder/shared.js +15 -0
- package/dist/builder/shelf.d.ts +16 -0
- package/dist/builder/shelf.js +219 -0
- package/dist/builder/side.d.ts +40 -0
- package/dist/builder/side.js +208 -0
- package/dist/builder/site.d.ts +75 -0
- package/dist/builder/site.js +138 -0
- package/dist/builder/spend.d.ts +21 -0
- package/dist/builder/spend.js +80 -0
- package/dist/builder/standing.d.ts +36 -0
- package/dist/builder/standing.js +66 -0
- package/dist/builder/suggest.d.ts +238 -0
- package/dist/builder/suggest.js +463 -0
- package/dist/builder/suggestions.d.ts +49 -0
- package/dist/builder/suggestions.js +260 -0
- package/dist/builder/summary.d.ts +60 -0
- package/dist/builder/summary.js +81 -0
- package/dist/builder/sync.d.ts +1 -0
- package/dist/builder/sync.js +164 -0
- package/dist/builder/tabs.d.ts +85 -0
- package/dist/builder/tabs.js +288 -0
- package/dist/builder/talk.d.ts +5 -0
- package/dist/builder/talk.js +108 -0
- package/dist/builder/thread.d.ts +60 -0
- package/dist/builder/thread.js +302 -0
- package/dist/builder/tools.d.ts +22 -0
- package/dist/builder/tools.js +52 -0
- package/dist/builder/transcript.d.ts +47 -0
- package/dist/builder/transcript.js +108 -0
- package/dist/builder/voice.d.ts +8 -0
- package/dist/builder/voice.js +24 -0
- package/dist/{changedFileKind-DqgCCDUs.js → changedFileKind-D6QYvIez.js} +1 -1
- package/dist/core.js +1 -0
- package/dist/{decodeImagePreview-CesVZYP4.js → decodeImagePreview-DnfFEjhw.js} +1 -1
- package/dist/{embed-DYP-OUlb.js → embed-c030vUqM.js} +11 -11
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/{micromark-util-decode-string-NQjVkmZH.js → micromark-util-decode-string-C-5AXkOV.js} +5 -3
- package/dist/{readBinaryPreview-D2X4Uahu.js → readBinaryPreview-BAQ4fFjm.js} +1 -1
- package/dist/{useTextFieldSpeech-CyOZZPrV.js → useTextFieldSpeech-COa9XcRx.js} +1 -1
- package/package.json +101 -11
- /package/{index.d.ts → dist/core.d.ts} +0 -0
- /package/{keymap.d.ts → dist/keymap.d.ts} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* What the builder needs from the page that mounts it.
|
|
4
|
+
*
|
|
5
|
+
* The builder is ONE component with several hosts: its own page (hanzo.build,
|
|
6
|
+
* which signs in through Hanzo IAM and routes with react-router) and the Hanzo
|
|
7
|
+
* app's Dev section (hanzo.ai/dev and hanzo.app/dev, which already have a
|
|
8
|
+
* session, a router and a rail). Everything that differs between them is here,
|
|
9
|
+
* as values, so no host forks the builder and the builder imports no host.
|
|
10
|
+
*/
|
|
11
|
+
import { createContext, useContext, useMemo } from 'react';
|
|
12
|
+
const Context = createContext(null);
|
|
13
|
+
export function HostProvider({ host, children }) {
|
|
14
|
+
return _jsx(Context.Provider, { value: host, children: children });
|
|
15
|
+
}
|
|
16
|
+
export function useHost() {
|
|
17
|
+
const h = useContext(Context);
|
|
18
|
+
if (!h)
|
|
19
|
+
throw new Error('The builder was rendered without a host');
|
|
20
|
+
return h;
|
|
21
|
+
}
|
|
22
|
+
/** The host, or null where none is mounted: a surface that may be drawn without one (the first run's card in Chat). */
|
|
23
|
+
export function useHosted() {
|
|
24
|
+
return useContext(Context);
|
|
25
|
+
}
|
|
26
|
+
/** The host's way of showing a page, where one is mounted and has one. The side panel is drawn without a host too (hanzo.team's rooms). */
|
|
27
|
+
export function useBrowse() {
|
|
28
|
+
return useContext(Context)?.browse ?? null;
|
|
29
|
+
}
|
|
30
|
+
/** The host's computer and its folders, where the host runs on one (Hanzo Desktop). */
|
|
31
|
+
export function useLocal() {
|
|
32
|
+
return useContext(Context)?.local ?? null;
|
|
33
|
+
}
|
|
34
|
+
/** The host's way of redesigning a site, where the host runs on a computer that can (Hanzo Desktop). */
|
|
35
|
+
export function useSite() {
|
|
36
|
+
return useContext(Context)?.site ?? null;
|
|
37
|
+
}
|
|
38
|
+
/** The host's browser, where one is mounted and has one. */
|
|
39
|
+
export function useBrowser() {
|
|
40
|
+
return useContext(Context)?.browser ?? null;
|
|
41
|
+
}
|
|
42
|
+
/** The call target for this host — stable while the host's api, token reader and org are. */
|
|
43
|
+
export function useTarget() {
|
|
44
|
+
const { api, token, org } = useHost();
|
|
45
|
+
return useMemo(() => ({ api, token, org }), [api, token, org]);
|
|
46
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hanzo/build — the builder as a component.
|
|
3
|
+
*
|
|
4
|
+
* Mount `<Builder host={…} />` under a gui root in a box with a height. The
|
|
5
|
+
* host says where the platform is, who is signed in, and how to move; the
|
|
6
|
+
* builder does everything else. hanzo.build hosts it whole. A host with a rail
|
|
7
|
+
* of its own mounts it with `rail={false}` and draws the builder's parts in that
|
|
8
|
+
* rail: its places (`nav`), its runs (`useSessions`, or `DevSection` for both),
|
|
9
|
+
* and at the foot the Slack card and the account menu (`Slack`, `Who`), under
|
|
10
|
+
* `HostProvider`. `Grip` (the kit's, passed on) sizes that rail.
|
|
11
|
+
*
|
|
12
|
+
* The side panel's column, for a host that draws it beside its own middle
|
|
13
|
+
* column (Chat): `useSplit`, `SideProvider` and `PrefsProvider` above both, so
|
|
14
|
+
* the width the person drags is kept in their preferences (side.tsx).
|
|
15
|
+
*
|
|
16
|
+
* The plan, once for every surface that shows one: `label` names it (`Max` with
|
|
17
|
+
* `20x` beside it), `useStanding` reads where an account stands, `Meter` is the
|
|
18
|
+
* block an account menu leads with, `Plan` the Usage view and `Credits` the
|
|
19
|
+
* Billing one. Each reads as a `Target`, so a host without a builder mounts it.
|
|
20
|
+
* The pure half — naming, shares, the banner's words — is also `@hanzo/build/plan`,
|
|
21
|
+
* which loads in Node without the components.
|
|
22
|
+
*/
|
|
23
|
+
export { Builder } from './builder.tsx';
|
|
24
|
+
export { Library, Outputs, Preview, Thumb, want } from './library.tsx';
|
|
25
|
+
/** The Library's one reader, for a host that lists what a person made itself: `items(target, filter)` answers one page. */
|
|
26
|
+
export { items, SOURCE, type Filter as ItemFilter, type Item, type Kind as ItemKind, type Page as ItemPage, type Scope as ItemScope, type Source } from './api/library.ts';
|
|
27
|
+
export { Scheduled, schedule } from './scheduled.tsx';
|
|
28
|
+
export { Editor } from './automations.tsx';
|
|
29
|
+
/**
|
|
30
|
+
* The screens a host draws in its own pane, each under `HostProvider` alone, so
|
|
31
|
+
* they sit inside the host's one look (theme and text size) and never under the
|
|
32
|
+
* builder's own `Look`: Library, Scheduled tasks and one task's `Editor` above,
|
|
33
|
+
* `Customize` (one tab), an agent's `Profile`, and the `Forge`'s screens
|
|
34
|
+
* (Projects, Issues, Sync, Connectors).
|
|
35
|
+
*/
|
|
36
|
+
export { Customize } from './customize/index.tsx';
|
|
37
|
+
export { Profile } from './customize/agents.tsx';
|
|
38
|
+
export { Forge } from './forge.tsx';
|
|
39
|
+
export { library, nav, NEW, own, sections, tabs, useScheduled, type Group } from './nav.tsx';
|
|
40
|
+
export { MARKS, type Icon, type Mark } from './marks.tsx';
|
|
41
|
+
export { useFunds, type Funds } from './mind.ts';
|
|
42
|
+
export { DevSection, dot, DOTS, useSessions } from './section.tsx';
|
|
43
|
+
export { HostProvider } from './host.tsx';
|
|
44
|
+
export { Slack, useWho, Who } from './foot.tsx';
|
|
45
|
+
export { Grip, type GripProps } from '@hanzo/ui';
|
|
46
|
+
export { Gutter, type GutterProps } from './gutter.tsx';
|
|
47
|
+
export { administers } from './claims.ts';
|
|
48
|
+
export { Meter, Title } from './meter.tsx';
|
|
49
|
+
export { Plan } from './settings/plan.tsx';
|
|
50
|
+
export { Credits, SEPARATE } from './settings/credits.tsx';
|
|
51
|
+
export { useStanding, rows, left, type Standing, type Row } from './standing.ts';
|
|
52
|
+
export { kind, label, said, share, spent, ways, when, type Label, type Share, type State } from './plan.ts';
|
|
53
|
+
export type { Limits } from './api/limits.ts';
|
|
54
|
+
export type { Target } from './api/call.ts';
|
|
55
|
+
export type { Browse, Browser, Host, Person, Shown, Ask, Spend, SpendKind } from './host.tsx';
|
|
56
|
+
export type { Done, Folder, Local } from './local.ts';
|
|
57
|
+
export type { Live, Saved, Site } from './site.ts';
|
|
58
|
+
export type { Session, Status } from './api/sessions.ts';
|
|
59
|
+
export { mark as markRun, marks as runMarks, useMarks as useRunMarks, type RunMark, type RunMarks } from './runmeta.ts';
|
|
60
|
+
export { cleanErrorText, groupSessions, isAlreadyRunningError, isSessionActive, isSessionLive, linkThread, resolveSessionState, threadChain, threadRoot, useThreadLinks, type ThreadLinks, } from './thread.ts';
|
|
61
|
+
export { cacheBustUrl, hasUnpublishedEdits, previewRevision, resolvePreviewSource, type PreviewInputs, type PreviewKind, type PreviewSource } from './preview-url.ts';
|
|
62
|
+
export { talks } from './api/talk.ts';
|
|
63
|
+
export { detect, type Detected } from './api/skills.ts';
|
|
64
|
+
export { Roles } from './customize/roles.tsx';
|
|
65
|
+
export { recommend, WORK } from './roles.ts';
|
|
66
|
+
export type { Read } from './data.ts';
|
|
67
|
+
export { href, parse, path, PLACES, route, SESSION, SLUG, type Route, type Screen } from './route.ts';
|
|
68
|
+
/**
|
|
69
|
+
* What Chat draws the same way (@hanzo/rooms imports these): the model and
|
|
70
|
+
* effort (`useMind`, one choice kept for both), the row under an answer
|
|
71
|
+
* (`Reply`), and the side panel (`Panel` over a `Deck` of tabs). The composer is
|
|
72
|
+
* @hanzo/ui/chat's, for Chat and Dev alike.
|
|
73
|
+
*/
|
|
74
|
+
export { catalog, EFFORTS, FIRST, grants, isFree, keep, kept, level, nameOf, pacing, useCatalog, useChoice, useMind, type Choice, type Effort, type Mind } from './mind.ts';
|
|
75
|
+
export { DEV_HANDOFF, takeHandoff } from './handoff.ts';
|
|
76
|
+
export { useEar } from './voice.ts';
|
|
77
|
+
export { BARE, CHAT_MODES, DEV_MODES, gearOf, MODES, useGear, useLanguage, type Gear, type GearState, type Mode as GearMode } from './gear.ts';
|
|
78
|
+
export { skillsSaid, useCarry, type Carry } from './carry.tsx';
|
|
79
|
+
export { artifacts, blob, lead, renders, Reply, Served, speakable, speaker, type Artifact, type Listen } from './reply.tsx';
|
|
80
|
+
export { frames, Page, Panel, PanelToggle, type Kind, type PageProps, type PanelProps, type Suggestion } from './panel.tsx';
|
|
81
|
+
export { SideProvider, useSplit, type Split } from './side.tsx';
|
|
82
|
+
export { PrefsProvider } from './prefs.tsx';
|
|
83
|
+
export { deviceKey, friendly, heldNames, NAMES_KEY, rename, shellKey, useDeviceNames, type Names } from './names.ts';
|
|
84
|
+
export { DEV_MODE_EVENT, DEV_MODE_KEY, DEV_MODE_NOTE, formatDeviceLabel, getDevMode, setDevMode, useDevMode, type DeviceLabelOptions } from './dev-mode.ts';
|
|
85
|
+
export { plainPath } from './plain.ts';
|
|
86
|
+
export { Rename } from './ask.tsx';
|
|
87
|
+
export { kinds, Summary, useKinds, type Entry, type Section } from './summary.tsx';
|
|
88
|
+
/**
|
|
89
|
+
* The composer's plugins, the same in Chat and Dev: `usePlugins` answers those
|
|
90
|
+
* that run for this person, `shelf` is the `+` menu's Plugins shelf, and `prep`
|
|
91
|
+
* asks the ones that are on what a message carries (Deep research is the
|
|
92
|
+
* Research switch, `research`).
|
|
93
|
+
*/
|
|
94
|
+
export { active, BUILD, merge, prep, shelf, usePlugins, research, type Plugins } from './plugins/index.ts';
|
|
95
|
+
export type { Composer as PluginComposer, Plugin, Prep, Turn } from './plugin.ts';
|
|
96
|
+
export { address, destination, located, name, PAGE, SEARCH, useDeck, useKey, usePanel, useShown, type Deck, type Tab, type Tabs } from './tabs.ts';
|
|
97
|
+
/**
|
|
98
|
+
* Up to three suggestions under the composer (above it on a phone), each from
|
|
99
|
+
* the person's own activity: `useSuggestions` reads and makes them (a model call
|
|
100
|
+
* when they are due; never signed out, never while the account's `suggestions`
|
|
101
|
+
* preference is off), `setSuggestions` is the one way to switch them, and
|
|
102
|
+
* `Suggestions` draws them with the sentence that says so and its Turn off. A
|
|
103
|
+
* `schedule` row's task is made by `book`, which asks through the host's confirm.
|
|
104
|
+
* The row is `Hint` here: `Suggestion` is the side panel's.
|
|
105
|
+
*/
|
|
106
|
+
export { hand, setSuggestions, Suggestions, taken, useSuggestions, type Suggested, type SuggestionsProps, type Switch as SuggestionsSwitch } from './suggestions.tsx';
|
|
107
|
+
export { book } from './suggest.ts';
|
|
108
|
+
export type { Act, Suggestion as Hint } from './suggest.ts';
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hanzo/build — the builder as a component.
|
|
3
|
+
*
|
|
4
|
+
* Mount `<Builder host={…} />` under a gui root in a box with a height. The
|
|
5
|
+
* host says where the platform is, who is signed in, and how to move; the
|
|
6
|
+
* builder does everything else. hanzo.build hosts it whole. A host with a rail
|
|
7
|
+
* of its own mounts it with `rail={false}` and draws the builder's parts in that
|
|
8
|
+
* rail: its places (`nav`), its runs (`useSessions`, or `DevSection` for both),
|
|
9
|
+
* and at the foot the Slack card and the account menu (`Slack`, `Who`), under
|
|
10
|
+
* `HostProvider`. `Grip` (the kit's, passed on) sizes that rail.
|
|
11
|
+
*
|
|
12
|
+
* The side panel's column, for a host that draws it beside its own middle
|
|
13
|
+
* column (Chat): `useSplit`, `SideProvider` and `PrefsProvider` above both, so
|
|
14
|
+
* the width the person drags is kept in their preferences (side.tsx).
|
|
15
|
+
*
|
|
16
|
+
* The plan, once for every surface that shows one: `label` names it (`Max` with
|
|
17
|
+
* `20x` beside it), `useStanding` reads where an account stands, `Meter` is the
|
|
18
|
+
* block an account menu leads with, `Plan` the Usage view and `Credits` the
|
|
19
|
+
* Billing one. Each reads as a `Target`, so a host without a builder mounts it.
|
|
20
|
+
* The pure half — naming, shares, the banner's words — is also `@hanzo/build/plan`,
|
|
21
|
+
* which loads in Node without the components.
|
|
22
|
+
*/
|
|
23
|
+
export { Builder } from './builder.js';
|
|
24
|
+
export { Library, Outputs, Preview, Thumb, want } from './library.js';
|
|
25
|
+
/** The Library's one reader, for a host that lists what a person made itself: `items(target, filter)` answers one page. */
|
|
26
|
+
export { items, SOURCE } from './api/library.js';
|
|
27
|
+
export { Scheduled, schedule } from './scheduled.js';
|
|
28
|
+
export { Editor } from './automations.js';
|
|
29
|
+
/**
|
|
30
|
+
* The screens a host draws in its own pane, each under `HostProvider` alone, so
|
|
31
|
+
* they sit inside the host's one look (theme and text size) and never under the
|
|
32
|
+
* builder's own `Look`: Library, Scheduled tasks and one task's `Editor` above,
|
|
33
|
+
* `Customize` (one tab), an agent's `Profile`, and the `Forge`'s screens
|
|
34
|
+
* (Projects, Issues, Sync, Connectors).
|
|
35
|
+
*/
|
|
36
|
+
export { Customize } from './customize/index.js';
|
|
37
|
+
export { Profile } from './customize/agents.js';
|
|
38
|
+
export { Forge } from './forge.js';
|
|
39
|
+
export { library, nav, NEW, own, sections, tabs, useScheduled } from './nav.js';
|
|
40
|
+
export { MARKS } from './marks.js';
|
|
41
|
+
export { useFunds } from './mind.js';
|
|
42
|
+
export { DevSection, dot, DOTS, useSessions } from './section.js';
|
|
43
|
+
export { HostProvider } from './host.js';
|
|
44
|
+
export { Slack, useWho, Who } from './foot.js';
|
|
45
|
+
export { Grip } from '@hanzo/ui';
|
|
46
|
+
export { Gutter } from './gutter.js';
|
|
47
|
+
export { administers } from './claims.js';
|
|
48
|
+
export { Meter, Title } from './meter.js';
|
|
49
|
+
export { Plan } from './settings/plan.js';
|
|
50
|
+
export { Credits, SEPARATE } from './settings/credits.js';
|
|
51
|
+
export { useStanding, rows, left } from './standing.js';
|
|
52
|
+
export { kind, label, said, share, spent, ways, when } from './plan.js';
|
|
53
|
+
export { mark as markRun, marks as runMarks, useMarks as useRunMarks } from './runmeta.js';
|
|
54
|
+
export { cleanErrorText, groupSessions, isAlreadyRunningError, isSessionActive, isSessionLive, linkThread, resolveSessionState, threadChain, threadRoot, useThreadLinks, } from './thread.js';
|
|
55
|
+
export { cacheBustUrl, hasUnpublishedEdits, previewRevision, resolvePreviewSource } from './preview-url.js';
|
|
56
|
+
export { talks } from './api/talk.js';
|
|
57
|
+
export { detect } from './api/skills.js';
|
|
58
|
+
export { Roles } from './customize/roles.js';
|
|
59
|
+
export { recommend, WORK } from './roles.js';
|
|
60
|
+
export { href, parse, path, PLACES, route, SESSION, SLUG } from './route.js';
|
|
61
|
+
/**
|
|
62
|
+
* What Chat draws the same way (@hanzo/rooms imports these): the model and
|
|
63
|
+
* effort (`useMind`, one choice kept for both), the row under an answer
|
|
64
|
+
* (`Reply`), and the side panel (`Panel` over a `Deck` of tabs). The composer is
|
|
65
|
+
* @hanzo/ui/chat's, for Chat and Dev alike.
|
|
66
|
+
*/
|
|
67
|
+
export { catalog, EFFORTS, FIRST, grants, isFree, keep, kept, level, nameOf, pacing, useCatalog, useChoice, useMind } from './mind.js';
|
|
68
|
+
export { DEV_HANDOFF, takeHandoff } from './handoff.js';
|
|
69
|
+
export { useEar } from './voice.js';
|
|
70
|
+
export { BARE, CHAT_MODES, DEV_MODES, gearOf, MODES, useGear, useLanguage } from './gear.js';
|
|
71
|
+
export { skillsSaid, useCarry } from './carry.js';
|
|
72
|
+
export { artifacts, blob, lead, renders, Reply, Served, speakable, speaker } from './reply.js';
|
|
73
|
+
export { frames, Page, Panel, PanelToggle } from './panel.js';
|
|
74
|
+
export { SideProvider, useSplit } from './side.js';
|
|
75
|
+
export { PrefsProvider } from './prefs.js';
|
|
76
|
+
export { deviceKey, friendly, heldNames, NAMES_KEY, rename, shellKey, useDeviceNames } from './names.js';
|
|
77
|
+
export { DEV_MODE_EVENT, DEV_MODE_KEY, DEV_MODE_NOTE, formatDeviceLabel, getDevMode, setDevMode, useDevMode } from './dev-mode.js';
|
|
78
|
+
export { plainPath } from './plain.js';
|
|
79
|
+
export { Rename } from './ask.js';
|
|
80
|
+
export { kinds, Summary, useKinds } from './summary.js';
|
|
81
|
+
/**
|
|
82
|
+
* The composer's plugins, the same in Chat and Dev: `usePlugins` answers those
|
|
83
|
+
* that run for this person, `shelf` is the `+` menu's Plugins shelf, and `prep`
|
|
84
|
+
* asks the ones that are on what a message carries (Deep research is the
|
|
85
|
+
* Research switch, `research`).
|
|
86
|
+
*/
|
|
87
|
+
export { active, BUILD, merge, prep, shelf, usePlugins, research } from './plugins/index.js';
|
|
88
|
+
export { address, destination, located, name, PAGE, SEARCH, useDeck, useKey, usePanel, useShown } from './tabs.js';
|
|
89
|
+
/**
|
|
90
|
+
* Up to three suggestions under the composer (above it on a phone), each from
|
|
91
|
+
* the person's own activity: `useSuggestions` reads and makes them (a model call
|
|
92
|
+
* when they are due; never signed out, never while the account's `suggestions`
|
|
93
|
+
* preference is off), `setSuggestions` is the one way to switch them, and
|
|
94
|
+
* `Suggestions` draws them with the sentence that says so and its Turn off. A
|
|
95
|
+
* `schedule` row's task is made by `book`, which asks through the host's confirm.
|
|
96
|
+
* The row is `Hint` here: `Suggestion` is the side panel's.
|
|
97
|
+
*/
|
|
98
|
+
export { hand, setSuggestions, Suggestions, taken, useSuggestions } from './suggestions.js';
|
|
99
|
+
export { book } from './suggest.js';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type Attached } from './tools.tsx';
|
|
2
|
+
/** One vocabulary for the mode, on New and in a workspace: English, marked (`phrase`), drawn through `t`. */
|
|
3
|
+
export declare const MODES: readonly [{
|
|
4
|
+
readonly id: 'build';
|
|
5
|
+
readonly label: string;
|
|
6
|
+
readonly hint: string;
|
|
7
|
+
}, {
|
|
8
|
+
readonly id: 'plan';
|
|
9
|
+
readonly label: string;
|
|
10
|
+
readonly hint: string;
|
|
11
|
+
}];
|
|
12
|
+
/**
|
|
13
|
+
* What was typed here and not sent, kept in this tab.
|
|
14
|
+
*
|
|
15
|
+
* Signing in leaves the page for hanzo.id and comes back (app/enter.ts), and the
|
|
16
|
+
* sentence is still in the composer after. A draft its person SENT while signed
|
|
17
|
+
* out is sent on the return: pressing Send was the ask, and the sign-in stood
|
|
18
|
+
* between it and the run. Only this page writes `sent`, so no link can start a
|
|
19
|
+
* run on somebody's behalf — an address carrying words only fills the composer.
|
|
20
|
+
*
|
|
21
|
+
* sessionStorage, because a draft belongs to the tab it was typed in and not to
|
|
22
|
+
* the next person at this browser; a browser that refuses storage keeps it for
|
|
23
|
+
* the life of the page, as before.
|
|
24
|
+
*/
|
|
25
|
+
export interface Unsent {
|
|
26
|
+
draft: string;
|
|
27
|
+
files: Attached[];
|
|
28
|
+
sent?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** Hold what New has unsent, or forget it once there is nothing. */
|
|
31
|
+
export declare function hold(u: Unsent): void;
|
|
32
|
+
export declare function Landing({ onStarted }: {
|
|
33
|
+
onStarted: (session: string) => void;
|
|
34
|
+
}): import("react").JSX.Element;
|