@makaio/framework 1.0.0-dev-1790175294701 → 1.0.0-dev-1790348008233

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 (88) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/artifact-eleyznpA.mjs +1 -0
  3. package/dist/bus/index.mjs +1 -1
  4. package/dist/bus-DgpPEPoM.mjs +9 -0
  5. package/dist/contracts/adapter/index.d.mts +2 -2
  6. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  7. package/dist/contracts/artifact/index.d.mts +3 -3
  8. package/dist/contracts/artifact/index.mjs +1 -1
  9. package/dist/contracts/automation-trigger/index.d.mts +1 -1
  10. package/dist/contracts/capabilities/index.d.mts +1 -1
  11. package/dist/contracts/client/index.d.mts +2 -2
  12. package/dist/contracts/extension/index.d.mts +4 -4
  13. package/dist/contracts/facet/index.d.mts +1 -1
  14. package/dist/contracts/index.d.mts +70 -70
  15. package/dist/contracts/index.mjs +1 -1
  16. package/dist/contracts/materialization/index.d.mts +3 -3
  17. package/dist/contracts/materialization/index.mjs +1 -1
  18. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  19. package/dist/contracts/reaction/index.d.mts +1 -1
  20. package/dist/contracts/session/index.d.mts +2 -2
  21. package/dist/contracts/variant/index.d.mts +1 -1
  22. package/dist/contracts/worker/index.d.mts +1 -1
  23. package/dist/contracts/worker/index.mjs +1 -1
  24. package/dist/contracts/workflow/index.d.mts +2 -2
  25. package/dist/contracts/workflow/index.mjs +1 -1
  26. package/dist/{contribution-DTb65rRN.d.mts → contribution-kpR61mnG.d.mts} +1 -1
  27. package/dist/{extension-context-DH84KOm9.d.mts → extension-context-CmhBCbbq.d.mts} +3 -3
  28. package/dist/{hook-responses-OETFKaAL.d.mts → hook-responses-C3nUIm-6.d.mts} +1 -1
  29. package/dist/{index-9O8N514B2.d.mts → index-6UlianLY2.d.mts} +4 -4
  30. package/dist/{index-CVRQS5jk.d.mts → index-BM53WQaQ.d.mts} +1 -1
  31. package/dist/{index-BRXETFym.d.mts → index-BMGkU3IM.d.mts} +1 -1
  32. package/dist/{index-Csua5M_M2.d.mts → index-Bmb7jPIe2.d.mts} +8 -8
  33. package/dist/{index-2YW8DTb62.d.mts → index-C9Dz8UoK2.d.mts} +6 -6
  34. package/dist/{index-DIEnLLhi2.d.mts → index-CCTrhWEB2.d.mts} +5 -5
  35. package/dist/{index-DxtUM-qd.d.mts → index-CLwnkYRD.d.mts} +1 -1
  36. package/dist/{index-Mk478DlF.d.mts → index-CRk46fit.d.mts} +9 -9
  37. package/dist/{index-Bgz81LHZ.d.mts → index-Cuz4nfUz.d.mts} +1 -1
  38. package/dist/{index-BMr77str2.d.mts → index-CydQ1dLS2.d.mts} +12 -12
  39. package/dist/{index-BgkQiruC.d.mts → index-D5BLD2Pw.d.mts} +7 -7
  40. package/dist/{index-B1iXL1pW.d.mts → index-D5Lw1UsO.d.mts} +8 -8
  41. package/dist/{index-BusmMFMN.d.mts → index-D5ihXDAA.d.mts} +48 -11
  42. package/dist/{index-Cu8k2ZGe.d.mts → index-DMBxHEQ_.d.mts} +30 -30
  43. package/dist/{index-DWKSiTxX.d.mts → index-DYnahvOm.d.mts} +20 -20
  44. package/dist/{index-7pt_bh4z.d.mts → index-DifOjlJ5.d.mts} +37 -37
  45. package/dist/{index-BVN64wQx.d.mts → index-HN4m0hiI.d.mts} +28 -28
  46. package/dist/{index-D8V1DhrY.d.mts → index-wiATEDG_.d.mts} +377 -279
  47. package/dist/kernel/extension/index.d.mts +2 -2
  48. package/dist/kernel/index.d.mts +2 -2
  49. package/dist/kernel/observability/index.d.mts +1 -1
  50. package/dist/{materialization-iFhpbs1s.mjs → materialization-CIrHHspa.mjs} +4 -1
  51. package/dist/{namespace-B9iQN3FQ.d.mts → namespace-C5tKjqgb.d.mts} +4 -4
  52. package/dist/{namespace-h7gq_v5U.d.mts → namespace-CHSwZhH7.d.mts} +2 -2
  53. package/dist/{namespace-DAzOxaux.d.mts → namespace-D6W4Erwp.d.mts} +2 -2
  54. package/dist/package.json +1 -1
  55. package/dist/{schemas-BTJvvq9Y.d.mts → schemas-BXkSHQaF.d.mts} +2 -2
  56. package/dist/{schemas-Dec5VtBU.d.mts → schemas-CYjPZwlQ.d.mts} +4 -4
  57. package/dist/{schemas-CBDNnyz4.d.mts → schemas-Cb9OJ9va.d.mts} +1 -1
  58. package/dist/services/adapter-runtime/index.d.mts +3 -3
  59. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  60. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  61. package/dist/services/context-rules/index.d.mts +3 -3
  62. package/dist/services/execution-target/index.d.mts +2 -2
  63. package/dist/services/execution-target/namespace.d.mts +1 -1
  64. package/dist/services/execution-target/schemas.d.mts +1 -1
  65. package/dist/services/filesystem/namespace.d.mts +12 -12
  66. package/dist/services/filesystem/schemas.d.mts +6 -6
  67. package/dist/services/git/namespace.d.mts +4 -4
  68. package/dist/services/git/schemas.d.mts +3 -3
  69. package/dist/services/index.d.mts +27 -23
  70. package/dist/services/index.mjs +1 -1
  71. package/dist/services/session/handlers/index.d.mts +1 -1
  72. package/dist/services/session/index.d.mts +3 -3
  73. package/dist/services/session/messages/namespace.d.mts +1 -1
  74. package/dist/services/settings/namespace.d.mts +4 -4
  75. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  76. package/dist/services/subagent-template/index.d.mts +1 -1
  77. package/dist/services/subagent-template/schemas.d.mts +1 -1
  78. package/dist/{session-lineage-BQ9NWlt6.d.mts → session-lineage-CmP7L5g2.d.mts} +1 -1
  79. package/dist/{transition-CSN6QoMp.d.mts → transition-B0qsutdE.d.mts} +1 -1
  80. package/dist/{types-DTpwvvY9.d.mts → types-DfbdwLQ6.d.mts} +3 -3
  81. package/dist/{view-builder-cjQZJmTY.d.mts → view-builder-Zw-TCgSp.d.mts} +10 -10
  82. package/dist/{worker-B72n8bse.mjs → worker-DyyO9DCO.mjs} +1 -1
  83. package/dist/{workflow-D-X3rPsl.mjs → workflow-B0ZGun4r.mjs} +1 -1
  84. package/dist/workflow-engine/index.d.mts +24 -24
  85. package/package.json +1 -1
  86. package/dist/artifact-CKz9YQPu.mjs +0 -1
  87. package/dist/bus-30AlabEz.mjs +0 -9
  88. package/dist/{schemas-CU2NE5Lg.d.mts → schemas-rliUGyrt.d.mts} +1 -1
@@ -32,8 +32,8 @@ declare const FacetCardinalitySchema: z.ZodEnum<{
32
32
  * - `'surface'` — a UI surface or layout area
33
33
  */
34
34
  declare const FacetAppliesToSchema: z.ZodEnum<{
35
- workpiece: "workpiece";
36
35
  artifact: "artifact";
36
+ workpiece: "workpiece";
37
37
  surface: "surface";
38
38
  }>;
39
39
  /**
@@ -57,8 +57,8 @@ declare const FacetNamespaceRegistrationSchema: z.ZodObject<{
57
57
  human: "human";
58
58
  }>>>;
59
59
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
60
- workpiece: "workpiece";
61
60
  artifact: "artifact";
61
+ workpiece: "workpiece";
62
62
  surface: "surface";
63
63
  }>>>;
64
64
  description: z.ZodOptional<z.ZodString>;
@@ -161,8 +161,8 @@ declare const FacetSchemas: {
161
161
  human: "human";
162
162
  }>>>;
163
163
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
164
- workpiece: "workpiece";
165
164
  artifact: "artifact";
165
+ workpiece: "workpiece";
166
166
  surface: "surface";
167
167
  }>>>;
168
168
  description: z.ZodOptional<z.ZodString>;
@@ -189,8 +189,8 @@ declare const FacetSchemas: {
189
189
  human: "human";
190
190
  }>>>;
191
191
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
192
- workpiece: "workpiece";
193
192
  artifact: "artifact";
193
+ workpiece: "workpiece";
194
194
  surface: "surface";
195
195
  }>>>;
196
196
  description: z.ZodOptional<z.ZodString>;
@@ -227,8 +227,8 @@ declare const FacetNamespace: _$_makaio_core0.BusNamespaceDefinition<"facet", {
227
227
  human: "human";
228
228
  }>>>;
229
229
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
230
- workpiece: "workpiece";
231
230
  artifact: "artifact";
231
+ workpiece: "workpiece";
232
232
  surface: "surface";
233
233
  }>>>;
234
234
  description: z.ZodOptional<z.ZodString>;
@@ -255,8 +255,8 @@ declare const FacetNamespace: _$_makaio_core0.BusNamespaceDefinition<"facet", {
255
255
  human: "human";
256
256
  }>>>;
257
257
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
258
- workpiece: "workpiece";
259
258
  artifact: "artifact";
259
+ workpiece: "workpiece";
260
260
  surface: "surface";
261
261
  }>>>;
262
262
  description: z.ZodOptional<z.ZodString>;
@@ -299,8 +299,8 @@ declare const FacetSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
299
299
  human: "human";
300
300
  }>>>;
301
301
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
302
- workpiece: "workpiece";
303
302
  artifact: "artifact";
303
+ workpiece: "workpiece";
304
304
  surface: "surface";
305
305
  }>>>;
306
306
  description: z.ZodOptional<z.ZodString>;
@@ -327,8 +327,8 @@ declare const FacetSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
327
327
  human: "human";
328
328
  }>>>;
329
329
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
330
- workpiece: "workpiece";
331
330
  artifact: "artifact";
331
+ workpiece: "workpiece";
332
332
  surface: "surface";
333
333
  }>>>;
334
334
  description: z.ZodOptional<z.ZodString>;
@@ -128,8 +128,8 @@ declare const NativeSessionSupervisorNamespace: _$_makaio_core0.BusNamespaceDefi
128
128
  pid: _$zod.ZodNullable<_$zod.ZodNumber>;
129
129
  status: _$zod.ZodEnum<{
130
130
  unknown: "unknown";
131
- exited: "exited";
132
131
  running: "running";
132
+ exited: "exited";
133
133
  stopped: "stopped";
134
134
  }>;
135
135
  cwd: _$zod.ZodString;
@@ -271,8 +271,8 @@ declare const NativeSessionSupervisorSubjects: _$_makaio_core0.BusSubjects<_$_ma
271
271
  pid: _$zod.ZodNullable<_$zod.ZodNumber>;
272
272
  status: _$zod.ZodEnum<{
273
273
  unknown: "unknown";
274
- exited: "exited";
275
274
  running: "running";
275
+ exited: "exited";
276
276
  stopped: "stopped";
277
277
  }>;
278
278
  cwd: _$zod.ZodString;
@@ -296,8 +296,8 @@ declare const NativeSessionSupervisorSubjects: _$_makaio_core0.BusSubjects<_$_ma
296
296
  */
297
297
  declare const SupervisorSessionStatusSchema: z.ZodEnum<{
298
298
  unknown: "unknown";
299
- exited: "exited";
300
299
  running: "running";
300
+ exited: "exited";
301
301
  stopped: "stopped";
302
302
  }>;
303
303
  type SupervisorSessionStatus = z.infer<typeof SupervisorSessionStatusSchema>;
@@ -455,8 +455,8 @@ declare const SupervisorRuntimeSnapshotSchema: z.ZodObject<{
455
455
  pid: z.ZodNullable<z.ZodNumber>;
456
456
  status: z.ZodEnum<{
457
457
  unknown: "unknown";
458
- exited: "exited";
459
458
  running: "running";
459
+ exited: "exited";
460
460
  stopped: "stopped";
461
461
  }>;
462
462
  cwd: z.ZodString;
@@ -496,8 +496,8 @@ declare const NativeSupervisorStatusSchema: {
496
496
  pid: z.ZodNullable<z.ZodNumber>;
497
497
  status: z.ZodEnum<{
498
498
  unknown: "unknown";
499
- exited: "exited";
500
499
  running: "running";
500
+ exited: "exited";
501
501
  stopped: "stopped";
502
502
  }>;
503
503
  cwd: z.ZodString;
@@ -630,8 +630,8 @@ declare const NativeSessionSupervisorSchemas: {
630
630
  pid: z.ZodNullable<z.ZodNumber>;
631
631
  status: z.ZodEnum<{
632
632
  unknown: "unknown";
633
- exited: "exited";
634
633
  running: "running";
634
+ exited: "exited";
635
635
  stopped: "stopped";
636
636
  }>;
637
637
  cwd: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { Hn as BranchKind$1, bn as SessionMessage$1 } from "./types-DTpwvvY9.mjs";
1
+ import { Hn as BranchKind$1, bn as SessionMessage$1 } from "./types-DfbdwLQ6.mjs";
2
2
  import { o as Message$1 } from "./index-DDCixELI.mjs";
3
3
  import { t as ContractStorageNamespaceDefinition } from "./storage-namespace-definition-DV3IipmH.mjs";
4
4
  import * as _$zod from "zod";
@@ -4003,8 +4003,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
4003
4003
  maxTokens: _$zod.ZodNumber;
4004
4004
  percentage: _$zod.ZodNumber;
4005
4005
  level: _$zod.ZodEnum<{
4006
- warn: "warn";
4007
4006
  ok: "ok";
4007
+ warn: "warn";
4008
4008
  critical: "critical";
4009
4009
  }>;
4010
4010
  lastUpdatedAt: _$zod.ZodNumber;
@@ -9120,8 +9120,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
9120
9120
  maxTokens: _$zod.ZodNumber;
9121
9121
  percentage: _$zod.ZodNumber;
9122
9122
  level: _$zod.ZodEnum<{
9123
- warn: "warn";
9124
9123
  ok: "ok";
9124
+ warn: "warn";
9125
9125
  critical: "critical";
9126
9126
  }>;
9127
9127
  lastUpdatedAt: _$zod.ZodNumber;
@@ -11067,8 +11067,8 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
11067
11067
  isError: z.ZodOptional<z.ZodBoolean>;
11068
11068
  }, z.core.$strip>], "type">>;
11069
11069
  agentId: z.ZodOptional<z.ZodString>;
11070
- turnId: z.ZodNullable<z.ZodString>;
11071
11070
  adapterSessionId: z.ZodOptional<z.ZodString>;
11071
+ turnId: z.ZodNullable<z.ZodString>;
11072
11072
  timestamp: z.ZodNumber;
11073
11073
  contentText: z.ZodString;
11074
11074
  adapterMessageId: z.ZodOptional<z.ZodString>;
@@ -11915,8 +11915,8 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
11915
11915
  isError: z.ZodOptional<z.ZodBoolean>;
11916
11916
  }, z.core.$strip>], "type">>;
11917
11917
  agentId: z.ZodOptional<z.ZodString>;
11918
- turnId: z.ZodNullable<z.ZodString>;
11919
11918
  adapterSessionId: z.ZodOptional<z.ZodString>;
11919
+ turnId: z.ZodNullable<z.ZodString>;
11920
11920
  timestamp: z.ZodNumber;
11921
11921
  contentText: z.ZodString;
11922
11922
  adapterMessageId: z.ZodOptional<z.ZodString>;
@@ -1,4 +1,4 @@
1
- import { r as ExecutionTarget } from "./schemas-BTJvvq9Y.mjs";
1
+ import { r as ExecutionTarget } from "./schemas-BXkSHQaF.mjs";
2
2
  import { IMakaioSession, MakaioSessionAgent, Message, MessageInput, MessageOutcome, ReasoningLevelMap, ResponseSchemaDescriptor, SessionContext, SessionOwnershipRecoveryGuard, TurnInitiator } from "@makaio/framework/contracts";
3
3
  import { IMakaioBus } from "@makaio/framework/bus";
4
4
 
@@ -1,17 +1,17 @@
1
- import { sr as AnyArtifactKindDefinition, vr as ArtifactLifecycleHookEvent, yr as ArtifactLifecycleHookRegistration$1 } from "./index-D8V1DhrY.mjs";
1
+ import { Tr as ArtifactLifecycleHookRegistration$1, pr as AnyArtifactKindDefinition, wr as ArtifactLifecycleHookEvent } from "./index-wiATEDG_.mjs";
2
2
  import { l as JsonValue$1 } from "./json-value--pv1-OHx.mjs";
3
3
  import { s as AdapterProviderAuth$1 } from "./adapter-binding-DF-j-XHg.mjs";
4
- import { a as ExtensionService$1, n as ExtensionContext$1, r as NodeExtensionContext$1 } from "./extension-context-DH84KOm9.mjs";
5
- import { t as ExtensionAutomationTriggersContribution } from "./contribution-DTb65rRN.mjs";
6
- import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-CSN6QoMp.mjs";
7
- import { k as ClientDefinition$1, m as ExtensionClientHookResponsesContribution, rt as VersionRange, tt as VersionLiteral$1 } from "./hook-responses-OETFKaAL.mjs";
4
+ import { a as ExtensionService$1, n as ExtensionContext$1, r as NodeExtensionContext$1 } from "./extension-context-CmhBCbbq.mjs";
5
+ import { t as ExtensionAutomationTriggersContribution } from "./contribution-kpR61mnG.mjs";
6
+ import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-B0qsutdE.mjs";
7
+ import { k as ClientDefinition$1, m as ExtensionClientHookResponsesContribution, rt as VersionRange, tt as VersionLiteral$1 } from "./hook-responses-C3nUIm-6.mjs";
8
8
  import { c as ProviderDefinitionInput$1, r as ProtocolId$1 } from "./definition-D2SO1tX-.mjs";
9
9
  import { t as RequiredTimeoutConfig } from "./index-DOui-7u2.mjs";
10
- import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-DTpwvvY9.mjs";
10
+ import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-DfbdwLQ6.mjs";
11
11
  import { D as EntityUIConfig$1, I as FormFieldProps } from "./index-DDCixELI.mjs";
12
- import { l as FacetNamespaceDefinition } from "./index-Csua5M_M2.mjs";
13
- import { t as ExtensionReactionsContribution } from "./index-BRXETFym.mjs";
14
- import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-cjQZJmTY.mjs";
12
+ import { l as FacetNamespaceDefinition } from "./index-Bmb7jPIe2.mjs";
13
+ import { t as ExtensionReactionsContribution } from "./index-BMGkU3IM.mjs";
14
+ import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-Zw-TCgSp.mjs";
15
15
  import { z } from "zod";
16
16
  import { MakaioBusLike, PayloadFilter, RegistrableBusNamespaceDefinition, SubjectSchema } from "@makaio/framework/core";
17
17
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
@@ -1,5 +1,5 @@
1
1
  import { i as CliContribution } from "./types-D7WtaoMR.mjs";
2
- import { a as InstalledExtensionRecord, d as TransitionOutcome, l as SetEnabledReason, v as ExtensionInfo } from "./index-BVN64wQx.mjs";
2
+ import { a as InstalledExtensionRecord, d as TransitionOutcome, l as SetEnabledReason, v as ExtensionInfo } from "./index-HN4m0hiI.mjs";
3
3
  import { r as WindowRegistry } from "./window-registry-1jI3f9ir.mjs";
4
4
  import { z } from "zod";
5
5
  import { MakaioError } from "@makaio/framework/core";
@@ -28,8 +28,8 @@ declare const WorkerBootstrapGrantedClaimResponseSchema: z.ZodObject<{
28
28
  /** Non-secret refusals shared with start authorization plus remote claim eligibility. */
29
29
  declare const WorkerBootstrapClaimRefusalReasonSchema: z.ZodEnum<{
30
30
  resolved: "resolved";
31
- fenced: "fenced";
32
31
  "not-found": "not-found";
32
+ fenced: "fenced";
33
33
  "allocation-terminated": "allocation-terminated";
34
34
  "gate-closed": "gate-closed";
35
35
  "bootstrap-expired": "bootstrap-expired";
@@ -51,8 +51,8 @@ declare const WorkerBootstrapClaimResponseSchema: z.ZodDiscriminatedUnion<[z.Zod
51
51
  status: z.ZodLiteral<"refused">;
52
52
  reason: z.ZodEnum<{
53
53
  resolved: "resolved";
54
- fenced: "fenced";
55
54
  "not-found": "not-found";
55
+ fenced: "fenced";
56
56
  "allocation-terminated": "allocation-terminated";
57
57
  "gate-closed": "gate-closed";
58
58
  "bootstrap-expired": "bootstrap-expired";
@@ -281,8 +281,8 @@ declare const WorkerDispatchRequestSchema: z.ZodObject<{
281
281
  "exit-and-resume": "exit-and-resume";
282
282
  }>>;
283
283
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
284
- authority: "authority";
285
284
  worker: "worker";
285
+ authority: "authority";
286
286
  }>>;
287
287
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
288
288
  kind: z.ZodLiteral<"local-directory">;
@@ -523,8 +523,8 @@ declare const WorkerSchemas$1: {
523
523
  "exit-and-resume": "exit-and-resume";
524
524
  }>>;
525
525
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
526
- authority: "authority";
527
526
  worker: "worker";
527
+ authority: "authority";
528
528
  }>>;
529
529
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
530
530
  kind: z.ZodLiteral<"local-directory">;
@@ -781,9 +781,9 @@ declare const WorkerSchemas$1: {
781
781
  response: z.ZodObject<{
782
782
  decision: z.ZodEnum<{
783
783
  accepted: "accepted";
784
+ fenced: "fenced";
784
785
  duplicate: "duplicate";
785
786
  conflict: "conflict";
786
- fenced: "fenced";
787
787
  }>;
788
788
  }, z.core.$strict>;
789
789
  };
@@ -816,8 +816,8 @@ declare const WorkerSchemas$1: {
816
816
  status: z.ZodLiteral<"refused">;
817
817
  reason: z.ZodEnum<{
818
818
  resolved: "resolved";
819
- fenced: "fenced";
820
819
  "not-found": "not-found";
820
+ fenced: "fenced";
821
821
  "allocation-terminated": "allocation-terminated";
822
822
  "gate-closed": "gate-closed";
823
823
  "bootstrap-expired": "bootstrap-expired";
@@ -1147,8 +1147,8 @@ declare const WorkerNamespace: _$_makaio_core0.BusNamespaceDefinition<"worker",
1147
1147
  "exit-and-resume": "exit-and-resume";
1148
1148
  }>>;
1149
1149
  terminalAuthority: _$zod.ZodOptional<_$zod.ZodEnum<{
1150
- authority: "authority";
1151
1150
  worker: "worker";
1151
+ authority: "authority";
1152
1152
  }>>;
1153
1153
  materializationSpec: _$zod.ZodOptional<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1154
1154
  kind: _$zod.ZodLiteral<"local-directory">;
@@ -1385,9 +1385,9 @@ declare const WorkerNamespace: _$_makaio_core0.BusNamespaceDefinition<"worker",
1385
1385
  response: _$zod.ZodObject<{
1386
1386
  decision: _$zod.ZodEnum<{
1387
1387
  accepted: "accepted";
1388
+ fenced: "fenced";
1388
1389
  duplicate: "duplicate";
1389
1390
  conflict: "conflict";
1390
- fenced: "fenced";
1391
1391
  }>;
1392
1392
  }, _$zod_v4_core0.$strict>;
1393
1393
  };
@@ -1409,8 +1409,8 @@ declare const WorkerNamespace: _$_makaio_core0.BusNamespaceDefinition<"worker",
1409
1409
  status: _$zod.ZodLiteral<"refused">;
1410
1410
  reason: _$zod.ZodEnum<{
1411
1411
  resolved: "resolved";
1412
- fenced: "fenced";
1413
1412
  "not-found": "not-found";
1413
+ fenced: "fenced";
1414
1414
  "allocation-terminated": "allocation-terminated";
1415
1415
  "gate-closed": "gate-closed";
1416
1416
  "bootstrap-expired": "bootstrap-expired";
@@ -1658,8 +1658,8 @@ declare const WorkerSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
1658
1658
  "exit-and-resume": "exit-and-resume";
1659
1659
  }>>;
1660
1660
  terminalAuthority: _$zod.ZodOptional<_$zod.ZodEnum<{
1661
- authority: "authority";
1662
1661
  worker: "worker";
1662
+ authority: "authority";
1663
1663
  }>>;
1664
1664
  materializationSpec: _$zod.ZodOptional<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1665
1665
  kind: _$zod.ZodLiteral<"local-directory">;
@@ -1896,9 +1896,9 @@ declare const WorkerSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
1896
1896
  response: _$zod.ZodObject<{
1897
1897
  decision: _$zod.ZodEnum<{
1898
1898
  accepted: "accepted";
1899
+ fenced: "fenced";
1899
1900
  duplicate: "duplicate";
1900
1901
  conflict: "conflict";
1901
- fenced: "fenced";
1902
1902
  }>;
1903
1903
  }, _$zod_v4_core0.$strict>;
1904
1904
  };
@@ -1920,8 +1920,8 @@ declare const WorkerSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
1920
1920
  status: _$zod.ZodLiteral<"refused">;
1921
1921
  reason: _$zod.ZodEnum<{
1922
1922
  resolved: "resolved";
1923
- fenced: "fenced";
1924
1923
  "not-found": "not-found";
1924
+ fenced: "fenced";
1925
1925
  "allocation-terminated": "allocation-terminated";
1926
1926
  "gate-closed": "gate-closed";
1927
1927
  "bootstrap-expired": "bootstrap-expired";
@@ -1,4 +1,4 @@
1
- import { g as OwnedAdapterInstance, h as MachineScopedAdapterInstance, w as Turn$1 } from "./index-DxtUM-qd.mjs";
1
+ import { g as OwnedAdapterInstance, h as MachineScopedAdapterInstance, w as Turn$1 } from "./index-CLwnkYRD.mjs";
2
2
  import { a as PipelineStep, o as SessionEditorAction, t as ActionCategory } from "./types-CjoaGe_E.mjs";
3
3
  import { z } from "zod";
4
4
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -6656,8 +6656,8 @@ declare const MessageRoutingNamespace: _$_makaio_storage_core0.StorageNamespaceD
6656
6656
  agentId: z.ZodString;
6657
6657
  status: z.ZodEnum<{
6658
6658
  completed: "completed";
6659
- acknowledged: "acknowledged";
6660
6659
  sent: "sent";
6660
+ acknowledged: "acknowledged";
6661
6661
  }>;
6662
6662
  timestamp: z.ZodNumber;
6663
6663
  error: z.ZodOptional<z.ZodString>;
@@ -6682,8 +6682,8 @@ declare const MessageRoutingNamespace: _$_makaio_storage_core0.StorageNamespaceD
6682
6682
  agentId: z.ZodString;
6683
6683
  status: z.ZodEnum<{
6684
6684
  completed: "completed";
6685
- acknowledged: "acknowledged";
6686
6685
  sent: "sent";
6686
+ acknowledged: "acknowledged";
6687
6687
  }>;
6688
6688
  timestamp: z.ZodNumber;
6689
6689
  error: z.ZodOptional<z.ZodString>;
@@ -6770,7 +6770,7 @@ declare const MessageRoutingNamespace: _$_makaio_storage_core0.StorageNamespaceD
6770
6770
  tableName: "message_routing";
6771
6771
  dataType: "string";
6772
6772
  columnType: "SQLiteText";
6773
- data: "completed" | "acknowledged" | "sent";
6773
+ data: "completed" | "sent" | "acknowledged";
6774
6774
  driverParam: string;
6775
6775
  notNull: true;
6776
6776
  hasDefault: false;
@@ -6841,8 +6841,8 @@ declare const MessageRoutingSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
6841
6841
  agentId: z.ZodString;
6842
6842
  status: z.ZodEnum<{
6843
6843
  completed: "completed";
6844
- acknowledged: "acknowledged";
6845
6844
  sent: "sent";
6845
+ acknowledged: "acknowledged";
6846
6846
  }>;
6847
6847
  timestamp: z.ZodNumber;
6848
6848
  error: z.ZodOptional<z.ZodString>;
@@ -6867,8 +6867,8 @@ declare const MessageRoutingSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
6867
6867
  agentId: z.ZodString;
6868
6868
  status: z.ZodEnum<{
6869
6869
  completed: "completed";
6870
- acknowledged: "acknowledged";
6871
6870
  sent: "sent";
6871
+ acknowledged: "acknowledged";
6872
6872
  }>;
6873
6873
  timestamp: z.ZodNumber;
6874
6874
  error: z.ZodOptional<z.ZodString>;
@@ -7012,7 +7012,7 @@ declare const messageRouting: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<
7012
7012
  tableName: "message_routing";
7013
7013
  dataType: "string";
7014
7014
  columnType: "SQLiteText";
7015
- data: "completed" | "acknowledged" | "sent";
7015
+ data: "completed" | "sent" | "acknowledged";
7016
7016
  driverParam: string;
7017
7017
  notNull: true;
7018
7018
  hasDefault: false;
@@ -1889,8 +1889,8 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1889
1889
  success: _$zod.ZodBoolean;
1890
1890
  evidence: _$zod.ZodEnum<{
1891
1891
  unknown: "unknown";
1892
- exited: "exited";
1893
1892
  closed: "closed";
1893
+ exited: "exited";
1894
1894
  released: "released";
1895
1895
  detached: "detached";
1896
1896
  }>;
@@ -2013,9 +2013,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
2013
2013
  timestamp: _$zod.ZodNumber;
2014
2014
  level: _$zod.ZodOptional<_$zod.ZodEnum<{
2015
2015
  error: "error";
2016
+ warn: "warn";
2016
2017
  debug: "debug";
2017
2018
  info: "info";
2018
- warn: "warn";
2019
2019
  }>>;
2020
2020
  }, _$zod_v4_core0.$strip>;
2021
2021
  error: _$zod.ZodObject<{
@@ -3939,8 +3939,8 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3939
3939
  success: _$zod.ZodBoolean;
3940
3940
  evidence: _$zod.ZodEnum<{
3941
3941
  unknown: "unknown";
3942
- exited: "exited";
3943
3942
  closed: "closed";
3943
+ exited: "exited";
3944
3944
  released: "released";
3945
3945
  detached: "detached";
3946
3946
  }>;
@@ -4063,9 +4063,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
4063
4063
  timestamp: _$zod.ZodNumber;
4064
4064
  level: _$zod.ZodOptional<_$zod.ZodEnum<{
4065
4065
  error: "error";
4066
+ warn: "warn";
4066
4067
  debug: "debug";
4067
4068
  info: "info";
4068
- warn: "warn";
4069
4069
  }>>;
4070
4070
  }, _$zod_v4_core0.$strip>;
4071
4071
  error: _$zod.ZodObject<{
@@ -6013,8 +6013,8 @@ declare const AdapterSchemas: {
6013
6013
  success: _$zod.ZodBoolean;
6014
6014
  evidence: _$zod.ZodEnum<{
6015
6015
  unknown: "unknown";
6016
- exited: "exited";
6017
6016
  closed: "closed";
6017
+ exited: "exited";
6018
6018
  released: "released";
6019
6019
  detached: "detached";
6020
6020
  }>;
@@ -6137,9 +6137,9 @@ declare const AdapterSchemas: {
6137
6137
  timestamp: _$zod.ZodNumber;
6138
6138
  level: _$zod.ZodOptional<_$zod.ZodEnum<{
6139
6139
  error: "error";
6140
+ warn: "warn";
6140
6141
  debug: "debug";
6141
6142
  info: "info";
6142
- warn: "warn";
6143
6143
  }>>;
6144
6144
  }, _$zod_v4_core0.$strip>;
6145
6145
  error: _$zod.ZodObject<{
@@ -8118,8 +8118,8 @@ type AcknowledgeCallerSettlementResponse = z.infer<typeof AcknowledgeCallerSettl
8118
8118
  */
8119
8119
  declare const TeardownEvidenceSchema: z.ZodEnum<{
8120
8120
  unknown: "unknown";
8121
- exited: "exited";
8122
8121
  closed: "closed";
8122
+ exited: "exited";
8123
8123
  released: "released";
8124
8124
  detached: "detached";
8125
8125
  }>;
@@ -8147,8 +8147,8 @@ declare function teardownWasObserved$1(evidence: TeardownEvidence$1): boolean;
8147
8147
  declare const ConnectorTeardownResultSchema$1: z.ZodObject<{
8148
8148
  evidence: z.ZodEnum<{
8149
8149
  unknown: "unknown";
8150
- exited: "exited";
8151
8150
  closed: "closed";
8151
+ exited: "exited";
8152
8152
  released: "released";
8153
8153
  detached: "detached";
8154
8154
  }>;
@@ -1,3 +1,4 @@
1
+ import { D as ArtifactViewModel$1 } from "./view-builder-Zw-TCgSp.mjs";
1
2
  import { z } from "zod";
2
3
  import * as _$_makaio_core0 from "@makaio/framework/core";
3
4
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
@@ -18,8 +19,8 @@ import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
18
19
  declare const ArtifactViewResolveRequestSchema$1: z.ZodObject<{
19
20
  level: z.ZodEnum<{
20
21
  link: "link";
21
- full: "full";
22
22
  summary: "summary";
23
+ full: "full";
23
24
  }>;
24
25
  params: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
25
26
  ref: z.ZodObject<{
@@ -197,8 +198,8 @@ declare const MaterializationSchemas: {
197
198
  template: z.ZodString;
198
199
  }, z.core.$strip>], "kind">;
199
200
  appliesTo: z.ZodArray<z.ZodEnum<{
200
- workpiece: "workpiece";
201
201
  artifact: "artifact";
202
+ workpiece: "workpiece";
202
203
  surface: "surface";
203
204
  }>>;
204
205
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -239,8 +240,8 @@ declare const MaterializationSchemas: {
239
240
  template: z.ZodString;
240
241
  }, z.core.$strip>], "kind">;
241
242
  appliesTo: z.ZodArray<z.ZodEnum<{
242
- workpiece: "workpiece";
243
243
  artifact: "artifact";
244
+ workpiece: "workpiece";
244
245
  surface: "surface";
245
246
  }>>;
246
247
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -283,8 +284,8 @@ declare const MaterializationSchemas: {
283
284
  request: z.ZodObject<{
284
285
  level: z.ZodEnum<{
285
286
  link: "link";
286
- full: "full";
287
287
  summary: "summary";
288
+ full: "full";
288
289
  }>;
289
290
  params: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
290
291
  ref: z.ZodObject<{
@@ -439,8 +440,8 @@ declare const MaterializationNamespace: _$_makaio_core0.BusNamespaceDefinition<"
439
440
  template: z.ZodString;
440
441
  }, z.core.$strip>], "kind">;
441
442
  appliesTo: z.ZodArray<z.ZodEnum<{
442
- workpiece: "workpiece";
443
443
  artifact: "artifact";
444
+ workpiece: "workpiece";
444
445
  surface: "surface";
445
446
  }>>;
446
447
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -481,8 +482,8 @@ declare const MaterializationNamespace: _$_makaio_core0.BusNamespaceDefinition<"
481
482
  template: z.ZodString;
482
483
  }, z.core.$strip>], "kind">;
483
484
  appliesTo: z.ZodArray<z.ZodEnum<{
484
- workpiece: "workpiece";
485
485
  artifact: "artifact";
486
+ workpiece: "workpiece";
486
487
  surface: "surface";
487
488
  }>>;
488
489
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -525,8 +526,8 @@ declare const MaterializationNamespace: _$_makaio_core0.BusNamespaceDefinition<"
525
526
  request: z.ZodObject<{
526
527
  level: z.ZodEnum<{
527
528
  link: "link";
528
- full: "full";
529
529
  summary: "summary";
530
+ full: "full";
530
531
  }>;
531
532
  params: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
532
533
  ref: z.ZodObject<{
@@ -693,8 +694,8 @@ declare const MaterializationSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_c
693
694
  template: z.ZodString;
694
695
  }, z.core.$strip>], "kind">;
695
696
  appliesTo: z.ZodArray<z.ZodEnum<{
696
- workpiece: "workpiece";
697
697
  artifact: "artifact";
698
+ workpiece: "workpiece";
698
699
  surface: "surface";
699
700
  }>>;
700
701
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -735,8 +736,8 @@ declare const MaterializationSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_c
735
736
  template: z.ZodString;
736
737
  }, z.core.$strip>], "kind">;
737
738
  appliesTo: z.ZodArray<z.ZodEnum<{
738
- workpiece: "workpiece";
739
739
  artifact: "artifact";
740
+ workpiece: "workpiece";
740
741
  surface: "surface";
741
742
  }>>;
742
743
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -779,8 +780,8 @@ declare const MaterializationSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_c
779
780
  request: z.ZodObject<{
780
781
  level: z.ZodEnum<{
781
782
  link: "link";
782
- full: "full";
783
783
  summary: "summary";
784
+ full: "full";
784
785
  }>;
785
786
  params: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
786
787
  ref: z.ZodObject<{
@@ -914,4 +915,40 @@ type MaterializationRefChangedPayload = z.infer<(typeof MaterializationSchemas)[
914
915
  /** Payload for the materialization capability resolved event. */
915
916
  type MaterializationCapabilityResolvedPayload = z.infer<(typeof MaterializationSchemas)['capability.resolved']>;
916
917
  //#endregion
917
- export { MaterializationCapabilityResolvedPayload as a, MaterializationSchemas as c, SurfaceBindingListRequest as d, SurfaceBindingListResponse as f, ArtifactViewResolveResponseSchema as i, MaterializationSubjects$1 as l, SurfaceBindingRegisterResponse as m, ArtifactViewResolveRequestSchema$1 as n, MaterializationNamespace as o, SurfaceBindingRegisterRequest as p, ArtifactViewResolveResponse as r, MaterializationRefChangedPayload as s, ArtifactViewResolveRequest as t, SurfaceBindingChangedPayload as u };
918
+ //#region core/contracts/src/materialization/artifact-view-markdown.d.ts
919
+ /**
920
+ * Monotonically increasing renderer version.
921
+ *
922
+ * Bump this when the Markdown output format changes so that surfaces which
923
+ * fingerprint rendered output can detect the need to re-render.
924
+ */
925
+ declare const ARTIFACT_VIEW_MARKDOWN_RENDERER_VERSION = 8;
926
+ /**
927
+ * Options for {@link renderArtifactViewMarkdown}.
928
+ */
929
+ interface ArtifactViewMarkdownOptions {
930
+ /**
931
+ * Whether to emit the view title as a leading level-2 heading.
932
+ *
933
+ * Surfaces that already display the title outside the body (for example a
934
+ * page title) pass `false` to avoid a duplicated heading. Defaults to `true`.
935
+ */
936
+ readonly includeTitle?: boolean;
937
+ }
938
+ /**
939
+ * Render an artifact view model as GitHub-flavored Markdown.
940
+ *
941
+ * The renderer is pure and deterministic: identical view models always produce
942
+ * identical Markdown output. It never inspects Artifact data or provider
943
+ * planning — only the validated {@link ArtifactViewModel} is consumed.
944
+ *
945
+ * Section variants are dispatched by their `type` discriminant. Fenced code
946
+ * blocks dynamically extend the fence length when the content itself contains
947
+ * backtick runs.
948
+ * @param view - Validated artifact view model.
949
+ * @param options - Rendering options; see {@link ArtifactViewMarkdownOptions}.
950
+ * @returns Complete Markdown document.
951
+ */
952
+ declare function renderArtifactViewMarkdown(view: ArtifactViewModel$1, options?: ArtifactViewMarkdownOptions): string;
953
+ //#endregion
954
+ export { SurfaceBindingRegisterResponse as _, ArtifactViewResolveRequestSchema$1 as a, MaterializationCapabilityResolvedPayload as c, MaterializationSchemas as d, MaterializationSubjects$1 as f, SurfaceBindingRegisterRequest as g, SurfaceBindingListResponse as h, ArtifactViewResolveRequest as i, MaterializationNamespace as l, SurfaceBindingListRequest as m, ArtifactViewMarkdownOptions as n, ArtifactViewResolveResponse as o, SurfaceBindingChangedPayload as p, renderArtifactViewMarkdown as r, ArtifactViewResolveResponseSchema as s, ARTIFACT_VIEW_MARKDOWN_RENDERER_VERSION as t, MaterializationRefChangedPayload as u };