@makinbakin/sdk 0.0.1-rc.20 → 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/_internal/app/components/agent-select.d.ts +10 -1
- 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 +23 -2
- 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 +5 -2
- 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/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-file-drop.d.ts +25 -0
- package/_internal/app/hooks/use-history-back.d.ts +1 -0
- package/_internal/app/hooks/use-json-fetch.d.ts +5 -0
- package/_internal/app/hooks/use-query-state.d.ts +2 -0
- package/_internal/app/hooks/use-schedule.d.ts +45 -0
- package/_internal/app/hooks/use-search.d.ts +27 -8
- package/_internal/app/hooks/use-toast.d.ts +3 -3
- package/_internal/app/lib/browser-notify.d.ts +12 -1
- package/_internal/core/adapters/runtime/concepts.d.ts +547 -49
- package/_internal/core/adapters/runtime/errors.d.ts +13 -1
- package/_internal/core/adapters/runtime/helpers.d.ts +19 -0
- package/_internal/core/adapters/runtime/index.d.ts +5 -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 +8 -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 +5 -1
- 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 +102 -39
- 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 +47 -0
- package/_internal/plugins/workflows/hooks/use-notification-channels.d.ts +1 -1
- package/components/index.d.ts +87 -19
- package/components/index.js +32904 -15368
- package/hooks/index.d.ts +24 -4
- package/hooks/index.js +837 -561
- package/hooks/router.d.ts +20 -4
- package/index.d.ts +5 -50
- package/index.js +223 -406
- package/internal/index.d.ts +70 -0
- package/internal/index.js +409 -0
- package/package.json +9 -2
- package/register.d.ts +19 -1
- package/routing/index.js +175 -147
- package/slots/index.js +20 -1
- package/testing/index.d.ts +122 -0
- package/testing/index.js +21874 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +16 -0
- package/utils/index.d.ts +28 -25
- package/utils/index.js +279 -263
- 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/{plugins/models → app}/hooks/use-available-models.d.ts +0 -0
package/types/index.d.ts
CHANGED
|
@@ -18,5 +18,9 @@ export * from './primitives/index';
|
|
|
18
18
|
export * from './manifest/index';
|
|
19
19
|
export * from './runtime/index';
|
|
20
20
|
export * from './services/index';
|
|
21
|
+
export * from './health/index';
|
|
21
22
|
export * from './registration/index';
|
|
22
23
|
export * from './context/index';
|
|
24
|
+
export * from './conversation-turns/index';
|
|
25
|
+
export * from './scheduled-events/index';
|
|
26
|
+
export * from './api-route/index';
|
package/types/index.js
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
// packages/sdk/src/types/health.ts
|
|
3
|
+
var HEALTH_INCIDENT_CLASSES = [
|
|
4
|
+
"service_failure",
|
|
5
|
+
"data_integrity",
|
|
6
|
+
"budget_block",
|
|
7
|
+
"evidence_gap",
|
|
8
|
+
"usage_anomaly",
|
|
9
|
+
"unattributed_usage",
|
|
10
|
+
"runaway_usage",
|
|
11
|
+
"cleanup_backlog",
|
|
12
|
+
"policy_denial",
|
|
13
|
+
"unsupported_surface"
|
|
14
|
+
];
|
|
15
|
+
export {
|
|
16
|
+
HEALTH_INCIDENT_CLASSES
|
|
17
|
+
};
|
package/utils/index.d.ts
CHANGED
|
@@ -5,15 +5,23 @@
|
|
|
5
5
|
* needs. The `format*` helpers are re-exported from `@bakin/core/format`
|
|
6
6
|
* so plugins have a single import path instead of reaching into `@/lib/*`.
|
|
7
7
|
*/
|
|
8
|
-
import type {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/** Build
|
|
14
|
-
export declare function
|
|
15
|
-
/** Build a
|
|
16
|
-
export declare function
|
|
8
|
+
import type { ErrorObservationInput, HealthNonEmptyArray, HealthObservationInput, HealthyObservationInput, NotApplicableHealthCheckRunInput, ObservedHealthCheckRunInput, UnknownObservationInput, WarningObservationInput } from '../types/index';
|
|
9
|
+
type HealthyObservationFields = Omit<HealthyObservationInput, 'status'>;
|
|
10
|
+
type WarningObservationFields = Omit<WarningObservationInput, 'status'>;
|
|
11
|
+
type ErrorObservationFields = Omit<ErrorObservationInput, 'status'>;
|
|
12
|
+
type UnknownObservationFields = Omit<UnknownObservationInput, 'status'>;
|
|
13
|
+
/** Build a healthy observation. Healthy observations cannot carry incidents. */
|
|
14
|
+
export declare function healthHealthy(input: HealthyObservationFields): HealthyObservationInput;
|
|
15
|
+
/** Build a warning observation with an explicit advisory/watch/action disposition. */
|
|
16
|
+
export declare function healthWarning(input: WarningObservationFields): WarningObservationInput;
|
|
17
|
+
/** Build an error observation. Its incident must require operator action. */
|
|
18
|
+
export declare function healthError(input: ErrorObservationFields): ErrorObservationInput;
|
|
19
|
+
/** Build an Unknown verification observation with a watch disposition. */
|
|
20
|
+
export declare function healthUnknown(input: UnknownObservationFields): UnknownObservationInput;
|
|
21
|
+
/** Build a successful observed run. Empty diagnostic output is unrepresentable. */
|
|
22
|
+
export declare function healthObserved(observations: HealthNonEmptyArray<HealthObservationInput>): ObservedHealthCheckRunInput;
|
|
23
|
+
/** Build an explicit successful not-applicable run. */
|
|
24
|
+
export declare function healthNotApplicable(reason: string): NotApplicableHealthCheckRunInput;
|
|
17
25
|
/** Tailwind class merger (clsx + tailwind-merge). */
|
|
18
26
|
export { cn } from '../_internal/app/lib/utils';
|
|
19
27
|
/** Semantic tone for an outline status badge. */
|
|
@@ -23,6 +31,8 @@ export type BadgeTone = 'success' | 'pending' | 'error' | 'muted' | 'info';
|
|
|
23
31
|
* `bg-X-500/10 text-X-400 border-X-500/20` idiom, used with `<Badge variant="outline">`.
|
|
24
32
|
*/
|
|
25
33
|
export declare function toneBadgeClass(tone: BadgeTone): string;
|
|
34
|
+
/** Pure assetId shape validators (see ./asset-id). */
|
|
35
|
+
export { isValidAssetId, yearMonthFromAssetId } from './asset-id/index';
|
|
26
36
|
/** Format a Date or ISO string as a relative age (e.g. "5m ago"). */
|
|
27
37
|
export { formatAge } from '../_internal/core/format';
|
|
28
38
|
/** Format an ISO timestamp as a calendar-aware absolute date+time (e.g. "Today 3:45 PM", "Jan 5 9:02 AM"). */
|
|
@@ -33,19 +43,12 @@ export { formatDuration } from '../_internal/core/format';
|
|
|
33
43
|
export { formatSize } from '../_internal/core/format';
|
|
34
44
|
/** Returns true if a timestamp is older than a configurable staleness threshold. */
|
|
35
45
|
export { isStale } from '../_internal/core/format';
|
|
36
|
-
/**
|
|
37
|
-
export {
|
|
38
|
-
/**
|
|
39
|
-
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export { normalizeBrainstormActivityForStorage } from '../_internal/app/components/integrated-brainstorm/session';
|
|
46
|
-
/** Normalize a single brainstorm message for persistence. */
|
|
47
|
-
export { normalizeBrainstormActivityMessageForStorage } from '../_internal/app/components/integrated-brainstorm/session';
|
|
48
|
-
export type { BrainstormActivityInput, BrainstormTimelineActivityInput, BrainstormTimelineMessageInput, } from '../_internal/app/components/integrated-brainstorm/activity';
|
|
49
|
-
export type { BrainstormActivityStorageInput, BrainstormActivityStorageRecord, } from '../_internal/app/components/integrated-brainstorm/session';
|
|
50
|
-
/** Read an SSE response stream into brainstorm activity events. */
|
|
51
|
-
export { readBrainstormSseResponse } from '../_internal/app/components/integrated-brainstorm/sse';
|
|
46
|
+
/** Canonical thread id for embedded conversation surfaces (scope:entity:agent). */
|
|
47
|
+
export { conversationThreadId } from '../_internal/app/components/conversation/thread-id';
|
|
48
|
+
/** Record one streamed turn's chunks into persistable ConversationMessage rows. */
|
|
49
|
+
export { createTurnRecorder, SUMMARY_MAX_CHARS, PREVIEW_MAX_CHARS } from '../_internal/app/components/conversation/turn-recorder';
|
|
50
|
+
export type { TurnRecorder } from '../_internal/app/components/conversation/turn-recorder';
|
|
51
|
+
/** Structured-value (JSON → human) renderers — labeled prose, one-line summary, tool-envelope unwrap. */
|
|
52
|
+
export { humanizeKey, formatStructured, summarizeStructured, unwrapToolResult, type FormatStructuredOptions } from '../_internal/core/format';
|
|
53
|
+
/** Fetch a plugin's own API route (`/api/plugins/<id>/<path>`) with JSON defaults. */
|
|
54
|
+
export { pluginFetch, pluginApiUrl } from './plugin-fetch/index';
|