@makaio/framework 1.0.0-dev-1789177276073 → 1.0.0-dev-1789178780636
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +2 -2
- package/dist/adapters/claude/index.d.mts +5 -5
- package/dist/{artifact-DGxKwbHE.mjs → artifact-CH7yhgti.mjs} +1 -1
- package/dist/bus/index.d.mts +1 -1
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-CPlKKH4v.mjs +9 -0
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +1 -1
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/index.d.mts +39 -39
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +1 -1
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/worker/index.d.mts +1 -1
- package/dist/contracts/worker/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +1 -1
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{extension-D8uLQSDc.mjs → extension-DRwry8GA.mjs} +1 -1
- package/dist/{index-FR0ukOzj.d.mts → index-4GaVggnR.d.mts} +64 -64
- package/dist/{index-C1nSuiG0.d.mts → index-B6WkHnCQ.d.mts} +1 -1
- package/dist/{index-B4pPwpKk.d.mts → index-BDRfiSz8.d.mts} +1 -1
- package/dist/{index-U--ajOHy.d.mts → index-BI8PuDkI.d.mts} +1 -1
- package/dist/{index-D0xS-mYt.d.mts → index-CA3Uzki8.d.mts} +10 -10
- package/dist/{index-Du4wUv9q.d.mts → index-CsLb9M1M.d.mts} +7 -7
- package/dist/{index-DSybRh-P.d.mts → index-DI07GxEW.d.mts} +6 -6
- package/dist/{index-Cq-2TSMB.d.mts → index-DNgrWs5j.d.mts} +23 -23
- package/dist/{index-zmDRR8gv2.d.mts → index-DVocx__-2.d.mts} +11 -11
- package/dist/{index-a_peDAyG.d.mts → index-DhunnX8V.d.mts} +13 -7
- package/dist/{index-DViNBePi.d.mts → index-GPTSqhvy.d.mts} +1 -1
- package/dist/{index-DyVXhEBC2.d.mts → index-GpfGF9AO2.d.mts} +3 -3
- package/dist/{index-BL_oWicz2.d.mts → index-KnN2OyWD2.d.mts} +24 -24
- package/dist/{index-GFf4oKBg2.d.mts → index-iVisrVdC2.d.mts} +37 -37
- package/dist/{index-T-aAKybB.d.mts → index-xsaaa85T.d.mts} +8 -8
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kind-registration-WrdMzWmV.mjs +1 -0
- package/dist/{materialization-kP_vEXV3.mjs → materialization-C_92G2CL.mjs} +1 -1
- package/dist/{namespace-DM5vykb7.d.mts → namespace-BrqkCnyt.d.mts} +4 -4
- package/dist/{namespace-f6Kz5cwX.d.mts → namespace-CjvSQYRJ.d.mts} +12 -12
- package/dist/{namespace-B5IFLQc-.d.mts → namespace-DQpBf2CK.d.mts} +6 -6
- package/dist/{namespace-C_tttgJ8.d.mts → namespace-DlOQmhgX.d.mts} +18 -18
- package/dist/{namespace-CPGTaFqO.d.mts → namespace-Phxf0Lep.d.mts} +2 -2
- package/dist/{namespace-BjDxqCi5.d.mts → namespace-uCaKZm89.d.mts} +6 -6
- package/dist/package.json +1 -1
- package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
- package/dist/{schemas-CJKDu4Kt.d.mts → schemas-2_D4iVbb.d.mts} +1 -1
- package/dist/{schemas-Cj6Gbqch.d.mts → schemas-BcynDWi-.d.mts} +7 -7
- package/dist/{schemas-BOacpw3I.d.mts → schemas-COiUhOce.d.mts} +10 -10
- package/dist/{schemas-CEJe8O6P.d.mts → schemas-DlVKv9QC.d.mts} +4 -4
- package/dist/{schemas-rlb0IQ-G.mjs → schemas-Dl_3zv9l.mjs} +1 -1
- package/dist/{schemas-CeItAAQM.d.mts → schemas-uA8246K9.d.mts} +8 -8
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +3 -3
- package/dist/services/execution-target/index.d.mts +2 -2
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/index.d.mts +38 -38
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +5 -5
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +10 -10
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tray-menu/index.d.mts +2 -2
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/{types-7QB81mzR.d.mts → types-DhbllltK.d.mts} +15 -15
- package/dist/{view-builder-Du0WV-So.d.mts → view-builder-BUZoNyEQ.d.mts} +1 -1
- package/dist/{worker-DWEma08Q.mjs → worker-IIubsEFG.mjs} +1 -1
- package/dist/{workflow-DA2yJJK-.mjs → workflow-dVr_9gaf.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +42 -42
- package/package.json +1 -1
- package/dist/bus-CyrTcF8F.mjs +0 -9
- package/dist/kind-registration-BcNuwXPC.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{w as n}from"./schemas-
|
|
1
|
+
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{w as n}from"./schemas-Dl_3zv9l.mjs";import{z as r}from"zod";import{createBusNamespace as i}from"@makaio/framework/core";const a=r.enum([`link`,`summary`,`full`]),o=r.object({artifactId:r.string().min(1).optional(),url:r.string().min(1).optional(),label:r.string().min(1)}),s=r.object({id:r.string().min(1),kind:r.string().min(1),revision:r.string().min(1),status:r.string().min(1).optional()}),c=r.object({breadcrumbs:r.array(o),related:r.array(o)}),l=r.object({dashboard:r.string().min(1).optional(),materialized:r.string().min(1).optional()}),u=r.object({type:r.literal(`summary`),title:r.string().min(1),text:r.string().min(1)}),d=r.object({type:r.literal(`properties`),title:r.string().min(1),rows:r.array(r.object({label:r.string().min(1),value:r.string()}))}),f=r.object({type:r.literal(`table`),title:r.string().min(1),columns:r.array(r.string().min(1)),rows:r.array(r.object({cells:r.array(r.string()),link:o.optional()}))}),p=r.object({type:r.literal(`relations`),title:r.string().min(1),groups:r.array(r.object({type:r.string().min(1),items:r.array(o)}))}),m=r.object({type:r.literal(`evidence`),title:r.string().min(1),items:r.array(r.object({kind:r.string().min(1),id:r.string().min(1),locator:r.string().min(1).optional()}))}),h=r.object({type:r.literal(`raw`),title:r.string().min(1),json:t}),g=r.object({type:r.literal(`code`),title:r.string().min(1),language:r.string().min(1),content:r.string()}),_=r.object({type:r.literal(`diagram`),title:r.string().min(1),notation:r.literal(`mermaid`),source:r.string().min(1)}),v=r.discriminatedUnion(`type`,[u,d,f,p,m,h,g,_]),y=r.object({title:r.string().min(1),artifact:s,navigation:c,sections:r.array(v),links:l}),b=e,x=r.object({level:a,params:b.optional()}),S=r.object({kind:r.literal(`entry`),via:r.string().min(1).optional(),collection:r.string().min(1).optional()});function C(e){return(t,n)=>{t.via!==void 0==(t.collection!==void 0)&&n.addIssue({code:r.ZodIssueCode.custom,message:`Entry ${e} must have exactly one of via or collection`})}}const w=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`own-view`)}),r.object({kind:r.literal(`inline`),hostRelation:r.string().min(1),as:a.optional()}),S.extend({title:r.string().min(1).optional(),hostRelation:r.string().min(1).optional()}).superRefine(C(`affordance`))]),T=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`own-view`)}),r.object({kind:r.literal(`inline`),hostRelation:r.string().min(1)}),S.superRefine(C(`request`))]);function E(e){return e}const D=r.enum([`title`,`summary`]),O=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`label`),prefix:r.string().min(1).optional()}),r.object({kind:r.literal(`field`),name:r.string().min(1),fieldId:r.string().min(1).optional()}),r.object({kind:r.literal(`issue-type`),name:r.string().min(1),typeId:r.string().min(1).optional()}),r.object({kind:r.literal(`body-fragment`),slot:r.string().min(1)}),r.object({kind:r.literal(`comment`),template:r.string().min(1)})]),k=r.object({id:r.string().min(1),provider:r.string().min(1),namespace:r.string().min(1),target:O,appliesTo:r.array(r.enum([`workpiece`,`artifact`,`surface`])).min(1),valueMapping:r.record(r.string(),r.string()).optional(),description:r.string().min(1).optional(),params:e.optional()}),A=r.enum([`status`,`workflow`,`priority`]),j=r.object({path:r.string().min(1),semantic:A.optional(),fromLevel:a.optional(),viewRole:D.optional()}),M=r.object({mode:r.enum([`none`,`surface`,`comment`]),defaultRole:r.enum([`workpiece`,`artifact`]).optional(),semanticEvents:r.array(r.enum([`created`,`revised`,`status-changed`,`observation-added`])).optional(),projectedFields:r.array(j).optional(),affordances:r.array(w).optional()}).superRefine((e,t)=>{if(!e.projectedFields)return;let n=0,i=0;for(let t of e.projectedFields)t.viewRole===`title`&&n++,t.viewRole===`summary`&&i++;n>1&&t.addIssue({code:r.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: title`}),i>1&&t.addIssue({code:r.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: summary`})}),N=r.object({artifactId:r.string().min(1),provider:r.string().min(1),externalId:r.string().min(1),externalUrl:r.string().optional(),surfaceRole:r.enum([`workpiece`,`artifact`]),lastSyncedRevision:r.string().optional(),metadata:r.record(r.string(),r.unknown()).optional()}),P=x.extend({ref:n,affordance:T}),F=r.discriminatedUnion(`status`,[r.object({status:r.literal(`ok`),view:y,builderVersion:r.number().int().positive(),sourceRevision:r.string().min(1)}),r.object({status:r.literal(`artifact-not-found`),view:r.null()}),r.object({status:r.literal(`not-rendered`),view:r.null()})]),I={"surfaceBinding.register":{request:k,response:r.object({registered:r.boolean()})},"surfaceBinding.list":{request:r.object({id:r.string().min(1).optional(),provider:r.string().min(1).optional(),namespace:r.string().min(1).optional()}),response:r.object({bindings:r.array(k)})},"surfaceBinding.changed":r.object({id:r.string().min(1),provider:r.string().min(1)}),"ref.changed":r.object({artifactId:r.string().min(1),provider:r.string().min(1),externalId:r.string().min(1),operation:r.enum([`upserted`,`deleted`]),origin:r.enum([`factory`,`external`]).optional()}),"capability.resolved":r.object({provider:r.string().min(1),surface:r.string().min(1),capabilities:r.record(r.string().min(1),r.boolean()),degraded:r.boolean()}),"artifact.view.resolve":{request:P,response:F}},L=i(`materialization`,I),R=L.subjects;function z(e){return{id:e.id,toRegistration:()=>({id:e.id,provider:e.provider,namespace:e.namespace,target:structuredClone(e.target),appliesTo:[...e.appliesTo],...e.valueMapping===void 0?{}:{valueMapping:{...e.valueMapping}},...e.description===void 0?{}:{description:e.description},...e.params===void 0?{}:{params:structuredClone(e.params)}})}}export{v as A,a as C,d as D,c as E,l as M,f as N,h as O,s as S,y as T,x as _,I as a,_ as b,M as c,D as d,k as f,b as g,T as h,L as i,u as j,p as k,j as l,w as m,P as n,R as o,O as p,F as r,N as s,z as t,A as u,E as v,o as w,m as x,g as y};
|
|
@@ -65,8 +65,8 @@ declare const ExecutionTargetNamespace: _$_makaio_core0.BusNamespaceDefinition<"
|
|
|
65
65
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
66
66
|
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
67
67
|
name: _$zod.ZodString;
|
|
68
|
-
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
69
68
|
enabled: _$zod.ZodBoolean;
|
|
69
|
+
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
70
70
|
busUrl: _$zod.ZodOptional<_$zod.ZodString>;
|
|
71
71
|
scope: _$zod.ZodString;
|
|
72
72
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
@@ -75,8 +75,8 @@ declare const ExecutionTargetNamespace: _$_makaio_core0.BusNamespaceDefinition<"
|
|
|
75
75
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
76
76
|
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
77
77
|
name: _$zod.ZodString;
|
|
78
|
-
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
79
78
|
enabled: _$zod.ZodBoolean;
|
|
79
|
+
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
80
80
|
scope: _$zod.ZodString;
|
|
81
81
|
gitCredentialMode: _$zod.ZodDefault<_$zod.ZodEnum<{
|
|
82
82
|
token: "token";
|
|
@@ -336,8 +336,8 @@ declare const ExecutionTargetSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
336
336
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
337
337
|
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
338
338
|
name: _$zod.ZodString;
|
|
339
|
-
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
340
339
|
enabled: _$zod.ZodBoolean;
|
|
340
|
+
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
341
341
|
busUrl: _$zod.ZodOptional<_$zod.ZodString>;
|
|
342
342
|
scope: _$zod.ZodString;
|
|
343
343
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
@@ -346,8 +346,8 @@ declare const ExecutionTargetSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
346
346
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
347
347
|
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
348
348
|
name: _$zod.ZodString;
|
|
349
|
-
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
350
349
|
enabled: _$zod.ZodBoolean;
|
|
350
|
+
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
351
351
|
scope: _$zod.ZodString;
|
|
352
352
|
gitCredentialMode: _$zod.ZodDefault<_$zod.ZodEnum<{
|
|
353
353
|
token: "token";
|
|
@@ -14,9 +14,9 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
|
|
|
14
14
|
response: _$zod.ZodObject<{
|
|
15
15
|
config: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
16
16
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
17
|
-
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
18
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
19
17
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
18
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
19
|
+
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20
20
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
21
21
|
label: _$zod.ZodString;
|
|
22
22
|
url: _$zod.ZodString;
|
|
@@ -39,9 +39,9 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
|
|
|
39
39
|
response: _$zod.ZodObject<{
|
|
40
40
|
configs: _$zod.ZodArray<_$zod.ZodObject<{
|
|
41
41
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
42
|
-
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
43
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
44
42
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
43
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
44
|
+
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
45
45
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
46
46
|
label: _$zod.ZodString;
|
|
47
47
|
url: _$zod.ZodString;
|
|
@@ -1650,9 +1650,9 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
|
|
|
1650
1650
|
response: _$zod.ZodObject<{
|
|
1651
1651
|
config: _$zod.ZodObject<{
|
|
1652
1652
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1653
|
-
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1654
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1655
1653
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1654
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1655
|
+
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1656
1656
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1657
1657
|
label: _$zod.ZodString;
|
|
1658
1658
|
url: _$zod.ZodString;
|
|
@@ -1875,9 +1875,9 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
|
|
|
1875
1875
|
response: _$zod.ZodObject<{
|
|
1876
1876
|
config: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
1877
1877
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1878
|
-
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1879
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1880
1878
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1879
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1880
|
+
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1881
1881
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1882
1882
|
label: _$zod.ZodString;
|
|
1883
1883
|
url: _$zod.ZodString;
|
|
@@ -1900,9 +1900,9 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
|
|
|
1900
1900
|
response: _$zod.ZodObject<{
|
|
1901
1901
|
configs: _$zod.ZodArray<_$zod.ZodObject<{
|
|
1902
1902
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1903
|
-
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1904
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1905
1903
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1904
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1905
|
+
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1906
1906
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1907
1907
|
label: _$zod.ZodString;
|
|
1908
1908
|
url: _$zod.ZodString;
|
|
@@ -3511,9 +3511,9 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
|
|
|
3511
3511
|
response: _$zod.ZodObject<{
|
|
3512
3512
|
config: _$zod.ZodObject<{
|
|
3513
3513
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3514
|
-
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3515
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3516
3514
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3515
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3516
|
+
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3517
3517
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
3518
3518
|
label: _$zod.ZodString;
|
|
3519
3519
|
url: _$zod.ZodString;
|
|
@@ -13,8 +13,8 @@ declare const TrayMenuNamespace: _$_makaio_core0.BusNamespaceDefinition<"host:tr
|
|
|
13
13
|
label: _$zod.ZodString;
|
|
14
14
|
section: _$zod.ZodEnum<{
|
|
15
15
|
tools: "tools";
|
|
16
|
-
views: "views";
|
|
17
16
|
utilities: "utilities";
|
|
17
|
+
views: "views";
|
|
18
18
|
}>;
|
|
19
19
|
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
20
20
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
@@ -48,8 +48,8 @@ declare const TrayMenuNamespace: _$_makaio_core0.BusNamespaceDefinition<"host:tr
|
|
|
48
48
|
}, _$zod_v4_core0.$strip>>;
|
|
49
49
|
section: _$zod.ZodEnum<{
|
|
50
50
|
tools: "tools";
|
|
51
|
-
views: "views";
|
|
52
51
|
utilities: "utilities";
|
|
52
|
+
views: "views";
|
|
53
53
|
}>;
|
|
54
54
|
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
55
55
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -83,8 +83,8 @@ declare const TrayMenuNamespace: _$_makaio_core0.BusNamespaceDefinition<"host:tr
|
|
|
83
83
|
label: _$zod.ZodString;
|
|
84
84
|
section: _$zod.ZodEnum<{
|
|
85
85
|
tools: "tools";
|
|
86
|
-
views: "views";
|
|
87
86
|
utilities: "utilities";
|
|
87
|
+
views: "views";
|
|
88
88
|
}>;
|
|
89
89
|
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
90
90
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
@@ -104,8 +104,8 @@ declare const TrayMenuSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
104
104
|
label: _$zod.ZodString;
|
|
105
105
|
section: _$zod.ZodEnum<{
|
|
106
106
|
tools: "tools";
|
|
107
|
-
views: "views";
|
|
108
107
|
utilities: "utilities";
|
|
108
|
+
views: "views";
|
|
109
109
|
}>;
|
|
110
110
|
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
111
111
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
@@ -139,8 +139,8 @@ declare const TrayMenuSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
139
139
|
}, _$zod_v4_core0.$strip>>;
|
|
140
140
|
section: _$zod.ZodEnum<{
|
|
141
141
|
tools: "tools";
|
|
142
|
-
views: "views";
|
|
143
142
|
utilities: "utilities";
|
|
143
|
+
views: "views";
|
|
144
144
|
}>;
|
|
145
145
|
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
146
146
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -174,8 +174,8 @@ declare const TrayMenuSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
174
174
|
label: _$zod.ZodString;
|
|
175
175
|
section: _$zod.ZodEnum<{
|
|
176
176
|
tools: "tools";
|
|
177
|
-
views: "views";
|
|
178
177
|
utilities: "utilities";
|
|
178
|
+
views: "views";
|
|
179
179
|
}>;
|
|
180
180
|
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
181
181
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
@@ -585,8 +585,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
585
585
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
586
586
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
587
587
|
intent: _$zod.ZodEnum<{
|
|
588
|
-
resume: "resume";
|
|
589
588
|
fork: "fork";
|
|
589
|
+
resume: "resume";
|
|
590
590
|
}>;
|
|
591
591
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
592
592
|
reason: _$zod.ZodEnum<{
|
|
@@ -611,8 +611,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
611
611
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
612
612
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
613
613
|
intent: _$zod.ZodEnum<{
|
|
614
|
-
resume: "resume";
|
|
615
614
|
fork: "fork";
|
|
615
|
+
resume: "resume";
|
|
616
616
|
}>;
|
|
617
617
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
618
618
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -967,8 +967,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
967
967
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
968
968
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
969
969
|
intent: _$zod.ZodEnum<{
|
|
970
|
-
resume: "resume";
|
|
971
970
|
fork: "fork";
|
|
971
|
+
resume: "resume";
|
|
972
972
|
}>;
|
|
973
973
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
974
974
|
reason: _$zod.ZodEnum<{
|
|
@@ -993,8 +993,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
993
993
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
994
994
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
995
995
|
intent: _$zod.ZodEnum<{
|
|
996
|
-
resume: "resume";
|
|
997
996
|
fork: "fork";
|
|
997
|
+
resume: "resume";
|
|
998
998
|
}>;
|
|
999
999
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
1000
1000
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -1339,8 +1339,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
1339
1339
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
1340
1340
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
1341
1341
|
intent: _$zod.ZodEnum<{
|
|
1342
|
-
resume: "resume";
|
|
1343
1342
|
fork: "fork";
|
|
1343
|
+
resume: "resume";
|
|
1344
1344
|
}>;
|
|
1345
1345
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
1346
1346
|
reason: _$zod.ZodEnum<{
|
|
@@ -1365,8 +1365,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
1365
1365
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1366
1366
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
1367
1367
|
intent: _$zod.ZodEnum<{
|
|
1368
|
-
resume: "resume";
|
|
1369
1368
|
fork: "fork";
|
|
1369
|
+
resume: "resume";
|
|
1370
1370
|
}>;
|
|
1371
1371
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
1372
1372
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -1719,8 +1719,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
1719
1719
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
1720
1720
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
1721
1721
|
intent: _$zod.ZodEnum<{
|
|
1722
|
-
resume: "resume";
|
|
1723
1722
|
fork: "fork";
|
|
1723
|
+
resume: "resume";
|
|
1724
1724
|
}>;
|
|
1725
1725
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
1726
1726
|
reason: _$zod.ZodEnum<{
|
|
@@ -1745,8 +1745,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
1745
1745
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1746
1746
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
1747
1747
|
intent: _$zod.ZodEnum<{
|
|
1748
|
-
resume: "resume";
|
|
1749
1748
|
fork: "fork";
|
|
1749
|
+
resume: "resume";
|
|
1750
1750
|
}>;
|
|
1751
1751
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
1752
1752
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -2087,8 +2087,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
2087
2087
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
2088
2088
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
2089
2089
|
intent: _$zod.ZodEnum<{
|
|
2090
|
-
resume: "resume";
|
|
2091
2090
|
fork: "fork";
|
|
2091
|
+
resume: "resume";
|
|
2092
2092
|
}>;
|
|
2093
2093
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
2094
2094
|
reason: _$zod.ZodEnum<{
|
|
@@ -2113,8 +2113,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
2113
2113
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2114
2114
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2115
2115
|
intent: _$zod.ZodEnum<{
|
|
2116
|
-
resume: "resume";
|
|
2117
2116
|
fork: "fork";
|
|
2117
|
+
resume: "resume";
|
|
2118
2118
|
}>;
|
|
2119
2119
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
2120
2120
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -2469,8 +2469,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
2469
2469
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
2470
2470
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
2471
2471
|
intent: _$zod.ZodEnum<{
|
|
2472
|
-
resume: "resume";
|
|
2473
2472
|
fork: "fork";
|
|
2473
|
+
resume: "resume";
|
|
2474
2474
|
}>;
|
|
2475
2475
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
2476
2476
|
reason: _$zod.ZodEnum<{
|
|
@@ -2495,8 +2495,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
2495
2495
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2496
2496
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2497
2497
|
intent: _$zod.ZodEnum<{
|
|
2498
|
-
resume: "resume";
|
|
2499
2498
|
fork: "fork";
|
|
2499
|
+
resume: "resume";
|
|
2500
2500
|
}>;
|
|
2501
2501
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
2502
2502
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -2841,8 +2841,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
2841
2841
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
2842
2842
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
2843
2843
|
intent: _$zod.ZodEnum<{
|
|
2844
|
-
resume: "resume";
|
|
2845
2844
|
fork: "fork";
|
|
2845
|
+
resume: "resume";
|
|
2846
2846
|
}>;
|
|
2847
2847
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
2848
2848
|
reason: _$zod.ZodEnum<{
|
|
@@ -2867,8 +2867,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
2867
2867
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2868
2868
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2869
2869
|
intent: _$zod.ZodEnum<{
|
|
2870
|
-
resume: "resume";
|
|
2871
2870
|
fork: "fork";
|
|
2871
|
+
resume: "resume";
|
|
2872
2872
|
}>;
|
|
2873
2873
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
2874
2874
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -3221,8 +3221,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
3221
3221
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
3222
3222
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
3223
3223
|
intent: _$zod.ZodEnum<{
|
|
3224
|
-
resume: "resume";
|
|
3225
3224
|
fork: "fork";
|
|
3225
|
+
resume: "resume";
|
|
3226
3226
|
}>;
|
|
3227
3227
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
3228
3228
|
reason: _$zod.ZodEnum<{
|
|
@@ -3247,8 +3247,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
3247
3247
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3248
3248
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3249
3249
|
intent: _$zod.ZodEnum<{
|
|
3250
|
-
resume: "resume";
|
|
3251
3250
|
fork: "fork";
|
|
3251
|
+
resume: "resume";
|
|
3252
3252
|
}>;
|
|
3253
3253
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
3254
3254
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -3537,14 +3537,14 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
3537
3537
|
timestamp: number;
|
|
3538
3538
|
type: "locality.degraded";
|
|
3539
3539
|
payload: {
|
|
3540
|
-
intent: "
|
|
3540
|
+
intent: "fork" | "resume";
|
|
3541
3541
|
verdictKind: "degrade";
|
|
3542
3542
|
reason: "adapter-unsupported" | "adapter-mismatch" | "no-adapter-session" | "missing-machine-id" | "machine-mismatch" | "cwd-mismatch" | "transforms-present" | "compression-present" | "connector-swap" | "mid-history-unsupported" | "hybrid-imported-orchestrated" | "native-attempt-failed" | "agent-already-started" | "fork-point-unresolvable" | "adapter-session-moved";
|
|
3543
3543
|
agentId?: string | undefined;
|
|
3544
3544
|
adapterId?: string | undefined;
|
|
3545
3545
|
turnId?: string | undefined;
|
|
3546
3546
|
} | {
|
|
3547
|
-
intent: "
|
|
3547
|
+
intent: "fork" | "resume";
|
|
3548
3548
|
verdictKind: "foreign";
|
|
3549
3549
|
foreignMachineId: string;
|
|
3550
3550
|
agentId?: string | undefined;
|
|
@@ -47,8 +47,8 @@ declare const AdapterRuntimeNamespace: _$_makaio_core0.BusNamespaceDefinition<"a
|
|
|
47
47
|
teardownCompleted: _$zod.ZodObject<{
|
|
48
48
|
evidence: _$zod.ZodEnum<{
|
|
49
49
|
unknown: "unknown";
|
|
50
|
-
closed: "closed";
|
|
51
50
|
exited: "exited";
|
|
51
|
+
closed: "closed";
|
|
52
52
|
released: "released";
|
|
53
53
|
detached: "detached";
|
|
54
54
|
}>;
|
|
@@ -100,8 +100,8 @@ declare const AdapterRuntimeSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
|
|
|
100
100
|
teardownCompleted: _$zod.ZodObject<{
|
|
101
101
|
evidence: _$zod.ZodEnum<{
|
|
102
102
|
unknown: "unknown";
|
|
103
|
-
closed: "closed";
|
|
104
103
|
exited: "exited";
|
|
104
|
+
closed: "closed";
|
|
105
105
|
released: "released";
|
|
106
106
|
detached: "detached";
|
|
107
107
|
}>;
|
|
@@ -335,8 +335,8 @@ declare const MessageStorageNamespace$1: {
|
|
|
335
335
|
isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
336
336
|
}, _$zod_v4_core0.$strip>], "type">>;
|
|
337
337
|
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
338
|
-
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
339
338
|
turnId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
339
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
340
340
|
timestamp: _$zod.ZodNumber;
|
|
341
341
|
contentText: _$zod.ZodString;
|
|
342
342
|
adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1120,8 +1120,8 @@ declare const MessageStorageNamespace$1: {
|
|
|
1120
1120
|
isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1121
1121
|
}, _$zod_v4_core0.$strip>], "type">>;
|
|
1122
1122
|
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1123
|
-
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1124
1123
|
turnId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
1124
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1125
1125
|
timestamp: _$zod.ZodNumber;
|
|
1126
1126
|
contentText: _$zod.ZodString;
|
|
1127
1127
|
adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -2030,17 +2030,17 @@ declare const MessageStorageNamespace$1: {
|
|
|
2030
2030
|
})[];
|
|
2031
2031
|
messageId: string;
|
|
2032
2032
|
agentId: never;
|
|
2033
|
-
adapterSessionId: never;
|
|
2034
2033
|
turnId: string | null;
|
|
2035
|
-
|
|
2034
|
+
adapterSessionId: never;
|
|
2036
2035
|
timestamp: number;
|
|
2036
|
+
limit: never;
|
|
2037
2037
|
query: string;
|
|
2038
2038
|
contentText: string;
|
|
2039
2039
|
adapterMessageId: string;
|
|
2040
|
-
after: never;
|
|
2041
|
-
order: never;
|
|
2042
2040
|
emitEvent: never;
|
|
2041
|
+
after: never;
|
|
2043
2042
|
includeAfter: never;
|
|
2043
|
+
order: never;
|
|
2044
2044
|
} | undefined;
|
|
2045
2045
|
};
|
|
2046
2046
|
//#endregion
|
package/dist/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{randomBytes as e}from"node:crypto";import{getFullSubjectForSubjectDefinition as t}from"@makaio/framework/core";import{ArtifactSubjects as n,ExecutionAttemptSubjects as r,SubagentSubjects as i,WorkerSubjects as a,WorkflowSubjects as o}from"@makaio/framework/contracts";import{captureHmacIdentitySecretCleanup as s,registerHmacIdentitySecret as c,resolveHmacIdentityPeer as l,resolveHmacIdentitySecret as u,rotateHmacIdentitySecret as d}from"@makaio/framework/node/transports";import{AdapterSubsystemSubjects as f}from"@makaio/framework/services/adapter-subsystem";import{WorkflowStorageSubjects as p}from"@makaio/framework/workflow-engine";const m=[r.runtime.register,r.bootstrap.awaitStart,r.instruction.get,r.operation.admit,r.operation.report,r.operation.deliver,r.outcome.submit,r.control.deliver,r.control.report,a.runtime.inputs.get,a.control.outcome.submit,o.getRunContext,f.listAdapters,o.bootstrapAuthorityState,o.finalizeDelegateResult,p.getExecution,p.setFrame,p.setSpan,p.listFrames,p.getGateInstance,p.setGateInstance,o.frame.started,o.frame.completed,o.frame.failed,o.frame.sessionLinked,o.execution.progress,o.gate.suspended,o.gate.resumed,o.gate.resolved,o.gate.respond,o.state.get,o.state.patch,o.resolveAgent,o.resolveRole,n.kind.list,n.query,n.resolve,n.create,n.revise,n.patch,o.artifact.updated,i.spawn,i.await,i.getStatus,i.kill];function h(e){return[...m.map(t),`workflow.${e}.cancel`]}function g(e){let{executionAttemptId:t,executionId:n,secret:r}=e,i=e.allowedSubjects??h(n);return{secret:r,cleanup:c(t,r,{peerKind:`workflow-execution-attempt`,claims:{executionId:n},allowedSubjects:i})}}function _(t){let n=e(32).toString(`hex`);return g({...t,secret:n})}function v(t){let{executionAttemptId:n,executionId:r}=t,i=l(n);if(i?.kind!==`workflow-execution-attempt`||i.claims?.executionId!==r)throw Error(`Cannot rotate workflow execution bus secret: attempt "${n}" is not registered for execution "${r}"`);let a=e(32).toString(`hex`);return{secret:a,cleanup:d(n,a)}}function y(e){return u(e.executionAttemptId)===null?_(e):v(e)}function b(e){let{executionAttemptId:t,executionId:n}=e,r=l(t);if(r!==null){if(r.kind!==`workflow-execution-attempt`||r.claims?.executionId!==n)throw Error(`Cannot capture workflow execution bus secret cleanup: attempt "${t}" is not registered for execution "${n}"`);return s(t)}}function x(e){return u(e)??void 0}export{h as buildExecutionAttemptAllowedSubjects,b as captureWorkflowExecutionBusSecretCleanup,y as mintOrRotateWorkflowExecutionBusSecret,_ as mintWorkflowExecutionBusSecret,g as registerWorkflowExecutionBusSecret,x as resolveWorkflowExecutionBusSecret,v as rotateWorkflowExecutionBusSecret};
|
|
1
|
+
import{randomBytes as e}from"node:crypto";import{getFullSubjectForSubjectDefinition as t}from"@makaio/framework/core";import{ArtifactSubjects as n,ExecutionAttemptSubjects as r,SubagentSubjects as i,WorkerSubjects as a,WorkflowSubjects as o}from"@makaio/framework/contracts";import{captureHmacIdentitySecretCleanup as s,registerHmacIdentitySecret as c,resolveHmacIdentityPeer as l,resolveHmacIdentitySecret as u,rotateHmacIdentitySecret as d}from"@makaio/framework/node/transports";import{AdapterSubsystemSubjects as f}from"@makaio/framework/services/adapter-subsystem";import{WorkflowStorageSubjects as p}from"@makaio/framework/workflow-engine";const m=[r.runtime.register,r.bootstrap.awaitStart,r.instruction.get,r.operation.admit,r.operation.report,r.operation.deliver,r.outcome.submit,r.control.deliver,r.control.report,a.runtime.inputs.get,a.control.outcome.submit,o.getRunContext,f.listAdapters,o.bootstrapAuthorityState,o.finalizeDelegateResult,p.getExecution,p.setFrame,p.setSpan,p.listFrames,p.getGateInstance,p.setGateInstance,o.frame.started,o.frame.completed,o.frame.failed,o.frame.sessionLinked,o.execution.progress,o.gate.suspended,o.gate.resumed,o.gate.resolved,o.gate.respond,o.state.get,o.state.patch,o.resolveAgent,o.resolveRole,n.kind.list,n.query,n.resolve,n.resolvePart,n.create,n.revise,n.patch,o.artifact.updated,i.spawn,i.await,i.getStatus,i.kill];function h(e){return[...m.map(t),`workflow.${e}.cancel`]}function g(e){let{executionAttemptId:t,executionId:n,secret:r}=e,i=e.allowedSubjects??h(n);return{secret:r,cleanup:c(t,r,{peerKind:`workflow-execution-attempt`,claims:{executionId:n},allowedSubjects:i})}}function _(t){let n=e(32).toString(`hex`);return g({...t,secret:n})}function v(t){let{executionAttemptId:n,executionId:r}=t,i=l(n);if(i?.kind!==`workflow-execution-attempt`||i.claims?.executionId!==r)throw Error(`Cannot rotate workflow execution bus secret: attempt "${n}" is not registered for execution "${r}"`);let a=e(32).toString(`hex`);return{secret:a,cleanup:d(n,a)}}function y(e){return u(e.executionAttemptId)===null?_(e):v(e)}function b(e){let{executionAttemptId:t,executionId:n}=e,r=l(t);if(r!==null){if(r.kind!==`workflow-execution-attempt`||r.claims?.executionId!==n)throw Error(`Cannot capture workflow execution bus secret cleanup: attempt "${t}" is not registered for execution "${n}"`);return s(t)}}function x(e){return u(e)??void 0}export{h as buildExecutionAttemptAllowedSubjects,b as captureWorkflowExecutionBusSecretCleanup,y as mintOrRotateWorkflowExecutionBusSecret,_ as mintWorkflowExecutionBusSecret,g as registerWorkflowExecutionBusSecret,x as resolveWorkflowExecutionBusSecret,v as rotateWorkflowExecutionBusSecret};
|
|
@@ -143,8 +143,8 @@ declare const AdapterRuntimeSchemas: {
|
|
|
143
143
|
teardownCompleted: z.ZodObject<{
|
|
144
144
|
evidence: z.ZodEnum<{
|
|
145
145
|
unknown: "unknown";
|
|
146
|
-
closed: "closed";
|
|
147
146
|
exited: "exited";
|
|
147
|
+
closed: "closed";
|
|
148
148
|
released: "released";
|
|
149
149
|
detached: "detached";
|
|
150
150
|
}>;
|
|
@@ -4,8 +4,8 @@ import { z } from "zod";
|
|
|
4
4
|
/** Visual grouping for system tray menu entries. */
|
|
5
5
|
declare const TrayMenuSectionSchema: z.ZodEnum<{
|
|
6
6
|
tools: "tools";
|
|
7
|
-
views: "views";
|
|
8
7
|
utilities: "utilities";
|
|
8
|
+
views: "views";
|
|
9
9
|
}>;
|
|
10
10
|
/** Opaque metadata echoed back to the owning package on click. */
|
|
11
11
|
declare const TrayMenuMetadataSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -16,8 +16,8 @@ declare const TrayMenuEntrySchema: z.ZodObject<{
|
|
|
16
16
|
label: z.ZodString;
|
|
17
17
|
section: z.ZodEnum<{
|
|
18
18
|
tools: "tools";
|
|
19
|
-
views: "views";
|
|
20
19
|
utilities: "utilities";
|
|
20
|
+
views: "views";
|
|
21
21
|
}>;
|
|
22
22
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
23
23
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -44,8 +44,8 @@ declare const TrayMenuGroupSchema: z.ZodObject<{
|
|
|
44
44
|
}, z.core.$strip>>;
|
|
45
45
|
section: z.ZodEnum<{
|
|
46
46
|
tools: "tools";
|
|
47
|
-
views: "views";
|
|
48
47
|
utilities: "utilities";
|
|
48
|
+
views: "views";
|
|
49
49
|
}>;
|
|
50
50
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
51
51
|
}, z.core.$strip>;
|
|
@@ -56,8 +56,8 @@ declare const TrayMenuListEntrySchema: z.ZodObject<{
|
|
|
56
56
|
label: z.ZodString;
|
|
57
57
|
section: z.ZodEnum<{
|
|
58
58
|
tools: "tools";
|
|
59
|
-
views: "views";
|
|
60
59
|
utilities: "utilities";
|
|
60
|
+
views: "views";
|
|
61
61
|
}>;
|
|
62
62
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
63
63
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -81,8 +81,8 @@ declare const TrayMenuSchemas: {
|
|
|
81
81
|
label: z.ZodString;
|
|
82
82
|
section: z.ZodEnum<{
|
|
83
83
|
tools: "tools";
|
|
84
|
-
views: "views";
|
|
85
84
|
utilities: "utilities";
|
|
85
|
+
views: "views";
|
|
86
86
|
}>;
|
|
87
87
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
88
88
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -116,8 +116,8 @@ declare const TrayMenuSchemas: {
|
|
|
116
116
|
}, z.core.$strip>>;
|
|
117
117
|
section: z.ZodEnum<{
|
|
118
118
|
tools: "tools";
|
|
119
|
-
views: "views";
|
|
120
119
|
utilities: "utilities";
|
|
120
|
+
views: "views";
|
|
121
121
|
}>;
|
|
122
122
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
123
123
|
}, z.core.$strip>;
|
|
@@ -151,8 +151,8 @@ declare const TrayMenuSchemas: {
|
|
|
151
151
|
label: z.ZodString;
|
|
152
152
|
section: z.ZodEnum<{
|
|
153
153
|
tools: "tools";
|
|
154
|
-
views: "views";
|
|
155
154
|
utilities: "utilities";
|
|
155
|
+
views: "views";
|
|
156
156
|
}>;
|
|
157
157
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
158
158
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -15,8 +15,8 @@ declare const SubagentTemplateSchema: z.ZodObject<{
|
|
|
15
15
|
model: z.ZodOptional<z.ZodString>;
|
|
16
16
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
17
17
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
18
|
-
fresh: "fresh";
|
|
19
18
|
fork: "fork";
|
|
19
|
+
fresh: "fresh";
|
|
20
20
|
}>>;
|
|
21
21
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
22
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -45,16 +45,16 @@ type SubagentTemplateSummary = z.infer<typeof SubagentTemplateSummarySchema>;
|
|
|
45
45
|
declare const SubagentTemplateCreateSchema: z.ZodObject<{
|
|
46
46
|
name: z.ZodString;
|
|
47
47
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
48
|
+
adapterName: z.ZodString;
|
|
48
49
|
model: z.ZodOptional<z.ZodString>;
|
|
49
|
-
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
50
50
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
51
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
51
52
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52
53
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
54
|
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
-
adapterName: z.ZodString;
|
|
55
55
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
56
|
-
fresh: "fresh";
|
|
57
56
|
fork: "fork";
|
|
57
|
+
fresh: "fresh";
|
|
58
58
|
}>>;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
type SubagentTemplateCreate = z.infer<typeof SubagentTemplateCreateSchema>;
|
|
@@ -69,8 +69,8 @@ declare const SubagentTemplateUpdateSchema: z.ZodObject<{
|
|
|
69
69
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
70
70
|
systemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
71
71
|
contextMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
72
|
-
fresh: "fresh";
|
|
73
72
|
fork: "fork";
|
|
73
|
+
fresh: "fresh";
|
|
74
74
|
}>>>;
|
|
75
75
|
allowedTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
76
76
|
disallowedTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -114,8 +114,8 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
114
114
|
model: z.ZodOptional<z.ZodString>;
|
|
115
115
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
116
116
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
117
|
-
fresh: "fresh";
|
|
118
117
|
fork: "fork";
|
|
118
|
+
fresh: "fresh";
|
|
119
119
|
}>>;
|
|
120
120
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
121
121
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -130,16 +130,16 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
130
130
|
request: z.ZodObject<{
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
133
|
+
adapterName: z.ZodString;
|
|
133
134
|
model: z.ZodOptional<z.ZodString>;
|
|
134
|
-
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
135
135
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
136
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
136
137
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
137
138
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
139
|
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
|
-
adapterName: z.ZodString;
|
|
140
140
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
141
|
-
fresh: "fresh";
|
|
142
141
|
fork: "fork";
|
|
142
|
+
fresh: "fresh";
|
|
143
143
|
}>>;
|
|
144
144
|
}, z.core.$strip>;
|
|
145
145
|
response: z.ZodObject<{
|
|
@@ -155,8 +155,8 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
155
155
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
156
156
|
systemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
157
157
|
contextMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
158
|
-
fresh: "fresh";
|
|
159
158
|
fork: "fork";
|
|
159
|
+
fresh: "fresh";
|
|
160
160
|
}>>>;
|
|
161
161
|
allowedTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
162
162
|
disallowedTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -100,8 +100,8 @@ declare const ExecutionTargetInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
100
100
|
description: z.ZodOptional<z.ZodString>;
|
|
101
101
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
102
102
|
name: z.ZodString;
|
|
103
|
-
image: z.ZodOptional<z.ZodString>;
|
|
104
103
|
enabled: z.ZodBoolean;
|
|
104
|
+
image: z.ZodOptional<z.ZodString>;
|
|
105
105
|
busUrl: z.ZodOptional<z.ZodString>;
|
|
106
106
|
scope: z.ZodString;
|
|
107
107
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -110,8 +110,8 @@ declare const ExecutionTargetInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
110
110
|
description: z.ZodOptional<z.ZodString>;
|
|
111
111
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
112
112
|
name: z.ZodString;
|
|
113
|
-
image: z.ZodOptional<z.ZodString>;
|
|
114
113
|
enabled: z.ZodBoolean;
|
|
114
|
+
image: z.ZodOptional<z.ZodString>;
|
|
115
115
|
scope: z.ZodString;
|
|
116
116
|
gitCredentialMode: z.ZodDefault<z.ZodEnum<{
|
|
117
117
|
token: "token";
|
|
@@ -203,8 +203,8 @@ declare const ExecutionTargetSchemas: {
|
|
|
203
203
|
description: z.ZodOptional<z.ZodString>;
|
|
204
204
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
205
205
|
name: z.ZodString;
|
|
206
|
-
image: z.ZodOptional<z.ZodString>;
|
|
207
206
|
enabled: z.ZodBoolean;
|
|
207
|
+
image: z.ZodOptional<z.ZodString>;
|
|
208
208
|
busUrl: z.ZodOptional<z.ZodString>;
|
|
209
209
|
scope: z.ZodString;
|
|
210
210
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -213,8 +213,8 @@ declare const ExecutionTargetSchemas: {
|
|
|
213
213
|
description: z.ZodOptional<z.ZodString>;
|
|
214
214
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
215
215
|
name: z.ZodString;
|
|
216
|
-
image: z.ZodOptional<z.ZodString>;
|
|
217
216
|
enabled: z.ZodBoolean;
|
|
217
|
+
image: z.ZodOptional<z.ZodString>;
|
|
218
218
|
scope: z.ZodString;
|
|
219
219
|
gitCredentialMode: z.ZodDefault<z.ZodEnum<{
|
|
220
220
|
token: "token";
|