@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.
@@ -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 `@bakin/sdk/routing`).
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';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * `@bakin/sdk/components` — shared layout + compound components.
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
- * `@bakin/sdk/hooks` — React hooks plugin authors can use.
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
- * `@bakin/sdk` — plugin author SDK.
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
- * - `@bakin/sdk/ui` — shadcn UI primitives (Button, Card, Dialog, ...)
12
- * - `@bakin/sdk/hooks` — React hooks (useAgent, useSSE, useSearch, ...)
13
- * - `@bakin/sdk/components` — shared components (PluginHeader, FacetFilter, ...)
14
- * - `@bakin/sdk/slots` — Slot + registerSlot primitive
15
- * - `@bakin/sdk/types` — full type re-exports
16
- * - `@bakin/sdk/metadata` — docs-aware contract helpers
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 `@bakin/sdk`, `@bakin/sdk/*`, and
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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * `@bakin/sdk/metadata` — docs-aware contract helpers.
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 `@bakin/sdk/routing` (the typed declarative shape).
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makinbakin/sdk",
3
- "version": "0.0.0-bootstrap.0",
3
+ "version": "0.1.0-rc.7",
4
4
  "description": "SDK for building Bakin plugins — UI components, slot types, hooks, and the runtime registerPlugin helper.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1,8 +1,8 @@
1
1
  /**
2
- * `@bakin/sdk/routing` — typed route contracts for plugin authors.
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 (`@bakin/sdk/types`) keeps duplicated primitives
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
- * `@bakin/sdk/slots` — client-side slot registry + `<Slot>` primitive.
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 `@bakin/sdk/types` without resolving `@bakin/core`,
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
- * `@bakin/sdk/ui` — shadcn base UI primitives for plugin authors.
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 `@bakin/sdk` and `@bakin/sdk/ui` as externals so the plugin bundle
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
- * `@bakin/sdk/utils` — tiny utilities for plugin authors.
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`