@uniqbit/mate-core 1.0.0-canary.6 → 1.0.0-canary.7
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 +1 -1
- package/src/cli/commands/doctor.ts +51 -0
- package/src/cli/commands/friction.ts +558 -0
- package/src/cli/commands/studio/connection.ts +53 -0
- package/src/cli/commands/studio/routes.ts +3 -0
- package/src/cli/commands/studio/selection.ts +10 -1
- package/src/cli/commands/studio/server.ts +31 -0
- package/src/cli/commands/studio/services.ts +25 -0
- package/src/cli/commands/triage.ts +151 -0
- package/src/cli/commands/vscode/release-vsix.json +2 -2
- package/src/cli/main.ts +35 -13
- package/src/cli/plugin-commands.ts +6 -1
- package/src/cli/usage.ts +10 -0
- package/src/create-mate.ts +11 -5
- package/src/distribution.ts +2 -0
- package/src/hooks/validate-artifact-path.ts +64 -14
- package/src/lib/friction/describe.ts +42 -0
- package/src/lib/friction/fields.ts +60 -0
- package/src/lib/friction/mark.ts +156 -0
- package/src/lib/friction/view/model.ts +67 -0
- package/src/lib/friction/view/read.ts +136 -0
- package/src/lib/friction/view/select.ts +54 -0
- package/src/lib/orchestrator/adapters/claude.ts +5 -4
- package/src/lib/orchestrator/adapters/opencode.ts +2 -0
- package/src/lib/orchestrator/root-context.ts +23 -6
- package/src/lib/package-paths.ts +23 -15
- package/src/lib/session-attribution.ts +3 -7
- package/src/lib/triage/context.ts +186 -0
- package/src/lib/triage/launch.ts +52 -0
- package/src/lib/triage/prepare.ts +97 -0
- package/src/lib/triage/session.ts +126 -0
- package/src/opencode/companion-hooks.ts +53 -5
- package/src/opencode/projected-guidance.ts +2 -0
- package/src/playbooks/companion-guidance.ts +2 -2
- package/src/plugin-api.ts +5 -0
- package/src/runtime/command-friction.ts +97 -0
- package/src/runtime/companion-guidance.ts +32 -15
- package/src/runtime/friction-fingerprint.ts +35 -0
- package/src/runtime/friction-log.ts +352 -0
- package/src/runtime/friction-recorder.ts +199 -0
- package/src/runtime/friction-retention.ts +1 -0
- package/src/runtime/friction-state.ts +110 -0
- package/src/runtime/friction-switch.ts +26 -0
- package/src/runtime/friction-vocabulary.ts +42 -0
- package/src/runtime/projected-guidance.ts +2 -1
- package/src/runtime/secret-values.ts +16 -0
- package/src/runtime/session-id.ts +24 -0
- package/src/runtime/session-prepare-runner.ts +3 -0
- package/src/runtime/workflow/next-handoff-process.ts +2 -1
- package/src/studio.ts +41 -0
- package/src/templates/triage/PLAYBOOK.md +112 -0
- package/src/tools/setup/capabilities/rtk.ts +19 -8
- package/src/tools/setup/plugin.ts +5 -0
- package/src/tools/setup/service.ts +4 -0
- package/src/tools/setup.ts +16 -2
- package/studio-dist/client/assets/app-aIwDxf48.css +2 -0
- package/studio-dist/client/assets/button-CX0sWAJl.js +1 -0
- package/studio-dist/client/assets/combobox-BmA8RjOc.js +1 -0
- package/studio-dist/client/assets/{companion-view-BVaZNtiI.js → companion-view-DINdPF-b.js} +1 -1
- package/studio-dist/client/assets/fields-BobQ7zRF.js +1 -0
- package/studio-dist/client/assets/friction-YdYd3zaz.js +1 -0
- package/studio-dist/client/assets/getting-started-CY7NEtTw.js +1 -0
- package/studio-dist/client/assets/getting-started-djaQeWlu.js +1 -0
- package/studio-dist/client/assets/getting-started._topic-DVB8e5R9.js +1 -0
- package/studio-dist/client/assets/getting-started.index-DQvLHEr1.js +1 -0
- package/studio-dist/client/assets/graph-DbNnR884.js +2 -0
- package/studio-dist/client/assets/{graph-canvas-DDuzsNSx.js → graph-canvas-DIcAqwtK.js} +1 -1
- package/studio-dist/client/assets/guides-D6T6W_jV.js +1 -0
- package/studio-dist/client/assets/index-CysBCSxM.js +40 -0
- package/studio-dist/client/assets/markdown-view-jMiaBTSO.js +1 -0
- package/studio-dist/client/assets/{panel-B8F8sOKQ.js → panel-Csr49lBo.js} +1 -1
- package/studio-dist/client/assets/plugins._service._view-CEA_CcPe.js +1 -0
- package/studio-dist/client/assets/prepaint-CKsXyJOR.js +27 -0
- package/studio-dist/client/assets/{queries-axYk2u9L.js → queries-Dfp5deWj.js} +1 -1
- package/studio-dist/client/assets/react-BYUSgtBs.js +1 -0
- package/studio-dist/client/assets/reports-CLdgxxkg.js +1 -0
- package/studio-dist/client/assets/routes-DGilWbDE.js +1 -0
- package/studio-dist/client/assets/search-CXosfvYh.js +1 -0
- package/studio-dist/client/assets/select-DdebbX7K.js +1 -0
- package/studio-dist/client/assets/skills-C3zNkU8g.js +1 -0
- package/studio-dist/client/assets/{specs-DU1kqcp5.js → specs-Dl8HfGlU.js} +1 -1
- package/studio-dist/client/assets/specs-view-B_n0Pekv.js +1 -0
- package/studio-dist/client/assets/{steps-DhIFuAZy.js → steps-CKUno4lh.js} +1 -1
- package/studio-dist/client/assets/store-DyXbi6o9.js +1 -0
- package/studio-dist/client/assets/{studio-BR9j15J0.js → studio-0ueISxwP.js} +8 -8
- package/studio-dist/client/assets/{studio-queries-CFP_yTpr.js → studio-queries-BflKt9va.js} +2 -2
- package/studio-dist/client/assets/{usage-CHmwtkoM.js → usage-Blcl8kA_.js} +16 -16
- package/studio-dist/client/assets/useAnchoredPopupScrollLock-BBXJpX5L.js +1 -0
- package/studio-dist/client/assets/{useBaseQuery-BlC-AZ35.js → useBaseQuery-C2cjmeH2.js} +1 -1
- package/studio-dist/client/assets/useMutation-DI6LbvVa.js +1 -0
- package/studio-dist/client/assets/vault-Cb9DmM1i.js +1 -0
- package/studio-dist/client/assets/warnings-B-rvoW8q.js +1 -0
- package/studio-dist/client/assets/workflow-DN5T19jd.js +1 -0
- package/studio-dist/server/assets/{__23tanstack-start-server-fn-resolver-DAbZ6fzY.js → __23tanstack-start-server-fn-resolver-JoHQ5ihx.js} +30 -14
- package/studio-dist/server/assets/_tanstack-start-manifest_v.js +66 -50
- package/studio-dist/server/assets/{button-BfoNadNR.js → button-B7e1fRyW.js} +228 -3
- package/studio-dist/server/assets/combobox--S_OmUfh.js +483 -0
- package/studio-dist/server/assets/{companion-view-DHUjPpA0.js → companion-view-D-vGM55e.js} +2 -2
- package/studio-dist/server/assets/{companions-kBrJZAd6.js → companions-Dr6IpNAb.js} +1 -1
- package/studio-dist/server/assets/{fields-BD_c65T1.js → fields-B4qM2ZwC.js} +1 -1
- package/studio-dist/server/assets/friction-CWOTjpCV.js +62 -0
- package/studio-dist/server/assets/friction-sLxaWY-H.js +903 -0
- package/studio-dist/server/assets/{getting-started-7P0oyWaM.js → getting-started-Cq5Pcnsr.js} +2 -2
- package/studio-dist/server/assets/{getting-started._topic-B1mV0kGz.js → getting-started._topic-CmWdl3u3.js} +2 -2
- package/studio-dist/server/assets/{getting-started.index-CeGtvUsm.js → getting-started.index-AB8xpTFY.js} +2 -2
- package/studio-dist/server/assets/{graph-BWtmJOH2.js → graph-B11ITte0.js} +1 -1
- package/studio-dist/server/assets/{graph-DSDVEELZ.js → graph-C_Hn-Wf_.js} +7 -8
- package/studio-dist/server/assets/{graph-canvas-CID9Nksc.js → graph-canvas-BthrSmPS.js} +2 -2
- package/studio-dist/server/assets/{guides-Bm3RbUB-.js → guides-B8HdeK_C.js} +1 -1
- package/studio-dist/server/assets/{guides-BLJenHwQ.js → guides-BVQ4pt5B.js} +1 -1
- package/studio-dist/server/assets/{guides.server-rHHqRuzV.js → guides.server-DqFQAStf.js} +1 -1
- package/studio-dist/server/assets/{markdown-view-D3v9x-cM.js → markdown-view-rwiiVcPC.js} +1 -1
- package/studio-dist/server/assets/{panel-yqOl5GMU.js → panel-CUxRIpYL.js} +3 -3
- package/studio-dist/server/assets/{plugins._service._view-DwqJX7s9.js → plugins._service._view-BSvGnlhU.js} +6 -4
- package/studio-dist/server/assets/prepaint-B28ClcPN.js +45 -0
- package/studio-dist/server/assets/{queries-DYmGrhNO.js → queries-S_Pl90IG.js} +1 -1
- package/studio-dist/server/assets/react-CiBZPDs8.js +45 -0
- package/studio-dist/server/assets/{reports-C4Y_Jd-x.js → reports-B9k98oE6.js} +1 -1
- package/studio-dist/server/assets/{reports-7yaPz7aP.js → reports-CJpAItPk.js} +6 -7
- package/studio-dist/server/assets/{router-Dnoq5auE.js → router-DF0etoNa.js} +627 -1563
- package/studio-dist/server/assets/{routes-Cok4p3mK.js → routes-6ylCLkyg.js} +7 -8
- package/studio-dist/server/assets/{search-DUK7Jl6f.js → search-b-yQesv3.js} +25 -2
- package/studio-dist/server/assets/{combobox-oxUI6r4V.js → select-CjuKScan.js} +34 -514
- package/studio-dist/server/assets/{shell-DNVXedgE.js → shell-DLkP7wG9.js} +2 -2
- package/studio-dist/server/assets/{skills-pKmuAs0F.js → skills-DGg0mWDM.js} +1 -1
- package/studio-dist/server/assets/{skills-D8qdXSku.js → skills-zeU80A9S.js} +7 -8
- package/studio-dist/server/assets/{specs-DeHYUNFp.js → specs-DDBNT_v1.js} +4 -4
- package/studio-dist/server/assets/{specs-view-BGn-5Ik_.js → specs-view-exvmWdg0.js} +9 -9
- package/studio-dist/server/assets/{steps-CV7Yk7L7.js → steps-D1tYAyWZ.js} +1 -1
- package/studio-dist/server/assets/store-kS7zk0Hr.js +93 -0
- package/studio-dist/server/assets/{studio-CB94np48.js → studio-qRvQjRpz.js} +47 -2
- package/studio-dist/server/assets/{studio-queries-BqZGBE70.js → studio-queries-qOXOYoPt.js} +66 -8
- package/studio-dist/server/assets/{usage-M6Gi6Km7.js → usage-C2um7YiV.js} +12 -43
- package/studio-dist/server/assets/{usage-j5jR9gX9.js → usage-Cwle9-xY.js} +1 -1
- package/studio-dist/server/assets/useAnchoredPopupScrollLock-kQBB3y_b.js +756 -0
- package/studio-dist/server/assets/{useBaseQuery-Tv_QJt9r.js → useBaseQuery--iH3rd-T.js} +1 -1
- package/studio-dist/server/assets/useMutation-C-WO6hCM.js +690 -0
- package/studio-dist/server/assets/{vault-PqVmssmW.js → vault-B8vgVIH9.js} +6 -6
- package/studio-dist/server/assets/{vault-lBlvSyD4.js → vault-CEBBRLMb.js} +1 -1
- package/studio-dist/server/assets/{views-CsFp1i1G.js → views-UgO0Qz_g.js} +2 -2
- package/studio-dist/server/assets/{warnings-BDs34j_m.js → warnings-BxK4VfV5.js} +1 -2
- package/studio-dist/server/assets/{workflow-T0eEldsa.js → workflow-BrTK632u.js} +8 -9
- package/studio-dist/server/server.js +2 -2
- package/studio-dist/client/assets/app-BFVyWHGo.css +0 -2
- package/studio-dist/client/assets/button-D6LrRkOG.js +0 -1
- package/studio-dist/client/assets/combobox-Dk2MMZWE.js +0 -1
- package/studio-dist/client/assets/fields-D_FYhxQr.js +0 -1
- package/studio-dist/client/assets/getting-started-ByWRg7hC.js +0 -1
- package/studio-dist/client/assets/getting-started-DZSjYC-b.js +0 -1
- package/studio-dist/client/assets/getting-started._topic-C6OyQ4G6.js +0 -1
- package/studio-dist/client/assets/getting-started.index-BkmPHdEm.js +0 -1
- package/studio-dist/client/assets/graph-7jm2XzyL.js +0 -2
- package/studio-dist/client/assets/guides-D9VTjWXP.js +0 -1
- package/studio-dist/client/assets/index-BBmFpG4y.js +0 -40
- package/studio-dist/client/assets/markdown-view-RL5YvfZg.js +0 -1
- package/studio-dist/client/assets/plugins._service._view-CynxTbMx.js +0 -1
- package/studio-dist/client/assets/react-r45OnJCw.js +0 -27
- package/studio-dist/client/assets/reports-BCAyXh6p.js +0 -1
- package/studio-dist/client/assets/routes-BFPqq89E.js +0 -1
- package/studio-dist/client/assets/skills-DTks_uBx.js +0 -1
- package/studio-dist/client/assets/specs-view-omrd_5P3.js +0 -1
- package/studio-dist/client/assets/store-DJ5cncKA.js +0 -1
- package/studio-dist/client/assets/vault-DRg8MScm.js +0 -1
- package/studio-dist/client/assets/warnings-UHFy6HAp.js +0 -1
- package/studio-dist/client/assets/workflow-Bv9vSfVV.js +0 -1
- package/studio-dist/server/assets/react-BO0uMhpm.js +0 -89
- package/studio-dist/server/assets/store-CWDGIp6x.js +0 -280
package/studio-dist/server/assets/{getting-started-7P0oyWaM.js → getting-started-Cq5Pcnsr.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as MarkdownView } from "./markdown-view-
|
|
1
|
+
import { it as Link } from "./studio-queries-qOXOYoPt.js";
|
|
2
|
+
import { t as MarkdownView } from "./markdown-view-rwiiVcPC.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-Cq5Pcnsr.js";
|
|
2
|
+
import { r as Route } from "./router-DF0etoNa.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-Cq5Pcnsr.js";
|
|
2
|
+
import { i as Route } from "./router-DF0etoNa.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,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 { S as COMPANION_DIGEST_PATTERN } from "./studio-qRvQjRpz.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,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./studio-
|
|
1
|
+
import { Lr as cn, it as PAGE_PAD, nt as EmptyNote, r as Icon, zr as useQuery } from "./button-B7e1fRyW.js";
|
|
2
|
+
import "./studio-qRvQjRpz.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 { d as Route } from "./router-Dnoq5auE.js";
|
|
4
|
+
import { it as Link, o as graphQuery } from "./studio-queries-qOXOYoPt.js";
|
|
5
|
+
import { n as PanelSection, r as SidePanel, t as PanelHead } from "./panel-CUxRIpYL.js";
|
|
6
|
+
import { a as archivedArtifactPath, i as ROOT_AREA_LABEL, o as capabilityNodeId, r as GRAPH_EDGE_KINDS, t as SpecDetail } from "./specs-view-exvmWdg0.js";
|
|
7
|
+
import { d as Route } from "./router-DF0etoNa.js";
|
|
9
8
|
// src/views/graph/model.ts
|
|
10
9
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
11
10
|
var NODE_SIZE = {
|
|
@@ -480,7 +479,7 @@ function GraphPanelBody({ selection, ...props }) {
|
|
|
480
479
|
}
|
|
481
480
|
// src/views/graph/graph-view.tsx
|
|
482
481
|
/** The renderer is its own chunk: only a graph with specs loads it. */
|
|
483
|
-
var GraphCanvas = (0, import_react.lazy)(() => import("./graph-canvas-
|
|
482
|
+
var GraphCanvas = (0, import_react.lazy)(() => import("./graph-canvas-BthrSmPS.js"));
|
|
484
483
|
var EDGE_LABELS = {
|
|
485
484
|
binds: "Areas",
|
|
486
485
|
in: "Repositories",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./studio-
|
|
1
|
+
import "./studio-qRvQjRpz.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-C_Hn-Wf_.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) => {
|
|
@@ -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-DqFQAStf.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 { y as createSsrRpc } from "./studio-queries-
|
|
1
|
+
import { y as createSsrRpc } from "./studio-queries-qOXOYoPt.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"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as guideTree } from "./studio-qRvQjRpz.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { it as Link } from "./studio-queries-qOXOYoPt.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);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as require_react, o as __toESM, t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as Kbd } from "./fields-
|
|
2
|
+
import { Lr as cn, r as Icon, t as Button } from "./button-B7e1fRyW.js";
|
|
3
|
+
import { F as DialogPortal, I as DialogPopup, L as DialogClose, M as inField, N as DialogTitle, P as DialogRoot, R as DialogBackdrop } from "./router-DF0etoNa.js";
|
|
4
|
+
import { n as Kbd } from "./fields-B4qM2ZwC.js";
|
|
5
5
|
// src/components/ui/sheet.tsx
|
|
6
6
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7
7
|
var import_jsx_runtime = require_jsx_runtime();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./studio-
|
|
3
|
-
import { u as shellQuery } from "./studio-queries-
|
|
1
|
+
import { it as studioConnection, n as Route, ut as useSuspenseQuery } from "./router-DF0etoNa.js";
|
|
2
|
+
import "./studio-qRvQjRpz.js";
|
|
3
|
+
import { C as SERVICE_ROUTE_PREFIX, u as shellQuery } from "./studio-queries-qOXOYoPt.js";
|
|
4
4
|
import { n as require_react, o as __toESM, t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
5
5
|
// src/plugins/plugin-view.tsx
|
|
6
6
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
@@ -33,10 +33,12 @@ function PluginView({ moduleUrl, context, load }) {
|
|
|
33
33
|
let unmount = null;
|
|
34
34
|
let left = false;
|
|
35
35
|
setFailure(null);
|
|
36
|
+
const connection = studioConnection() ?? void 0;
|
|
36
37
|
mountPluginView(element, moduleUrl, {
|
|
37
38
|
companion,
|
|
38
39
|
apiBase,
|
|
39
|
-
writable
|
|
40
|
+
writable,
|
|
41
|
+
connection
|
|
40
42
|
}, load).then((done) => {
|
|
41
43
|
if (left) done();
|
|
42
44
|
else unmount = done;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { C as COMPANION_PARAM, S as COMPANION_DIGEST_PATTERN } from "./studio-qRvQjRpz.js";
|
|
2
|
+
// src/shell/prepaint.ts
|
|
3
|
+
var THEME_STORAGE_KEY = "mate-studio-theme";
|
|
4
|
+
var COMPANION_STORAGE_KEY = "mate-studio-companion";
|
|
5
|
+
var VAULT_TREE_STORAGE_KEY = "mate-studio-vault-tree";
|
|
6
|
+
var RAIL_STORAGE_KEY = "mate-studio-rail";
|
|
7
|
+
/**
|
|
8
|
+
* Runs in `<head>` before first paint. A server-rendered document arrives with
|
|
9
|
+
* its markup already in place, so a remembered appearance applied after load
|
|
10
|
+
* would paint the other one first and then repaint (so would a collapsed sidebar), and a remembered companion
|
|
11
|
+
* restored after load would paint the picker before leaving it.
|
|
12
|
+
*
|
|
13
|
+
* The restore names the companion in the URL and reloads, because the URL is
|
|
14
|
+
* what the server answers. A companion parameter that is present and empty is
|
|
15
|
+
* a deliberate "no companion" and is left alone, so the redirect cannot loop
|
|
16
|
+
* and the picker stays reachable.
|
|
17
|
+
*/
|
|
18
|
+
var STUDIO_PREPAINT_SCRIPT = `(function () {
|
|
19
|
+
try {
|
|
20
|
+
var chosen = localStorage.getItem(${JSON.stringify(THEME_STORAGE_KEY)});
|
|
21
|
+
if (chosen === "dark" || chosen === "light") {
|
|
22
|
+
document.documentElement.setAttribute("data-theme", chosen);
|
|
23
|
+
}
|
|
24
|
+
if (localStorage.getItem(${JSON.stringify(VAULT_TREE_STORAGE_KEY)}) === "hidden") {
|
|
25
|
+
document.documentElement.setAttribute("data-vault-tree", "hidden");
|
|
26
|
+
}
|
|
27
|
+
if (localStorage.getItem(${JSON.stringify(RAIL_STORAGE_KEY)}) === "min") {
|
|
28
|
+
document.documentElement.setAttribute("data-rail", "min");
|
|
29
|
+
}
|
|
30
|
+
} catch (error) {
|
|
31
|
+
/* a blocked web store only costs the preference, never the page */
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
try {
|
|
35
|
+
var params = new URLSearchParams(location.search);
|
|
36
|
+
var last = localStorage.getItem(${JSON.stringify(COMPANION_STORAGE_KEY)});
|
|
37
|
+
if (!params.has(${JSON.stringify(COMPANION_PARAM)}) && ${String(COMPANION_DIGEST_PATTERN)}.test(last || "")) {
|
|
38
|
+
params.set(${JSON.stringify(COMPANION_PARAM)}, last);
|
|
39
|
+
location.replace(location.pathname + "?" + params.toString());
|
|
40
|
+
}
|
|
41
|
+
} catch (error) {
|
|
42
|
+
/* a blocked web store only costs the restore, never the page */
|
|
43
|
+
}
|
|
44
|
+
})();`;
|
|
45
|
+
export { VAULT_TREE_STORAGE_KEY as a, THEME_STORAGE_KEY as i, RAIL_STORAGE_KEY as n, STUDIO_PREPAINT_SCRIPT as r, COMPANION_STORAGE_KEY as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as shellQuery } from "./studio-queries-
|
|
1
|
+
import { u as shellQuery } from "./studio-queries-qOXOYoPt.js";
|
|
2
2
|
// src/lib/queries.ts
|
|
3
3
|
/** Cached data as it is, however old, else fetched: what `ensureQueryData` returned. */
|
|
4
4
|
function loadHeld(queryClient, options) {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { n as require_react, o as __toESM } from "./jsx-runtime-Bt0s0YKS.js";
|
|
2
|
+
// ../../node_modules/.bun/zustand@5.0.16+f73d66fb2ea5e116/node_modules/zustand/esm/vanilla.mjs
|
|
3
|
+
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
4
|
+
var createStoreImpl = (createState) => {
|
|
5
|
+
let state;
|
|
6
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
7
|
+
const setState = (partial, replace) => {
|
|
8
|
+
const nextState = typeof partial === "function" ? partial(state) : partial;
|
|
9
|
+
if (!Object.is(nextState, state)) {
|
|
10
|
+
const previousState = state;
|
|
11
|
+
state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
|
12
|
+
listeners.forEach((listener) => listener(state, previousState));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const getState = () => state;
|
|
16
|
+
const getInitialState = () => initialState;
|
|
17
|
+
const subscribe = (listener) => {
|
|
18
|
+
listeners.add(listener);
|
|
19
|
+
return () => listeners.delete(listener);
|
|
20
|
+
};
|
|
21
|
+
const api = {
|
|
22
|
+
setState,
|
|
23
|
+
getState,
|
|
24
|
+
getInitialState,
|
|
25
|
+
subscribe
|
|
26
|
+
};
|
|
27
|
+
const initialState = state = createState(setState, getState, api);
|
|
28
|
+
return api;
|
|
29
|
+
};
|
|
30
|
+
var createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
|
|
31
|
+
// ../../node_modules/.bun/zustand@5.0.16+f73d66fb2ea5e116/node_modules/zustand/esm/react.mjs
|
|
32
|
+
var identity = (arg) => arg;
|
|
33
|
+
function useStore(api, selector = identity) {
|
|
34
|
+
const slice = import_react.useSyncExternalStore(api.subscribe, import_react.useCallback(() => selector(api.getState()), [api, selector]), () => selector(api.getInitialState()));
|
|
35
|
+
import_react.useDebugValue(slice);
|
|
36
|
+
return slice;
|
|
37
|
+
}
|
|
38
|
+
var createImpl = (createState) => {
|
|
39
|
+
const api = createStore(createState);
|
|
40
|
+
const useBoundStore = (selector) => useStore(api, selector);
|
|
41
|
+
Object.assign(useBoundStore, api);
|
|
42
|
+
return useBoundStore;
|
|
43
|
+
};
|
|
44
|
+
var create = ((createState) => createState ? createImpl(createState) : createImpl);
|
|
45
|
+
export { create as t };
|
|
@@ -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 { S as COMPANION_DIGEST_PATTERN } from "./studio-qRvQjRpz.js";
|
|
4
4
|
// src/server/reports.ts?tss-serverfn-split
|
|
5
5
|
var getReports_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "990d830ca9afc020639551c43ec50904b734051c52b1ad91dbf739065b343bb3",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Lr as cn, ct as ROW, it as PAGE_PAD, nt as EmptyNote, r as Icon, rt as ListCard, zr as useQuery } from "./button-B7e1fRyW.js";
|
|
2
2
|
import { a as useRouter } from "./useSelector-DUmCUXAs.js";
|
|
3
|
-
import "./__23tanstack-start-server-fn-resolver-
|
|
3
|
+
import "./__23tanstack-start-server-fn-resolver-JoHQ5ihx.js";
|
|
4
4
|
import { n as require_react, o as __toESM, t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import "./studio-CB94np48.js";
|
|
5
|
+
import { S as REPORT_VIEW_PREFIX, l as reportsQuery } from "./studio-queries-qOXOYoPt.js";
|
|
6
|
+
import { r as SidePanel, t as PanelHead } from "./panel-CUxRIpYL.js";
|
|
7
|
+
import { rt as usePageUi, tt as useAppearance, u as Route } from "./router-DF0etoNa.js";
|
|
8
|
+
import "./studio-qRvQjRpz.js";
|
|
10
9
|
// ../../node_modules/.bun/@tanstack+react-router@1.170.46+7492c01c6988791b/node_modules/@tanstack/react-router/dist/esm/useLocation.js
|
|
11
10
|
/**
|
|
12
11
|
* Read the current location from the router state with optional selection.
|