@makinbakin/sdk 0.0.1-rc.20 → 0.0.1-rc.21

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 (110) hide show
  1. package/_internal/app/components/agent-select.d.ts +10 -1
  2. package/_internal/app/components/asset-picker.d.ts +25 -0
  3. package/_internal/app/components/charts/bar-chart.d.ts +16 -0
  4. package/_internal/app/components/charts/chart-data-table.d.ts +31 -0
  5. package/_internal/app/components/charts/chart-explainer.d.ts +9 -0
  6. package/_internal/app/components/charts/chart-tooltip.d.ts +8 -0
  7. package/_internal/app/components/charts/line-chart.d.ts +13 -0
  8. package/_internal/app/components/charts/palette.d.ts +24 -0
  9. package/_internal/app/components/charts/sparkline.d.ts +12 -0
  10. package/_internal/app/components/charts/stacked-column-chart.d.ts +40 -0
  11. package/_internal/app/components/confirm-dialog.d.ts +23 -2
  12. package/_internal/app/components/conversation/activity-group.d.ts +15 -0
  13. package/_internal/app/components/conversation/agent-turn.d.ts +36 -0
  14. package/_internal/app/components/conversation/attention.d.ts +56 -0
  15. package/_internal/app/components/conversation/composer.d.ts +35 -0
  16. package/_internal/app/components/conversation/conversation-empty-state.d.ts +8 -0
  17. package/_internal/app/components/conversation/conversation-panel.d.ts +33 -0
  18. package/_internal/app/components/conversation/conversation.d.ts +14 -0
  19. package/_internal/app/components/conversation/fold.d.ts +129 -0
  20. package/_internal/app/components/conversation/notification-sound.d.ts +8 -0
  21. package/_internal/app/components/conversation/relative-time.d.ts +8 -0
  22. package/_internal/app/components/conversation/reply-toast.d.ts +15 -0
  23. package/_internal/app/components/conversation/thread-id.d.ts +8 -0
  24. package/_internal/app/components/conversation/tool-call-drawer.d.ts +7 -0
  25. package/_internal/app/components/conversation/turn-recorder.d.ts +37 -0
  26. package/_internal/app/components/conversation/use-conversation-attention.d.ts +64 -0
  27. package/_internal/app/components/conversation/use-conversation-thread.d.ts +55 -0
  28. package/_internal/app/components/conversation/user-message.d.ts +11 -0
  29. package/_internal/app/components/danger-zone.d.ts +28 -0
  30. package/_internal/app/components/empty-state.d.ts +5 -2
  31. package/_internal/app/components/plugin-header.d.ts +4 -3
  32. package/_internal/app/components/save-bar.d.ts +32 -0
  33. package/_internal/app/components/score-overlay.d.ts +33 -0
  34. package/_internal/app/components/search-degraded-chip.d.ts +4 -0
  35. package/_internal/app/components/search-partial-chip.d.ts +13 -0
  36. package/_internal/app/components/search-unavailable.d.ts +12 -0
  37. package/_internal/app/components/section-card.d.ts +22 -0
  38. package/_internal/app/components/segmented-control.d.ts +28 -0
  39. package/_internal/app/components/stat-tile.d.ts +26 -0
  40. package/_internal/app/components/status-badge.d.ts +19 -0
  41. package/_internal/app/components/turn-output-view.d.ts +57 -0
  42. package/_internal/app/components/ui/button.d.ts +1 -1
  43. package/_internal/app/components/underline-tabs.d.ts +6 -2
  44. package/_internal/app/components/unsaved-changes-guard.d.ts +34 -0
  45. package/_internal/app/core/conversation-turns.d.ts +148 -0
  46. package/_internal/app/core/logger.d.ts +1 -0
  47. package/_internal/app/hooks/use-file-drop.d.ts +25 -0
  48. package/_internal/app/hooks/use-history-back.d.ts +1 -0
  49. package/_internal/app/hooks/use-json-fetch.d.ts +5 -0
  50. package/_internal/app/hooks/use-query-state.d.ts +2 -0
  51. package/_internal/app/hooks/use-schedule.d.ts +45 -0
  52. package/_internal/app/hooks/use-search.d.ts +27 -8
  53. package/_internal/app/hooks/use-toast.d.ts +3 -3
  54. package/_internal/app/lib/browser-notify.d.ts +12 -1
  55. package/_internal/core/adapters/runtime/concepts.d.ts +547 -49
  56. package/_internal/core/adapters/runtime/errors.d.ts +13 -1
  57. package/_internal/core/adapters/runtime/helpers.d.ts +19 -0
  58. package/_internal/core/adapters/runtime/index.d.ts +5 -2
  59. package/_internal/core/adapters/runtime/testing.d.ts +79 -0
  60. package/_internal/core/adapters/runtime/turn-activity.d.ts +23 -0
  61. package/_internal/core/adapters/shared.d.ts +122 -12
  62. package/_internal/core/content-dir.d.ts +8 -0
  63. package/_internal/core/docs/route.d.ts +1 -1
  64. package/_internal/core/format/structured.d.ts +44 -0
  65. package/_internal/core/format.d.ts +5 -1
  66. package/_internal/core/media/downscale.d.ts +18 -0
  67. package/_internal/core/media/sharp-loader.d.ts +36 -0
  68. package/_internal/core/plugin-types.d.ts +102 -39
  69. package/_internal/core/routing/define.d.ts +26 -3
  70. package/_internal/core/routing/dispatcher.d.ts +15 -6
  71. package/_internal/core/routing/index.d.ts +1 -1
  72. package/_internal/core/routing/types.d.ts +13 -70
  73. package/_internal/core/storage/atomic-write.d.ts +11 -0
  74. package/_internal/core/tasks/store.d.ts +129 -0
  75. package/_internal/core/tasks/testing.d.ts +2 -0
  76. package/_internal/{plugins/workflows/lib → core/workflows}/notification-channel-registry.d.ts +1 -1
  77. package/_internal/plugins/team/types.d.ts +47 -0
  78. package/_internal/plugins/workflows/hooks/use-notification-channels.d.ts +1 -1
  79. package/components/index.d.ts +87 -19
  80. package/components/index.js +32904 -15368
  81. package/hooks/index.d.ts +24 -4
  82. package/hooks/index.js +837 -561
  83. package/hooks/router.d.ts +20 -4
  84. package/index.d.ts +5 -50
  85. package/index.js +223 -406
  86. package/internal/index.d.ts +70 -0
  87. package/internal/index.js +409 -0
  88. package/package.json +9 -2
  89. package/register.d.ts +19 -1
  90. package/routing/index.js +175 -147
  91. package/slots/index.js +20 -1
  92. package/testing/index.d.ts +122 -0
  93. package/testing/index.js +21874 -0
  94. package/types/index.d.ts +4 -0
  95. package/types/index.js +16 -0
  96. package/utils/index.d.ts +28 -25
  97. package/utils/index.js +279 -263
  98. package/_internal/app/components/integrated-brainstorm/activity.d.ts +0 -23
  99. package/_internal/app/components/integrated-brainstorm/collapsed-header.d.ts +0 -14
  100. package/_internal/app/components/integrated-brainstorm/empty-state.d.ts +0 -5
  101. package/_internal/app/components/integrated-brainstorm/index.d.ts +0 -8
  102. package/_internal/app/components/integrated-brainstorm/input-row.d.ts +0 -16
  103. package/_internal/app/components/integrated-brainstorm/message-list.d.ts +0 -8
  104. package/_internal/app/components/integrated-brainstorm/session.d.ts +0 -16
  105. package/_internal/app/components/integrated-brainstorm/sse.d.ts +0 -8
  106. package/_internal/app/components/integrated-brainstorm/thinking-indicator.d.ts +0 -19
  107. package/_internal/app/components/integrated-brainstorm/types.d.ts +0 -63
  108. package/_internal/app/components/integrated-brainstorm/use-auto-grow.d.ts +0 -6
  109. package/_internal/app/components/integrated-brainstorm/use-brainstorm-state.d.ts +0 -21
  110. /package/_internal/{plugins/models → app}/hooks/use-available-models.d.ts +0 -0
@@ -139,3 +139,50 @@ export interface HeartbeatRaw {
139
139
  content: string;
140
140
  lastUpdated: string | null;
141
141
  }
142
+ /** Client mirror of a sync-scanner finding (GET /api/agent-packages/{id}/scan). */
143
+ export interface ScanFinding {
144
+ type: string;
145
+ severity: 'warn' | 'error';
146
+ autoFixable: boolean;
147
+ message: string;
148
+ agentId?: string;
149
+ packageId?: string;
150
+ file?: string;
151
+ target?: string;
152
+ staleInputs?: string[];
153
+ hint?: string;
154
+ }
155
+ /** Client mirror of one timeline event (GET /:agentId/timeline). */
156
+ export type TimelineEventView = {
157
+ type: 'run';
158
+ ts: number;
159
+ runId: string;
160
+ taskId: string;
161
+ taskTitle: string | null;
162
+ seq: number;
163
+ status: 'running' | 'settled' | 'superseded' | 'lost';
164
+ settleReason: string | null;
165
+ startedAt: number;
166
+ settledAt: number | null;
167
+ durationMs: number | null;
168
+ model: string | null;
169
+ inputTokens: number | null;
170
+ outputTokens: number | null;
171
+ totalTokens: number | null;
172
+ costUsdMicros: number | null;
173
+ /** Route receipt (null = pre-migration rows). */
174
+ workClass: string | null;
175
+ routeSource: string | null;
176
+ logs: Array<{
177
+ ts: string;
178
+ message: string;
179
+ }>;
180
+ logsTruncated: boolean;
181
+ } | {
182
+ type: 'event';
183
+ ts: number;
184
+ event: string;
185
+ severity: 'info' | 'warn';
186
+ message: string;
187
+ taskId: string | null;
188
+ };
@@ -1,4 +1,4 @@
1
- import type { NotificationChannelDef } from '../lib/notification-channel-registry';
1
+ import type { NotificationChannelDef } from '../../../core/workflows/notification-channel-registry';
2
2
  export declare function useNotificationChannels(): NotificationChannelDef[];
3
3
  export declare function getChannelLabel(id: string, channels: NotificationChannelDef[]): string;
4
4
  /**
@@ -10,21 +10,52 @@
10
10
  export { AgentAvatar } from '../_internal/app/components/agent-avatar';
11
11
  /** Multi-select facet filter scoped to agents. */
12
12
  export { AgentFilter } from '../_internal/app/components/agent-filter';
13
- /** Single-agent picker dropdown for form fields. */
14
- export { AgentSelect } from '../_internal/app/components/agent-select';
13
+ /** Single-agent (or team, #189) picker dropdown for form fields. */
14
+ export { AgentSelect, TEAM_VALUE_PREFIX, isTeamValue, teamIdFromValue } from '../_internal/app/components/agent-select';
15
15
  /** Small status dot showing an agent's online/offline state. */
16
16
  export { AgentDot } from '../_internal/app/components/agent-status';
17
17
  /** Compound agent status (dot + label + last-seen timestamp). */
18
18
  export { AgentStatus } from '../_internal/app/components/agent-status';
19
+ /** Modal asset chooser (thumbnail grid + search + upload-new) over the assets plugin — never a raw id select. */
20
+ export { AssetPicker } from '../_internal/app/components/asset-picker';
21
+ export type { AssetPickerProps, AssetPickerAsset } from '../_internal/app/components/asset-picker';
19
22
  /** Right-side slide-out drawer with backdrop and focus trap. */
20
23
  export { BakinDrawer } from '../_internal/app/components/bakin-drawer';
21
24
  /** Color picker swatch grid for tag/agent color assignment. */
22
25
  export { ColorPicker } from '../_internal/app/components/color-picker';
23
- /** Controlled confirmation dialog for destructive actions (busy/error aware). */
26
+ /** Controlled confirmation dialog for destructive actions (busy/error aware; optional typed confirmation via `confirmValue`). */
24
27
  export { ConfirmDialog } from '../_internal/app/components/confirm-dialog';
25
28
  export type { ConfirmDialogProps } from '../_internal/app/components/confirm-dialog';
29
+ /** Red-bordered destructive settings section with typed-confirmation delete — bottom of every settings surface. */
30
+ export { DangerZone } from '../_internal/app/components/danger-zone';
31
+ export type { DangerZoneProps } from '../_internal/app/components/danger-zone';
26
32
  /** Centered empty-state component with icon, title, and CTA. */
27
33
  export { EmptyState } from '../_internal/app/components/empty-state';
34
+ /** Sticky save/discard bar for staged-draft pages (THE dirty-state pattern) + `useUnsavedGuard`. */
35
+ export { SaveBar, useUnsavedGuard } from '../_internal/app/components/save-bar';
36
+ export type { SaveBarProps } from '../_internal/app/components/save-bar';
37
+ /** Full navigation guard for dirty surfaces: beforeunload + TanStack history block + anchor interception + exit dialog. */
38
+ export { useUnsavedChangesGuard } from '../_internal/app/components/unsaved-changes-guard';
39
+ export type { UnsavedChangesGuardOptions } from '../_internal/app/components/unsaved-changes-guard';
40
+ /** Titled card with icon + a one-line "why this matters" description — the standard section wrapper. */
41
+ export { SectionCard } from '../_internal/app/components/section-card';
42
+ export type { SectionCardProps } from '../_internal/app/components/section-card';
43
+ /** THE segmented control / mode toggle (Edit|Preview, Board|Log, time windows) — tablist semantics, neutral active segment. */
44
+ export { SegmentedControl } from '../_internal/app/components/segmented-control';
45
+ export type { SegmentedControlProps, SegmentedControlOption } from '../_internal/app/components/segmented-control';
46
+ /** THE metric tile — icon + uppercase micro-label + tabular big number, optional sub/meter. */
47
+ export { StatTile } from '../_internal/app/components/stat-tile';
48
+ export type { StatTileProps } from '../_internal/app/components/stat-tile';
49
+ /** THE status chip — one tone scale (neutral/success/warning/destructive/accent) for every state badge. */
50
+ export { StatusBadge } from '../_internal/app/components/status-badge';
51
+ export type { StatusBadgeProps, StatusTone } from '../_internal/app/components/status-badge';
52
+ export { SearchUnavailable } from '../_internal/app/components/search-unavailable';
53
+ export { ScoreOverlay, computeMatchedFields } from '../_internal/app/components/score-overlay';
54
+ export { SearchPartialChip } from '../_internal/app/components/search-partial-chip';
55
+ export type { SearchPartialMeta } from '../_internal/app/components/search-partial-chip';
56
+ /** Amber "search down — basic text matching" chip for surfaces with a substring fallback. */
57
+ export { SearchDegradedChip } from '../_internal/app/components/search-degraded-chip';
58
+ export type { ScoreOverlayInfo } from '../_internal/app/components/score-overlay';
28
59
  /** Inline error banner with dismiss + retry actions. */
29
60
  export { ErrorBanner } from '../_internal/app/components/error-banner';
30
61
  /** Full-page error state with title, description, and retry button. */
@@ -33,22 +64,6 @@ export { ErrorState } from '../_internal/app/components/error-state';
33
64
  export { FacetFilter } from '../_internal/app/components/facet-filter';
34
65
  export type { FacetOption } from '../_internal/app/components/facet-filter';
35
66
  /** Chat + plan-proposal review panel for brainstorm sessions. */
36
- export { IntegratedBrainstorm } from '../_internal/app/components/integrated-brainstorm';
37
- export type { BrainstormMessage, IntegratedBrainstormProps, BrainstormOnSend, SendContext, AssistantTransformed, BrainstormActivityInput, BrainstormActivityStorageInput, BrainstormActivityStorageRecord, BrainstormTimelineActivityInput, BrainstormTimelineMessageInput, } from '../_internal/app/components/integrated-brainstorm';
38
- /** Convert a custom activity message back into a brainstorm activity. */
39
- export { brainstormActivityMessageFromCustom } from '../_internal/app/components/integrated-brainstorm';
40
- /** Compute the canonical thread ID for a brainstorm session. */
41
- export { brainstormThreadId } from '../_internal/app/components/integrated-brainstorm';
42
- /** Normalize a brainstorm activity payload for persistence. */
43
- export { normalizeBrainstormActivityForStorage } from '../_internal/app/components/integrated-brainstorm';
44
- /** Normalize a single brainstorm message for persistence. */
45
- export { normalizeBrainstormActivityMessageForStorage } from '../_internal/app/components/integrated-brainstorm';
46
- /** Read an SSE response stream into brainstorm activity events. */
47
- export { readBrainstormSseResponse } from '../_internal/app/components/integrated-brainstorm';
48
- /** Convert a runtime chat chunk to a brainstorm activity event. */
49
- export { runtimeChunkToBrainstormActivity } from '../_internal/app/components/integrated-brainstorm';
50
- /** Fold a brainstorm session's events into a renderable timeline. */
51
- export { toBrainstormTimeline } from '../_internal/app/components/integrated-brainstorm';
52
67
  /** Render markdown content with syntax highlighting and link handling. */
53
68
  export { MarkdownContent } from '../_internal/app/components/markdown-content';
54
69
  /** Editable markdown text area with preview toggle. */
@@ -57,8 +72,12 @@ export { MarkdownEditor } from '../_internal/app/components/markdown-editor';
57
72
  export { ModelSelect } from '../_internal/app/components/model-select';
58
73
  /** Standard plugin page wrapper with header, content area, and toaster. */
59
74
  export { PageLayout } from '../_internal/app/components/page-layout';
75
+ /** Client-side link for runtime-registered plugin and cross-plugin routes. */
76
+ export { PluginLink } from './plugin-link/index';
77
+ export type { PluginLinkProps } from './plugin-link/index';
60
78
  /** Plugin page header with title, count badge, search, and action buttons. */
61
79
  export { PluginHeader } from '../_internal/app/components/plugin-header';
80
+ export type { PluginHeaderProps } from '../_internal/app/components/plugin-header';
62
81
  /** Render a settings form from a PluginSettingsSchema definition. */
63
82
  export { PluginSettingsRenderer } from '../_internal/app/components/plugin-settings-renderer';
64
83
  export type { PluginSettingsSchema } from '../_internal/app/components/plugin-settings-renderer';
@@ -68,5 +87,54 @@ export type { SortDir } from '../_internal/app/components/sortable-head';
68
87
  /** Tab list with animated underline indicator. */
69
88
  export { UnderlineTabs } from '../_internal/app/components/underline-tabs';
70
89
  export type { UnderlineTab } from '../_internal/app/components/underline-tabs';
90
+ /** THE single renderer for normalized turn chunks (text/tool/status/error) — turn-output surfaces consume this, never hand-rolled format heuristics. */
91
+ export { TurnOutputView, TurnToolChip, foldTurnChunks } from '../_internal/app/components/turn-output-view';
92
+ export type { TurnOutputViewProps, TurnToolChipState, TurnTextSegment, FoldedTurnOutput } from '../_internal/app/components/turn-output-view';
93
+ export { foldConversation } from '../_internal/app/components/conversation/fold';
94
+ export type { ConversationMessage, ConversationTurn, ConversationToolCall, TurnItem, TurnStatus, DisplayAttachment, FoldOptions, } from '../_internal/app/components/conversation/fold';
95
+ export { Conversation } from '../_internal/app/components/conversation/conversation';
96
+ export type { ConversationProps } from '../_internal/app/components/conversation/conversation';
97
+ export { AgentTurn, ThinkingIndicator, CopyButton, TurnTimestamp } from '../_internal/app/components/conversation/agent-turn';
98
+ export type { AgentTurnProps } from '../_internal/app/components/conversation/agent-turn';
99
+ export { UserMessage } from '../_internal/app/components/conversation/user-message';
100
+ export type { UserMessageProps } from '../_internal/app/components/conversation/user-message';
101
+ export { ActivityGroup, ToolCallRow, formatDuration, humanizeActivity } from '../_internal/app/components/conversation/activity-group';
102
+ export type { ActivityGroupProps } from '../_internal/app/components/conversation/activity-group';
103
+ export { ToolCallDrawer } from '../_internal/app/components/conversation/tool-call-drawer';
104
+ export type { ToolCallDrawerProps } from '../_internal/app/components/conversation/tool-call-drawer';
105
+ export { Composer } from '../_internal/app/components/conversation/composer';
106
+ export type { ComposerProps, ComposerAttachments, ComposerAttachmentItem } from '../_internal/app/components/conversation/composer';
107
+ export { ConversationPanel } from '../_internal/app/components/conversation/conversation-panel';
108
+ export type { ConversationPanelProps } from '../_internal/app/components/conversation/conversation-panel';
109
+ export { useConversationThread } from '../_internal/app/components/conversation/use-conversation-thread';
110
+ export type { ConversationThread, ConversationThreadLoad, ConversationThreadOptions, } from '../_internal/app/components/conversation/use-conversation-thread';
111
+ export { attentionForDone, badgeFor, visibleIdFromLocation, withUnreadPrefix, } from '../_internal/app/components/conversation/attention';
112
+ export type { AttentionActions, ConversationAttentionContext, ConversationDonePayload, } from '../_internal/app/components/conversation/attention';
113
+ export { playReplyChime } from '../_internal/app/components/conversation/notification-sound';
114
+ export { ConversationReplyToast } from '../_internal/app/components/conversation/reply-toast';
115
+ export { useConversationAttention } from '../_internal/app/components/conversation/use-conversation-attention';
116
+ export type { ConversationAttentionConfig, ConversationAttentionTotals, } from '../_internal/app/components/conversation/use-conversation-attention';
117
+ export { ConversationEmptyState } from '../_internal/app/components/conversation/conversation-empty-state';
118
+ export type { ConversationEmptyStateProps } from '../_internal/app/components/conversation/conversation-empty-state';
119
+ export { formatRelativeTime, formatAbsoluteTime } from '../_internal/app/components/conversation/relative-time';
71
120
  /** Icon component for a notification channel (Discord, Slack, email, etc.). */
72
121
  export { ChannelIcon } from '../_internal/plugins/workflows/hooks/channel-icon';
122
+ /** Exact table/disclosure shared by visual chart summaries. */
123
+ export { ChartDataTable } from '../_internal/app/components/charts/chart-data-table';
124
+ export type { ChartDataTableProps, ChartDatum, ChartSeries } from '../_internal/app/components/charts/chart-data-table';
125
+ /** Multi-series SVG line chart with keyboard-equivalent marks. */
126
+ export { LineChart } from '../_internal/app/components/charts/line-chart';
127
+ export type { LineChartProps } from '../_internal/app/components/charts/line-chart';
128
+ /** Grouped or stacked SVG bar chart with keyboard-equivalent marks. */
129
+ export { BarChart } from '../_internal/app/components/charts/bar-chart';
130
+ export type { BarChartProps } from '../_internal/app/components/charts/bar-chart';
131
+ /** Stacked column chart with legend toggle + per-column pointer/keyboard breakdown. */
132
+ export { StackedColumnChart } from '../_internal/app/components/charts/stacked-column-chart';
133
+ export type { StackedColumnChartProps, StackedColumnDatum } from '../_internal/app/components/charts/stacked-column-chart';
134
+ /** Tiny inline SVG trend line for embedding beside a stat. */
135
+ export { Sparkline } from '../_internal/app/components/charts/sparkline';
136
+ export type { SparklineProps } from '../_internal/app/components/charts/sparkline';
137
+ /** One-line "what am I looking at / when to worry" chart footer. */
138
+ export { ChartExplainer } from '../_internal/app/components/charts/chart-explainer';
139
+ /** CVD-validated series palette + deterministic entity→color assignment. */
140
+ export { CHART_SERIES_COLORS, CHART_OTHER_COLOR, CHART_MAX_SERIES, assignSeriesColors } from '../_internal/app/components/charts/palette';