@uniqbit/mate-core 0.21.1 → 1.0.0-canary.10
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/claude-plugin/hooks/hooks.json +32 -1
- package/claude-plugin/hooks/workflow-turn.mjs +68 -0
- package/opencode-plugin/src/companion.ts +6 -0
- package/opencode-plugin/src/server.ts +24 -0
- package/package.json +9 -4
- package/src/cli/commands/artifact/apply-context.ts +1 -0
- package/src/cli/commands/artifact/artifact.ts +16 -0
- package/src/cli/commands/artifact/delivery/archive.ts +37 -112
- package/src/cli/commands/artifact/delivery/branch-flags.ts +19 -1
- package/src/cli/commands/artifact/delivery/environment.ts +30 -90
- package/src/cli/commands/artifact/delivery/link.ts +26 -26
- package/src/cli/commands/artifact/delivery/output.ts +27 -4
- package/src/cli/commands/artifact/delivery/resolve.ts +102 -0
- package/src/cli/commands/artifact/delivery/submit.ts +171 -0
- package/src/cli/commands/artifact/delivery/take.ts +46 -0
- package/src/cli/commands/artifact/extract-repo-name.ts +1 -1
- package/src/cli/commands/artifact/finish/command.ts +486 -55
- package/src/cli/commands/artifact/finish/engine.ts +87 -69
- package/src/cli/commands/artifact/finish/finisher.ts +5 -12
- package/src/cli/commands/artifact/finish/git.ts +9 -10
- package/src/cli/commands/artifact/finish/openspec.ts +21 -174
- package/src/cli/commands/artifact/finish/secret-scan.ts +5 -43
- package/src/cli/commands/artifact/finish/worktree-cleanup.ts +57 -7
- package/src/cli/commands/artifact/pending/command.ts +187 -10
- package/src/cli/commands/artifact/pending/discovery.ts +7 -11
- package/src/cli/commands/artifact/project/command.ts +59 -0
- package/src/cli/commands/cap/tokensave.ts +2 -2
- package/src/cli/commands/companion/hub.ts +11 -6
- package/src/cli/commands/companion/link.ts +173 -46
- package/src/cli/commands/companion/list.ts +70 -14
- package/src/cli/commands/companion/sync.ts +18 -0
- package/src/cli/commands/companion/update.ts +4 -3
- package/src/cli/commands/doctor.ts +84 -4
- package/src/cli/commands/friction.ts +558 -0
- package/src/cli/commands/install.ts +9 -4
- package/src/cli/commands/plugin/install.ts +82 -35
- package/src/cli/commands/studio/companion-add.ts +12 -27
- package/src/cli/commands/studio/connection.ts +53 -0
- package/src/{lib/factory/outcomes/sessions.ts → cli/commands/studio/live-sessions.ts} +7 -5
- package/src/cli/commands/studio/mcp-manager.ts +162 -0
- package/src/cli/commands/studio/payload.ts +172 -17
- package/src/cli/commands/studio/reports.ts +19 -18
- package/src/cli/commands/studio/routes.ts +8 -24
- package/src/cli/commands/studio/selection.ts +13 -4
- package/src/cli/commands/studio/server.ts +267 -243
- package/src/cli/commands/studio/service-host.ts +269 -0
- package/src/cli/commands/studio/services.ts +53 -34
- package/src/cli/commands/studio/studio-app.ts +1 -0
- package/src/cli/commands/studio/terminal.ts +1 -1
- package/src/cli/commands/studio/vault.ts +41 -40
- package/src/cli/commands/studio/views/model.ts +1 -9
- package/src/cli/commands/studio/views/vault/markdown-tree.ts +6 -5
- package/src/cli/commands/triage.ts +172 -0
- package/src/cli/commands/vscode/release-vsix.json +2 -2
- package/src/cli/commands/workflow/workflow.ts +516 -0
- package/src/cli/commands/working/cleanup.ts +1 -18
- package/src/cli/companion-link-wizard.tsx +158 -91
- package/src/cli/install-plan.tsx +3 -0
- package/src/cli/main.ts +106 -26
- package/src/cli/plugin-commands.ts +6 -1
- package/src/cli/repo-list-table.tsx +73 -37
- package/src/cli/usage.ts +30 -9
- package/src/create-mate.ts +15 -6
- package/src/distribution.ts +2 -0
- package/src/factory-host.ts +75 -0
- package/src/hooks/companion-instructions.ts +19 -8
- package/src/hooks/hook-io.ts +3 -1
- package/src/hooks/session-banner.ts +25 -0
- package/src/hooks/validate-artifact-path.ts +73 -22
- package/src/hooks/workflow-turn.ts +219 -0
- package/src/index.ts +1 -0
- package/src/lib/apply-context/fingerprint.ts +2 -1
- package/src/lib/apply-context/protocol.ts +2 -2
- package/src/lib/artifact-trailer.ts +27 -0
- package/src/lib/change-layout.ts +83 -38
- package/src/lib/delivery/branch-template.ts +4 -12
- package/src/lib/delivery/checkout.ts +3 -2
- package/src/lib/delivery/environment.ts +129 -7
- package/src/lib/delivery/merge-git.ts +312 -28
- package/src/lib/delivery/overlap.ts +81 -16
- package/src/lib/delivery/record-delivery.ts +102 -9
- package/src/lib/delivery/record.ts +186 -24
- package/src/lib/delivery/refresh.ts +241 -152
- package/src/lib/delivery/remote.ts +66 -0
- package/src/lib/delivery/repository-access.ts +30 -66
- package/src/lib/delivery/stages.ts +83 -50
- package/src/lib/delivery/staging/apply-chain.ts +182 -0
- package/src/lib/delivery/staging/artifact-type.ts +101 -0
- package/src/lib/delivery/staging/declared-type.ts +277 -0
- package/src/lib/delivery/staging/linked-merges.ts +175 -0
- package/src/lib/delivery/staging/naming.ts +67 -0
- package/src/lib/delivery/staging/openspec-type.ts +166 -0
- package/src/lib/delivery/staging/pending-edit.ts +291 -0
- package/src/lib/delivery/staging/pending.ts +922 -0
- package/src/lib/delivery/staging/preflight.ts +239 -0
- package/src/lib/delivery/staging/project.ts +512 -0
- package/src/lib/delivery/staging/publish.ts +1024 -0
- package/src/lib/delivery/staging/refs.ts +258 -0
- package/src/lib/delivery/staging/registry.ts +73 -0
- package/src/lib/delivery/staging/replay.ts +310 -0
- package/src/lib/delivery/staging/requirement-blocks.ts +10 -0
- package/src/lib/delivery/staging/resolve.ts +264 -0
- package/src/lib/delivery/staging/settle-linked.ts +176 -0
- package/src/lib/delivery/staging/submit.ts +1050 -0
- package/src/lib/delivery/staging/worktree.ts +130 -0
- package/src/lib/delivery/submit-change.ts +569 -0
- package/src/lib/friction/describe.ts +42 -0
- package/src/lib/friction/fields.ts +60 -0
- package/src/lib/friction/mark.ts +194 -0
- package/src/lib/friction/view/model.ts +67 -0
- package/src/lib/friction/view/read.ts +145 -0
- package/src/lib/friction/view/select.ts +54 -0
- package/src/lib/git-key.ts +15 -0
- package/src/lib/install.ts +2 -0
- package/src/lib/mcp-manager/resolve.ts +88 -0
- package/src/lib/mcp-manager/store.ts +133 -0
- package/src/lib/mcp-manager/types.ts +72 -0
- package/src/lib/mcp-manager/validate.ts +242 -0
- package/src/lib/openspec-canonical-frontmatter.ts +159 -0
- package/src/lib/openspec-cli.ts +10 -5
- package/src/lib/orchestrator/adapters/base.ts +31 -20
- package/src/lib/orchestrator/adapters/claude.ts +21 -7
- package/src/lib/orchestrator/adapters/opencode.ts +4 -0
- package/src/lib/orchestrator/companion-git-sync.ts +152 -16
- package/src/lib/orchestrator/config-store.ts +30 -7
- package/src/lib/orchestrator/engine-floor.ts +16 -4
- package/src/lib/orchestrator/engine-guard.ts +7 -1
- package/src/lib/orchestrator/framework-context.ts +15 -1
- package/src/lib/orchestrator/projection-claude-links.ts +1 -0
- package/src/lib/orchestrator/refresh-working-claude-links.ts +1 -0
- 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 +40 -7
- package/src/lib/orchestrator/session-prepare.ts +11 -1
- package/src/lib/orchestrator/types.ts +4 -0
- package/src/lib/orchestrator/umbrella-checkouts.ts +4 -4
- package/src/lib/package-paths.ts +23 -15
- package/src/lib/prebuilt-workspace-prepare.ts +2 -1
- package/src/lib/prebuilt-workspace.ts +1 -0
- package/src/lib/session-attribution.ts +3 -7
- package/src/lib/session-state.ts +3 -2
- package/src/lib/skills-cli.ts +38 -0
- package/src/lib/tool-manifest.ts +73 -0
- package/src/lib/triage/context.ts +312 -0
- package/src/lib/triage/launch.ts +52 -0
- package/src/lib/triage/prepare.ts +112 -0
- package/src/lib/triage/session.ts +126 -0
- package/src/lib/workflow/declaration.ts +6 -0
- package/src/lib/workflow/handoff.ts +90 -0
- package/src/lib/workflow/hook-trust.ts +108 -0
- package/src/lib/workflow/position.ts +524 -0
- package/src/lib/workflow/report.ts +79 -0
- package/src/lib/workflow/work.ts +106 -0
- package/src/lib/workset/factory-local.ts +2 -2
- package/src/lib/workset/repositories.ts +2 -2
- package/src/lib/workset/stage.ts +4 -2
- package/src/lib/workset/stages.ts +64 -4
- package/src/lib/workset/worktree.ts +32 -14
- package/src/opencode/companion-hooks.ts +63 -14
- package/src/opencode/projected-guidance.ts +7 -2
- package/src/opencode/turn-hook.ts +241 -0
- package/src/playbooks/companion-guidance.ts +7 -4
- package/src/plugin-api.ts +48 -0
- package/src/runtime/artifact-trailers.ts +63 -0
- package/src/runtime/claude-hook-group.ts +2 -0
- package/src/runtime/command-arg.ts +15 -0
- package/src/runtime/command-friction.ts +97 -0
- package/src/runtime/companion-git-state.ts +155 -10
- package/src/runtime/companion-git.ts +86 -11
- package/src/runtime/companion-guidance.ts +120 -17
- package/src/runtime/companion-instructions.ts +1 -1
- package/src/runtime/companion-sync.ts +109 -21
- package/src/runtime/env-names.ts +2 -2
- package/src/runtime/env.ts +7 -6
- package/src/runtime/forge-remote.ts +54 -0
- package/src/runtime/friction-fingerprint.ts +35 -0
- package/src/runtime/friction-log.ts +376 -0
- package/src/runtime/friction-recorder.ts +212 -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/git-layout.ts +21 -7
- package/src/runtime/git-tracked.ts +13 -2
- package/src/runtime/json-fields.ts +8 -0
- package/src/runtime/pending-records.ts +533 -0
- package/src/runtime/projected-guidance.ts +8 -3
- package/src/runtime/publication-secret-scan.ts +45 -0
- package/src/runtime/secret-patterns.ts +7 -5
- 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/skill-prefix.ts +75 -0
- package/src/runtime/submitted-arrivals.ts +547 -0
- package/src/runtime/turn-state.d.mts +14 -0
- package/src/runtime/turn-state.mjs +93 -0
- package/src/runtime/umbrella-children.ts +52 -0
- package/src/runtime/umbrella-folder.ts +31 -3
- package/src/runtime/workflow/change-folders.ts +66 -0
- package/src/runtime/workflow/declaration.ts +720 -0
- package/src/runtime/workflow/globs.ts +85 -0
- package/src/runtime/workflow/next-handoff-process.ts +99 -0
- package/src/runtime/workflow/turn.ts +311 -0
- package/src/runtime/workflow/workflow.ts +262 -0
- package/src/studio.ts +113 -23
- package/src/templates/capabilities/openspec-cap/{mate-v1 → mate-full}/schema.yaml +3 -3
- package/src/templates/capabilities/openspec-cap/{mate-v1 → mate-full}/templates/design.md +1 -1
- package/src/templates/capabilities/openspec-cap/{mate-v1 → mate-full}/templates/proposal.md +1 -1
- package/src/templates/capabilities/openspec-cap/{mate-v1 → mate-full}/templates/tasks.md +1 -1
- package/src/templates/capabilities/openspec-cap/mate-minimal/schema.yaml +7 -3
- package/src/templates/capabilities/react-doctor/mate-react-doctor/SKILL.md +28 -0
- package/src/templates/mate-skills/agents/mate-apply-change/SKILL.md +84 -28
- package/src/templates/mate-skills/agents/mate-apply-change/references/openspec-apply-change.md +1 -1
- package/src/templates/mate-skills/agents/mate-archive-change/SKILL.md +30 -68
- package/src/templates/mate-skills/agents/mate-backfill-spec/SKILL.md +23 -1
- package/src/templates/mate-skills/agents/mate-clarify-intent/SKILL.md +39 -8
- package/src/templates/mate-skills/agents/mate-domain-modeling/SKILL.md +38 -0
- package/src/templates/mate-skills/agents/mate-explore-change/SKILL.md +65 -12
- package/src/templates/mate-skills/agents/mate-grill-me/SKILL.md +28 -0
- package/src/templates/mate-skills/agents/mate-grill-with-docs/SKILL.md +28 -0
- package/src/templates/mate-skills/agents/mate-grilling/SKILL.md +25 -0
- package/src/templates/mate-skills/agents/mate-interview-me/SKILL.md +28 -0
- package/src/templates/mate-skills/agents/mate-propose-change/SKILL.md +68 -28
- package/src/templates/mate-skills/agents/mate-propose-change/references/mate-revise.md +13 -7
- package/src/templates/mate-skills/agents/mate-propose-change/references/openspec-update-change.md +1 -1
- package/src/templates/mate-skills/agents/mate-publish-artifact/SKILL.md +136 -86
- package/src/templates/mate-skills/agents/mate-publish-artifact/references/openspec.md +111 -100
- package/src/templates/mate-skills/agents/mate-show-me/SKILL.md +28 -3
- package/src/templates/mate-skills/agents/mate-simplify-code/SKILL.md +39 -5
- package/src/templates/mate-skills/agents/mate-submit-change/SKILL.md +138 -0
- package/src/templates/mate-skills/claude/mate-apply-change/SKILL.md +84 -28
- package/src/templates/mate-skills/claude/mate-apply-change/references/openspec-apply-change.md +1 -1
- package/src/templates/mate-skills/claude/mate-archive-change/SKILL.md +30 -68
- package/src/templates/mate-skills/claude/mate-backfill-spec/SKILL.md +23 -1
- package/src/templates/mate-skills/claude/mate-clarify-intent/SKILL.md +39 -8
- package/src/templates/mate-skills/claude/mate-domain-modeling/SKILL.md +38 -0
- package/src/templates/mate-skills/claude/mate-explore-change/SKILL.md +65 -12
- package/src/templates/mate-skills/claude/mate-grill-me/SKILL.md +28 -0
- package/src/templates/mate-skills/claude/mate-grill-with-docs/SKILL.md +28 -0
- package/src/templates/mate-skills/claude/mate-grilling/SKILL.md +25 -0
- package/src/templates/mate-skills/claude/mate-interview-me/SKILL.md +28 -0
- package/src/templates/mate-skills/claude/mate-propose-change/SKILL.md +68 -28
- package/src/templates/mate-skills/claude/mate-propose-change/references/mate-revise.md +13 -7
- package/src/templates/mate-skills/claude/mate-propose-change/references/openspec-update-change.md +1 -1
- package/src/templates/mate-skills/claude/mate-publish-artifact/SKILL.md +136 -86
- package/src/templates/mate-skills/claude/mate-publish-artifact/references/openspec.md +111 -100
- package/src/templates/mate-skills/claude/mate-show-me/SKILL.md +28 -3
- package/src/templates/mate-skills/claude/mate-simplify-code/SKILL.md +39 -5
- package/src/templates/mate-skills/claude/mate-submit-change/SKILL.md +138 -0
- package/src/templates/mate-skills/openspec-references.ts +3 -2
- package/src/templates/triage/PLAYBOOK.md +120 -0
- package/src/tools/setup/__snapshots__/runtime-surface-golden.test.ts.snap +678 -170
- package/src/tools/setup/capabilities/graphify.ts +23 -1
- package/src/tools/setup/capabilities/mcp-manager.ts +73 -0
- package/src/tools/setup/capabilities/openspec.ts +54 -15
- package/src/tools/setup/capabilities/rtk.ts +47 -94
- package/src/tools/setup/capabilities/tokensave.ts +79 -56
- package/src/tools/setup/context-services.ts +35 -6
- package/src/tools/setup/dynamic-plugins/api.ts +38 -0
- package/src/tools/setup/dynamic-plugins/audiences.ts +31 -16
- package/src/tools/setup/dynamic-plugins/host.ts +2 -32
- package/src/tools/setup/dynamic-plugins/hydrate.ts +32 -14
- package/src/tools/setup/dynamic-plugins/install.ts +2 -0
- package/src/tools/setup/dynamic-plugins/installed.ts +73 -0
- package/src/tools/setup/dynamic-plugins/loader.ts +12 -10
- package/src/tools/setup/dynamic-plugins/local.ts +492 -0
- package/src/tools/setup/dynamic-plugins/paths.ts +34 -6
- package/src/tools/setup/dynamic-plugins/verify.ts +34 -14
- package/src/tools/setup/dynamic-plugins/workspaces.ts +21 -12
- package/src/tools/setup/engine.ts +75 -4
- package/src/tools/setup/mate.ts +28 -1
- package/src/tools/setup/package-managers/bun.ts +8 -8
- package/src/tools/setup/plugin.ts +28 -1
- package/src/tools/setup/plugins/gitignore.ts +45 -12
- package/src/tools/setup/plugins/guidance.ts +4 -2
- package/src/tools/setup/providers/claude-format.ts +39 -2
- package/src/tools/setup/providers/claude-plugin-hooks.ts +18 -0
- package/src/tools/setup/providers/claude.ts +56 -6
- package/src/tools/setup/providers/opencode-format.ts +13 -3
- package/src/tools/setup/providers/opencode.ts +7 -18
- package/src/tools/setup/providers/relative-path-warnings.ts +26 -0
- package/src/tools/setup/service-registry.ts +69 -0
- package/src/tools/setup/service.ts +245 -0
- package/src/tools/setup/utils.ts +34 -4
- package/src/tools/setup.ts +16 -2
- package/studio-dist/client/assets/DialogTitle-B_G47-lk.js +1 -0
- package/studio-dist/client/assets/app-0NoFqMou.css +2 -0
- package/studio-dist/client/assets/button-D_0295cs.js +1 -0
- package/studio-dist/client/assets/cn-Cx_D6I3u.js +1 -0
- package/studio-dist/client/assets/combobox-D0iPQP50.js +1 -0
- package/studio-dist/client/assets/{companion-view-CrabvxS8.js → companion-view-D3A76MLj.js} +1 -1
- package/studio-dist/client/assets/fields-Ctheim1h.js +1 -0
- package/studio-dist/client/assets/friction-Cn9n_zBA.js +1 -0
- package/studio-dist/client/assets/getting-started-DgoVWbWo.js +1 -0
- package/studio-dist/client/assets/{getting-started-D6kgWwWZ.js → getting-started-MmLqvy01.js} +1 -1
- package/studio-dist/client/assets/getting-started._topic-DBF0khhz.js +1 -0
- package/studio-dist/client/assets/getting-started.index-BRdAVqIh.js +1 -0
- package/studio-dist/client/assets/graph-BVRdq46V.js +2 -0
- package/studio-dist/client/assets/{graph-canvas-Ba37Y5AE.js → graph-canvas-BNzd-eVb.js} +1 -1
- package/studio-dist/client/assets/guides-DY1W9LRs.js +1 -0
- package/studio-dist/client/assets/index-CuTIc9yd.js +40 -0
- package/studio-dist/client/assets/{markdown-view-BOX6x0rL.js → markdown-view-BqZQkk_k.js} +1 -1
- package/studio-dist/client/assets/mcp-CIFxmDs0.js +4 -0
- package/studio-dist/client/assets/panel-DafanLQ4.js +1 -0
- package/studio-dist/client/assets/plugins._service._view-xSRLxHNM.js +1 -0
- package/studio-dist/client/assets/prepaint-C--F50QZ.js +27 -0
- package/studio-dist/client/assets/{queries-RvHeXY12.js → queries-ByCoiacy.js} +1 -1
- package/studio-dist/client/assets/react-BYUSgtBs.js +1 -0
- package/studio-dist/client/assets/reports-Diryyked.js +1 -0
- package/studio-dist/client/assets/routes-DbRwPd55.js +1 -0
- package/studio-dist/client/assets/search-BDKQRwa5.js +1 -0
- package/studio-dist/client/assets/select-_9JT3hpU.js +1 -0
- package/studio-dist/client/assets/skills-D5a6ybQM.js +1 -0
- package/studio-dist/client/assets/{specs-B0ldF_6J.js → specs-COAWUTog.js} +1 -1
- package/studio-dist/client/assets/specs-view-9eTn9TcN.js +1 -0
- package/studio-dist/client/assets/steps-BS588WAV.js +1 -0
- package/studio-dist/client/assets/store-3cffhIO6.js +1 -0
- package/studio-dist/client/assets/studio-CG9eioSx.js +100 -0
- package/studio-dist/client/assets/studio-queries-BS1yR7Wc.js +2 -0
- package/studio-dist/client/assets/{usage-C2QJ_0IZ.js → usage-Ccl4d7w0.js} +15 -15
- package/studio-dist/client/assets/useAnchoredPopupScrollLock-D_y83VP7.js +1 -0
- package/studio-dist/client/assets/useBlocker-BQOfcu_f.js +1 -0
- package/studio-dist/client/assets/useMutation-BDmS2V6y.js +1 -0
- package/studio-dist/client/assets/usePopupHandleStore-BcqpNR-F.js +1 -0
- package/studio-dist/client/assets/vault-C1tOhQMe.js +1 -0
- package/studio-dist/client/assets/warnings-BZ_X1nkO.js +1 -0
- package/studio-dist/client/assets/workflow-Cm2fsnly.js +1 -0
- package/studio-dist/server/assets/DialogTitle-KSVhF_7V.js +421 -0
- package/studio-dist/server/assets/{__23tanstack-start-server-fn-resolver-Bn896ZYj.js → __23tanstack-start-server-fn-resolver-QQnIXyKi.js} +40 -28
- package/studio-dist/server/assets/_tanstack-start-manifest_v.js +84 -74
- package/studio-dist/server/assets/{button-CgOIVdmD.js → button-C7EMLaX6.js} +229 -5527
- package/studio-dist/server/assets/cn-D7uJiH_O.js +5528 -0
- package/studio-dist/server/assets/{combobox-DV_s9W0s.js → combobox-Dc4_y20Y.js} +6 -5
- package/studio-dist/server/assets/{companion-view-BKVXD3TO.js → companion-view-CrSi37Mb.js} +2 -2
- package/studio-dist/server/assets/{companions-C7fctnU9.js → companions-CDSuLqA4.js} +1 -1
- package/studio-dist/server/assets/{fields-BbieQTD0.js → fields-BxBN6-Dz.js} +10 -2
- package/studio-dist/server/assets/friction-B1K8Kp8r.js +62 -0
- package/studio-dist/server/assets/friction-Vl3B6THL.js +943 -0
- package/studio-dist/server/assets/{getting-started-CRxMWorQ.js → getting-started-B3lu5W7M.js} +2 -2
- package/studio-dist/server/assets/{getting-started._topic-DJKQAzYl.js → getting-started._topic-EYtxZM-Y.js} +2 -2
- package/studio-dist/server/assets/{getting-started.index-D84gec1t.js → getting-started.index-CTaXYycH.js} +2 -2
- package/studio-dist/server/assets/{graph-DDZzXM1L.js → graph-Bhmk7H8V.js} +1 -1
- package/studio-dist/server/assets/{graph-CSje3029.js → graph-D3fXCaKt.js} +8 -8
- package/studio-dist/server/assets/{graph-canvas-22bWB5-2.js → graph-canvas-DIvTodML.js} +2 -2
- package/studio-dist/server/assets/{guides-IE-19POz.js → guides-BZWFpJl-.js} +1 -1
- package/studio-dist/server/assets/{guides-D9dk1Frq.js → guides-CHBkRO6R.js} +1 -1
- package/studio-dist/server/assets/{guides.server-vcYRY5wx.js → guides.server-DX9KRkcK.js} +1 -1
- package/studio-dist/server/assets/{markdown-view-BR8dJ7aR.js → markdown-view-qrCSkVta.js} +1 -1
- package/studio-dist/server/assets/mcp-Ljf4simO.js +1103 -0
- package/studio-dist/server/assets/mcp-manager-DohRwmJU.js +50 -0
- package/studio-dist/server/assets/{panel-BR_t9iMM.js → panel-CAwz4mKp.js} +6 -4
- package/studio-dist/server/assets/plugins._service._view-DUpAo5D_.js +97 -0
- package/studio-dist/server/assets/prepaint-BxZ-pU7t.js +45 -0
- package/studio-dist/server/assets/{queries-DWoTin-q.js → queries-W4LXzTnT.js} +1 -1
- package/studio-dist/server/assets/react-CiBZPDs8.js +45 -0
- package/studio-dist/server/assets/{reports-CQ9qQ1-n.js → reports-BVNSPHU3.js} +13 -7
- package/studio-dist/server/assets/{reports-dYDEoBeq.js → reports-CGG_wRN5.js} +1 -1
- package/studio-dist/server/assets/{router-DkRHNTpE.js → router-KH1x6ryF.js} +1039 -1096
- package/studio-dist/server/assets/{routes-B6GfOew4.js → routes-Bl90FC4R.js} +333 -38
- package/studio-dist/server/assets/search-BjG5f16n.js +110 -0
- package/studio-dist/server/assets/{select-Af7Wibii.js → select-B8q9tLbl.js} +5 -4
- package/studio-dist/server/assets/{shell-Hq-hXgnT.js → shell-C5emwofr.js} +12 -3
- package/studio-dist/server/assets/{skills-B7nEuVbx.js → skills-10l0eCfP.js} +8 -8
- package/studio-dist/server/assets/{skills-B_YYL7q8.js → skills-vG6TTvP1.js} +1 -1
- package/studio-dist/server/assets/{specs-BpLUFntA.js → specs-C1P2BEao.js} +4 -4
- package/studio-dist/server/assets/{specs-view-0peMVd22.js → specs-view-csUBtMWU.js} +10 -10
- package/studio-dist/server/assets/{steps-D56DApvK.js → steps-T4wXftgd.js} +88 -45
- package/studio-dist/server/assets/store-CWlRjv9s.js +93 -0
- package/studio-dist/server/assets/{studio-CAcKp3bM.js → studio-D-ZPWSMv.js} +1567 -59
- package/studio-dist/server/assets/{studio-queries-BtRGzDdh.js → studio-queries-DC273ifg.js} +66 -124
- package/studio-dist/server/assets/{usage-COdjd1gD.js → usage-CT3IWLJc.js} +13 -30
- package/studio-dist/server/assets/{usage-f6pqE1tm.js → usage-D4t_ibR8.js} +1 -1
- package/studio-dist/server/assets/{useAnchoredPopupScrollLock-DlBKHRw7.js → useAnchoredPopupScrollLock-BchJDJYg.js} +2 -2
- package/studio-dist/server/assets/useBlocker-CQtANHK8.js +111 -0
- package/studio-dist/server/assets/{useMutation-DzTZGenE.js → useMutation-0HbcKUsQ.js} +2 -2
- package/studio-dist/server/assets/usePopupHandleStore-B3SNGTic.js +26 -0
- package/studio-dist/server/assets/{vault-BDuIUq0F.js → vault-BIytrudF.js} +10 -117
- package/studio-dist/server/assets/{vault-BVLp6zu3.js → vault-MINXmyXA.js} +1 -1
- package/studio-dist/server/assets/{views-flRUr21z.js → views-DrmY_3J5.js} +7 -4
- package/studio-dist/server/assets/{warnings-CDy9pdgL.js → warnings-BVZCDbIz.js} +2 -2
- package/studio-dist/server/assets/{workflow-D9GKI2EV.js → workflow-DFdqnMtW.js} +57 -50
- package/studio-dist/server/server.js +2 -2
- package/tool-manifest.yaml +85 -0
- package/src/cli/commands/factory/factory.ts +0 -311
- package/src/cli/commands/studio/factory-credential.ts +0 -35
- package/src/cli/commands/studio/factory-git-tokens.ts +0 -40
- package/src/cli/commands/studio/factory-relay.ts +0 -18
- package/src/cli/commands/studio/repository-add.ts +0 -116
- package/src/cli/commands/studio/workset-session.ts +0 -164
- package/src/lib/delivery/archive-change.ts +0 -165
- package/src/lib/delivery/forge.ts +0 -279
- package/src/lib/delivery/token.ts +0 -24
- package/src/lib/factory/attach-client.ts +0 -123
- package/src/lib/factory/attach.ts +0 -178
- package/src/lib/factory/broker.ts +0 -187
- package/src/lib/factory/bun-commands.ts +0 -39
- package/src/lib/factory/client.ts +0 -113
- package/src/lib/factory/clone-url.ts +0 -39
- package/src/lib/factory/command.ts +0 -77
- package/src/lib/factory/credential-store.ts +0 -153
- package/src/lib/factory/frames.ts +0 -77
- package/src/lib/factory/git-auth.ts +0 -61
- package/src/lib/factory/git-credential-store.ts +0 -181
- package/src/lib/factory/ids.ts +0 -68
- package/src/lib/factory/outcomes/actions.ts +0 -130
- package/src/lib/factory/outcomes/index.ts +0 -457
- package/src/lib/factory/outcomes/lifecycle.ts +0 -212
- package/src/lib/factory/outcomes/runs.ts +0 -81
- package/src/lib/factory/prepare.ts +0 -55
- package/src/lib/factory/pty.ts +0 -103
- package/src/lib/factory/runner/companion-context.ts +0 -178
- package/src/lib/factory/runner/control.ts +0 -92
- package/src/lib/factory/runner/harness-agent.ts +0 -250
- package/src/lib/factory/runner/live.ts +0 -159
- package/src/lib/factory/runner/questions.ts +0 -22
- package/src/lib/factory/runner/rank.ts +0 -26
- package/src/lib/factory/runner/run-policy.ts +0 -12
- package/src/lib/factory/runner/run.ts +0 -199
- package/src/lib/factory/runner/scheduler.ts +0 -498
- package/src/lib/factory/runner/state.ts +0 -233
- package/src/lib/factory/runner/workflow.ts +0 -546
- package/src/lib/factory/runtime.ts +0 -1081
- package/src/lib/factory/sandbox.ts +0 -292
- package/src/lib/factory/worktree-branch.ts +0 -17
- package/src/templates/capabilities/openspec-cap/mate-v1/templates/explore-brief.md +0 -25
- package/studio-dist/client/assets/app-D9cw6szy.css +0 -2
- package/studio-dist/client/assets/artifacts-WD2ZXYrx.js +0 -1
- package/studio-dist/client/assets/button-Br0O1sXw.js +0 -1
- package/studio-dist/client/assets/combobox-DA7RAUUZ.js +0 -1
- package/studio-dist/client/assets/factory-DGS0E16C.js +0 -6
- package/studio-dist/client/assets/fields-6aXBpFhJ.js +0 -1
- package/studio-dist/client/assets/getting-started-Clde4w6P.js +0 -1
- package/studio-dist/client/assets/getting-started._topic-BiunccbT.js +0 -1
- package/studio-dist/client/assets/getting-started.index-DpiNoGw8.js +0 -1
- package/studio-dist/client/assets/graph-B_TCBVbu.js +0 -2
- package/studio-dist/client/assets/guides-Du_RtJxP.js +0 -1
- package/studio-dist/client/assets/index-Df8L1LQa.js +0 -40
- package/studio-dist/client/assets/panel-dbmCx7Mx.js +0 -1
- package/studio-dist/client/assets/react-3QStrcDO.js +0 -27
- package/studio-dist/client/assets/report-url-XRL0x1SY.js +0 -1
- package/studio-dist/client/assets/reports-r3IK7Doz.js +0 -1
- package/studio-dist/client/assets/routes-C0A5LTFc.js +0 -1
- package/studio-dist/client/assets/select-CnaMd617.js +0 -1
- package/studio-dist/client/assets/skills-CzjzHpBT.js +0 -1
- package/studio-dist/client/assets/specs-view-BnCLA0gW.js +0 -1
- package/studio-dist/client/assets/spinner-Dcm3fqK1.js +0 -1
- package/studio-dist/client/assets/steps-C0p2N1Pb.js +0 -1
- package/studio-dist/client/assets/store-Dw34catY.js +0 -1
- package/studio-dist/client/assets/studio-Cpz_HRHp.js +0 -100
- package/studio-dist/client/assets/studio-queries-ibmpFo6R.js +0 -2
- package/studio-dist/client/assets/useAnchoredPopupScrollLock-Bj-FWb8z.js +0 -1
- package/studio-dist/client/assets/useMutation-aAr2uiay.js +0 -1
- package/studio-dist/client/assets/vault-BGcxkSIY.js +0 -1
- package/studio-dist/client/assets/warnings-R1cE1rLf.js +0 -1
- package/studio-dist/client/assets/workflow-C2qTrMDH.js +0 -1
- package/studio-dist/server/assets/actions-DYSv-9VV.js +0 -60
- package/studio-dist/server/assets/artifacts-DnF9L3dZ.js +0 -216
- package/studio-dist/server/assets/factory-C7Ybg0xG.js +0 -3075
- package/studio-dist/server/assets/factory-Df5uAHjb.js +0 -116
- package/studio-dist/server/assets/react-CdqSUhaL.js +0 -89
- package/studio-dist/server/assets/report-url-BUXPcE_8.js +0 -9
- package/studio-dist/server/assets/search-BJnWLfkG.js +0 -55
- package/studio-dist/server/assets/spinner-CdwJW4VB.js +0 -20
- package/studio-dist/server/assets/store-Cs17okNG.js +0 -280
- /package/src/lib/{factory/keyed-serial.ts → keyed-serial.ts} +0 -0
- /package/src/templates/capabilities/openspec-cap/{mate-v1 → mate-full}/templates/spec.md +0 -0
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { t as createServerRpc } from "./createServerRpc-bFKFpGFG.js";
|
|
2
|
-
import { n as createServerFn } from "../server.js";
|
|
3
|
-
import { t as OUTCOME_ACTIONS } from "./actions-DYSv-9VV.js";
|
|
4
|
-
import { u as COMPANION_DIGEST_PATTERN, y as companionDigest } from "./studio-CAcKp3bM.js";
|
|
5
|
-
// src/server/factory.ts?tss-serverfn-split
|
|
6
|
-
/** What the Factory reads from the companion payload; nothing else crosses to the browser. */
|
|
7
|
-
/** Board actions a person can take: core's Outcome actions, plus `create`, which needs no runner. */
|
|
8
|
-
var FACTORY_ACTIONS = ["create", ...OUTCOME_ACTIONS];
|
|
9
|
-
var MAX_FIELD = 65536;
|
|
10
|
-
function validate(input) {
|
|
11
|
-
if (typeof input?.companion !== "string" || !COMPANION_DIGEST_PATTERN.test(input.companion)) throw new Error("no registered companion was selected");
|
|
12
|
-
if (!FACTORY_ACTIONS.includes(input.action)) throw new Error(`unknown factory action ${JSON.stringify(input.action)}`);
|
|
13
|
-
if (input.action !== "create" && typeof input.id !== "string") throw new Error("the action names no Outcome");
|
|
14
|
-
const fields = {};
|
|
15
|
-
for (const [name, value] of Object.entries(input.fields ?? {})) if (typeof value === "string" && value.length <= MAX_FIELD) fields[name] = value;
|
|
16
|
-
return {
|
|
17
|
-
companion: input.companion,
|
|
18
|
-
action: input.action,
|
|
19
|
-
id: input.id,
|
|
20
|
-
fields
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
/** One Outcome action, checked by core's services exactly as the old form posts were. */
|
|
24
|
-
var runFactoryAction_createServerFn_handler = createServerRpc({
|
|
25
|
-
id: "b0ff357be654d7d833a4f9550953dda5e215e97cdc5b21639aef40d8a2401c4f",
|
|
26
|
-
name: "runFactoryAction",
|
|
27
|
-
filename: "src/server/factory.ts"
|
|
28
|
-
}, (opts) => runFactoryAction.__executeServer(opts));
|
|
29
|
-
var runFactoryAction = createServerFn({ method: "POST" }).validator(validate).handler(runFactoryAction_createServerFn_handler, async ({ data, context }) => {
|
|
30
|
-
if (!context.studio.writable) throw new Error("start Studio with --writable to create or start Worksets");
|
|
31
|
-
const field = (name) => data.fields[name] ?? "";
|
|
32
|
-
if (data.action === "create") await context.studio.createOutcome(data.companion, field);
|
|
33
|
-
else await context.studio.worksetAction(data.companion, data.id, data.action, field);
|
|
34
|
-
return { ok: true };
|
|
35
|
-
});
|
|
36
|
-
var getFactory_createServerFn_handler = createServerRpc({
|
|
37
|
-
id: "332ea72d0b70383661ce66a3228167cb05dc752e7269134a11855d1329c936aa",
|
|
38
|
-
name: "getFactory",
|
|
39
|
-
filename: "src/server/factory.ts"
|
|
40
|
-
}, (opts) => getFactory.__executeServer(opts));
|
|
41
|
-
var getFactory = createServerFn({ method: "GET" }).validator((input) => {
|
|
42
|
-
if (!COMPANION_DIGEST_PATTERN.test(input?.companion ?? "")) throw new Error("no registered companion was selected");
|
|
43
|
-
return { companion: input.companion };
|
|
44
|
-
}).handler(getFactory_createServerFn_handler, async ({ data, context }) => {
|
|
45
|
-
const url = new URL("http://studio.local/");
|
|
46
|
-
url.searchParams.set("companion", data.companion);
|
|
47
|
-
url.searchParams.set("view", "factory");
|
|
48
|
-
url.searchParams.set("refresh", "1");
|
|
49
|
-
const page = await context.studio.page(url);
|
|
50
|
-
if (!page.companion || companionDigest(page.companion.path) !== data.companion) throw new Error("no registered companion was selected");
|
|
51
|
-
const payload = page.payload;
|
|
52
|
-
return {
|
|
53
|
-
payload: payload ? {
|
|
54
|
-
worksets: payload.worksets,
|
|
55
|
-
changes: payload.changes.map(({ name, completedTasks, totalTasks }) => ({
|
|
56
|
-
name,
|
|
57
|
-
completedTasks,
|
|
58
|
-
totalTasks
|
|
59
|
-
})),
|
|
60
|
-
linkedRepositories: payload.linkedRepositories,
|
|
61
|
-
repositorySources: payload.repositorySources,
|
|
62
|
-
repositoryKeys: payload.repositoryKeys,
|
|
63
|
-
ticketFormat: payload.ticketFormat,
|
|
64
|
-
worksetProblems: payload.worksetProblems,
|
|
65
|
-
warnings: payload.warnings
|
|
66
|
-
} : null,
|
|
67
|
-
error: page.error?.reason ?? null,
|
|
68
|
-
runs: page.factoryRuns ?? null,
|
|
69
|
-
sessions: page.worksetSessions ?? null,
|
|
70
|
-
writable: page.writable,
|
|
71
|
-
factoryMode: context.studio.factoryMode,
|
|
72
|
-
renderedAt: page.renderedAt ?? Date.now()
|
|
73
|
-
};
|
|
74
|
-
});
|
|
75
|
-
function checkedCompanion(companion) {
|
|
76
|
-
if (typeof companion !== "string" || !COMPANION_DIGEST_PATTERN.test(companion)) throw new Error("no registered companion was selected");
|
|
77
|
-
return companion;
|
|
78
|
-
}
|
|
79
|
-
/** Adds a Working Repository to the companion's list; a refusal comes back as an answer with its reason. */
|
|
80
|
-
var addRepository_createServerFn_handler = createServerRpc({
|
|
81
|
-
id: "8d04585e5fc8779cd8f1652917ecb307b274a1cfa4a075aa28a5e0c532101faa",
|
|
82
|
-
name: "addRepository",
|
|
83
|
-
filename: "src/server/factory.ts"
|
|
84
|
-
}, (opts) => addRepository.__executeServer(opts));
|
|
85
|
-
var addRepository = createServerFn({ method: "POST" }).validator((input) => {
|
|
86
|
-
const companion = checkedCompanion(input?.companion);
|
|
87
|
-
const given = input.input;
|
|
88
|
-
if (given?.kind === "url" && typeof given.url === "string") return {
|
|
89
|
-
companion,
|
|
90
|
-
input: {
|
|
91
|
-
kind: "url",
|
|
92
|
-
url: given.url
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
if (given?.kind === "path" && typeof given.path === "string") return {
|
|
96
|
-
companion,
|
|
97
|
-
input: {
|
|
98
|
-
kind: "path",
|
|
99
|
-
path: given.path
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
throw new Error("name a Git URL or a path");
|
|
103
|
-
}).handler(addRepository_createServerFn_handler, ({ data, context }) => context.studio.addRepository(data.companion, data.input));
|
|
104
|
-
var removeRepository_createServerFn_handler = createServerRpc({
|
|
105
|
-
id: "2c3daf16b0b19b9818a4fbbe0989f7517d2f070bb20f12dff293e217a82f4a05",
|
|
106
|
-
name: "removeRepository",
|
|
107
|
-
filename: "src/server/factory.ts"
|
|
108
|
-
}, (opts) => removeRepository.__executeServer(opts));
|
|
109
|
-
var removeRepository = createServerFn({ method: "POST" }).validator((input) => {
|
|
110
|
-
if (typeof input?.identity !== "string") throw new Error("name the repository to remove");
|
|
111
|
-
return {
|
|
112
|
-
companion: checkedCompanion(input.companion),
|
|
113
|
-
identity: input.identity
|
|
114
|
-
};
|
|
115
|
-
}).handler(removeRepository_createServerFn_handler, ({ data, context }) => context.studio.removeRepository(data.companion, data.identity));
|
|
116
|
-
export { addRepository_createServerFn_handler, getFactory_createServerFn_handler, removeRepository_createServerFn_handler, runFactoryAction_createServerFn_handler };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { n as require_react, o as __toESM } from "./jsx-runtime-Bt0s0YKS.js";
|
|
2
|
-
import { d as COMPANION_PARAM, u as COMPANION_DIGEST_PATTERN } from "./studio-CAcKp3bM.js";
|
|
3
|
-
// src/shell/prepaint.ts
|
|
4
|
-
var THEME_STORAGE_KEY = "mate-studio-theme";
|
|
5
|
-
var COMPANION_STORAGE_KEY = "mate-studio-companion";
|
|
6
|
-
var VAULT_TREE_STORAGE_KEY = "mate-studio-vault-tree";
|
|
7
|
-
var RAIL_STORAGE_KEY = "mate-studio-rail";
|
|
8
|
-
/**
|
|
9
|
-
* Runs in `<head>` before first paint. A server-rendered document arrives with
|
|
10
|
-
* its markup already in place, so a remembered appearance applied after load
|
|
11
|
-
* would paint the other one first and then repaint (so would a collapsed sidebar), and a remembered companion
|
|
12
|
-
* restored after load would paint the picker before leaving it.
|
|
13
|
-
*
|
|
14
|
-
* The restore names the companion in the URL and reloads, because the URL is
|
|
15
|
-
* what the server answers. A companion parameter that is present and empty is
|
|
16
|
-
* a deliberate "no companion" and is left alone, so the redirect cannot loop
|
|
17
|
-
* and the picker stays reachable.
|
|
18
|
-
*/
|
|
19
|
-
var STUDIO_PREPAINT_SCRIPT = `(function () {
|
|
20
|
-
try {
|
|
21
|
-
var chosen = localStorage.getItem(${JSON.stringify(THEME_STORAGE_KEY)});
|
|
22
|
-
if (chosen === "dark" || chosen === "light") {
|
|
23
|
-
document.documentElement.setAttribute("data-theme", chosen);
|
|
24
|
-
}
|
|
25
|
-
if (localStorage.getItem(${JSON.stringify(VAULT_TREE_STORAGE_KEY)}) === "hidden") {
|
|
26
|
-
document.documentElement.setAttribute("data-vault-tree", "hidden");
|
|
27
|
-
}
|
|
28
|
-
if (localStorage.getItem(${JSON.stringify(RAIL_STORAGE_KEY)}) === "min") {
|
|
29
|
-
document.documentElement.setAttribute("data-rail", "min");
|
|
30
|
-
}
|
|
31
|
-
} catch (error) {
|
|
32
|
-
/* a blocked web store only costs the preference, never the page */
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
try {
|
|
36
|
-
var params = new URLSearchParams(location.search);
|
|
37
|
-
var last = localStorage.getItem(${JSON.stringify(COMPANION_STORAGE_KEY)});
|
|
38
|
-
if (!params.has(${JSON.stringify(COMPANION_PARAM)}) && ${String(COMPANION_DIGEST_PATTERN)}.test(last || "")) {
|
|
39
|
-
params.set(${JSON.stringify(COMPANION_PARAM)}, last);
|
|
40
|
-
location.replace(location.pathname + "?" + params.toString());
|
|
41
|
-
}
|
|
42
|
-
} catch (error) {
|
|
43
|
-
/* a blocked web store only costs the restore, never the page */
|
|
44
|
-
}
|
|
45
|
-
})();`;
|
|
46
|
-
// ../../node_modules/.bun/zustand@5.0.16+f73d66fb2ea5e116/node_modules/zustand/esm/vanilla.mjs
|
|
47
|
-
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
48
|
-
var createStoreImpl = (createState) => {
|
|
49
|
-
let state;
|
|
50
|
-
const listeners = /* @__PURE__ */ new Set();
|
|
51
|
-
const setState = (partial, replace) => {
|
|
52
|
-
const nextState = typeof partial === "function" ? partial(state) : partial;
|
|
53
|
-
if (!Object.is(nextState, state)) {
|
|
54
|
-
const previousState = state;
|
|
55
|
-
state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
|
56
|
-
listeners.forEach((listener) => listener(state, previousState));
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
const getState = () => state;
|
|
60
|
-
const getInitialState = () => initialState;
|
|
61
|
-
const subscribe = (listener) => {
|
|
62
|
-
listeners.add(listener);
|
|
63
|
-
return () => listeners.delete(listener);
|
|
64
|
-
};
|
|
65
|
-
const api = {
|
|
66
|
-
setState,
|
|
67
|
-
getState,
|
|
68
|
-
getInitialState,
|
|
69
|
-
subscribe
|
|
70
|
-
};
|
|
71
|
-
const initialState = state = createState(setState, getState, api);
|
|
72
|
-
return api;
|
|
73
|
-
};
|
|
74
|
-
var createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
|
|
75
|
-
// ../../node_modules/.bun/zustand@5.0.16+f73d66fb2ea5e116/node_modules/zustand/esm/react.mjs
|
|
76
|
-
var identity = (arg) => arg;
|
|
77
|
-
function useStore(api, selector = identity) {
|
|
78
|
-
const slice = import_react.useSyncExternalStore(api.subscribe, import_react.useCallback(() => selector(api.getState()), [api, selector]), () => selector(api.getInitialState()));
|
|
79
|
-
import_react.useDebugValue(slice);
|
|
80
|
-
return slice;
|
|
81
|
-
}
|
|
82
|
-
var createImpl = (createState) => {
|
|
83
|
-
const api = createStore(createState);
|
|
84
|
-
const useBoundStore = (selector) => useStore(api, selector);
|
|
85
|
-
Object.assign(useBoundStore, api);
|
|
86
|
-
return useBoundStore;
|
|
87
|
-
};
|
|
88
|
-
var create = ((createState) => createState ? createImpl(createState) : createImpl);
|
|
89
|
-
export { THEME_STORAGE_KEY as a, STUDIO_PREPAINT_SCRIPT as i, COMPANION_STORAGE_KEY as n, VAULT_TREE_STORAGE_KEY as o, RAIL_STORAGE_KEY as r, create as t };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { A as REPORT_VIEW_PREFIX } from "./studio-queries-BtRGzDdh.js";
|
|
2
|
-
import "./studio-CAcKp3bM.js";
|
|
3
|
-
// src/views/reports/report-url.ts
|
|
4
|
-
/** A hosted report's address in the appearance chosen in Studio; no scheme when it follows the system. */
|
|
5
|
-
function reportSrc(id, theme) {
|
|
6
|
-
const scheme = theme === "system" ? "" : `?scheme=${theme}`;
|
|
7
|
-
return `${REPORT_VIEW_PREFIX}${id}${scheme}`;
|
|
8
|
-
}
|
|
9
|
-
export { reportSrc as t };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { _ as STUDIO_MODE_PARAM, b as requestedMode, d as COMPANION_PARAM, p as LEGACY_ROLE_PARAM, u as COMPANION_DIGEST_PATTERN, x as viewsFor } from "./studio-CAcKp3bM.js";
|
|
2
|
-
// src/lib/search.ts
|
|
3
|
-
/**
|
|
4
|
-
* Forgiving like the server's own parsing: an unknown value selects nothing rather than failing.
|
|
5
|
-
* Reads the mode with core's precedence, so an unknown `studioMode` never revives a legacy `role`.
|
|
6
|
-
*/
|
|
7
|
-
function validateStudioSearch(raw) {
|
|
8
|
-
const search = {};
|
|
9
|
-
if (typeof raw.companion === "string" && COMPANION_DIGEST_PATTERN.test(raw.companion)) search.companion = raw.companion;
|
|
10
|
-
const params = new URLSearchParams();
|
|
11
|
-
if (raw.studioMode !== void 0) params.set(STUDIO_MODE_PARAM, String(raw.studioMode));
|
|
12
|
-
if (typeof raw.role === "string") params.set(LEGACY_ROLE_PARAM, raw.role);
|
|
13
|
-
const mode = requestedMode(params);
|
|
14
|
-
if (mode) search.studioMode = mode;
|
|
15
|
-
const days = Number(raw.usageDays);
|
|
16
|
-
if (/^\d+$/.test(String(raw.usageDays)) && Number.isInteger(days) && days >= 1 && days <= 365) search.usageDays = days;
|
|
17
|
-
if (typeof raw.usageRepository === "string" && /^[a-zA-Z0-9_-]{1,64}$/.test(raw.usageRepository)) search.usageRepository = raw.usageRepository;
|
|
18
|
-
return search;
|
|
19
|
-
}
|
|
20
|
-
/** The router JSON-parses search values, so `?q=2026` arrives as a number; read it as typed. */
|
|
21
|
-
function searchText(value) {
|
|
22
|
-
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") return;
|
|
23
|
-
return String(value).trim() || void 0;
|
|
24
|
-
}
|
|
25
|
-
/** Values naming nothing in the companion's specs are dropped by the view, not here. */
|
|
26
|
-
function validateSpecsSearch(raw) {
|
|
27
|
-
const q = searchText(raw.q);
|
|
28
|
-
const repo = searchText(raw.repo);
|
|
29
|
-
const area = searchText(raw.area);
|
|
30
|
-
return {
|
|
31
|
-
...q ? { q } : {},
|
|
32
|
-
...repo ? { repo } : {},
|
|
33
|
-
...area ? { area } : {}
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* The address to replace this one with so it names the effective mode and no legacy `role`,
|
|
38
|
-
* or `null` when it already does. A view the mode is not offered lands on the Overview.
|
|
39
|
-
*/
|
|
40
|
-
function canonicalHref(pathname, searchStr, view, studioMode) {
|
|
41
|
-
const params = new URLSearchParams(searchStr);
|
|
42
|
-
const offered = view === void 0 || viewsFor(studioMode).includes(view);
|
|
43
|
-
if (params.get("studioMode") === studioMode && !params.has("role") && offered) return null;
|
|
44
|
-
if (!offered) {
|
|
45
|
-
const landing = new URLSearchParams();
|
|
46
|
-
const companion = params.get(COMPANION_PARAM);
|
|
47
|
-
if (companion !== null) landing.set(COMPANION_PARAM, companion);
|
|
48
|
-
landing.set(STUDIO_MODE_PARAM, studioMode);
|
|
49
|
-
return `/?${landing}`;
|
|
50
|
-
}
|
|
51
|
-
params.delete(LEGACY_ROLE_PARAM);
|
|
52
|
-
params.set(STUDIO_MODE_PARAM, studioMode);
|
|
53
|
-
return `${pathname}?${params}`;
|
|
54
|
-
}
|
|
55
|
-
export { validateSpecsSearch as n, validateStudioSearch as r, canonicalHref as t };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Tr as cn } from "./button-CgOIVdmD.js";
|
|
2
|
-
import { t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
3
|
-
// src/components/ui/spinner.tsx
|
|
4
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
5
|
-
function Spinner({ className, ...props }) {
|
|
6
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
7
|
-
"data-slot": "spinner",
|
|
8
|
-
role: "status",
|
|
9
|
-
"aria-label": "Loading",
|
|
10
|
-
viewBox: "0 0 24 24",
|
|
11
|
-
fill: "none",
|
|
12
|
-
stroke: "currentColor",
|
|
13
|
-
strokeWidth: 2,
|
|
14
|
-
strokeLinecap: "round",
|
|
15
|
-
className: cn("size-4 shrink-0 animate-spin motion-reduce:animate-none", className),
|
|
16
|
-
...props,
|
|
17
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 3a9 9 0 1 1-9 9" })
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
export { Spinner as t };
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { n as require_react, o as __toESM, t as require_jsx_runtime } from "./jsx-runtime-Bt0s0YKS.js";
|
|
2
|
-
import { $ as ToggleGroup, Tr as cn, _r as EMPTY_OBJECT, et as ToggleGroupItem, i as FloatingRootStore } from "./button-CgOIVdmD.js";
|
|
3
|
-
// src/components/view-parts.tsx
|
|
4
|
-
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
6
|
-
/** A view's title and one plain line on what it shows; no eyebrow. */
|
|
7
|
-
function PageHeader({ title, description, actions }) {
|
|
8
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
|
|
9
|
-
className: "page-header flex flex-wrap items-end gap-x-4 gap-y-2 px-6 pt-5 pb-1 max-sm:px-4",
|
|
10
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
11
|
-
className: "min-w-0",
|
|
12
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
|
|
13
|
-
className: "m-0 text-xl font-semibold tracking-[-0.015em]",
|
|
14
|
-
children: title
|
|
15
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
16
|
-
className: "m-0 mt-0.5 text-sm text-muted",
|
|
17
|
-
children: description
|
|
18
|
-
})]
|
|
19
|
-
}), actions ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
20
|
-
className: "ml-auto flex items-center gap-1.5",
|
|
21
|
-
children: actions
|
|
22
|
-
}) : null]
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
/** The page's padding for content under the header. */
|
|
26
|
-
var PAGE_PAD = "px-6 max-sm:px-4";
|
|
27
|
-
var TONE_TEXT = {
|
|
28
|
-
warn: "text-warn",
|
|
29
|
-
bad: "text-bad",
|
|
30
|
-
accent: "text-accent",
|
|
31
|
-
why: "text-why",
|
|
32
|
-
muted: "text-muted"
|
|
33
|
-
};
|
|
34
|
-
/** A count beside its label: a small tabular chip, amber only when the items need the person. */
|
|
35
|
-
function Count({ value, tone, className, label }) {
|
|
36
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
37
|
-
className: cn("count inline-grid h-[18px] min-w-[18px] flex-none place-items-center rounded-full px-1.5 font-mono text-2xs leading-none font-medium tabular-nums", tone === "warn" && value > 0 ? "bg-warn-soft text-warn" : "bg-[color-mix(in_srgb,var(--muted)_16%,transparent)] text-muted", className),
|
|
38
|
-
"aria-label": label,
|
|
39
|
-
children: value
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* A group of items: the title bar carries the name, count and an optional hint on the surface
|
|
44
|
-
* tint; the rows sit on the page. Never nested, never around a graph, document or form.
|
|
45
|
-
*/
|
|
46
|
-
function ListCard({ title, count, hint, tone, children, className, label, level = 2 }) {
|
|
47
|
-
const Heading = level === 3 ? "h3" : "h2";
|
|
48
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", {
|
|
49
|
-
className: cn("list-card overflow-hidden rounded-card border border-rule", className),
|
|
50
|
-
"aria-label": label ?? (typeof title === "string" ? title : void 0),
|
|
51
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
52
|
-
className: cn("list-card-head flex items-center gap-2.5 border-b border-rule bg-surface px-4 py-2 text-[0.9rem] font-semibold", tone ? TONE_TEXT[tone] : null),
|
|
53
|
-
children: [
|
|
54
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Heading, {
|
|
55
|
-
className: "m-0 text-[inherit] font-[inherit]",
|
|
56
|
-
children: title
|
|
57
|
-
}),
|
|
58
|
-
count !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Count, {
|
|
59
|
-
value: count,
|
|
60
|
-
tone: tone === "warn" ? "warn" : void 0
|
|
61
|
-
}) : null,
|
|
62
|
-
hint ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
63
|
-
className: "ml-auto text-xs font-normal text-muted",
|
|
64
|
-
children: hint
|
|
65
|
-
}) : null
|
|
66
|
-
]
|
|
67
|
-
}), children]
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
/** A row in a list card: one line, soft rule above, the surface tint on hover and when current. */
|
|
71
|
-
var ROW = "list-row flex w-full min-w-0 items-center gap-4 border-0 border-t border-rule-soft bg-transparent px-4 py-2 text-left text-base text-text no-underline transition-colors first:border-t-0 hover:bg-surface aria-[current=true]:bg-surface aria-[current=true]:shadow-[inset_2px_0_0_var(--accent)]";
|
|
72
|
-
/** Narrows a list in place; one value is always chosen. */
|
|
73
|
-
function Pills({ label, options, value, onChange, className }) {
|
|
74
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroup, {
|
|
75
|
-
"aria-label": label,
|
|
76
|
-
value: [value],
|
|
77
|
-
onValueChange: (next) => {
|
|
78
|
-
const chosen = next[0];
|
|
79
|
-
if (chosen) onChange(chosen);
|
|
80
|
-
},
|
|
81
|
-
className,
|
|
82
|
-
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ToggleGroupItem, {
|
|
83
|
-
value: option.value,
|
|
84
|
-
children: [option.label, option.count !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Count, {
|
|
85
|
-
value: option.count,
|
|
86
|
-
tone: option.tone === "warn" ? "warn" : void 0
|
|
87
|
-
}) : null]
|
|
88
|
-
}, option.value))
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
var MARKERS = {
|
|
92
|
-
/** Diamond: waiting on a person. */
|
|
93
|
-
review: "rotate-45 rounded-[2px] size-[7px] bg-why",
|
|
94
|
-
/** Diamond: under way. */
|
|
95
|
-
build: "rotate-45 rounded-[2px] size-[7px] bg-accent",
|
|
96
|
-
/** Circle: done. */
|
|
97
|
-
done: "rounded-full size-2 bg-accent",
|
|
98
|
-
/** Square: something is wrong. */
|
|
99
|
-
issue: "rounded-[1px] size-2 bg-bad",
|
|
100
|
-
/** Ring: nothing happening. */
|
|
101
|
-
idle: "rounded-full size-2 ring-[1.5px] ring-muted ring-inset",
|
|
102
|
-
warn: "rounded-full size-2 bg-warn"
|
|
103
|
-
};
|
|
104
|
-
var MARKER_TEXT = {
|
|
105
|
-
review: "text-why",
|
|
106
|
-
build: "text-accent",
|
|
107
|
-
done: "text-accent",
|
|
108
|
-
issue: "text-bad",
|
|
109
|
-
idle: "text-muted",
|
|
110
|
-
warn: "text-warn"
|
|
111
|
-
};
|
|
112
|
-
/** A status word with its marker shape, so the state never rests on colour alone. */
|
|
113
|
-
function StatusWord({ marker, children }) {
|
|
114
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
115
|
-
className: cn("status-word inline-flex items-center gap-2 text-xs whitespace-nowrap", MARKER_TEXT[marker]),
|
|
116
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
117
|
-
className: cn("flex-none", MARKERS[marker]),
|
|
118
|
-
"aria-hidden": "true"
|
|
119
|
-
}), children]
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
/** "N of M tasks" with its bar. */
|
|
123
|
-
function Progress({ done, total, unit = "tasks" }) {
|
|
124
|
-
if (total === 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
125
|
-
className: "text-xs text-muted",
|
|
126
|
-
children: ["No ", unit]
|
|
127
|
-
});
|
|
128
|
-
const percent = Math.min(100, Math.round(done / total * 100));
|
|
129
|
-
const label = `${done} of ${total} ${unit}`;
|
|
130
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
131
|
-
className: "grid min-w-[120px] gap-1.5 text-xs text-muted",
|
|
132
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: label }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
133
|
-
className: "relative block h-1 w-full max-w-[140px] overflow-hidden rounded-full bg-rule",
|
|
134
|
-
role: "progressbar",
|
|
135
|
-
"aria-valuemin": 0,
|
|
136
|
-
"aria-valuemax": 100,
|
|
137
|
-
"aria-valuenow": percent,
|
|
138
|
-
"aria-label": label,
|
|
139
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
140
|
-
className: "absolute inset-y-0 left-0 rounded-full bg-accent",
|
|
141
|
-
style: { width: `${percent}%` }
|
|
142
|
-
})
|
|
143
|
-
})]
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
var subscribe = () => () => {};
|
|
147
|
-
/** "22m ago" from the viewer's clock; filled in after hydration so server and browser agree. */
|
|
148
|
-
function Age({ at, className }) {
|
|
149
|
-
const text = (0, import_react.useSyncExternalStore)(subscribe, () => at === void 0 ? "" : ageText(at, Date.now()), () => "");
|
|
150
|
-
if (at === void 0) return null;
|
|
151
|
-
const date = new Date(at);
|
|
152
|
-
if (Number.isNaN(date.getTime())) return null;
|
|
153
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("time", {
|
|
154
|
-
dateTime: date.toISOString(),
|
|
155
|
-
className: cn("font-mono text-xs whitespace-nowrap text-muted", className),
|
|
156
|
-
children: text
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
function ageText(at, now) {
|
|
160
|
-
const seconds = Math.max(0, Math.round((now - new Date(at).getTime()) / 1e3));
|
|
161
|
-
if (seconds < 60) return "just now";
|
|
162
|
-
if (seconds < 3600) return `${Math.floor(seconds / 60)}m ago`;
|
|
163
|
-
if (seconds < 86400) return `${Math.floor(seconds / 3600)}h ago`;
|
|
164
|
-
return `${Math.floor(seconds / 86400)}d ago`;
|
|
165
|
-
}
|
|
166
|
-
/** A plain sentence for a list with nothing in it; no empty card. */
|
|
167
|
-
function EmptyNote({ children, className }) {
|
|
168
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
169
|
-
className: cn("empty m-0 rounded-card border border-dashed border-rule px-5 py-5 text-base text-muted", className),
|
|
170
|
-
children
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
/** A command as the person would type it; `copy` is the text copied when it differs. */
|
|
174
|
-
function CommandLine({ text, copy = text, label = "prompt" }) {
|
|
175
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
176
|
-
className: "flex min-w-0 items-center gap-2 rounded-control border border-rule bg-page py-1.5 pr-1.5 pl-3 font-mono text-xs",
|
|
177
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
178
|
-
className: "min-w-0 flex-1 truncate",
|
|
179
|
-
children: text
|
|
180
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
181
|
-
type: "button",
|
|
182
|
-
className: "inline-flex h-7 flex-none items-center rounded-[6px] border border-rule bg-surface px-2.5 font-sans text-xs text-text hover:border-accent hover:bg-accent-soft",
|
|
183
|
-
"data-copy": copy,
|
|
184
|
-
"data-copy-label": label,
|
|
185
|
-
children: "Copy"
|
|
186
|
-
})]
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
// ../../node_modules/.bun/@base-ui+react@1.9.0+9e489665888c9e4a/node_modules/@base-ui/react/utils/popups/store.mjs
|
|
190
|
-
/**
|
|
191
|
-
* State common to all popup stores.
|
|
192
|
-
*/
|
|
193
|
-
function createInitialPopupStoreState(triggerElements, floatingId, nested = false) {
|
|
194
|
-
return {
|
|
195
|
-
open: false,
|
|
196
|
-
openProp: void 0,
|
|
197
|
-
mounted: false,
|
|
198
|
-
transitionStatus: void 0,
|
|
199
|
-
floatingRootContext: new FloatingRootStore({
|
|
200
|
-
open: false,
|
|
201
|
-
transitionStatus: void 0,
|
|
202
|
-
floatingElement: null,
|
|
203
|
-
referenceElement: null,
|
|
204
|
-
triggerElements,
|
|
205
|
-
floatingId,
|
|
206
|
-
syncOnly: true,
|
|
207
|
-
nested,
|
|
208
|
-
onOpenChange: void 0
|
|
209
|
-
}),
|
|
210
|
-
floatingId,
|
|
211
|
-
triggerCount: 0,
|
|
212
|
-
preventUnmountingOnClose: false,
|
|
213
|
-
payload: void 0,
|
|
214
|
-
activeTriggerId: null,
|
|
215
|
-
activeTriggerElement: null,
|
|
216
|
-
openedWithoutTrigger: false,
|
|
217
|
-
triggerIdProp: void 0,
|
|
218
|
-
popupElement: null,
|
|
219
|
-
positionerElement: null,
|
|
220
|
-
activeTriggerProps: EMPTY_OBJECT,
|
|
221
|
-
inactiveTriggerProps: EMPTY_OBJECT,
|
|
222
|
-
popupProps: EMPTY_OBJECT
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
var activeTriggerIdSelector = (state) => state.triggerIdProp ?? state.activeTriggerId;
|
|
226
|
-
var openSelector = (state) => state.openProp ?? state.open;
|
|
227
|
-
var popupIdSelector = (state) => {
|
|
228
|
-
return (state.popupElement?.id ?? state.floatingId) || void 0;
|
|
229
|
-
};
|
|
230
|
-
function triggerOwnsOpenPopup(state, triggerId) {
|
|
231
|
-
return triggerId !== void 0 && openSelector(state) && activeTriggerIdSelector(state) === triggerId;
|
|
232
|
-
}
|
|
233
|
-
function triggerOwnsOpenPopupOrIsOnlyTrigger(state, triggerId) {
|
|
234
|
-
if (triggerOwnsOpenPopup(state, triggerId)) return true;
|
|
235
|
-
return triggerId !== void 0 && openSelector(state) && activeTriggerIdSelector(state) == null && !state.openedWithoutTrigger && state.triggerCount === 1;
|
|
236
|
-
}
|
|
237
|
-
var popupStoreSelectors = {
|
|
238
|
-
open: openSelector,
|
|
239
|
-
mounted: (state) => state.mounted,
|
|
240
|
-
transitionStatus: (state) => openSelector(state) && !state.mounted ? "starting" : state.transitionStatus,
|
|
241
|
-
floatingRootContext: (state) => state.floatingRootContext,
|
|
242
|
-
triggerCount: (state) => state.triggerCount,
|
|
243
|
-
preventUnmountingOnClose: (state) => state.preventUnmountingOnClose,
|
|
244
|
-
payload: (state) => state.payload,
|
|
245
|
-
activeTriggerId: activeTriggerIdSelector,
|
|
246
|
-
activeTriggerElement: (state) => state.mounted ? state.activeTriggerElement : null,
|
|
247
|
-
popupId: popupIdSelector,
|
|
248
|
-
/**
|
|
249
|
-
* Whether the trigger with the given ID was used to open the popup.
|
|
250
|
-
*/
|
|
251
|
-
isTriggerActive: (state, triggerId) => triggerId !== void 0 && activeTriggerIdSelector(state) === triggerId,
|
|
252
|
-
/**
|
|
253
|
-
* Whether the popup is open and was activated by a trigger with the given ID.
|
|
254
|
-
*/
|
|
255
|
-
isOpenedByTrigger: (state, triggerId) => triggerOwnsOpenPopup(state, triggerId),
|
|
256
|
-
/**
|
|
257
|
-
* Whether the popup is mounted and was activated by a trigger with the given ID.
|
|
258
|
-
*/
|
|
259
|
-
isMountedByTrigger: (state, triggerId) => triggerId !== void 0 && activeTriggerIdSelector(state) === triggerId && state.mounted,
|
|
260
|
-
triggerProps: (state, isActive) => isActive ? state.activeTriggerProps : state.inactiveTriggerProps,
|
|
261
|
-
/**
|
|
262
|
-
* Popup id for the trigger that currently owns the open popup.
|
|
263
|
-
*/
|
|
264
|
-
triggerPopupId: (state, triggerId) => triggerOwnsOpenPopupOrIsOnlyTrigger(state, triggerId) ? popupIdSelector(state) : void 0,
|
|
265
|
-
popupProps: (state) => state.popupProps,
|
|
266
|
-
popupElement: (state) => state.popupElement,
|
|
267
|
-
positionerElement: (state) => state.positionerElement
|
|
268
|
-
};
|
|
269
|
-
/**
|
|
270
|
-
* Store members a detached handle-backed trigger reads or invokes for trigger registration and data
|
|
271
|
-
* forwarding. `set`/`update` are included only for trigger-count and trigger-data bookkeeping; on a
|
|
272
|
-
* detached (inert) store they are intentionally no-ops, so a write through them is not guaranteed to
|
|
273
|
-
* be durable. Component handle-store views Pick these from their concrete store (preserving its
|
|
274
|
-
* context and selectors) and add any component-specific trigger-invoked members such as `setOpen`.
|
|
275
|
-
*/
|
|
276
|
-
/**
|
|
277
|
-
* The subset of a popup store that trigger registration and data forwarding rely on. Narrow enough
|
|
278
|
-
* that an inert store can be passed while detached.
|
|
279
|
-
*/
|
|
280
|
-
export { Count as a, PAGE_PAD as c, Progress as d, ROW as f, CommandLine as i, PageHeader as l, popupStoreSelectors as n, EmptyNote as o, StatusWord as p, Age as r, ListCard as s, createInitialPopupStoreState as t, Pills as u };
|
|
File without changes
|
|
File without changes
|