@makinbakin/sdk 0.0.1-rc.2 → 0.0.1-rc.20

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.
Files changed (42) hide show
  1. package/README.md +1 -0
  2. package/_internal/app/components/agent-select.d.ts +7 -2
  3. package/_internal/app/components/confirm-dialog.d.ts +33 -0
  4. package/_internal/app/components/empty-state.d.ts +14 -5
  5. package/_internal/app/components/ui/badge.d.ts +1 -1
  6. package/_internal/app/components/ui/button.d.ts +1 -1
  7. package/_internal/app/hooks/use-content-store.d.ts +0 -9
  8. package/_internal/app/hooks/use-horizontal-resize.d.ts +22 -0
  9. package/_internal/app/hooks/use-json-fetch.d.ts +21 -0
  10. package/_internal/app/hooks/use-nav-badge.d.ts +13 -0
  11. package/_internal/app/hooks/use-plugin-event.d.ts +19 -0
  12. package/_internal/app/hooks/use-resizable-pane.d.ts +35 -0
  13. package/_internal/app/hooks/use-schedule.d.ts +2 -1
  14. package/_internal/app/hooks/use-task-run-history.d.ts +26 -0
  15. package/_internal/app/hooks/use-vertical-resize.d.ts +6 -7
  16. package/_internal/app/types/index.d.ts +1 -105
  17. package/_internal/core/adapters/runtime/concepts.d.ts +141 -67
  18. package/_internal/core/adapters/runtime/errors.d.ts +86 -0
  19. package/_internal/core/adapters/runtime/index.d.ts +3 -1
  20. package/_internal/core/content-dir.d.ts +1 -0
  21. package/_internal/core/format.d.ts +9 -0
  22. package/_internal/core/plugin-types.d.ts +124 -470
  23. package/_internal/plugins/models/hooks/use-available-models.d.ts +5 -0
  24. package/_internal/plugins/team/types.d.ts +14 -4
  25. package/components/index.d.ts +40 -2
  26. package/components/index.js +15897 -1678
  27. package/hooks/index.d.ts +69 -8
  28. package/hooks/index.js +14589 -369
  29. package/index.d.ts +64 -2
  30. package/index.js +228 -7
  31. package/metadata/index.d.ts +14 -1
  32. package/package.json +1 -1
  33. package/register.d.ts +45 -9
  34. package/routing/index.d.ts +6 -1
  35. package/routing/index.js +13 -1
  36. package/slots/index.d.ts +16 -24
  37. package/slots/index.js +196 -30
  38. package/types/index.d.ts +15 -919
  39. package/ui/index.js +2 -1
  40. package/utils/index.d.ts +40 -3
  41. package/utils/index.js +57 -0
  42. package/_internal/app/hooks/use-assets.d.ts +0 -25
@@ -66,13 +66,14 @@ export interface SkillSummary {
66
66
  * the server-side `AgentStateInfo` shape but stays self-contained so the
67
67
  * client doesn't reach across the package boundary for types.
68
68
  *
69
- * The server today returns 4 states (`absent | unmanaged | adopted | managed`).
70
- * `drifted` and `update-available` are declared on the badge component for
71
- * forward-compat — wiring handles them but the API doesn't yet emit them.
69
+ * The server today returns 3 states (`absent | unmanaged | managed`).
70
+ * `drifted` and `update-available` are display states layered on top of the
71
+ * server row when diagnostics or update checks report additional status.
72
72
  */
73
73
  export interface PackageStateRow {
74
74
  agentId: string;
75
- state: 'absent' | 'unmanaged' | 'adopted' | 'managed' | 'drifted' | 'update-available';
75
+ state: 'absent' | 'unmanaged' | 'managed' | 'drifted' | 'update-available';
76
+ version?: string;
76
77
  packageId?: string;
77
78
  entry?: {
78
79
  source: string;
@@ -82,6 +83,15 @@ export interface PackageStateRow {
82
83
  version?: string;
83
84
  dependencies?: string[];
84
85
  };
86
+ updateStatus?: {
87
+ currentVersion: string;
88
+ latestVersion: string | null;
89
+ currentCommitSha: string;
90
+ latestCommitSha: string | null;
91
+ upgradeAvailable: boolean;
92
+ checkedAt: string;
93
+ error?: string;
94
+ };
85
95
  }
86
96
  /**
87
97
  * Single message from a runtime session JSONL. Used by the Active Context
@@ -6,29 +6,67 @@
6
6
  * not include layout chrome (sidebar, header, toaster) — those are Bakin's
7
7
  * shell, not plugin-author territory.
8
8
  */
9
+ /** Round avatar image for an agent, falls back to initials. */
9
10
  export { AgentAvatar } from '../_internal/app/components/agent-avatar';
11
+ /** Multi-select facet filter scoped to agents. */
10
12
  export { AgentFilter } from '../_internal/app/components/agent-filter';
13
+ /** Single-agent picker dropdown for form fields. */
11
14
  export { AgentSelect } from '../_internal/app/components/agent-select';
12
- export { AgentDot, AgentStatus } from '../_internal/app/components/agent-status';
15
+ /** Small status dot showing an agent's online/offline state. */
16
+ export { AgentDot } from '../_internal/app/components/agent-status';
17
+ /** Compound agent status (dot + label + last-seen timestamp). */
18
+ export { AgentStatus } from '../_internal/app/components/agent-status';
19
+ /** Right-side slide-out drawer with backdrop and focus trap. */
13
20
  export { BakinDrawer } from '../_internal/app/components/bakin-drawer';
21
+ /** Color picker swatch grid for tag/agent color assignment. */
14
22
  export { ColorPicker } from '../_internal/app/components/color-picker';
23
+ /** Controlled confirmation dialog for destructive actions (busy/error aware). */
24
+ export { ConfirmDialog } from '../_internal/app/components/confirm-dialog';
25
+ export type { ConfirmDialogProps } from '../_internal/app/components/confirm-dialog';
26
+ /** Centered empty-state component with icon, title, and CTA. */
15
27
  export { EmptyState } from '../_internal/app/components/empty-state';
28
+ /** Inline error banner with dismiss + retry actions. */
16
29
  export { ErrorBanner } from '../_internal/app/components/error-banner';
30
+ /** Full-page error state with title, description, and retry button. */
17
31
  export { ErrorState } from '../_internal/app/components/error-state';
32
+ /** Popover multi-select facet filter (column, owner, tag, etc.). */
18
33
  export { FacetFilter } from '../_internal/app/components/facet-filter';
19
34
  export type { FacetOption } from '../_internal/app/components/facet-filter';
35
+ /** Chat + plan-proposal review panel for brainstorm sessions. */
20
36
  export { IntegratedBrainstorm } from '../_internal/app/components/integrated-brainstorm';
21
37
  export type { BrainstormMessage, IntegratedBrainstormProps, BrainstormOnSend, SendContext, AssistantTransformed, BrainstormActivityInput, BrainstormActivityStorageInput, BrainstormActivityStorageRecord, BrainstormTimelineActivityInput, BrainstormTimelineMessageInput, } from '../_internal/app/components/integrated-brainstorm';
22
- export { brainstormActivityMessageFromCustom, brainstormThreadId, normalizeBrainstormActivityForStorage, normalizeBrainstormActivityMessageForStorage, readBrainstormSseResponse, runtimeChunkToBrainstormActivity, toBrainstormTimeline, } from '../_internal/app/components/integrated-brainstorm';
38
+ /** Convert a custom activity message back into a brainstorm activity. */
39
+ export { brainstormActivityMessageFromCustom } from '../_internal/app/components/integrated-brainstorm';
40
+ /** Compute the canonical thread ID for a brainstorm session. */
41
+ export { brainstormThreadId } from '../_internal/app/components/integrated-brainstorm';
42
+ /** Normalize a brainstorm activity payload for persistence. */
43
+ export { normalizeBrainstormActivityForStorage } from '../_internal/app/components/integrated-brainstorm';
44
+ /** Normalize a single brainstorm message for persistence. */
45
+ export { normalizeBrainstormActivityMessageForStorage } from '../_internal/app/components/integrated-brainstorm';
46
+ /** Read an SSE response stream into brainstorm activity events. */
47
+ export { readBrainstormSseResponse } from '../_internal/app/components/integrated-brainstorm';
48
+ /** Convert a runtime chat chunk to a brainstorm activity event. */
49
+ export { runtimeChunkToBrainstormActivity } from '../_internal/app/components/integrated-brainstorm';
50
+ /** Fold a brainstorm session's events into a renderable timeline. */
51
+ export { toBrainstormTimeline } from '../_internal/app/components/integrated-brainstorm';
52
+ /** Render markdown content with syntax highlighting and link handling. */
23
53
  export { MarkdownContent } from '../_internal/app/components/markdown-content';
54
+ /** Editable markdown text area with preview toggle. */
24
55
  export { MarkdownEditor } from '../_internal/app/components/markdown-editor';
56
+ /** Model picker dropdown listing available models from the catalog. */
25
57
  export { ModelSelect } from '../_internal/app/components/model-select';
58
+ /** Standard plugin page wrapper with header, content area, and toaster. */
26
59
  export { PageLayout } from '../_internal/app/components/page-layout';
60
+ /** Plugin page header with title, count badge, search, and action buttons. */
27
61
  export { PluginHeader } from '../_internal/app/components/plugin-header';
62
+ /** Render a settings form from a PluginSettingsSchema definition. */
28
63
  export { PluginSettingsRenderer } from '../_internal/app/components/plugin-settings-renderer';
29
64
  export type { PluginSettingsSchema } from '../_internal/app/components/plugin-settings-renderer';
65
+ /** Sortable table column header with ascending/descending indicator. */
30
66
  export { SortableHead } from '../_internal/app/components/sortable-head';
31
67
  export type { SortDir } from '../_internal/app/components/sortable-head';
68
+ /** Tab list with animated underline indicator. */
32
69
  export { UnderlineTabs } from '../_internal/app/components/underline-tabs';
33
70
  export type { UnderlineTab } from '../_internal/app/components/underline-tabs';
71
+ /** Icon component for a notification channel (Discord, Slack, email, etc.). */
34
72
  export { ChannelIcon } from '../_internal/plugins/workflows/hooks/channel-icon';