@makinbakin/sdk 0.0.1-rc.2 → 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/README.md +1 -0
- package/_internal/app/components/agent-select.d.ts +16 -2
- 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 +54 -0
- 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 +18 -6
- 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/badge.d.ts +1 -1
- 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-available-models.d.ts +5 -0
- package/_internal/app/hooks/use-content-store.d.ts +0 -9
- 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-horizontal-resize.d.ts +22 -0
- package/_internal/app/hooks/use-json-fetch.d.ts +26 -0
- package/_internal/app/hooks/use-nav-badge.d.ts +13 -0
- package/_internal/app/hooks/use-plugin-event.d.ts +19 -0
- package/_internal/app/hooks/use-query-state.d.ts +2 -0
- package/_internal/app/hooks/use-resizable-pane.d.ts +35 -0
- package/_internal/app/hooks/use-schedule.d.ts +47 -1
- package/_internal/app/hooks/use-search.d.ts +27 -8
- package/_internal/app/hooks/use-task-run-history.d.ts +26 -0
- package/_internal/app/hooks/use-toast.d.ts +3 -3
- package/_internal/app/hooks/use-vertical-resize.d.ts +6 -7
- package/_internal/app/lib/browser-notify.d.ts +12 -1
- package/_internal/app/types/index.d.ts +1 -105
- package/_internal/core/adapters/runtime/concepts.d.ts +671 -99
- package/_internal/core/adapters/runtime/errors.d.ts +98 -0
- package/_internal/core/adapters/runtime/helpers.d.ts +19 -0
- package/_internal/core/adapters/runtime/index.d.ts +7 -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 +9 -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 +13 -0
- 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 +216 -499
- 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 +61 -4
- package/_internal/plugins/workflows/hooks/use-notification-channels.d.ts +1 -1
- package/components/index.d.ts +111 -5
- package/components/index.js +61815 -30060
- package/hooks/index.d.ts +90 -9
- package/hooks/index.js +15181 -685
- package/hooks/router.d.ts +20 -4
- package/index.d.ts +20 -3
- package/index.js +297 -259
- package/internal/index.d.ts +70 -0
- package/internal/index.js +409 -0
- package/metadata/index.d.ts +14 -1
- package/package.json +9 -2
- package/register.d.ts +63 -9
- package/routing/index.d.ts +6 -1
- package/routing/index.js +187 -147
- package/slots/index.d.ts +16 -24
- package/slots/index.js +215 -30
- package/testing/index.d.ts +122 -0
- package/testing/index.js +21874 -0
- package/types/index.d.ts +19 -919
- package/types/index.js +16 -0
- package/ui/index.js +2 -1
- package/utils/index.d.ts +46 -6
- package/utils/index.js +322 -249
- 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/app/hooks/use-assets.d.ts +0 -25
package/hooks/router.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* `{ scroll?: boolean }` maps to TanStack's `resetScroll` (PR3 3.3):
|
|
3
|
+
* `push` scrolls to top unless `scroll: false`; `replace` is a state tweak
|
|
4
|
+
* (filters, drawers) and always keeps the scroll position.
|
|
5
5
|
*/
|
|
6
6
|
interface Router {
|
|
7
|
-
push: (url: string,
|
|
7
|
+
push: (url: string, opts?: {
|
|
8
8
|
scroll?: boolean;
|
|
9
9
|
}) => void;
|
|
10
10
|
replace: (url: string, _opts?: {
|
|
@@ -16,6 +16,22 @@ interface Router {
|
|
|
16
16
|
/** No-op — TanStack prefetches on intent via `defaultPreload`. */
|
|
17
17
|
prefetch: (_url: string) => void;
|
|
18
18
|
}
|
|
19
|
+
interface StringNavigationOptions {
|
|
20
|
+
to: string;
|
|
21
|
+
search: Record<string, string>;
|
|
22
|
+
hash: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Split a browser-style app URL into TanStack's pathname/search/hash fields.
|
|
26
|
+
* Passing the whole string as `to` makes typed dynamic routes discard their
|
|
27
|
+
* query string, so the shared string router must preserve those fields
|
|
28
|
+
* explicitly.
|
|
29
|
+
*
|
|
30
|
+
* Values pass through as RAW STRINGS — the host router uses plain-string
|
|
31
|
+
* serializers (packages/host/src/lib/search-params.ts), so nothing here
|
|
32
|
+
* needs to counteract JSON quoting, and "123"-shaped ids never coerce.
|
|
33
|
+
*/
|
|
34
|
+
export declare function toNavigationOptions(url: string): StringNavigationOptions;
|
|
19
35
|
/**
|
|
20
36
|
* `useRouter()` over TanStack Router. Accepts plain URL strings and
|
|
21
37
|
* bypasses TanStack's typed-path safety on purpose — plugin authors
|
package/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
* hooks, and components stay on sub-paths (`/ui`, `/hooks`, `/components`,
|
|
8
8
|
* `/slots`) to keep the top-level namespace from exploding.
|
|
9
9
|
*
|
|
10
|
+
* This entry is AUTHOR API ONLY. The host shell's registry/lazy-loading
|
|
11
|
+
* plumbing lives on `@makinbakin/sdk/internal` and is not a public contract.
|
|
12
|
+
*
|
|
10
13
|
* Sub-paths:
|
|
11
14
|
* - `@makinbakin/sdk/ui` — shadcn UI primitives (Button, Card, Dialog, ...)
|
|
12
15
|
* - `@makinbakin/sdk/hooks` — React hooks (useAgent, useSSE, useSearch, ...)
|
|
@@ -14,14 +17,28 @@
|
|
|
14
17
|
* - `@makinbakin/sdk/slots` — Slot + registerSlot primitive
|
|
15
18
|
* - `@makinbakin/sdk/types` — full type re-exports
|
|
16
19
|
* - `@makinbakin/sdk/metadata` — docs-aware contract helpers
|
|
20
|
+
* - `@makinbakin/sdk/testing` — plugin test harness (createTestContext, ...)
|
|
17
21
|
*
|
|
18
22
|
* Plugin authors: at build time, mark `@makinbakin/sdk`, `@makinbakin/sdk/*`, and
|
|
19
23
|
* `react`/`react-dom` as externals. At runtime the browser's import map
|
|
20
24
|
* (emitted by Bakin) resolves those to the host's bundled copies so there
|
|
21
25
|
* is a single React instance and a single SDK.
|
|
22
26
|
*/
|
|
27
|
+
/** Re-exports every plugin contract type. See `@makinbakin/sdk/types` for the full list. */
|
|
23
28
|
export * from './types/index';
|
|
24
|
-
|
|
25
|
-
export
|
|
26
|
-
|
|
29
|
+
/** Register a plugin (single-call entry from a plugin's `client.tsx`). */
|
|
30
|
+
export { registerPlugin } from './register';
|
|
31
|
+
/** Register a cleanup callback fired when the plugin is unregistered. */
|
|
32
|
+
export { registerPluginCleanup } from './register';
|
|
33
|
+
/** Set or clear a runtime badge on a plugin-owned nav item. */
|
|
34
|
+
export { setNavBadge } from './register';
|
|
35
|
+
/** Read the current badge for a nav item, or undefined if none. */
|
|
36
|
+
export { getNavBadge } from './register';
|
|
37
|
+
export type { NavItem, PluginRegistration } from './register';
|
|
38
|
+
/** Define a plugin HTTP route with typed input/output schemas. */
|
|
39
|
+
export { defineRoute } from './routing/index';
|
|
40
|
+
/** Define a core (non-plugin) HTTP route. */
|
|
41
|
+
export { defineCoreRoute } from './routing/index';
|
|
42
|
+
/** Compose a plugin's routes into a single definition for the server. */
|
|
43
|
+
export { definePlugin } from './routing/index';
|
|
27
44
|
export type { APIRoute, HttpStatus, RouteContext, PluginContextLite, CoreContext, BodySpec, ResponseSpec, ParsedInput, } from './routing/index';
|