@kortix/ui 0.15.0 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/dist/_vendor/kortix-shared.js +233 -130
  2. package/dist/_vendor/shared/code-language.d.ts +2 -2
  3. package/dist/_vendor/shared/html.d.ts +7 -0
  4. package/dist/_vendor/shared/index.d.ts +1 -2
  5. package/dist/_vendor/shared/pixel-mark.d.ts +28 -0
  6. package/dist/_vendor/shared/runtime-versions.d.ts +2 -6
  7. package/dist/_vendor/shared/tool-output/media-path.d.ts +1 -6
  8. package/dist/_vendor/shared/tool-output/scan.d.ts +2 -0
  9. package/dist/_vendor/shared/utils/string.d.ts +6 -0
  10. package/dist/artifacts/artifact-frame.d.ts +0 -1
  11. package/dist/artifacts/artifact-frame.js +4 -10
  12. package/dist/artifacts/artifact-session.js +4 -7
  13. package/dist/artifacts/frame-policy.d.ts +1 -1
  14. package/dist/artifacts/frame-policy.js +2 -2
  15. package/dist/customize/agents/agent-page.js +5 -5
  16. package/dist/customize/agents/agent-status.js +1 -1
  17. package/dist/customize/agents/agents-page.js +3 -3
  18. package/dist/customize/connectors/use-agent-access.d.ts +3 -3
  19. package/dist/customize/sections/connectors-view.js +50 -37
  20. package/dist/customize/sections/llm-provider/chatgpt-subscription-connect.js +21 -18
  21. package/dist/customize/sections/llm-provider/device-grant.d.ts +15 -0
  22. package/dist/customize/sections/llm-provider/device-grant.js +27 -0
  23. package/dist/customize/sections/view/agent-editor-catalog.js +0 -5
  24. package/dist/customize/sections/view/agent-editor.d.ts +2 -2
  25. package/dist/customize/sections/view/agent-editor.js +2 -2
  26. package/dist/customize/sections/view/review-center-connected.js +37 -6
  27. package/dist/customize/sections/view/secret-delivery.d.ts +4 -5
  28. package/dist/customize/sections/view/secret-delivery.js +5 -4
  29. package/dist/customize/triggers/schedule/trigger-list.d.ts +2 -2
  30. package/dist/customize/triggers/schedule/trigger-list.js +12 -18
  31. package/dist/customize/triggers/schedule/trigger-runs-logic.d.ts +6 -0
  32. package/dist/customize/triggers/schedule/trigger-runs-logic.js +13 -0
  33. package/dist/customize/triggers/schedule/trigger-runs-panel.js +9 -2
  34. package/dist/files/project/api/runtime-files.d.ts +2 -2
  35. package/dist/files/project/api/runtime-files.js +2 -2
  36. package/dist/files/project/components/drive-explorer.js +1 -1
  37. package/dist/files/project/components/drive-grid-view.js +0 -1
  38. package/dist/files/project/components/drive-list-view.js +0 -1
  39. package/dist/files/project/components/file-explorer-page.js +1 -1
  40. package/dist/files/project/hooks/index.d.ts +1 -1
  41. package/dist/files/project/hooks/index.js +1 -1
  42. package/dist/files/project/hooks/use-server-health.d.ts +1 -1
  43. package/dist/files/project/hooks/use-server-health.js +1 -1
  44. package/dist/files/project/search/workspace-search-service.d.ts +1 -1
  45. package/dist/files/project/search/workspace-search-service.js +1 -1
  46. package/dist/files/runtime/hooks/index.d.ts +1 -1
  47. package/dist/files/runtime/hooks/index.js +1 -1
  48. package/dist/files/runtime/hooks/server-health-state.d.ts +2 -2
  49. package/dist/files/runtime/hooks/server-health-state.js +2 -2
  50. package/dist/files/runtime/hooks/system-dir.js +2 -2
  51. package/dist/files/runtime/hooks/use-file-content.d.ts +1 -1
  52. package/dist/files/runtime/hooks/use-file-content.js +1 -1
  53. package/dist/files/runtime/hooks/use-file-list.d.ts +1 -1
  54. package/dist/files/runtime/hooks/use-file-list.js +3 -3
  55. package/dist/files/runtime/hooks/use-server-health.d.ts +2 -2
  56. package/dist/files/runtime/hooks/use-server-health.js +3 -3
  57. package/dist/files/runtime/hooks/use-workspace-search.d.ts +1 -2
  58. package/dist/files/runtime/hooks/use-workspace-search.js +0 -1
  59. package/dist/files/runtime/index.d.ts +2 -2
  60. package/dist/files/runtime/index.js +2 -2
  61. package/dist/files/runtime/path-utils.d.ts +1 -1
  62. package/dist/files/runtime/path-utils.js +1 -1
  63. package/dist/files/runtime/sandbox-explorer-source.d.ts +1 -1
  64. package/dist/files/runtime/sandbox-explorer-source.js +1 -1
  65. package/dist/files/runtime/sandbox-file-explorer.d.ts +1 -1
  66. package/dist/files/runtime/sandbox-file-explorer.js +2 -2
  67. package/dist/files/tree/components/file-tree-item.js +0 -1
  68. package/dist/files/tree/hooks/use-file-events.d.ts +1 -1
  69. package/dist/files/tree/hooks/use-file-events.js +1 -1
  70. package/dist/i18n/en.d.ts +60 -175
  71. package/dist/i18n/en.js +71 -186
  72. package/dist/internal/components/agent-mark.js +6 -0
  73. package/dist/internal/components/clickable-path.d.ts +3 -0
  74. package/dist/internal/components/clickable-path.js +4 -1
  75. package/dist/internal/files/file-read-retry.js +1 -1
  76. package/dist/internal/files/types.d.ts +2 -2
  77. package/dist/internal/files/types.js +2 -2
  78. package/dist/internal/goals/goal-meta.d.ts +33 -14
  79. package/dist/internal/goals/goal-meta.js +55 -13
  80. package/dist/internal/layout/nav-hover-card.d.ts +1 -1
  81. package/dist/internal/layout/nav-hover-card.js +1 -1
  82. package/dist/internal/layout/project-capability-nav.d.ts +1 -1
  83. package/dist/internal/layout/project-capability-nav.js +1 -1
  84. package/dist/internal/lib/browser-error-noise.d.ts +1 -1
  85. package/dist/internal/lib/browser-error-noise.js +1 -1
  86. package/dist/internal/lib/browser-noise/rules/expected-states.js +1 -1
  87. package/dist/internal/lib/browser-noise/rules/injected-scripts.js +29 -0
  88. package/dist/internal/lib/browser-noise/rules/old-browsers.d.ts +1 -0
  89. package/dist/internal/lib/browser-noise/rules/old-browsers.js +1 -1
  90. package/dist/internal/lib/browser-noise/rules/rejections.d.ts +0 -9
  91. package/dist/internal/lib/browser-noise/rules/rejections.js +0 -14
  92. package/dist/internal/lib/delivered-but-disconnected.js +3 -5
  93. package/dist/internal/lib/error-handler.js +8 -3
  94. package/dist/internal/lib/pixel-mark.d.ts +4 -17
  95. package/dist/internal/lib/pixel-mark.js +5 -148
  96. package/dist/internal/lib/sounds.d.ts +4 -4
  97. package/dist/internal/lib/sounds.js +4 -4
  98. package/dist/internal/lib/trigger-clock.d.ts +5 -0
  99. package/dist/internal/lib/trigger-clock.js +15 -0
  100. package/dist/internal/lib/turn-broadcast.d.ts +0 -3
  101. package/dist/internal/lib/use-project-feature-flags.d.ts +2 -0
  102. package/dist/internal/lib/use-project-feature-flags.js +5 -5
  103. package/dist/internal/lib/web-notifications.d.ts +1 -8
  104. package/dist/internal/lib/web-notifications.js +12 -53
  105. package/dist/internal/notifications/notification-bell.d.ts +13 -33
  106. package/dist/internal/notifications/notification-bell.js +14 -117
  107. package/dist/internal/notifications/notification-inbox.d.ts +45 -0
  108. package/dist/internal/notifications/notification-inbox.js +119 -0
  109. package/dist/internal/notifications/notification-rows.d.ts +3 -4
  110. package/dist/internal/notifications/notification-rows.js +1 -4
  111. package/dist/internal/notifications/use-inbox-summary.d.ts +13 -0
  112. package/dist/internal/notifications/use-inbox-summary.js +22 -0
  113. package/dist/internal/notifications/web-push.d.ts +9 -10
  114. package/dist/internal/notifications/web-push.js +9 -10
  115. package/dist/internal/stores/composer-prefill-store.js +4 -1
  116. package/dist/internal/stores/sound-store.d.ts +4 -4
  117. package/dist/internal/stores/sound-store.js +10 -0
  118. package/dist/internal/stores/web-notification-store.d.ts +6 -9
  119. package/dist/internal/stores/web-notification-store.js +0 -4
  120. package/dist/lib/routes.d.ts +8 -0
  121. package/dist/lib/routes.js +4 -1
  122. package/dist/markdown/code/shiki-highlighter.js +14 -5
  123. package/dist/markdown/doc-editor/doc-menus.d.ts +1 -10
  124. package/dist/markdown/doc-editor/doc-menus.js +6 -69
  125. package/dist/markdown/file-links.js +33 -3
  126. package/dist/markdown/markdown-frontmatter.d.ts +6 -6
  127. package/dist/markdown/markdown-frontmatter.js +3 -3
  128. package/dist/primitives/button.d.ts +1 -1
  129. package/dist/primitives/button.js +2 -1
  130. package/dist/session/agents/held-messages.d.ts +1 -5
  131. package/dist/session/agents/held-messages.js +1 -21
  132. package/dist/session/composer/ComposerAboveCard.d.ts +4 -1
  133. package/dist/session/composer/ComposerAboveCard.js +2 -2
  134. package/dist/session/composer/composer-chat-input.d.ts +1 -1
  135. package/dist/session/composer/composer-chat-input.js +2 -2
  136. package/dist/session/composer/composer.js +16 -1
  137. package/dist/session/composer/hooks/use-file-search.d.ts +15 -15
  138. package/dist/session/composer/hooks/use-file-search.js +16 -16
  139. package/dist/session/composer/menus/mention-controller.js +1 -3
  140. package/dist/session/composer/menus/space-mentions.d.ts +14 -4
  141. package/dist/session/composer/menus/space-mentions.js +17 -1
  142. package/dist/session/composer/use-instant-session-send.js +2 -2
  143. package/dist/session/header/reminder-parts.d.ts +1 -1
  144. package/dist/session/header/session-goal-indicator.js +4 -4
  145. package/dist/session/header/session-site-header.js +2 -6
  146. package/dist/session/panel/easy/plan-card.d.ts +2 -2
  147. package/dist/session/panel/easy/plan-card.js +2 -2
  148. package/dist/session/panel/session-desktop.js +6 -0
  149. package/dist/session/panel/session-reminders-panel.js +4 -15
  150. package/dist/session/panel/use-session-panel-state.js +2 -2
  151. package/dist/session/status/sandbox-loading-boundary.js +2 -2
  152. package/dist/session/status/session-terminal-state.d.ts +47 -0
  153. package/dist/session/status/session-terminal-state.js +56 -0
  154. package/dist/session/thread/plan-surface.d.ts +1 -1
  155. package/dist/session/thread/plan-surface.js +1 -1
  156. package/dist/session/thread/session-chat.d.ts +1 -1
  157. package/dist/session/thread/session-chat.js +88 -99
  158. package/dist/session/thread/stop-sequence.d.ts +51 -0
  159. package/dist/session/thread/stop-sequence.js +55 -0
  160. package/dist/session/thread/transcript.d.ts +2 -2
  161. package/dist/session/thread/transcript.js +2 -2
  162. package/dist/session/tool/tools/apply-patch-tool.d.ts +1 -1
  163. package/dist/session/tool/tools/apply-patch-tool.js +1 -1
  164. package/dist/session/tool/tools/kortix-action-tool.js +1 -1
  165. package/dist/session/tool/tools/multi-agent-tool-bodies.d.ts +1 -1
  166. package/dist/session/tool/tools/multi-agent-tool-bodies.js +1 -1
  167. package/dist/session/tool/tools/multi-agent-tools.js +1 -1
  168. package/dist/session/tool/tools/pty-kill-tool.d.ts +1 -1
  169. package/dist/session/tool/tools/pty-kill-tool.js +1 -1
  170. package/dist/session/tool/tools/pty-read-tool.d.ts +2 -2
  171. package/dist/session/tool/tools/pty-read-tool.js +2 -2
  172. package/dist/session/tool/tools/pty-spawn-tool.d.ts +1 -1
  173. package/dist/session/tool/tools/pty-spawn-tool.js +1 -1
  174. package/dist/session/tool/tools/pty-write-tool.d.ts +1 -1
  175. package/dist/session/tool/tools/pty-write-tool.js +1 -1
  176. package/dist/session/tool/tools/session-spawn-tool.js +7 -4
  177. package/dist/session/tool/tools/task-tool.js +18 -4
  178. package/dist/session/tool/tools/todo-write-tool.d.ts +1 -1
  179. package/dist/session/tool/tools/todo-write-tool.js +1 -1
  180. package/dist/session/turn/peer-message-row.d.ts +1 -10
  181. package/dist/session/turn/peer-message-row.js +1 -18
  182. package/dist/session/turn/plan-anchor.d.ts +3 -3
  183. package/dist/session/turn/plan-anchor.js +3 -3
  184. package/dist/session/turn/plan-card.d.ts +7 -7
  185. package/dist/session/turn/plan-card.js +7 -7
  186. package/dist/styles.css +1 -1
  187. package/dist/terminal/terminal-card-gate.d.ts +6 -3
  188. package/dist/terminal/terminal-card-gate.js +21 -4
  189. package/dist/workspace/home/access-requests-bell.d.ts +6 -9
  190. package/dist/workspace/home/access-requests-bell.js +8 -10
  191. package/dist/workspace/index.d.ts +1 -1
  192. package/dist/workspace/index.js +1 -1
  193. package/dist/workspace/layout/project-home.js +1 -2
  194. package/dist/workspace/review/review-center.d.ts +8 -2
  195. package/dist/workspace/review/review-center.js +44 -13
  196. package/dist/workspace/review/review-reducer.d.ts +7 -0
  197. package/dist/workspace/review/review-reducer.js +11 -0
  198. package/dist/workspace/sidebar/footer/project-artifacts-nav.d.ts +6 -1
  199. package/dist/workspace/sidebar/footer/project-artifacts-nav.js +47 -4
  200. package/dist/workspace/sidebar/project-nav-items.js +11 -12
  201. package/dist/workspace/sidebar/project-sidebar.js +2 -6
  202. package/dist/workspace/spaces/principal-card.d.ts +3 -1
  203. package/dist/workspace/spaces/principal-card.js +3 -3
  204. package/dist/workspace/spaces/space-agent-ask.d.ts +14 -0
  205. package/dist/workspace/spaces/space-agent-ask.js +36 -0
  206. package/dist/workspace/spaces/space-details-dialog.js +1 -1
  207. package/dist/workspace/spaces/space-details-panel.d.ts +2 -1
  208. package/dist/workspace/spaces/space-details-panel.js +62 -8
  209. package/dist/workspace/spaces/space-mention-source.d.ts +3 -2
  210. package/dist/workspace/spaces/space-mention-source.js +12 -19
  211. package/dist/workspace/spaces/space-view.js +3 -2
  212. package/package.json +11 -7
  213. package/skills/kortix-ui/references/custom-dashboard.md +1 -1
  214. package/skills/kortix-ui/references/modules.md +1 -1
  215. package/dist/_vendor/shared/artifact-annotations.d.ts +0 -311
  216. package/dist/_vendor/shared/artifact-comments.d.ts +0 -155
  217. package/dist/internal/hooks/use-notification-center.d.ts +0 -50
  218. package/dist/internal/hooks/use-notification-center.js +0 -151
  219. package/dist/session/tool/tools/multi-agent-tool-data.d.ts +0 -63
  220. package/dist/session/tool/tools/multi-agent-tool-data.js +0 -118
package/dist/i18n/en.js CHANGED
@@ -799,10 +799,6 @@ const catalog = {
799
799
  "name": "US Region",
800
800
  "description": "Run this project's new sessions in the US East region. A running session keeps its region until it restarts."
801
801
  },
802
- "notification_center": {
803
- "name": "Notification Center",
804
- "description": "Tell the people a session concerns (its prompter, its creator and its followers) through a bell inbox, browser push and email, and alert on failing triggers and loops. Off: only the session creator's phone gets a session push, and an account owner's phone gets one when a trigger starts failing."
805
- },
806
802
  "event_triggers": {
807
803
  "name": "Composio event triggers",
808
804
  "description": "Start an agent when something happens in a connected app: a new email, a pull request, a calendar event. Events come from Composio. Kortix also checks your connected apps itself."
@@ -815,10 +811,6 @@ const catalog = {
815
811
  "name": "Stateless sandboxes",
816
812
  "description": "Every session keeps only /workspace, on its own volume. A sandbox stopped for an hour is deleted, and the next open starts a new one with the same files and conversation. Programs that ran in the old sandbox are not running. Kortix enables it per project."
817
813
  },
818
- "artifacts": {
819
- "name": "Artifacts",
820
- "description": "Share docs (Markdown) and HTML pages (decks, dashboards, mockups, tools) from Files with the project, chosen people or anyone with a link. Docs edit in place, every save is a version from the Files history, and docs export to PDF. Adds the Artifacts page and `kortix artifacts`."
821
- },
822
814
  "email_channel": {
823
815
  "name": "Email channel",
824
816
  "description": "Give the agent an email inbox on Resend: inbound mail starts and continues sessions, and the agent reads, replies and sends from the inbox. Bring your own Resend API key and domain."
@@ -831,10 +823,6 @@ const catalog = {
831
823
  "name": "Session groups",
832
824
  "description": "Group the sidebar's sessions into named folders that everyone in the project shares, for example one per store or client. Move a session into a group from its menu or by dragging it; reorder and collapse the groups."
833
825
  },
834
- "artifact_comments": {
835
- "name": "Artifact comments",
836
- "description": "Discuss docs and pages in threads with people and agents. Requires Artifacts."
837
- },
838
826
  "chrome": {
839
827
  "name": "Kortix in Chrome",
840
828
  "description": "Let a session use your connected Chrome browser. You can take over or stop it at any time."
@@ -857,7 +845,11 @@ const catalog = {
857
845
  },
858
846
  "chat_front": {
859
847
  "name": "Spaces-Router",
860
- "description": "With Spaces on, the agent you chat with in a thread is a router: it hands the work to your agents and writes back like a person, in short messages with the result, a link or the decision you need to make. Your agents share the thread through its files, so the router passes file paths, not retyped text. Show work under a message opens the work behind it. Needs My Kortix on in kortix.yaml."
848
+ "description": "With Spaces on, the agent you chat with in a thread is a router: it does quick work itself (an answer, a short text, a look at the thread files) and hands longer work to the Space's agents. It writes back like a person, in short messages. An agent saves its full result as a file in the thread, and the router links that file instead of retyping it. Show work under a message opens the work behind it. Needs My Kortix on in kortix.yaml."
849
+ },
850
+ "spaces_proactive": {
851
+ "name": "Spaces-Proactive",
852
+ "description": "With Spaces on, a space can watch itself: turn on Proactive in its details, and an agent reads what happens there (finished threads, questions left open, people who join) and writes in the chat only when it matters: a result worth sharing, a decision you need to make, or something overdue. It can also start a thread that does the work. Optional daily brief at 9:00."
861
853
  }
862
854
  },
863
855
  "channelsSwitch": {
@@ -1342,6 +1334,7 @@ const catalog = {
1342
1334
  "drive": "Drive",
1343
1335
  "repo": "Repo",
1344
1336
  "searchApps": "Search apps",
1337
+ "searchArtifacts": "Search artifacts",
1345
1338
  "appsNoMatches": "No matches",
1346
1339
  "spaces": {
1347
1340
  "channels": "Spaces",
@@ -2139,8 +2132,7 @@ const catalog = {
2139
2132
  "automation_failed": "Failure alert",
2140
2133
  "automation_recovered": "Recovery alert",
2141
2134
  "capture_device_down": "Capture computer stopped",
2142
- "capture_device_recovered": "Capture computer recording again",
2143
- "artifact_comment": "Artifact comments"
2135
+ "capture_device_recovered": "Capture computer recording again"
2144
2136
  },
2145
2137
  "kindDescription": {
2146
2138
  "turn_done": "A turn ends.",
@@ -2151,33 +2143,37 @@ const catalog = {
2151
2143
  "automation_failed": "A trigger or a loop starts failing.",
2152
2144
  "automation_recovered": "A failing trigger or loop works again.",
2153
2145
  "capture_device_down": "A Kortix Capture computer is not recording. Sent to people who manage Capture.",
2154
- "capture_device_recovered": "A Kortix Capture computer that stopped records again.",
2155
- "artifact_comment": "Feedback, mentions, and replies on Artifacts you can view."
2146
+ "capture_device_recovered": "A Kortix Capture computer that stopped records again."
2156
2147
  },
2157
- "bell": {
2158
- "label": "Notifications",
2159
- "unreadLabel": "Notifications: {count} unread",
2148
+ "inbox": {
2149
+ "title": "Inbox",
2150
+ "description": "Updates about the sessions, triggers, and artifacts that concern you, from every project.",
2151
+ "unreadLabel": "Inbox: {count} unread",
2152
+ "unreadCount": "{count} unread",
2160
2153
  "markAllRead": "Mark all as read",
2161
2154
  "tabAll": "All",
2162
2155
  "tabNeedsYou": "Needs you",
2163
2156
  "tabDone": "Done",
2164
2157
  "emptyNeedsYou": "Nothing needs you right now",
2158
+ "emptyNeedsYouDescription": "Questions, permission requests and failures show up in this tab.",
2165
2159
  "empty": "Notifications will show up here",
2160
+ "emptyDescription": "Kortix notifies you when a session finishes, needs your answer or fails.",
2166
2161
  "loadError": "Could not load notifications",
2167
2162
  "retry": "Try again",
2168
2163
  "unread": "Unread",
2169
2164
  "promptPush": "Get notified when Kortix is closed",
2170
2165
  "promptBackground": "Get notified when Kortix is in the background",
2171
2166
  "turnOn": "Turn on",
2172
- "dismiss": "Dismiss"
2167
+ "dismiss": "Dismiss",
2168
+ "settings": "Notification settings",
2169
+ "emailOptIn": "Email is off for most kinds until you turn it on."
2173
2170
  },
2174
2171
  "arrival": {
2175
2172
  "inProject": "{kind} in {project}",
2176
2173
  "openSession": "Open session",
2177
2174
  "openReminders": "Open loops",
2178
2175
  "openTriggers": "Open triggers",
2179
- "openConversation": "Open conversation",
2180
- "openArtifact": "Open Artifact"
2176
+ "openConversation": "Open conversation"
2181
2177
  },
2182
2178
  "session": {
2183
2179
  "mute": "Mute notifications",
@@ -4829,6 +4825,7 @@ const catalog = {
4829
4825
  "textb7668a581f59": "Failed to disconnect",
4830
4826
  "textb79cac926e0b": "Help",
4831
4827
  "textb7d2844482b4": "Open the full approval page",
4828
+ "text648f297b3b79": "Show in App",
4832
4829
  "textb7de71558bf4": "Selected connectors resolve this secret on the server. The sandbox receives no value.",
4833
4830
  "textb7e29198fc4e": "{value0} key removed",
4834
4831
  "textb80a37564fbb": "Query",
@@ -7825,7 +7822,8 @@ const catalog = {
7825
7822
  "missed_wake": "The last wake is overdue.",
7826
7823
  "ask_overdue": "An ask is past its due time.",
7827
7824
  "verification_stalled": "Verification started more than 24 hours ago.",
7828
- "unreadable": "This folder has no goal file."
7825
+ "unreadable": "This folder has no goal file.",
7826
+ "blocked": "This goal cannot go on by itself."
7829
7827
  },
7830
7828
  "sessionChip": "Goal",
7831
7829
  "sessionRole": {
@@ -7849,6 +7847,24 @@ const catalog = {
7849
7847
  "draft": "Getting started: the agent is writing the plan.",
7850
7848
  "working": "In progress. Next check {time}.",
7851
7849
  "workingNoWake": "In progress."
7850
+ },
7851
+ "blocked": {
7852
+ "credits": "It ran out of credits, so no wake can start.",
7853
+ "wake_cap": "It used all {max} wakes for today.",
7854
+ "session_cap": "It used all {max} sessions it may start.",
7855
+ "owner_lost": "Its agent session failed, and no session took over.",
7856
+ "storage": "Its folder in Files could not be read or written.",
7857
+ "flag_off": "Goals is turned off for this project.",
7858
+ "setup": "Kortix is still setting it up."
7859
+ },
7860
+ "blockedNext": {
7861
+ "credits": "Add credits, then resume it.",
7862
+ "wake_cap": "It goes on by itself after midnight UTC.",
7863
+ "session_cap": "Stop it, or ask a project admin to raise its session limit.",
7864
+ "owner_lost": "Start it again to give it a new session.",
7865
+ "storage": "Check the folder in Files, then resume it.",
7866
+ "flag_off": "Turn on Goals for this project, then resume it.",
7867
+ "setup": "This finishes by itself within a minute."
7852
7868
  }
7853
7869
  },
7854
7870
  "agentEditor": {
@@ -8220,7 +8236,6 @@ const catalog = {
8220
8236
  },
8221
8237
  "artifacts": {
8222
8238
  "title": "Artifacts",
8223
- "gateDescription": "Share docs and HTML pages from Files with your team or anyone with a link. Docs edit in place; every save is a version.",
8224
8239
  "type": {
8225
8240
  "doc": "Doc",
8226
8241
  "html": "HTML"
@@ -8243,7 +8258,6 @@ const catalog = {
8243
8258
  "moveFailed": "Could not move the artifact",
8244
8259
  "updated": "Updated {time}",
8245
8260
  "pinned": "Pinned",
8246
- "openComments": "{count, plural, one {# open comment} other {# open comments}}",
8247
8261
  "visibility": {
8248
8262
  "private": "Private",
8249
8263
  "project": "Project",
@@ -8342,134 +8356,6 @@ const catalog = {
8342
8356
  "close": "Close",
8343
8357
  "conflictReload": "Reload theirs",
8344
8358
  "conflictKeepMine": "Keep mine",
8345
- "discussion": {
8346
- "comments": "Comments",
8347
- "activity": "Activity",
8348
- "open": "Open",
8349
- "resolved": "Resolved",
8350
- "outdated": "Outdated",
8351
- "outdatedHint": "This passage cannot be located in the current document.",
8352
- "newComment": "New comment",
8353
- "annotationMode": "Pin a comment",
8354
- "annotationModeHint": "Click an element to pin a comment. Drag to mark a region.",
8355
- "annotationLoading": "Loading annotations…",
8356
- "annotationUnavailable": "Annotations are unavailable. Choose {refresh} in {actions} to try again.",
8357
- "commentLabel": "Comment",
8358
- "commentPlaceholder": "Leave feedback or mention someone…",
8359
- "replyLabel": "Reply",
8360
- "replyPlaceholder": "Write a reply…",
8361
- "postComment": "Comment",
8362
- "postReply": "Reply",
8363
- "saveEdit": "Save changes",
8364
- "cancel": "Cancel",
8365
- "edit": "Edit",
8366
- "delete": "Delete",
8367
- "deleteTitle": "Delete comment?",
8368
- "deleteDescription": "Its text is removed for everyone, and “Comment deleted” stays in its place. This cannot be undone.",
8369
- "commentDeleted": "Comment deleted",
8370
- "threadDeleted": "This thread was deleted.",
8371
- "resolve": "Resolve",
8372
- "reopen": "Reopen",
8373
- "edited": "Edited",
8374
- "commentActions": "Comment actions",
8375
- "focusThread": "Show passage",
8376
- "quoteLabel": "Selected passage",
8377
- "waitingForPerson": "Waiting for a person",
8378
- "deliveryFailed": "Could not send feedback to the agent.",
8379
- "sendFailed": "Could not send these comments. Try again.",
8380
- "retrySend": "Retry send ({count})",
8381
- "discardSend": "Discard and use latest comments",
8382
- "sendRetryHint": "The previous request may have completed. Retry it to confirm, or discard it before starting a new request.",
8383
- "sendBatchHint": "This batch contains {count} of {total} threads.",
8384
- "commentFailed": "Could not save your comment. Try again.",
8385
- "statusFailed": "Could not change this thread. Try again.",
8386
- "deleteFailed": "Could not delete this comment. Try again.",
8387
- "commentsLoadError": "Could not load comments.",
8388
- "contextLoadError": "Could not load comment permissions.",
8389
- "activityLoadError": "Could not load activity.",
8390
- "retry": "Try again",
8391
- "sendAgainTo": "Send again to {agent}",
8392
- "noComments": "No open comments",
8393
- "noCommentsHint": "Select a passage to comment on it, or start a new comment.",
8394
- "noResolved": "No resolved comments",
8395
- "noResolvedHint": "Resolved threads appear here.",
8396
- "noActivity": "No activity yet",
8397
- "noActivityHint": "Saves and comments appear here.",
8398
- "loadMore": "Load more",
8399
- "olderSaves": "Older saves may be unavailable in this history.",
8400
- "historicalReadOnly": "Comments on this version are read-only.",
8401
- "mentionPeople": "People",
8402
- "mentionAgents": "Agents",
8403
- "sourceSession": "Artifact session",
8404
- "composerKeys": "Enter to send · Shift+Enter for a new line",
8405
- "closeSelection": "Discard selected passage",
8406
- "preparingSelection": "Preparing selected passage…",
8407
- "selectionCaptureFailed": "Could not prepare the selected passage. Discard it to leave a whole-Artifact comment.",
8408
- "commentSelection": "Comment",
8409
- "selectionTooLong": "This passage is too long to comment on. Select {max} characters or fewer.",
8410
- "selectionUnavailable": "This passage cannot be anchored. Select another passage.",
8411
- "snapshotChanged": "The document changed. Reload it before commenting.",
8412
- "commentSaveFailed": "Could not save the document. Try again before commenting.",
8413
- "events": {
8414
- "saved": "saved a version",
8415
- "published": "published the Artifact",
8416
- "renamed": "renamed the Artifact",
8417
- "visibility_changed": "changed visibility",
8418
- "shared_with_changed": "changed who can view",
8419
- "restored": "restored a version",
8420
- "thread_opened": "opened a thread",
8421
- "replied": "replied to a thread",
8422
- "resolved": "resolved a thread",
8423
- "reopened": "reopened a thread",
8424
- "comment_deleted": "deleted a comment",
8425
- "sent_to_agent": "sent feedback to an agent"
8426
- },
8427
- "person": "Person",
8428
- "deleteRootDescription": "Its text is removed for everyone, and the thread becomes read-only. This cannot be undone.",
8429
- "showPanel": "Show comments",
8430
- "hidePanel": "Hide comments",
8431
- "panelTitle": "Comments and activity",
8432
- "resizePanel": "Resize comments panel",
8433
- "unshareComments": "{count, plural, one {# comment will be deleted.} other {# comments will be deleted.}}",
8434
- "systemActor": "System",
8435
- "draw": "Draw feedback",
8436
- "drawPen": "Pen",
8437
- "drawArrow": "Arrow",
8438
- "drawRectangle": "Rectangle",
8439
- "drawBlack": "Black",
8440
- "drawRed": "Red",
8441
- "drawBlue": "Blue",
8442
- "drawUndo": "Undo stroke",
8443
- "drawPageChanged": "The page changed. Cancel and draw again.",
8444
- "drawLimit": "Drawing limit reached. Undo a stroke to continue.",
8445
- "openScreenshot": "Open screenshot",
8446
- "drawingScreenshot": "Feedback screenshot",
8447
- "screenshotReadFailed": "Could not load the screenshot.",
8448
- "screenshotMissing": "Screenshot unavailable. The drawing is saved.",
8449
- "screenshotCaptureFailed": "Could not capture a screenshot. Your comment will include the drawing without an image.",
8450
- "sendScreenshotLimit": "Could not send these comments. Their screenshots exceed the limit for one request. Send fewer threads with drawings.",
8451
- "agentsUnavailable": "Could not load agents.",
8452
- "showMore": "Show more",
8453
- "showLess": "Show less",
8454
- "moreReplies": "{count, plural, one {# more reply} other {# more replies}}",
8455
- "resolvedBy": "Resolved by {name}",
8456
- "agent": "Agent",
8457
- "threadResolved": "Thread resolved",
8458
- "undo": "Undo",
8459
- "agentPending": "Sending to agent…",
8460
- "agentSent": "Sent to agent",
8461
- "openSession": "Open session",
8462
- "notDelivered": "Not delivered",
8463
- "sendThreads": "{count, plural, one {Send # open thread to {agent}} other {Send # open threads to {agent}}}",
8464
- "chooseAgent": "Choose agent",
8465
- "sentToAgent": "Comments sent to {agent}",
8466
- "newCommentFrom": "New comment from {name}",
8467
- "newComments": "{count, plural, one {# new comment} other {# new comments}}",
8468
- "pagePinLabel": "Comment {number}",
8469
- "showPanelCount": "Show comments, {count} open",
8470
- "hidePanelCount": "Hide comments, {count} open",
8471
- "commentSelectionHint": "Comment on the selection"
8472
- },
8473
8359
  "insertMedia": "Image or video…",
8474
8360
  "diagram": "Diagram",
8475
8361
  "blockMenu": "Blocks",
@@ -8494,34 +8380,20 @@ const catalog = {
8494
8380
  "embedDelete": "Delete",
8495
8381
  "spaceEmpty": "No artifacts in {space} yet",
8496
8382
  "showAll": "Show all",
8497
- "live": {
8498
- "here": "Here now",
8499
- "hereLabel": "On this Artifact now: {names}",
8500
- "reconnecting": "Reconnecting…",
8501
- "you": "You",
8502
- "agents": "Agents",
8503
- "agentsHere": "Agents in this thread",
8504
- "status": {
8505
- "viewing": "Viewing",
8506
- "reading": "Reading",
8507
- "editing": "Editing",
8508
- "writing": "Writing"
8509
- },
8510
- "hideCursor": "Hide my cursor",
8511
- "hideCursorHint": "Others still see your avatar.",
8512
- "typingOne": "{name} is typing…",
8513
- "typingTwo": "{first} and {second} are typing…",
8514
- "typingMany": "{count, plural, one {# person is typing…} other {# people are typing…}}",
8515
- "writing": "{name} is writing…"
8516
- },
8517
- "coedit": {
8518
- "offLarge": "Live co-editing is off: this doc is over 1 MiB. Changes save as you type.",
8519
- "offLineEndings": "Live co-editing is off: this doc mixes CRLF and LF line endings. Changes save as you type.",
8520
- "offShape": "Live co-editing is off: the editor would rewrite part of this doc's Markdown. Changes save as you type.",
8521
- "stoppedLarge": "Live co-editing stopped: one change was too large to share. Changes save as you type.",
8522
- "stoppedFailed": "Live co-editing stopped: the connection failed. Changes save as you type.",
8523
- "stoppedHistory": "Live co-editing stopped: this doc's edit history is too large. Changes save as you type."
8524
- }
8383
+ "conflictTitle": "Someone else changed this doc",
8384
+ "conflictReloadTitle": "Reload the newer version?",
8385
+ "conflictReloadHint": "Your edits since the last save are discarded. This cannot be undone.",
8386
+ "docLoadError": "Could not load this doc.",
8387
+ "openError": "Could not open this artifact.",
8388
+ "viewOnly": "View only",
8389
+ "viewingOldUndated": "You are viewing an earlier version.",
8390
+ "exportWaiting": "Saving your edits, then exporting…",
8391
+ "exportBlocked": "Export stopped: your latest edits are not saved.",
8392
+ "clearFilters": "Clear filters",
8393
+ "linkCopyFailed": "Could not copy the link. Select it in the field and copy it.",
8394
+ "shareDropsPeople": "{count, plural, one {Saving removes the person you added. Only Private keeps a list of people.} other {Saving removes the # people you added. Only Private keeps a list of people.}}",
8395
+ "askAgentHistoryError": "Could not load earlier chats.",
8396
+ "embedUnavailable": "This link has no preview, so it stays a link."
8525
8397
  },
8526
8398
  "emailConnect": {
8527
8399
  "homeTitle": "Where the inbox lives",
@@ -9179,7 +9051,8 @@ const catalog = {
9179
9051
  "leaveHintPrivate": "You lose access to its threads, files and memory, your own threads included. A member must add you again.",
9180
9052
  "leavePrivateTitle": "Leave #{name}?",
9181
9053
  "addMembers": "Add members",
9182
- "privateLimits": "Private hides the space from other people. Code changes (git branches) and the agents’ own tools aren’t private."
9054
+ "privateLimits": "Private hides the space from other people. Code changes (git branches) and the agents’ own tools aren’t private.",
9055
+ "agentAdded": "{agent} added to #{name}."
9183
9056
  },
9184
9057
  "folder": {
9185
9058
  "memory": "Memory",
@@ -9304,8 +9177,15 @@ const catalog = {
9304
9177
  "routines": "Routines",
9305
9178
  "addRoutine": "Add routine",
9306
9179
  "routinesPrivate": "A private space takes no routines yet.",
9180
+ "proactive": "Proactive",
9181
+ "proactiveWatch": "Watch this space",
9182
+ "proactiveWatchHint": "An agent reads what happens here and writes only when it matters.",
9183
+ "proactiveBrief": "Daily brief",
9184
+ "proactiveBriefHint": "A short summary at 9:00 on days with news.",
9185
+ "proactiveFailed": "The setting was not saved. Try again.",
9307
9186
  "allSettings": "All settings",
9308
- "askHint": "You can also ask in chat: \"add an agent here\", \"pin the launch doc as a tab\"."
9187
+ "askHint": "You can also ask in chat: \"add an agent here\", \"pin the launch doc as a tab\".",
9188
+ "noAgentsToAdd": "Every project agent is in this space."
9309
9189
  },
9310
9190
  "profile": {
9311
9191
  "viewProfile": "Show the profile of {name}",
@@ -9338,9 +9218,14 @@ const catalog = {
9338
9218
  "mentions": {
9339
9219
  "people": "People",
9340
9220
  "agents": "Agents",
9341
- "addToSpace": "Not in {space} yet: mentioning adds it",
9221
+ "addToSpace": "Not in {space}: ask to add",
9342
9222
  "added": "{agent} added to {space}",
9343
- "addFailed": "Could not add the agent. Try again."
9223
+ "addFailed": "Could not add the agent. Try again.",
9224
+ "askAdd": "Add {agent} to {space}?",
9225
+ "askAddConfirm": "Add",
9226
+ "askNotNow": "Not now",
9227
+ "askAdmin": "{agent} isn't in {space}. Ask a Space admin to add it.",
9228
+ "dismiss": "Dismiss"
9344
9229
  }
9345
9230
  },
9346
9231
  "imageGen": {
@@ -59,6 +59,12 @@ export function AgentMark({ slug, size = 14, tile = TILE[size], label, className
59
59
  export function agentDisplayName(slug) {
60
60
  if (isMyKortixAgentName(slug))
61
61
  return MY_KORTIX_DISPLAY_NAME;
62
+ // Model tool input and event data reach this through `as string` casts, so the
63
+ // slug is `unknown` at runtime. A truthy non-string degrades to its string
64
+ // form instead of crashing the render tree (KRTX-4511: `e.replace is not a
65
+ // function` took down the session page).
66
+ if (typeof slug !== 'string')
67
+ return String(slug);
62
68
  const words = slug.replace(/[-_]+/g, ' ').trim();
63
69
  return words.charAt(0).toUpperCase() + words.slice(1);
64
70
  }
@@ -15,6 +15,9 @@ import React from 'react';
15
15
  * A path that resolves but doesn't exist is not this function's problem — the
16
16
  * viewer reports "couldn't be opened", the same as any dead absolute path, and
17
17
  * that beats refusing to try.
18
+ *
19
+ * A session drive path (`/drives/me/…`) is outside /workspace and stays as it
20
+ * is: the file client reads it through the drive API (`session-drive-files`).
18
21
  */
19
22
  export declare function resolveOpenablePath(filePath: string): string | null;
20
23
  interface ClickablePathProps {
@@ -24,12 +24,15 @@ import React, { useCallback, useMemo } from 'react';
24
24
  * A path that resolves but doesn't exist is not this function's problem — the
25
25
  * viewer reports "couldn't be opened", the same as any dead absolute path, and
26
26
  * that beats refusing to try.
27
+ *
28
+ * A session drive path (`/drives/me/…`) is outside /workspace and stays as it
29
+ * is: the file client reads it through the drive API (`session-drive-files`).
27
30
  */
28
31
  export function resolveOpenablePath(filePath) {
29
32
  const trimmed = filePath.trim();
30
33
  if (!trimmed)
31
34
  return null;
32
- return toSandboxAbsolutePath(trimmed);
35
+ return trimmed.startsWith('/drives/') ? trimmed : toSandboxAbsolutePath(trimmed);
33
36
  }
34
37
  export function ClickablePath({ filePath, children, lineNumber, column, className, variant = 'inline', }) {
35
38
  const openPreview = useFilePreviewStore((s) => s.openPreview);
@@ -36,7 +36,7 @@ function isPermanentFileReadFailure(error) {
36
36
  msg.includes('403') ||
37
37
  msg.includes('400') ||
38
38
  msg.includes('bad request') ||
39
- // A directory read (e.g. `.opencode`) returns 400 "Path is a directory" —
39
+ // A directory read (e.g. `.kortix`) returns 400 "Path is a directory" —
40
40
  // permanent, must not be retried on a loop.
41
41
  msg.includes('is a directory') ||
42
42
  msg.includes('eisdir') ||
@@ -1,7 +1,7 @@
1
1
  /** @internal Kortix apps only. No semver: it may change in any release. */
2
2
  /**
3
- * Types matching the OpenCode server REST API responses.
4
- * See: https://opencode.ai/docs/server/#files
3
+ * Types matching the sandbox daemon's file REST API responses (the
4
+ * OpenCode-shaped `/file` routes kortixd serves).
5
5
  */
6
6
  /** GET /file?path=<path> response item */
7
7
  export interface FileNode {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Types matching the OpenCode server REST API responses.
3
- * See: https://opencode.ai/docs/server/#files
2
+ * Types matching the sandbox daemon's file REST API responses (the
3
+ * OpenCode-shaped `/file` routes kortixd serves).
4
4
  */
5
5
  export {};
@@ -11,11 +11,16 @@ export declare function GoalStatusBadge({ status, paused }: {
11
11
  status: ProjectGoalStatus | null | undefined;
12
12
  paused?: boolean;
13
13
  }): import("react").JSX.Element | null;
14
+ /** A goal the caller holds: the server record when there is one, else (an older caller) GOAL.md and its heartbeat. */
15
+ type GoalLike = Pick<ProjectGoal, 'health'> & Partial<Pick<ProjectGoal, 'goal' | 'heartbeat' | 'record' | 'blockedReason'>>;
14
16
  /**
15
- * A person paused the goal and nothing wakes it: GOAL.md has `paused_at` AND its heartbeat
16
- * is not running. `paused_at` alone is a claim any session with the folder can write.
17
+ * A person paused the goal: the server record's `paused_at`. Only a person
18
+ * can pause, and the API enforces it, so the record is the truth. Without a
19
+ * record (an older caller): GOAL.md `paused_at` AND a heartbeat that is not running.
17
20
  */
18
- export declare function goalPaused(goal: Pick<ProjectGoal, 'goal' | 'health' | 'heartbeat'>): boolean;
21
+ export declare function goalPaused(goal: GoalLike): boolean;
22
+ /** When the goal wakes next: the server's `next_wake_at`, else the heartbeat's next fire. Null while paused or waiting. */
23
+ export declare function goalNextWake(goal: GoalLike): string | null;
19
24
  /**
20
25
  * One sentence for where a goal stands and what happens next, the same on the
21
26
  * Goals list and the goal's page: closed, paused, the question it waits on a
@@ -24,12 +29,12 @@ export declare function goalPaused(goal: Pick<ProjectGoal, 'goal' | 'health' | '
24
29
  export declare function useGoalStateText(): (goal: ProjectGoal, locale: string, now: number) => string;
25
30
  /** Orange: a person must act (a question or a problem). Grey otherwise: green is kept for done (the ring). */
26
31
  export declare function GoalHealthDot({ goal }: {
27
- goal: Pick<ProjectGoal, 'health'> & Partial<Pick<ProjectGoal, 'goal' | 'heartbeat'>>;
32
+ goal: GoalLike;
28
33
  }): import("react").JSX.Element;
29
34
  /** What a goal's icon draws: its state, or a problem a person must look at. */
30
35
  export type GoalIconState = 'draft' | 'active' | 'verifying' | 'waiting' | 'attention' | 'paused' | 'done' | 'stopped';
31
36
  /** The icon state of a goal in a list: paused and attention win over the state in GOAL.md. */
32
- export declare function goalIconState(goal: ProjectGoal): GoalIconState;
37
+ export declare function goalIconState(goal: GoalLike): GoalIconState;
33
38
  /** The icon state of a state move in the activity feed. */
34
39
  export declare function goalStatusIconState(status: ProjectGoalStatus): GoalIconState;
35
40
  /**
@@ -50,25 +55,38 @@ export declare function GoalStatusIcon({ state, progress, label, tone, className
50
55
  label?: string;
51
56
  className?: string;
52
57
  }): import("react").JSX.Element;
53
- /** One sentence per issue, for the health line and its tooltip. */
54
- export declare function useGoalIssueText(): (issue: ProjectGoalIssue, goal: Pick<ProjectGoal, "heartbeat">) => string;
55
- /** Done criteria met, as a ring and "met/total". Nothing while the goal has no criteria. */
58
+ /** One sentence per issue, for the health line and its tooltip. `blocked` says why, from the server's `blocked_reason`. */
59
+ export declare function useGoalIssueText(): (issue: ProjectGoalIssue, goal: Partial<Pick<ProjectGoal, "heartbeat" | "blockedReason" | "record">>) => string;
60
+ /** The next step a person takes for a blocked goal, one sentence. */
61
+ export declare function useGoalBlockedNextStep(): (goal: Pick<ProjectGoal, "blockedReason">) => string | null;
62
+ /**
63
+ * Done criteria the agent reports met, as a ring and "met/total". The ring
64
+ * turns green only when the verifier passed every criterion. Nothing while
65
+ * the goal has no criteria.
66
+ */
56
67
  export declare function GoalCriteriaProgress({ goal, ring }: {
57
- goal: ProjectGoalDocument | null;
68
+ goal: ProjectGoal | ProjectGoalDocument | null;
58
69
  ring?: boolean;
59
70
  }): import("react").JSX.Element | null;
71
+ /** Criteria the agent reports met (its claim, not verification) and the total. */
60
72
  export declare function goalProgress(goal: ProjectGoalDocument | null): {
61
73
  met: number;
62
74
  total: number;
63
75
  };
76
+ /** Criteria reported met by the agent, verified by the independent verifier, and the total. */
77
+ export declare function goalCriteriaStatus(goal: Pick<ProjectGoal, 'criteria'>): {
78
+ met: number;
79
+ verified: number;
80
+ total: number;
81
+ };
64
82
  /** Open asks for a person (not the agent): what the goal waits on someone for. */
65
83
  export declare function goalOpenAsks(goal: ProjectGoalDocument | null): ProjectGoalItem[];
66
84
  /** The goal waits on a person: its state is `waiting_on_user`, or it has an open ask. */
67
- export declare function goalNeedsYou(goal: ProjectGoal): boolean;
85
+ export declare function goalNeedsYou(goal: GoalLike): boolean;
68
86
  /** The goal runs into a problem no person was asked about: a health issue (no heartbeat, a failed wake, …). */
69
- export declare function goalNeedsAttention(goal: ProjectGoal): boolean;
70
- /** When the goal last woke: the heartbeat's last run, else the wake GOAL.md records. */
71
- export declare function goalLastWake(goal: Pick<ProjectGoal, 'goal' | 'heartbeat'>): string | null;
87
+ export declare function goalNeedsAttention(goal: GoalLike): boolean;
88
+ /** When the goal last woke: the server's `last_wake_at`, else the heartbeat's last run, else the wake GOAL.md records. */
89
+ export declare function goalLastWake(goal: Partial<Pick<ProjectGoal, 'goal' | 'heartbeat' | 'record'>>): string | null;
72
90
  /** Who a goal is for, by name: "You", the member's email, else "A teammate". */
73
91
  export declare function useGoalPerson(projectId: string): (userId: string | null | undefined) => string | null;
74
92
  /** The person a goal is for, as an avatar and a name ("You", their email, else "A teammate"). */
@@ -86,6 +104,7 @@ export declare function useStartGoal(projectId: string): (outcome: string) => vo
86
104
  export declare function goalAssignedTo(goal: Pick<ProjectGoal, 'goal'>, userId: string | null | undefined): boolean;
87
105
  /** "in 33 min", "2 hr ago", "Tue 09:00": the reminders time format. */
88
106
  export declare function formatGoalTime(iso: string | null | undefined, locale: string, now: number): string;
89
- export declare function goalHref(projectId: string, goal: Pick<ProjectGoal, 'scope' | 'slug'>): string | null;
107
+ /** A goal's page: `/goals/<goal_id>`. Without an id (an older caller): the legacy `/goals/<scope>/<slug>` link, which resolves when the slug is unique. */
108
+ export declare function goalHref(projectId: string, goal: Pick<ProjectGoal, 'scope' | 'slug'> & Partial<Pick<ProjectGoal, 'goalId'>>): string | null;
90
109
  /** The current time, re-read every 30 seconds: relative times and health stay current. */
91
110
  export { useNow as useGoalClock } from '../reminders/use-refetch-after-fire.js';