@uniqbit/mate-core 1.0.0-canary.9 → 1.0.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/claude-capability-plugins/companion-mentions/.claude-plugin/plugin.json +1 -1
- package/package.json +5 -4
- package/src/cli/commands/artifact/delivery/link.ts +1 -1
- package/src/cli/commands/artifact/delivery/output.ts +10 -1
- package/src/cli/commands/artifact/delivery/resolve.ts +3 -2
- package/src/cli/commands/artifact/delivery/submit.ts +9 -4
- package/src/cli/commands/artifact/delivery/take.ts +12 -9
- package/src/cli/commands/artifact/finish/command.ts +16 -14
- package/src/cli/commands/artifact/finish/engine.ts +8 -8
- package/src/cli/commands/artifact/project/command.ts +2 -3
- package/src/cli/commands/companion/hub.ts +11 -6
- package/src/cli/commands/companion/link.ts +173 -46
- package/src/cli/commands/report/contract.ts +0 -17
- package/src/cli/commands/studio/access.ts +4 -0
- package/src/cli/commands/studio/actions.ts +35 -2
- package/src/cli/commands/studio/mcp-manager.ts +162 -0
- package/src/cli/commands/studio/routes.ts +12 -0
- package/src/cli/commands/studio/selection.ts +44 -11
- package/src/cli/commands/studio/server.ts +246 -2
- package/src/cli/commands/studio/services.ts +26 -0
- package/src/cli/commands/studio/terminal-launch.ts +21 -4
- package/src/cli/commands/studio/terminal.ts +3 -14
- package/src/cli/commands/studio/work-requests.ts +9 -0
- package/src/cli/commands/studio/work.ts +473 -0
- package/src/cli/commands/vscode/release-vsix.json +2 -2
- package/src/cli/commands/working/cleanup.ts +1 -18
- package/src/cli/companion-link-wizard.tsx +158 -91
- package/src/cli/usage.ts +1 -1
- package/src/lib/agent-credential.ts +131 -0
- package/src/lib/credential-kinds.ts +7 -0
- package/src/lib/delivery/merge-git.ts +16 -0
- package/src/lib/delivery/record-delivery.ts +12 -6
- package/src/lib/delivery/record.ts +5 -0
- package/src/lib/delivery/refresh.ts +34 -6
- package/src/lib/delivery/staging/refs.ts +9 -4
- package/src/lib/delivery/staging/submit.ts +81 -22
- package/src/lib/mcp-manager/resolve.ts +27 -9
- package/src/lib/mcp-manager/store.ts +35 -11
- package/src/lib/mcp-manager/types.ts +14 -0
- package/src/lib/mcp-manager/validate.ts +6 -10
- package/src/lib/opencode-server.ts +2 -17
- package/src/lib/orchestrator/repo-local-store.ts +14 -0
- package/src/lib/orchestrator/repository-link.ts +80 -52
- package/src/lib/orchestrator/root-context.ts +17 -1
- package/src/lib/studio-chat/agent.ts +139 -0
- package/src/lib/studio-chat/companion-context.ts +136 -0
- package/src/lib/studio-chat/credential.ts +79 -0
- package/src/lib/studio-chat/harness-chat-agent.ts +334 -0
- package/src/lib/studio-chat/host-sandbox.ts +578 -0
- package/src/lib/studio-chat/prepare-bridges.ts +95 -0
- package/src/lib/studio-chat/session.ts +15 -0
- package/src/lib/studio-chat/turns.ts +112 -0
- package/src/lib/workset/claims.ts +85 -0
- package/src/lib/workset/execution.ts +71 -0
- package/src/lib/workset/git-transaction.ts +74 -0
- package/src/lib/workset/groups.ts +176 -0
- package/src/lib/workset/inventory.ts +196 -0
- package/src/lib/workset/projection.ts +237 -0
- package/src/lib/workset/record.ts +101 -36
- package/src/lib/workset/repositories.ts +24 -0
- package/src/lib/workset/sharing.ts +951 -0
- package/src/lib/workset/stages.ts +50 -14
- package/src/lib/workset/transactions.ts +158 -0
- package/src/runtime/companion-git-state.ts +1 -0
- package/src/runtime/companion-guidance.ts +2 -2
- package/src/runtime/forge-remote.ts +6 -0
- package/src/runtime/host-process.ts +28 -0
- package/src/runtime/secret-guard.ts +18 -1
- package/src/runtime/secret-patterns.ts +4 -3
- package/src/runtime/submitted-arrivals.ts +28 -2
- package/src/runtime/write-atomic.ts +2 -2
- package/src/studio.ts +52 -8
- package/src/templates/capabilities/openspec-cap/mate-full/schema.yaml +1 -1
- package/src/templates/capabilities/openspec-cap/mate-full/templates/proposal.md +1 -1
- package/src/templates/mate-skills/agents/mate-publish-artifact/SKILL.md +3 -2
- package/src/templates/mate-skills/agents/mate-submit-change/SKILL.md +5 -3
- package/src/templates/mate-skills/claude/mate-publish-artifact/SKILL.md +3 -2
- package/src/templates/mate-skills/claude/mate-submit-change/SKILL.md +5 -3
- package/src/tools/setup/__snapshots__/runtime-surface-golden.test.ts.snap +12 -12
- package/src/tools/setup/capabilities/mcp-manager.ts +1 -2
- package/src/tools/setup/dynamic-plugins/declarations.ts +0 -26
- package/src/tools/setup/plugins/gitignore.ts +1 -0
- package/src/tools/setup/providers/claude-format.ts +1 -5
- package/src/tools/setup/providers/claude.ts +28 -3
- package/src/tools/setup/providers/opencode.ts +7 -18
- package/src/tools/setup/providers/relative-path-warnings.ts +26 -0
- package/studio-dist/THIRD-PARTY-NOTICES.md +297 -0
- package/studio-dist/client/THIRD-PARTY-LICENSES.md +4294 -0
- package/studio-dist/client/assets/DialogTitle-DOhjDa7H.js +1 -0
- package/studio-dist/client/assets/app-CG3vCgyA.css +2 -0
- package/studio-dist/client/assets/bundle-mjs-CdK3cBzO.js +1 -0
- package/studio-dist/client/assets/button-upSzkd-q.js +1 -0
- package/studio-dist/client/assets/chat-DbaMXb8H.js +157 -0
- package/studio-dist/client/assets/cn-BCnYnarL.js +1 -0
- package/studio-dist/client/assets/combobox-cP9OsRf2.js +1 -0
- package/studio-dist/client/assets/{companion-view-C1F0_jbt.js → companion-view-B54_Lj0S.js} +1 -1
- package/studio-dist/client/assets/fields-DNZ4a89M.js +1 -0
- package/studio-dist/client/assets/friction-DgEimeDB.js +1 -0
- package/studio-dist/client/assets/getting-started-BTfYCt5s.js +1 -0
- package/studio-dist/client/assets/{getting-started-BN4aTpsz.js → getting-started-CAszmdDJ.js} +1 -1
- package/studio-dist/client/assets/getting-started._topic-CHJMf0pa.js +1 -0
- package/studio-dist/client/assets/getting-started.index-MR6HftWs.js +1 -0
- package/studio-dist/client/assets/{graph-canvas-Be5qgdDt.js → graph-canvas-BdNk2F9O.js} +1 -1
- package/studio-dist/client/assets/graph-hRijsC89.js +2 -0
- package/studio-dist/client/assets/guides-CwFnh08E.js +1 -0
- package/studio-dist/client/assets/highlighted-body-JLMTFACH-BcroQey-.js +1 -0
- package/studio-dist/client/assets/index-D5oGyvG8.js +41 -0
- package/studio-dist/client/assets/{markdown-view-dku7MGPn.js → markdown-view-CJ8JsLb7.js} +1 -1
- package/studio-dist/client/assets/marked.esm-vFuq1cCd.js +65 -0
- package/studio-dist/client/assets/mcp-BE9M-bkO.js +4 -0
- package/studio-dist/client/assets/mermaid-WFAXDIZX-BjSsakrn.js +1 -0
- package/studio-dist/client/assets/panel-CDQ6Lryw.js +1 -0
- package/studio-dist/client/assets/plugins._service._view-DRVPUAWN.js +1 -0
- package/studio-dist/client/assets/{prepaint-BkoDSw5X.js → prepaint-sD_LlrDN.js} +1 -1
- package/studio-dist/client/assets/{queries-CMvC2OkU.js → queries-COL925ML.js} +1 -1
- package/studio-dist/client/assets/react-dom-K3Hp2Cdj.js +1 -0
- package/studio-dist/client/assets/{react-BYUSgtBs.js → react-h2xQ_NSp.js} +1 -1
- package/studio-dist/client/assets/reports-BClsojkb.js +1 -0
- package/studio-dist/client/assets/routes-CJQ2MAej.js +1 -0
- package/studio-dist/client/assets/search-DhWdEiKT.js +1 -0
- package/studio-dist/client/assets/select-B2FsN9FY.js +1 -0
- package/studio-dist/client/assets/skills-SoUHk77W.js +1 -0
- package/studio-dist/client/assets/{specs-Bqd1ajyD.js → specs-C_tZnAvF.js} +1 -1
- package/studio-dist/client/assets/specs-view-C6t3Y5IT.js +1 -0
- package/studio-dist/client/assets/steps-CF3-Zpmh.js +1 -0
- package/studio-dist/client/assets/{store-BYnEU33C.js → store-pY9gU4uS.js} +1 -1
- package/studio-dist/client/assets/studio-X7bnFrRe.js +36 -0
- package/studio-dist/client/assets/studio-queries-CKtAnIKP.js +2 -0
- package/studio-dist/client/assets/usage-BaaqUpTG.js +55 -0
- package/studio-dist/client/assets/useAnchoredPopupScrollLock-BspHR7Wt.js +1 -0
- package/studio-dist/client/assets/useBlocker-BQOfcu_f.js +1 -0
- package/studio-dist/client/assets/useMutation-DKeEoP5S.js +1 -0
- package/studio-dist/client/assets/useOpenInteractionType-CtaZCaFT.js +1 -0
- package/studio-dist/client/assets/usePopupHandleStore-Bc7Q4bnF.js +1 -0
- package/studio-dist/client/assets/vault-sAPFUnPN.js +1 -0
- package/studio-dist/client/assets/{warnings-Cnw99ugO.js → warnings-D7YY1HSG.js} +1 -1
- package/studio-dist/client/assets/work-BZek_LGB.js +5 -0
- package/studio-dist/client/assets/workflow-N5boHXFz.js +1 -0
- package/studio-dist/server/THIRD-PARTY-LICENSES.md +4371 -0
- package/studio-dist/server/assets/DialogTitle-DnKSl2V0.js +421 -0
- package/studio-dist/server/assets/{__23tanstack-start-server-fn-resolver-CS3QRY4Q.js → __23tanstack-start-server-fn-resolver-Bli9bpSB.js} +38 -18
- package/studio-dist/server/assets/_tanstack-start-manifest_v.js +91 -59
- package/studio-dist/server/assets/{actions-D8erOphH.js → actions-CHEFA1i9.js} +33 -1
- package/studio-dist/server/assets/{cn-DWFJaP_9.js → bundle-mjs-Ot6dQ8Pq.js} +1 -2056
- package/studio-dist/server/assets/{button-Ct_WeYLc.js → button-BqA1urbl.js} +14 -7
- package/studio-dist/server/assets/chat-zl332Tvu.js +49486 -0
- package/studio-dist/server/assets/cn-B0fl6NWK.js +2057 -0
- package/studio-dist/server/assets/{combobox-17vO5Uz8.js → combobox-iTjvPCtS.js} +7 -6
- package/studio-dist/server/assets/{companion-view-JkxnGLlp.js → companion-view-DIQ6AFIY.js} +2 -2
- package/studio-dist/server/assets/{companions-YNLsbnch.js → companions-aVwjRL8j.js} +1 -1
- package/studio-dist/server/assets/{fields-VytPpqBq.js → fields-BMap2_Ju.js} +10 -3
- package/studio-dist/server/assets/{friction-BW86PCPM.js → friction-BER50hoD.js} +2 -2
- package/studio-dist/server/assets/{friction-B6osqFSm.js → friction-BPs9KWdq.js} +8 -8
- package/studio-dist/server/assets/{getting-started-CFHSeX5h.js → getting-started-DGfRVmZ_.js} +2 -2
- package/studio-dist/server/assets/{getting-started._topic-BK2eU6AS.js → getting-started._topic-BgrBA4Vj.js} +2 -2
- package/studio-dist/server/assets/{getting-started.index-DZLuXnNO.js → getting-started.index-BaFfQ9Mn.js} +2 -2
- package/studio-dist/server/assets/{graph-BJVZBevL.js → graph-Cgzlrv3P.js} +8 -8
- package/studio-dist/server/assets/{graph-DGZHV-Ek.js → graph-DODpuOy_.js} +1 -1
- package/studio-dist/server/assets/{graph-canvas-lrNT6jbl.js → graph-canvas-DW_zU1nA.js} +2 -2
- package/studio-dist/server/assets/{guides-_G8Vucsk.js → guides-CA_EMG7E.js} +1 -1
- package/studio-dist/server/assets/{guides-CEwLOZb9.js → guides-D0SpoD32.js} +1 -1
- package/studio-dist/server/assets/{guides.server-ZWFKX2XJ.js → guides.server-DJjQuy03.js} +1 -1
- package/studio-dist/server/assets/highlighted-body-JLMTFACH-BeHllu-r.js +41 -0
- package/studio-dist/server/assets/{markdown-view-Bmjghg_Z.js → markdown-view-CvVBGMZV.js} +1 -1
- package/studio-dist/server/assets/mcp-BU0fLYyJ.js +1103 -0
- package/studio-dist/server/assets/mcp-manager-D9YctTQe.js +50 -0
- package/studio-dist/server/assets/mermaid-WFAXDIZX-B1yDN6vG.js +1 -0
- package/studio-dist/server/assets/{panel-DvRjyil3.js → panel-D1K6Bsux.js} +4 -32
- package/studio-dist/server/assets/{plugins._service._view-B32LzraG.js → plugins._service._view-DdO1nELF.js} +4 -4
- package/studio-dist/server/assets/{prepaint-BEHwKl51.js → prepaint-BB3dwSmz.js} +1 -1
- package/studio-dist/server/assets/{queries-D6Vq0AuZ.js → queries-BwiDxQy5.js} +1 -1
- package/studio-dist/server/assets/{react-CiBZPDs8.js → react-B2cLiz-i.js} +1 -1
- package/studio-dist/server/assets/{reports-Dn92pLap.js → reports-9Pr7Bz6o.js} +7 -7
- package/studio-dist/server/assets/{reports-DDaH5k0H.js → reports-Cc9M3phM.js} +1 -1
- package/studio-dist/server/assets/{router-Bjf4S9tO.js → router-DcWe0J7Y.js} +827 -548
- package/studio-dist/server/assets/{routes-B4sNiE0X.js → routes-BEXxl0py.js} +8 -8
- package/studio-dist/server/assets/{search-DKeJRvg8.js → search-bltT7gwy.js} +39 -7
- package/studio-dist/server/assets/{select-CVHYL7oR.js → select-CZvHgGCi.js} +7 -6
- package/studio-dist/server/assets/{shell-BxbYYaAk.js → shell-BQ0vMKXN.js} +13 -4
- package/studio-dist/server/assets/{skills-Bj8eOgzR.js → skills-Be_52h0i.js} +1 -1
- package/studio-dist/server/assets/{skills-B4-0qpqN.js → skills-BpGGUl6L.js} +8 -8
- package/studio-dist/server/assets/{specs-rfMug6qW.js → specs-CCGgXE-V.js} +5 -5
- package/studio-dist/server/assets/{specs-view-qi1SE1Sl.js → specs-view-DtL5JxYM.js} +12 -11
- package/studio-dist/server/assets/{steps-rger6HJc.js → steps-BWFSO6dM.js} +1 -1
- package/studio-dist/server/assets/{store-Dg9T7oWs.js → store-X7yLPp7v.js} +1 -1
- package/studio-dist/server/assets/{studio-queries-CeFfmIuM.js → studio-queries-ur1ygXi3.js} +117 -13
- package/studio-dist/server/assets/{studio-D79JzDLc.js → studio-qzH-UETC.js} +209 -180
- package/studio-dist/server/assets/{usage-Dw_UQFX-.js → usage-C1o0DLzS.js} +1 -1
- package/studio-dist/server/assets/{usage-BJgYWRCX.js → usage-DWbSPrPD.js} +10 -9
- package/studio-dist/server/assets/{useAnchoredPopupScrollLock-ciS_sEq3.js → useAnchoredPopupScrollLock-DLDmv6kM.js} +4 -135
- package/studio-dist/server/assets/useBlocker-CQtANHK8.js +111 -0
- package/studio-dist/server/assets/{useMutation-DnWK0PhO.js → useMutation-NjlA8oFY.js} +2 -2
- package/studio-dist/server/assets/useOpenInteractionType-CZYscfOb.js +136 -0
- package/studio-dist/server/assets/usePopupHandleStore-DEEXJYv0.js +26 -0
- package/studio-dist/server/assets/{vault-BzarssiL.js → vault-B_kfi1h-.js} +1 -1
- package/studio-dist/server/assets/{vault-CvlrLd2H.js → vault-dL79JlKH.js} +8 -115
- package/studio-dist/server/assets/{views-CAxwKHMK.js → views-BSGH56lb.js} +3 -3
- package/studio-dist/server/assets/{warnings-BpVCugHm.js → warnings-DtUVPV-k.js} +2 -2
- package/studio-dist/server/assets/work-D789VXGH.js +110 -0
- package/studio-dist/server/assets/work-DsCEfhmK.js +3817 -0
- package/studio-dist/server/assets/work-requests-BLhOmQFO.js +11 -0
- package/studio-dist/server/assets/{workflow-BdrzcCt8.js → workflow-BOZ2sRYg.js} +9 -9
- package/studio-dist/server/server.js +3 -3
- package/wrappers/bin/openspec +87 -2
- package/studio-dist/client/assets/app-ggXJ_QVh.css +0 -2
- package/studio-dist/client/assets/button-C9SQW3kI.js +0 -1
- package/studio-dist/client/assets/cn-DC80MJV0.js +0 -1
- package/studio-dist/client/assets/combobox-D7mKYCBb.js +0 -1
- package/studio-dist/client/assets/fields-CEep8IFT.js +0 -1
- package/studio-dist/client/assets/friction-D9dBU7WN.js +0 -1
- package/studio-dist/client/assets/getting-started-BDyGvHhc.js +0 -1
- package/studio-dist/client/assets/getting-started._topic-B9ajbF4o.js +0 -1
- package/studio-dist/client/assets/getting-started.index-CYiBPtb7.js +0 -1
- package/studio-dist/client/assets/graph-ah7ZXfTa.js +0 -2
- package/studio-dist/client/assets/guides-CsL0660B.js +0 -1
- package/studio-dist/client/assets/index-zmRH87D4.js +0 -40
- package/studio-dist/client/assets/panel-COgk0vP5.js +0 -1
- package/studio-dist/client/assets/plugins._service._view-Cn3WBHab.js +0 -1
- package/studio-dist/client/assets/reports-C_AqLBYH.js +0 -1
- package/studio-dist/client/assets/routes-BokQmHtC.js +0 -1
- package/studio-dist/client/assets/search-DxidNK2M.js +0 -1
- package/studio-dist/client/assets/select-CYFCbHUd.js +0 -1
- package/studio-dist/client/assets/skills-R3vttWHM.js +0 -1
- package/studio-dist/client/assets/specs-view-znqFPx9p.js +0 -1
- package/studio-dist/client/assets/steps-tVDWn7j6.js +0 -1
- package/studio-dist/client/assets/studio-ndtFcS2Y.js +0 -100
- package/studio-dist/client/assets/studio-queries-CkUSByy7.js +0 -2
- package/studio-dist/client/assets/usage-Kuhr8dSl.js +0 -55
- package/studio-dist/client/assets/useAnchoredPopupScrollLock-dc_kP4Go.js +0 -1
- package/studio-dist/client/assets/useMutation-CqtM9COw.js +0 -1
- package/studio-dist/client/assets/vault-CSP8kwRg.js +0 -1
- package/studio-dist/client/assets/workflow-BPJAmmZi.js +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { n as require_react, o as __toESM, t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
2
|
-
import { t as cn } from "./cn-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { t as cn } from "./cn-B0fl6NWK.js";
|
|
3
|
+
import { Dn as contains, Gn as inputPress, Jn as listNavigation, L as DROPDOWN_COLLISION_AVOIDANCE, Ln as cancelOpen, M as FloatingPortal, On as getTarget, Or as useRenderElement, Qt as stopEvent, S as useOpenChangeComplete, Y as useTimeout, Yn as none, ar as useButton, br as isElement, cn as popupStateMapping, cr as useIsoLayoutEffect, lr as useStableCallback, nn as isInteractiveElement, nr as createChangeEventDetails, or as ownerDocument, r as Icon, sr as formatErrorMessage, vn as transitionStatusMapping } from "./button-BqA1urbl.js";
|
|
4
|
+
import { h as useFieldRootContext, l as useLabelableId, o as InternalBackdrop, s as useSetFieldFocused, u as useLabelableContext, v as inertValue, y as FloatingFocusManager } from "./fields-BMap2_Ju.js";
|
|
5
|
+
import { r as useClick } from "./useOpenInteractionType-CZYscfOb.js";
|
|
6
|
+
import { t as useAnchoredPopupScrollLock } from "./useAnchoredPopupScrollLock-DLDmv6kM.js";
|
|
7
|
+
import { C as useTypeahead, S as isMouseWithinBounds, i as POPUP, n as ITEM, p as ItemIndicator, r as ITEM_CHECK, t as CHEVRON, u as TRIGGER, x as resolveAriaLabelledBy } from "./select-CZvHgGCi.js";
|
|
8
|
+
import { Et as useAnchorPositioning, Tt as getDisabledMountTransitionStyles, _t as useComboboxRootContext, at as ComboboxList$1, ct as ComboboxPositionerContext, dt as usePopupSide, ft as triggerStateAttributesMapping, gt as useComboboxInputValueContext, ht as useComboboxFloatingContext, it as useComboboxItemContext, lt as useComboboxPositionerContext, mt as getComboboxPopupId, nt as ComboboxEmpty$1, ot as ComboboxInput$1, pt as AriaCombobox, rt as ComboboxItem$1, st as ComboboxInternalDismissButton, ut as useListEmpty, wt as usePositioner } from "./router-DcWe0J7Y.js";
|
|
8
9
|
// ../../node_modules/.bun/@base-ui+react@1.9.0+9e489665888c9e4a/node_modules/@base-ui/react/combobox/trigger/ComboboxTrigger.mjs
|
|
9
10
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
10
11
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Lt as useSuspenseQuery } from "./router-DcWe0J7Y.js";
|
|
2
|
+
import { o as companionViewQuery } from "./studio-queries-ur1ygXi3.js";
|
|
3
3
|
import { t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
4
4
|
// src/shell/companion-error.tsx
|
|
5
5
|
var import_jsx_runtime = require_jsx_runtime();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createServerRpc } from "./createServerRpc-bFKFpGFG.js";
|
|
2
2
|
import { n as createServerFn } from "../server.js";
|
|
3
|
-
import {
|
|
3
|
+
import { T as COMPANION_DIGEST_PATTERN } from "./studio-qzH-UETC.js";
|
|
4
4
|
// src/server/companions.ts?tss-serverfn-split
|
|
5
5
|
/** Deletes a registered companion's folder and unregisters it; core refuses unless writable. */
|
|
6
6
|
var deleteCompanion_createServerFn_handler = createServerRpc({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as require_react, o as __toESM, t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
2
|
-
import { t as cn } from "./cn-
|
|
3
|
-
import { $t as getNodeAncestors,
|
|
2
|
+
import { t as cn } from "./cn-B0fl6NWK.js";
|
|
3
|
+
import { $t as getNodeAncestors, B as FocusGuard, Cr as isOverflowElement, Dn as contains, Dt as isElementVisible, E as resolveRef, En as closest, Fr as useMergedRefs, G as useValueAsRef, Ir as useRefWithInit, J as Timeout, K as mergeCleanups, Lr as useBaseUiId, Mr as EMPTY_OBJECT, Nn as ios, Nr as NOOP, On as getTarget, Or as useRenderElement, P as usePortalContext, Pr as isReactVersionAtLeast, Qt as stopEvent, St as tabbable, Tn as activeElement, U as AnimationFrame, Vn as focusOut, W as useAnimationFrame, Xt as isVirtualClick, Y as useTimeout, Yn as none, Zt as isVirtualPointerEvent, _t as getNextTabbable, an as isTypeableElement, bt as isOutsideEvent, cr as useIsoLayoutEffect, en as getNodeChildren, gt as focusable, in as isTypeableCombobox, j as useFloatingTree, jn as webkit, lr as useStableCallback, mr as getNodeName, nr as createChangeEventDetails, or as ownerDocument, q as addEventListener, sr as formatErrorMessage, tn as getFloatingFocusElement, vr as getWindow, vt as getPreviousTabbable, wr as isShadowRoot, xr as isHTMLElement, xt as isTabbable, z as createAttribute } from "./button-BqA1urbl.js";
|
|
4
4
|
// ../../node_modules/.bun/@base-ui+react@1.9.0+9e489665888c9e4a/node_modules/@base-ui/react/floating-ui-react/utils/enqueueFocus.mjs
|
|
5
5
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6
6
|
var rafId = 0;
|
|
@@ -1180,6 +1180,13 @@ function Input({ className, ...props }) {
|
|
|
1180
1180
|
...props
|
|
1181
1181
|
});
|
|
1182
1182
|
}
|
|
1183
|
+
function Textarea({ className, ...props }) {
|
|
1184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("textarea", {
|
|
1185
|
+
"data-slot": "textarea",
|
|
1186
|
+
className: cn(FIELD, "min-h-20 py-2 leading-relaxed", className),
|
|
1187
|
+
...props
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1183
1190
|
function Separator({ className, orientation = "horizontal", ...props }) {
|
|
1184
1191
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Separator$1, {
|
|
1185
1192
|
"data-slot": "separator",
|
|
@@ -1188,4 +1195,4 @@ function Separator({ className, orientation = "horizontal", ...props }) {
|
|
|
1188
1195
|
...props
|
|
1189
1196
|
});
|
|
1190
1197
|
}
|
|
1191
|
-
export {
|
|
1198
|
+
export { fieldValidityMapping as _, useScrollLock as a, enqueueFocus as b, useValueChanged as c, useFormContext as d, useRegisterFieldControl as f, DEFAULT_FIELD_STATE_ATTRIBUTES as g, useFieldRootContext as h, Textarea as i, useLabelableId as l, FieldRootContext as m, Kbd as n, InternalBackdrop as o, DEFAULT_FIELD_ROOT_CONTEXT as p, Separator as r, useSetFieldFocused as s, Input as t, useLabelableContext as u, inertValue as v, FloatingFocusManager as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createServerRpc } from "./createServerRpc-bFKFpGFG.js";
|
|
2
2
|
import { n as createServerFn } from "../server.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { T as COMPANION_DIGEST_PATTERN, y as MARK_STATES } from "./studio-qzH-UETC.js";
|
|
4
|
+
import { c as frictionViewDays, n as oneOf, s as FRICTION_VIEW_DAYS } from "./search-bltT7gwy.js";
|
|
5
5
|
// src/server/friction.ts?tss-serverfn-split
|
|
6
6
|
function validateFrictionInput(input) {
|
|
7
7
|
if (typeof input?.companion !== "string" || !COMPANION_DIGEST_PATTERN.test(input.companion)) throw new Error("No registered companion was selected");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { _ as REPORT_KINDS, h as FRICTION_STATES, m as selectFriction$1, y as SUBJECT_TYPES } from "./studio-D79JzDLc.js";
|
|
1
|
+
import { B as RecordingState, F as frictionQuery, I as useMarkFriction, L as useSetFrictionRecording, N as useBrowser, P as useRetryFocus, R as RecordingButton, Rt as useQuery, _ as Route, z as RecordingReach } from "./router-DcWe0J7Y.js";
|
|
2
|
+
import { K as keepPreviousData } from "./studio-queries-ur1ygXi3.js";
|
|
3
|
+
import { S as SUBJECT_TYPES, _ as selectFriction$1, b as REPORT_KINDS, v as FRICTION_STATES } from "./studio-qzH-UETC.js";
|
|
5
4
|
import { n as require_react, o as __toESM, t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { et as CommandLine, it as PAGE_PAD, lt as StatusWord, nt as EmptyNote, ot as Pills, r as Icon, rt as ListCard, t as Button, tt as Count, ut as ViewLoading } from "./button-BqA1urbl.js";
|
|
6
|
+
import { a as Select, c as SelectTrigger, l as SelectValue, o as SelectContent, s as SelectItem } from "./select-CZvHgGCi.js";
|
|
7
|
+
import { t as cn } from "./cn-B0fl6NWK.js";
|
|
8
|
+
import { n as oneOf, s as FRICTION_VIEW_DAYS } from "./search-bltT7gwy.js";
|
|
9
|
+
import { t as Input } from "./fields-BMap2_Ju.js";
|
|
10
10
|
// ../mate-core/src/runtime/framework.ts
|
|
11
11
|
/**
|
|
12
12
|
* Framework identity: names everything identity-shaped — state directories
|
package/studio-dist/server/assets/{getting-started-CFHSeX5h.js → getting-started-DGfRVmZ_.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as MarkdownView } from "./markdown-view-
|
|
1
|
+
import { ut as Link } from "./studio-queries-ur1ygXi3.js";
|
|
2
|
+
import { t as MarkdownView } from "./markdown-view-CvVBGMZV.js";
|
|
3
3
|
import { t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
4
4
|
// src/views/getting-started/getting-started.tsx
|
|
5
5
|
var import_jsx_runtime = require_jsx_runtime();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as GettingStarted } from "./getting-started-
|
|
2
|
-
import { r as Route } from "./router-
|
|
1
|
+
import { t as GettingStarted } from "./getting-started-DGfRVmZ_.js";
|
|
2
|
+
import { r as Route } from "./router-DcWe0J7Y.js";
|
|
3
3
|
import { t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
4
4
|
// src/routes/getting-started.$topic.tsx?tsr-split=component
|
|
5
5
|
var import_jsx_runtime = require_jsx_runtime();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as GettingStarted } from "./getting-started-
|
|
2
|
-
import { i as Route } from "./router-
|
|
1
|
+
import { t as GettingStarted } from "./getting-started-DGfRVmZ_.js";
|
|
2
|
+
import { i as Route } from "./router-DcWe0J7Y.js";
|
|
3
3
|
import { t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
4
4
|
// src/routes/getting-started.index.tsx?tsr-split=component
|
|
5
5
|
var import_jsx_runtime = require_jsx_runtime();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./studio-
|
|
1
|
+
import { Rt as useQuery, g as Route } from "./router-DcWe0J7Y.js";
|
|
2
|
+
import "./studio-qzH-UETC.js";
|
|
3
3
|
import { i as __exportAll, n as require_react, o as __toESM, t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { it as PAGE_PAD, nt as EmptyNote, r as Icon } from "./button-BqA1urbl.js";
|
|
5
|
+
import { t as cn } from "./cn-B0fl6NWK.js";
|
|
6
|
+
import { s as graphQuery, ut as Link } from "./studio-queries-ur1ygXi3.js";
|
|
7
|
+
import { n as PanelSection, r as SidePanel, t as PanelHead } from "./panel-D1K6Bsux.js";
|
|
8
|
+
import { a as archivedArtifactPath, i as ROOT_AREA_LABEL, o as capabilityNodeId, r as GRAPH_EDGE_KINDS, t as SpecDetail } from "./specs-view-DtL5JxYM.js";
|
|
9
9
|
// src/views/graph/model.ts
|
|
10
10
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
11
11
|
var NODE_SIZE = {
|
|
@@ -480,7 +480,7 @@ function GraphPanelBody({ selection, ...props }) {
|
|
|
480
480
|
}
|
|
481
481
|
// src/views/graph/graph-view.tsx
|
|
482
482
|
/** The renderer is its own chunk: only a graph with specs loads it. */
|
|
483
|
-
var GraphCanvas = (0, import_react.lazy)(() => import("./graph-canvas-
|
|
483
|
+
var GraphCanvas = (0, import_react.lazy)(() => import("./graph-canvas-DW_zU1nA.js"));
|
|
484
484
|
var EDGE_LABELS = {
|
|
485
485
|
binds: "Areas",
|
|
486
486
|
in: "Repositories",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createServerRpc } from "./createServerRpc-bFKFpGFG.js";
|
|
2
2
|
import { n as createServerFn } from "../server.js";
|
|
3
|
-
import {
|
|
3
|
+
import { T as COMPANION_DIGEST_PATTERN } from "./studio-qzH-UETC.js";
|
|
4
4
|
import { t as packGraph } from "./graph-wire-BdSUx0G5.js";
|
|
5
5
|
// src/server/graph.ts?tss-serverfn-split
|
|
6
6
|
/** The companion's spec graph, packed; Core rebuilds it only when its specs or archives change. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./studio-
|
|
1
|
+
import "./studio-qzH-UETC.js";
|
|
2
2
|
import { n as require_react, o as __toESM, r as __commonJSMin, t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
3
|
-
import { a as forEachEdge$1, c as seedPositions, i as edgeVisible, n as NODE_SIZE, o as layoutWeight, r as edgeKey, s as placeNodes } from "./graph-
|
|
3
|
+
import { a as forEachEdge$1, c as seedPositions, i as edgeVisible, n as NODE_SIZE, o as layoutWeight, r as edgeKey, s as placeNodes } from "./graph-Cgzlrv3P.js";
|
|
4
4
|
import { EventEmitter } from "events";
|
|
5
5
|
// ../../node_modules/.bun/graphology-layout-forceatlas2@0.10.1+6368c1bed9f3b4f1/node_modules/graphology-layout-forceatlas2/webworker.js
|
|
6
6
|
var require_webworker = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as createSsrRpc } from "./studio-queries-ur1ygXi3.js";
|
|
2
2
|
import { n as createServerFn } from "../server.js";
|
|
3
3
|
// src/server/guides.ts
|
|
4
4
|
var getGuide = createServerFn({ method: "GET" }).validator((input) => ({ topic: String(input.topic) })).handler(createSsrRpc("b2e22d82aeef8a3802144ae67d3a53a4fff5860a1a0b957618e8dcc7c0ef36c8"));
|
|
@@ -7,7 +7,7 @@ var getGuide_createServerFn_handler = createServerRpc({
|
|
|
7
7
|
filename: "src/server/guides.ts"
|
|
8
8
|
}, (opts) => getGuide.__executeServer(opts));
|
|
9
9
|
var getGuide = createServerFn({ method: "GET" }).validator((input) => ({ topic: String(input.topic) })).handler(getGuide_createServerFn_handler, async ({ data }) => {
|
|
10
|
-
const { guides } = await import("./guides.server-
|
|
10
|
+
const { guides } = await import("./guides.server-DJjQuy03.js");
|
|
11
11
|
return Object.hasOwn(guides, data.topic) ? guides[data.topic] : null;
|
|
12
12
|
});
|
|
13
13
|
export { getGuide_createServerFn_handler };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as guideTree } from "./studio-qzH-UETC.js";
|
|
2
2
|
// src/views/getting-started/start.md?raw
|
|
3
3
|
var start_default = "## Your first change\n\nYour **Working Repository** holds product code. The **Companion Repository**\nholds shared context, plans, specs, and tasks. Mate brings that context into\nyour agent session. Reading this guide runs nothing and writes no files.\n\n### 1. Link your project\n\nYou need Git, Mate, an installed OpenCode or Claude Code, and a Companion\nRepository with OpenSpec enabled. In your project checkout:\n\n```sh\ncd ~/src/acme\nmate companion link\n```\n\nChoose your intended companion. Selecting it in Studio alone does not link\nthe checkout. If linking or launch fails, run `mate doctor` here and resolve\nits diagnostics; ask your Companion Maintainer about missing capabilities.\n\n### 2. Start an agent\n\nFrom the same checkout, choose your installed runtime:\n\n```sh\nmate opencode\n```\n\nOr use `mate claude`. The session starts with your project's context and\nskills. Check the reported Working Repository and Session Companion.\n\n### 3. Plan, review, then apply\n\nSkill examples belong in the **agent conversation, not your terminal**.\nOpenCode uses `@name`; Claude Code uses `/name`.\n\n- **Explore:** describe the problem with `@mate-explore-change acme-fix`.\n Agree on scope and direction before implementation.\n- **Propose:** `@mate-propose-change acme-fix` writes the plan, specs, and\n tasks in the Companion Repository—not product code.\n- **Review:** read those artifacts yourself. Request revisions if needed.\n Validation is evidence, not approval.\n- **Apply:** only after review, request `@mate-apply-change acme-fix`.\n Confirm the delivery branch in this checkout. The agent implements the\n tasks and reports checks; resolve blockers or scope changes before resuming.\n\n### 4. Review and deliver\n\nInspect the diff, run project checks, and review behavior. Explicitly authorize\ncommit, push, pull request, and merge through your team's normal process;\napply does not do these for you.\n\nThen ask the agent to **archive** the change locally and **publish** its\ncompanion artifacts for teammates. Archival, merge, and publication are\nseparate actions: publication requires archival and a merged delivery branch,\nplus your confirmation of the companion commit, dated revert tag, and push.\n\nOptional: [Worktrees](/docs/concepts/worktrees) for isolated checkouts;\n[VS Code & Cursor](/docs/getting-started/vscode) for editor integration.\n";
|
|
4
4
|
// src/views/getting-started/vscode.md?raw
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { i as Wc, n as In, r as R } from "./chat-zl332Tvu.js";
|
|
2
|
+
import { n as require_react, o as __toESM, t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
3
|
+
// ../../node_modules/.bun/streamdown@2.7.1+7492c01c6988791b/node_modules/streamdown/dist/highlighted-body-JLMTFACH.js
|
|
4
|
+
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
6
|
+
var T = ({ code: s, isIncomplete: l = false, language: e, maxHeight: d, raw: t, className: a, startLine: c$1, lineNumbers: p, ...f$1 }) => {
|
|
7
|
+
let { shikiTheme: r } = (0, import_react.useContext)(R), o = Wc(), [H, i] = (0, import_react.useState)(t);
|
|
8
|
+
return (0, import_react.useEffect)(() => {
|
|
9
|
+
if (!o) {
|
|
10
|
+
i(t);
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
let n = true, u = o.highlight({
|
|
14
|
+
code: s,
|
|
15
|
+
isIncomplete: l,
|
|
16
|
+
language: e,
|
|
17
|
+
themes: r
|
|
18
|
+
}, (B) => {
|
|
19
|
+
n && i(B);
|
|
20
|
+
});
|
|
21
|
+
return u && i(u), () => {
|
|
22
|
+
n = false;
|
|
23
|
+
};
|
|
24
|
+
}, [
|
|
25
|
+
s,
|
|
26
|
+
l,
|
|
27
|
+
e,
|
|
28
|
+
r,
|
|
29
|
+
o,
|
|
30
|
+
t
|
|
31
|
+
]), (0, import_jsx_runtime.jsx)(In, {
|
|
32
|
+
className: a,
|
|
33
|
+
language: e,
|
|
34
|
+
lineNumbers: p,
|
|
35
|
+
maxHeight: d,
|
|
36
|
+
result: H,
|
|
37
|
+
startLine: c$1,
|
|
38
|
+
...f$1
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
export { T as HighlightedCodeBlockBody };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ut as Link } from "./studio-queries-ur1ygXi3.js";
|
|
2
2
|
import { n as require_react, o as __toESM, t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
3
3
|
// src/views/vault/markdown-view.tsx
|
|
4
4
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|