@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.
- package/_internal/app/components/agent-select.d.ts +10 -1
- package/_internal/app/components/asset-picker.d.ts +25 -0
- package/_internal/app/components/charts/bar-chart.d.ts +16 -0
- package/_internal/app/components/charts/chart-data-table.d.ts +31 -0
- package/_internal/app/components/charts/chart-explainer.d.ts +9 -0
- package/_internal/app/components/charts/chart-tooltip.d.ts +8 -0
- package/_internal/app/components/charts/line-chart.d.ts +13 -0
- package/_internal/app/components/charts/palette.d.ts +24 -0
- package/_internal/app/components/charts/sparkline.d.ts +12 -0
- package/_internal/app/components/charts/stacked-column-chart.d.ts +40 -0
- package/_internal/app/components/confirm-dialog.d.ts +23 -2
- package/_internal/app/components/conversation/activity-group.d.ts +15 -0
- package/_internal/app/components/conversation/agent-turn.d.ts +36 -0
- package/_internal/app/components/conversation/attention.d.ts +56 -0
- package/_internal/app/components/conversation/composer.d.ts +35 -0
- package/_internal/app/components/conversation/conversation-empty-state.d.ts +8 -0
- package/_internal/app/components/conversation/conversation-panel.d.ts +33 -0
- package/_internal/app/components/conversation/conversation.d.ts +14 -0
- package/_internal/app/components/conversation/fold.d.ts +129 -0
- package/_internal/app/components/conversation/notification-sound.d.ts +8 -0
- package/_internal/app/components/conversation/relative-time.d.ts +8 -0
- package/_internal/app/components/conversation/reply-toast.d.ts +15 -0
- package/_internal/app/components/conversation/thread-id.d.ts +8 -0
- package/_internal/app/components/conversation/tool-call-drawer.d.ts +7 -0
- package/_internal/app/components/conversation/turn-recorder.d.ts +37 -0
- package/_internal/app/components/conversation/use-conversation-attention.d.ts +64 -0
- package/_internal/app/components/conversation/use-conversation-thread.d.ts +55 -0
- package/_internal/app/components/conversation/user-message.d.ts +11 -0
- package/_internal/app/components/danger-zone.d.ts +28 -0
- package/_internal/app/components/empty-state.d.ts +5 -2
- package/_internal/app/components/plugin-header.d.ts +4 -3
- package/_internal/app/components/save-bar.d.ts +32 -0
- package/_internal/app/components/score-overlay.d.ts +33 -0
- package/_internal/app/components/search-degraded-chip.d.ts +4 -0
- package/_internal/app/components/search-partial-chip.d.ts +13 -0
- package/_internal/app/components/search-unavailable.d.ts +12 -0
- package/_internal/app/components/section-card.d.ts +22 -0
- package/_internal/app/components/segmented-control.d.ts +28 -0
- package/_internal/app/components/stat-tile.d.ts +26 -0
- package/_internal/app/components/status-badge.d.ts +19 -0
- package/_internal/app/components/turn-output-view.d.ts +57 -0
- package/_internal/app/components/ui/button.d.ts +1 -1
- package/_internal/app/components/underline-tabs.d.ts +6 -2
- package/_internal/app/components/unsaved-changes-guard.d.ts +34 -0
- package/_internal/app/core/conversation-turns.d.ts +148 -0
- package/_internal/app/core/logger.d.ts +1 -0
- package/_internal/app/hooks/use-file-drop.d.ts +25 -0
- package/_internal/app/hooks/use-history-back.d.ts +1 -0
- package/_internal/app/hooks/use-json-fetch.d.ts +5 -0
- package/_internal/app/hooks/use-query-state.d.ts +2 -0
- package/_internal/app/hooks/use-schedule.d.ts +45 -0
- package/_internal/app/hooks/use-search.d.ts +27 -8
- package/_internal/app/hooks/use-toast.d.ts +3 -3
- package/_internal/app/lib/browser-notify.d.ts +12 -1
- package/_internal/core/adapters/runtime/concepts.d.ts +547 -49
- package/_internal/core/adapters/runtime/errors.d.ts +13 -1
- package/_internal/core/adapters/runtime/helpers.d.ts +19 -0
- package/_internal/core/adapters/runtime/index.d.ts +5 -2
- package/_internal/core/adapters/runtime/testing.d.ts +79 -0
- package/_internal/core/adapters/runtime/turn-activity.d.ts +23 -0
- package/_internal/core/adapters/shared.d.ts +122 -12
- package/_internal/core/content-dir.d.ts +8 -0
- package/_internal/core/docs/route.d.ts +1 -1
- package/_internal/core/format/structured.d.ts +44 -0
- package/_internal/core/format.d.ts +5 -1
- package/_internal/core/media/downscale.d.ts +18 -0
- package/_internal/core/media/sharp-loader.d.ts +36 -0
- package/_internal/core/plugin-types.d.ts +102 -39
- package/_internal/core/routing/define.d.ts +26 -3
- package/_internal/core/routing/dispatcher.d.ts +15 -6
- package/_internal/core/routing/index.d.ts +1 -1
- package/_internal/core/routing/types.d.ts +13 -70
- package/_internal/core/storage/atomic-write.d.ts +11 -0
- package/_internal/core/tasks/store.d.ts +129 -0
- package/_internal/core/tasks/testing.d.ts +2 -0
- package/_internal/{plugins/workflows/lib → core/workflows}/notification-channel-registry.d.ts +1 -1
- package/_internal/plugins/team/types.d.ts +47 -0
- package/_internal/plugins/workflows/hooks/use-notification-channels.d.ts +1 -1
- package/components/index.d.ts +87 -19
- package/components/index.js +32904 -15368
- package/hooks/index.d.ts +24 -4
- package/hooks/index.js +837 -561
- package/hooks/router.d.ts +20 -4
- package/index.d.ts +5 -50
- package/index.js +223 -406
- package/internal/index.d.ts +70 -0
- package/internal/index.js +409 -0
- package/package.json +9 -2
- package/register.d.ts +19 -1
- package/routing/index.js +175 -147
- package/slots/index.js +20 -1
- package/testing/index.d.ts +122 -0
- package/testing/index.js +21874 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +16 -0
- package/utils/index.d.ts +28 -25
- package/utils/index.js +279 -263
- package/_internal/app/components/integrated-brainstorm/activity.d.ts +0 -23
- package/_internal/app/components/integrated-brainstorm/collapsed-header.d.ts +0 -14
- package/_internal/app/components/integrated-brainstorm/empty-state.d.ts +0 -5
- package/_internal/app/components/integrated-brainstorm/index.d.ts +0 -8
- package/_internal/app/components/integrated-brainstorm/input-row.d.ts +0 -16
- package/_internal/app/components/integrated-brainstorm/message-list.d.ts +0 -8
- package/_internal/app/components/integrated-brainstorm/session.d.ts +0 -16
- package/_internal/app/components/integrated-brainstorm/sse.d.ts +0 -8
- package/_internal/app/components/integrated-brainstorm/thinking-indicator.d.ts +0 -19
- package/_internal/app/components/integrated-brainstorm/types.d.ts +0 -63
- package/_internal/app/components/integrated-brainstorm/use-auto-grow.d.ts +0 -6
- package/_internal/app/components/integrated-brainstorm/use-brainstorm-state.d.ts +0 -21
- /package/_internal/{plugins/models → app}/hooks/use-available-models.d.ts +0 -0
package/hooks/index.d.ts
CHANGED
|
@@ -5,6 +5,17 @@
|
|
|
5
5
|
* 1. Bakin-wide hooks from `src/hooks/*` (SSE, search, query-state, debug, etc.)
|
|
6
6
|
* 2. Cross-plugin hooks from `plugins/team/hooks/*` (agent data)
|
|
7
7
|
* 3. Cross-plugin hooks from `plugins/workflows/hooks/*` (notification channels)
|
|
8
|
+
*
|
|
9
|
+
* DELIBERATE ARRANGEMENT (audit P2 #5, decided 2026-07 in FW3): groups 2-3
|
|
10
|
+
* reach into plugin source on purpose. Each hook's wire contract (the
|
|
11
|
+
* `/api/plugins/<id>/...` routes it fetches) is owned by its plugin, so the
|
|
12
|
+
* implementation lives WITH that contract; the SDK re-export exists so
|
|
13
|
+
* external authors get one import surface. The npm publish build BUNDLES
|
|
14
|
+
* these sources into the package and `assertNoForbiddenImports`
|
|
15
|
+
* (scripts/build-sdk-package.ts) fails the release if any `@bakin/*`
|
|
16
|
+
* specifier survives — the published SDK is self-contained. Moving the
|
|
17
|
+
* implementations into the SDK would decouple them from the routes they
|
|
18
|
+
* call, which is the worse drift.
|
|
8
19
|
*/
|
|
9
20
|
/** Access the global Zustand store for SSE-driven content state. */
|
|
10
21
|
export { useContentStore } from '../_internal/app/hooks/use-content-store';
|
|
@@ -15,7 +26,7 @@ export { useDebug } from '../_internal/app/hooks/use-debug';
|
|
|
15
26
|
/** Guard a form against unmounting while submission is in flight. */
|
|
16
27
|
export { useFormGuard } from '../_internal/app/hooks/use-form-guard';
|
|
17
28
|
/** Cancellable JSON GET with a `{ data, loading, error, refresh }` lifecycle. */
|
|
18
|
-
export { useJsonFetch } from '../_internal/app/hooks/use-json-fetch';
|
|
29
|
+
export { useJsonFetch, usePluginJsonFetch } from '../_internal/app/hooks/use-json-fetch';
|
|
19
30
|
export type { UseJsonFetchResult } from '../_internal/app/hooks/use-json-fetch';
|
|
20
31
|
/** Subscribe to runtime connection status (online/offline, last heartbeat). */
|
|
21
32
|
export { useRuntimeStatus } from '../_internal/app/hooks/use-runtime-status';
|
|
@@ -27,12 +38,14 @@ export { useQueryArrayState } from '../_internal/app/hooks/use-query-state';
|
|
|
27
38
|
export { useScheduleJobs } from '../_internal/app/hooks/use-schedule';
|
|
28
39
|
/** Fetch run history for a scheduled job. */
|
|
29
40
|
export { useRunHistory } from '../_internal/app/hooks/use-schedule';
|
|
30
|
-
export
|
|
41
|
+
export { useOccurrences } from '../_internal/app/hooks/use-schedule';
|
|
42
|
+
export type { ScheduleJob, RunEntry, ScheduleOccurrence, ScheduledDomainEvent } from '../_internal/app/hooks/use-schedule';
|
|
31
43
|
/** Fetch dispatch run history for a task. */
|
|
32
44
|
export { useTaskRunHistory } from '../_internal/app/hooks/use-task-run-history';
|
|
33
45
|
export type { TaskOutcome, TaskRunEntry } from '../_internal/app/hooks/use-task-run-history';
|
|
34
46
|
/** Hybrid full-text + semantic search across plugins with facet filtering. */
|
|
35
47
|
export { useSearch } from '../_internal/app/hooks/use-search';
|
|
48
|
+
/** Query-path warm signal ('cold' | 'warming' | 'warm') for search-bar UI. */
|
|
36
49
|
/** Re-rank a local list to match the order returned by a search query. */
|
|
37
50
|
export { reorderBySearchResults } from '../_internal/app/hooks/use-search';
|
|
38
51
|
export type { SearchResult, SearchResponse, UseSearchOptions, UseSearchReturn } from '../_internal/app/hooks/use-search';
|
|
@@ -41,7 +54,12 @@ export { useSidebar } from '../_internal/app/hooks/use-sidebar';
|
|
|
41
54
|
/** Subscribe to a Server-Sent Events endpoint with auto-reconnect. */
|
|
42
55
|
export { useSSE } from '../_internal/app/hooks/use-sse';
|
|
43
56
|
/** Subscribe to a server-pushed plugin event over the shell's single connection. */
|
|
44
|
-
export { usePluginEvent, type PluginEventPayload } from '../_internal/app/hooks/use-plugin-event';
|
|
57
|
+
export { usePluginEvent, emitPluginEvent, type PluginEventPayload } from '../_internal/app/hooks/use-plugin-event';
|
|
58
|
+
/** Headless drag-drop file intake (drag-over state + handlers + accept filter) — style your own zone. */
|
|
59
|
+
export { useFileDrop } from '../_internal/app/hooks/use-file-drop';
|
|
60
|
+
export type { UseFileDropOptions, UseFileDropResult } from '../_internal/app/hooks/use-file-drop';
|
|
61
|
+
/** History-aware back for detail surfaces reachable from many places — real back() with a fallback route for cold deep-links. */
|
|
62
|
+
export { useHistoryBack } from '../_internal/app/hooks/use-history-back';
|
|
45
63
|
/** Fire a toast notification (success/error/info). */
|
|
46
64
|
export { toast } from '../_internal/app/hooks/use-toast';
|
|
47
65
|
/** Subscribe to the toast store for custom toast UIs. */
|
|
@@ -75,7 +93,7 @@ export { getChannelLabel } from '../_internal/plugins/workflows/hooks/use-notifi
|
|
|
75
93
|
/** Get initials for a channel (e.g. "Discord" → "D"). */
|
|
76
94
|
export { getChannelInitials } from '../_internal/plugins/workflows/hooks/use-notification-channels';
|
|
77
95
|
/** The available-models catalog (cached, read-only); empty until loaded. */
|
|
78
|
-
export { useAvailableModels } from '../_internal/
|
|
96
|
+
export { useAvailableModels } from '../_internal/app/hooks/use-available-models';
|
|
79
97
|
/** Access the TanStack Router instance for imperative navigation. */
|
|
80
98
|
export { useRouter } from './router';
|
|
81
99
|
/** Current URL pathname (Next.js-shape compatible). */
|
|
@@ -84,3 +102,5 @@ export { usePathname } from './router';
|
|
|
84
102
|
export { useSearchParams } from './router';
|
|
85
103
|
/** Current route's typed path parameters. */
|
|
86
104
|
export { useParams } from './router';
|
|
105
|
+
/** Split a browser-style URL string into TanStack navigate options (non-hook). */
|
|
106
|
+
export { toNavigationOptions } from './router';
|