@makinbakin/sdk 0.0.0-bootstrap.0 → 0.0.1-rc.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/README.md +21 -10
- package/_internal/app/components/agent-select.d.ts +7 -2
- package/_internal/app/components/integrated-brainstorm/activity.d.ts +23 -0
- package/_internal/app/components/integrated-brainstorm/index.d.ts +6 -1
- package/_internal/app/components/integrated-brainstorm/session.d.ts +16 -0
- package/_internal/app/components/integrated-brainstorm/sse.d.ts +8 -0
- package/_internal/app/components/integrated-brainstorm/types.d.ts +7 -5
- package/_internal/app/components/ui/badge.d.ts +1 -1
- package/_internal/app/components/ui/button.d.ts +1 -1
- package/_internal/app/hooks/use-content-store.d.ts +2 -0
- package/_internal/app/hooks/use-nav-badge.d.ts +13 -0
- package/_internal/app/types/index.d.ts +0 -42
- package/_internal/core/adapters/runtime/concepts.d.ts +119 -2
- package/_internal/core/adapters/runtime/index.d.ts +1 -1
- package/_internal/core/constants.d.ts +15 -0
- package/_internal/core/content-dir.d.ts +42 -0
- package/_internal/core/generated-version.d.ts +1 -0
- package/_internal/core/logger.d.ts +8 -0
- package/_internal/core/plugin-types.d.ts +168 -37
- package/_internal/core/routing/index.d.ts +1 -1
- package/_internal/plugins/team/types.d.ts +12 -2
- package/components/index.d.ts +39 -3
- package/components/index.js +16257 -1550
- package/hooks/index.d.ts +58 -9
- package/hooks/index.js +14414 -413
- package/index.d.ts +43 -10
- package/index.js +400 -1
- package/metadata/index.d.ts +16 -3
- package/package.json +2 -2
- package/register.d.ts +20 -9
- package/routing/index.d.ts +8 -3
- package/routing/index.js +327 -0
- package/slots/index.d.ts +1 -1
- package/slots/index.js +20 -1
- package/types/index.d.ts +431 -50
- package/ui/index.d.ts +2 -2
- package/ui/index.js +2 -1
- package/utils/index.d.ts +24 -2
- package/utils/index.js +269 -1
- package/_internal/app/hooks/use-assets.d.ts +0 -25
package/hooks/index.d.ts
CHANGED
|
@@ -1,25 +1,74 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@
|
|
2
|
+
* `@makinbakin/sdk/hooks` — React hooks plugin authors can use.
|
|
3
3
|
*
|
|
4
4
|
* Three groups, all re-exports so plugins have one import path:
|
|
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
8
|
*/
|
|
9
|
-
|
|
9
|
+
/** Access the global Zustand store for SSE-driven content state. */
|
|
10
10
|
export { useContentStore } from '../_internal/app/hooks/use-content-store';
|
|
11
|
+
/** Sync a nav item's badge to a derived value; the recommended provider glue. */
|
|
12
|
+
export { useNavBadge } from '../_internal/app/hooks/use-nav-badge';
|
|
13
|
+
/** Read/toggle the global debug (X-Ray) flag. */
|
|
11
14
|
export { useDebug } from '../_internal/app/hooks/use-debug';
|
|
15
|
+
/** Guard a form against unmounting while submission is in flight. */
|
|
12
16
|
export { useFormGuard } from '../_internal/app/hooks/use-form-guard';
|
|
17
|
+
/** Subscribe to runtime connection status (online/offline, last heartbeat). */
|
|
13
18
|
export { useRuntimeStatus } from '../_internal/app/hooks/use-runtime-status';
|
|
14
|
-
|
|
15
|
-
export {
|
|
19
|
+
/** Bind a single component-state value to a URL query param. */
|
|
20
|
+
export { useQueryState } from '../_internal/app/hooks/use-query-state';
|
|
21
|
+
/** Bind a multi-value (array) component state to a URL query param. */
|
|
22
|
+
export { useQueryArrayState } from '../_internal/app/hooks/use-query-state';
|
|
23
|
+
/** List scheduled jobs with live updates. */
|
|
24
|
+
export { useScheduleJobs } from '../_internal/app/hooks/use-schedule';
|
|
25
|
+
/** Fetch run history for a scheduled job. */
|
|
26
|
+
export { useRunHistory } from '../_internal/app/hooks/use-schedule';
|
|
16
27
|
export type { ScheduleJob, RunEntry } from '../_internal/app/hooks/use-schedule';
|
|
17
|
-
|
|
28
|
+
/** Hybrid full-text + semantic search across plugins with facet filtering. */
|
|
29
|
+
export { useSearch } from '../_internal/app/hooks/use-search';
|
|
30
|
+
/** Re-rank a local list to match the order returned by a search query. */
|
|
31
|
+
export { reorderBySearchResults } from '../_internal/app/hooks/use-search';
|
|
18
32
|
export type { SearchResult, SearchResponse, UseSearchOptions, UseSearchReturn } from '../_internal/app/hooks/use-search';
|
|
33
|
+
/** Read sidebar open/closed state and toggle helper. */
|
|
19
34
|
export { useSidebar } from '../_internal/app/hooks/use-sidebar';
|
|
35
|
+
/** Subscribe to a Server-Sent Events endpoint with auto-reconnect. */
|
|
20
36
|
export { useSSE } from '../_internal/app/hooks/use-sse';
|
|
21
|
-
|
|
37
|
+
/** Fire a toast notification (success/error/info). */
|
|
38
|
+
export { toast } from '../_internal/app/hooks/use-toast';
|
|
39
|
+
/** Subscribe to the toast store for custom toast UIs. */
|
|
40
|
+
export { useToastStore } from '../_internal/app/hooks/use-toast';
|
|
41
|
+
/** Imperatively resize a vertical pane via mouse drag handle. */
|
|
22
42
|
export { useVerticalResize } from '../_internal/app/hooks/use-vertical-resize';
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
|
|
43
|
+
/** Access the agent registry store (Zustand). */
|
|
44
|
+
export { useAgentStore } from '../_internal/plugins/team/hooks/use-agent-store';
|
|
45
|
+
/** Look up a single agent by ID. */
|
|
46
|
+
export { useAgent } from '../_internal/plugins/team/hooks/use-agent-store';
|
|
47
|
+
/** List all registered agents. */
|
|
48
|
+
export { useAgentList } from '../_internal/plugins/team/hooks/use-agent-store';
|
|
49
|
+
/** Get an agent's brand color (hex string). */
|
|
50
|
+
export { useAgentColor } from '../_internal/plugins/team/hooks/use-agent-store';
|
|
51
|
+
/** Get an agent's display name (fallback to ID). */
|
|
52
|
+
export { useAgentDisplayName } from '../_internal/plugins/team/hooks/use-agent-store';
|
|
53
|
+
/** List all registered agent IDs. */
|
|
54
|
+
export { useAgentIds } from '../_internal/plugins/team/hooks/use-agent-store';
|
|
55
|
+
/** Get the ID of the designated main/orchestrator agent. */
|
|
56
|
+
export { useMainAgentId } from '../_internal/plugins/team/hooks/use-agent-store';
|
|
57
|
+
/** Read agent-package install state (managed/adopted/unmanaged). */
|
|
58
|
+
export { usePackageState } from '../_internal/plugins/team/hooks/use-agent-store';
|
|
59
|
+
/** Convert a hex color to a muted variant for backgrounds. */
|
|
60
|
+
export { hexToMuted } from '../_internal/plugins/team/hooks/use-agent-store';
|
|
61
|
+
/** List configured notification channels (Discord, Slack, email, etc.). */
|
|
62
|
+
export { useNotificationChannels } from '../_internal/plugins/workflows/hooks/use-notification-channels';
|
|
63
|
+
/** Get a human-readable label for a channel ID. */
|
|
64
|
+
export { getChannelLabel } from '../_internal/plugins/workflows/hooks/use-notification-channels';
|
|
65
|
+
/** Get initials for a channel (e.g. "Discord" → "D"). */
|
|
66
|
+
export { getChannelInitials } from '../_internal/plugins/workflows/hooks/use-notification-channels';
|
|
67
|
+
/** Access the TanStack Router instance for imperative navigation. */
|
|
68
|
+
export { useRouter } from './router';
|
|
69
|
+
/** Current URL pathname (Next.js-shape compatible). */
|
|
70
|
+
export { usePathname } from './router';
|
|
71
|
+
/** Current URL search params as a URLSearchParams instance. */
|
|
72
|
+
export { useSearchParams } from './router';
|
|
73
|
+
/** Current route's typed path parameters. */
|
|
74
|
+
export { useParams } from './router';
|