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

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 (83) 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/clients/index.d.mts +5 -5
  6. package/dist/contracts/adapter/index.d.mts +1 -1
  7. package/dist/contracts/client/index.d.mts +1 -1
  8. package/dist/contracts/extension/index.d.mts +1 -1
  9. package/dist/contracts/harness/index.d.mts +1 -1
  10. package/dist/contracts/index.d.mts +62 -62
  11. package/dist/contracts/session/index.d.mts +2 -2
  12. package/dist/contracts/variant/index.d.mts +1 -1
  13. package/dist/inbound-hooks/index.d.mts +174 -0
  14. package/dist/inbound-hooks/index.mjs +1 -0
  15. package/dist/{index-CH5U3zSA2.d.mts → index-B4vJi_iM2.d.mts} +1 -1
  16. package/dist/{index-C3zfJg6s.d.mts → index-B6VdcJ5l.d.mts} +34 -34
  17. package/dist/{index-Da4ABgRq.d.mts → index-Cb0zGPMV.d.mts} +24 -24
  18. package/dist/{index-DPIdX6kb.d.mts → index-ChrHbhJV.d.mts} +99 -99
  19. package/dist/{index-BpXX9WZJ.d.mts → index-Ckm-R1Cr.d.mts} +6 -6
  20. package/dist/{index-BHzgDuRE.d.mts → index-D0Fupmhd.d.mts} +3 -3
  21. package/dist/{index-CTn_Xi-p.d.mts → index-DC6F_m3G.d.mts} +1 -1
  22. package/dist/{index-IekAD8Gp.d.mts → index-DhpOh71Z.d.mts} +4 -4
  23. package/dist/{index-DrGLAuZc.d.mts → index-Dtj6N2sx.d.mts} +2 -2
  24. package/dist/{index-BAhJKQLX.d.mts → index-EsXVjKsv.d.mts} +4 -4
  25. package/dist/{index-BDRKAxIV.d.mts → index-dAjtejnc.d.mts} +2 -2
  26. package/dist/kernel/extension/index.d.mts +1 -1
  27. package/dist/kernel/index.d.mts +2 -2
  28. package/dist/kernel/observability/index.d.mts +1 -1
  29. package/dist/{namespace-B73Sxj5L.d.mts → namespace-B03JE_ec.d.mts} +4 -4
  30. package/dist/{namespace-DRFJN-_z.d.mts → namespace-BGmNI3O1.d.mts} +2 -2
  31. package/dist/{namespace-BxxBhcV_.d.mts → namespace-BPlAuhc_.d.mts} +9 -9
  32. package/dist/{namespace-B60mn8J-2.d.mts → namespace-CtK3nKKj2.d.mts} +2 -2
  33. package/dist/{namespace-Boe6l5n9.d.mts → namespace-_Ii2qs15.d.mts} +42 -42
  34. package/dist/package.json +1 -1
  35. package/dist/runtime-node/index.d.mts +8 -59
  36. package/dist/runtime-node/index.mjs +26 -26
  37. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  38. package/dist/{schema-DGMLvVoQ.d.mts → schema-BJS05p13.d.mts} +2 -2
  39. package/dist/{schemas-Dv5FxHDT.d.mts → schemas-C2c64X6h.d.mts} +2 -2
  40. package/dist/{schemas-kVcJMjjn2.d.mts → schemas-CwF2K9N52.d.mts} +7 -7
  41. package/dist/services/agent-runtime/index.d.mts +2 -2
  42. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  43. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  44. package/dist/services/context-rules/index.d.mts +3 -3
  45. package/dist/services/execution-target/index.d.mts +1 -1
  46. package/dist/services/filesystem/namespace.d.mts +6 -6
  47. package/dist/services/filesystem/schemas.d.mts +3 -3
  48. package/dist/services/git/namespace.d.mts +2 -2
  49. package/dist/services/git/schemas.d.mts +1 -1
  50. package/dist/services/harness/index.d.mts +3 -3
  51. package/dist/services/index.d.mts +20 -20
  52. package/dist/services/session/index.d.mts +5 -5
  53. package/dist/services/session/messages/namespace.d.mts +1 -1
  54. package/dist/services/session/session-events/namespace.d.mts +1 -1
  55. package/dist/services/session/storage/namespace.d.mts +1 -1
  56. package/dist/services/session/storage/schema.d.mts +1 -1
  57. package/dist/services/settings/namespace.d.mts +4 -4
  58. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  59. package/dist/services/subagent-template/index.d.mts +2 -2
  60. package/dist/services/subagent-template/namespace.d.mts +1 -1
  61. package/dist/services/subagent-template/schemas.d.mts +1 -1
  62. package/dist/{types-BpuLMR2m.d.mts → types-CjrDiL2H.d.mts} +34 -34
  63. package/dist/workflow-engine/index.d.mts +30 -30
  64. package/package.json +9 -1
  65. package/dist/drizzle/0001_messages_content_tsv.na.md +0 -18
  66. package/dist/drizzle/meta/0000_snapshot.json +0 -2813
  67. package/dist/drizzle/meta/0001_snapshot.json +0 -2820
  68. package/dist/drizzle/meta/0002_snapshot.json +0 -2827
  69. package/dist/drizzle/meta/0003_snapshot.json +0 -2834
  70. package/dist/drizzle/meta/0004_snapshot.json +0 -2842
  71. package/dist/drizzle/meta/0005_snapshot.json +0 -2849
  72. package/dist/drizzle/meta/0006_snapshot.json +0 -2865
  73. package/dist/drizzle/meta/0007_snapshot.json +0 -2879
  74. package/dist/drizzle/meta/0008_snapshot.json +0 -2886
  75. package/dist/drizzle/meta/0009_snapshot.json +0 -2901
  76. package/dist/drizzle/meta/0010_snapshot.json +0 -2908
  77. package/dist/drizzle/meta/0011_snapshot.json +0 -2915
  78. package/dist/drizzle/meta/0012_snapshot.json +0 -2934
  79. package/dist/drizzle/meta/0013_snapshot.json +0 -2954
  80. package/dist/drizzle/meta/0014_snapshot.json +0 -2959
  81. package/dist/drizzle/meta/0015_snapshot.json +0 -2966
  82. package/dist/drizzle/meta/0016_snapshot.json +0 -2973
  83. package/dist/drizzle/meta/0017_snapshot.json +0 -2980
@@ -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,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-Cb0zGPMV.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";
@@ -17,8 +17,8 @@ declare const ClientExecutionContextSchema: z.ZodObject<{
17
17
  env: z.ZodRecord<z.ZodString, z.ZodString>;
18
18
  configDir: z.ZodNullable<z.ZodString>;
19
19
  source: z.ZodEnum<{
20
- global: "global";
21
20
  managed: "managed";
21
+ global: "global";
22
22
  }>;
23
23
  version: z.ZodNullable<z.ZodString>;
24
24
  }, z.core.$strip>;
@@ -39,8 +39,8 @@ declare const ClientResolveBinarySchema: {
39
39
  sessionId: z.ZodOptional<z.ZodString>;
40
40
  projectDir: z.ZodOptional<z.ZodString>;
41
41
  preferSource: z.ZodOptional<z.ZodEnum<{
42
- global: "global";
43
42
  managed: "managed";
43
+ global: "global";
44
44
  }>>;
45
45
  harnessId: z.ZodOptional<z.ZodString>;
46
46
  }, z.core.$strip>;
@@ -49,8 +49,8 @@ declare const ClientResolveBinarySchema: {
49
49
  env: z.ZodRecord<z.ZodString, z.ZodString>;
50
50
  configDir: z.ZodNullable<z.ZodString>;
51
51
  source: z.ZodEnum<{
52
- global: "global";
53
52
  managed: "managed";
53
+ global: "global";
54
54
  }>;
55
55
  version: z.ZodNullable<z.ZodString>;
56
56
  }, z.core.$strip>;
@@ -88,9 +88,9 @@ declare const ClientSchemas: {
88
88
  baseConfigDir: z.ZodOptional<z.ZodString>;
89
89
  projectDir: z.ZodOptional<z.ZodString>;
90
90
  configInheritance: z.ZodOptional<z.ZodEnum<{
91
- empty: "empty";
92
91
  "auth-only": "auth-only";
93
92
  full: "full";
93
+ empty: "empty";
94
94
  }>>;
95
95
  }, z.core.$strip>;
96
96
  response: z.ZodObject<{
@@ -220,8 +220,8 @@ declare const ClientSchemas: {
220
220
  clientId: z.ZodString;
221
221
  source: z.ZodObject<{
222
222
  layer: z.ZodEnum<{
223
- adapter: "adapter";
224
223
  supervisor: "supervisor";
224
+ adapter: "adapter";
225
225
  "client-hook": "client-hook";
226
226
  statusline: "statusline";
227
227
  "cli-wrapper": "cli-wrapper";
@@ -256,13 +256,13 @@ declare const ClientSchemas: {
256
256
  clientRuntimeId: z.ZodString;
257
257
  clientId: z.ZodString;
258
258
  status: z.ZodEnum<{
259
- started: "started";
260
259
  observed: "observed";
260
+ started: "started";
261
261
  }>;
262
262
  source: z.ZodObject<{
263
263
  layer: z.ZodEnum<{
264
- adapter: "adapter";
265
264
  supervisor: "supervisor";
265
+ adapter: "adapter";
266
266
  "client-hook": "client-hook";
267
267
  statusline: "statusline";
268
268
  "cli-wrapper": "cli-wrapper";
@@ -590,8 +590,8 @@ declare const ClientSchemas: {
590
590
  "signed-binary-bucket": "signed-binary-bucket";
591
591
  }>;
592
592
  stage: z.ZodEnum<{
593
- downloading: "downloading";
594
593
  resolving: "resolving";
594
+ downloading: "downloading";
595
595
  verifying: "verifying";
596
596
  extracting: "extracting";
597
597
  installing: "installing";
@@ -640,8 +640,8 @@ declare const ClientSchemas: {
640
640
  sessionId: z.ZodOptional<z.ZodString>;
641
641
  projectDir: z.ZodOptional<z.ZodString>;
642
642
  preferSource: z.ZodOptional<z.ZodEnum<{
643
- global: "global";
644
643
  managed: "managed";
644
+ global: "global";
645
645
  }>>;
646
646
  harnessId: z.ZodOptional<z.ZodString>;
647
647
  }, z.core.$strip>;
@@ -650,8 +650,8 @@ declare const ClientSchemas: {
650
650
  env: z.ZodRecord<z.ZodString, z.ZodString>;
651
651
  configDir: z.ZodNullable<z.ZodString>;
652
652
  source: z.ZodEnum<{
653
- global: "global";
654
653
  managed: "managed";
654
+ global: "global";
655
655
  }>;
656
656
  version: z.ZodNullable<z.ZodString>;
657
657
  }, z.core.$strip>;
@@ -1043,8 +1043,8 @@ type ClientSetActiveResponse = z.infer<typeof ClientSetActiveSchema.response>;
1043
1043
  * - `'activating'` — marking the installed version as active.
1044
1044
  */
1045
1045
  declare const InstallStageSchema: z.ZodEnum<{
1046
- downloading: "downloading";
1047
1046
  resolving: "resolving";
1047
+ downloading: "downloading";
1048
1048
  verifying: "verifying";
1049
1049
  extracting: "extracting";
1050
1050
  installing: "installing";
@@ -1067,8 +1067,8 @@ declare const ClientInstallProgressSchema: z.ZodObject<{
1067
1067
  "signed-binary-bucket": "signed-binary-bucket";
1068
1068
  }>;
1069
1069
  stage: z.ZodEnum<{
1070
- downloading: "downloading";
1071
1070
  resolving: "resolving";
1071
+ downloading: "downloading";
1072
1072
  verifying: "verifying";
1073
1073
  extracting: "extracting";
1074
1074
  installing: "installing";
@@ -1148,8 +1148,8 @@ type ClientVersionChanged = z.infer<typeof ClientVersionChangedSchema>;
1148
1148
  * - `'cli-wrapper'` — a thin CLI shim wrapping the client binary reported the signal
1149
1149
  */
1150
1150
  declare const ClientRuntimeSourceLayerSchema: z.ZodEnum<{
1151
- adapter: "adapter";
1152
1151
  supervisor: "supervisor";
1152
+ adapter: "adapter";
1153
1153
  "client-hook": "client-hook";
1154
1154
  statusline: "statusline";
1155
1155
  "cli-wrapper": "cli-wrapper";
@@ -1163,8 +1163,8 @@ type ClientRuntimeSourceLayer = z.infer<typeof ClientRuntimeSourceLayerSchema>;
1163
1163
  */
1164
1164
  declare const ClientRuntimeSourceSchema: z.ZodObject<{
1165
1165
  layer: z.ZodEnum<{
1166
- adapter: "adapter";
1167
1166
  supervisor: "supervisor";
1167
+ adapter: "adapter";
1168
1168
  "client-hook": "client-hook";
1169
1169
  statusline: "statusline";
1170
1170
  "cli-wrapper": "cli-wrapper";
@@ -1218,8 +1218,8 @@ declare const ClientRuntimeObserveSchema: {
1218
1218
  clientId: z.ZodString;
1219
1219
  source: z.ZodObject<{
1220
1220
  layer: z.ZodEnum<{
1221
- adapter: "adapter";
1222
1221
  supervisor: "supervisor";
1222
+ adapter: "adapter";
1223
1223
  "client-hook": "client-hook";
1224
1224
  statusline: "statusline";
1225
1225
  "cli-wrapper": "cli-wrapper";
@@ -1266,13 +1266,13 @@ declare const ClientRuntimeStartedSchema: z.ZodObject<{
1266
1266
  clientRuntimeId: z.ZodString;
1267
1267
  clientId: z.ZodString;
1268
1268
  status: z.ZodEnum<{
1269
- started: "started";
1270
1269
  observed: "observed";
1270
+ started: "started";
1271
1271
  }>;
1272
1272
  source: z.ZodObject<{
1273
1273
  layer: z.ZodEnum<{
1274
- adapter: "adapter";
1275
1274
  supervisor: "supervisor";
1275
+ adapter: "adapter";
1276
1276
  "client-hook": "client-hook";
1277
1277
  statusline: "statusline";
1278
1278
  "cli-wrapper": "cli-wrapper";
@@ -1480,9 +1480,9 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1480
1480
  baseConfigDir: _$zod.ZodOptional<_$zod.ZodString>;
1481
1481
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
1482
1482
  configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
1483
- empty: "empty";
1484
1483
  "auth-only": "auth-only";
1485
1484
  full: "full";
1485
+ empty: "empty";
1486
1486
  }>>;
1487
1487
  }, _$zod_v4_core0.$strip>;
1488
1488
  response: _$zod.ZodObject<{
@@ -1612,8 +1612,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1612
1612
  clientId: _$zod.ZodString;
1613
1613
  source: _$zod.ZodObject<{
1614
1614
  layer: _$zod.ZodEnum<{
1615
- adapter: "adapter";
1616
1615
  supervisor: "supervisor";
1616
+ adapter: "adapter";
1617
1617
  "client-hook": "client-hook";
1618
1618
  statusline: "statusline";
1619
1619
  "cli-wrapper": "cli-wrapper";
@@ -1648,13 +1648,13 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1648
1648
  clientRuntimeId: _$zod.ZodString;
1649
1649
  clientId: _$zod.ZodString;
1650
1650
  status: _$zod.ZodEnum<{
1651
- started: "started";
1652
1651
  observed: "observed";
1652
+ started: "started";
1653
1653
  }>;
1654
1654
  source: _$zod.ZodObject<{
1655
1655
  layer: _$zod.ZodEnum<{
1656
- adapter: "adapter";
1657
1656
  supervisor: "supervisor";
1657
+ adapter: "adapter";
1658
1658
  "client-hook": "client-hook";
1659
1659
  statusline: "statusline";
1660
1660
  "cli-wrapper": "cli-wrapper";
@@ -1966,8 +1966,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1966
1966
  "signed-binary-bucket": "signed-binary-bucket";
1967
1967
  }>;
1968
1968
  stage: _$zod.ZodEnum<{
1969
- downloading: "downloading";
1970
1969
  resolving: "resolving";
1970
+ downloading: "downloading";
1971
1971
  verifying: "verifying";
1972
1972
  extracting: "extracting";
1973
1973
  installing: "installing";
@@ -2016,8 +2016,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2016
2016
  sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2017
2017
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2018
2018
  preferSource: _$zod.ZodOptional<_$zod.ZodEnum<{
2019
- global: "global";
2020
2019
  managed: "managed";
2020
+ global: "global";
2021
2021
  }>>;
2022
2022
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
2023
2023
  }, _$zod_v4_core0.$strip>;
@@ -2026,8 +2026,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2026
2026
  env: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>;
2027
2027
  configDir: _$zod.ZodNullable<_$zod.ZodString>;
2028
2028
  source: _$zod.ZodEnum<{
2029
- global: "global";
2030
2029
  managed: "managed";
2030
+ global: "global";
2031
2031
  }>;
2032
2032
  version: _$zod.ZodNullable<_$zod.ZodString>;
2033
2033
  }, _$zod_v4_core0.$strip>;
@@ -2062,9 +2062,9 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2062
2062
  baseConfigDir: _$zod.ZodOptional<_$zod.ZodString>;
2063
2063
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2064
2064
  configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
2065
- empty: "empty";
2066
2065
  "auth-only": "auth-only";
2067
2066
  full: "full";
2067
+ empty: "empty";
2068
2068
  }>>;
2069
2069
  }, _$zod_v4_core0.$strip>;
2070
2070
  response: _$zod.ZodObject<{
@@ -2194,8 +2194,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2194
2194
  clientId: _$zod.ZodString;
2195
2195
  source: _$zod.ZodObject<{
2196
2196
  layer: _$zod.ZodEnum<{
2197
- adapter: "adapter";
2198
2197
  supervisor: "supervisor";
2198
+ adapter: "adapter";
2199
2199
  "client-hook": "client-hook";
2200
2200
  statusline: "statusline";
2201
2201
  "cli-wrapper": "cli-wrapper";
@@ -2230,13 +2230,13 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2230
2230
  clientRuntimeId: _$zod.ZodString;
2231
2231
  clientId: _$zod.ZodString;
2232
2232
  status: _$zod.ZodEnum<{
2233
- started: "started";
2234
2233
  observed: "observed";
2234
+ started: "started";
2235
2235
  }>;
2236
2236
  source: _$zod.ZodObject<{
2237
2237
  layer: _$zod.ZodEnum<{
2238
- adapter: "adapter";
2239
2238
  supervisor: "supervisor";
2239
+ adapter: "adapter";
2240
2240
  "client-hook": "client-hook";
2241
2241
  statusline: "statusline";
2242
2242
  "cli-wrapper": "cli-wrapper";
@@ -2548,8 +2548,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2548
2548
  "signed-binary-bucket": "signed-binary-bucket";
2549
2549
  }>;
2550
2550
  stage: _$zod.ZodEnum<{
2551
- downloading: "downloading";
2552
2551
  resolving: "resolving";
2552
+ downloading: "downloading";
2553
2553
  verifying: "verifying";
2554
2554
  extracting: "extracting";
2555
2555
  installing: "installing";
@@ -2598,8 +2598,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2598
2598
  sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2599
2599
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2600
2600
  preferSource: _$zod.ZodOptional<_$zod.ZodEnum<{
2601
- global: "global";
2602
2601
  managed: "managed";
2602
+ global: "global";
2603
2603
  }>>;
2604
2604
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
2605
2605
  }, _$zod_v4_core0.$strip>;
@@ -2608,8 +2608,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2608
2608
  env: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>;
2609
2609
  configDir: _$zod.ZodNullable<_$zod.ZodString>;
2610
2610
  source: _$zod.ZodEnum<{
2611
- global: "global";
2612
2611
  managed: "managed";
2612
+ global: "global";
2613
2613
  }>;
2614
2614
  version: _$zod.ZodNullable<_$zod.ZodString>;
2615
2615
  }, _$zod_v4_core0.$strip>;
@@ -2668,9 +2668,9 @@ declare const SessionConfigEnvSchema: z.ZodRecord<z.ZodString, z.ZodString>;
2668
2668
  * Policy for materializing a session config directory from a base client config.
2669
2669
  */
2670
2670
  declare const SessionConfigInheritanceSchema: z.ZodEnum<{
2671
- empty: "empty";
2672
2671
  "auth-only": "auth-only";
2673
2672
  full: "full";
2673
+ empty: "empty";
2674
2674
  }>;
2675
2675
  type SessionConfigInheritance = z.infer<typeof SessionConfigInheritanceSchema>;
2676
2676
  /**
@@ -2825,9 +2825,9 @@ declare const ClientSessionConfigSchemas: {
2825
2825
  baseConfigDir: z.ZodOptional<z.ZodString>;
2826
2826
  projectDir: z.ZodOptional<z.ZodString>;
2827
2827
  configInheritance: z.ZodOptional<z.ZodEnum<{
2828
- empty: "empty";
2829
2828
  "auth-only": "auth-only";
2830
2829
  full: "full";
2830
+ empty: "empty";
2831
2831
  }>>;
2832
2832
  }, z.core.$strip>;
2833
2833
  response: z.ZodObject<{
@@ -2880,9 +2880,9 @@ declare const SessionConfigSetupRequestSchema: z.ZodObject<{
2880
2880
  win32: "win32";
2881
2881
  }>;
2882
2882
  configInheritance: z.ZodEnum<{
2883
- empty: "empty";
2884
2883
  "auth-only": "auth-only";
2885
2884
  full: "full";
2885
+ empty: "empty";
2886
2886
  }>;
2887
2887
  }, z.core.$strip>;
2888
2888
  type SessionConfigSetupRequest = z.infer<typeof SessionConfigSetupRequestSchema>;
@@ -18,10 +18,10 @@ import { ExtensionWarningEntry, ExtensionWarningEntrySchema } from "@makaio/fram
18
18
  * detail, not an externally observable state.
19
19
  */
20
20
  declare const ComponentStateSchema: z.ZodEnum<{
21
+ stopped: "stopped";
21
22
  failed: "failed";
22
- discovered: "discovered";
23
23
  active: "active";
24
- stopped: "stopped";
24
+ discovered: "discovered";
25
25
  skipped: "skipped";
26
26
  initializing: "initializing";
27
27
  }>;
@@ -47,10 +47,10 @@ declare const ComponentInfoSchema: z.ZodObject<{
47
47
  name: z.ZodString;
48
48
  displayName: z.ZodString;
49
49
  state: z.ZodEnum<{
50
+ stopped: "stopped";
50
51
  failed: "failed";
51
- discovered: "discovered";
52
52
  active: "active";
53
- stopped: "stopped";
53
+ discovered: "discovered";
54
54
  skipped: "skipped";
55
55
  initializing: "initializing";
56
56
  }>;
@@ -68,10 +68,10 @@ declare const ServiceInfoSchema: z.ZodObject<{
68
68
  name: z.ZodString;
69
69
  displayName: z.ZodString;
70
70
  state: z.ZodEnum<{
71
+ stopped: "stopped";
71
72
  failed: "failed";
72
- discovered: "discovered";
73
73
  active: "active";
74
- stopped: "stopped";
74
+ discovered: "discovered";
75
75
  skipped: "skipped";
76
76
  initializing: "initializing";
77
77
  }>;
@@ -90,10 +90,10 @@ declare const ExtensionInfoSchema: z.ZodObject<{
90
90
  name: z.ZodString;
91
91
  displayName: z.ZodString;
92
92
  state: z.ZodEnum<{
93
+ stopped: "stopped";
93
94
  failed: "failed";
94
- discovered: "discovered";
95
95
  active: "active";
96
- stopped: "stopped";
96
+ discovered: "discovered";
97
97
  skipped: "skipped";
98
98
  initializing: "initializing";
99
99
  }>;
@@ -138,18 +138,18 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
138
138
  name: z.ZodString;
139
139
  displayName: z.ZodString;
140
140
  from: z.ZodEnum<{
141
+ stopped: "stopped";
141
142
  failed: "failed";
142
- discovered: "discovered";
143
143
  active: "active";
144
- stopped: "stopped";
144
+ discovered: "discovered";
145
145
  skipped: "skipped";
146
146
  initializing: "initializing";
147
147
  }>;
148
148
  to: z.ZodEnum<{
149
+ stopped: "stopped";
149
150
  failed: "failed";
150
- discovered: "discovered";
151
151
  active: "active";
152
- stopped: "stopped";
152
+ discovered: "discovered";
153
153
  skipped: "skipped";
154
154
  initializing: "initializing";
155
155
  }>;
@@ -181,10 +181,10 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
181
181
  name: z.ZodString;
182
182
  displayName: z.ZodString;
183
183
  state: z.ZodEnum<{
184
+ stopped: "stopped";
184
185
  failed: "failed";
185
- discovered: "discovered";
186
186
  active: "active";
187
- stopped: "stopped";
187
+ discovered: "discovered";
188
188
  skipped: "skipped";
189
189
  initializing: "initializing";
190
190
  }>;
@@ -219,10 +219,10 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
219
219
  name: z.ZodString;
220
220
  displayName: z.ZodString;
221
221
  state: z.ZodEnum<{
222
+ stopped: "stopped";
222
223
  failed: "failed";
223
- discovered: "discovered";
224
224
  active: "active";
225
- stopped: "stopped";
225
+ discovered: "discovered";
226
226
  skipped: "skipped";
227
227
  initializing: "initializing";
228
228
  }>;
@@ -592,18 +592,18 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
592
592
  name: z.ZodString;
593
593
  displayName: z.ZodString;
594
594
  from: z.ZodEnum<{
595
+ stopped: "stopped";
595
596
  failed: "failed";
596
- discovered: "discovered";
597
597
  active: "active";
598
- stopped: "stopped";
598
+ discovered: "discovered";
599
599
  skipped: "skipped";
600
600
  initializing: "initializing";
601
601
  }>;
602
602
  to: z.ZodEnum<{
603
+ stopped: "stopped";
603
604
  failed: "failed";
604
- discovered: "discovered";
605
605
  active: "active";
606
- stopped: "stopped";
606
+ discovered: "discovered";
607
607
  skipped: "skipped";
608
608
  initializing: "initializing";
609
609
  }>;
@@ -635,10 +635,10 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
635
635
  name: z.ZodString;
636
636
  displayName: z.ZodString;
637
637
  state: z.ZodEnum<{
638
+ stopped: "stopped";
638
639
  failed: "failed";
639
- discovered: "discovered";
640
640
  active: "active";
641
- stopped: "stopped";
641
+ discovered: "discovered";
642
642
  skipped: "skipped";
643
643
  initializing: "initializing";
644
644
  }>;
@@ -673,10 +673,10 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
673
673
  name: z.ZodString;
674
674
  displayName: z.ZodString;
675
675
  state: z.ZodEnum<{
676
+ stopped: "stopped";
676
677
  failed: "failed";
677
- discovered: "discovered";
678
678
  active: "active";
679
- stopped: "stopped";
679
+ discovered: "discovered";
680
680
  skipped: "skipped";
681
681
  initializing: "initializing";
682
682
  }>;