@makaio/framework 1.0.0-dev-1781354548379 → 1.0.0-dev-1781367632837

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 (82) hide show
  1. package/README.md +1 -1
  2. package/dist/.makaio-build.json +2 -2
  3. package/dist/adapter-subsystem/index.d.mts +493 -0
  4. package/dist/adapter-subsystem/index.mjs +1 -0
  5. package/dist/adapters/index.d.mts +1 -1
  6. package/dist/contracts/adapter/index.d.mts +1 -1
  7. package/dist/contracts/artifact/index.d.mts +1 -1
  8. package/dist/contracts/config/index.d.mts +6 -6
  9. package/dist/contracts/extension/index.d.mts +2 -2
  10. package/dist/contracts/index.d.mts +55 -55
  11. package/dist/contracts/provider/index.d.mts +1 -1
  12. package/dist/contracts/session/index.d.mts +2 -2
  13. package/dist/inbound-hooks/index.d.mts +174 -0
  14. package/dist/inbound-hooks/index.mjs +1 -0
  15. package/dist/{index-DrGLAuZc.d.mts → index-7EPRy0nT.d.mts} +16 -16
  16. package/dist/{index-BHzgDuRE.d.mts → index-B7uYo0C6.d.mts} +3 -3
  17. package/dist/{index-BHAOu6Hs.d.mts → index-BFuke0jw.d.mts} +14 -14
  18. package/dist/{index-CH5U3zSA2.d.mts → index-BfUq8fO52.d.mts} +1 -1
  19. package/dist/{index-Buo9H8RK.d.mts → index-COPhs8Ay.d.mts} +1 -1
  20. package/dist/{index-CTn_Xi-p.d.mts → index-CcBAFO-1.d.mts} +2 -2
  21. package/dist/{index-BpniJgxu.d.mts → index-CncH-7wf.d.mts} +16 -16
  22. package/dist/{index-Da4ABgRq.d.mts → index-DdZ9PDEE.d.mts} +12 -12
  23. package/dist/{index-BDRKAxIV.d.mts → index-dAjtejnc.d.mts} +2 -2
  24. package/dist/{index-DPIdX6kb.d.mts → index-qGJoNJon.d.mts} +113 -113
  25. package/dist/kernel/extension/index.d.mts +1 -1
  26. package/dist/kernel/index.d.mts +2 -2
  27. package/dist/kernel/observability/index.d.mts +1 -1
  28. package/dist/{namespace-CHMszppN.d.mts → namespace-6OzA9SwY.d.mts} +26 -26
  29. package/dist/{namespace-CqUGzG53.d.mts → namespace-Bx40zNgT.d.mts} +2 -2
  30. package/dist/{namespace-Boe6l5n9.d.mts → namespace-Cq8ScJGp.d.mts} +58 -58
  31. package/dist/{namespace-B73Sxj5L.d.mts → namespace-DI9_OYOU.d.mts} +6 -6
  32. package/dist/{namespace-BBVtD1gu.d.mts → namespace-Do0AUzwu.d.mts} +6 -6
  33. package/dist/package.json +1 -1
  34. package/dist/runtime-node/index.d.mts +8 -59
  35. package/dist/runtime-node/index.mjs +26 -26
  36. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  37. package/dist/{schema-DGMLvVoQ.d.mts → schema-C-yfxlRI.d.mts} +2 -2
  38. package/dist/{schemas-B5ToLwIs.d.mts → schemas-CJYNpT6v.d.mts} +6 -6
  39. package/dist/{schemas-lqvZ6UpK.d.mts → schemas-CW0h1h6l.d.mts} +3 -3
  40. package/dist/{schemas-kVcJMjjn2.d.mts → schemas-DtJWNKZ_2.d.mts} +6 -6
  41. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  42. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  43. package/dist/services/context-rules/index.d.mts +3 -3
  44. package/dist/services/execution-target/index.d.mts +2 -2
  45. package/dist/services/execution-target/namespace.d.mts +1 -1
  46. package/dist/services/execution-target/schemas.d.mts +1 -1
  47. package/dist/services/filesystem/namespace.d.mts +6 -6
  48. package/dist/services/filesystem/schemas.d.mts +3 -3
  49. package/dist/services/index.d.mts +41 -41
  50. package/dist/services/session/index.d.mts +4 -4
  51. package/dist/services/session/messages/namespace.d.mts +1 -1
  52. package/dist/services/session/storage/namespace.d.mts +1 -1
  53. package/dist/services/session/storage/schema.d.mts +1 -1
  54. package/dist/services/settings/namespace.d.mts +6 -6
  55. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  56. package/dist/services/subagent-template/index.d.mts +1 -1
  57. package/dist/services/subagent-template/schemas.d.mts +1 -1
  58. package/dist/services/tray-menu/index.d.mts +2 -2
  59. package/dist/services/tray-menu/namespace.d.mts +1 -1
  60. package/dist/services/tray-menu/schemas.d.mts +1 -1
  61. package/dist/{types-BpuLMR2m.d.mts → types-BOuU-0Vs.d.mts} +36 -36
  62. package/dist/workflow-engine/index.d.mts +37 -37
  63. package/package.json +9 -1
  64. package/dist/drizzle/0001_messages_content_tsv.na.md +0 -18
  65. package/dist/drizzle/meta/0000_snapshot.json +0 -2813
  66. package/dist/drizzle/meta/0001_snapshot.json +0 -2820
  67. package/dist/drizzle/meta/0002_snapshot.json +0 -2827
  68. package/dist/drizzle/meta/0003_snapshot.json +0 -2834
  69. package/dist/drizzle/meta/0004_snapshot.json +0 -2842
  70. package/dist/drizzle/meta/0005_snapshot.json +0 -2849
  71. package/dist/drizzle/meta/0006_snapshot.json +0 -2865
  72. package/dist/drizzle/meta/0007_snapshot.json +0 -2879
  73. package/dist/drizzle/meta/0008_snapshot.json +0 -2886
  74. package/dist/drizzle/meta/0009_snapshot.json +0 -2901
  75. package/dist/drizzle/meta/0010_snapshot.json +0 -2908
  76. package/dist/drizzle/meta/0011_snapshot.json +0 -2915
  77. package/dist/drizzle/meta/0012_snapshot.json +0 -2934
  78. package/dist/drizzle/meta/0013_snapshot.json +0 -2954
  79. package/dist/drizzle/meta/0014_snapshot.json +0 -2959
  80. package/dist/drizzle/meta/0015_snapshot.json +0 -2966
  81. package/dist/drizzle/meta/0016_snapshot.json +0 -2973
  82. package/dist/drizzle/meta/0017_snapshot.json +0 -2980
@@ -1,3 +1,3 @@
1
- import { $ as ImportStatus, A as MessageRoutingStatusSchema, B as TurnInitiator, C as SessionEventTypeMap, D as MessageRouting, E as SendMessageResponse, F as SessionMessageOriginSchema, G as TurnUsage, H as TurnSchema, I as SessionMessageRole, J as UsageMetricsSchema, K as TurnUsageSchema, L as SessionMessageRoleSchema, M as SessionMessageBlock, N as SessionMessageBlockSchema, O as MessageRoutingSchema, P as SessionMessageOrigin, Q as BranchKindSchema, R as SessionMessageSchema, S as SessionEventType, T as SendMessageRequest, U as TurnStatus, V as TurnInitiatorSchema, W as TurnStatusSchema, X as AgentRoleSchema, Y as AgentRole, Z as BranchKind, _ as ForkChildInfo, _t as SessionCreateBaseSchema, a as SessionPreviewData, at as SnapshotExportOptionsSchema, b as SESSION_EVENT_TYPES, c as SessionSchemas, ct as safeValidateSnapshot, d as SegmentPolicy, dt as SessionPreviewDataSchema, et as ImportStatusSchema, f as SegmentPolicySchema, ft as SessionWithPreviewSchema, g as SessionUpdatedEventSchema, gt as SessionCreateBase, h as SessionUpdatedEvent, ht as MakaioSessionAgentSchema, i as MakaioSessionEvent, it as SnapshotExportOptions, j as SessionMessage, k as MessageRoutingStatus, l as ForkTransforms, lt as validateSnapshot, m as SessionCreatedEventSchema, mt as AgentStatusSchema, n as KnownSessionEvent, nt as SessionSnapshot, o as SessionWithPreview, ot as SnapshotImportConflictErrorData, p as SessionCreated, pt as AgentStatus, q as UsageMetrics, r as MakaioSessionAgent, rt as SessionSnapshotSchema, s as isKnownSessionEvent, st as SnapshotPreviewData, t as IMakaioSession, tt as SNAPSHOT_VERSION, u as ForkTransformsSchema, ut as MakaioSessionSchema, v as ForkChildInfoSchema, w as SessionEventTypeSchema, x as SessionEventPayload, y as MakaioSessionEventSchema, z as Turn } from "../../types-BpuLMR2m.mjs";
2
- import { A as ResolveSystemPromptResponse, B as ConnectorSwapWarningOptionId, C as isMergeable, D as SessionImportStatusChanged, E as SessionClientAccountChangedSchema, F as CONNECTOR_SWAP_CANCELLED_CODE, G as ContextWindowState, H as UI_WARNINGS_CATEGORY, I as ConnectorSwapCancelledError, J as SessionExtensionContextFactory, K as ForkOptions, L as isConnectorSwapCancelledError, M as ResolveAgentConfigRequest, N as ResolveAgentConfigResponse, O as SessionImportStatusChangedSchema, P as ResolveAgentConfigSchema, R as CONNECTOR_SWAP_WARNING_OPTION_IDS, S as isInViewBranch, T as SessionClientAccountChanged, U as SessionContext, V as INTERACTIVE_DIALOG_TIMEOUT_MS, W as SessionContextSchema, X as SessionSubjects, Y as SessionNamespace, _ as SessionEnrichmentSchemas, a as SessionStorageSubjects, b as BranchBehavior, c as SessionEventStorageSubjects, d as messageCursorKey, f as messageToCursor, g as MessageStorageSubjects, h as MessageStorageNamespace, i as SessionStorageSetSessionSchema, j as ResolveSystemPromptSchema, k as ResolveSystemPromptRequest, l as compareMessageCursorAsc, m as MessagePageCursorSchema, n as SessionStorageNamespace, o as SessionStorageUpdateSchema, p as MessagePageCursor, q as SessionExtensionContext, r as SessionStorageSetRequestSchema, s as SessionEventStorageNamespace, t as ImportUpsertRequest, u as compareMessageCursorDesc, v as CompressionMode, w as isNavigatingBranch, x as getBranchBehavior, y as CompressionModeSchema, z as CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY } from "../../index-DPIdX6kb.mjs";
1
+ import { $ as ImportStatus, A as MessageRoutingStatusSchema, B as TurnInitiator, C as SessionEventTypeMap, D as MessageRouting, E as SendMessageResponse, F as SessionMessageOriginSchema, G as TurnUsage, H as TurnSchema, I as SessionMessageRole, J as UsageMetricsSchema, K as TurnUsageSchema, L as SessionMessageRoleSchema, M as SessionMessageBlock, N as SessionMessageBlockSchema, O as MessageRoutingSchema, P as SessionMessageOrigin, Q as BranchKindSchema, R as SessionMessageSchema, S as SessionEventType, T as SendMessageRequest, U as TurnStatus, V as TurnInitiatorSchema, W as TurnStatusSchema, X as AgentRoleSchema, Y as AgentRole, Z as BranchKind, _ as ForkChildInfo, _t as SessionCreateBaseSchema, a as SessionPreviewData, at as SnapshotExportOptionsSchema, b as SESSION_EVENT_TYPES, c as SessionSchemas, ct as safeValidateSnapshot, d as SegmentPolicy, dt as SessionPreviewDataSchema, et as ImportStatusSchema, f as SegmentPolicySchema, ft as SessionWithPreviewSchema, g as SessionUpdatedEventSchema, gt as SessionCreateBase, h as SessionUpdatedEvent, ht as MakaioSessionAgentSchema, i as MakaioSessionEvent, it as SnapshotExportOptions, j as SessionMessage, k as MessageRoutingStatus, l as ForkTransforms, lt as validateSnapshot, m as SessionCreatedEventSchema, mt as AgentStatusSchema, n as KnownSessionEvent, nt as SessionSnapshot, o as SessionWithPreview, ot as SnapshotImportConflictErrorData, p as SessionCreated, pt as AgentStatus, q as UsageMetrics, r as MakaioSessionAgent, rt as SessionSnapshotSchema, s as isKnownSessionEvent, st as SnapshotPreviewData, t as IMakaioSession, tt as SNAPSHOT_VERSION, u as ForkTransformsSchema, ut as MakaioSessionSchema, v as ForkChildInfoSchema, w as SessionEventTypeSchema, x as SessionEventPayload, y as MakaioSessionEventSchema, z as Turn } from "../../types-BOuU-0Vs.mjs";
2
+ import { A as ResolveSystemPromptResponse, B as ConnectorSwapWarningOptionId, C as isMergeable, D as SessionImportStatusChanged, E as SessionClientAccountChangedSchema, F as CONNECTOR_SWAP_CANCELLED_CODE, G as ContextWindowState, H as UI_WARNINGS_CATEGORY, I as ConnectorSwapCancelledError, J as SessionExtensionContextFactory, K as ForkOptions, L as isConnectorSwapCancelledError, M as ResolveAgentConfigRequest, N as ResolveAgentConfigResponse, O as SessionImportStatusChangedSchema, P as ResolveAgentConfigSchema, R as CONNECTOR_SWAP_WARNING_OPTION_IDS, S as isInViewBranch, T as SessionClientAccountChanged, U as SessionContext, V as INTERACTIVE_DIALOG_TIMEOUT_MS, W as SessionContextSchema, X as SessionSubjects, Y as SessionNamespace, _ as SessionEnrichmentSchemas, a as SessionStorageSubjects, b as BranchBehavior, c as SessionEventStorageSubjects, d as messageCursorKey, f as messageToCursor, g as MessageStorageSubjects, h as MessageStorageNamespace, i as SessionStorageSetSessionSchema, j as ResolveSystemPromptSchema, k as ResolveSystemPromptRequest, l as compareMessageCursorAsc, m as MessagePageCursorSchema, n as SessionStorageNamespace, o as SessionStorageUpdateSchema, p as MessagePageCursor, q as SessionExtensionContext, r as SessionStorageSetRequestSchema, s as SessionEventStorageNamespace, t as ImportUpsertRequest, u as compareMessageCursorDesc, v as CompressionMode, w as isNavigatingBranch, x as getBranchBehavior, y as CompressionModeSchema, z as CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY } from "../../index-qGJoNJon.mjs";
3
3
  export { AgentRole, AgentRoleSchema, AgentStatus, AgentStatusSchema, BranchBehavior, BranchKind, BranchKindSchema, CONNECTOR_SWAP_CANCELLED_CODE, CONNECTOR_SWAP_WARNING_OPTION_IDS, CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY, CompressionMode, CompressionModeSchema, ConnectorSwapCancelledError, ConnectorSwapWarningOptionId, ContextWindowState, ForkChildInfo, ForkChildInfoSchema, ForkOptions, ForkTransforms, ForkTransformsSchema, IMakaioSession, INTERACTIVE_DIALOG_TIMEOUT_MS, ImportStatus, ImportStatusSchema, ImportUpsertRequest, KnownSessionEvent, MakaioSessionAgent, MakaioSessionAgentSchema, MakaioSessionEvent, MakaioSessionEventSchema, MakaioSessionSchema, MessagePageCursor, MessagePageCursorSchema, MessageRouting, MessageRoutingSchema, MessageRoutingStatus, MessageRoutingStatusSchema, MessageStorageNamespace, MessageStorageSubjects, ResolveAgentConfigRequest, ResolveAgentConfigResponse, ResolveAgentConfigSchema, ResolveSystemPromptRequest, ResolveSystemPromptResponse, ResolveSystemPromptSchema, SESSION_EVENT_TYPES, SNAPSHOT_VERSION, SegmentPolicy, SegmentPolicySchema, SessionClientAccountChanged, SessionClientAccountChangedSchema, SessionContext, SessionContextSchema, SessionCreateBase, SessionCreateBaseSchema, SessionCreated, SessionCreatedEventSchema, SessionEnrichmentSchemas, SessionEventPayload, SessionEventStorageNamespace, SessionEventStorageSubjects, SessionEventType, SessionEventTypeMap, SessionEventTypeSchema, SessionExtensionContext, SessionExtensionContextFactory, SessionImportStatusChanged, SessionImportStatusChangedSchema, SessionMessage, SessionMessageBlock, SessionMessageBlockSchema, SessionMessageOrigin, SessionMessageOriginSchema, SessionMessageRole, SessionMessageRoleSchema, SessionMessageSchema, SessionNamespace, SessionPreviewData, SessionPreviewDataSchema, SessionSchemas, SendMessageRequest as SessionSendMessageRequest, SendMessageResponse as SessionSendMessageResponse, SessionSnapshot, SessionSnapshotSchema, SessionStorageNamespace, SessionStorageSetRequestSchema, SessionStorageSetSessionSchema, SessionStorageSubjects, SessionStorageUpdateSchema, SessionSubjects, SessionUpdatedEvent, SessionUpdatedEventSchema, SessionWithPreview, SessionWithPreviewSchema, SnapshotExportOptions, SnapshotExportOptionsSchema, SnapshotImportConflictErrorData, SnapshotPreviewData, Turn, TurnInitiator, TurnInitiatorSchema, TurnSchema, TurnStatus, TurnStatusSchema, TurnUsage, TurnUsageSchema, UI_WARNINGS_CATEGORY, UsageMetrics, UsageMetricsSchema, compareMessageCursorAsc, compareMessageCursorDesc, getBranchBehavior, isConnectorSwapCancelledError, isInViewBranch, isKnownSessionEvent, isMergeable, isNavigatingBranch, messageCursorKey, messageToCursor, safeValidateSnapshot, validateSnapshot };
@@ -0,0 +1,174 @@
1
+ import * as _$zod from "zod";
2
+ import { z } from "zod";
3
+ import * as _$_makaio_core0 from "@makaio/framework/core";
4
+ import { EventMessagePayload, SubjectDefinition, SubjectRecord } from "@makaio/framework/core";
5
+ import { IMakaioBus } from "@makaio/framework/bus";
6
+ import * as _$zod_v4_core0 from "zod/v4/core";
7
+
8
+ //#region packages/inbound-hooks/src/schemas.d.ts
9
+ /**
10
+ * Validates a hook source identifier.
11
+ *
12
+ * Source identifiers must be lowercase alphanumeric with hyphens only
13
+ * (e.g., `'git'`, `'claude-code'`).
14
+ */
15
+ declare const InboundHookSourceSchema: z.ZodString;
16
+ /**
17
+ * Canonical schema for the raw inbound hook payload delivered on
18
+ * `hook:<source>.received`.
19
+ *
20
+ * Ingress bridges are intentionally dumb: they accept any native hook event
21
+ * and publish it verbatim on this subject. Downstream translators are
22
+ * responsible for interpreting `eventName` and mapping the `payload` to
23
+ * structured observations.
24
+ */
25
+ declare const RawInboundHookPayloadSchema: z.ZodObject<{
26
+ eventName: z.ZodString;
27
+ receivedAt: z.ZodNumber;
28
+ argv: z.ZodArray<z.ZodString>;
29
+ stdinText: z.ZodString;
30
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
31
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
32
+ }, z.core.$strip>;
33
+ type RawInboundHookPayload = z.infer<typeof RawInboundHookPayloadSchema>;
34
+ type InboundHookSource = z.infer<typeof InboundHookSourceSchema>;
35
+ //#endregion
36
+ //#region packages/inbound-hooks/src/emit.d.ts
37
+ /**
38
+ * Options controlling fail-open behavior for hook bus emissions.
39
+ */
40
+ interface InboundHookEmitOptions {
41
+ /**
42
+ * When `true`, bus failures are swallowed and the function resolves normally.
43
+ * Defaults to `true` for native hooks where bus unavailability must not
44
+ * crash the calling hook process.
45
+ */
46
+ readonly failOpen?: boolean;
47
+ }
48
+ /**
49
+ * Emit a raw inbound hook payload on the source-scoped `hook:<source>.received`
50
+ * subject.
51
+ * @param bus - Bus instance with `emit` support.
52
+ * @param source - Stable source identifier (e.g., `'git'`, `'claude-code'`).
53
+ * @param payload - Raw hook payload to emit.
54
+ * @param options - Emission options; `failOpen` defaults to `true`.
55
+ */
56
+ declare function emitInboundHookReceived(bus: Pick<IMakaioBus, 'emit'>, source: string, payload: RawInboundHookPayload, options?: InboundHookEmitOptions): Promise<void>;
57
+ //#endregion
58
+ //#region packages/inbound-hooks/src/fast-bus.d.ts
59
+ /**
60
+ * Options for the fast single-shot hook bus connection.
61
+ */
62
+ interface FastHookBusOptions {
63
+ /** WebSocket URL of the bus server. Defaults to `ws://127.0.0.1:6252/bus`. */
64
+ readonly busUrl?: string;
65
+ /**
66
+ * Milliseconds allowed for connect and emit before giving up.
67
+ * Defaults to `250`.
68
+ */
69
+ readonly timeoutMs?: number;
70
+ /**
71
+ * Milliseconds to wait before giving up.
72
+ * @deprecated Use `timeoutMs`; the timeout now applies to the whole delivery path.
73
+ */
74
+ readonly connectTimeoutMs?: number;
75
+ /** HMAC secret for bus authentication. Falls back to `MAKAIO_BUS_SECRET`. */
76
+ readonly secret?: string;
77
+ }
78
+ /**
79
+ * Connect to the local bus, emit a raw inbound hook payload, and disconnect.
80
+ *
81
+ * Optimized for fast-exit hook processes: uses a single short-lived WebSocket
82
+ * connection with a tight whole-operation timeout. All failures are swallowed
83
+ * so the calling hook process exits cleanly regardless of bus availability.
84
+ * @param source - Stable source identifier (e.g., `'git'`, `'claude-code'`).
85
+ * @param payload - Raw hook payload to emit.
86
+ * @param options - Bus connection options.
87
+ */
88
+ declare function emitInboundHookReceivedFast(source: string, payload: RawInboundHookPayload, options?: FastHookBusOptions): Promise<void>;
89
+ //#endregion
90
+ //#region packages/inbound-hooks/src/namespace.d.ts
91
+ type RawInboundHookSubjectRecord = SubjectRecord<'received', EventMessagePayload<RawInboundHookPayload>>;
92
+ /**
93
+ * Subject definition for the raw inbound hook event in a concrete
94
+ * `hook:<source>` namespace.
95
+ */
96
+ type RawInboundHookReceivedSubject = SubjectDefinition<RawInboundHookSubjectRecord, 'received', `hook:${string}`>;
97
+ /**
98
+ * Normalize a hook source identifier to the canonical form used in
99
+ * `hook:<source>` namespaces.
100
+ * @param source - Raw source string (e.g., `'Git'`, `'CLAUDE-CODE'`).
101
+ * @returns Canonical lowercase source identifier.
102
+ */
103
+ declare function normalizeInboundHookSource(source: string): string;
104
+ /**
105
+ * Create a bus namespace definition for the given inbound hook source.
106
+ *
107
+ * The namespace is suitable for registration via `bus.registerNamespace()`.
108
+ * @param source - Stable source identifier (e.g., `'git'`, `'claude-code'`).
109
+ * @returns Bus namespace definition scoped to `hook:<source>`.
110
+ */
111
+ declare function createInboundHookNamespace(source: string): _$_makaio_core0.BusNamespaceDefinition<`hook:${string}`, {
112
+ received: _$zod.ZodObject<{
113
+ eventName: _$zod.ZodString;
114
+ receivedAt: _$zod.ZodNumber;
115
+ argv: _$zod.ZodArray<_$zod.ZodString>;
116
+ stdinText: _$zod.ZodString;
117
+ payload: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
118
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
119
+ }, _$zod_v4_core0.$strip>;
120
+ }>;
121
+ /**
122
+ * Build a non-owning subject definition for `hook:<source>.received`.
123
+ *
124
+ * This is intentionally not a namespace registration. Namespace owners
125
+ * register the full `hook:<source>` namespace at boot time; the ingress
126
+ * bridge only needs to emit the raw event without accidentally registering
127
+ * a narrower schema before the concrete owner loads.
128
+ * @param source - Stable source identifier (e.g., `'git'`, `'claude-code'`).
129
+ * @returns Non-owning subject definition for the source's raw hook ingress.
130
+ */
131
+ declare function createInboundHookReceivedSubject(source: string): RawInboundHookReceivedSubject;
132
+ //#endregion
133
+ //#region packages/inbound-hooks/src/stdio.d.ts
134
+ /**
135
+ * Read the current process stdin as UTF-8 text.
136
+ *
137
+ * Returns an empty string when stdin is an interactive TTY so the command
138
+ * does not hang waiting for user input.
139
+ * @param stdin - The stdin stream to consume (defaults to `process.stdin`).
140
+ * @returns The full stdin text, or an empty string for a TTY.
141
+ */
142
+ declare function readProcessStdinText(stdin?: NodeJS.ReadStream): Promise<string>;
143
+ /**
144
+ * Read stdin without surfacing failures to the caller.
145
+ *
146
+ * Wraps any provided `readStdinText` function and swallows errors, returning
147
+ * an empty string on any failure. Preserves fail-open semantics: a hook
148
+ * bridge should never crash because stdin is unavailable.
149
+ * @param readStdinText - Function that reads stdin text; defaults to {@link readProcessStdinText}.
150
+ * @returns The full stdin text, or an empty string on any failure.
151
+ */
152
+ declare function safeReadStdinText(readStdinText?: () => Promise<string>): Promise<string>;
153
+ /**
154
+ * Parse a JSON object from raw stdin text.
155
+ *
156
+ * Returns an empty object when the input is blank, non-JSON, or does not
157
+ * parse to an object. This preserves fail-open semantics: an event is always
158
+ * emitted even when the native caller sends nothing or malformed data.
159
+ * @param text - Raw text to parse.
160
+ * @returns A plain `Record<string, unknown>` or `{}` on failure.
161
+ */
162
+ declare function parseJsonPayload(text: string): Record<string, unknown>;
163
+ /**
164
+ * Parse an optional JSON metadata string from a CLI flag.
165
+ *
166
+ * Returns `undefined` when absent or unparseable so the caller can omit the
167
+ * `metadata` field from the emitted payload entirely (rather than emitting
168
+ * `{}`).
169
+ * @param raw - Raw JSON string from a `--metadata-json` flag, or `undefined`.
170
+ * @returns A parsed metadata record, or `undefined` on absence or parse failure.
171
+ */
172
+ declare function parseJsonMetadata(raw: string | undefined): Record<string, unknown> | undefined;
173
+ //#endregion
174
+ export { type FastHookBusOptions, type InboundHookEmitOptions, type InboundHookSource, InboundHookSourceSchema, type RawInboundHookPayload, RawInboundHookPayloadSchema, type RawInboundHookReceivedSubject, createInboundHookNamespace, createInboundHookReceivedSubject, emitInboundHookReceived, emitInboundHookReceivedFast, normalizeInboundHookSource, parseJsonMetadata, parseJsonPayload, readProcessStdinText, safeReadStdinText };
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";import{createBusNamespace as t}from"@makaio/framework/core";import{createBusInstance as n}from"@makaio/framework/bus";import{HmacAuth as r,WebSocketClientTransport as i}from"@makaio/framework/node/transports";import{text as a}from"node:stream/consumers";const o=e.string().regex(/^[a-z0-9-]+$/,`source must contain only lowercase letters, numbers, and hyphens`),s=e.object({eventName:e.string().min(1),receivedAt:e.number().int().finite().nonnegative(),argv:e.array(e.string()),stdinText:e.string(),payload:e.record(e.string(),e.unknown()),metadata:e.record(e.string(),e.unknown()).optional()});function c(e){return o.parse(e.trim().toLowerCase())}function l(e){return t(`hook:${c(e)}`,{received:s})}function u(e){return{subject:`received`,$meta:{namespace:`hook:${c(e)}`,isRequest:!1,local:!1,channel:!1}}}async function d(e,t,n,r={}){let i=r.failOpen??!0;try{await e.emit(u(t),n)}catch(e){if(!i)throw e}}async function f(e,t,a={}){let o=a.busUrl?.trim()||process.env.MAKAIO_BUS_URL?.trim()||`ws://127.0.0.1:6252/bus`,s=a.secret??process.env.MAKAIO_BUS_SECRET,c=s&&s.trim().length>0?new r({secret:s.trim()}):void 0,l=n({transports:[new i({url:o,name:`hook-${e}`,autoReconnect:!1,auth:c,debug:process.env.MAKAIO_DEBUG===`true`})]}),u=p(a.timeoutMs??a.connectTimeoutMs),f,h=!1,g=(async()=>{await l.connect(),!h&&await d(l,e,t,{failOpen:!0})})();g.catch(()=>void 0);try{await Promise.race([g,new Promise((e,t)=>{f=setTimeout(()=>{h=!0,t(Error(`hook bus delivery timeout`))},u)})])}catch{return}finally{clearTimeout(f),m(()=>l.disconnect())}}function p(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0?e:250}function m(e){try{e()}catch{}}async function h(e=process.stdin){return e.isTTY===!0?``:a(e)}async function g(e=h){try{return await e()}catch{return``}}function _(e){let t=e.trim();if(t.length!==0)try{let e=JSON.parse(t);if(typeof e==`object`&&e&&!Array.isArray(e))return e}catch{return}}function v(e){return _(e)??{}}function y(e){if(e!==void 0)return _(e)}export{o as InboundHookSourceSchema,s as RawInboundHookPayloadSchema,l as createInboundHookNamespace,u as createInboundHookReceivedSubject,d as emitInboundHookReceived,f as emitInboundHookReceivedFast,c as normalizeInboundHookSource,y as parseJsonMetadata,v as parseJsonPayload,h as readProcessStdinText,g as safeReadStdinText};
@@ -1,4 +1,4 @@
1
- import { r as ExecutionTarget } from "./schemas-B5ToLwIs.mjs";
1
+ import { r as ExecutionTarget } from "./schemas-CJYNpT6v.mjs";
2
2
  import { d as Turn$1 } from "./index-C6BhKRnH.mjs";
3
3
  import { a as PipelineStep, o as SessionEditorAction, t as ActionCategory } from "./types-5Gw3iVpK.mjs";
4
4
  import { z } from "zod";
@@ -942,8 +942,8 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
942
942
  member: "member";
943
943
  }>;
944
944
  status: z.ZodEnum<{
945
- idle: "idle";
946
945
  active: "active";
946
+ idle: "idle";
947
947
  dead: "dead";
948
948
  disposed: "disposed";
949
949
  }>;
@@ -985,8 +985,8 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
985
985
  member: "member";
986
986
  }>;
987
987
  status: z.ZodEnum<{
988
- idle: "idle";
989
988
  active: "active";
989
+ idle: "idle";
990
990
  dead: "dead";
991
991
  disposed: "disposed";
992
992
  }>;
@@ -1023,8 +1023,8 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
1023
1023
  adapterName: z.ZodString;
1024
1024
  status: z.ZodOptional<z.ZodEnum<{
1025
1025
  all: "all";
1026
- idle: "idle";
1027
1026
  active: "active";
1027
+ idle: "idle";
1028
1028
  dead: "dead";
1029
1029
  disposed: "disposed";
1030
1030
  }>>;
@@ -1054,8 +1054,8 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
1054
1054
  member: "member";
1055
1055
  }>;
1056
1056
  status: z.ZodEnum<{
1057
- idle: "idle";
1058
1057
  active: "active";
1058
+ idle: "idle";
1059
1059
  dead: "dead";
1060
1060
  disposed: "disposed";
1061
1061
  }>;
@@ -1099,8 +1099,8 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
1099
1099
  member: "member";
1100
1100
  }>;
1101
1101
  status: z.ZodEnum<{
1102
- idle: "idle";
1103
1102
  active: "active";
1103
+ idle: "idle";
1104
1104
  dead: "dead";
1105
1105
  disposed: "disposed";
1106
1106
  }>;
@@ -1119,8 +1119,8 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
1119
1119
  request: z.ZodObject<{
1120
1120
  agentId: z.ZodString;
1121
1121
  status: z.ZodEnum<{
1122
- idle: "idle";
1123
1122
  active: "active";
1123
+ idle: "idle";
1124
1124
  dead: "dead";
1125
1125
  disposed: "disposed";
1126
1126
  }>;
@@ -1459,7 +1459,7 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
1459
1459
  tableName: "agents";
1460
1460
  dataType: "string";
1461
1461
  columnType: "SQLiteText";
1462
- data: "idle" | "active" | "dead" | "disposed";
1462
+ data: "active" | "idle" | "dead" | "disposed";
1463
1463
  driverParam: string;
1464
1464
  notNull: true;
1465
1465
  hasDefault: false;
@@ -1551,8 +1551,8 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1551
1551
  member: "member";
1552
1552
  }>;
1553
1553
  status: z.ZodEnum<{
1554
- idle: "idle";
1555
1554
  active: "active";
1555
+ idle: "idle";
1556
1556
  dead: "dead";
1557
1557
  disposed: "disposed";
1558
1558
  }>;
@@ -1594,8 +1594,8 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1594
1594
  member: "member";
1595
1595
  }>;
1596
1596
  status: z.ZodEnum<{
1597
- idle: "idle";
1598
1597
  active: "active";
1598
+ idle: "idle";
1599
1599
  dead: "dead";
1600
1600
  disposed: "disposed";
1601
1601
  }>;
@@ -1632,8 +1632,8 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1632
1632
  adapterName: z.ZodString;
1633
1633
  status: z.ZodOptional<z.ZodEnum<{
1634
1634
  all: "all";
1635
- idle: "idle";
1636
1635
  active: "active";
1636
+ idle: "idle";
1637
1637
  dead: "dead";
1638
1638
  disposed: "disposed";
1639
1639
  }>>;
@@ -1663,8 +1663,8 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1663
1663
  member: "member";
1664
1664
  }>;
1665
1665
  status: z.ZodEnum<{
1666
- idle: "idle";
1667
1666
  active: "active";
1667
+ idle: "idle";
1668
1668
  dead: "dead";
1669
1669
  disposed: "disposed";
1670
1670
  }>;
@@ -1708,8 +1708,8 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1708
1708
  member: "member";
1709
1709
  }>;
1710
1710
  status: z.ZodEnum<{
1711
- idle: "idle";
1712
1711
  active: "active";
1712
+ idle: "idle";
1713
1713
  dead: "dead";
1714
1714
  disposed: "disposed";
1715
1715
  }>;
@@ -1728,8 +1728,8 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1728
1728
  request: z.ZodObject<{
1729
1729
  agentId: z.ZodString;
1730
1730
  status: z.ZodEnum<{
1731
- idle: "idle";
1732
1731
  active: "active";
1732
+ idle: "idle";
1733
1733
  dead: "dead";
1734
1734
  disposed: "disposed";
1735
1735
  }>;
@@ -1901,7 +1901,7 @@ declare const sessionStorageSchema: _$_makaio_storage_drizzle0.DialectSchema<{
1901
1901
  tableName: "sessions";
1902
1902
  dataType: "string";
1903
1903
  columnType: "SQLiteText";
1904
- data: "closed" | "discovered" | "active" | "archived";
1904
+ data: "active" | "archived" | "closed" | "discovered";
1905
1905
  driverParam: string;
1906
1906
  notNull: true;
1907
1907
  hasDefault: false;
@@ -2717,7 +2717,7 @@ declare const sessionStorageSchema: _$_makaio_storage_drizzle0.DialectSchema<{
2717
2717
  tableName: "agents";
2718
2718
  dataType: "string";
2719
2719
  columnType: "SQLiteText";
2720
- data: "idle" | "active" | "dead" | "disposed";
2720
+ data: "active" | "idle" | "dead" | "disposed";
2721
2721
  driverParam: string;
2722
2722
  notNull: true;
2723
2723
  hasDefault: false;
@@ -1564,9 +1564,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1564
1564
  timestamp: _$zod.ZodNumber;
1565
1565
  level: _$zod.ZodOptional<_$zod.ZodEnum<{
1566
1566
  error: "error";
1567
+ info: "info";
1567
1568
  warn: "warn";
1568
1569
  debug: "debug";
1569
- info: "info";
1570
1570
  }>>;
1571
1571
  }, _$zod_v4_core0.$strip>;
1572
1572
  error: _$zod.ZodObject<{
@@ -3157,9 +3157,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3157
3157
  timestamp: _$zod.ZodNumber;
3158
3158
  level: _$zod.ZodOptional<_$zod.ZodEnum<{
3159
3159
  error: "error";
3160
+ info: "info";
3160
3161
  warn: "warn";
3161
3162
  debug: "debug";
3162
- info: "info";
3163
3163
  }>>;
3164
3164
  }, _$zod_v4_core0.$strip>;
3165
3165
  error: _$zod.ZodObject<{
@@ -4774,9 +4774,9 @@ declare const AdapterSchemas: {
4774
4774
  timestamp: _$zod.ZodNumber;
4775
4775
  level: _$zod.ZodOptional<_$zod.ZodEnum<{
4776
4776
  error: "error";
4777
+ info: "info";
4777
4778
  warn: "warn";
4778
4779
  debug: "debug";
4779
- info: "info";
4780
4780
  }>>;
4781
4781
  }, _$zod_v4_core0.$strip>;
4782
4782
  error: _$zod.ZodObject<{
@@ -432,8 +432,8 @@ declare const ArtifactRevisionSchema: z.ZodObject<{
432
432
  * - `coexist` — both revisions are kept; conflict is surfaced to consumers
433
433
  */
434
434
  declare const ArtifactConflictPolicySchema: z.ZodEnum<{
435
- manual: "manual";
436
435
  supersedes: "supersedes";
436
+ manual: "manual";
437
437
  coexist: "coexist";
438
438
  }>;
439
439
  /**
@@ -451,8 +451,8 @@ declare const ArtifactKindRegistrationSchema: z.ZodObject<{
451
451
  observationSchema: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
452
452
  discriminator: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
453
453
  conflictPolicy: z.ZodEnum<{
454
- manual: "manual";
455
454
  supersedes: "supersedes";
455
+ manual: "manual";
456
456
  coexist: "coexist";
457
457
  }>;
458
458
  status: z.ZodOptional<z.ZodObject<{
@@ -1331,8 +1331,8 @@ declare const ArtifactSchemas: {
1331
1331
  observationSchema: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1332
1332
  discriminator: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1333
1333
  conflictPolicy: z.ZodEnum<{
1334
- manual: "manual";
1335
1334
  supersedes: "supersedes";
1335
+ manual: "manual";
1336
1336
  coexist: "coexist";
1337
1337
  }>;
1338
1338
  status: z.ZodOptional<z.ZodObject<{
@@ -1394,8 +1394,8 @@ declare const ArtifactSchemas: {
1394
1394
  observationSchema: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1395
1395
  discriminator: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1396
1396
  conflictPolicy: z.ZodEnum<{
1397
- manual: "manual";
1398
1397
  supersedes: "supersedes";
1398
+ manual: "manual";
1399
1399
  coexist: "coexist";
1400
1400
  }>;
1401
1401
  status: z.ZodOptional<z.ZodObject<{
@@ -1487,7 +1487,6 @@ declare const ArtifactSchemas: {
1487
1487
  request: z.ZodObject<{
1488
1488
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
1489
1489
  kind: z.ZodString;
1490
- createdAt: z.ZodOptional<z.ZodNumber>;
1491
1490
  schemaVersion: z.ZodString;
1492
1491
  scope: z.ZodObject<{
1493
1492
  level: z.ZodString;
@@ -1567,6 +1566,7 @@ declare const ArtifactSchemas: {
1567
1566
  summary: z.ZodOptional<z.ZodString>;
1568
1567
  plaintext: z.ZodOptional<z.ZodString>;
1569
1568
  }, z.core.$strip>>;
1569
+ createdAt: z.ZodOptional<z.ZodNumber>;
1570
1570
  }, z.core.$strip>;
1571
1571
  response: z.ZodObject<{
1572
1572
  artifact: z.ZodObject<{
@@ -1669,7 +1669,6 @@ declare const ArtifactSchemas: {
1669
1669
  revision: z.ZodObject<{
1670
1670
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
1671
1671
  kind: z.ZodString;
1672
- createdAt: z.ZodOptional<z.ZodNumber>;
1673
1672
  schemaVersion: z.ZodString;
1674
1673
  scope: z.ZodObject<{
1675
1674
  level: z.ZodString;
@@ -1749,6 +1748,7 @@ declare const ArtifactSchemas: {
1749
1748
  summary: z.ZodOptional<z.ZodString>;
1750
1749
  plaintext: z.ZodOptional<z.ZodString>;
1751
1750
  }, z.core.$strip>>;
1751
+ createdAt: z.ZodOptional<z.ZodNumber>;
1752
1752
  }, z.core.$strip>;
1753
1753
  }, z.core.$strip>;
1754
1754
  response: z.ZodObject<{
@@ -2579,8 +2579,8 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2579
2579
  observationSchema: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2580
2580
  discriminator: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2581
2581
  conflictPolicy: z.ZodEnum<{
2582
- manual: "manual";
2583
2582
  supersedes: "supersedes";
2583
+ manual: "manual";
2584
2584
  coexist: "coexist";
2585
2585
  }>;
2586
2586
  status: z.ZodOptional<z.ZodObject<{
@@ -2642,8 +2642,8 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2642
2642
  observationSchema: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2643
2643
  discriminator: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2644
2644
  conflictPolicy: z.ZodEnum<{
2645
- manual: "manual";
2646
2645
  supersedes: "supersedes";
2646
+ manual: "manual";
2647
2647
  coexist: "coexist";
2648
2648
  }>;
2649
2649
  status: z.ZodOptional<z.ZodObject<{
@@ -2735,7 +2735,6 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2735
2735
  request: z.ZodObject<{
2736
2736
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
2737
2737
  kind: z.ZodString;
2738
- createdAt: z.ZodOptional<z.ZodNumber>;
2739
2738
  schemaVersion: z.ZodString;
2740
2739
  scope: z.ZodObject<{
2741
2740
  level: z.ZodString;
@@ -2815,6 +2814,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2815
2814
  summary: z.ZodOptional<z.ZodString>;
2816
2815
  plaintext: z.ZodOptional<z.ZodString>;
2817
2816
  }, z.core.$strip>>;
2817
+ createdAt: z.ZodOptional<z.ZodNumber>;
2818
2818
  }, z.core.$strip>;
2819
2819
  response: z.ZodObject<{
2820
2820
  artifact: z.ZodObject<{
@@ -2917,7 +2917,6 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2917
2917
  revision: z.ZodObject<{
2918
2918
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
2919
2919
  kind: z.ZodString;
2920
- createdAt: z.ZodOptional<z.ZodNumber>;
2921
2920
  schemaVersion: z.ZodString;
2922
2921
  scope: z.ZodObject<{
2923
2922
  level: z.ZodString;
@@ -2997,6 +2996,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2997
2996
  summary: z.ZodOptional<z.ZodString>;
2998
2997
  plaintext: z.ZodOptional<z.ZodString>;
2999
2998
  }, z.core.$strip>>;
2999
+ createdAt: z.ZodOptional<z.ZodNumber>;
3000
3000
  }, z.core.$strip>;
3001
3001
  }, z.core.$strip>;
3002
3002
  response: z.ZodObject<{
@@ -3840,8 +3840,8 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
3840
3840
  observationSchema: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
3841
3841
  discriminator: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3842
3842
  conflictPolicy: z.ZodEnum<{
3843
- manual: "manual";
3844
3843
  supersedes: "supersedes";
3844
+ manual: "manual";
3845
3845
  coexist: "coexist";
3846
3846
  }>;
3847
3847
  status: z.ZodOptional<z.ZodObject<{
@@ -3903,8 +3903,8 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
3903
3903
  observationSchema: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
3904
3904
  discriminator: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3905
3905
  conflictPolicy: z.ZodEnum<{
3906
- manual: "manual";
3907
3906
  supersedes: "supersedes";
3907
+ manual: "manual";
3908
3908
  coexist: "coexist";
3909
3909
  }>;
3910
3910
  status: z.ZodOptional<z.ZodObject<{
@@ -3996,7 +3996,6 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
3996
3996
  request: z.ZodObject<{
3997
3997
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
3998
3998
  kind: z.ZodString;
3999
- createdAt: z.ZodOptional<z.ZodNumber>;
4000
3999
  schemaVersion: z.ZodString;
4001
4000
  scope: z.ZodObject<{
4002
4001
  level: z.ZodString;
@@ -4076,6 +4075,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4076
4075
  summary: z.ZodOptional<z.ZodString>;
4077
4076
  plaintext: z.ZodOptional<z.ZodString>;
4078
4077
  }, z.core.$strip>>;
4078
+ createdAt: z.ZodOptional<z.ZodNumber>;
4079
4079
  }, z.core.$strip>;
4080
4080
  response: z.ZodObject<{
4081
4081
  artifact: z.ZodObject<{
@@ -4178,7 +4178,6 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4178
4178
  revision: z.ZodObject<{
4179
4179
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
4180
4180
  kind: z.ZodString;
4181
- createdAt: z.ZodOptional<z.ZodNumber>;
4182
4181
  schemaVersion: z.ZodString;
4183
4182
  scope: z.ZodObject<{
4184
4183
  level: z.ZodString;
@@ -4258,6 +4257,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4258
4257
  summary: z.ZodOptional<z.ZodString>;
4259
4258
  plaintext: z.ZodOptional<z.ZodString>;
4260
4259
  }, z.core.$strip>>;
4260
+ createdAt: z.ZodOptional<z.ZodNumber>;
4261
4261
  }, z.core.$strip>;
4262
4262
  }, z.core.$strip>;
4263
4263
  response: z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { i as CliContribution } from "./types-D-bP8RRE.mjs";
2
- import { c as ExtensionInfo } from "./index-Da4ABgRq.mjs";
2
+ import { c as ExtensionInfo } from "./index-DdZ9PDEE.mjs";
3
3
  import { r as WindowRegistry } from "./window-registry-CfEi_Ji4.mjs";
4
4
  import { IMakaioBus } from "@makaio/framework/bus";
5
5
  import { ExtensionContributionProcessor, ExtensionService, ExtensionToken, MakaioExtension, NodeExtensionContext, StorageDialect, TrayManifest, VersionLiteral } from "@makaio/framework/contracts";
@@ -9,8 +9,8 @@ import { z } from "zod";
9
9
  * - `visible` — Model is usable and shown in the AgentPicker UI.
10
10
  */
11
11
  declare const ModelVisibilitySchema: z.ZodEnum<{
12
- enabled: "enabled";
13
12
  disabled: "disabled";
13
+ enabled: "enabled";
14
14
  visible: "visible";
15
15
  }>;
16
16
  type ModelVisibility = z.infer<typeof ModelVisibilitySchema>;
@@ -1,8 +1,8 @@
1
- import { F as ArtifactLifecycleHookRegistration$1, P as ArtifactLifecycleHookEvent, T as AnyArtifactKindDefinition, mt as ArtifactRevision$1 } from "./index-BHAOu6Hs.mjs";
1
+ import { F as ArtifactLifecycleHookRegistration$1, P as ArtifactLifecycleHookEvent, T as AnyArtifactKindDefinition, mt as ArtifactRevision$1 } from "./index-BFuke0jw.mjs";
2
2
  import { A as VersionRange, O as VersionLiteral$1, r as ClientDefinition$1 } from "./definition-BSghHJpQ.mjs";
3
3
  import { o as ProviderDefinitionInput$1, r as ProtocolId$1 } from "./definition-q6iLw11H.mjs";
4
4
  import { t as RequiredTimeoutConfig } from "./index-Bsp0O_sI.mjs";
5
- import { b as SESSION_EVENT_TYPES, i as MakaioSessionEvent$1, j as SessionMessage$1 } from "./types-BpuLMR2m.mjs";
5
+ import { b as SESSION_EVENT_TYPES, i as MakaioSessionEvent$1, j as SessionMessage$1 } from "./types-BOuU-0Vs.mjs";
6
6
  import { D as EntityUIConfig, I as FormFieldProps, Q as JsonValue$1 } from "./index-fVgKVvta.mjs";
7
7
  import { l as FacetNamespaceDefinition } from "./index-Bibt5jAX.mjs";
8
8
  import { t as SurfaceBindingDefinition } from "./definition-DqJOg6Lv.mjs";