@makinbakin/sdk 0.0.0-bootstrap.0 → 0.1.0-rc.7
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/core/routing/index.d.ts +1 -1
- package/components/index.d.ts +1 -1
- package/hooks/index.d.ts +1 -1
- package/index.d.ts +8 -8
- package/metadata/index.d.ts +2 -2
- package/package.json +1 -1
- package/routing/index.d.ts +2 -2
- package/slots/index.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/ui/index.d.ts +2 -2
- package/utils/index.d.ts +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* `@bakin/core/routing` — typed route contracts.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the route types and authoring helpers used by both the host and
|
|
5
|
-
* plugin authors (via `@
|
|
5
|
+
* plugin authors (via `@makinbakin/sdk/routing`).
|
|
6
6
|
*/
|
|
7
7
|
export type { HttpMethod, HttpStatus, RouteContext, PluginContextLite, CoreContext, JsonBodySpec, MultipartBodySpec, RawBodySpec, NoBodySpec, BodySpec, JsonResponseSpec, NoContentResponseSpec, NonJsonResponseSpec, ResponseSpec, ParsedInput, APIRoute, PluginWithRoutes, } from './types';
|
|
8
8
|
export { defineRoute, defineCoreRoute, definePlugin } from './define';
|
package/components/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@
|
|
2
|
+
* `@makinbakin/sdk/components` — shared layout + compound components.
|
|
3
3
|
*
|
|
4
4
|
* Plugin-author-visible components that wrap shadcn primitives with Bakin-
|
|
5
5
|
* specific behavior (headers, filters, markdown, agent displays, etc.). Does
|
package/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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.)
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@
|
|
2
|
+
* `@makinbakin/sdk` — plugin author SDK.
|
|
3
3
|
*
|
|
4
4
|
* The main entry re-exports types + the single-call `registerPlugin` helper
|
|
5
5
|
* so plugin authors can write `import { registerPlugin } from '@makinbakin/sdk'`
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
* `/slots`) to keep the top-level namespace from exploding.
|
|
9
9
|
*
|
|
10
10
|
* Sub-paths:
|
|
11
|
-
* - `@
|
|
12
|
-
* - `@
|
|
13
|
-
* - `@
|
|
14
|
-
* - `@
|
|
15
|
-
* - `@
|
|
16
|
-
* - `@
|
|
11
|
+
* - `@makinbakin/sdk/ui` — shadcn UI primitives (Button, Card, Dialog, ...)
|
|
12
|
+
* - `@makinbakin/sdk/hooks` — React hooks (useAgent, useSSE, useSearch, ...)
|
|
13
|
+
* - `@makinbakin/sdk/components` — shared components (PluginHeader, FacetFilter, ...)
|
|
14
|
+
* - `@makinbakin/sdk/slots` — Slot + registerSlot primitive
|
|
15
|
+
* - `@makinbakin/sdk/types` — full type re-exports
|
|
16
|
+
* - `@makinbakin/sdk/metadata` — docs-aware contract helpers
|
|
17
17
|
*
|
|
18
|
-
* Plugin authors: at build time, mark `@
|
|
18
|
+
* Plugin authors: at build time, mark `@makinbakin/sdk`, `@makinbakin/sdk/*`, and
|
|
19
19
|
* `react`/`react-dom` as externals. At runtime the browser's import map
|
|
20
20
|
* (emitted by Bakin) resolves those to the host's bundled copies so there
|
|
21
21
|
* is a single React instance and a single SDK.
|
package/metadata/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@
|
|
2
|
+
* `@makinbakin/sdk/metadata` — docs-aware contract helpers.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the canonical `RouteContract`, `CliCommandContract`,
|
|
5
5
|
* `HookContract`, `SlotContract`, `ExecToolContract`, and the corresponding
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* `defineApiRoute` / `definePluginRoute` are kept as re-exports for backward
|
|
12
12
|
* compatibility with existing call sites; new code should use `defineRoute`
|
|
13
|
-
* from `@
|
|
13
|
+
* from `@makinbakin/sdk/routing` (the typed declarative shape).
|
|
14
14
|
*/
|
|
15
15
|
export type { ContractMetadata, ContractStability, ContractVisibility, CliCommandContract, DocsAwareAPIRoute, DocsExample, ExecToolContract, HookContract, HookKind, PublicContract, RouteContract, SchemaLike, SlotContract, SourceLocation, } from '../_internal/core/docs';
|
|
16
16
|
export { defineApiRoute, defineCliCommandContract, defineExecToolContract, defineHookContract, definePluginRoute, defineRouteContract, defineSlotContract, } from '../_internal/core/docs';
|
package/package.json
CHANGED
package/routing/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@
|
|
2
|
+
* `@makinbakin/sdk/routing` — typed route contracts for plugin authors.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports from `@bakin/core/routing` for a single source of truth. The
|
|
5
|
-
* SDK's general type module (`@
|
|
5
|
+
* SDK's general type module (`@makinbakin/sdk/types`) keeps duplicated primitives
|
|
6
6
|
* for self-containment, but the routing surface re-exports because keeping
|
|
7
7
|
* two parallel `APIRoute<...>` definitions in sync is a debt we are
|
|
8
8
|
* deliberately avoiding.
|
package/slots/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@
|
|
2
|
+
* `@makinbakin/sdk/slots` — client-side slot registry + `<Slot>` primitive.
|
|
3
3
|
*
|
|
4
4
|
* The slot system lets a plugin render components contributed by other
|
|
5
5
|
* plugins at a named extension point. Today it's used for:
|
package/types/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Public Bakin plugin contract types.
|
|
3
3
|
*
|
|
4
4
|
* This module is intentionally self-contained. External plugins must be able
|
|
5
|
-
* to typecheck against `@
|
|
5
|
+
* to typecheck against `@makinbakin/sdk/types` without resolving `@bakin/core`,
|
|
6
6
|
* Bakin source aliases, adapter packages, or another plugin's internals.
|
|
7
7
|
*/
|
|
8
8
|
import type { ComponentType } from 'react';
|
package/ui/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@
|
|
2
|
+
* `@makinbakin/sdk/ui` — shadcn base UI primitives for plugin authors.
|
|
3
3
|
*
|
|
4
4
|
* These are re-exports from Bakin's `src/components/ui/*`. At Bakin build time
|
|
5
5
|
* they resolve to source. At plugin build time (Phase 3) the plugin author
|
|
6
|
-
* marks `@
|
|
6
|
+
* marks `@makinbakin/sdk` and `@makinbakin/sdk/ui` as externals so the plugin bundle
|
|
7
7
|
* doesn't duplicate these. At runtime the browser's import map resolves the
|
|
8
8
|
* externals to Bakin's bundled copy.
|
|
9
9
|
*/
|
package/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@
|
|
2
|
+
* `@makinbakin/sdk/utils` — tiny utilities for plugin authors.
|
|
3
3
|
*
|
|
4
4
|
* `cn(...)` is the Tailwind class merger every shadcn-flavored component
|
|
5
5
|
* needs. The `format*` helpers are re-exported from `@bakin/core/format`
|